/* =========================================================================
   THE VEGAN FACTS | UNIFIED EARTHY & ORGANIC DESIGN SYSTEM
   Supports Homepage Snap Portal + Deep-Dive Scrollytelling Sub-Pages
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..900;1,9..144,400..700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg-dark: #0a0e0b;          /* Deep organic peat forest */
    --bg-card: rgba(18, 25, 20, 0.9); /* Muted dark moss stone */
    --border-warm: rgba(163, 177, 138, 0.16); /* Gentle sage outline */
    --border-focus: rgba(112, 160, 125, 0.45);
    
    /* Earthy Tone Palette */
    --forest-emerald: #2d6a4f;  /* Deep lush woodland */
    --sage-leaf: #70a07d;        /* Soft botanical fern */
    --sage-light: #b7cebe;       /* Morning dew sage */
    --harvest-ochre: #d4973b;    /* Warm wheat / golden harvest */
    --terracotta: #c45b4c;       /* Warm clay soil / muted rust */
    
    /* Text Typography */
    --text-parchment: #f5f2eb;   /* Warm organic linen / cream */
    --text-muted: #b5afa0;       /* Muted limestone */
    --text-subtle: #787366;      /* Ancient tree bark */

    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-editorial: 'Lora', Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html, body {
    background-color: var(--bg-dark);
    color: var(--text-parchment);
    font-family: var(--font-body);
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* =========================================================================
   CINEMATIC FIXED BACKGROUND STAGE
   ========================================================================= */
.fixed-stage-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.fixed-backdrop-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.48) saturate(0.9);
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fixed-backdrop-layer.active {
    opacity: 1;
    animation: backdropCinematicDrift 28s ease-in-out infinite alternate;
}

@keyframes backdropCinematicDrift {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.05) translate(-1%, -0.8%);
    }
    100% {
        transform: scale(1.02) translate(0.8%, 0.5%);
    }
}

.stage-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(10, 16, 12, 0.3) 0%, rgba(10, 14, 11, 0.9) 85%), linear-gradient(180deg, rgba(10, 14, 11, 0.4) 0%, rgba(10, 14, 11, 0.85) 100%);
    z-index: 2;
}

/* =========================================================================
   TOP PROGRESS BAR & HEADER
   ========================================================================= */
#scroll-progress-container, .chapter-tracker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1000;
}
#scroll-progress-bar, .chapter-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--forest-emerald), var(--sage-leaf));
    transition: width 0.1s ease-out;
}

.story-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(180deg, rgba(10, 14, 11, 0.95) 0%, rgba(10, 14, 11, 0) 100%);
    backdrop-filter: blur(8px);
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-parchment);
    text-decoration: none;
}
.brand-title span {
    color: var(--sage-leaf);
    font-style: italic;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-pill-btn {
    background: rgba(30, 42, 33, 0.7);
    border: 1px solid var(--border-warm);
    color: var(--text-parchment);
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}
.nav-pill-btn:hover {
    background: rgba(45, 106, 79, 0.4);
    border-color: var(--sage-leaf);
}
.nav-pill-btn.active {
    background: var(--forest-emerald);
    color: #ffffff;
    border-color: var(--forest-emerald);
}

.nav-icon-btn {
    background: rgba(30, 42, 33, 0.75);
    border: 1px solid var(--border-warm);
    color: var(--text-parchment);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    padding: 0;
}
.nav-icon-btn:hover {
    background: rgba(45, 106, 79, 0.5);
    border-color: var(--sage-leaf);
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 0 16px rgba(112, 160, 125, 0.35);
}

/* =========================================================================
   HOMEPAGE SNAP CONTAINER & SECTIONS (ORIGINAL SNAP-PORTAL MECHANICS)
   ========================================================================= */
.snap-container {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    position: relative;
    z-index: 10;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.snap-container::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.snap-section {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: clamp(1.25rem, 3vh, 2.25rem) clamp(1rem, 2.5vw, 1.75rem);
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.topic-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text-parchment);
    margin-bottom: 2rem;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.learn-more-btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: rgba(20, 28, 22, 0.85);
    border: 1px solid var(--border-warm);
    color: var(--text-parchment);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.learn-more-btn:hover {
    background: var(--forest-emerald);
    border-color: var(--sage-leaf);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -4px rgba(45, 106, 79, 0.5);
}

.btn-clean-primary {
    background: var(--forest-emerald);
    border: 1px solid var(--sage-leaf);
    color: #ffffff;
    padding: 0.75rem 1.85rem;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(45, 106, 79, 0.4);
    white-space: nowrap;
}
.btn-clean-primary:hover {
    background: #38805f;
    border-color: var(--sage-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(45, 106, 79, 0.6);
}

.btn-clean-outline {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-warm);
    color: var(--text-parchment);
    padding: 0.75rem 1.6rem;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}
.btn-clean-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--sage-leaf);
    color: #ffffff;
    transform: translateY(-2px);
}

/* SIDE DOT NAVIGATION */
.dot-nav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 100;
}
.dot-nav-item {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}
.dot-nav-item:hover {
    background: var(--sage-light);
    transform: scale(1.3);
}
.dot-nav-item.active {
    background: var(--sage-leaf);
    box-shadow: 0 0 12px var(--sage-leaf);
    transform: scale(1.5);
}

/* REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.snap-section.is-active .reveal {
    opacity: 1;
    transform: translateY(0);
}

/* SEARCH NODE */
.search-art-node {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}
.ama-input-art {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(18, 25, 20, 0.9);
    border: 1px solid var(--border-warm);
    border-radius: 9999px;
    color: var(--text-parchment);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ama-input-art:hover {
    border-color: var(--sage-leaf);
    box-shadow: 0 0 20px rgba(112, 160, 125, 0.2);
}

/* =========================================================================
   SCROLLYTELLING ARCHITECTURE (FOR SUB-PAGES)
   ========================================================================= */
.scrolly-section {
    position: relative;
    width: 100%;
    min-height: 110vh;
    z-index: 10;
}

.story-track {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.story-step {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 0;
}

.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border-warm);
    border-radius: 18px;
    padding: clamp(1.25rem, 2.8vw, 2.25rem);
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 4rem);
    max-height: calc(100dvh - 4rem);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.story-card.story-show-fullscreen {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: hidden !important;
    padding: 0 !important;
    min-height: auto !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
}

.story-card.story-show-fullscreen .story-profiler-bg-canvas {
    display: none !important;
}

.section-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sage-leaf);
    display: block;
    margin-bottom: 0.75rem;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-parchment);
    margin-bottom: 1rem;
    letter-spacing: -0.015em;
}

.lead-sentence {
    font-family: var(--font-editorial);
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 1.5rem auto;
}

/* =========================================================================
   HERO CALL-TO-ACTION & STORY STEP STYLING
   ========================================================================= */
.story-profiler-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.15rem 3.2rem;
    background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 55%, #40916c 100%);
    border: 1px solid rgba(183, 206, 190, 0.4);
    border-radius: 9999px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 12px 32px -4px rgba(45, 106, 79, 0.65), 0 0 24px rgba(112, 160, 125, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    animation: heroCtaBreathing 3s ease-in-out infinite;
}
@keyframes heroCtaBreathing {
    0%, 100% {
        box-shadow: 0 12px 32px -4px rgba(45, 106, 79, 0.6), 0 0 20px rgba(112, 160, 125, 0.25);
    }
    50% {
        box-shadow: 0 16px 40px -4px rgba(45, 106, 79, 0.85), 0 0 35px rgba(112, 160, 125, 0.55);
    }
}
.hero-cta-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: 0.75s ease;
}
.hero-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 44px -4px rgba(45, 106, 79, 0.85), 0 0 36px rgba(112, 160, 125, 0.45);
    border-color: var(--sage-light);
    color: #ffffff;
}
.hero-cta-btn:hover::after {
    left: 140%;
}
.hero-cta-btn .btn-arrow {
    font-size: 1.2em;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}
.hero-cta-btn:hover .btn-arrow {
    transform: translateX(5px);
}

.story-stepper-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-warm);
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}
.story-stepper-btn:hover {
    background: rgba(45, 106, 79, 0.2);
    border-color: var(--sage-leaf);
}
.story-stepper-btn.active {
    background: rgba(45, 106, 79, 0.35);
    border-color: var(--sage-leaf);
    box-shadow: 0 0 14px rgba(112, 160, 125, 0.3);
}

.step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-parchment);
}
.story-stepper-btn.active .step-num {
    background: var(--forest-emerald);
    color: #ffffff;
}

.step-txt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}
.story-stepper-btn.active .step-txt {
    color: var(--text-parchment);
}

.stepper-line {
    width: 20px;
    height: 1px;
    background: var(--border-warm);
}

.story-flow-view {
    display: none;
    opacity: 0;
    position: relative;
    z-index: 2;
}
.story-flow-view.active {
    display: block;
    opacity: 1;
    transform: none;
}
.story-flow-view.is-exiting {
    display: block !important;
    animation: flowViewExit 0.22s cubic-bezier(0.4, 0, 1, 1) forwards !important;
    pointer-events: none;
}

@keyframes flowViewExit {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
        filter: blur(4px);
    }
}

