/* ============================================================
   SYLON-4 — official site
   Palette & voice derived from the series pitch deck, §7:
   dark metallics, amber wake-up light, pale-blue LED light,
   emergency red, dirty white/beige. Worn hard sci-fi.
   ============================================================ */

:root {
  --void:  #0B0D10;   /* page ground — anthracite black          */
  --hull:  #14181D;   /* panel — oily steel                      */
  --hull-2:#0E1116;   /* alternate section ground                */
  --line:  rgba(140,149,157,.22);
  --steel: #8C959D;   /* brushed metal — secondary text          */
  --bone:  #E8E2D4;   /* dirty white/beige — primary text        */
  --amber: #E89A3C;   /* wake-up amber — primary accent          */
  --ice:   #9FC4D8;   /* pale-blue LED light — secondary accent  */
  --alert: #C13A2E;   /* emergency red — recall order only       */

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; background: var(--void); }
html, body { overscroll-behavior-y: none; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--void); }

/* ambient three.js starfield — sits between the page ground and the content */
#space {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* cinematic vignette over the starfield, under the content */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 42%, transparent 58%, rgba(5,6,8,.55) 100%);
}
main, .hero, .ticker, .footer { position: relative; z-index: 1; }

/* animated film grain — one grade over the whole frame, photos and video included */
.film-grain {
  position: fixed; inset: -110px; z-index: 400;
  pointer-events: none;
  background-repeat: repeat;
  opacity: .05;
  mix-blend-mode: overlay;
  animation: grain-jump .9s steps(9) infinite;
}
@keyframes grain-jump {
  0%   { transform: translate(0, 0); }
  11%  { transform: translate(-28px, 16px); }
  22%  { transform: translate(18px, -30px); }
  33%  { transform: translate(-42px, -12px); }
  44%  { transform: translate(34px, 26px); }
  55%  { transform: translate(-14px, 38px); }
  66%  { transform: translate(40px, -18px); }
  77%  { transform: translate(-30px, -34px); }
  88%  { transform: translate(12px, 8px); }
  100% { transform: translate(0, 0); }
}

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

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--ice); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--amber); color: var(--void);
  font-family: var(--font-mono); font-size: .8rem;
  padding: .6rem 1rem;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.wrap-wide { max-width: 1360px; }

/* ---------------- Navigation ---------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,13,16,.78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1360px; margin: 0 auto;
  padding: .65rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { border: 1px solid var(--line); }
.brand-word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
  letter-spacing: .12em; color: var(--bone);
}
.brand:hover .brand-word { color: var(--amber); }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav-links a {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel);
}
.nav-links a:hover { color: var(--bone); }
.nav-cta {
  border: 1px solid var(--amber);
  padding: .45rem .95rem;
  color: var(--amber) !important;
}
.nav-cta:hover { background: var(--amber); color: var(--void) !important; }

/* flight progress — how far through the log you are */
.nav-progress {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--amber);
  box-shadow: 0 0 8px rgba(232,154,60,.55);
  transform: scaleX(0); transform-origin: 0 50%;
}

.nav-sound {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em;
  background: none; border: 1px solid var(--line); color: var(--steel);
  padding: .45rem .8rem; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.nav-sound:hover { color: var(--amber); border-color: var(--amber); }
.nav-sound[aria-pressed="true"] { color: var(--amber); border-color: var(--amber); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--bone); margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 0; padding: .5rem 1.25rem 1.25rem;
    background: rgba(11,13,16,.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 0; font-size: .9rem; }
  .nav-links .nav-cta { margin-top: .75rem; padding: .6rem 1.2rem; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; /* parallax layer must never spill over the sections below */
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("/assets/img/hero.jpg") center 58% / cover no-repeat var(--void);
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.74) saturate(.95);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,13,16,.66) 0%, rgba(11,13,16,.18) 34%, rgba(11,13,16,.34) 62%, rgba(11,13,16,.94) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1160px; width: 100%;
  margin: 0 auto;
  padding: 7.5rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
}
.hero-signal {
  font-family: var(--font-mono); font-size: clamp(.72rem, 1.6vw, .88rem);
  letter-spacing: .1em; color: var(--ice);
  min-height: 2.6em; margin-bottom: 1.25rem;
}
.hero-signal .sig-line { display: block; }
.hero-signal .sig-line::after { content: ""; }
.hero-signal .sig-line.typing::after {
  content: "\2588"; color: var(--amber);
  animation: blink .9s steps(1) infinite;
}
.hero-signal .sig-alert { color: var(--alert); font-weight: 600; }
@keyframes blink { 50% { opacity: 0; } }

