@import "reset.css";

:root {
    color-scheme: light;

    /* Editorial Surfaces — Warm Limestone, Ivory Linen & Parchment */
    --bg-canvas: #f6f3ec;
    --bg-surface: #fdfbf7;
    --bg-subtle: #ece7dc;
    --bg-tint: #e4ded1;

    /* Hairline Borders */
    --border-subtle: rgba(31, 41, 51, 0.11);
    --border-medium: rgba(31, 41, 51, 0.18);
    --border-strong: rgba(31, 41, 51, 0.28);

    /* Ocean & Natural Pigment Scale (Muted, Friendly & Editorial) */
    --color-ocean-900: #f6f3ec;
    --color-ocean-800: #ece7dc;
    --color-ocean-700: #e4ded1;
    --color-ocean-600: #d9e6ea;
    --color-ocean-500: #8faab5;
    --color-ocean-400: #5b8596;
    --color-ocean-300: #2e5a6b;
    --color-ocean-200: #244957;
    --color-ocean-100: #1b3844;

    --color-tuna-red: #b85d4b;
    --color-tuna-red-dim: rgba(184, 93, 75, 0.22);
    --color-orca-accent: #3d6b7d;
    --color-orca-accent-dim: rgba(61, 107, 125, 0.18);
    --color-gold: #9e743c;
    --color-gold-dim: rgba(158, 116, 60, 0.2);
    --color-sand: #c5a373;
    --color-coral: #b85d4b;
    --color-sage: #527366;
    --color-mineral: #6e5f7a;

    /* Ink & Typography */
    --color-text-primary: #1f2933;
    --color-text-secondary: #4a5560;
    --color-text-dim: #6c7680;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.5s var(--ease-out-expo);

    /* Layout Panel Width — 60% text column / 40% map column */
    --panel-width: 60vw;
}

@supports (width: 60dvw) {
    :root {
        --panel-width: 60dvw;
    }
}



html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-primary);
    background: var(--color-ocean-900);
    max-width: 100%;
    overflow-x: clip;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================================================
   Scene Navigation Dots
   ======================================================================== */

.scene-nav {
    position: fixed;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.scene-nav.is-visible {
    opacity: 1;
}

.scene-nav__dot {
    position: relative;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.5px solid var(--color-text-dim);
    background: rgba(253, 251, 247, 0.82);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.scene-nav__dot:hover,
.scene-nav__dot.is-active {
    border-color: var(--color-ocean-300);
    background: var(--color-ocean-300);
    transform: scale(1.22);
    box-shadow: 0 2px 6px rgba(46, 90, 107, 0.25);
}

.scene-nav__label {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-primary);
    background: rgba(253, 251, 247, 0.94);
    border: 1px solid var(--border-medium);
    box-shadow: 0 2px 8px rgba(31, 41, 51, 0.08);
    padding: 2px 7px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    transform: translateY(-50%) translateX(8px);
}

.scene-nav__dot:hover .scene-nav__label,
.scene-nav__dot.is-active .scene-nav__label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ========================================================================
   Map & Left Backdrop
   ======================================================================== */

.story-left-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--panel-width);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-canvas);
    border-right: 1px solid var(--border-subtle);
    box-shadow: 6px 0 24px rgba(31, 41, 51, 0.06);
    z-index: 2;
    pointer-events: none;
}

#map {
    position: fixed;
    top: 0;
    left: var(--panel-width);
    width: calc(100% - var(--panel-width));
    height: 100%;
    z-index: 1;
}

.map-overlay {
    position: fixed;
    top: 0;
    left: var(--panel-width);
    width: calc(100% - var(--panel-width));
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(246, 243, 236, 0.28) 0%, transparent 10%),
        linear-gradient(to top, rgba(246, 243, 236, 0.32) 0%, transparent 12%);
}

