@layer reset, base, components, motion;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, blockquote { margin: 0; }
  img { display: block; max-width: 100%; }
  button, input { font: inherit; }
  a { color: inherit; text-decoration: none; }
}

@layer base {
  :root {
    --comparison-canvas-max: 1400px;
    --comparison-master-ratio: 1.4029618083; /* Musis 1800 / 1283 */
    --maroon: #5b1828;
    --maroon-deep: #2a0b14;
    --maroon-bright: #7b263a;
    --airborne-blue: #9db5c7;
    --airborne-blue-pale: #d0dce5;
    --olive: #69715a;
    --paper: #e8e1d3;
    --paper-dim: #b9b1a3;
    --ink: #121313;
    --ink-soft: #1a1d1d;
    --white: #f6f3ec;
    --line: rgba(232, 225, 211, .16);
    --header-h: 82px;
    --wrap: min(1180px, calc(100vw - 48px));
    --wrap-wide: min(1450px, calc(100vw - 32px));
    --ease-out: cubic-bezier(.16, 1, .3, 1);
  }

  body {
    min-width: 320px;
    background: var(--ink);
    color: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
  }

  body::selection { background: var(--airborne-blue); color: var(--ink); }
  h1, h2, h3, blockquote { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: .98; text-wrap: balance; }
  h2 { font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -.055em; }
  h3 { font-size: clamp(1.7rem, 3vw, 2.7rem); letter-spacing: -.035em; }
  p { text-wrap: pretty; }
  .wrap { width: var(--wrap); margin-inline: auto; }
  .wrap-wide { width: var(--wrap-wide); margin-inline: auto; }
  .section-pad { padding-block: clamp(92px, 12vw, 180px); }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .eyebrow { color: var(--airborne-blue); text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 800; }
  .section-heading { max-width: 800px; }
  .section-heading h2 { margin-top: 18px; }
  .centered { margin-inline: auto; text-align: center; }

  .grain {
    position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .055; mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  }
}