.hero-kicker {
  font-family: var(--font-mono); font-size: clamp(.85rem, 2vw, 1.05rem);
  letter-spacing: .55em; color: var(--amber); margin-bottom: .25rem;
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4.6rem, 15.5vw, 11.5rem);
  line-height: .92; letter-spacing: .015em;
  color: var(--bone);
  text-shadow: 0 4px 40px rgba(0,0,0,.55);
}
.hero-logline {
  max-width: 34em; margin-top: 1.1rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--bone);
  text-shadow: 0 2px 18px rgba(0,0,0,.7);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.hero-meta {
  position: relative; z-index: 2;
  max-width: 1160px; width: 100%; margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) 1.4rem;
  display: flex; gap: 2rem; align-items: baseline;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em;
  color: var(--steel);
}
.hero-scroll { margin-left: auto; color: var(--amber); }
.hero-meta .tele { color: var(--ice); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .hero-meta .tele { display: none; } }

/* ---------------- HUD cursor ---------------- */

.cursor-on, .cursor-on * { cursor: none !important; }
.cursor-dot {
  position: fixed; left: -2px; top: -2px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--amber);
  z-index: 601; pointer-events: none;
}
.cursor-ring {
  position: fixed; left: -17px; top: -17px; width: 34px; height: 34px;
  border: 1px solid rgba(232,226,212,.45); border-radius: 50%;
  z-index: 600; pointer-events: none;
  transition: width .2s ease, height .2s ease, left .2s ease, top .2s ease,
              border-color .2s ease, opacity .3s ease;
}
.cursor-ring.is-hover { width: 54px; height: 54px; left: -27px; top: -27px; border-color: var(--amber); }
.cursor-ring.is-down { width: 24px; height: 24px; left: -12px; top: -12px; border-color: var(--amber); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  font-family: var(--font-mono); font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-solid { background: var(--amber); color: var(--void); }
.btn-solid:hover { background: var(--bone); color: var(--void); box-shadow: 0 0 26px rgba(232,154,60,.35); }
.btn-ghost { border-color: var(--steel); color: var(--bone); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---------------- Ticker ---------------- */

.ticker {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--hull-2);
  padding: .55rem 0;
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 2.2rem;
  padding-left: 1rem;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em;
  color: var(--steel);
  animation: ticker 36s linear infinite;
}
.ticker-track i { color: var(--amber); font-style: normal; font-size: .6rem; }
.ticker-track span:nth-child(7), .ticker-track span:nth-child(17) { color: var(--amber); }
.ticker-track span:nth-child(9), .ticker-track span:nth-child(19) { color: var(--ice); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------------- Sections ---------------- */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-dark { background: var(--hull-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section[id] { scroll-margin-top: 76px; }

.eyebrow {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .22em;
  color: var(--amber);
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.4rem;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }

h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  line-height: 1.02; letter-spacing: .015em; text-transform: uppercase;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

/* ---------------- Story ---------------- */

.story-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.story-copy p + p { margin-top: 1.1rem; }
.story-copy strong { color: var(--ice); font-weight: 600; }

.story-quote {
  border-left: 2px solid var(--amber);
  padding: .4rem 0 .4rem 1.5rem;
}
.story-quote p {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.18;
  text-transform: uppercase; letter-spacing: .02em;
  color: var(--steel);
  text-shadow: 0 1px 14px rgba(11,13,16,.85);
}

.crew-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 4rem);
}
.card {
  position: relative;
  background: var(--hull);
  border: 1px solid var(--line);
  padding: 1.5rem 1.4rem 1.6rem;
}
/* HUD frame corners */
.card::before, .usp::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--amber); border-left: 2px solid var(--amber);
}
.card::after, .usp::after {
  content: ""; position: absolute; bottom: -1px; right: -1px;
  width: 16px; height: 16px;
  border-bottom: 2px solid var(--steel); border-right: 2px solid var(--steel);
}
.card-tag {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em;
  color: var(--steel); margin-bottom: 1rem;
}
.card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.9rem;
  letter-spacing: .03em; text-transform: uppercase; line-height: 1;
}
.card-role {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em;
  color: var(--ice); margin: .5rem 0 .9rem;
}
.card > p:last-child { font-size: .95rem; color: var(--steel); }

