/* ============================================================
   gazza.news - Botanical Newsprint Design
   Color Palette:
     Parchment Cream:   #F5EDE0
     Rich Bark:         #3E2716
     Deep Soil:         #3A2E25
     Moss Ink:          #5B7744
     Terracotta Blush:  #C4784A
     Sunbeam Gold:      #D4A54A
     Greenhouse Glass:  #8FB89A
     Loam Dark:         #2C1A0E
     Spore Dust:        #E8D5B7
     Bark Medium:       #5C4033
   ============================================================ */

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

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

body {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-weight: 400;
    color: #3A2E25;
    background-color: #F5EDE0;
    line-height: 1.72;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    position: relative;
}

/* --- Grain Texture Canvas --- */
#grain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    mix-blend-mode: multiply;
}

/* --- Parallax Leaf System --- */
#parallax-leaves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.parallax-leaf {
    position: absolute;
    opacity: 0.05;
    will-change: transform;
}

.parallax-leaf svg {
    width: 100%;
    height: 100%;
}

.leaf-1 {
    width: 400px;
    height: 600px;
    top: 5%;
    left: -5%;
    animation: leaf-rotate 45s linear infinite;
}

.leaf-2 {
    width: 500px;
    height: 340px;
    top: 15%;
    right: -8%;
    opacity: 0.04;
    animation: leaf-rotate 55s linear infinite reverse;
}

.leaf-3 {
    width: 350px;
    height: 560px;
    top: 35%;
    left: 10%;
    opacity: 0.06;
    animation: leaf-rotate 50s linear infinite;
}

.leaf-4 {
    width: 300px;
    height: 430px;
    top: 50%;
    right: 5%;
    opacity: 0.04;
    animation: leaf-rotate 60s linear infinite reverse;
}

.leaf-5 {
    width: 480px;
    height: 270px;
    top: 65%;
    left: -3%;
    opacity: 0.05;
    animation: leaf-rotate 48s linear infinite;
}

.leaf-6 {
    width: 320px;
    height: 560px;
    top: 80%;
    right: 12%;
    opacity: 0.04;
    animation: leaf-rotate 52s linear infinite reverse;
}

.leaf-7 {
    width: 420px;
    height: 240px;
    top: 25%;
    left: 55%;
    opacity: 0.03;
    animation: leaf-rotate 58s linear infinite;
}

.leaf-8 {
    width: 260px;
    height: 455px;
    top: 45%;
    left: 35%;
    opacity: 0.04;
    animation: leaf-rotate 42s linear infinite reverse;
}

@keyframes leaf-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Lens Flare System --- */
#flare-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.scroll-flare {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform;
}

.flare-a {
    width: 500px;
    height: 500px;
    top: 10%;
    left: 20%;
    background: radial-gradient(ellipse, rgba(212, 165, 74, 0.12) 0%, transparent 60%);
}

.flare-b {
    width: 400px;
    height: 400px;
    top: 40%;
    right: 15%;
    background: radial-gradient(ellipse, rgba(212, 165, 74, 0.08) 0%, transparent 55%);
}

.flare-c {
    width: 350px;
    height: 350px;
    top: 70%;
    left: 40%;
    background: radial-gradient(ellipse, rgba(196, 120, 74, 0.1) 0%, transparent 50%);
}

/* ============================================================
   SECTION 1: THE CANOPY
   ============================================================ */
.section-canopy {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    z-index: 10;
    background-color: #F5EDE0;
}

.canopy-perspective {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Canopy layers */
.canopy-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    will-change: transform;
}

.canopy-silhouette {
    opacity: 0.08;
}

.monstera-bg {
    width: 70vw;
    max-width: 700px;
    transform: translateZ(-100px) translateX(-15%) translateY(-5%);
}

.fern-mid {
    width: 80vw;
    max-width: 800px;
    transform: translateZ(-50px) translateX(10%) translateY(5%);
    opacity: 0.1;
}

.leaf-fg {
    width: 50vw;
    max-width: 500px;
    transform: translateZ(0px) translateX(20%) translateY(-10%);
    opacity: 0.12;
}

