/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Source Serif 4', Georgia, serif;
    background: #f2efe6;
    color: #2c2f27;
    line-height: 1.72;
    overflow-x: hidden;
    position: relative;
}

/* ===== BLOB BACKGROUNDS ===== */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #74a67e;
    opacity: 0.2;
    top: 10%;
    left: -5%;
    animation: blobDrift1 28s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #d4a24e;
    opacity: 0.1;
    top: 40%;
    right: -10%;
    animation: blobDrift2 35s ease-in-out infinite;
}

.blob-3 {
    width: 600px;
    height: 600px;
    background: #74a67e;
    opacity: 0.15;
    bottom: 10%;
    left: 30%;
    animation: blobDrift3 20s ease-in-out infinite;
}

.blob-4 {
    width: 350px;
    height: 350px;
    background: #d4a24e;
    opacity: 0.08;
    top: 60%;
    left: 10%;
    animation: blobDrift1 32s ease-in-out infinite reverse;
}

@keyframes blobDrift1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes blobDrift2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 15px) scale(1.04); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes blobDrift3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 25px) scale(1.06); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, .card-category, .section-label, .vine-year, .petal, .seed-button {
    font-family: 'Outfit', sans-serif;
}

/* ===== SECTION LABELS ===== */
.section-label {
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #74a67e;
    margin-bottom: 2rem;
    padding-left: 0.5rem;
}

/* ===== CANOPY ===== */
.canopy {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.canopy-glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 28px;
    padding: clamp(2rem, 6vw, 5rem);
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: inset 0 0 30px rgba(255,255,255,0.08), 0 12px 48px rgba(31,38,24,0.1);
}

.canopy-headline {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #2d6a4f;
    letter-spacing: 0.01em;
    line-height: 1.2;
    min-height: 3em;
    border-right: 2px solid #d4a24e;
    display: inline;
    padding-right: 4px;
}

.canopy-headline.typing-done {
    border-right-color: transparent;
    animation: none;
}

@keyframes cursorBlink {
    0%, 100% { border-right-color: #d4a24e; }
    50% { border-right-color: transparent; }
}

.canopy-headline.typing {
    animation: cursorBlink 0.8s step-end infinite;
}

.canopy-emblem {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.recycling-emblem {
    width: 120px;
    height: 120px;
}

.emblem-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 3s ease-in-out;
}

.emblem-path.drawn {
    stroke-dashoffset: 0;
}

/* ===== SPECIMEN GRID ===== */
.specimen-grid {
    position: relative;
    z-index: 1;
    padding: clamp(2rem, 5vw, 4rem);
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(1.2rem, 2.5vw, 2.4rem);
}

.specimen-grid .section-label {
    grid-column: 1 / -1;
}

/* ===== CARDS ===== */
.card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.08), 0 8px 32px rgba(31,38,24,0.12);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, backdrop-filter 0.3s ease, background 0.3s ease;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    background: rgba(255, 255, 255, 0.18);
}

.card-wide {
    grid-column: span 2;
}

.card-category {
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d4a24e;
    margin-bottom: 1rem;
}

.card-illustration {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.botanical-svg {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #2d6a4f;
    letter-spacing: 0.01em;
    margin-bottom: 0.8rem;
}

.card-narrative {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1rem, 1.1vw, 1.2rem);
    line-height: 1.72;
    max-width: 62ch;
    margin-bottom: 1rem;
    color: #2c2f27;
}

.card-narrative em {
    font-style: italic;
}

.card-metrics {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(45, 106, 79, 0.15);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #2d6a4f;
}

.metric-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #74a67e;
}

/* Card Wide Layout */
.card-wide-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.card-wide-illustration {
    flex: 0 0 160px;
}

.card-wide-illustration .botanical-svg {
    max-width: 160px;
}

.card-wide-text {
    flex: 1;
}

/* ===== VINE TIMELINE ===== */
.vine-timeline {
    position: relative;
    z-index: 1;
    padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 4rem);
    max-width: 900px;
    margin: 0 auto;
}

.vine-container {
    position: relative;
    min-height: 800px;
}

.vine-svg {
    position: absolute;
    left: 50%;
    top: 0;
    width: 80px;
    height: 100%;
    transform: translateX(-50%);
}

#vine-path {
    stroke: #4a7c59;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
}

.vine-leaf {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.vine-leaf.visible {
    opacity: 1;
}

.vine-nodes {
    position: relative;
    height: 800px;
}

.vine-node {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 60px);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.vine-node:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 60px);
    transform: translateX(20px);
}

.vine-node.visible {
    opacity: 1;
    transform: translateX(0);
}

.vine-node-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    max-width: 280px;
    box-shadow: 0 4px 20px rgba(31,38,24,0.08);
}

.vine-year {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #d4a24e;
    display: block;
    margin-bottom: 0.4rem;
}

.vine-node-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2c2f27;
}

/* ===== COMPOST FOOTER ===== */
.compost {
    position: relative;
    z-index: 1;
    background: #1f2618;
    padding: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 4rem);
    margin-top: 4rem;
}

.compost-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.compost-emblem {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-emblem {
    width: 60px;
    height: 60px;
}

.compost-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #a7c4a0;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
}

.compost-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.72;
    color: #74a67e;
    margin-bottom: 2rem;
}

.compost-meta {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(167, 196, 160, 0.5);
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== SEED NAVIGATION ===== */
.seed-nav {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.seed-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(31,38,24,0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease;
}

.seed-button:hover {
    transform: scale(1.1);
}

.seed-icon {
    width: 32px;
    height: 32px;
}

.seed-petals {
    position: absolute;
    bottom: 60px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transform-origin: bottom right;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.seed-petals.open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.petal {
    display: block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2d6a4f;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(31,38,24,0.1);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

.seed-petals.open .petal {
    opacity: 1;
    transform: translateY(0);
}

.seed-petals.open .petal:nth-child(1) { transition-delay: 0s; }
.seed-petals.open .petal:nth-child(2) { transition-delay: 0.05s; }
.seed-petals.open .petal:nth-child(3) { transition-delay: 0.1s; }
.seed-petals.open .petal:nth-child(4) { transition-delay: 0.15s; }
.seed-petals.open .petal:nth-child(5) { transition-delay: 0.2s; }

.petal:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #d4a24e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .card-wide {
        grid-column: span 1;
    }

    .card-wide-layout {
        flex-direction: column;
    }

    .card-wide-illustration {
        flex: none;
        display: flex;
        justify-content: center;
    }

    .vine-node {
        padding-right: calc(50% + 40px);
    }

    .vine-node:nth-child(even) {
        padding-left: calc(50% + 40px);
    }

    .vine-node-card {
        max-width: 220px;
    }

    .specimen-grid {
        grid-template-columns: 1fr;
    }
}
