  :root {
    --ink: #1e1b16;
    --ink-soft: #5c564c;
    --sand: #f0ede5;
    --sand-deep: #e2ddd0;
    --terracotta: #7abe98;   /* legacy var name; now the site's soft green */
    --ocean: #1b4965;
    --gold: #c8a266;
    --serif: "Fraunces", Georgia, serif;
    --sans: "Archivo", Helvetica, sans-serif;
    --mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, monospace;
    --paper: #f0ede5;
    --panel: rgba(16, 16, 12, 0.68);
    --hair: rgba(232, 220, 196, 0.14);
    --accent: #c8a266;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--sans);
    color: var(--ink);
    background: transparent;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  @media (pointer: fine) { body { cursor: none; } body a, body button { cursor: none; } }

  /* ---------- Full-page 3D world ---------- */
  .world-bg {
    position: fixed; inset: 0; z-index: 0;
    /* matches the WebGL sky - if the module ever fails, the page degrades
       to this lacquer-night backdrop instead of a white void */
    background: linear-gradient(to bottom, #0b0d0a 0%, #10120d 40%, #211d13 70%, #2e2818 80%, #0a0a08 100%);
  }
  #treeCanvas { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 1; transition: opacity 1.6s ease 0.1s; }
  body.loading #treeCanvas { opacity: 0; transition: none; }
  main { position: relative; z-index: 2; }

  /* ---------- Custom cursor ---------- */
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
    border-radius: 50%; transform: translate(-50%, -50%);
  }
  .cursor-dot { width: 8px; height: 8px; background: var(--gold); }
  .cursor-ring {
    width: 36px; height: 36px; border: 1.5px solid rgba(200, 162, 102, 0.55);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  }
  .cursor-ring.hovering { width: 64px; height: 64px; background: rgba(200, 162, 102, 0.08); border-color: var(--gold); }
  @media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

  .progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), #7abe98); z-index: 9000; }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 6vw 7vw 11vh;
    color: #fdfbf7;
    background: transparent;   /* base gradient moved into .hero-bg so the layer can fade to reveal the 3D world */
    overflow: hidden;
  }
  /* hero-bg cross-dissolves into the fixed 3D canopy behind it (--hero-fade,
     scroll-driven). This pure-CSS dawn gradient paints immediately; boot.js
     then swaps in the procedural canvas sky (same palette), so the hero never
     flashes while the real backdrop is generated. */
  .hero-bg {
    position: absolute; inset: -4%;
    background-image:
      radial-gradient(120% 90% at 66% 78%, rgba(216,190,140,0.16) 0%, rgba(200,162,102,0.06) 34%, rgba(200,162,102,0) 62%),
      linear-gradient(to bottom, #0b0d0a 0%, #10120d 40%, #1b1810 62%, #2a2416 78%, #161410 92%, #0c0c09 100%);
    background-size: cover;
    background-position: center 65%;
    opacity: var(--hero-fade, 1);
    will-change: transform, opacity;
  }
  .hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(12, 13, 10, 0.85) 0%, rgba(12, 13, 10, 0.25) 45%, rgba(12, 13, 10, 0.35) 100%);
    opacity: var(--hero-fade, 1);
  }
  .hero > .hero-content { position: relative; z-index: 2; text-shadow: 0 2px 30px rgba(6,9,26,0.72), 0 1px 4px rgba(6,9,26,0.55); }
  .float-shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35; z-index: 1; will-change: transform; }
  .fs1 { width: 38vw; height: 38vw; background: #c8a266; top: -12%; right: -8%; opacity: 0.16; }
  .fs2 { width: 26vw; height: 26vw; background: #37503f; bottom: 8%; left: -10%; opacity: 0.22; }
  .hero-kicker { font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase; color: #d9c49a; margin-bottom: 1.2rem; animation: rise 0.9s ease both; }
  .hero h1 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(2.8rem, 7.5vw, 6rem);
    line-height: 1.02; letter-spacing: -0.01em; max-width: 12ch;
    animation: rise 0.9s 0.15s ease both;
  }
  .hero h1 em { font-style: italic; color: #d9c49a; }
  .hero h1 .ch { display: inline-block; transition: transform 0.3s ease, color 0.3s ease; }
  .hero h1 .ch:hover { transform: translateY(-10px) rotate(-4deg); color: var(--gold); }
  .hero-sub { margin-top: 1.6rem; max-width: 46ch; font-weight: 300; font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(253,251,247,0.88); animation: rise 0.9s 0.3s ease both; }
  .hero-cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; animation: rise 0.9s 0.45s ease both; }
  .btn {
    display: inline-block; padding: 0.85rem 1.8rem; border-radius: 2px;
    font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
    transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease;
    will-change: transform;
  }
  .btn-solid { background: #7abe98; color: #141310; }
  .btn-solid:hover { background: #8fceab; }
  .btn-ghost { border: 1px solid rgba(253,251,247,0.55); color: #fdfbf7; }
  .btn-ghost:hover { background: rgba(253,251,247,0.12); }
  .back-home { position: fixed; top: 1.1rem; left: 1.85rem; z-index: 8500; padding: 0.6rem 1.2rem; }
  .scroll-hint {
    position: absolute; bottom: 2.2rem; right: 7vw; z-index: 2;
    font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(253,251,247,0.7);
    writing-mode: vertical-rl; animation: bob 2.2s ease-in-out infinite;
  }
  @keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

  /* ---------- Marquee ---------- */
  .marquee { background: rgba(29, 39, 51, 0.92); backdrop-filter: blur(8px); color: var(--sand); overflow: hidden; padding: 1.1rem 0; white-space: nowrap; }
  .marquee-track { display: inline-block; animation: scroll-x 28s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .marquee span { font-family: var(--serif); font-style: italic; font-size: 1.05rem; margin: 0 2.2rem; }
  .marquee b { color: var(--gold); font-weight: 400; }
  @keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* ---------- Sections (glass over the 3D world) ---------- */
  section { padding: 9vh 7vw; }
  /* content floats as cards so the 3D world stays visible around them */
  .beyond {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 30px 80px rgba(20,14,8,0.18);
  }
  .section-label { font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 2.2rem; }
  .section-label::after { content: ""; display: inline-block; width: 48px; height: 1px; background: var(--gold); margin-left: 14px; vertical-align: middle; }
  /* depth meter: fixed HUD readout, revealed by the camera's actual depth (JS) */
  .depth-meter {
    position: fixed; right: 3vw; top: 50%; transform: translateY(-50%);
    font-size: 0.7rem; letter-spacing: 0.2em; color: rgba(240,228,207,0.6);
    writing-mode: vertical-rl;
    opacity: 0; transition: opacity 0.5s ease;
    z-index: 8000; pointer-events: none;
  }

  /* ---------- 3D ocean scene ---------- */
  .scene-section { background: var(--ocean); color: #f4efe7; padding: 0; position: relative; }
  .scene-wrap { position: relative; height: 88vh; min-height: 540px; }
  #scene3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
  .scene-overlay { position: absolute; top: 9vh; left: 7vw; z-index: 3; pointer-events: none; max-width: 34ch; }
  .scene-overlay .section-label { color: #e8d9b8; }
  .scene-overlay .section-label::after { background: #e8d9b8; }
  .scene-overlay h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.15; }
  .scene-overlay h2 em { font-style: italic; color: #e8d9b8; }
  .scene-overlay p { margin-top: 1rem; font-size: 0.95rem; color: rgba(244,239,231,0.8); }
  .scene-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3; font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(244,239,231,0.65); pointer-events: none; }
  .game-hud { position: absolute; top: 9vh; right: 7vw; z-index: 4; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: #e8d9b8; }
  .game-btn {
    pointer-events: auto; background: #7abe98; color: #141310; border: none;
    padding: 0.85rem 1.7rem; font-family: var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
    font-size: 0.8rem; cursor: pointer; border-radius: 2px; transition: background 0.25s ease, transform 0.2s ease;
  }
  .game-btn:hover { background: #8fceab; transform: translateY(-2px); }
  .game-start { position: absolute; bottom: 5.5rem; left: 50%; transform: translateX(-50%); z-index: 4; }
  .game-start:hover { transform: translateX(-50%) translateY(-2px); }
  .game-panel {
    position: absolute; inset: 0; display: flex; flex-direction: column; gap: 0.9rem;
    align-items: center; justify-content: center; background: rgba(16,42,60,0.74); z-index: 5; text-align: center;
  }
  .game-panel h3 { font-family: var(--serif); font-size: 2.4rem; font-weight: 400; color: #e8d9b8; }
  .game-panel p { color: rgba(244,239,231,0.85); }
  [hidden] { display: none !important; }

  /* ---------- Beyond ---------- */
  .beyond { background: rgba(16, 42, 60, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #f4efe7; width: min(1020px, 90vw); margin: 22vh auto; padding: 7vh 4vw; }
  .beyond .section-label { color: #e8d9b8; }
  .beyond .section-label::after { background: #e8d9b8; }
  .beyond-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .beyond-card { padding: 1.6rem; border: 1px solid rgba(232,217,184,0.18); border-radius: 4px; transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease; }
  .beyond-card:hover { border-color: var(--gold); transform: translateY(-6px); background: rgba(232,217,184,0.05); }
  .beyond h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-bottom: 0.7rem; color: #e8d9b8; }
  .beyond p { font-size: 0.95rem; color: rgba(244,239,231,0.85); }

  footer { padding: 2rem 7vw; background: rgba(20,14,8,0.7); backdrop-filter: blur(8px); display: flex; justify-content: space-between; font-size: 0.8rem; color: rgba(240,228,207,0.6); }

  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  @media (max-width: 820px) {
    .beyond-grid { grid-template-columns: 1fr; }
    .scene-wrap { height: 64vh; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }

  /* ============================================================
     igloo-inspired redesign - spare, technical, high-contrast.
     Dark precise panels + mono label system + hairline rules.
     ============================================================ */
  body { counter-reset: sec; }

  /* Panels: soft rounded glass - airy, translucent, part of the living world.
     The blur carries legibility so the fill can stay light. */
  .beyond {
    background: rgba(14, 14, 11, 0.36);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    backdrop-filter: blur(22px) saturate(1.15);
    border: 1px solid rgba(232, 220, 196, 0.10);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(4, 6, 20, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: var(--paper);
    transition: border-color 0.6s ease, box-shadow 0.6s ease, background 0.6s ease;
  }
  /* the world answers back on hover - bioluminescent edge glow (fireflies gather too, via JS) */
  .beyond:hover {
    border-color: rgba(122, 190, 152, 0.24);
    background: rgba(14, 14, 11, 0.44);
    box-shadow: 0 24px 90px rgba(6, 6, 4, 0.3), 0 0 52px rgba(122, 190, 152, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  /* panels drift gently - pinned glass reads static, floating glass reads alive */
  @keyframes panelFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
  .beyond { animation: panelFloat 9s ease-in-out infinite; }

  /* Mono label system with section index - "01  ABOUT" */
  .section-label {
    font-family: var(--mono); font-weight: 500;
    font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--paper); opacity: 0.92; margin-bottom: 2.6rem;
    display: flex; align-items: center; gap: 1rem;
  }
  .section-label::after { display: none; }
  .section-label::before {
    counter-increment: sec; content: counter(sec, decimal-leading-zero);
    color: var(--accent); font-weight: 600; letter-spacing: 0.1em;
    padding-right: 0.9rem; border-right: 1px solid var(--hair);
  }

  /* Beyond / Contact */
  /* Beyond / Contact */
  .beyond h3 { color: var(--paper); }
  .beyond p { color: rgba(243,241,234,0.8); }
  .beyond-card { border: 1px solid rgba(232, 220, 196, 0.10); border-radius: 20px; background: rgba(255, 255, 255, 0.03); }
  .beyond-card:hover { transform: translateY(-4px); }

  /* Hero kicker, buttons, marquee, footer, HUD bits → mono */
  .hero-kicker { font-family: var(--mono); font-weight: 500; letter-spacing: 0.3em; }
  .btn { font-family: var(--mono); border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.16em; }
  .btn-ghost { background: rgba(253, 251, 247, 0.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .game-btn, .game-panel { border-radius: 999px; }
  .game-panel { border-radius: 24px; }
  footer { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; border-top: 1px solid var(--hair); background: rgba(10,10,8,0.85); }
  .scroll-hint, .scene-hint, .depth-meter { font-family: var(--mono); }
  .game-hud { font-family: var(--mono); }
  .scene-overlay .section-label { color: var(--paper); }
  .marquee { background: rgba(10,10,8,0.9); }
  .marquee span { font-family: var(--mono); font-style: normal; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
  .marquee b { color: var(--accent); }

  /* ---------- Chapter rail - igloo wayfinding: tick per station, live dot ---------- */
  .rail { position: fixed; left: 1.85rem; top: 50%; transform: translateY(-50%); z-index: 8200; }
  .rail-line { position: relative; width: 1px; height: 38vh; background: rgba(232, 220, 196, 0.14); }
  .rail-dot { position: absolute; left: -2px; margin-top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: #7abe98; box-shadow: 0 0 10px rgba(122, 190, 152, 0.9); }
  .rail-tick { position: absolute; left: -8px; margin-top: -8px; width: 17px; height: 16px; background: transparent; border: 0; padding: 0; cursor: pointer; }
  .rail-tick::before { content: ""; position: absolute; left: 4px; top: 50%; width: 9px; height: 1px; background: rgba(243, 241, 234, 0.4); transition: background 0.3s ease, width 0.3s ease; }
  .rail-tick:hover::before { background: #7abe98; width: 12px; }
  .rail-tick::after {
    content: attr(data-label);
    position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
    font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(243, 241, 234, 0.85); white-space: nowrap;
    opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  }
  .rail-tick:hover::after { opacity: 1; }
  @media (max-width: 600px) { .rail { display: none; } }

  /* ---------- Sound toggle - mono corner control, teal pulse when live ---------- */
  .snd-toggle {
    position: fixed; right: 1.9rem; bottom: 3.8rem; z-index: 8300;
    background: transparent; border: 0; padding: 6px 0 6px 18px;
    font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.22em;
    color: rgba(243, 241, 234, 0.7); cursor: pointer;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
    transition: color 0.3s ease;
  }
  .snd-toggle::before {
    content: ""; position: absolute; left: 0; top: 50%; margin-top: -2px;
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(243, 241, 234, 0.35);
    transition: background 0.3s ease, box-shadow 0.3s ease;
  }
  .snd-toggle.on { color: var(--paper); }
  .snd-toggle.on::before { background: #7abe98; box-shadow: 0 0 8px rgba(122, 190, 152, 0.9); animation: sndPulse 1.6s ease-in-out infinite; }
  @keyframes sndPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

  /* ---------- Preloader - choreographed count over a deep-indigo veil ---------- */
  .preloader {
    position: fixed; inset: 0; z-index: 9500;
    background: linear-gradient(180deg, #0b0d0a 0%, #191a15 100%);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.9s ease, visibility 0.9s;
  }
  .preloader.done { opacity: 0; visibility: hidden; }
  .pre-center { text-align: center; transition: opacity 0.55s ease, transform 0.55s ease; }
  .preloader.done .pre-center { opacity: 0; transform: translateY(-10px); }
  .pre-name { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.34em; color: rgba(243, 241, 234, 0.75); margin-bottom: 1.1rem; }
  .pre-pct { font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 9vw, 5.6rem); color: var(--paper); line-height: 1; }
  .pre-bar { width: 140px; height: 1px; background: rgba(232, 220, 196, 0.18); margin: 1.4rem auto 0; overflow: hidden; }
  .pre-bar i { display: block; height: 100%; background: #7abe98; transform-origin: left; transform: scaleX(0); }
  .pre-note { position: absolute; bottom: 1.7rem; left: 1.9rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.22em; color: rgba(243, 241, 234, 0.5); }
  body.loading { overflow: hidden; }
  body.loading .hero-kicker, body.loading .hero h1, body.loading .hero-sub, body.loading .hero-cta { animation-play-state: paused; }

  /* ---------- Camera stations - igloo-style minimal captions ----------
     One small caption at a time, anchored at varied screen positions;
     the 3D world stays the dominant visual. Reveal + camera are driven
     per-frame by the tree module (opacity/transform on .station-caption). */
  .station { height: 170vh; position: relative; }
  .station-caption {
    position: sticky; top: 54vh;
    width: min(400px, 84vw);
    opacity: 0; will-change: opacity, transform;
    padding: 1.6rem 1.8rem;
    background: rgba(12, 12, 9, 0.32);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    backdrop-filter: blur(14px) saturate(1.1);
    border: 1px solid rgba(232, 220, 196, 0.08);
    border-radius: 20px;
  }
  .sc-left { margin-left: 6vw; }
  .sc-right { margin-left: auto; margin-right: 7vw; top: 30vh; }
  .sc-mid { margin-left: 16vw; top: 58vh; }
  .station-kicker { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(243, 241, 234, 0.6); margin-bottom: 0.7rem; }
  .station-caption h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--paper); line-height: 1.18; }
  .station-role { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0.5rem 0 0.85rem; }
  .station-body { font-size: 0.92rem; color: rgba(243, 241, 234, 0.82); line-height: 1.55; }
  .station-stat { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--paper); margin-top: 0.9rem; line-height: 1; }
  .station-stat small { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(243, 241, 234, 0.55); display: block; margin-top: 0.4rem; }
  .sc-wide { width: min(444px, 86vw); }
  /* P4: world-anchored caption - position driven per-frame by projecting a
     3D anchor point; it rides the camera's sway and parallax like part of
     the world instead of a screen overlay */
  .sc-world { position: fixed; left: 0; top: 0; margin: 0; will-change: transform, opacity; }
  .sc-center { margin-left: auto; margin-right: auto; top: 30vh; text-align: left; }
  .station-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.3rem; }
  .station-caption h3 em { font-style: italic; color: var(--accent); }
  .station-facts {
    font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(243, 241, 234, 0.6); line-height: 2.1;
    margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid rgba(232, 220, 196, 0.1);
  }
  @media (max-width: 600px) { .sc-left, .sc-right, .sc-mid { margin: 0 auto; top: 50vh; } .station { height: 150vh; } }

  /* Fixed HUD - igloo corner labels. Prominent over the hero, recedes to a
     faint watermark in content (JS sets --hud-op) so it never fights body text. */
  .hud { position: fixed; inset: 0; z-index: 8000; pointer-events: none; font-family: var(--mono); opacity: var(--hud-op, 1); transition: opacity 0.35s ease; will-change: opacity; }
  .hud > div { position: absolute; display: flex; flex-direction: column; gap: 3px; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243,241,234,0.7); text-shadow: 0 1px 12px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.7); }
  .hud-tl { top: 1.7rem; left: 1.9rem; }
  .hud-tr { top: 1.7rem; right: 1.9rem; text-align: right; }
  .hud-bl { bottom: 1.7rem; left: 1.9rem; }
  .hud span.k { color: var(--paper); }
  @media (max-width: 600px) { .hud { display: none; } }

  /* ---------- Landmark showcases: chips invite, panel deep-dives ---------- */
  .sc-chip {
    display: inline-flex; align-items: center; gap: 0.5em;
    margin-top: 1.1rem; padding: 0.5rem 0.9rem;
    background: rgba(200, 162, 102, 0.12); border: 1px solid rgba(200, 162, 102, 0.45);
    border-radius: 2px; color: var(--paper); cursor: pointer;
    font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
    transition: background 0.25s ease, border-color 0.25s ease;
  }
  .sc-chip::before { content: "◉"; color: var(--accent); animation: chipPulse 2.2s ease-in-out infinite; }
  .sc-chip:hover { background: rgba(200, 162, 102, 0.25); border-color: var(--accent); }
  @keyframes chipPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

  .showcase-panel {
    position: fixed; z-index: 8600; top: 50%; right: 4vw;
    width: min(400px, 86vw); transform: translateY(-50%) translateX(24px);
    background: rgba(13, 13, 10, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(1.1); backdrop-filter: blur(20px) saturate(1.1);
    border: 1px solid var(--hair); border-radius: 3px;
    padding: 2rem 1.9rem 1.9rem;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.5s;
  }
  .showcase-panel.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(-50%) translateX(0); }
  .showcase-panel h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--paper); line-height: 1.18; margin: 0.4rem 0 0.2rem; }
  .show-kicker { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(243,241,234,0.6); }
  .show-role { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
  .showcase-panel ul { list-style: none; margin: 0; padding: 0; }
  .showcase-panel li { position: relative; padding-left: 1.2rem; margin-bottom: 0.6rem; color: rgba(243,241,234,0.84); font-size: 0.92rem; line-height: 1.5; }
  .showcase-panel li::before { content: "·"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
  .show-close {
    position: absolute; top: 0.9rem; right: 0.9rem;
    background: none; border: 1px solid var(--hair); border-radius: 2px;
    color: rgba(243,241,234,0.7); cursor: pointer;
    font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em;
    padding: 0.35rem 0.6rem; transition: color 0.25s ease, border-color 0.25s ease;
  }
  .show-close:hover { color: var(--paper); border-color: var(--accent); }
  .show-hint { margin-top: 1.2rem; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243,241,234,0.4); }
  @media (max-width: 600px) {
    .showcase-panel { top: auto; right: 0; left: 0; bottom: 0; width: 100%; transform: translateY(24px); border-radius: 12px 12px 0 0; }
    .showcase-panel.open { transform: translateY(0); }
  }

  /* Cinematic vignette - studio-grade finishing layer over the whole world.
     Sits under the HUD/cursor/progress, over the 3D + content. Focuses the eye. */
  .vignette {
    position: fixed; inset: 0; z-index: 7000; pointer-events: none;
    background:
      radial-gradient(130% 105% at 50% 40%, transparent 52%, rgba(6,7,5,0.30) 84%, rgba(4,4,3,0.55) 100%),
      linear-gradient(to bottom, rgba(4,4,3,0.22) 0%, transparent 14%, transparent 88%, rgba(4,4,3,0.28) 100%);
    mix-blend-mode: multiply;
  }
  /* Color grade - the site's split: quiet brass light from the moon side,
     soft green floor in the shadows. Barely there. */
  .grade {
    position: fixed; inset: 0; z-index: 6900; pointer-events: none;
    background:
      radial-gradient(90% 70% at 72% 30%, rgba(200,162,102,0.08) 0%, transparent 60%),
      linear-gradient(to bottom, rgba(200,162,102,0.06) 0%, rgba(110,120,110,0.02) 46%, rgba(38,53,41,0.12) 100%);
    mix-blend-mode: soft-light;
  }
  /* Film grain - animated fractal-noise tile, filmic shimmer at low opacity. */
  .grain {
    position: fixed; inset: -8%; z-index: 7500; pointer-events: none;
    opacity: 0.055; mix-blend-mode: overlay; will-change: transform;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
    animation: grain 0.55s steps(3) infinite;
  }
  @keyframes grain {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(-4%, 3%); }
    66%  { transform: translate(3%, -3%); }
    100% { transform: translate(0, 0); }
  }
  @media (max-width: 600px) { .grain { opacity: 0.04; } }

  /* ---------- Cinema letterbox - matte bars ease in while the drone is in
     transit between stations, out when it settles. Height driven per-frame
     from scroll velocity (--cine). ---------- */
  .cine-top, .cine-bot {
    position: fixed; left: 0; right: 0; height: var(--cine, 0px);
    background: #050503; z-index: 7600; pointer-events: none;
  }
  .cine-top { top: 0; } .cine-bot { bottom: 0; }

  /* ---------- Chapter title cards - blockbuster act breaks keyed to the
     camera's actual altitude (JS adds .show as each act begins). ---------- */
  .chapter-card {
    position: fixed; left: 0; right: 0; top: 40%; z-index: 6800;
    text-align: center; pointer-events: none;
    opacity: 0; transform: translateY(14px);
    transition: opacity 1.4s ease, transform 1.4s ease;
  }
  .chapter-card.show { opacity: 1; transform: translateY(0); }
  .chapter-card .cc-num {
    font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.5em;
    color: rgba(240,228,207,0.55); display: block; margin-bottom: 1.1rem;
  }
  .chapter-card h2 {
    font-family: var(--serif); font-weight: 300;
    font-size: clamp(2rem, 5.2vw, 3.8rem); letter-spacing: 0.34em; text-indent: 0.34em;
    color: #f0e4cf; text-transform: uppercase;
    text-shadow: 0 2px 40px rgba(6,9,26,0.85), 0 1px 6px rgba(6,9,26,0.6);
  }
  .chapter-card .cc-rule {
    width: 54px; height: 1px; background: rgba(240,228,207,0.5);
    margin: 1.3rem auto 0;
  }