/* Staggered Children Choreography for Elements Entering the Screen */
.story-flow-view.active .hero-live-badge-wrapper,
.story-flow-view.active .section-tag {
    animation: flowTagIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.story-flow-view.active .hero-headline {
    animation: flowHeadlineIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
.story-flow-view.active .lead-sentence {
    animation: flowTextIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

/* Step 0 Hero CTA Button Spring Bloom */
.story-flow-view.active .hero-cta-btn {
    animation: heroCtaPopIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.26s both;
}

/* Step 1 Diet Cards 1 to 4 Stagger */
.story-flow-view.active .diet-archetype-card:nth-child(1) {
    animation: flowCardPopIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.16s both;
}
.story-flow-view.active .diet-archetype-card:nth-child(2) {
    animation: flowCardPopIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.24s both;
}
.story-flow-view.active .diet-archetype-card:nth-child(3) {
    animation: flowCardPopIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.32s both;
}
.story-flow-view.active .diet-archetype-card:nth-child(4) {
    animation: flowCardPopIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.40s both;
}
.story-flow-view.active .diet-preview-pill {
    animation: flowPillSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.46s both;
}

/* Step 2 Activity Cards 1 to 3 Stagger */
.story-flow-view.active .activity-level-card:nth-child(1) {
    animation: flowCardPopIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s both;
}
.story-flow-view.active .activity-level-card:nth-child(2) {
    animation: flowCardPopIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.27s both;
}
.story-flow-view.active .activity-level-card:nth-child(3) {
    animation: flowCardPopIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.36s both;
}
.story-flow-view.active .activity-energy-pill {
    animation: flowPillSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both;
}

/* Step 3 Metric Cards 1 to 4 Stagger */
.story-flow-view.active .diet-info-pill-btn {
    animation: flowPillSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
.story-flow-view.active .metric-card:nth-child(1) {
    animation: flowCardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}
.story-flow-view.active .metric-card:nth-child(2) {
    animation: flowCardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
}
.story-flow-view.active .metric-card:nth-child(3) {
    animation: flowCardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}
.story-flow-view.active .metric-card:nth-child(4) {
    animation: flowCardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

/* Action Nav Buttons Stagger */
.story-flow-view.active .btn-clean-outline {
    animation: flowButtonIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.50s both;
}
.story-flow-view.active .btn-clean-primary {
    animation: flowButtonIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.54s both;
}

/* Keyframes Definitions */
@keyframes flowTagIn {
    0% {
        opacity: 0;
        transform: translateY(-14px) scale(0.9);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes flowHeadlineIn {
    0% {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes flowTextIn {
    0% {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes flowCardPopIn {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.88);
        filter: blur(6px);
    }
    70% {
        opacity: 1;
        transform: translateY(-4px) scale(1.025);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes flowCardSlideUp {
    0% {
        opacity: 0;
        transform: translateY(32px) scale(0.92);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes flowPillSlideIn {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.92);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroCtaPopIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.85);
        filter: blur(6px);
    }
    70% {
        opacity: 1;
        transform: translateY(-3px) scale(1.04);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes flowButtonIn {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dynamic Live Data Badge & Pulse */
.hero-live-badge-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(45, 106, 79, 0.25);
    border: 1px solid var(--sage-leaf);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage-light);
    box-shadow: 0 0 16px rgba(112, 160, 125, 0.25);
}
.live-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: liveDotBlink 1.8s ease-in-out infinite;
}
@keyframes liveDotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.7); }
}

/* Dynamic Live Diet & Activity Preview Ticker Pills */
.diet-preview-pill,
.activity-energy-pill {
    background: rgba(18, 26, 21, 0.92);
    border: 1px solid var(--border-warm);
    border-left: 3px solid var(--sage-leaf);
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-parchment);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.diet-archetype-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin: 1.25rem 0 1rem 0;
}
@media (min-width: 860px) {
    .diet-archetype-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.diet-archetype-card {
    background: rgba(18, 26, 21, 0.85);
    border: 1.5px solid var(--border-warm);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    text-align: center;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.25s ease, box-shadow 0.28s ease;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.diet-archetype-card:hover {
    border-color: var(--sage-leaf);
    background: rgba(28, 40, 32, 0.95);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(112, 160, 125, 0.2);
}
.diet-archetype-card:hover .archetype-icon {
    transform: scale(1.15) translateY(-3px);
}
.diet-archetype-card.active {
    background: rgba(45, 106, 79, 0.32);
    border-color: var(--sage-leaf);
    box-shadow: 0 0 28px rgba(112, 160, 125, 0.4), 0 8px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px) scale(1.02);
    animation: activeCardPulse 2.8s ease-in-out infinite;
}
@keyframes activeCardPulse {
    0%, 100% {
        box-shadow: 0 0 24px rgba(112, 160, 125, 0.35), 0 8px 24px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 38px rgba(112, 160, 125, 0.6), 0 12px 30px rgba(0, 0, 0, 0.6);
    }
}
.diet-archetype-card.active::before {
    content: "✓ ACTIVE";
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--sage-light);
    background: rgba(45, 106, 79, 0.7);
    padding: 2px 6px;
    border-radius: 99px;
    border: 1px solid var(--sage-leaf);
    animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes badgePop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.archetype-icon {
    font-size: 2.3rem;
    margin-bottom: 0.6rem;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.archetype-title {
    font-family: var(--font-heading);
    font-size: clamp(14px, 1.5vw, 16.5px);
    font-weight: 700;
    color: var(--text-parchment);
    line-height: 1.25;
    margin: 0;
}

.archetype-tag-pill {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sage-light);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-warm);
    border-radius: 999px;
    padding: 3px 8px;
    display: inline-block;
    align-self: center;
}

/* STEP 1: 2-QUESTION PERSONA BUILDER */
.persona-question-label {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sage-leaf);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.activity-level-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 768px) {
    .activity-level-grid {
        grid-template-columns: 1fr;
    }
}

.activity-level-card {
    background: rgba(18, 26, 21, 0.85);
    border: 1.5px solid var(--border-warm);
    border-radius: 12px;
    padding: 0.9rem 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.25s ease, box-shadow 0.28s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}
.activity-level-card:hover {
    border-color: var(--sage-leaf);
    background: rgba(28, 40, 32, 0.95);
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 16px rgba(112, 160, 125, 0.2);
}
.activity-level-card:hover .activity-card-icon {
    transform: scale(1.18) rotate(-4deg);
}
.activity-level-card.active {
    background: rgba(45, 106, 79, 0.32);
    border-color: var(--sage-leaf);
    box-shadow: 0 0 24px rgba(112, 160, 125, 0.35);
    transform: translateY(-3px);
    animation: activeCardPulse 2.8s ease-in-out infinite;
}
.activity-level-card.active::before {
    content: "✓";
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 9px;
    font-weight: 800;
    color: var(--sage-light);
    animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.activity-card-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.activity-card-title {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-parchment);
    line-height: 1.2;
    margin-bottom: 0.2rem;
}
.activity-card-sub {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
}

/* STEP 3: FOOD VOLUME GRID & CARDS */
.food-volume-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 768px) {
    .food-volume-grid {
        grid-template-columns: 1fr;
    }
}

.food-volume-card {
    background: rgba(18, 26, 21, 0.85);
    border: 1.5px solid var(--border-warm);
    border-radius: 12px;
    padding: 0.9rem 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.25s ease, box-shadow 0.28s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}
.food-volume-card:hover {
    border-color: var(--sage-leaf);
    background: rgba(28, 40, 32, 0.95);
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 16px rgba(112, 160, 125, 0.2);
}
.food-volume-card:hover .food-volume-icon {
    transform: scale(1.18) rotate(-4deg);
}
.food-volume-card.active {
    background: rgba(45, 106, 79, 0.32);
    border-color: var(--sage-leaf);
    box-shadow: 0 0 24px rgba(112, 160, 125, 0.35);
    transform: translateY(-3px);
    animation: activeCardPulse 2.8s ease-in-out infinite;
}
.food-volume-card.active::before {
    content: "✓";
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 9px;
    font-weight: 800;
    color: var(--sage-light);
    animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.food-volume-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.food-volume-title {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-parchment);
    line-height: 1.2;
    margin-bottom: 0.2rem;
}
.food-volume-sub {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
}

/* DYNAMIC PERSONA PREVIEW BOX */
.persona-preview-box {
    background: rgba(14, 20, 16, 0.95);
    border: 1px solid var(--border-warm);
    border-left: 4px solid var(--sage-leaf);
    border-radius: 12px;
    padding: 0.9rem 1.15rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    transition: all 0.3s ease;
}
.persona-preview-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.persona-preview-icon {
    font-size: 2rem;
    line-height: 1;
}
.persona-preview-title {
    font-family: var(--font-heading);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-parchment);
    margin-bottom: 0.15rem;
}
.persona-preview-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* REVEAL WRAPPER & COMPARISON BAR */
.impact-reveal-stage {
    display: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.impact-reveal-stage.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.comparison-delta-bar {
    background: rgba(14, 20, 16, 0.95);
    border: 1px solid var(--border-warm);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.delta-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.delta-pills-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.delta-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(45, 106, 79, 0.25);
    border: 1px solid var(--sage-leaf);
    color: var(--sage-light);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.delta-pill.red {
    background: rgba(196, 91, 76, 0.2);
    border-color: var(--terracotta);
    color: #fca5a5;
}

/* Diet Info Trigger Pill */
.diet-info-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: rgba(22, 32, 25, 0.85);
    border: 1px solid var(--border-warm);
    border-radius: 9999px;
    color: var(--text-parchment);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 0.65rem;
    backdrop-filter: blur(8px);
}
.diet-info-pill-btn:hover {
    background: rgba(45, 106, 79, 0.45);
    border-color: var(--sage-leaf);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.diet-info-i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 10.5px;
    font-weight: 800;
    color: var(--sage-light);
}

/* Floating Narrative Info Modal Overlay */
.narrative-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.narrative-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}
.narrative-modal-content {
    background: rgba(14, 20, 16, 0.98);
    border: 1px solid var(--border-warm);
    border-left: 4px solid var(--sage-leaf);
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    padding: 1.6rem 1.75rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.85);
    transform: translateY(12px) scale(0.96);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}
.narrative-modal-backdrop.open .narrative-modal-content {
    transform: translateY(0) scale(1);
}
.narrative-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    gap: 1rem;
}
.narrative-modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.35rem 0;
}
.narrative-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}
.narrative-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.narrative-modal-body {
    font-family: var(--font-editorial);
    font-size: 14px;
    line-height: 1.65;
    color: #d1d5db;
}
.narrative-modal-body strong {
    font-weight: 700;
    color: #ffffff;
}