/* Contextual Map Key & Always-Visible Map Callouts */
.map-legend {
    position: fixed;
    right: 20px;
    bottom: 44px;
    left: auto;
    width: max-content;
    max-width: min(560px, calc(100% - var(--panel-width) - 28px));
    z-index: 5;
    padding: 12px 18px;
    background: rgba(253, 251, 247, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(31, 41, 51, 0.1);
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s var(--ease-out-expo);
}

.map-legend.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.map-legend__title {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-ocean-200);
    margin-bottom: 8px;
}

.map-legend__items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-legend__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--color-text-secondary);
}

.map-legend__item strong {
    color: var(--color-text-primary);
}

.map-legend__swatch {
    flex-shrink: 0;
    width: 22px;
    height: 0;
}

.map-legend__swatch--arena {
    width: 17px;
    height: 11px;
    margin-inline: 2px;
    background: rgba(46, 90, 107, 0.16);
    border: 1.5px dashed #2e5a6b;
    border-radius: 50%;
}

.map-legend__swatch--tuna {
    border-top: 3.5px dashed #2e5a6b;
}

.map-legend__swatch--fleet {
    border-top: 3px dotted #9e743c;
}

.map-legend__swatch--transect-a {
    border-top: 3px dashed #9e743c;
}

.map-legend__swatch--transect-b {
    border-top: 3px solid #2e5a6b;
}

.map-legend__swatch--orca-core {
    width: 17px;
    height: 11px;
    margin-inline: 2px;
    background: rgba(158, 116, 60, 0.22);
    border: 1.5px solid #9e743c;
    border-radius: 4px;
}

.map-legend__swatch--orca-range {
    width: 17px;
    height: 11px;
    margin-inline: 2px;
    background: rgba(82, 115, 102, 0.18);
    border: 1.5px solid #527366;
    border-radius: 4px;
}

.map-legend__swatch--orca-corridor {
    border-top: 2.5px dashed #3d6b7d;
}

.map-legend__swatch--almadraba {
    width: 14px;
    height: 14px;
    margin-inline: 4px;
    border-radius: 50%;
    background: var(--color-gold);
    border: 2px solid #fdfbf7;
    box-shadow: 0 0 0 2.5px rgba(158, 116, 60, 0.28);
}

.map-callout {
    position: absolute;
    white-space: nowrap;
    font-family: var(--font-body);
    background: rgba(253, 251, 247, 0.94);
    backdrop-filter: blur(6px);
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid var(--border-medium);
    box-shadow: 0 3px 10px rgba(31, 41, 51, 0.12);
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.map-callout__title {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.25;
}

.map-callout__sub {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--color-ocean-300);
    line-height: 1.2;
}

.map-callout--bottom {
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.map-callout--bottom-right {
    bottom: calc(100% + 14px);
    right: -4px;
    text-align: right;
}

.map-callout--balearic {
    bottom: calc(100% + 68px);
    right: -4px;
    text-align: right;
}

.map-callout--above-left {
    bottom: calc(100% + 14px);
    right: 0;
    text-align: right;
}

.map-callout--top {
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.map-callout--top-left {
    top: calc(100% + 8px);
    left: -4px;
    text-align: left;
}

.map-callout--left {
    right: calc(100% + 9px);
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
}

.map-callout--right {
    left: calc(100% + 9px);
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
}

/* Animated Almadraba Dot on Map (Scene 5 — no text labels) */
.map-marker--animated-almadraba {
    position: absolute;
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    will-change: transform;
}

.almadraba-pin-core {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-gold);
    border: 2px solid #fdfbf7;
    box-shadow: 0 1px 6px rgba(158, 116, 60, 0.45);
    position: relative;
    z-index: 2;
}

.almadraba-pin-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(158, 116, 60, 0.34);
    animation: almadraba-pulse 2.2s infinite ease-out;
    z-index: 1;
}