/* Canopy flares */
.canopy-flare {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
}

.canopy-flare.flare-1 {
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    top: -10%;
    left: -5%;
    background: radial-gradient(ellipse at 30% 20%, rgba(212, 165, 74, 0.35) 0%, transparent 60%);
    animation: flare-drift 20s ease-in-out infinite alternate;
}

.canopy-flare.flare-2 {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    top: 20%;
    right: -10%;
    background: radial-gradient(ellipse at 70% 40%, rgba(212, 165, 74, 0.2) 0%, transparent 55%);
    animation: flare-drift-2 25s ease-in-out infinite alternate;
}

.canopy-flare.flare-3 {
    width: 35vw;
    height: 35vw;
    max-width: 400px;
    max-height: 400px;
    bottom: 10%;
    left: 30%;
    background: radial-gradient(ellipse at 50% 60%, rgba(212, 165, 74, 0.15) 0%, transparent 50%);
    animation: flare-drift-3 18s ease-in-out infinite alternate;
}

@keyframes flare-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5vw, 3vh); }
}

@keyframes flare-drift-2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-4vw, 5vh); }
}

@keyframes flare-drift-3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(3vw, -4vh); }
}

/* Masthead */
.masthead {
    position: relative;
    z-index: 20;
    text-align: center;
    margin-bottom: 2rem;
}

.masthead-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: clamp(4rem, 10vw, 8rem);
    color: #3E2716;
    letter-spacing: 0.06em;
    line-height: 1.1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.08), 2px 2px 0 rgba(199, 166, 108, 0.2);
}

.masthead-tagline {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    color: #5B7744;
    transform: rotate(-2deg);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

/* Featured headline */
.featured-headline {
    position: relative;
    z-index: 20;
    text-align: center;
    max-width: 700px;
    padding: 0 2rem;
    margin-top: 1rem;
}

.featured-label {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.3vw, 1.3rem);
    color: #C4784A;
    transform: rotate(-2deg);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.featured-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    color: #3E2716;
    line-height: 1.18;
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.featured-summary {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    color: #3A2E25;
    line-height: 1.6;
    opacity: 0.85;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bob 2s ease-in-out infinite;
}

.seedling-icon {
    width: 30px;
    height: 45px;
}

.seedling-icon path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-seedling 1.5s ease-out 0.5s forwards;
}

@keyframes draw-seedling {
    to { stroke-dashoffset: 0; }
}

.scroll-text {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    font-size: 1rem;
    color: #5B7744;
    opacity: 0.7;
}

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.section-divider {
    position: relative;
    height: 15vh;
    min-height: 80px;
    max-height: 150px;
    width: 100%;
    z-index: 10;
    overflow: hidden;
}