.story-narrative-box {
    display: none;
}

.slider-step-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0.65rem;
    text-align: center;
}
.slider-step-labels div {
    font-size: clamp(10px, 1.1vw, 12px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-subtle);
    cursor: pointer;
    transition: all 0.2s ease;
}
.slider-step-labels div:hover {
    color: var(--text-parchment);
}

.sim-grid-original {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    width: 100%;
    margin: 1.25rem 0 0 0;
}
@media (min-width: 768px) {
    .sim-grid-original {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.metric-card {
    border: 1.5px solid var(--border-warm);
    background: rgba(14, 20, 16, 0.88);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    height: 172px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.28s ease;
    cursor: pointer;
    user-select: none;
}
.metric-card:hover {
    border-color: var(--sage-leaf);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(112, 160, 125, 0.3);
}

.metric-info-trigger {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(10, 14, 11, 0.8);
    border: 1px solid var(--border-warm);
    color: var(--sage-light);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    transition: all 0.2s ease;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.metric-card:hover .metric-info-trigger,
.metric-info-trigger:hover {
    background: var(--forest-emerald);
    color: #ffffff;
    border-color: var(--sage-leaf);
    transform: scale(1.1);
}

/* SLEEK INTERACTIVE INFO OVERLAY ON CARD (ON HOVER OR CLICK) */
.metric-card-popover {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 11, 0.96);
    backdrop-filter: blur(12px);
    z-index: 30;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.metric-card.popover-open .metric-card-popover,
.metric-card:hover .metric-card-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}
.popover-title {
    font-family: var(--font-heading);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--sage-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.popover-body {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-parchment);
    line-height: 1.45;
    margin: 0;
}
.popover-source {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-subtle);
    border-top: 1px solid var(--border-warm);
    padding-top: 0.3rem;
    margin-top: 0.3rem;
}

.metric-card canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.metric-card-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 11, 0.95) 0%, rgba(10, 14, 11, 0.45) 60%, transparent 100%);
    z-index: 10;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    pointer-events: none;
}

.metric-card-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.metric-card-val {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.3vw, 1.9rem);
    font-weight: 700;
    line-height: 1;
    color: var(--text-parchment);
}

.metric-card-sub {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-subtle);
    margin-top: 0.25rem;
}

.metric-card-delta-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(45, 106, 79, 0.35);
    border: 1px solid var(--sage-leaf);
    color: var(--sage-light);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    letter-spacing: 0.02em;
}
.metric-card-delta-badge.red {
    background: rgba(196, 91, 76, 0.25);
    border-color: var(--terracotta);
    color: #fca5a5;
}
.metric-card-delta-badge.neutral {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-warm);
    color: var(--text-muted);
}

.comp-val-row {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1;
    color: var(--text-parchment);
}
.comp-val-before {
    color: var(--text-muted);
    font-size: 0.88em;
    opacity: 0.8;
}
/* =========================================================================
   NATIONAL LAND SIMULATOR: 3D VOXEL UK MAP (LAND_USE.HTML)
   ========================================================================= */
#uk-map-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    cursor: ew-resize;
    position: relative;
    z-index: 50;
    margin: 0.5rem 0;
}

#uk-map-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 32px;
    width: 16px;
    background: #ffffff;
    cursor: ew-resize;
    margin-top: -12px;
    border-radius: 0;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 50;
    transition: transform 0.1s ease;
}
#uk-map-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#uk-map-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(90deg, #991b1b 0%, #334155 50%, #10b981 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

/* =========================================================================
   NATIONAL LAND SIMULATOR: 3D VOXEL UK MAP (OPTION 1: GLASS COCKPIT LAYOUT)
   ========================================================================= */
.simulator-card {
    max-width: 1160px;
    padding: 2.25rem 2.5rem;
    background: rgba(14, 20, 16, 0.95);
    border: 1px solid var(--border-warm);
    border-radius: 18px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Desktop Grid Layout */
.simulator-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "header map"
        "controls map";
    gap: 1.25rem 2.5rem;
    align-items: center;
    width: 100%;
}

.sim-header {
    grid-area: header;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
}
.sim-header-left {
    flex: 1;
}
.sim-header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sim-tag {
    color: var(--sage-leaf);
    margin-bottom: 0.35rem;
}
.sim-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    color: var(--text-parchment);
}
.sim-desc {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
    line-height: 1.6;
}

.sim-mobile-pct-badge {
    display: none;
    align-items: center;
    padding: 4px 11px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #10b981;
    font-family: monospace;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 999px;
    letter-spacing: 0.04em;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.btn-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}
.btn-info-icon:hover {
    background: rgba(45, 106, 79, 0.4);
    border-color: var(--sage-leaf);
    color: #ffffff;
    transform: scale(1.08);
}

/* 3D Canvas Center/Right */
.sim-map-wrapper {
    grid-area: map;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 440px;
    position: relative;
}
.sim-threejs-canvas {
    width: 100%;
    height: 480px;
    max-height: 520px;
    aspect-ratio: 1/1;
    cursor: grab;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sim-threejs-canvas:active {
    cursor: grabbing;
}

/* Controls Column */
.sim-controls-wrapper {
    grid-area: controls;
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    max-width: 440px;
}

.sim-desktop-percentage {
    margin-bottom: 1.25rem;
}
.sim-giant-pct {
    font-family: monospace;
    font-size: clamp(3.5rem, 6.5vw, 5.2rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.05em;
    margin: 0;
}
.sim-pct-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #10b981;
    margin-top: 0.35rem;
}

.sim-slider-container {
    margin-bottom: 1.25rem;
    width: 100%;
}
.sim-slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-subtle);
    margin-top: 0.4rem;
    font-family: monospace;
}

.sim-legend-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}
.sim-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sim-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}
.sim-legend-text {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #cbd5e1;
}

.sim-action-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.sim-btn {
    padding: 8px 16px;
    font-size: 11.5px;
}

/* Mobile Cockpit Breakpoint (< 860px) */
@media (max-width: 859px) {
    .story-step {
        padding: 3.75rem 0 1.5rem 0;
        min-height: 100svh;
    }
    .story-track {
        padding: 0 0.85rem;
    }
    .simulator-card {
        padding: 1.1rem 1rem;
        border-radius: 16px;
        margin: 0.25rem auto;
        min-height: auto;
    }
    .simulator-layout {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }
    .sim-header {
        margin-bottom: 0;
        align-items: center;
    }
    .sim-tag {
        font-size: 9px;
        letter-spacing: 0.1em;
        margin-bottom: 0.15rem;
    }
    .sim-title {
        font-size: 1.35rem;
        margin-bottom: 0;
        line-height: 1.1;
    }
    .sim-desc {
        display: none;
    }
    .sim-mobile-pct-badge {
        display: inline-flex;
    }
    .sim-desktop-percentage {
        display: none;
    }
    .sim-map-wrapper {
        min-height: unset;
        height: 270px;
        max-height: 280px;
        margin: 0.2rem 0;
    }
    .sim-threejs-canvas {
        height: 100%;
        max-height: 280px;
    }
    .sim-controls-wrapper {
        max-width: 100%;
        gap: 0.5rem;
    }
    .sim-slider-container {
        margin-bottom: 0.2rem;
    }
    .sim-slider-ticks {
        font-size: 9px;
        margin-top: 0.25rem;
    }
    #uk-map-slider::-webkit-slider-thumb {
        height: 26px;
        width: 14px;
        margin-top: -9px;
    }
    .sim-legend-container {
        padding-top: 0.4rem;
        margin-bottom: 0.4rem;
        gap: 0.35rem 0.65rem;
        justify-content: center;
    }
    .sim-legend-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
    }
    .sim-legend-text {
        font-size: 8px;
        letter-spacing: 0.04em;
    }
    .sim-action-row {
        gap: 0.4rem;
        margin-top: 0.1rem;
    }
    .sim-btn {
        flex: 1;
        text-align: center;
        padding: 6px 8px;
        font-size: 10.5px;
    }
}

/* =========================================================================
   UK MAJOR RIVERS HEALTH SIMULATOR (CLEAN MINIMALIST LAYOUT)
   ========================================================================= */