@keyframes almadraba-pulse {
    0% { transform: scale(0.6); opacity: 0.95; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* ========================================================================
   Story Container
   ======================================================================== */

.story {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* ========================================================================
   Hero Section
   ======================================================================== */

.hero {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(24px, 4dvh, 48px) clamp(20px, 5dvw, 64px) clamp(72px, 10dvh, 96px);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    z-index: 10;
    background: radial-gradient(circle at 50% 45%, #fdfbf7 0%, #f6f3ec 62%, #ebe5d8 100%);
}

.hero__map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__coastline-land {
    fill: rgba(46, 90, 107, 0.065);
    stroke: none;
}

.hero__coastline-shelf {
    fill: none;
    stroke: rgba(46, 90, 107, 0.18);
    stroke-width: 0.75px;
    stroke-dasharray: 3 4;
    vector-effect: non-scaling-stroke;
}

.hero__coastline-line {
    fill: none;
    stroke: rgba(46, 90, 107, 0.48);
    stroke-width: 1.05px;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

/* Text sits on land: title over Spain, subtitle + paragraph over Morocco */
.hero__content {
    position: absolute;
    left: 50%;
    z-index: 2;
    width: min(720px, 88dvw);
    transform: translateX(-50%);
    text-align: center;
    text-shadow: 0 1px 12px rgba(246, 243, 236, 0.92);
    animation: hero-appear 1.5s var(--ease-out-expo) 0.5s both;
}

.hero__content--top {
    top: clamp(26px, 6.2dvh, 68px);
}

.hero__content--bottom {
    bottom: clamp(66px, 11.8dvh, 118px);
    width: min(580px, 84dvw);
}

@keyframes hero-appear {
    from {
        opacity: 0;
        translate: 0 40px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}


.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 1.5rem + 3dvw, 4.4rem);
    font-weight: 900;
    line-height: 1.1;
    text-wrap: balance;
    margin: 0;
    text-align: center;
    text-shadow: none;
    color: var(--color-text-primary);
}

.hero__title em {
    font-style: italic;
    color: var(--color-ocean-300);
}

.hero__subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.88rem, 0.78rem + 0.35dvw, 1.12rem);
    color: var(--color-ocean-200);
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.45;
    margin-bottom: var(--space-sm);
    text-align: center;
}

.hero__subtitle2 {
    font-size: clamp(1.02rem, 0.92rem + 0.4dvw, 1.32rem);
    color: var(--color-text-secondary);
    font-weight: 400;
    line-height: 1.55;
    margin: 0 auto;
    text-wrap: pretty;
    text-align: center;
}

.hero__fin {
    opacity: 0.98;
    animation: hero-appear 1.5s var(--ease-out-expo) 0.8s both;
}

.hero__scroll-cue {
    position: absolute;
    bottom: clamp(18px, 3dvh, 34px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    gap: 6px;
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__scroll-arrow {
    animation: bounce 2s ease-in-out infinite;
}

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

/* Portrait tablets & phones: keep text centered inside landmass */
@media (max-aspect-ratio: 3/4) {
    .hero__content--top {
        top: clamp(44px, 11dvh, 108px);
        width: min(500px, 84dvw);
    }

    .hero__content--bottom {
        bottom: clamp(72px, 12.5dvh, 124px);
        left: 52.5%;
        width: min(420px, 74dvw);
    }
}

/* Short landscape viewports (e.g. mobile landscape) */
@media (max-height: 540px) {
    .hero__content--top {
        top: clamp(8px, 2.5dvh, 18px);
    }

    .hero__title {
        font-size: clamp(1.35rem, 0.95rem + 2.2dvh, 2rem);
    }

    .hero__content--bottom {
        bottom: clamp(30px, 8dvh, 46px);
        width: min(330px, 68dvw);
    }

    .hero__subtitle {
        font-size: 0.68rem;
        margin-bottom: 2px;
    }

    .hero__subtitle2 {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .hero__scroll-cue {
        bottom: 6px;
        flex-direction: row;
        gap: 6px;
        font-size: 0.68rem;
    }

    .hero__scroll-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* ========================================================================
   Scene Content (Direct text layout, no cards)
   ======================================================================== */

.scene {
    min-height: 100vh;
    min-height: 100dvh;
    width: var(--panel-width);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--space-2xl) 0;
    box-sizing: border-box;
}

.scene--compact {
    padding: clamp(10px, 1.8dvh, 22px) 0;
}

.scene-spacer {
    height: 30vh;
}

.scene__content {
    width: 100%;
    padding: var(--space-xl) clamp(28px, 4vw, 52px);
    opacity: 0.22;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-out-expo);
    box-sizing: border-box;
}

.scene--compact .scene__content {
    padding: clamp(12px, 2dvh, 24px) clamp(28px, 4vw, 52px);
}

.scene__content.is-active {
    opacity: 1;
    transform: translateY(0);
}

.scene__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
    margin-bottom: var(--space-md);
    color: var(--color-ocean-300);
}

.scene--compact .scene__title {
    font-size: clamp(1.48rem, 1.1rem + 1.5vw, 2rem);
    margin-bottom: 8px;
    color: var(--color-ocean-300);
}

.scene__divider {
    display: none !important;
}

.scene__narrative {
    font-size: 1.15rem;
    line-height: 1.72;
    text-wrap: pretty;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    columns: 2;
    column-gap: var(--space-xl);
}

.scene--compact .scene__narrative {
    font-size: 1.03rem;
    line-height: 1.56;
    margin-bottom: 14px;
    column-gap: var(--space-lg);
}

.scene__narrative strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.scene__narrative em {
    font-style: italic;
    color: var(--color-ocean-200);
}

/* ========================================================================
   Editorial Sections & Visualisations (Direct text layout, no cards)
   ======================================================================== */


.current-section,
.energy-section,
.tarifa-section {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
}

.current-section h4,
.energy-section h4,
.tarifa-section h4 {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}


/* ========================================================================
   Scale Bar (Scene 2)
   ======================================================================== */

.scale-bar {
    margin: var(--space-md) 0 var(--space-sm);
}

.scale-bar__line {
    height: 3px;
    background: linear-gradient(90deg,
        var(--color-ocean-300) 0%, var(--color-ocean-300) 50%,
        var(--color-ocean-200) 50%, var(--color-ocean-200) 100%
    );
    border-radius: 2px;
    position: relative;
}

.scale-bar__line::before,
.scale-bar__line::after {
    content: '';
    position: absolute;
    top: -4px;
    width: 2px;
    height: 11px;
    background: var(--color-ocean-300);
}

.scale-bar__line::before { left: 0; }
.scale-bar__line::after { right: 0; }

.scale-bar__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
    margin-top: 6px;
}


/* ========================================================================
   Current Flow (Scene 4)
   ======================================================================== */

.current-flow {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: var(--space-md) 0;
}

.current-layer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.current-arrow {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    color: var(--color-ocean-300);
    animation: flow-right 2s linear infinite;
    white-space: nowrap;
}

.current-layer.liw .current-arrow {
    color: var(--color-gold);
    animation: flow-left 2s linear infinite;
}

.current-layer.wmdw .current-arrow {
    color: var(--color-ocean-400);
    animation: flow-left 2s linear infinite;
}

@keyframes flow-right {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

@keyframes flow-left {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.current-label {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    flex: 1;
}

.current-depth {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* ========================================================================
   Place Names (Scene 5)
   ======================================================================== */

.scene__places {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-top: var(--space-md);
}

.place-name {
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.place-name:hover {
    color: var(--color-ocean-300);
}

.place-name--almadraba {
    color: var(--color-gold);
}

.place-name--almadraba:hover {
    color: var(--color-sand);
}

/* ========================================================================
   Charts (Scene 4)
   ======================================================================== */

.scene__charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
}

.chart-item--single {
    margin: var(--space-xl) 0;
}

.chart-item h4 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.chart-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
}

.chart-item--single .chart-container {
    aspect-ratio: 16 / 7;
    max-height: 250px;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-caption {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-xs);
    line-height: 1.5;
    text-wrap: pretty;
}

/* ========================================================================
   Metric Grids (Scenes 3, 4, 5 & 6)
   ======================================================================== */

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin: var(--space-md) 0 var(--space-lg);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.metric__value {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1rem + 1vw, 1.55rem);
    font-weight: 700;
    color: var(--color-ocean-200);
    line-height: 1.2;
}

.metric__label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
}

/* ========================================================================
   Closing Scene (Cultural Learning)
   ======================================================================== */

.closing {
    min-height: 100vh;
    min-height: 100dvh;
    width: var(--panel-width);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: var(--space-2xl) clamp(28px, 4vw, 52px);
    box-sizing: border-box;
}

.closing__content {
    width: 100%;
    opacity: 0.28;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-out-expo);
}

.closing__content.is-active {
    opacity: 1;
    transform: translateY(0);
}

.closing__title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 1.15rem + 1.9vw, 2.3rem);
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
    margin-bottom: var(--space-md);
    color: var(--color-ocean-300);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--color-ocean-300);
}

