/* ============================================================
   layer-2.report  --  neomorphic split-screen narrative
   Palette and typography taken directly from DESIGN.md
   ============================================================ */

:root {
    /* DESIGN.md palette */
    --bg-primary: #F0E6F6;        /* Lavender Mist (left panel) */
    --bg-secondary: #E8DFF0;      /* Pale Orchid (right panel) */
    --neo-light: #FDFAFF;         /* White Veil */
    --neo-dark: #D4C6E0;          /* Lilac Shade */
    --text-primary: #4A2D5E;      /* Deep Plum (headings) */
    --text-body: #3D2A4A;         /* Slate-Plum (body) */
    --text-secondary: #7B5E8A;    /* Muted Orchid */
    --accent-warm: #E8967C;       /* Soft Coral */
    --accent-cool: #A8C8A0;       /* Sage Green */
    --duotone-light: #FFD6C4;     /* Peach Cream */
    --duotone-dark: #2A4A4E;      /* Teal Shadow */
    --groove: #C8B8D4;            /* Dusty Mauve */
    --highlight: #F2B8C4;         /* Morning Rose */

    /* Neo shadow system (DESIGN.md spec) */
    --neo-radius: 24px;
    --neo-blur: 16px;
    --neo-distance: 8px;

    /* Typography */
    --font-display: 'DM Serif Display', 'Inter', serif;
    --font-ui: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-data: 'Outfit', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg-primary);
    color: var(--text-body);
    font-family: var(--font-ui);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 800px 600px at 15% 10%, #F4ECF8 0%, transparent 60%),
        radial-gradient(ellipse 700px 500px at 90% 95%, #ECE2F2 0%, transparent 55%),
        var(--bg-primary);
}

/* keep duotone svg defs out of layout */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* ============================================================
   Ambient morphing blobs (background atmosphere)
   ============================================================ */
.ambient-blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.ambient-blobs .blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 900px;
    max-height: 900px;
    opacity: 0.08;
    filter: blur(8px);
    will-change: transform;
}
.blob-sage   { top: -10%; left: -15%; fill: var(--accent-cool); animation: blobDriftA 16s cubic-bezier(0.45,0.05,0.55,0.95) infinite alternate; }
.blob-coral  { bottom: -15%; right: -10%; fill: var(--accent-warm); animation: blobDriftB 18s cubic-bezier(0.45,0.05,0.55,0.95) infinite alternate; }
.blob-rose   { top: 35%; left: 45%; fill: var(--highlight); animation: blobDriftC 14s cubic-bezier(0.45,0.05,0.55,0.95) infinite alternate; }

@keyframes blobDriftA {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    50%  { transform: translate(8vw, 4vh) rotate(20deg) scale(1.1); }
    100% { transform: translate(-4vw, 6vh) rotate(-15deg) scale(0.95); }
}
@keyframes blobDriftB {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    50%  { transform: translate(-6vw, -4vh) rotate(-18deg) scale(1.08); }
    100% { transform: translate(5vw, 3vh) rotate(12deg) scale(1.02); }
}
@keyframes blobDriftC {
    0%   { transform: translate(0, 0) rotate(0deg) scale(0.9); }
    50%  { transform: translate(-7vw, 5vh) rotate(25deg) scale(1.05); }
    100% { transform: translate(6vw, -3vh) rotate(-10deg) scale(1); }
}

/* ============================================================
   Scene dot indicators (pinned to dividing groove)
   ============================================================ */
.scene-dots {
    position: fixed;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 18px 14px;
    background: var(--bg-primary);
    border-radius: 999px;
    box-shadow:
        var(--neo-distance) var(--neo-distance) var(--neo-blur) var(--neo-dark),
        calc(var(--neo-distance) * -1) calc(var(--neo-distance) * -1) var(--neo-blur) var(--neo-light);
}
.scene-dots .dot {
    position: relative;
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: var(--bg-primary);
    box-shadow:
        inset 3px 3px 6px var(--neo-dark),
        inset -3px -3px 6px var(--neo-light);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
}
.scene-dots .dot:hover { transform: scale(1.15); }
.scene-dots .dot.is-active {
    background: var(--highlight);
    box-shadow:
        3px 3px 6px var(--neo-dark),
        -3px -3px 6px var(--neo-light),
        0 0 0 3px rgba(242, 184, 196, 0.25);
}
.scene-dots .dot-label {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: var(--bg-primary);
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow:
        4px 4px 8px var(--neo-dark),
        -4px -4px 8px var(--neo-light);
}
.scene-dots .dot:hover .dot-label,
.scene-dots .dot.is-active .dot-label { opacity: 1; }