.river-simulator-card {
    max-width: 1100px;
    padding: 2.75rem 3rem;
    background: rgba(14, 20, 16, 0.95);
    border: 1px solid var(--border-warm);
    border-radius: 20px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.river-sim-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.river-sim-info {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.river-sim-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
    font-family: monospace;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}

.river-big-stat-wrap {
    margin: 1.25rem 0 1.5rem 0;
}

.river-big-stat {
    font-family: monospace;
    font-size: clamp(3.2rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #ef4444;
    margin: 0;
    transition: color 0.3s ease;
}

.river-big-stat-lbl {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cbd5e1;
    margin-top: 0.4rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.river-toggle-section {
    margin: 0.5rem 0 1.25rem 0;
    width: 100%;
}

.river-toggle-wrapper {
    display: flex;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 5px;
    gap: 6px;
    width: 100%;
}

.river-toggle-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.river-toggle-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.river-toggle-btn.active[data-mode="current"] {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
}

.river-toggle-btn.active[data-mode="vegan"] {
    background: rgba(2, 132, 199, 0.22);
    border-color: #38bdf8;
    color: #7dd3fc;
    box-shadow: 0 0 16px rgba(2, 132, 199, 0.35);
}

.toggle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dot-red {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.dot-blue {
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
}

/* Map SVG Container */
.river-sim-map-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.river-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: radial-gradient(circle at center, rgba(16, 32, 24, 0.7) 0%, rgba(8, 14, 11, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.25rem 1rem 0.75rem 1rem;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.uk-rivers-svg-canvas {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5));
}

.uk-land-shape {
    fill: #14221a;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1.2px;
    stroke-linejoin: round;
    transition: fill 0.3s ease;
}

.uk-river-path {
    fill: none;
    stroke: #dc2626;
    stroke-width: 3.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
    cursor: pointer;
    transition: stroke 0.35s ease, filter 0.35s ease, stroke-width 0.2s ease, opacity 0.2s ease;
    filter: drop-shadow(0 0 3px rgba(220, 38, 38, 0.7));
}

.uk-river-path:hover, .uk-river-path.active {
    stroke-width: 6.5px;
    opacity: 1;
    filter: drop-shadow(0 0 8px #ffffff);
}

.river-label {
    fill: #94a3b8;
    font-size: 8.5px;
    font-weight: 800;
    font-family: monospace;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.02em;
}

.river-map-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 10px;
    color: var(--text-muted);
}

.riv-leg-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.riv-dot-polluted {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc2626;
}

.riv-dot-clean {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0284c7;
}

.riv-hint {
    font-size: 9.5px;
    color: var(--sage-leaf);
    font-family: monospace;
}

/* Floating River Popup Card */
.river-popup-card {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(10, 16, 13, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-left-color 0.25s ease;
    z-index: 10;
}

.river-popup-card.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.river-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.river-popup-title-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.river-popup-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
    flex-shrink: 0;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.river-popup-title {
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.river-popup-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.river-popup-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.river-popup-body {
    font-size: 11px;
    line-height: 1.45;
    color: #d1d5db;
}

/* Mobile Layout (< 860px) */
@media (max-width: 859px) {
    .river-simulator-card {
        padding: 1.35rem 1.1rem;
        border-radius: 18px;
        margin: 0.5rem auto;
    }
    .river-sim-layout {
        display: flex;
        flex-direction: column;
        gap: 0.9rem;
    }
    .river-sim-info {
        width: 100%;
    }
    .river-sim-info .hero-headline {
        font-size: 1.45rem !important;
        margin-bottom: 0.2rem !important;
    }
    .river-sim-info .sim-river-desc {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 0.35rem;
    }
    .river-big-stat-wrap {
        margin: 0.6rem 0;
    }
    .river-big-stat {
        font-size: 2.8rem;
    }
    .river-big-stat-lbl {
        font-size: 10px;
    }
    .river-sim-map-container {
        margin: 0;
        width: 100%;
    }
    .river-map-wrapper {
        max-width: 320px;
        padding: 0.85rem 0.75rem 0.6rem 0.75rem;
        margin: 0 auto;
    }
    .uk-river-path {
        stroke-width: 4px;
    }
    .river-label {
        font-size: 8px;
    }
    .river-toggle-section {
        margin: 0.4rem 0 0.6rem 0;
    }
    .river-toggle-btn {
        padding: 8px 12px;
        font-size: 11.5px;
        gap: 6px;
    }
}

/* =========================================================================
   CINEMATIC STORY EXPERIENCE (STEP 04: THE TRANSFORMATION)
   ========================================================================= */
.story-show-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
}

/* The Motion Backdrop Canvas */
.storyline-motion-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    border-radius: 18px;
}

/* The Stage */
.story-show-stage {
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 5;
    width: 100%;
}

/* Animated Story Beat Card */
.story-beat-card {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 0.5rem;
    width: 100%;
}

.story-beat-lead {
    font-family: var(--font-body);
    font-size: clamp(13px, 1.5vw, 15px);
    font-weight: 600;
    color: var(--sage-leaf);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    min-height: 1.4rem;
}

.story-lead-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(4px);
    filter: blur(2px);
    transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}
.story-lead-word.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

.story-beat-hero-number {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1rem;
    min-height: 3.5rem;
}

.story-hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    filter: blur(3px);
    background: linear-gradient(110deg, #ffffff 0%, #f5f2eb 40%, var(--sage-light) 75%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
    animation: text-shimmer-ambient 6s ease infinite;
}
.story-hero-word.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

@keyframes text-shimmer-ambient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.story-beat-sub {
    font-family: var(--font-editorial);
    font-size: clamp(16.5px, 2vw, 20px);
    line-height: 1.7;
    color: #e5e0d5;
    max-width: 660px;
    margin: 0 auto;
    min-height: 3.5rem;
}

.story-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(6px);
    filter: blur(2px);
    transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}
.story-word.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

/* Interactive Visualizer Card (Beat 3) */
.story-visualizer-card {
    width: 100%;
    max-width: 800px;
    animation: beatCardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Progress Dots Removed for Clean Minimalist Aesthetic */
.story-dot-indicator {
    display: none !important;
}

/* Story Controls Bar at Bottom: [ ℹ ] [ ← Back ] [ Next → ] [ ⏸ ] */
/* STANDARD INLINE STORY CONTROLS (Inside Cards across index.html, health.html, etc.) */
.story-show-controls {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    width: 100%;
}
.story-show-controls .btn-clean-outline,
.story-show-controls .btn-clean-primary {
    white-space: nowrap;
    padding: 0.65rem 1.4rem;
    font-size: clamp(12.5px, 2.6vw, 14px);
    border-radius: 9999px;
    width: auto;
}

/* FIXED SCREEN-BOTTOM CENTERED NAVIGATION BAR (Exclusively for land_use.html: [ ← Back ] [ ⏸ ] [ Next → ]) */
.story-screen-bottom-bar {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: grid;
    grid-template-columns: 120px 38px 120px;
    align-items: center;
    justify-items: center;
    gap: 0.65rem;
    padding: 6px 12px;
    width: auto;
    background: rgba(14, 20, 16, 0.88);
    border: 1px solid var(--border-warm);
    border-radius: 9999px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), 0 0 24px rgba(45, 106, 79, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.story-screen-bottom-bar .btn-clean-outline,
.story-screen-bottom-bar .btn-clean-primary {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    padding: 0.45rem 0.5rem;
    font-size: clamp(12px, 2.5vw, 13.5px);
    border-radius: 9999px;
}

/* SEPARATE BOTTOM-LEFT FLOATING METHODOLOGY BUTTON */
.story-screen-bottom-left-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 1000;
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 20, 16, 0.88);
    border: 1.5px solid var(--border-warm);
    border-radius: 50%;
    color: var(--text-parchment);
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
.story-screen-bottom-left-btn:hover {
    background: rgba(45, 106, 79, 0.95);
    border-color: var(--sage-leaf);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 16px 32px rgba(45, 106, 79, 0.45);
}
.story-screen-bottom-left-btn .citations-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: currentColor;
}

.nav-control-icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-warm);
    border-radius: 50%;
    color: var(--text-parchment);
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
.nav-control-icon-btn:hover {
    background: rgba(45, 106, 79, 0.85);
    border-color: var(--sage-leaf);
    color: #ffffff;
    transform: scale(1.06);
}
.nav-control-icon-btn.play-pause-center-btn {
    background: rgba(45, 106, 79, 0.25);
    border-color: rgba(112, 160, 125, 0.4);
}
.nav-control-icon-btn.is-paused {
    background: rgba(45, 106, 79, 0.95);
    border-color: var(--sage-light);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(112, 160, 125, 0.6);
}
.nav-control-icon-btn .play-pause-icon,
.nav-control-icon-btn .citations-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: currentColor;
}

.curtain-wipe-container {
    position: relative;
    width: 100%;
    height: 310px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-warm);
    background: #0e1410;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    user-select: none;
    touch-action: none;
    margin-bottom: 0.5rem;
    cursor: ew-resize;
}

.curtain-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.curtain-layer canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.curtain-layer-before {
    z-index: 1;
    clip-path: inset(0 calc(100% - var(--curtain-pos, 50%)) 0 0);
}

.curtain-layer-after {
    z-index: 2;
    clip-path: inset(0 0 0 var(--curtain-pos, 50%));
}

/* Layer Badges and Callouts */
.curtain-overlay-info {
    position: absolute;
    display: flex;
    flex-direction: column;
    z-index: 10;
    pointer-events: none;
    max-width: 44%;
}
.curtain-overlay-info.top-left {
    top: 14px;
    left: 16px;
    align-items: flex-start;
    text-align: left;
}
.curtain-overlay-info.top-right {
    top: 14px;
    right: 16px;
    align-items: flex-end;
    text-align: right;
}
.curtain-overlay-info.bottom-left {
    bottom: 14px;
    left: 16px;
    align-items: flex-start;
    text-align: left;
}
.curtain-overlay-info.bottom-right {
    bottom: 14px;
    right: 16px;
    align-items: flex-end;
    text-align: right;
}

.curtain-side-tag {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 0.2rem;
}
.curtain-side-tag.before {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    border: 1px solid var(--border-warm);
}
.curtain-side-tag.after {
    background: rgba(45, 106, 79, 0.55);
    color: var(--sage-light);
    border: 1px solid var(--sage-leaf);
}

.curtain-side-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-parchment);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.curtain-stat-val {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.6vw, 1.95rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-parchment);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}
.curtain-stat-sub {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.35;
    margin-top: 0.15rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Draggable Divider & Handle */
.curtain-divider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--curtain-pos, 50%);
    width: 2px;
    background: #ffffff;
    z-index: 20;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

.curtain-handle-knob {
    position: absolute;
    top: 50%;
    left: var(--curtain-pos, 50%);
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(18, 26, 21, 0.92);
    border: 2px solid #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 16px rgba(112, 160, 125, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    z-index: 25;
    pointer-events: none;
    letter-spacing: -1px;
}