.closing__credits {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-md);
    margin-top: var(--space-xl);
}

/* ========================================================================
   Geological History Gallery (Scene 1)
   ======================================================================== */

.geology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.geology-card {
    margin: 0;
    padding: var(--space-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(31, 41, 51, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
}

.geology-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: 0 6px 18px rgba(31, 41, 51, 0.08);
}

.geology-card__image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-subtle);
}

.geology-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease-out-expo);
}

.geology-card:hover .geology-card__image {
    transform: scale(1.04);
}

.geology-card__caption {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: var(--space-sm);
    padding: 2px 4px;
}

.geology-card__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-ocean-200);
    line-height: 1.35;
}

.geology-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    text-wrap: pretty;
}

.geology-card__credit {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--color-text-dim);
    margin-top: 2px;
    line-height: 1.5;
}

.geology-card__credit a {
    color: var(--color-ocean-200);
    text-decoration: none;
}

.geology-card__credit a:hover {
    text-decoration: underline;
}

/* ========================================================================
   Camarinal Sill ODV Transect & Almadraba Figures (Scenes 2 & 5)
   ======================================================================== */

.transect-figure,
.almadraba-figure {
    margin: var(--space-md) 0 0;
    width: 100%;
    max-width: 100%;
}

.transect-figure__img-wrap,
.almadraba-figure__img-wrap {
    width: 100%;
    border-radius: 0;
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
}