/* ============================================================
   Canvas + scenes
   ============================================================ */
.canvas {
    position: relative;
    z-index: 1;
}

.scene {
    position: relative;
    display: grid;
    grid-template-columns: 45fr 55fr;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* the dividing groove (DESIGN.md spec: 2px wide on grid container) */
.scene::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 45%;
    width: 2px;
    background: var(--groove);
    box-shadow:
        inset 1px 0 2px var(--neo-dark),
        inset -1px 0 2px var(--neo-light);
    pointer-events: none;
    z-index: 5;
}

/* horizon scene (final): groove fades */
.scene-horizon { grid-template-columns: 1fr; }
.scene-horizon::after { opacity: 0; transition: opacity 1.2s ease; }

.panel {
    position: relative;
    padding: 10vh 6vw;
    display: flex;
    align-items: center;
}
.panel-left { background: var(--bg-primary); }
.panel-right { background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; }
.panel-full { grid-column: 1 / -1; padding: 8vh 8vw; background: linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-secondary) 100%); }

.panel-inner {
    width: 100%;
    max-width: 560px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}
.scene.is-active .panel-inner { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

/* ============================================================
   Typography
   ============================================================ */
.eyebrow {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.serial {
    display: block;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-top: 6px;
}
.meta-row {
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scene-tag {
    display: inline-block;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 28px;
    padding: 8px 16px;
    background: var(--bg-primary);
    border-radius: 999px;
    box-shadow:
        inset 3px 3px 6px var(--neo-dark),
        inset -3px -3px 6px var(--neo-light);
}

.display-hero {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(56px, 8vw, 128px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 28px;
}
.hero-dot { color: var(--accent-warm); }

.display-h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(40px, 4.6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 22px;
}

.lede {
    font-family: var(--font-ui);
    font-size: clamp(17px, 1.3vw, 19px);
    line-height: 1.6;
    color: var(--text-body);
    max-width: 520px;
    margin-bottom: 32px;
}
.body-text {
    font-family: var(--font-ui);
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-body);
    max-width: 520px;
    margin-bottom: 28px;
}

/* ============================================================
   Neomorphic primitives
   ============================================================ */
.neo-raised {
    background: var(--bg-primary);
    border-radius: var(--neo-radius);
    box-shadow:
        var(--neo-distance) var(--neo-distance) var(--neo-blur) var(--neo-dark),
        calc(var(--neo-distance) * -1) calc(var(--neo-distance) * -1) var(--neo-blur) var(--neo-light);
    transition:
        transform 0.3s cubic-bezier(0.45,0.05,0.55,0.95),
        box-shadow 0.3s cubic-bezier(0.45,0.05,0.55,0.95);
    will-change: box-shadow, transform;
}
.neo-raised:hover {
    box-shadow:
        12px 12px 24px var(--neo-dark),
        -12px -12px 24px var(--neo-light);
    transform: translateY(-2px);
}

.neo-inset {
    background: var(--bg-primary);
    border-radius: var(--neo-radius);
    box-shadow:
        inset var(--neo-distance) var(--neo-distance) var(--neo-blur) var(--neo-dark),
        inset calc(var(--neo-distance) * -1) calc(var(--neo-distance) * -1) var(--neo-blur) var(--neo-light);
    transition: box-shadow 0.3s cubic-bezier(0.45,0.05,0.55,0.95);
}

/* ============================================================
   Scene 1 - The Surface
   ============================================================ */
.surface-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-top: 32px;
}
.neo-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
    border-radius: 999px;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}
.neo-btn .btn-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-warm);
    color: var(--neo-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow:
        inset 2px 2px 4px rgba(0,0,0,0.18),
        inset -2px -2px 4px rgba(255,255,255,0.35);
}
.neo-btn:active {
    box-shadow:
        inset var(--neo-distance) var(--neo-distance) var(--neo-blur) var(--neo-dark),
        inset calc(var(--neo-distance) * -1) calc(var(--neo-distance) * -1) var(--neo-blur) var(--neo-light);
}