/* Curtain Slide Guide Hint */
.curtain-slide-hint {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 14, 11, 0.95);
    border: 1.5px solid var(--sage-leaf);
    color: var(--sage-light);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(112, 160, 125, 0.35);
    animation: hintBob 1.8s ease-in-out infinite;
    transition: opacity 0.42s ease, transform 0.35s ease;
}
.curtain-slide-hint::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--sage-leaf) transparent transparent transparent;
}
@keyframes hintBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}
.curtain-slide-hint.dismissed {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
}

/* 4 Quick-Jump Summary Cards Below the Curtain */
.curtain-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
    .curtain-summary-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.85rem;
    }
}

.curtain-summary-card {
    background: rgba(18, 26, 21, 0.85);
    border: 1px solid var(--border-warm);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    position: relative;
}
.curtain-summary-card:hover {
    background: rgba(30, 44, 34, 0.95);
    border-color: var(--sage-leaf);
    transform: translateY(-2px);
}
.curtain-summary-card.active {
    background: rgba(45, 106, 79, 0.28);
    border-color: var(--sage-leaf);
    box-shadow: 0 0 16px rgba(112, 160, 125, 0.25);
}

.curtain-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}
.curtain-card-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.curtain-card-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(45, 106, 79, 0.3);
    color: var(--sage-light);
    border: 1px solid rgba(112, 160, 125, 0.4);
}
.curtain-card-badge.red {
    background: rgba(196, 91, 76, 0.25);
    color: #fca5a5;
    border-color: rgba(196, 91, 76, 0.4);
}
.curtain-card-badge.neutral {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border-color: var(--border-warm);
}

.curtain-card-values {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-parchment);
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}
.curtain-card-val-before {
    color: var(--text-muted);
    font-size: 0.88em;
}
.curtain-card-arrow {
    color: var(--sage-leaf);
    font-size: 0.75em;
}

/* =========================================================================
/* =========================================================================
   VEGAN LIFETIME JOURNEY & LEGACY CALCULATOR
   ========================================================================= */
.duration-date-card {
    background: rgba(18, 26, 21, 0.9);
    border: 1.5px solid var(--border-warm);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-width: 440px;
    margin: 0 auto 1.25rem auto;
    transition: all 0.25s ease;
}
.duration-date-card:hover {
    border-color: var(--sage-leaf);
    background: rgba(28, 40, 32, 0.95);
}

.duration-date-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sage-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.calendar-date-input {
    background: rgba(10, 14, 11, 0.9);
    border: 1.5px solid var(--border-warm);
    border-radius: 12px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    padding: 0.75rem 1.35rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color-scheme: dark;
    width: 100%;
    max-width: 280px;
    text-align: center;
}
.calendar-date-input:focus {
    border-color: var(--sage-leaf);
    box-shadow: 0 0 16px rgba(112, 160, 125, 0.4);
}

.duration-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.35rem;
    background: rgba(45, 106, 79, 0.25);
    border: 1px solid var(--sage-leaf);
    border-radius: 9999px;
    font-size: 13px;
    color: var(--sage-light);
    margin: 0 auto;
}
.duration-summary-pill strong {
    color: #ffffff;
    font-weight: 800;
}

/* Step 06 Lifetime Milestone Badge */
.lifetime-milestone-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.25rem;
    background: rgba(45, 106, 79, 0.35);
    border: 1px solid var(--sage-leaf);
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(112, 160, 125, 0.3);
}

/* =========================================================================
   METRIC ROWS & COMPARISON GRIDS
   ========================================================================= */
.metric-row-clean {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.metric-item {
    border-top: 1px solid var(--border-warm);
    padding-top: 1rem;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1;
    color: var(--sage-leaf);
    margin-bottom: 0.35rem;
}
.metric-value.red { color: var(--terracotta); }

.metric-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* MEAL SWAP ENGINE */
.meal-selector-pills {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.meal-pill {
    background: rgba(30, 42, 33, 0.6);
    border: 1px solid var(--border-warm);
    color: var(--text-muted);
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.meal-pill:hover {
    color: var(--text-parchment);
    border-color: var(--sage-leaf);
}
.meal-pill.active {
    background: var(--forest-emerald);
    color: #ffffff;
    border-color: var(--forest-emerald);
}

.clean-swap-display {
    text-align: left;
}

.clean-swap-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-parchment);
    margin-bottom: 1rem;
    text-align: center;
}

.clean-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.comparison-side {
    background: rgba(14, 20, 16, 0.85);
    border: 1px solid var(--border-warm);
    border-radius: 12px;
    padding: 1.25rem;
}
.comparison-side.animal {
    border-left: 3px solid var(--terracotta);
}
.comparison-side.plant {
    border-left: 3px solid var(--sage-leaf);
    background: rgba(45, 106, 79, 0.15);
}

.comparison-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    display: block;
}
.comparison-side.animal .comparison-tag { color: var(--terracotta); }
.comparison-side.plant .comparison-tag { color: var(--sage-leaf); }

.stat-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
}
.stat-line:last-child { border-bottom: none; }
.stat-line span { color: var(--text-muted); }
.stat-line strong { color: var(--text-parchment); font-weight: 700; }

/* BUTTONS */
.btn-clean-primary {
    background: var(--forest-emerald);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.6rem;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-clean-primary:hover {
    background: #367d5e;
    transform: translateY(-1px);
}

.btn-clean-outline {
    background: transparent;
    color: var(--text-parchment);
    border: 1px solid var(--border-warm);
    padding: 0.75rem 1.6rem;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-clean-outline:hover {
    border-color: var(--sage-leaf);
    background: rgba(45, 106, 79, 0.2);
}

/* WARM SLIDER TRACK */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}
input[type=range]:focus {
    outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--forest-emerald) 0%, var(--harvest-ochre) 50%, var(--terracotta) 100%);
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #f7f4ea;
    cursor: pointer;
    margin-top: -6px;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* =========================================================================
   CINEMATIC MOTION GRAPHICS INTRO (LIVING ORGANIC ENERGY & LIGHT SEQUENCE)
   ========================================================================= */
.studio-intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(circle at center, #0e1610 0%, #060907 70%, #020403 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    cursor: pointer;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease, visibility 0.9s ease;
    will-change: opacity, transform, filter;
}

.studio-intro-overlay.dismissed {
    opacity: 0;
    transform: scale(1.05);
    filter: blur(8px);
    visibility: hidden;
    pointer-events: none;
}

.intro-canvas-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.studio-intro-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(112, 160, 125, 0.22) 0%, rgba(45, 106, 79, 0.08) 50%, transparent 70%);
    filter: blur(80px);
    animation: intro-glow-pulse 4s infinite alternate ease-in-out;
    pointer-events: none;
    z-index: 2;
}

.studio-intro-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: intro-scale-drift 4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Kinetic Animated SVG Emblem */
.studio-intro-emblem-wrap {
    width: 84px;
    height: 84px;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-intro-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 16px rgba(112, 160, 125, 0.45));
}

.svg-orbit {
    transform-origin: center;
    animation: svg-draw-orbit 1.5s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards, svg-orbit-rotate 24s 1.6s linear infinite;
}

.svg-orbit-inner {
    transform-origin: center;
    animation: svg-draw-orbit 1.3s 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards, svg-orbit-counter 18s 1.55s linear infinite;
}