.transect-figure__img,
.almadraba-figure__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.transect-figure__caption,
.almadraba-figure__caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.transect-figure__title,
.almadraba-figure__title {
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--color-ocean-200);
    line-height: 1.3;
}

.transect-figure__desc,
.almadraba-figure__desc {
    font-size: 0.86rem;
    color: var(--color-text-secondary);
    line-height: 1.48;
    text-wrap: pretty;
}

.transect-figure__desc strong {
    color: var(--color-text-primary);
}

.transect-figure__credit {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--color-text-dim);
    line-height: 1.45;
    overflow-wrap: break-word;
}

.transect-figure__credit a {
    color: var(--color-orca-accent);
    text-decoration: none;
}

.transect-figure__credit a:hover {
    text-decoration: underline;
}

/* ========================================================================
   Transatlantic Migration Legend (Scene 3)
   ======================================================================== */

.transatlantic-legend {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-md) 0 var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(31, 41, 51, 0.04);
}

.route-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.route-badge__line {
    display: inline-block;
    width: 24px;
    height: 0;
    flex-shrink: 0;
}

.route-badge__icon {
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
}

.route-badge--spring .route-badge__line {
    border-block-start: 3px dashed var(--color-tuna-red);
}

.route-badge--spring .route-badge__icon {
    color: var(--color-tuna-red);
}

.route-badge--summer .route-badge__line {
    border-block-start: 3px solid var(--color-ocean-300);
}

.route-badge--summer .route-badge__icon {
    color: var(--color-ocean-200);
}

.route-badge strong {
    color: var(--color-text-primary);
}

/* ========================================================================
   Frameless Atlantic Bluefin Tuna Figure (Scene 3 — No card, no animations)
   ======================================================================== */