.divider-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.divider-canopy-understory {
    background: linear-gradient(to bottom, #F5EDE0, #F5EDE0);
}

.divider-understory-floor {
    background: linear-gradient(to bottom, #E8D5B7, #F2E8DA);
}

.divider-floor-roots {
    background: linear-gradient(to bottom, #F2E8DA, #2C1A0E);
    height: 20vh;
    min-height: 100px;
    max-height: 200px;
}

/* ============================================================
   SECTION 2: THE UNDERSTORY
   ============================================================ */
.section-understory {
    position: relative;
    z-index: 10;
    padding: 4rem 2rem 6rem;
    background: linear-gradient(to bottom, #F5EDE0 0%, #E8D5B7 100%);
    min-height: 250vh;
}

.understory-title {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #3E2716;
    text-align: center;
    letter-spacing: 0.02em;
    line-height: 1.18;
    margin-bottom: 0.25rem;
}

.section-annotation {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.3vw, 1.3rem);
    color: #5B7744;
    text-align: center;
    transform: rotate(-2deg);
    margin-bottom: 3rem;
}

/* Understory Grid */
.understory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1200px;
}

/* Card variations */
.card-featured {
    grid-column: span 2;
    grid-row: span 1;
}

.card-tall {
    grid-column: span 1;
    grid-row: span 2;
}

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

/* Story Cards */
.story-card {
    position: relative;
    background: #F5EDE0;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(62, 39, 22, 0.15);
    transform: translateZ(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                filter 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(196, 120, 74, 0.15);
    border-radius: 6px;
    pointer-events: none;
}

/* Card flare */
.card-flare {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 95% 5%, rgba(212, 165, 74, 0.15) 0%, transparent 40%);
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0.6;
    mix-blend-mode: screen;
}

@media (hover: hover) {
    .story-card:hover {
        transform: translateY(-6px) translateZ(30px);
        box-shadow: 0 16px 48px rgba(62, 39, 22, 0.22);
    }

    .story-card:hover .card-flare {
        opacity: 1;
    }
}

/* Card botanical icon */
.card-botanical-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.card-botanical-icon svg {
    width: 100%;
    height: 100%;
}

.botanical-draw {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 0.4s ease-out;
}

.story-card.is-visible .botanical-draw {
    stroke-dashoffset: 0;
}

/* Card category */
.card-category {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.3vw, 1.15rem);
    color: #5B7744;
    display: inline-block;
    transform: rotate(-2deg);
    margin-bottom: 0.5rem;
}

/* Card headline */
.card-headline {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #3E2716;
    line-height: 1.25;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

/* Card summary */
.card-summary {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: #3A2E25;
    line-height: 1.6;
    flex-grow: 1;
    opacity: 0.85;
}

/* Card meta */
.card-meta {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #C4784A;
    margin-top: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Alternate card backgrounds */
.story-card:nth-child(even) {
    background: #EDE4D5;
}

/* ============================================================
   SECTION 3: THE FOREST FLOOR
   ============================================================ */
.section-floor {
    position: relative;
    z-index: 10;
    padding: 6rem 2rem 8rem;
    background: linear-gradient(to bottom, #F2E8DA 0%, #F5EDE0 30%, #F5EDE0 100%);
    min-height: 150vh;
}

.floor-flare {
    position: absolute;
    bottom: 5%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(ellipse at 20% 80%, rgba(196, 120, 74, 0.15) 0%, transparent 50%);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 0;
}

/* Fallen leaves */
.fallen-leaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.fallen-leaf {
    position: absolute;
    opacity: 0.05;
}

.fl-1 {
    width: 200px;
    top: 15%;
    left: 8%;
    transform: rotate(-15deg);
}

.fl-2 {
    width: 160px;
    top: 45%;
    right: 12%;
    transform: rotate(25deg);
}

.fl-3 {
    width: 180px;
    bottom: 20%;
    left: 60%;
    transform: rotate(-8deg);
}

/* Floor articles */
.floor-article {
    position: relative;
    z-index: 1;
    max-width: 52rem;
    margin: 0 auto 6rem;
}

.floor-article-header {
    margin-bottom: 2rem;
}

.floor-category {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.3vw, 1.3rem);
    color: #C4784A;
    display: inline-block;
    transform: rotate(-2deg);
    margin-bottom: 0.75rem;
}

.floor-headline {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #3E2716;
    line-height: 1.18;
    letter-spacing: 0.02em;
}

.floor-article-body {
    position: relative;
}

.floor-article-body p {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);
    color: #3A2E25;
    line-height: 1.78;
    letter-spacing: 0.01em;
    max-width: 38em;
    margin-bottom: 1.5rem;
}

/* Pull quotes */
.floor-pullquote {
    border-left: 3px solid #C4784A;
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    position: relative;
}

.floor-pullquote p {
    font-family: 'Lora', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.4rem, 3vw, 2.2rem) !important;
    color: #3E2716 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.02em;
    max-width: none !important;
    margin-bottom: 0.75rem !important;
}

.pullquote-attribution {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
    color: #5B7744;
    display: inline-block;
    transform: rotate(-1deg);
    font-style: normal;
}

/* ============================================================
   SECTION 4: THE ROOT SYSTEM
   ============================================================ */
.section-roots {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    background-color: #2C1A0E;
    padding: 6rem 2rem;
    overflow: hidden;
}

.roots-glow {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(ellipse at 50% 90%, rgba(212, 165, 74, 0.12) 0%, transparent 50%);
    pointer-events: none;
    mix-blend-mode: screen;
}

.mycorrhizal-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.network-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: draw-network 3s ease-out forwards;
}