.world-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line); padding-top: 1.75rem;
}
.world-item span {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em;
  color: var(--amber);
}
.world-item p { font-size: .88rem; color: var(--steel); margin-top: .5rem; }

/* ---------------- Video (lite YouTube) ---------------- */

.yt {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--hull) center / cover no-repeat;
  border: 1px solid var(--line);
  overflow: hidden;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(11,13,16,.05) 55%, rgba(11,13,16,.55));
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.yt-play span {
  width: clamp(56px, 8vw, 76px); height: clamp(56px, 8vw, 76px);
  border-radius: 50%;
  background: rgba(11,13,16,.62);
  border: 2px solid var(--amber);
  position: relative;
  transition: background .15s ease, transform .15s ease;
}
.yt-play span::after {
  content: ""; position: absolute; left: 53%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent var(--amber);
}
.yt-play:hover span { background: var(--amber); transform: scale(1.06); }
.yt-play:hover span::after { border-left-color: var(--void); }

.yt-feature { box-shadow: 0 30px 80px rgba(0,0,0,.5); }

.video-caption, .prod-sub, .credit-line {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em;
  color: var(--steel); margin-top: 1rem;
}
.prod-sub { color: var(--amber); margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem; }

/* ---------------- Production ---------------- */

.prod-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
.prod-copy p + p { margin-top: 1.1rem; }
.prod-copy strong { color: var(--ice); font-weight: 600; }

.peek-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.peek figcaption {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em;
  color: var(--steel); margin-top: .6rem;
}

/* ---------------- Gallery ---------------- */

/* --- visual records deck ---
   base: swipeable film strip (mobile / no-JS / reduced motion)
   .deck-3d (added by JS on desktop): pinned 3D screening wall */

.deck { position: relative; }
.deck-track {
  display: flex; gap: 1.1rem;
  overflow-x: auto;
  padding: .5rem clamp(1.25rem, 4vw, 2.5rem) 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.deck-frame {
  position: relative;
  flex: 0 0 auto; width: min(64vw, 330px); margin: 0;
  background: var(--hull);
  border: 1px solid var(--line);
  scroll-snap-align: center;
  cursor: zoom-in;
}
/* HUD frame corners */
.deck-frame::before {
  content: ""; position: absolute; top: -1px; left: -1px; z-index: 2;
  width: 18px; height: 18px;
  border-top: 2px solid var(--amber); border-left: 2px solid var(--amber);
}
.deck-frame::after {
  content: ""; position: absolute; bottom: -1px; right: -1px; z-index: 2;
  width: 18px; height: 18px;
  border-bottom: 2px solid var(--steel); border-right: 2px solid var(--steel);
}
.frame-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: .45rem .7rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .18em;
  color: var(--steel);
}
.frame-bar .rec { color: var(--alert); opacity: 0; }
.deck-frame.is-active .frame-bar .rec { opacity: 1; animation: blink 1.2s steps(1) infinite; }
.deck-frame.is-active { border-color: rgba(232,154,60,.65); }
.frame-media {
  position: relative;
  aspect-ratio: 2 / 3; overflow: hidden; background: var(--void);
}
.frame-media img { width: 100%; height: 100%; object-fit: cover; }
/* holographic scan sweep over the live monitor */
.deck-3d .deck-frame.is-active .frame-media::after {
  content: ""; position: absolute; left: 0; right: 0; top: -45%; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(159,196,216,.16) 50%, transparent);
  animation: holo-scan 6.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes holo-scan { to { transform: translateY(330%); } }