.tuna-figure {
    margin: var(--space-xl) 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tuna-figure__img {
    width: 100%;
    max-width: 440px;
    height: auto;
    display: block;
}

.orca-figure__img {
    max-width: 460px;
}

.tuna-figure__caption {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: var(--space-sm);
    line-height: 1.55;
    max-width: 56ch;
    text-wrap: pretty;
}

/* ========================================================================
   Underwater Video Evidence Gallery (Scene 6)
   ======================================================================== */

.video-section {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    padding-top: 0;
    border-top: none;
}

.video-section h4 {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.video-card {
    margin: 0;
    padding: var(--space-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(31, 41, 51, 0.04);
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 6px 18px rgba(31, 41, 51, 0.08);
}

.video-card__player-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-subtle);
}

.video-card__player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card__caption {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: var(--space-sm);
    padding: 2px 4px;
}

.video-card__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-ocean-200);
    line-height: 1.35;
}

.video-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    text-wrap: pretty;
}

.video-card__credit {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--color-text-dim);
    margin-top: 2px;
    line-height: 1.5;
}

.video-card__credit a {
    color: var(--color-orca-accent);
    text-decoration: none;
}

.video-card__credit a:hover {
    text-decoration: underline;
}

/* ========================================================================
   Archival Cooperation Gallery (Cultural Learning)
   ======================================================================== */

.cooperation-section {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
}

.cooperation-section--second {
    margin-top: var(--space-md);
    padding-top: 0;
    border-top: none;
}

.scene__narrative--after-media {
    margin-top: clamp(40px, 6vh, 68px);
}

.cooperation-section h4 {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-md);
}

.cooperation-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.cooperation-card {
    margin: 0;
    padding: var(--space-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(31, 41, 51, 0.04);
}

.cooperation-card__image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-subtle);
}

.cooperation-card__image {
    width: 100%;
    height: auto;
    display: block;
}

.cooperation-card__caption {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: var(--space-md);
}

.cooperation-card__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-ocean-200);
    line-height: 1.35;
}

.cooperation-card__desc {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    text-wrap: pretty;
}

.cooperation-card__credit {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--color-text-dim);
    line-height: 1.5;
}

.cooperation-card__credit code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.cooperation-card__credit a {
    color: var(--color-orca-accent);
    text-decoration: none;
}

.cooperation-card__credit a:hover {
    text-decoration: underline;
}

/* ========================================================================
   Conil Archival Engraving Map Popup & Pin (Scene 7)
   ======================================================================== */

.conil-map-pin {
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.conil-pin-core {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gold);
    border: 2px solid #fdfbf7;
    box-shadow: 0 1px 8px rgba(158, 116, 60, 0.45);
}

.conil-pin-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(158, 116, 60, 0.34);
    animation: conil-pulse 2s infinite ease-out;
}

@keyframes conil-pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.conil-popup-container .maplibregl-popup-content {
    background: rgba(253, 251, 247, 0.96);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(31, 41, 51, 0.14);
    padding: 10px;
    max-width: 290px;
    backdrop-filter: blur(10px);
    animation: conil-emerge 0.5s var(--ease-out-expo) both;
}

.conil-popup-container .maplibregl-popup-tip {
    border-top-color: rgba(253, 251, 247, 0.96);
}