.svg-stem {
    animation: svg-draw-stroke 1.4s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.svg-leaf-left {
    animation: svg-draw-stroke 1.2s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.svg-seed {
    opacity: 0;
    transform-origin: 50px 72px;
    animation: svg-seed-emerge 0.8s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes svg-draw-orbit {
    0% { stroke-dashoffset: 264; opacity: 0; }
    30% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes svg-orbit-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes svg-orbit-counter {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes svg-draw-stroke {
    0% { stroke-dashoffset: 100; opacity: 0; }
    30% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes svg-seed-emerge {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

.studio-intro-pre {
    font-family: var(--font-body);
    font-size: clamp(10px, 1.2vw, 12.5px);
    font-weight: 800;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--sage-light);
    opacity: 0;
    transform: translateY(12px);
    animation: intro-fade-up 1.2s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin-bottom: 1rem;
}

.studio-intro-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7.5vw, 6.2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
    color: #f7f4ea;
    background: linear-gradient(110deg, #b5afa0 0%, #ffffff 25%, #f7f4ea 45%, #d4973b 65%, #b7cebe 85%, #b5afa0 100%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 45px rgba(112, 160, 125, 0.35);
    opacity: 0;
    transform: scale(0.92);
    animation: intro-title-emerge 1.4s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards, title-light-sweep 4s 1.5s infinite ease-in-out;
}

@keyframes title-light-sweep {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.studio-intro-divider {
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--sage-leaf), var(--harvest-ochre), transparent);
    margin: 1.5rem auto;
    opacity: 0;
    animation: intro-divider-expand 1.4s 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.studio-intro-sub {
    font-family: var(--font-editorial);
    font-style: italic;
    font-size: clamp(13px, 1.6vw, 17px);
    letter-spacing: 0.18em;
    color: #b5afa0;
    opacity: 0;
    transform: translateY(-8px);
    animation: intro-fade-up 1.2s 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.studio-intro-prompt {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 2.75rem;
    padding: 0.7rem 1.6rem;
    background: rgba(22, 32, 25, 0.7);
    border: 1px solid var(--border-warm);
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-parchment);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(12px);
    animation: intro-fade-up 1s 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards, prompt-breathing 2.4s 2.6s infinite ease-in-out;
    transition: all 0.25s ease;
}
.studio-intro-prompt:hover {
    border-color: var(--sage-leaf);
    background: rgba(45, 106, 79, 0.35);
    transform: translateY(-2px);
}

.studio-prompt-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sage-leaf);
    box-shadow: 0 0 10px var(--sage-leaf);
    animation: dot-pulse 1.8s infinite alternate ease-in-out;
}

@keyframes prompt-breathing {
    0%, 100% { opacity: 0.85; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); border-color: var(--sage-leaf); }
}

@keyframes dot-pulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 1; }
}

@keyframes intro-glow-pulse {
    0% { transform: scale(0.9) rotate(0deg); opacity: 0.6; }
    100% { transform: scale(1.15) rotate(15deg); opacity: 0.9; }
}

@keyframes intro-scale-drift {
    0% { transform: scale(0.98); }
    100% { transform: scale(1.02); }
}

@keyframes intro-fade-up {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes intro-title-emerge {
    0% { opacity: 0; transform: scale(0.92) translateY(16px); filter: blur(10px); }
    60% { filter: blur(0px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes intro-divider-expand {
    0% { width: 0; opacity: 0; }
    100% { width: 140px; opacity: 0.8; }
}

@keyframes intro-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* =========================================================================
   GUIDED LAND USE & REWILDING STORY SHOW STYLING
   ========================================================================= */
.land-story-wrapper {
    min-height: calc(100vh - 4.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem clamp(2rem, 6vw, 4.5rem) 6rem clamp(2rem, 6vw, 4.5rem);
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.land-story-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    text-align: center;
    overflow: visible;
}

.land-story-flow-view {
    display: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.land-story-flow-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: beatCardFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.land-story-flow-view.is-exiting {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
}

/* Thermodynamic Calorie Comparison Box */
.thermo-diagram-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0 1.25rem 0;
    text-align: left;
}
@media (min-width: 640px) {
    .thermo-diagram-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.thermo-card {
    background: rgba(10, 14, 11, 0.85);
    border: 1.5px solid var(--border-warm);
    border-radius: 14px;
    padding: 1.25rem;
    position: relative;
    transition: all 0.25s ease;
}
.thermo-card.bad {
    border-color: rgba(196, 91, 76, 0.4);
    background: linear-gradient(135deg, rgba(196, 91, 76, 0.08) 0%, rgba(10, 14, 11, 0.9) 100%);
}
.thermo-card.good {
    border-color: rgba(112, 160, 125, 0.4);
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.15) 0%, rgba(10, 14, 11, 0.9) 100%);
}
.thermo-card-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.thermo-metric-val {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}
.thermo-card-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Import vs Domestic Food Paradox Comparison */
.import-paradox-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0 1.25rem 0;
    text-align: left;
}
@media (min-width: 640px) {
    .import-paradox-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.import-card {
    background: rgba(10, 14, 11, 0.88);
    border: 1.5px solid var(--border-warm);
    border-radius: 14px;
    padding: 1.25rem;
    position: relative;
}
.import-card.current {
    border-left: 4px solid var(--terracotta);
}
.import-card.vegan {
    border-left: 4px solid var(--sage-leaf);
}
.import-card-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}
.import-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.import-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
}
.import-stat-row:last-child {
    border-bottom: none;
}
.import-stat-label {
    color: var(--text-muted);
}
.import-stat-val {
    font-weight: 700;
    color: var(--text-parchment);
}

/* Rewilding Pillars Matrix */
.rewilding-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin: 1.5rem 0 1.25rem 0;
    text-align: left;
}
.rewilding-pillar-card {
    background: rgba(10, 14, 11, 0.85);
    border: 1px solid var(--border-warm);
    border-radius: 12px;
    padding: 1.1rem;
    transition: all 0.25s ease;
}
.rewilding-pillar-card:hover {
    border-color: var(--sage-leaf);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.rewilding-pillar-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}
.rewilding-pillar-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-parchment);
    margin-bottom: 0.3rem;
}
.rewilding-pillar-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* =========================================================================
   STEP 0: THE LAND IMBALANCE (PURE SIDE-BY-SIDE DIAGRAMS ONLY)
   ========================================================================= */
.imbalance-narrative-container {
    width: 100%;
    max-width: 820px;
    height: 95px;
    min-height: 95px;
    max-height: 95px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.imbalance-story-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: pre-wrap;
}

.imbalance-story-word.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   STEP 0: SLEEK FLOWING SANKEY DIAGRAM (LAND USE TO CALORIE OUTPUT)
   ========================================================================= */
.sankey-chart-container {
    width: 100%;
    max-width: 580px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    user-select: none;
    position: relative;
}

.sankey-headers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
    position: relative;
    z-index: 10;
}

.sankey-header-col {
    display: flex;
    flex-direction: column;
}

.sankey-header-col.left {
    text-align: left;
}

.sankey-header-col.right {
    text-align: right;
}

.sankey-hdr-title {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #94a3b8;
    text-transform: uppercase;
    line-height: 1.2;
    display: inline-block;
    opacity: 0;
    will-change: transform, opacity;
}

.sankey-hdr-title.hero-glow {
    color: #ffffff !important;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.85), 0 0 45px rgba(255, 255, 255, 0.45);
    letter-spacing: 0.22em;
}

.hero-glow-animal {
    color: #f87171 !important;
    text-shadow: 0 0 24px rgba(248, 113, 113, 0.9), 0 0 48px rgba(239, 68, 68, 0.5);
    letter-spacing: 0.18em;
}

.hero-glow-plant {
    color: #34d399 !important;
    text-shadow: 0 0 24px rgba(52, 211, 153, 0.9), 0 0 48px rgba(16, 185, 129, 0.5);
    letter-spacing: 0.18em;
}

.sankey-stage {
    position: relative;
    width: 100%;
    height: 220px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.sankey-stage.visible {
    opacity: 1;
}

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

.sankey-pillar {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.sankey-pillar.visible {
    opacity: 1;
}

.sankey-pillar.animal {
    fill: #ef4444;
}

.sankey-pillar.plant {
    fill: #10b981;
}

.sankey-ribbon {
    clip-path: inset(0 100% 0 0);
    opacity: 1;
    transition: clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, filter 0.6s ease;
}

.sankey-ribbon.flowing {
    clip-path: inset(0 0% 0 0);
}

.sankey-ribbon.dimmed {
    opacity: 0.22;
    filter: none !important;
}

.sankey-side-labels {
    position: absolute;
    top: 14px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    z-index: 3;
}

.sankey-side-labels.left {
    left: 0;
    text-align: left;
    width: 90px;
}

.sankey-side-labels.right {
    right: 0;
    text-align: right;
    width: 90px;
}

.sankey-badge-group {
    display: flex;
    flex-direction: column;
    opacity: 0;
    will-change: transform, opacity;
}

.sankey-badge-group.visible {
    opacity: 1;
    transform: translateY(0);
}

.sankey-badge-pct {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.sankey-badge-group.animal .sankey-badge-pct {
    color: #f87171;
    text-shadow: 0 0 12px rgba(248, 113, 113, 0.4);
}

.sankey-badge-group.plant .sankey-badge-pct {
    color: #34d399;
    text-shadow: 0 0 14px rgba(52, 211, 153, 0.5);
}

.sankey-badge-lbl {
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
    white-space: nowrap;
}

.sankey-badge-group.dimmed {
    opacity: 0.35;
}

.sankey-efficiency-pill {
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%) translateY(6px);
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
    backdrop-filter: blur(8px);
    padding: 0.32rem 0.95rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: 12px;
    font-weight: 700;
    color: #a7f3d0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
    white-space: nowrap;
}

.sankey-efficiency-pill.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
    .sankey-chart-container {
        max-width: 380px;
        margin: 1.5rem auto 0;
    }
    .sankey-stage {
        height: 190px;
    }
    .sankey-badge-pct {
        font-size: 16px;
    }
    .sankey-badge-lbl {
        font-size: 9.5px;
    }
    .sankey-hdr-title {
        font-size: 9.5px;
    }
    .sankey-side-labels.left,
    .sankey-side-labels.right {
        width: 75px;
    }
}

/* =========================================================================
   STEP 3: CROP INTAKE TO 33 PLANT BURGERS TUMBLING PHYSICS AUTO-STORY
   ========================================================================= */
.crop-narrative-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 1.5rem auto;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crop-story-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.42s ease, transform 0.35s ease;
    margin-right: 0.28em;
}

.crop-story-word.visible {
    opacity: 1;
    transform: translateY(0);
}

.crop-pyramid-stage {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 240px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    user-select: none;
    overflow: visible;
}

/* Sack of Crops Visual (at bottom center) */
.crop-origin-visual {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: bottom center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.crop-origin-visual.morph-hide {
    opacity: 0;
    transform: translateX(-50%) scale(0.38);
    pointer-events: none;
}

.crop-origin-visual svg {
    width: 84px;
    height: 84px;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
}

/* Base Burger (Burger #1 at bottom center) */
.crop-burger-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.crop-burger-base.revealed {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.crop-burger-base svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 10px rgba(200, 100, 70, 0.7));
}

/* Tumbling Physics Burgers Layer */
.crop-falling-burgers-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
}

.tumbling-burger-body {
    position: absolute;
    width: 36px;
    height: 36px;
    bottom: 0;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.tumbling-burger-body svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 8px rgba(82, 183, 136, 0.5));
}

@media (max-width: 600px) {
    .crop-pyramid-stage {
        height: 220px;
    }
    .tumbling-burger-body,
    .tumbling-burger-body svg,
    .crop-burger-base svg {
        width: 30px;
        height: 30px;
    }
}

/* =========================================================================
   KINETIC BALANCE SCALE STORY ANIMATION (CHAPTER 2)
   ========================================================================= */