.neo-readout {
    display: inline-flex;
    flex-direction: column;
    padding: 14px 22px;
    min-width: 140px;
}
.readout-key {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.readout-val {
    font-family: var(--font-data);
    font-weight: 700;
    font-size: 22px;
    color: var(--accent-warm);
    letter-spacing: -0.01em;
}

/* duotone frame (carved photo well) */
.duotone-frame {
    position: relative;
    width: min(90%, 640px);
    height: 70vh;
    max-height: 720px;
    border-radius: var(--neo-radius);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow:
        inset 8px 8px 18px var(--neo-dark),
        inset -8px -8px 18px var(--neo-light);
}
.duotone-frame svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: filter 0.6s ease;
}
.duotone-frame:hover svg { filter: url(#duotone-soft); }

.terrain-svg .terrace { transition: transform 1.6s cubic-bezier(0.45,0.05,0.55,0.95); transform-origin: center; }

.frame-caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 14px 18px;
    background: rgba(240, 230, 246, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    box-shadow:
        4px 4px 10px rgba(212, 198, 224, 0.5),
        -4px -4px 10px rgba(253, 250, 255, 0.7);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.caption-coord {
    font-family: var(--font-data);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.caption-text {
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-body);
}

/* ============================================================
   Scene 2 - The Descent
   ============================================================ */
.timeline {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}
.tl-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    grid-template-rows: auto auto;
    column-gap: 22px;
    padding: 18px 24px;
    align-items: start;
}
.tl-year {
    grid-row: 1 / span 2;
    align-self: center;
    font-family: var(--font-data);
    font-weight: 700;
    font-size: 28px;
    color: var(--accent-warm);
    letter-spacing: -0.01em;
}
.tl-title {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 17px;
    color: var(--text-primary);
}
.tl-note {
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-body);
    opacity: 0.92;
    margin-top: 2px;
}

/* diagram stage */
.diagram-stage {
    width: min(90%, 580px);
    aspect-ratio: 1 / 1;
    border-radius: var(--neo-radius);
    background: var(--bg-secondary);
    box-shadow:
        inset 8px 8px 18px var(--neo-dark),
        inset -8px -8px 18px var(--neo-light);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.diagram-svg {
    flex: 1;
    width: 100%;
    height: auto;
}
.arch-node, #archPath, #proofShape, #archLabel {
    transition:
        d 1.4s cubic-bezier(0.45,0.05,0.55,0.95),
        cx 1.4s cubic-bezier(0.45,0.05,0.55,0.95),
        cy 1.4s cubic-bezier(0.45,0.05,0.55,0.95),
        fill 0.8s ease,
        opacity 0.8s ease;
    will-change: d;
}
.diagram-states {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.ds-pill {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--bg-primary);
    box-shadow:
        4px 4px 8px var(--neo-dark),
        -4px -4px 8px var(--neo-light);
    transition: all 0.3s ease;
}
.ds-pill.is-active {
    color: var(--text-primary);
    background: var(--highlight);
    box-shadow:
        inset 3px 3px 6px rgba(146, 90, 110, 0.35),
        inset -3px -3px 6px rgba(255, 232, 240, 0.6);
}

/* ============================================================
   Scene 3 - The Ecosystem
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 8px;
}
.net-card {
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.card-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    box-shadow:
        inset 3px 3px 6px var(--neo-dark),
        inset -3px -3px 6px var(--neo-light);
    font-size: 14px;
    color: var(--accent-warm);
}
.net-card[data-tone="sage"] .card-glyph { color: var(--accent-cool); }
.net-card[data-tone="rose"] .card-glyph { color: var(--highlight); }
.net-card[data-tone="orchid"] .card-glyph { color: var(--text-secondary); }
.card-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 26px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.card-meta {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.card-body {
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-body);
}
.card-bar {
    margin-top: auto;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 999px;
    box-shadow:
        inset 2px 2px 4px var(--neo-dark),
        inset -2px -2px 4px var(--neo-light);
    overflow: hidden;
    position: relative;
}
.bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-cool), var(--accent-warm));
    border-radius: 999px;
    transition: width 1.2s cubic-bezier(0.45,0.05,0.55,0.95);
}
.scene.is-active .bar-fill { width: calc(var(--fill, 0.8) * 100%); }

.canopy-frame { height: 80vh; }
.canopy-svg ellipse { transition: transform 6s cubic-bezier(0.45,0.05,0.55,0.95); transform-origin: center; }

/* ============================================================
   Scene 4 - The Flow
   ============================================================ */
.figures {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 10px;
}
.fig-row {
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fig-key {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.fig-num {
    font-family: var(--font-data);
    font-weight: 700;
    font-size: clamp(56px, 8vw, 128px);
    line-height: 1;
    color: var(--accent-warm);
    letter-spacing: -0.025em;
}
.fig-foot {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--text-body);
    opacity: 0.85;
}

.river-stage {
    position: relative;
    width: min(92%, 620px);
    height: 80vh;
    max-height: 780px;
    border-radius: var(--neo-radius);
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow:
        inset 8px 8px 18px var(--neo-dark),
        inset -8px -8px 18px var(--neo-light);
}
.river-svg { width: 100%; height: 100%; display: block; }
#riverPath, #riverPath2, #riverBank1, #riverBank2 {
    transition: d 1.6s cubic-bezier(0.45,0.05,0.55,0.95);
    will-change: d;
}
#turbulence { transition: opacity 0.8s ease; }
.token { animation: tokenFloat 9s linear infinite; }
.token:nth-child(1) { animation-delay: -0.2s; }
.token:nth-child(2) { animation-delay: -1.5s; }
.token:nth-child(3) { animation-delay: -3.4s; }
.token:nth-child(4) { animation-delay: -5.1s; }
.token:nth-child(5) { animation-delay: -6.8s; }
.token:nth-child(6) { animation-delay: -8.0s; }
@keyframes tokenFloat {
    0%   { transform: translateX(-80px) translateY(0); }
    50%  { transform: translateX(300px) translateY(-12px); }
    100% { transform: translateX(700px) translateY(0); }
}

.river-readout {
    position: absolute;
    top: 22px;
    right: 22px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--bg-primary);
    box-shadow:
        4px 4px 10px var(--neo-dark),
        -4px -4px 10px var(--neo-light);
    display: flex;
    align-items: center;
    gap: 10px;
}
.rr-label {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.rr-state {
    font-family: var(--font-data);
    font-weight: 700;
    font-size: 14px;
    color: var(--accent-warm);
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

/* ============================================================
   Scene 5 - The Horizon (full bleed merge)
   ============================================================ */
.horizon-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.45,0.05,0.55,0.95);
    transition-delay: 0.4s;
}
.scene-horizon.is-active .horizon-inner { opacity: 1; transform: translateY(0); }

