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

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

body {
    background-color: #f4f7f0;
    color: #2e2a25;
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.72;
    overflow-x: hidden;
}

/* === The Canopy (Top Bar) === */
#canopy {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(244, 247, 240, 0.7);
    border-bottom: 1px solid rgba(138, 158, 130, 0.15);
}

.canopy-name {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a2e1a;
}

.canopy-leaf {
    margin-left: 0.75rem;
    display: inline-flex;
    animation: leaf-drift 6s ease-in-out infinite alternate;
}

@keyframes leaf-drift {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(8deg); }
    100% { transform: translateY(1px) rotate(-4deg); }
}

/* === The Clearing (Hero) === */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 8vw, 6rem);
    padding-top: calc(56px + clamp(2rem, 8vw, 6rem));
    overflow: hidden;
}

.hero-bokeh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 120px at 15% 30%, rgba(212, 231, 197, 0.25) 0%, transparent 70%),
        radial-gradient(circle 80px at 75% 20%, rgba(201, 168, 76, 0.19) 0%, transparent 70%),
        radial-gradient(circle 160px at 55% 65%, rgba(212, 231, 197, 0.21) 0%, transparent 70%),
        radial-gradient(circle 60px at 85% 75%, rgba(232, 196, 184, 0.15) 0%, transparent 70%),
        radial-gradient(circle 200px at 30% 80%, rgba(212, 231, 197, 0.13) 0%, transparent 70%),
        radial-gradient(circle 90px at 65% 40%, rgba(201, 168, 76, 0.13) 0%, transparent 70%),
        radial-gradient(circle 140px at 45% 15%, rgba(232, 196, 184, 0.18) 0%, transparent 70%),
        radial-gradient(circle 100px at 90% 50%, rgba(212, 231, 197, 0.2) 0%, transparent 70%);
    animation: bokeh-drift 45s ease-in-out infinite alternate;
    will-change: transform;
    pointer-events: none;
}

@keyframes bokeh-drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.02); }
    66% { transform: translate(-15px, 10px) scale(0.98); }
    100% { transform: translate(10px, 20px) scale(1.01); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 50rem;
}

.hero-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 7rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 0.95;
    color: #1a2e1a;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.72;
    color: #3d6b4f;
    max-width: 34rem;
}

/* === The Understory (Content Zones) === */
#understory {
    display: grid;
    grid-template-columns: 1fr min(38rem, 90vw) 1fr;
    padding-bottom: 4rem;
}

.content-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr min(38rem, 90vw) 1fr;
}

.vine-divider {
    grid-column: 2;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.vine-divider::before {
    content: '';
    width: 60%;
    height: 1px;
    background: #8a9e82;
}

.vine-divider::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #8a9e82;
    border-radius: 50% 0;
    transform: rotate(45deg);
}

.content-block {
    grid-column: 2;
    position: relative;
    padding: 1rem 0 3rem;
}

.section-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #3d6b4f;
    margin-bottom: 1.25rem;
}

.content-block p {
    margin-bottom: 1.25rem;
    color: #2e2a25;
}

.content-block em {
    color: #3d6b4f;
    font-style: italic;
}

/* === Pull Quote Floats === */
.pull-quote-float {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
    margin-right: calc(-1 * min(4rem, (100vw - 38rem) / 4));
    width: 140px;
    text-align: center;
    position: relative;
    shape-outside: circle(50%);
}

.stat-label {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a9e82;
    margin-bottom: 0.25rem;
}

.stat-number {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: 0.04em;
    color: #c9a84c;
    line-height: 1;
    margin-bottom: 0.25rem;
}

/* === Floating Seed Pods === */
.seed-pod {
    display: block;
    width: 8px;
    height: 8px;
    border: 1px solid #c9a84c;
    border-radius: 50%;
    margin: 0.5rem auto 0;
    animation: seed-float 4s ease-in-out infinite alternate;
}

.seed-pod-2 {
    width: 6px;
    height: 6px;
    margin-left: 70%;
    animation-delay: -1.5s;
    animation-duration: 3.5s;
}

.seed-pod-3 {
    width: 5px;
    height: 5px;
    margin-left: 25%;
    animation-delay: -2.5s;
    animation-duration: 4.5s;
}

@keyframes seed-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

/* === Section Reveal Animation === */
.reveal-section .content-block {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease-out, transform 0.6s ease-out;
}

.reveal-section .content-block .section-heading {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease-out 0.15s, transform 0.6s ease-out 0.15s;
}

.reveal-section .content-block .pull-quote-float {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}

.reveal-section.revealed .content-block,
.reveal-section.revealed .content-block .section-heading,
.reveal-section.revealed .content-block .pull-quote-float {
    opacity: 1;
    transform: translateY(0);
}

/* === Shake Animation (Contamination) === */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-3px); }
    30%, 60%, 90% { transform: translateX(3px); }
}

.shake-active {
    animation: shake 0.5s ease-in-out 1;
}

/* === Alternating Section Tints === */
.content-section:nth-child(even) .content-block {
    padding: 2rem;
    border-radius: 8px;
    background: #e8c4b814;
}

/* === The Forest Floor (Footer) === */
#forest-floor {
    background: #1a2e1a;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-epigraph {
    font-family: 'Lora', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #d4e7c5;
    margin-bottom: 1rem;
    line-height: 1.72;
}

.footer-domain {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a9e82;
    font-variant: small-caps;
}

/* === Spore Particles === */
#spore-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.spore {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d4e7c5;
    opacity: 0;
    animation: spore-fade 2s ease-out forwards;
}

@keyframes spore-fade {
    0% { opacity: 0.4; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-30px) scale(0.5); }
}

/* === Leaf Cursor Trail === */
.leaf-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #3d6b4f;
    border-radius: 50% 0;
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 99;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

/* === Responsive === */
@media (max-width: 640px) {
    .pull-quote-float {
        float: none;
        margin: 0 0 1.5rem 0;
        width: 100%;
        shape-outside: none;
    }

    #understory {
        grid-template-columns: 1fr min(38rem, 92vw) 1fr;
    }
}