@keyframes draw-network {
    to { stroke-dashoffset: 0; }
}

.network-node {
    opacity: 0;
    animation: node-appear 0.5s ease-out 2.5s forwards;
}

@keyframes node-appear {
    to { opacity: 1; }
}

/* Roots content */
.roots-content {
    position: relative;
    z-index: 5;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.roots-masthead {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #D4A54A;
    letter-spacing: 0.06em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 40px rgba(212, 165, 74, 0.2);
}

.roots-tagline {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    font-size: clamp(1rem, 1.5vw, 1.4rem);
    color: #8FB89A;
    margin-bottom: 4rem;
}

/* Roots navigation */
.roots-nav {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.roots-nav-group {
    text-align: left;
}

.roots-nav-heading {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1rem;
    color: #D4A54A;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.roots-link {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #F5EDE0;
    text-decoration: none;
    padding: 0.3rem 0;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
    position: relative;
}

.roots-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #C4784A;
    transition: width 0.3s ease;
}

@media (hover: hover) {
    .roots-link:hover {
        opacity: 1;
        color: #C4784A;
    }

    .roots-link:hover::after {
        width: 100%;
    }
}

/* Roots archive */
.roots-archive {
    margin-bottom: 3rem;
}

.roots-archive-label {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    font-size: 1.2rem;
    color: #5B7744;
    display: block;
    margin-bottom: 1rem;
}

.roots-archive-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.roots-archive-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #F5EDE0;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.archive-icon {
    width: 20px;
    height: 20px;
}

@media (hover: hover) {
    .roots-archive-link:hover {
        opacity: 0.9;
    }
}

/* Copyright */
.roots-copyright {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #F5EDE0;
    opacity: 0.3;
    margin-top: 2rem;
}

/* ============================================================
   ANIMATIONS - Entrance & Scroll
   ============================================================ */
.story-card {
    opacity: 0;
    transform: translateY(30px) translateZ(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                filter 0.4s ease;
}

.story-card.is-visible {
    opacity: 1;
    transform: translateY(0) translateZ(20px);
}

@media (hover: hover) {
    .story-card.is-visible:hover {
        transform: translateY(-6px) translateZ(30px);
        box-shadow: 0 16px 48px rgba(62, 39, 22, 0.22);
    }
}

.floor-article {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floor-article.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.floor-pullquote {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floor-pullquote.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   RESPONSIVE - Mobile adaptations
   ============================================================ */
@media (max-width: 1024px) {
    .understory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

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

    .card-tall {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .understory-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-featured,
    .card-wide {
        grid-column: span 1;
    }

    .card-tall {
        grid-row: span 1;
    }

    /* Reduce parallax leaves on mobile */
    .leaf-3,
    .leaf-5,
    .leaf-6,
    .leaf-7,
    .leaf-8 {
        display: none;
    }

    .leaf-1,
    .leaf-2,
    .leaf-4 {
        transform: scale(0.6);
    }

    .section-canopy {
        min-height: 100vh;
    }

    .roots-nav {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .roots-nav-group {
        text-align: center;
    }

    .featured-headline {
        padding: 0 1rem;
    }

    .section-understory {
        padding: 3rem 1rem 4rem;
    }

    .section-floor {
        padding: 4rem 1rem 6rem;
    }

    .section-roots {
        padding: 4rem 1rem;
    }
}

@media (max-width: 480px) {
    .masthead-title {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .featured-title {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }

    .story-card {
        padding: 1.25rem;
    }
}

/* ============================================================
   @supports - Graceful degradation
   ============================================================ */
@supports not (perspective: 1200px) {
    .canopy-perspective {
        perspective: none;
    }

    .canopy-silhouette {
        transform: none !important;
    }

    .story-card {
        transform: none !important;
    }
}

@supports not (mix-blend-mode: screen) {
    .canopy-flare,
    .card-flare,
    .scroll-flare,
    .floor-flare,
    .roots-glow {
        opacity: 0.3;
    }
}