.horizon-tag {
    background: var(--bg-secondary);
    box-shadow:
        inset 3px 3px 6px var(--neo-dark),
        inset -3px -3px 6px var(--neo-light);
}
.horizon-hero {
    font-size: clamp(48px, 6.4vw, 104px);
    color: var(--text-primary);
}
.horizon-lede {
    max-width: 640px;
    margin: 0 auto;
}

.horizon-frame {
    width: min(94%, 1100px);
    height: 46vh;
    max-height: 520px;
    margin-top: 10px;
}
.ridge-svg { width: 100%; height: 100%; display: block; }
.horizon-caption {
    background: rgba(232, 223, 240, 0.85);
}

.horizon-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
    padding-top: 24px;
    border-top: 1px solid var(--groove);
    width: 100%;
    max-width: 720px;
}
.hf-mark {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--text-primary);
    letter-spacing: 0.04em;
}
.hf-issue, .hf-stamp {
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ============================================================
   Responsive: collapse split-screen on mobile
   ============================================================ */
@media (max-width: 1024px) {
    .scene-dots { left: auto; right: 18px; transform: translateY(-50%); }
}

@media (max-width: 768px) {
    .scene {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .scene::after { display: none; }

    .panel { padding: 80px 22px; }
    .panel-left { background: var(--bg-primary); }
    .panel-right { background: var(--bg-secondary); }
    /* alternate two-tone duality on mobile */
    .scene-descent .panel-left   { background: var(--bg-secondary); }
    .scene-descent .panel-right  { background: var(--bg-primary); }
    .scene-ecosystem .panel-left { background: var(--bg-primary); }
    .scene-ecosystem .panel-right{ background: var(--bg-secondary); }
    .scene-flow .panel-left      { background: var(--bg-secondary); }
    .scene-flow .panel-right     { background: var(--bg-primary); }

    .duotone-frame, .canopy-frame, .river-stage { height: 56vh; max-height: 480px; }
    .diagram-stage { aspect-ratio: 1 / 1; max-width: 480px; }
    .horizon-frame { height: 36vh; }

    .scene-dots { padding: 12px 10px; gap: 14px; }
    .scene-dots .dot-label { display: none; }

    .display-hero { font-size: clamp(48px, 11vw, 80px); }
    .display-h2 { font-size: clamp(34px, 7vw, 56px); }
}

@media (max-width: 480px) {
    .panel { padding: 64px 18px; }
    .cards-grid { grid-template-columns: 1fr; }
    .horizon-footer { flex-direction: column; gap: 8px; }
}