@keyframes conil-emerge {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.conil-map-popup-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conil-map-popup-thumb {
    width: 100%;
    height: 145px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.conil-map-popup-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.conil-map-popup-thumb:hover img {
    transform: scale(1.05);
}

.conil-map-popup-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.conil-map-popup-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--color-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.conil-map-popup-title {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.conil-map-popup-sub {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
}

/* ========================================================================
   End-of-Document References Footer (Separated from Cultural Learning)
   ======================================================================== */

.references-spacer {
    height: 6vh;
    width: var(--panel-width);
}

.references-footer {
    width: var(--panel-width);
    padding: var(--space-xl) clamp(28px, 4vw, 52px) var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    box-sizing: border-box;
}

.references-section {
    margin: 0;
}

.references-section h4 {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.references-list {
    list-style: decimal;
    padding-left: var(--space-lg);
    font-size: 0.85rem;
    line-height: 1.42;
    color: var(--color-text-secondary);
    max-width: 75ch;
    overflow-wrap: break-word;
}

.references-list li {
    margin-bottom: 0.35rem;
    padding-left: var(--space-xs);
    text-wrap: pretty;
}

.references-list li em {
    color: var(--color-ocean-200);
    font-style: italic;
}

.references-list li code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.references-list li a {
    color: var(--color-orca-accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.references-list li a:hover {
    color: var(--color-ocean-200);
    text-decoration: underline;
}

/* ========================================================================
   Pod Culture Comparison Table & Key Wildlife Bond Message
   ======================================================================== */

.table-wrapper {
    overflow: auto;
    max-inline-size: 100%;
    max-block-size: min(520px, 80vh);
    container-type: inline-size;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
}

.table-wrapper:focus-visible {
    outline: 2px solid var(--color-ocean-300);
    outline-offset: 2px;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

.comparison-table caption {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    background: var(--bg-subtle);
    border-block-end: 1px solid var(--border-subtle);
}

.comparison-table thead {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
}

.comparison-table thead th {
    background: var(--bg-subtle);
    color: var(--color-text-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-align: left;
    padding: 11px 14px;
    border-block-end: 1px solid var(--border-medium);
}

.comparison-table tbody th {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    background: var(--bg-canvas);
    color: var(--color-ocean-200);
    font-weight: 600;
    text-align: left;
    padding: 11px 14px;
    border-block-end: 1px solid var(--border-subtle);
    border-inline-end: 1px solid var(--border-subtle);
    vertical-align: top;
}

.comparison-table tbody td {
    padding: 11px 14px;
    color: var(--color-text-secondary);
    border-block-end: 1px solid var(--border-subtle);
    vertical-align: top;
    text-wrap: pretty;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
    border-block-end: none;
}

.comparison-table tbody td strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.pod-glyph--int {
    color: var(--color-ocean-300);
    margin-inline-end: 4px;
}

.pod-glyph--not {
    color: var(--color-gold);
    margin-inline-end: 4px;
}

@container (width < 520px) {
    .comparison-table,
    .comparison-table thead,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table th,
    .comparison-table td {
        display: block;
    }

    .comparison-table thead {
        display: none;
    }

    .comparison-table tr {
        margin: var(--space-sm);
        border: 1px solid var(--border-medium);
        border-radius: 4px;
    }

    .comparison-table tbody th {
        position: sticky;
        inset-block-start: 0;
        inset-inline-start: auto;
        z-index: 2;
        background: var(--bg-subtle);
        border-inline-end: none;
        border-block-end: 1px solid var(--border-subtle);
    }

    .comparison-table {
        --label-1: "Ecological Parameter";
        --label-2: "Interacting (Pods A1 & A2)";
        --label-3: "Non-Interacting (Pods B, C & D)";
    }

    .comparison-table td:nth-child(2)::before {
        content: var(--label-2) ": ";
        font-family: var(--font-mono);
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--color-ocean-300);
        display: block;
        margin-block-end: 3px;
    }

    .comparison-table td:nth-child(3)::before {
        content: var(--label-3) ": ";
        font-family: var(--font-mono);
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--color-gold);
        display: block;
        margin-block-end: 3px;
    }
}

.conservation-note {
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    font-size: clamp(1.06rem, 0.98rem + 0.28vw, 1.2rem);
    line-height: 1.68;
    color: var(--color-text-primary);
    background: linear-gradient(90deg, rgba(158, 116, 60, 0.11) 0%, rgba(46, 90, 107, 0.04) 100%);
    border-left: 3.5px solid var(--color-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    text-wrap: pretty;
}

.conservation-note strong {
    color: var(--color-gold);
    font-weight: 600;
}

/* ========================================================================
   Conservation Closing & Emblem ('Let us never forget our bond with wildlife')
   ======================================================================== */

.conservation-closing {
    margin: clamp(48px, 8dvh, 80px) 0 clamp(32px, 5dvh, 64px);
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}


.conservation-closing__intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    text-wrap: pretty;
}

.conservation-closing__intro strong {
    color: var(--color-text-primary);
}

.conservation-measures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg) var(--space-xl);
    margin: var(--space-lg) 0 var(--space-2xl);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.measure-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.measure-item__num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1.4;
    padding-top: 2px;
    flex-shrink: 0;
}

.measure-item__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.measure-item__heading {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.35;
    margin: 0;
}

.measure-item__text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text-secondary);
    margin: 0;
    text-wrap: pretty;
}

.measure-item__text strong {
    color: var(--color-ocean-200);
}

.measure-item__text em {
    color: var(--color-text-primary);
    font-style: italic;
}

.closing-quote {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.35rem);
    font-style: italic;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-primary);
    margin: var(--space-3xl) auto ;
    text-wrap: balance;
    text-align: center;
    letter-spacing: -0.01em;
}