@layer components {
  .scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; background: transparent; }
  .scroll-progress span { display: block; width: 0; height: 100%; background: var(--airborne-blue); transform-origin: left; }

  .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
    padding-inline: max(24px, calc((100vw - 1450px) / 2)); border-bottom: 1px solid transparent; transition: background .35s ease, border-color .35s ease, height .35s ease;
  }
  .site-header.is-scrolled { height: 66px; background: rgba(18, 19, 19, .82); border-color: rgba(255,255,255,.08); backdrop-filter: blur(18px); }
  .brand { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; font-size: .7rem; letter-spacing: .14em; font-weight: 500; }
  .brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
  .brand b { display: block; color: var(--airborne-blue); font-size: .61rem; letter-spacing: .17em; }
  .main-nav { display: flex; gap: 30px; align-items: center; }
  .main-nav a { color: rgba(246,243,236,.72); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; transition: color .2s ease; }
  .main-nav a:hover, .main-nav a:focus-visible { color: var(--white); }
  .menu-toggle { display: none; }

  .hero { min-height: 100svh; position: relative; display: grid; align-items: end; overflow: clip; isolation: isolate; }
  .hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--maroon-deep); }
  .hero-image { position: absolute; inset: -6%; background: linear-gradient(90deg, rgba(20,12,14,.94) 3%, rgba(20,12,14,.62) 42%, rgba(20,12,14,.16) 72%), url('../images/musis-toen.webp') center 42% / cover; filter: grayscale(1) contrast(1.08) sepia(.13); transform: scale(1.05); }
  .hero-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,9,9,.24), transparent 38%, rgba(9,9,9,.58) 100%), linear-gradient(90deg, rgba(91,24,40,.3), transparent 52%); }
  .hero-lines { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 100% 25%, 25% 100%; mask-image: linear-gradient(to right, black, transparent 75%); }
  .hero-content { padding-bottom: clamp(78px, 9vw, 130px); padding-top: calc(var(--header-h) + 80px); }
  .hero-title { font-size: clamp(4.4rem, 10.8vw, 10.7rem); letter-spacing: -.075em; max-width: 1120px; }
  .title-line { display: block; }
  .title-accent { color: var(--airborne-blue-pale); margin-left: clamp(0px, 6vw, 90px); }
  .hero-intro { max-width: 670px; margin-top: 34px; margin-left: clamp(0px, 6vw, 90px); color: rgba(246,243,236,.8); font-size: clamp(1rem, 1.5vw, 1.22rem); }
  .hero-actions { display: flex; gap: 30px; align-items: center; margin: 30px 0 0 clamp(0px, 6vw, 90px); }
  .button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 0 22px; border: 1px solid transparent; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 800; transition: transform .25s var(--ease-out), background .25s ease, color .25s ease, border-color .25s ease; }
  .button:hover { transform: translateY(-3px); }
  .button-primary { background: var(--maroon); color: var(--white); box-shadow: 0 14px 40px rgba(34, 7, 14, .34); }
  .button-primary:hover { background: var(--maroon-bright); }
  .text-link { font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.34); padding-bottom: 4px; }
  .hero-marker { position: absolute; right: 26px; bottom: 24px; display: flex; align-items: center; gap: 12px; writing-mode: vertical-rl; text-transform: uppercase; letter-spacing: .16em; font-size: .58rem; opacity: .55; }
  .hero-marker i { width: 1px; height: 52px; background: currentColor; }

  .intro-section { background: var(--paper); color: var(--ink); }
  .intro-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(50px, 9vw, 140px); align-items: start; }
  .intro-section .eyebrow { color: var(--maroon); }
  .intro-copy { max-width: 680px; padding-top: 12px; color: #3e3f3d; }
  .intro-copy .lead { color: var(--ink); font-family: Georgia, serif; font-size: clamp(1.55rem, 2.4vw, 2.25rem); line-height: 1.24; letter-spacing: -.025em; margin-bottom: 30px; }
  .intro-copy p + p { margin-top: 20px; }
  .facts { margin-top: clamp(75px, 9vw, 120px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(18,19,19,.16); }
  .fact-card { padding: 34px 28px 0 0; min-height: 220px; border-right: 1px solid rgba(18,19,19,.12); position: relative; }
  .fact-card + .fact-card { padding-left: 28px; }
  .fact-card:last-child { border-right: 0; }
  .fact-index { display: block; color: var(--maroon); font-size: .65rem; letter-spacing: .16em; font-weight: 800; margin-bottom: 22px; }
  .fact-card strong { font-family: Georgia, serif; font-size: clamp(2.1rem, 4vw, 3.6rem); font-weight: 400; line-height: 1; letter-spacing: -.05em; }
  .fact-card p { max-width: 330px; margin-top: 18px; color: #585853; font-size: .92rem; }

  .timeline-section { background: #121414; color: var(--paper); overflow: clip; }
  .timeline-heading { display: grid; grid-template-columns: 1fr .65fr; gap: 60px; align-items: end; margin-bottom: 90px; }
  .timeline-intro { max-width: 430px; color: var(--paper-dim); }
  .timeline-track { position: relative; padding-bottom: 20px; }
  .timeline-line { position: absolute; top: 8px; bottom: 30px; left: calc(31% - 1px); width: 1px; background: rgba(232,225,211,.14); }
  .timeline-line span { position: absolute; inset: 0; height: 0; background: linear-gradient(var(--airborne-blue), var(--maroon-bright)); box-shadow: 0 0 25px rgba(157,181,199,.2); }
  .timeline-event { display: grid; grid-template-columns: 31% 34px 1fr; gap: 0; position: relative; min-height: 300px; padding-bottom: 74px; }
  .timeline-date { text-align: right; padding: 4px 48px 0 0; position: sticky; top: 110px; align-self: start; }
  .timeline-date span { display: block; color: var(--paper-dim); text-transform: uppercase; letter-spacing: .13em; font-size: .65rem; }
  .timeline-date strong { display: block; margin-top: 7px; font-family: Georgia, serif; font-weight: 400; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .9; color: var(--white); }
  .timeline-dot { width: 13px; height: 13px; margin: 7px auto 0; border: 2px solid var(--airborne-blue); border-radius: 50%; background: #121414; z-index: 2; box-shadow: 0 0 0 8px #121414; }
  .timeline-card { max-width: 680px; margin-left: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
  .timeline-kicker { margin-bottom: 16px; color: var(--airborne-blue); text-transform: uppercase; letter-spacing: .16em; font-size: .67rem; font-weight: 800; }
  .timeline-card p:last-of-type { max-width: 600px; margin-top: 22px; color: var(--paper-dim); }
  .timeline-event-featured .timeline-card { position: relative; padding: 42px; margin-top: -38px; margin-bottom: 30px; border: 1px solid rgba(157,181,199,.22); background: linear-gradient(135deg, rgba(91,24,40,.36), rgba(255,255,255,.025)); overflow: hidden; }
  .timeline-event-featured .timeline-dot { background: var(--airborne-blue); box-shadow: 0 0 0 8px #121414, 0 0 30px rgba(157,181,199,.5); }
  .signal { position: absolute; right: -35px; bottom: -35px; width: 180px; height: 180px; opacity: .12; }
  .signal span { position: absolute; inset: 50%; border: 1px solid var(--airborne-blue); border-radius: 50%; transform: translate(-50%,-50%); }
  .signal span:nth-child(1) { width: 35px; height: 35px; }
  .signal span:nth-child(2) { width: 75px; height: 75px; }
  .signal span:nth-child(3) { width: 120px; height: 120px; }
  .signal span:nth-child(4) { width: 170px; height: 170px; }

  .quote-break { min-height: 82svh; position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
  .quote-bg { position: absolute; inset: -8%; z-index: -1; background: linear-gradient(rgba(22,10,14,.45), rgba(22,10,14,.86)), url('../images/musis-toen.webp') center / cover; filter: grayscale(.9) contrast(1.18); }
  .quote-content { text-align: center; max-width: 1050px; }
  .quote-content blockquote { margin-top: 24px; font-size: clamp(2.8rem, 7vw, 6.7rem); letter-spacing: -.055em; }

  .compare-section { background: var(--paper); color: var(--ink); overflow: clip; }
  .compare-copy-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; margin-bottom: 60px; }
  .compare-section .eyebrow { color: var(--maroon); }
  .compare-intro { max-width: 500px; color: #4c4c48; }
  .microcopy { margin-top: 14px; font-size: .78rem; color: #77756e; }
  .compare-shell {
    position: relative;
    width: min(var(--comparison-canvas-max), calc(100vw - 48px));
    max-width: var(--comparison-canvas-max);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .comparison { position: relative; width: 100%; aspect-ratio: 1800 / 1283; margin-inline: auto; overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize; background: #222; box-shadow: 0 35px 90px rgba(25,17,15,.18); }
  .comparison-image, .comparison-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .comparison-after { filter: saturate(.78) contrast(1.03); }
  .comparison-before { position: absolute; inset: 0 auto 0 0; width: var(--position); overflow: hidden; z-index: 2; border-right: 1px solid rgba(255,255,255,.8); }
  .comparison-before img { width: 100vw; max-width: none; min-width: var(--comparison-width, 100%); filter: grayscale(1) contrast(1.06); }
  .comparison-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.17), transparent 30%, transparent 70%, rgba(0,0,0,.1)); }
  .comparison-divider { position: absolute; z-index: 5; left: var(--position); top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.9); transform: translateX(-1px); pointer-events: none; }
  .comparison-handle { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; display: flex; align-items: center; justify-content: center; gap: 10px; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.78); border-radius: 50%; background: rgba(26,29,29,.55); color: white; backdrop-filter: blur(8px); box-shadow: 0 9px 30px rgba(0,0,0,.28); }
  .comparison-handle i { font-family: Georgia, serif; font-style: normal; font-size: 1.65rem; line-height: 1; }
  .comparison-range { position: absolute; inset: 0; z-index: 10; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
  .compare-label { position: absolute; z-index: 6; top: 24px; padding: 9px 14px; color: white; background: var(--maroon); border: 1px solid rgba(255,255,255,.18); border-radius: 7px; box-shadow: 0 8px 24px rgba(35,10,16,.22); font-size: .66rem; text-transform: uppercase; letter-spacing: .17em; font-weight: 800; pointer-events: none; }
  .compare-label-before { left: 24px; }
  .compare-label-after { right: 24px; }
  .compare-caption {
    width: var(--comparison-width, 100%);
    max-width: 100%;
    margin-inline: auto;
    padding: 28px 0 0;
    color: #5e5c56;
    font-size: .82rem;
    box-sizing: border-box;
  }
  .compare-caption-main { display: grid; grid-template-columns: minmax(220px, .6fr) minmax(0, 1fr); gap: 50px; align-items: start; }
  .compare-caption span { display: block; color: var(--maroon); text-transform: uppercase; font-weight: 800; letter-spacing: .12em; font-size: .68rem; }
  .compare-caption small { display: block; margin-top: 7px; color: #77756e; font-size: .7rem; letter-spacing: .04em; }
  .compare-caption p { max-width: 660px; margin: 0; }
  .compare-credits { display: flex; justify-content: space-between; gap: 24px; margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(91,24,40,.18); }
  .compare-credits span { flex: 0 0 auto; font-size: .58rem; }
  .compare-credits small { margin-top: 0; text-align: right; }

  .chapters { background: #181a19; }
  .chapter-grid { margin-top: 72px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .chapter-card { min-height: 310px; display: grid; grid-template-columns: 90px 1fr; gap: 30px; padding: 42px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .35s ease, transform .35s var(--ease-out); }
  .chapter-card:hover { background: rgba(157,181,199,.055); transform: translateY(-5px); }
  .chapter-number { color: var(--maroon-bright); font-family: Georgia, serif; font-style: italic; font-size: 1.7rem; }
  .chapter-card p { margin-top: 18px; color: var(--paper-dim); max-width: 430px; }

  .finale { min-height: 100svh; position: relative; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; }
  .finale-bg { position: absolute; inset: -10%; z-index: -1; background: radial-gradient(circle at center, rgba(91,24,40,.3), transparent 46%), linear-gradient(rgba(8,9,9,.72), rgba(8,9,9,.94)), url('../images/musis-nu.webp') center / cover; filter: saturate(.55); }
  .finale-content { max-width: 1000px; padding-block: 110px; }
  .finale-emblem { width: 96px; margin: 0 auto 30px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }
  .finale h2 { margin-top: 18px; font-size: clamp(3.3rem, 8vw, 7.8rem); }
  .finale-text { max-width: 680px; margin: 30px auto; color: rgba(232,225,211,.74); font-size: 1.05rem; }
  .button-ghost { border-color: rgba(246,243,236,.32); margin-top: 12px; }
  .button-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

  .site-footer { background: #0d0e0e; border-top: 1px solid rgba(255,255,255,.07); color: rgba(232,225,211,.5); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
  .footer-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

  @media (max-width: 860px) {
    :root { --header-h: 70px; --wrap: min(100% - 36px, 700px); --wrap-wide: calc(100vw - 20px); }
    .site-header { padding-inline: 18px; }
    .main-nav { position: fixed; inset: 0; z-index: -1; display: grid; align-content: center; gap: 0; padding: 90px 28px 40px; background: rgba(28,10,16,.97); backdrop-filter: blur(20px); transform: translateY(-105%); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s ease; }
    .main-nav.is-open { transform: translateY(0); opacity: 1; }
    .main-nav a { font-family: Georgia, serif; font-size: clamp(2.4rem, 12vw, 4.8rem); font-weight: 400; text-transform: none; letter-spacing: -.04em; padding: 11px 0; color: var(--paper); }
    .menu-toggle { width: 46px; height: 46px; display: grid; place-content: center; gap: 7px; background: transparent; color: white; border: 0; cursor: pointer; z-index: 2; }
    .menu-toggle span:not(.sr-only) { display: block; width: 26px; height: 1px; background: currentColor; transition: transform .3s ease; }
    .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
    .hero-image { background-position: 62% center; }
    .hero-title { font-size: clamp(4rem, 18vw, 7.6rem); }
    .title-accent, .hero-intro, .hero-actions { margin-left: 0; }
    .hero-intro { max-width: 92%; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
    .hero-marker { display: none; }
    .intro-grid, .timeline-heading, .compare-copy-grid { grid-template-columns: 1fr; gap: 38px; }
    .facts { grid-template-columns: 1fr; }
    .fact-card, .fact-card + .fact-card { min-height: auto; padding: 28px 0 34px; border-right: 0; border-bottom: 1px solid rgba(18,19,19,.12); }
    .timeline-heading { margin-bottom: 64px; }
    .timeline-line { left: 14px; }
    .timeline-event { grid-template-columns: 28px 1fr; min-height: 0; padding-bottom: 60px; }
    .timeline-dot { grid-column: 1; grid-row: 1 / span 2; margin: 8px 0 0 8px; }
    .timeline-date { position: static; grid-column: 2; text-align: left; padding: 0 0 22px 28px; }
    .timeline-date strong { font-size: 3rem; }
    .timeline-card { grid-column: 2; margin-left: 28px; padding-bottom: 42px; }
    .timeline-event-featured .timeline-card { margin: 0 0 0 28px; padding: 30px 24px; }
    .quote-break { min-height: 70svh; }
    .compare-caption-main { grid-template-columns: 1fr; gap: 12px; }
    .compare-credits { align-items: flex-start; }
    .chapter-grid { grid-template-columns: 1fr; }
    .chapter-card { min-height: 250px; grid-template-columns: 45px 1fr; gap: 16px; padding: 30px 24px; }
    .footer-inner { min-height: 100px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 6px; }
  }

  @media (max-width: 520px) {
    .brand span { font-size: .6rem; }
    .brand img { width: 36px; height: 36px; }
    .hero-content { padding-bottom: 62px; }
    .hero-title { font-size: clamp(3.6rem, 18vw, 5.6rem); }
    .hero-intro { font-size: .98rem; }
    .comparison-handle { width: 58px; height: 58px; }
    .compare-label { top: 14px; }
    .compare-label-before { left: 14px; }
    .compare-label-after { right: 14px; }
    .compare-credits { flex-direction: column; gap: 5px; }
    .compare-credits small { text-align: left; }
    .chapter-card { grid-template-columns: 1fr; }
  }
}

@layer motion {
  .reveal { opacity: 0; transform: translateY(38px); transition: opacity .8s ease, transform .9s var(--ease-out); }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
  .hero .reveal:nth-child(2) { transition-delay: .08s; }
  .hero .reveal:nth-child(3) { transition-delay: .16s; }
  .hero .reveal:nth-child(4) { transition-delay: .24s; }
  .facts .reveal:nth-child(2), .chapter-grid .reveal:nth-child(2) { transition-delay: .08s; }
  .facts .reveal:nth-child(3), .chapter-grid .reveal:nth-child(3) { transition-delay: .16s; }
  .chapter-grid .reveal:nth-child(4) { transition-delay: .24s; }
  .hero-image { animation: heroIn 1.8s var(--ease-out) both; }
  @keyframes heroIn { from { transform: scale(1.14); filter: grayscale(1) contrast(1.2) blur(5px); } to { transform: scale(1.05); filter: grayscale(1) contrast(1.08) sepia(.13) blur(0); } }

  @supports (animation-timeline: view()) {
    .quote-bg, .finale-bg { animation: parallax linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes parallax { from { transform: translateY(-4%) scale(1.05); } to { transform: translateY(4%) scale(1.05); } }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
  }
}

/* Section rhythm: dark intro, light frontstad, dark timeline, light then/now, dark present-day finale. */
.compare-caption em { color: var(--ink); font-family: Georgia, "Times New Roman", serif; }

/* Full-viewport intro: one complete opening screen on desktop, tablet and mobile. */
.hero {
  min-height: 100vh;
  height: 100vh;
  min-height: 100svh;
  height: 100svh;
  min-height: 100dvh;
  height: 100dvh;
}

.hero-content {
  width: var(--wrap);
  margin-inline: auto;
  padding-top: max(calc(var(--header-h) + 28px), 10vh);
  padding-bottom: clamp(34px, 7vh, 86px);
}

/* Limit typography by viewport height as well as width, so short laptop screens still fit. */
.hero-title {
  font-size: clamp(3.5rem, min(10.8vw, 15vh), 10.7rem);
}

.hero-intro {
  margin-top: clamp(16px, 3vh, 34px);
}

.hero-actions {
  margin-top: clamp(18px, 3vh, 30px);
}

@media (max-width: 860px) {
  .hero-content {
    padding-top: max(calc(var(--header-h) + 18px), 9vh);
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .hero-title {
    font-size: clamp(3.4rem, min(18vw, 13vh), 7.6rem);
  }

  .hero-intro {
    max-width: min(92%, 620px);
  }
}

@media (max-width: 520px) {
  .hero-content {
    padding-top: max(calc(var(--header-h) + 12px), 8vh);
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .hero-title {
    font-size: clamp(3rem, min(18vw, 11.5vh), 5.6rem);
  }

  .hero-intro {
    margin-top: clamp(12px, 2.2vh, 22px);
    font-size: clamp(.86rem, 2.2vh, .98rem);
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: clamp(14px, 2.2vh, 22px);
    gap: 12px;
  }

  .button {
    min-height: 46px;
  }
}

/* Short screens / landscape phones: keep the entire intro inside the viewport. */
@media (max-height: 700px) {
  .hero-content {
    padding-top: calc(var(--header-h) + 12px);
    padding-bottom: 22px;
  }

  .hero-title {
    font-size: clamp(2.9rem, min(9vw, 13vh), 7rem);
  }

  .hero-intro {
    margin-top: 12px;
    font-size: .9rem;
    line-height: 1.4;
  }

  .hero-actions {
    margin-top: 14px;
    gap: 14px;
  }

  .button {
    min-height: 44px;
  }
}

/* Cinematic motion layer --------------------------------------------------- */
@layer components {
  .hero-bg { overflow: hidden; }
  .hero-image {
    will-change: transform;
    transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0) scale(var(--hero-scale, 1.07));
  }
  .hero-vignette { will-change: opacity, transform; transform: translate3d(0, var(--hero-vignette-y, 0px), 0); }
  .hero-lines { will-change: transform, opacity; transform: translate3d(var(--hero-lines-x, 0px), var(--hero-lines-y, 0px), 0); }
  .hero-content { position: relative; z-index: 2; will-change: transform, opacity; transform: translate3d(0, var(--hero-copy-y, 0px), 0); opacity: var(--hero-copy-opacity, 1); }

  .intro-section,
  .timeline-section,
  .compare-section,
  .finale { position: relative; isolation: isolate; }

  .intro-section::before,
  .compare-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at var(--glow-x, 80%) var(--glow-y, 20%), rgba(91,24,40,.08), transparent 34%);
  }

  .timeline-section::before {
    content: "";
    position: absolute;
    width: min(70vw, 900px);
    aspect-ratio: 1;
    right: -28vw;
    top: 14%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(157,181,199,.07), transparent 68%);
    pointer-events: none;
  }

  .fact-card,
  .timeline-card,
  .compare-shell {
    transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), border-color .35s ease;
  }

  @media (hover: hover) and (pointer: fine) {
    .fact-card:hover { transform: translateY(-8px); }
    .timeline-event:not(.timeline-event-featured) .timeline-card:hover { transform: translateX(10px); }
    .timeline-event-featured .timeline-card:hover { transform: translateY(-6px); box-shadow: 0 28px 80px rgba(0,0,0,.28); }
    .compare-shell:hover { transform: translateY(-5px); }
  }

  .comparison { box-shadow: 0 30px 90px rgba(25,19,16,.16); }
  .comparison-divider { filter: drop-shadow(0 0 16px rgba(246,243,236,.28)); }
  .comparison-handle { transition: transform .25s var(--ease-out), box-shadow .25s ease; }
  .comparison:hover .comparison-handle { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 8px rgba(246,243,236,.12); }

  .finale { overflow: hidden; }
  .finale-bg { will-change: transform; transform: translate3d(0, var(--finale-y, 0px), 0) scale(1.08); }
  .finale-emblem { filter: drop-shadow(0 12px 28px rgba(0,0,0,.28)); }
}

@layer motion {
  .reveal {
    --reveal-x: 0px;
    --reveal-y: 42px;
    opacity: 0;
    transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(.985);
    filter: blur(3px);
    transition: opacity .85s ease, transform 1s var(--ease-out), filter .8s ease;
  }
  .reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }

  .intro-grid > .reveal:first-child,
  .compare-copy-grid > .reveal:first-child { --reveal-x: -34px; --reveal-y: 0px; }
  .intro-grid > .reveal:last-child,
  .compare-copy-grid > .reveal:last-child { --reveal-x: 34px; --reveal-y: 0px; }
  .timeline-event:nth-of-type(odd) .timeline-card { --reveal-x: 28px; }

  .timeline-dot { transition: background .35s ease, box-shadow .45s ease, transform .45s var(--ease-out); }
  .timeline-event.is-visible .timeline-dot {
    background: var(--airborne-blue);
    box-shadow: 0 0 0 8px #121414, 0 0 28px rgba(157,181,199,.42);
    transform: scale(1.08);
  }

  .fact-card.is-visible::after {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 54px;
    height: 1px;
    background: var(--maroon);
    transform-origin: left;
    animation: lineDraw .8s .2s var(--ease-out) both;
  }

  .signal span { animation: signalPulse 1.9s ease-in-out infinite; }
  .signal span:nth-child(2) { animation-delay: .14s; }
  .signal span:nth-child(3) { animation-delay: .28s; }
  .signal span:nth-child(4) { animation-delay: .42s; }

  .finale-emblem.is-visible { animation: emblemFloat 5s 1s ease-in-out infinite; }

  @keyframes lineDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes signalPulse { 0%, 100% { opacity: .25; transform: scaleY(.7); } 50% { opacity: 1; transform: scaleY(1.18); } }
  @keyframes emblemFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(-1deg); } }

  @media (max-width: 860px) {
    .intro-grid > .reveal:first-child,
    .intro-grid > .reveal:last-child,
    .compare-copy-grid > .reveal:first-child,
    .compare-copy-grid > .reveal:last-child { --reveal-x: 0px; --reveal-y: 30px; }
    .reveal { filter: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-image, .hero-vignette, .hero-lines, .hero-content, .finale-bg { transform: none !important; opacity: 1 !important; }
    .signal span, .finale-emblem.is-visible, .fact-card.is-visible::after { animation: none !important; }
  }
}

  .compare-shell-secondary {
    margin-top: clamp(72px, 10vw, 150px);
  }

  .comparison {
    max-width: 100%;
    margin-inline: auto;
  }

  .compare-caption {
    width: 100%;
  }

  @media (max-width: 767px) {
    .compare-shell {
      width: calc(100vw - 28px);
    }
  }


/* ------------------------------------------------------------
   THEN / NOW sizing model
   Musis defines the maximum presentation envelope.
   Each historical image defines its own slider aspect ratio.
   The current image is cropped into that historical frame.
   ------------------------------------------------------------ */

.compare-shell {
  width: min(var(--comparison-canvas-max), calc(100vw - 48px));
  max-width: var(--comparison-canvas-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comparison {
  width: var(--comparison-width, 100%);
  height: var(--comparison-height, auto);
  max-width: 100%;
  margin-inline: auto;
  background: #171818;
}

/* The NOW photo always fills the frame created by the historical photo. */
.comparison > .comparison-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Keep the THEN image at its complete original composition.
   Clip the complete image instead of resizing the clipped half. */
.comparison-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-right: 0;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.comparison-before img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none;
  height: 100% !important;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1) contrast(1.06);
}

/* Caption and credits align to the actual historical photo frame,
   not to the 1400px master envelope. */
.compare-caption {
  width: var(--comparison-width, 100%);
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .compare-shell {
    width: calc(100vw - 28px);
  }
}


/* ============================================================
   V16 — PHOTO MAP + CONSISTENT ARCHIVE FRAME
   ============================================================ */

.photo-map-section {
  background:
    radial-gradient(circle at var(--glow-x, 65%) var(--glow-y, 35%), rgba(157,181,199,.07), transparent 30%),
    #121414;
  color: var(--paper);
  overflow: clip;
}

.photo-map-heading {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
  margin-bottom: clamp(46px, 7vw, 90px);
}

.photo-map-intro {
  max-width: 590px;
  color: var(--paper-dim);
}

.photo-map-intro .microcopy {
  margin-top: 16px;
  color: rgba(232,225,211,.55);
  font-size: .78rem;
}

.photo-map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  border: 1px solid rgba(232,225,211,.16);
  background: #171919;
}

.photo-map {
  min-height: min(68svh, 720px);
  background: #252522;
  position: relative;
}

.photo-map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 5px;
  color: var(--paper-dim);
}

.photo-map-fallback strong {
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.photo-map-fallback span { font-size: .78rem; }

.photo-map-list {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(232,225,211,.14);
}

.photo-map-list a {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-areas:
    "index title"
    "index place";
  gap: 2px 12px;
  padding: 24px 22px;
  border-bottom: 1px solid rgba(232,225,211,.12);
  transition: background .2s ease, color .2s ease;
}

.photo-map-list a:hover,
.photo-map-list a:focus-visible {
  background: rgba(91,24,40,.34);
}

.photo-map-list span {
  grid-area: index;
  color: var(--airborne-blue);
  font-size: .62rem;
  letter-spacing: .14em;
  padding-top: 3px;
}

.photo-map-list strong {
  grid-area: title;
  color: var(--white);
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 1.15rem;
}

.photo-map-list small {
  grid-area: place;
  color: var(--paper-dim);
  font-size: .69rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.maplibregl-map { font-family: inherit; }
.maplibregl-ctrl-attrib {
  background: rgba(18,20,20,.76) !important;
  color: rgba(246,243,236,.78) !important;
}
.maplibregl-ctrl-attrib a { color: var(--airborne-blue) !important; }
.maplibregl-popup-content {
  background: #f0eadc;
  color: #1d1d1b;
  border-radius: 0;
  padding: 15px 17px;
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}
.maplibregl-popup-tip { border-top-color: #f0eadc !important; }
.photo-map-popup strong {
  display: block;
  color: var(--maroon);
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
}
.photo-map-popup span {
  display: block;
  margin: 3px 0 11px;
  color: #68645d;
  font-size: .72rem;
}
.photo-map-popup a {
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 800;
  letter-spacing: .09em;
  font-size: .64rem;
}

/* Same neutral archive frame for every photo set. */
.compare-shell {
  --archive-frame-max-w: 1400px;
  --archive-frame-max-h: 760px;
  --archive-frame-pad: clamp(10px, 2vw, 28px);
  width: min(var(--archive-frame-max-w), calc(100vw - 32px));
  max-width: var(--archive-frame-max-w);
  margin-inline: auto;
  scroll-margin-top: calc(var(--header-h) + 28px);
  display: block;
}

.compare-shell-secondary {
  margin-top: clamp(90px, 12vw, 180px);
}

.archive-frame {
  width: 100%;
  height: min(var(--archive-frame-max-h), 72svh);
  min-height: 320px;
  padding: var(--archive-frame-pad);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,.12), transparent 25%),
    linear-gradient(135deg, rgba(121,105,80,.18), rgba(40,35,30,.04)),
    #b9ae98;
  border: 1px solid rgba(69,54,39,.35);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.28),
    inset 0 0 55px rgba(66,48,30,.16),
    0 22px 60px rgba(42,31,21,.12);
}

.archive-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.comparison-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.comparison {
  width: var(--comparison-width, 100%) !important;
  height: var(--comparison-height, 100%) !important;
  max-width: 100%;
  max-height: 100%;
  margin: 0 !important;
  position: relative;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  background: #191817;
  cursor: ew-resize;
  box-shadow: 0 10px 32px rgba(29,23,17,.2);
}

.comparison > .comparison-after,
.comparison-before img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.comparison > .comparison-after {
  object-fit: cover;
  object-position: center;
}

.comparison-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
  pointer-events: none;
}

.comparison-before img {
  object-fit: contain;
  object-position: center;
  max-width: none;
  filter: grayscale(1) contrast(1.06);
}

.comparison-divider {
  z-index: 7;
  pointer-events: none;
}

.comparison-handle {
  width: clamp(54px, 5vw, 66px);
  height: clamp(54px, 5vw, 66px);
  border-width: 2px;
  box-shadow: 0 8px 28px rgba(0,0,0,.32);
}

.comparison-range {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y pinch-zoom;
}

/* Information always aligns to the full fixed archive frame. */
.compare-caption {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(24px, 3vw, 36px) var(--archive-frame-pad) 0 !important;
}

.compare-caption-main {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.compare-caption p {
  margin: 0;
  max-width: 760px;
}

.compare-credits {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(91,24,40,.18);
}

.compare-credits small {
  text-align: left !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  .photo-map-heading { grid-template-columns: 1fr; gap: 26px; }
  .photo-map-wrap { grid-template-columns: 1fr; }
  .photo-map { min-height: min(58svh, 560px); }
  .photo-map-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 0;
    border-top: 1px solid rgba(232,225,211,.14);
  }
  .photo-map-list a {
    padding: 18px 15px;
    border-bottom: 0;
    border-right: 1px solid rgba(232,225,211,.12);
  }
  .photo-map-list a:last-child { border-right: 0; }

  .compare-shell {
    width: min(100% - 24px, var(--archive-frame-max-w));
  }

  .archive-frame {
    height: min(690px, 68svh);
    min-height: 300px;
  }

  .compare-caption-main,
  .compare-credits {
    grid-template-columns: minmax(170px, .45fr) minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .photo-map { min-height: 54svh; }
  .photo-map-list {
    grid-template-columns: 1fr;
  }
  .photo-map-list a {
    border-right: 0;
    border-bottom: 1px solid rgba(232,225,211,.12);
  }

  .compare-shell {
    width: calc(100vw - 16px);
    --archive-frame-pad: 8px;
  }

  .archive-frame {
    height: max(280px, min(580px, 58svh));
    min-height: 0;
  }

  .comparison-handle {
    width: 62px;
    height: 62px;
  }

  .compare-label {
    top: 12px;
    padding: 8px 10px;
  }

  .compare-label-before { left: 12px; }
  .compare-label-after { right: 12px; }

  .compare-caption {
    padding: 20px 10px 0 !important;
  }

  .compare-caption-main,
  .compare-credits {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .compare-credits {
    margin-top: 20px;
    gap: 5px;
  }
}


.photo-map-marker {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(246,243,236,.95);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--white);
  font: 800 .64rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .08em;
  box-shadow: 0 6px 22px rgba(0,0,0,.32);
  cursor: pointer;
  transition: transform .2s var(--ease-out), background .2s ease;
}

.photo-map-marker:hover,
.photo-map-marker:focus-visible {
  transform: scale(1.12);
  background: var(--maroon-bright);
}