.scale-narrative-container {
    width: 100%;
    max-width: 760px;
    height: 105px;
    min-height: 105px;
    max-height: 105px;
    margin: 0 auto 0.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.scale-story-word,
.uk-story-word,
.rewilding-story-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: pre-wrap;
}

.scale-story-word.visible,
.uk-story-word.visible,
.rewilding-story-word.visible {
    opacity: 1;
    transform: translateY(0);
}

.balance-scale-stage {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: 330px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.balance-scale-svg {
    width: 100%;
    height: 100%;
    max-height: 330px;
    overflow: visible;
}

.scale-center-multiplier {
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-center-multiplier.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.scale-center-multiplier .multiplier-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: rgba(18, 26, 20, 0.95);
    border: 2px solid #fbbf24;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 800;
    color: #fde68a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.45), 0 8px 20px rgba(0, 0, 0, 0.6);
    animation: multiplierPulse 2.4s ease-in-out infinite;
}

@keyframes multiplierPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), 0 8px 20px rgba(0, 0, 0, 0.6); }
    50% { box-shadow: 0 0 32px rgba(245, 158, 11, 0.65), 0 8px 24px rgba(0, 0, 0, 0.8); }
}

.scale-apparatus-frame {
    transform-origin: 380px 220px;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-apparatus-frame.hidden {
    opacity: 0;
    transform: scale(0.35) translateY(45px);
    pointer-events: none;
}

.scale-apparatus-frame.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.scale-beam-group {
    transform-origin: 380px 120px;
    transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-pan-assembly {
    transform-origin: 0px 0px;
    transition: transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-land-block {
    transform-origin: center bottom;
    transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.block-uk {
    transform-origin: 0px 73px;
    transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

.block-overseas {
    transform-origin: 0px 60px;
    transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

.pan-label-group {
    transition: opacity 0.5s ease;
}

@media (max-width: 640px) {
    .scale-narrative-container {
        height: 110px;
        min-height: 110px;
        max-height: 110px;
        margin-bottom: 0.35rem;
    }
    .balance-scale-stage {
        height: 270px;
    }
    .balance-scale-svg {
        max-height: 270px;
    }
}

/* =========================================================================
   STEP 6: 3D UK GEOGRAPHY SIMULATOR (MAP TOP, SLIDER & LEGEND SIDE-BY-SIDE)
   ========================================================================= */
.sim-map-stage {
    width: 100%;
    max-width: 520px;
    height: 310px;
    min-height: 280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sim-map-stage .sim-threejs-canvas {
    width: 100%;
    height: 100%;
    max-height: 310px;
}

.sim-bottom-cockpit {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    width: 100%;
    max-width: 660px;
    margin: 0.6rem auto 0 auto;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    box-sizing: border-box;
}

.sim-slider-col {
    flex: 1.15;
    text-align: left;
}

.sim-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.sim-slider-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sim-dynamic-pct {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sage-light);
    line-height: 1;
}

#uk-map-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: transparent;
    border-radius: 99px;
    outline: none;
    cursor: pointer;
    margin: 0.35rem 0;
    touch-action: none;
}

#uk-map-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #dc2626 0%, #ea580c 35%, #16a34a 100%);
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#uk-map-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #dc2626 0%, #ea580c 35%, #16a34a 100%);
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#uk-map-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f7f4ea;
    cursor: pointer;
    margin-top: -7px;
    border: 2.5px solid #1b4332;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.65), 0 0 8px rgba(112, 160, 125, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#uk-map-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f7f4ea;
    cursor: pointer;
    border: 2.5px solid #1b4332;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.65), 0 0 8px rgba(112, 160, 125, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#uk-map-slider::-webkit-slider-thumb:hover,
#uk-map-slider::-webkit-slider-thumb:active,
#uk-map-slider::-moz-range-thumb:hover,
#uk-map-slider::-moz-range-thumb:active {
    transform: scale(1.18);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 14px rgba(112, 160, 125, 0.6);
}

.sim-legend-col {
    flex: 0.95;
}

.sim-legend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.75rem;
    text-align: left;
}

/* =========================================================================
   MOBILE RESPONSIVENESS: SLIM HEADER, COMPACT CARD & PROPORTIONAL FIT
   ========================================================================= */
@media (max-width: 768px) {
    .story-header {
        padding: 0.45rem 1rem;
    }
    .brand-title {
        font-size: 1.05rem;
    }
    .nav-icon-btn {
        width: 32px;
        height: 32px;
    }
    .land-story-wrapper {
        padding: 3.5rem 1.4rem 5rem 1.4rem;
        min-height: calc(100vh - 3.5rem);
        box-sizing: border-box;
    }
    .land-story-card {
        padding: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .story-beat-card {
        padding: 0 !important;
    }
    .hero-headline {
        font-size: clamp(1.25rem, 4.2vw, 1.75rem) !important;
        padding: 0 8px;
        line-height: 1.25 !important;
    }
    .story-beat-sub {
        font-size: 12.5px !important;
        padding: 0 8px;
        margin-bottom: 0.5rem !important;
    }
    .story-show-controls {
        gap: 0.65rem;
        margin-top: 1.25rem;
        position: relative;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .story-show-controls .btn-clean-outline,
    .story-show-controls .btn-clean-primary {
        padding: 0.55rem 1.1rem;
        font-size: 13px;
        width: auto;
    }
    .story-screen-bottom-bar {
        bottom: 0.75rem;
        grid-template-columns: 96px 34px 96px;
        padding: 5px 8px;
        gap: 0.4rem;
    }
    .story-screen-bottom-bar .btn-clean-outline,
    .story-screen-bottom-bar .btn-clean-primary {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 0.38rem 0.35rem;
        font-size: 11.5px;
    }
    .story-screen-bottom-left-btn {
        bottom: 0.75rem;
        left: 0.75rem;
        width: 34px;
        height: 34px;
    }
    .nav-control-icon-btn {
        width: 32px;
        height: 32px;
    }
    .sim-map-stage {
        height: 270px;
        min-height: 270px;
        width: 100%;
        overflow: visible !important;
    }
    .sim-map-stage .sim-threejs-canvas {
        width: 100%;
        height: 100%;
        max-height: 270px;
        overflow: visible !important;
    }
    .sim-bottom-cockpit {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.65rem 0.85rem;
        margin-top: 0.35rem;
    }
    .sim-slider-col {
        width: 100%;
    }
    .sim-legend-col {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .sim-legend-grid {
        display: grid;
        grid-template-columns: auto auto;
        gap: 0.4rem 1.4rem;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }
    .sim-legend-item {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        white-space: nowrap;
    }
}

/* =========================================================================
   STEP 4: SOUTH AMERICAN ANIMAL FEED & AMAZON DEFORESTATION (CLEAN KEYNOTE)
   ========================================================================= */
.amazon-narrative-container {
    width: 100%;
    max-width: 820px;
    height: 95px;
    min-height: 95px;
    max-height: 95px;
    margin: 0 auto 1.2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.amazon-story-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: pre-wrap;
}

.amazon-story-word.visible {
    opacity: 1;
    transform: translateY(0);
}

.amazon-stage-container {
    width: 100%;
    max-width: 500px;
    height: 330px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Soft vertical mask fade: prevents map from colliding with text at top and fades southern tail at bottom */
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 16%, rgba(0, 0, 0, 1) 82%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 16%, rgba(0, 0, 0, 1) 82%, transparent 100%);
}

.amazon-map-svg {
    width: 100%;
    max-width: 330px;
    height: auto;
    max-height: 330px;
    overflow: visible;
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.9));
    /* Exact geographic center of Amazon + Cerrado biomes (X: 49.2%, Y: 34.2%) */
    transform-origin: 49.2% 34.2%;
    transform: scale(0.92) translateY(6px);
    transition: transform 1.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.65s ease;
    position: absolute;
}

.amazon-map-svg.zoomed {
    /* Dramatic cinematic framing focused directly on Amazon & Cerrado */
    transform: scale(1.68) translateY(14px);
}

.amazon-map-svg #sa-continent-base {
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 1.4px !important;
    opacity: 1 !important;
    transition: opacity 1.2s ease, stroke 1.2s ease;

}

.amazon-map-svg.zoomed #sa-continent-base {
    /* Keep outline bright and crisp when zoomed */
    opacity: 0.85 !important;
}

.amazon-map-svg.draw-in #sa-continent-base {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: continentLaserDraw 3.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes continentLaserDraw {
    0% {
        stroke-dashoffset: 2000;
        stroke: #ffffff;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        stroke: #ffffff;
        opacity: 1;
    }
}