.deck-frame figcaption {
  padding: .55rem .7rem;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em;
  color: var(--steel);
  border-top: 1px solid var(--line);
}

.deck-hud { display: none; }

/* 3D screening-wall mode */
.deck-3d .deck-track {
  display: block;
  overflow: visible;
  height: min(74vh, 680px);
  perspective: 1300px;
  padding: 0;
}
.deck-3d .deck-frame {
  position: absolute; left: 50%; top: 50%;
  width: min(30vw, 400px);
  will-change: transform, opacity, filter;
  box-shadow: 0 40px 90px rgba(0,0,0,.55);
}
.deck-3d .deck-frame.is-active {
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 46px rgba(232,154,60,.20);
}
.deck-3d .deck-frame figcaption { display: none; }

/* holo grid floor the wall stands on — projection clipped inside its own
   wrapper so the 3D plane can never extend the page or bleed over sections */
.deck-floor-clip { display: none; }
.deck-3d .deck-floor-clip {
  display: block; pointer-events: none;
  position: absolute; left: 0; right: 0; top: 0; bottom: -170px;
  overflow: hidden;
  perspective: 1300px;
}
.deck-floor {
  position: absolute; left: -25%; right: -25%; top: 70%; height: 1300px;
  transform: rotateX(74deg); transform-origin: 50% 0;
  background:
    linear-gradient(180deg, rgba(159,196,216,.20), transparent 2.5%),
    radial-gradient(ellipse 26% 14% at 50% 4%, rgba(232,154,60,.22), transparent 70%),
    repeating-linear-gradient(0deg, rgba(159,196,216,.14) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(159,196,216,.14) 0 1px, transparent 1px 56px);
  -webkit-mask-image: radial-gradient(ellipse 62% 55% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 55% at 50% 0%, #000 35%, transparent 78%);
  animation: floor-drift 40s linear infinite;
}
@keyframes floor-drift {
  to { background-position: 0 0, 0 0, 0 56px, 0 0; }
}
.deck-3d .deck-hud {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  max-width: 900px; margin: 1.6rem auto 0;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em;
}
.deck-hud .hud-caption { color: var(--amber); min-width: 16ch; }
.deck-hud .hud-count { color: var(--bone); font-variant-numeric: tabular-nums; }
.deck-hud .hud-tc { color: var(--ice); font-variant-numeric: tabular-nums; font-size: .68rem; }

/* frame-position scale — ship-HUD style */
.hud-scale {
  flex: 1; display: flex; align-items: flex-end; justify-content: center;
  gap: 10px; height: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.hud-scale i {
  width: 2px; height: 7px;
  background: var(--steel); opacity: .55;
  transition: height .25s ease, background .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.hud-scale i.on {
  height: 13px; background: var(--amber); opacity: 1;
  box-shadow: 0 0 8px rgba(232,154,60,.7);
}

.credit-line { margin-top: 1.5rem; }

/* ---------------- Invest ---------------- */

.usp-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
.usp {
  position: relative;
  border: 1px solid var(--line);
  background: var(--hull);
  padding: 1.6rem 1.5rem;
}
.usp h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem;
  text-transform: uppercase; letter-spacing: .03em;
  margin-bottom: .6rem;
}
.usp p { font-size: .95rem; color: var(--steel); }

.invest-panel {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: var(--hull);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.invest-label {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .22em;
  color: var(--amber); margin-bottom: 1rem;
}
.checklist { list-style: none; }
.checklist li {
  position: relative; padding: .42rem 0 .42rem 1.9rem;
  font-size: .95rem; color: var(--bone);
  border-bottom: 1px dashed rgba(140,149,157,.18);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "\2713"; position: absolute; left: .2rem; top: .42rem;
  font-family: var(--font-mono); color: var(--amber);
}
.invest-lead { margin-bottom: 1.5rem; }
.invest-cta .btn { margin: 0 .75rem .75rem 0; }
.invest-fans {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em;
  color: var(--steel);
  border-top: 1px dashed rgba(140,149,157,.25);
  margin: 1.1rem 0 .9rem; padding-top: 1.1rem;
}
.btn-fans { border-color: rgba(159,196,216,.55); color: var(--ice); }
.btn-fans:hover { border-color: var(--amber); color: var(--amber); }

/* ---------------- Team ---------------- */

.team-photo { border: 1px solid var(--line); }
.team-photo img { width: 100%; }
.team-photo figcaption {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em;
  color: var(--steel); padding: .8rem 1rem;
  border-top: 1px solid var(--line); background: var(--hull);
}
.credits {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1.25rem;
}
.credits dt {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em;
  color: var(--amber); margin-bottom: .3rem;
}
.credits dd { font-size: .98rem; color: var(--bone); }

/* ---------------- Footer ---------------- */

.footer { border-top: 1px solid var(--line); background: var(--void); padding-top: clamp(2.5rem, 5vw, 4rem); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem; padding-bottom: 2.5rem;
}
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { border: 1px solid var(--line); }
.footer-brand p { font-size: .92rem; color: var(--steel); }
.footer-label {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em;
  color: var(--amber); margin-bottom: .8rem;
}
.footer-social a, .footer-contact a {
  display: block; font-family: var(--font-mono); font-size: .85rem;
  letter-spacing: .08em; color: var(--bone); padding: .28rem 0;
}
.footer-social a:hover, .footer-contact a:hover { color: var(--amber); }
.footer-fine { font-size: .8rem; color: var(--steel); margin-top: .4rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem; padding-bottom: 1.4rem;
  font-size: .8rem; color: var(--steel);
}
.endlog { font-family: var(--font-mono); letter-spacing: .2em; color: var(--steel); }

/* ---------------- Video overlay (sneak peeks) ---------------- */

.video-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(7,8,10,.94);
  display: flex; align-items: center; justify-content: center;
}
.video-modal[hidden] { display: none; }
.vm-body {
  width: min(92vw, 1200px); aspect-ratio: 16 / 9;
  background: var(--void); border: 1px solid var(--line);
}
.vm-body iframe { width: 100%; height: 100%; border: 0; }
.vm-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: 1px solid var(--line);
  color: var(--bone); font-size: 1.4rem; line-height: 1;
  width: 46px; height: 46px; cursor: pointer;
}
.vm-close:hover { border-color: var(--amber); color: var(--amber); }

/* ---------------- Decrypt glitch ---------------- */

.scrambling {
  text-shadow: 1px 0 rgba(193,58,46,.5), -1px 0 rgba(159,196,216,.5);
}
.glitch-rest { color: var(--ice); opacity: .8; }
.glitch-rest.warm { color: var(--amber); }

/* ---------------- Lightbox ---------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(7,8,10,.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 88vh; width: auto; height: auto; border: 1px solid var(--line); }
.lightbox button {
  position: absolute; background: none; border: 1px solid var(--line);
  color: var(--bone); font-size: 1.4rem; line-height: 1;
  width: 46px; height: 46px; cursor: pointer;
}
.lightbox button:hover { border-color: var(--amber); color: var(--amber); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------------- Reveal on scroll ---------------- */

html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .peek-grid { grid-template-columns: repeat(2, 1fr); }
  .credits { grid-template-columns: repeat(2, 1fr); }
  .world-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .story-grid, .prod-grid, .invest-panel { grid-template-columns: 1fr; }
  .crew-cards { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .story-quote { border-left: 0; border-top: 2px solid var(--amber); padding: 1.25rem 0 0; }
}
@media (max-width: 520px) {
  .world-row { grid-template-columns: 1fr; }
  /* keep the crew manifest compact on phones: two call-sheet columns */
  .credits { grid-template-columns: repeat(2, 1fr); gap: 1.1rem .9rem; }
  .credits dt { font-size: .58rem; letter-spacing: .14em; }
  .credits dd { font-size: .86rem; }
  .hero-meta { gap: 1rem; font-size: .62rem; }
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .film-grain { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .gallery img, .yt-play span { transition: none; }
  .hero-signal .sig-line.typing::after { animation: none; }
}