.closing-emblem img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    opacity: 0.95;
    filter: drop-shadow(0 4px 12px rgba(31, 41, 51, 0.12));
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.closing-emblem img:hover {
    transform: translateY(-3px) scale(1.02);
    opacity: 1;
}

/* center .closing__credits */
.closing__credits{
    text-align: center;
}

@media (max-width: 768px) {
    .conservation-measures {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (forced-colors: active) {
    .hero__title,
    .hero__title em,
    .closing__title {
        background: none;
        -webkit-text-fill-color: CanvasText;
        color: CanvasText;
    }

    .scene__divider {
        border-block-end-color: Highlight;
    }

    .key-message,
    .table-wrapper {
        border-color: CanvasText;
    }
}

/* ========================================================================
   Crisis Metric Grid (2-column variant)
   ======================================================================== */

.metric-grid--crisis {
    grid-template-columns: 1fr 1fr;
}

.metric-grid--crisis .metric__value {
    color: var(--color-tuna-red);
}

/* ========================================================================
   Responsive Adjustments
   ======================================================================== */

@media (max-width: 960px) {
    :root {
        --panel-width: 100%;
    }

    .story-left-backdrop {
        display: none;
    }

    #map {
        left: 0;
        width: 100%;
        height: 38vh;
        height: 38dvh;
        top: 0;
    }

    .map-overlay {
        left: 0;
        width: 100%;
        height: 38vh;
        height: 38dvh;
    }

    .map-legend {
        right: 10px;
        left: auto;
        bottom: auto;
        top: calc(38dvh - 8px);
        transform: translateY(-100%);
        max-width: calc(100% - 20px);
        padding: 8px 12px;
    }

    .map-legend.is-visible {
        transform: translateY(-100%);
    }

    .map-legend__title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .map-legend__item {
        font-size: 0.92rem;
        gap: 8px;
    }

    .story {
        margin-top: 0;
    }

    .hero {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        margin-bottom: 36vh;
        margin-bottom: 36dvh;
    }

    .scene,
    .closing,
    .references-footer {
        width: 100%;
        min-height: auto;
        padding: var(--space-xl) var(--space-md);
        background: var(--color-ocean-900);
    }

    .references-spacer {
        height: 4vh;
        width: 100%;
    }

    .scene__content {
        padding: var(--space-md) 0;
    }

    .scene__narrative {
        columns: 1;
    }

    .scene__charts-grid,
    .geology-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .scene-nav {
        right: var(--space-sm);
    }

    .scene-nav__label {
        display: none;
    }

    .hero__title {
        font-size: clamp(1.75rem, 1.15rem + 3.2dvw, 3rem);
    }

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

@media (max-width: 480px) {
    .scene__facts {
        flex-direction: column;
    }

    .fact-chip {
        width: 100%;
    }

    .msc-metrics {
        grid-template-columns: 1fr;
    }

    .msc-stage {
        flex-direction: column;
        gap: 2px;
    }

    .scene-nav {
        display: none;
    }
}

/* ========================================================================
   Reduced Motion
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero__content,
    .hero__fin {
        animation: none;
        opacity: 1;
    }
}