.amazon-map-svg.hidden {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

/* =========================================================================
   CHAPTER 4 ACT 3: AUTHENTIC FARM GRAIN SILOS (90% LIVESTOCK VS 10% HUMAN)
   ========================================================================= */
.soy-silos-stage {
    width: 100%;
    max-width: 760px;
    height: 345px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    position: absolute;
    margin: 0 auto;
}

.soy-silos-stage.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.soy-silos-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Silo Fill Level Animation (Dynamic Peaked Mound Path) */
.silo-fill-path {
    transition: d 1.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Overhead Pivoting Dispensing Spout Arm */
.grain-pivot-spout-group {
    pointer-events: none;
}

/* Pouring Grain Stream Animation */
.pouring-grain-stream {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: 50% 48px;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.pouring-grain-stream.flowing {
    opacity: 0.95;
    transform: scaleY(1);
    animation: grainShimmer 0.18s infinite linear;
}

@keyframes grainShimmer {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 12; }
}

/* Cascading Tumbling Bean Particles */
.silo-bean-cascade {
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.silo-bean-cascade.flowing {
    opacity: 1;
}

.silo-bean-cascade.flowing .tumbling-bean {
    transform-box: fill-box;
    transform-origin: center center;
    animation: tumblingBeanFall 0.46s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.silo-bean-cascade.flowing .tumbling-bean.b1 { animation-delay: 0s; }
.silo-bean-cascade.flowing .tumbling-bean.b2 { animation-delay: 0.09s; }
.silo-bean-cascade.flowing .tumbling-bean.b3 { animation-delay: 0.18s; }
.silo-bean-cascade.flowing .tumbling-bean.b4 { animation-delay: 0.27s; }
.silo-bean-cascade.flowing .tumbling-bean.b5 { animation-delay: 0.36s; }

@keyframes tumblingBeanFall {
    0% {
        transform: translateY(-10px) rotate(0deg) scale(0.88);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    75% {
        opacity: 0.95;
    }
    100% {
        transform: translateY(28px) rotate(90deg) scale(1.02);
        opacity: 0;
    }
}

/* Atmospheric Dust Motes */
.grain-dust-motes {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.grain-dust-motes.flowing {
    opacity: 1;
}

.grain-dust-motes.flowing .mote {
    transform-box: fill-box;
    transform-origin: center center;
    animation: moteFloat 1.2s infinite ease-in-out alternate;
}

.grain-dust-motes.flowing .mote.m1 { animation-delay: 0s; }
.grain-dust-motes.flowing .mote.m2 { animation-delay: 0.4s; }
.grain-dust-motes.flowing .mote.m3 { animation-delay: 0.8s; }

@keyframes moteFloat {
    0% { transform: translate(0, 0); opacity: 0.3; }
    50% { transform: translate(-2px, -8px); opacity: 0.8; }
    100% { transform: translate(2px, -15px); opacity: 0; }
}

/* Silo Labels */
.silo-plaque {
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 640px) {
    .soy-silos-stage {
        max-width: 100%;
        height: 280px;
    }
}

.sa-country {
    transition: fill 0.6s ease, stroke 0.6s ease, filter 0.6s ease, opacity 0.6s ease;
}

.sa-biome {
    fill: none !important;
    transition: opacity 0.8s ease, stroke 0.6s ease, filter 0.6s ease;
}

.sa-biome.amazon {
    stroke: #10b981 !important;
    stroke-width: 1.8px !important;
    fill: none !important;
}

.sa-biome.cerrado {
    stroke: #f59e0b !important;
    stroke-width: 1.8px !important;
    fill: none !important;
}

.sa-biome.scorched {
    stroke: #ff4500 !important;
    stroke-width: 2.2px !important;
    fill: none !important;
    animation: deforestationScorchedPulse 1.8s infinite ease-in-out !important;
}

@keyframes deforestationScorchedPulse {
    0%, 100% {
        stroke: #ef4444;
        filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.7));
    }
    50% {
        stroke: #ffcc00;
        filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.9));
    }
}

@media (max-width: 640px) {
    .amazon-stage-container {
        height: 250px;
    }
    .amazon-map-svg {
        max-height: 250px;
    }
    .soy-pie-visual-container {
        width: 145px;
        height: 145px;
    }
}

/* =========================================================================
   CHAPTER 2: HISTORICAL UK LANDSCAPE TIMELINE & FUTURE REWILDING STYLES
   ========================================================================= */
.uk-history-timeline-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0.5rem auto 0.75rem auto;
    max-width: 780px;
    padding: 0.25rem;
}

.uk-era-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-headline);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1;
}

.uk-era-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

.uk-era-pill.active {
    background: #10b981;
    border-color: #34d399;
    color: #022c22;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.55);
    font-weight: 800;
}

.uk-era-pill.active.future-era {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.uk-era-pill-badge {
    background: rgba(0, 0, 0, 0.25);
    padding: 0.15rem 0.35rem;
    border-radius: 10px;
    font-size: 9.5px;
    font-weight: 800;
}

.uk-history-narrative-card {
    background: rgba(13, 20, 16, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.75rem 1.15rem;
    margin: 0 auto 0.6rem auto;
    max-width: 680px;
    text-align: center;
    transition: all 0.3s ease;
}

.uk-history-era-title {
    font-size: 14px;
    font-weight: 800;
    color: #34d399;
    font-family: var(--font-headline);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.uk-history-era-desc {
    font-size: 13px;
    line-height: 1.45;
    color: #e2e8f0;
    margin: 0;
    font-family: var(--font-editorial);
}

.uk-history-era-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.45rem;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    flex-wrap: wrap;
}

.uk-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(8px) scale(0.92);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.uk-stat-item.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

@keyframes statTagPulse {
    0% { transform: scale(1); filter: brightness(1); }
    35% { transform: scale(1.22); filter: brightness(1.75); }
    70% { transform: scale(1.08); filter: brightness(1.35); }
    100% { transform: scale(1); filter: brightness(1); }
}

.uk-stat-item.pulse {
    animation: statTagPulse 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.uk-stat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

/* =========================================================================
   CHAPTER 5: ENHANCED 12 MILLION HECTARES FOR NATURE SHOWCASE
   ========================================================================= */
.rewilding-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
    max-width: 820px;
    margin: 1.25rem auto 0 auto;
}

.rewilding-feature-card {
    background: rgba(13, 22, 17, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 1.35rem 1.15rem;
    text-align: left;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.rewilding-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.rewilding-feature-card:hover,
.rewilding-feature-card.active {
    background: rgba(18, 32, 24, 0.92);
    border-color: rgba(52, 211, 153, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.2);
}

.rewilding-feature-card.pillar-forests::before { background: #10b981; }
.rewilding-feature-card.pillar-rivers::before { background: #06b6d4; }
.rewilding-feature-card.pillar-wildlife::before { background: #f59e0b; }

.rewilding-card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.95rem;
    font-size: 22px;
}

.pillar-forests .rewilding-card-icon-wrap {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.pillar-rivers .rewilding-card-icon-wrap {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}

.pillar-wildlife .rewilding-card-icon-wrap {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.rewilding-card-badge {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.pillar-forests .rewilding-card-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

.pillar-rivers .rewilding-card-badge {
    background: rgba(6, 182, 212, 0.2);
    color: #a5f3fc;
}

.pillar-wildlife .rewilding-card-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
}

.rewilding-card-heading {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 0.45rem 0;
    font-family: var(--font-headline);
    letter-spacing: -0.01em;
}

.rewilding-card-text {
    font-size: 12.5px;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0;
    font-family: var(--font-editorial);
}

@media (max-width: 768px) {
    .rewilding-hero-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .uk-history-timeline-bar {
        gap: 0.25rem;
    }
    .uk-era-pill {
        font-size: 10px;
        padding: 0.25rem 0.5rem;
    }
}



/* UK Timeline Headline Word Animation */
.uk-headline-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: pre-wrap;
}
.uk-headline-word.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Future Vegan Adoption Counter Badge */
.uk-future-counter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0.75rem auto 0 auto;
    padding: 6px 18px;
    background: rgba(16, 185, 129, 0.12);
    border: 1.5px solid rgba(52, 211, 153, 0.35);
    border-radius: 9999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(16, 185, 129, 0.20);
    transition: all 0.35s ease;
}
.uk-future-counter-badge .counter-pct {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #34d399;
    letter-spacing: -0.02em;
}
.uk-future-counter-badge .counter-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* =========================================================================
   2D UK MAP & UNBOXED LARGE SLOT MACHINE TIMELINE WHEEL STYLES
   ========================================================================= */
.story-beat-card.future-intro-mode {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem !important;
}

.story-beat-card.future-intro-mode .uk-story-narrative-container {
    height: auto;
    min-height: 0;
    max-height: none;
    margin: auto;
    max-width: 680px;
}

.story-beat-card.future-intro-mode .hero-headline {
    font-size: clamp(1.55rem, 3.2vw, 2.35rem) !important;
    line-height: 1.36 !important;
    color: #ffffff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.uk-story-narrative-container {
    width: 100%;
    max-width: 820px;
    height: 95px;
    min-height: 95px;
    max-height: 95px;
    margin: 0 auto 0.45rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.uk-2d-canvas {
    width: 100%;
    height: 100%;
    max-height: 310px;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Unboxed Sideways Slot Machine Timeline Reel (Above Narrative Text) */
.uk-slot-machine-container {
    width: 100%;
    max-width: 580px;
    height: 48px;
    margin: 0 auto 0.5rem auto;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.85) 8%, rgba(0,0,0,1) 18%, rgba(0,0,0,1) 82%, rgba(0,0,0,0.85) 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.85) 8%, rgba(0,0,0,1) 18%, rgba(0,0,0,1) 82%, rgba(0,0,0,0.85) 92%, transparent 100%);
}

.slot-reel-viewport {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    perspective: 1000px;
}

.slot-reel-track {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(0px);
    will-change: transform;
    cursor: grab;
    transition: filter 0.2s ease;
}

.slot-reel-track.is-spinning {
    filter: blur(2px);
}

/* Compact Refined Slot Wheel Year Items */
.slot-item {
    flex-shrink: 0;
    padding: 0 1.25rem;
    font-family: var(--font-headline);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
    color: #cbd5e1;
    white-space: nowrap;
    text-align: center;
    transition: color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
    cursor: pointer;
    opacity: 0.52;
    transform-origin: center center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.slot-item.is-tick {
    font-size: clamp(0.82rem, 1.4vw, 1.02rem);
    font-weight: 600;
    color: #94a3b8;
    opacity: 0.40;
    padding: 0 0.85rem;
}

.slot-item.active {
    color: #ffffff;
    opacity: 1;
    font-size: clamp(1.45rem, 2.6vw, 1.95rem);
    font-weight: 900;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.slot-item.active .slot-item-label {
    color: #ffffff;
}
