/* Plutão — cosmic dark, Audiowide display + JetBrains Mono. 8pt grid, LN-grade spacing. */
:root {
  --bg: #05060a;
  --text: #e9edf5;
  --muted: #a9b2bd;
  --body: #d4dae2;
  --accent: #8fd8ff;       /* icy blue */
  --accent-warm: #e8d5b0;  /* pluto parchment */
  --danger: #dc2626;
  --line: rgba(233, 237, 245, 0.15);
  --line-soft: rgba(233, 237, 245, 0.06);
  --panel: rgba(10, 12, 18, 0.8);
  --gutter: clamp(20px, 5vw, 72px);
  --pad: 24px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
html.instant { scroll-behavior: auto !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
html, body { background: var(--bg); }
body {
  color: var(--text);
  font: 16px/1.6 "JetBrains Mono", ui-monospace, monospace;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #05060a; }
  :where(a:visited) { color: inherit; } /* zero-specificity: kills purple, lets .btn/.f-link colors win */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* ---------- entry + pointer ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; gap: 20px;
  background: var(--bg); text-align: center; animation: curtain-failsafe 0s 5s forwards;
}
.preloader[hidden] { display: none !important; }
.preloader-brand {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: "Audiowide", cursive; font-size: 20px; letter-spacing: .24em;
}
.preloader-brand .brand-mark { width: 22px; height: 22px; }
.preloader-status {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--body); font-size: 9px; letter-spacing: .28em;
}
.preloader-signal { width: 96px; height: 1px; background: var(--line); overflow: hidden; }
.preloader-signal::after {
  content: ""; display: block; width: 100%; height: 100%; background: var(--accent);
  transform-origin: left; animation: uplink 1.4s var(--ease-out) infinite;
}
@keyframes uplink { 0% { transform: scaleX(0); transform-origin: left; } 55% { transform: scaleX(1); transform-origin: left; } 56% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@keyframes curtain-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; opacity: 0;
  border-radius: 50%; will-change: transform;
  transition: opacity .2s ease, width .25s var(--ease-out), height .25s var(--ease-out), background-color .25s ease;
}
.cursor-dot { z-index: 202; width: 10px; height: 10px; background: var(--accent); box-shadow: 0 0 14px rgba(143, 216, 255, .8); }
.cursor-ring { z-index: 201; width: 40px; height: 40px; border: 2px solid rgba(233, 237, 245, .95); box-shadow: 0 0 12px rgba(5, 6, 10, .6), inset 0 0 8px rgba(5, 6, 10, .4); }
body.cursor-visible .cursor-dot, body.cursor-visible .cursor-ring { opacity: 1; }
.cursor-ring.is-active { width: 56px; height: 56px; background: rgba(143, 216, 255, .16); border-color: var(--accent); }
.cursor-ring.is-down { width: 26px; height: 26px; }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }

/* ---------- fixed scene ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; mix-blend-mode: normal;
  background-image: radial-gradient(rgba(255,255,255,.7) .5px, transparent .6px);
  background-size: 3px 3px;
}
.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse at 54% 44%, transparent 38%, rgba(5, 6, 10, .18) 72%, rgba(5, 6, 10, .55) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, .22), transparent 20%, transparent 78%, rgba(5, 6, 10, .3));
}
.hud-frame {
  position: fixed; inset: 76px var(--pad) 52px; z-index: 9; pointer-events: none; opacity: .45;
}
.hud-frame::before, .hud-frame::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background:
    linear-gradient(var(--line), var(--line)) left top / 40px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) right top / 40px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) left top / 1px 12px no-repeat,
    linear-gradient(var(--line), var(--line)) right top / 1px 12px no-repeat;
}
.hud-frame::before { top: 0; }
.hud-frame::after { bottom: 0; transform: scaleY(-1); }

/* ---------- HUD ---------- */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px; padding: 20px var(--pad);
  mix-blend-mode: normal;
  background: linear-gradient(180deg, rgba(5, 6, 10, .96), rgba(5, 6, 10, .84) 72%, rgba(5, 6, 10, .58));
  backdrop-filter: blur(4px);
}
.hud-top::after {
  content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 4px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
  opacity: .65;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none;
  font-family: "Audiowide", cursive; font-size: 15px; letter-spacing: .22em;
}
.brand-mark {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 32% 30%, var(--accent-warm) 0 58%, #a98d63 62% 100%);
  box-shadow: 0 0 12px rgba(232, 213, 176, .35);
}
.nav { display: flex; gap: 4px; margin-left: 16px; }
.nav a {
  position: relative; color: rgba(255, 255, 255, .72); text-decoration: none; font-size: 12px; letter-spacing: .14em;
  padding: 8px 12px; transition: color .25s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px;
  background: #fff; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="location"] { color: #fff; }
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="location"]::after { transform: scaleX(1); transform-origin: left; }
.clock { margin-left: auto; font-size: 11px; color: #fff; letter-spacing: .12em; }
.hud-left, .hud-right {
  position: fixed; z-index: 10; font-size: 10px; letter-spacing: .14em; color: rgba(255, 255, 255, .88);
  opacity: .85; pointer-events: none; mix-blend-mode: normal;
  text-shadow: 0 1px 4px #05060a, 0 0 12px #05060a;
}
.hud-left { left: var(--pad); bottom: 64px; }
.hud-right { right: var(--pad); bottom: 64px; text-align: right; }
.hud-right span { display: block; }
.legend-line { display: inline-flex; align-items: center; gap: 8px; opacity: .85; margin-top: 6px; }
.legend-swatch {
  width: 14px; height: 14px; border: 1px solid var(--line); border-radius: 3px; flex-shrink: 0;
  background:
    repeating-linear-gradient(45deg, rgba(143, 216, 255, .18) 0 1px, transparent 1px 5px),
    #0a0c12;
}
@media (max-width: 720px) { .hud-left, .hud-right, .clock, .hud-frame { display: none; } }

/* ---------- chapters ---------- */
#story { position: relative; z-index: 5; }
.chapter {
  min-height: 100vh; display: flex; align-items: center;
  padding: clamp(120px, 16vh, 200px) 0; position: relative; overflow: clip;
}
.copy { position: relative; max-width: 640px; z-index: 2; }
/* dynamic-proof readability scrim: guaranteed dark pool behind every copy block,
   no matter where the bright terrain rotates to */
.copy::before {
  content: ""; position: absolute; inset: -28px -44px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 80% 100% at var(--scrim-x, 38%) 50%,
    rgba(5, 6, 10, .62) 0%, rgba(5, 6, 10, .44) 48%, rgba(5, 6, 10, 0) 78%);
}
.copy.center::before { --scrim-x: 50%; }
#hero .copy::before { content: none; } /* hero sits on starfield — no scrim needed */
.hero .copy { max-width: 900px; }
.copy.narrow { max-width: 560px; }
.copy.center { max-width: 680px; margin: 0 auto; text-align: center; }
.copy.center .cta-row { justify-content: center; }
.chapter .container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ghost chapter numbers */
.chapter::after {
  content: attr(data-ghost); position: absolute; right: 8px; top: 50%;
  translate: 0 -50%; z-index: 0; pointer-events: none; user-select: none;
  font-family: "Audiowide", cursive; font-size: clamp(160px, 22vw, 320px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(233, 237, 245, .11);
}
@media (max-width: 1100px) { .chapter::after { font-size: clamp(96px, 16vw, 200px); opacity: .6; } }

.kicker {
  font-size: 11px; line-height: 1.5; letter-spacing: .3em; color: var(--accent); margin-bottom: 24px;
}
#heart .kicker { color: var(--accent-warm); }
#heart .copy::before {
  content: ""; position: absolute; inset: -40px -56px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 35% 45%, rgba(5, 6, 10, .76), rgba(5, 6, 10, .38) 58%, transparent 76%);
}
h1.display {
  position: relative; margin: 0 0 24px -.055em; padding-top: 24px;
  font-family: "Audiowide", cursive; font-weight: 400;
  font-size: clamp(64px, 12vw, 148px); line-height: .92; letter-spacing: -.055em;
  text-shadow: 0 0 48px rgba(143, 216, 255, .16);
}
h1.display::before {
  content: ""; position: absolute; top: 0; left: .055em; width: 72px; height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(143, 216, 255, .08));
}
.char-mask {
  display: inline-block; overflow: hidden; overflow: clip; vertical-align: bottom;
  padding: .12em .025em .08em; margin: -.12em -.025em -.08em;
}
.char { display: inline-block; transform-origin: left bottom; }
h2 {
  font-family: "Audiowide", cursive; font-weight: 400;
  font-size: clamp(30px, 4.2vw, 52px); line-height: 1.16; letter-spacing: -.025em; margin-bottom: 24px;
  text-shadow: 0 2px 22px rgba(5, 6, 10, .6), 0 0 6px rgba(5, 6, 10, .45);
}
.copy.center h2, .copy.center .kicker { transform-origin: center; }
.lede {
  max-width: 46ch; color: var(--body); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.8;
  text-shadow: 0 1px 14px rgba(5, 6, 10, .85), 0 0 3px rgba(5, 6, 10, .5);
}
.body { color: var(--body); font-size: 15px; line-height: 1.85; margin-bottom: 24px; max-width: 54ch;
  text-shadow: 0 1px 12px rgba(5, 6, 10, .85), 0 0 3px rgba(5, 6, 10, .5);
}
.body:last-child { margin-bottom: 0; }
.copy.center .body { margin-inline: auto; }
.quote {
  border-left: 1px solid var(--accent-warm); padding: 8px 0 8px 24px; margin-top: 32px;
  font-family: "Audiowide", cursive; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5;
  color: var(--accent-warm); letter-spacing: -.01em;
}
#contact .copy::before { content: none; } /* clipped scrim edge reads as a false terrain seam */
#contact .body { color: var(--text); text-shadow: 0 1px 12px var(--bg), 0 0 4px var(--bg); }
#contact h2 { text-shadow: 0 2px 18px rgba(5, 6, 10, .9), 0 0 4px rgba(5, 6, 10, .7); }
.cta-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; text-decoration: none;
  font: 500 12px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase;
  color: #05060a; background: var(--accent); border: 1px solid var(--accent);
  transition: transform .25s ease, box-shadow .3s ease, color .3s ease, border-color .3s ease;
}
.btn:not(.static) { will-change: transform; }
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--text);
  transform: translateX(-102%); transition: transform .45s var(--ease-out);
}
.btn:not(.static):hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(143, 216, 255, .24); }
.btn:not(.static):hover::before, .btn:not(.static):focus-visible::before { transform: translateX(0); }
.btn:not(.static):active { transform: translateY(0); }
.btn.ghost { background: rgba(5, 6, 10, .55); color: #fff; border-color: rgba(233, 237, 245, .3); backdrop-filter: blur(4px); }
.btn.ghost::before { background: var(--accent); }
.btn.ghost:not(.static):hover, .btn.ghost:not(.static):focus-visible { border-color: var(--accent); color: var(--bg); box-shadow: none; }
.btn.big { font-size: 14px; padding: 0 28px; text-transform: none; }

/* ---------- hero ticker ---------- */
.scroll-hint {
  position: absolute; bottom: 64px; left: 50%; translate: -50% 0; z-index: 3;
  font-size: 10px; letter-spacing: .32em; color: var(--body); opacity: .8;
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
}
.scroll-hint .tick {
  width: 1px; height: 32px; background: linear-gradient(var(--accent), transparent);
  animation: fall 1.8s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes fall { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.ticker {
  position: absolute; bottom: 0; left: 0; right: 0; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-soft);
  padding: 14px 0; background: rgba(5, 6, 10, .35);
}
.ticker-track {
  display: flex; width: max-content;
  font-size: 10px; letter-spacing: .25em; color: var(--muted); white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- panels, stats, log ---------- */
.side { display: grid; gap: 24px; align-content: center; min-width: 0; }
.panel {
  border: 1px solid var(--line); border-radius: 12px; padding: 20px;
  background: var(--panel); backdrop-filter: blur(4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 10px; letter-spacing: .24em; color: var(--accent); margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft); padding-bottom: 12px;
}
.panel-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.log { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 11.5px; }
.log li { display: flex; gap: 12px; color: var(--body); letter-spacing: .02em; }
.log li .t { color: var(--muted); flex-shrink: 0; }
.log-caret {
  display: inline-block; width: 7px; height: 13px; margin-top: 10px;
  background: var(--accent); animation: blink 1.1s steps(1) infinite;
}
.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden;
}
.stat { background: rgba(7, 9, 14, .8); padding: 20px; }
.stat dt { font-size: 9.5px; letter-spacing: .18em; color: var(--muted); margin-bottom: 12px; }
.stat dd { font-family: "Audiowide", cursive; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -.02em; color: var(--text); }
.stat .unit { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .14em; color: var(--accent); margin-left: 8px; }

/* ---------- heart spec panel ---------- */
.spec-list { display: grid; gap: 0; font-size: 11.5px; }
.spec-list > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.spec-list > div:last-child { border-bottom: none; }
.spec-list dt { color: var(--muted); letter-spacing: .16em; }
.spec-list dd { color: var(--text); text-align: right; letter-spacing: .04em; }
.panel-foot { margin-top: 16px; font-size: 9.5px; letter-spacing: .16em; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 12px; }

/* ---------- two-column grids ---------- */
.mission-grid, .heart-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
@media (max-width: 960px) {
  .mission-grid, .heart-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
}

/* Heart is a vertical chapter: specs first, full-width archive below. */
#heart { flex-direction: column; justify-content: center; }
#heart > .container, #heart > .archive {
  width: min(1240px, calc(100% - 2 * var(--gutter)));
  flex: none;
}
#heart > .archive { margin-inline: auto; }
@media (min-width: 961px) {
  #heart { padding: 112px 0 64px; }
  #heart > .archive { margin-top: 40px; }
  #heart .archive .kicker { margin-bottom: 12px; }
  #heart .shot { flex-basis: calc((100% - 48px) / 4); }
}

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 48px; perspective: 1200px; }
.card {
  position: relative; border: 1px solid transparent; border-radius: 12px; padding: 28px 24px;
  background:
    linear-gradient(145deg, rgba(12, 15, 22, .82), rgba(5, 6, 10, .66)) padding-box,
    linear-gradient(135deg, var(--line), rgba(233, 237, 245, .035)) border-box;
  transform-style: preserve-3d; will-change: transform;
  transition: translate .35s var(--ease-out), box-shadow .35s ease;
}
.card:hover {
  translate: 0 -4px;
  background:
    linear-gradient(145deg, rgba(12, 15, 22, .9), rgba(5, 6, 10, .72)) padding-box,
    linear-gradient(135deg, rgba(143, 216, 255, .8), rgba(232, 213, 176, .28) 48%, rgba(143, 216, 255, .08)) border-box;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}
.card .tag { font-size: 10px; letter-spacing: .2em; color: var(--accent); display: block; margin-bottom: 16px; }
.card h3 { font-family: "Audiowide", cursive; font-weight: 400; font-size: 16px; line-height: 1.5; letter-spacing: -.01em; margin-bottom: 12px; }
.card p { color: var(--body); font-size: 13px; line-height: 1.75; }
.card-index {
  position: absolute; right: 20px; bottom: 12px; font-size: 44px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(233, 237, 245, .1);
  pointer-events: none; transition: -webkit-text-stroke-color .35s ease;
}
.card:hover .card-index { -webkit-text-stroke-color: rgba(143, 216, 255, .35); }

/* ---------- roadmap timeline ---------- */
.timeline {
  list-style: none; padding: 0; margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  counter-reset: milestone; position: relative;
}
.timeline::before {
  content: ""; position: absolute; top: 4.5px; left: 5.5px; right: calc(25% - 23.5px); height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(143, 216, 255, .06));
}
.milestone { position: relative; padding-top: 28px; }
.milestone::before {
  content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent); box-shadow: 0 0 12px rgba(143, 216, 255, .3);
}
.milestone .year {
  display: block; font-size: 11px; letter-spacing: .24em; color: var(--accent); margin-bottom: 12px;
  text-shadow: 0 1px 3px var(--bg), 0 0 10px var(--bg), 0 0 18px var(--bg);
}
.milestone h3 { font-family: "Audiowide", cursive; font-weight: 400; font-size: 15px; letter-spacing: .02em; margin-bottom: 10px; }
.milestone p { color: var(--body); font-size: 13px; line-height: 1.75; }
#roadmap .milestone h3, #roadmap .milestone p {
  color: var(--text);
  text-shadow: 0 1px 3px var(--bg), 0 0 10px var(--bg), 0 0 18px var(--bg);
}
#roadmap .timeline { isolation: isolate; }
#roadmap .timeline::after {
  content: ""; position: absolute; inset: -24px -20px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(5, 6, 10, .76), rgba(5, 6, 10, .22) 40%, transparent 68%);
}
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; gap: 40px; }
  .timeline::before { top: 5px; bottom: 5px; left: 5px; right: auto; width: 1px; height: auto;
    background: linear-gradient(180deg, var(--accent), rgba(143, 216, 255, .06)); }
  .milestone { padding-top: 0; padding-left: 28px; }
  .milestone::before { top: 2px; }
}

/* ---------- field archive (drag) ---------- */
.archive { margin-top: clamp(48px, 8vh, 88px); position: relative; z-index: 2; }
.archive .kicker { margin-bottom: 20px; }
.gallery-strip {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; cursor: grab; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-strip.is-dragging .shot img { pointer-events: none; }
.shot {
  scroll-snap-align: start; flex: 0 0 clamp(260px, 26vw, 420px); margin: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--panel);
  transition: border-color .3s ease, translate .3s var(--ease-out);
}
.shot:hover { border-color: rgba(143, 216, 255, .5); translate: 0 -3px; }
.shot img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: saturate(.92) contrast(1.04);
  transition: transform .6s var(--ease-out), filter .4s ease;
}
.shot:hover img { transform: scale(1.045); filter: saturate(1.05) contrast(1.06); }
.shot figcaption {
  padding: 10px 14px; font-size: 9px; letter-spacing: .18em; color: var(--muted);
  border-top: 1px solid var(--line-soft);
}
@media (pointer: coarse) { .gallery-strip { cursor: auto; } }

/* ---------- the stack: pipeline ---------- */
.pipeline {
  list-style: none; padding: 0; margin-top: 56px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  counter-reset: stage; position: relative;
}
/* flow line spans exactly first-dot-center to last-dot-center (5 equal columns, dot at 22px) */
.pipeline::before {
  content: ""; position: absolute; top: 3.5px; height: 2px;
  left: 22px; right: calc(20% - 22.5px);
  background: linear-gradient(90deg,
    rgba(143, 216, 255, .9) 0%, rgba(143, 216, 255, .5) 55%, rgba(143, 216, 255, .12) 100%);
}
.stage {
  position: relative; display: flex; flex-direction: column; padding: 24px 18px 20px; margin-top: 18px;
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(160deg, rgba(12, 15, 22, .78), rgba(5, 6, 10, .6));
  transition: border-color .3s ease, translate .3s var(--ease-out);
}
.stage:hover { border-color: rgba(143, 216, 255, .5); translate: 0 -3px; }
/* dot sits ON the line: stage top = pipeline top + 18px, so -18.5px centers the 9px dot on the line */
.stage::before {
  content: ""; position: absolute; top: -18px; left: 17px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px rgba(143, 216, 255, .5);
  z-index: 1;
}
.stage:nth-child(1)::before, .stage:hover::before {
  background: var(--accent);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(143, 216, 255, .35); }
  50% { box-shadow: 0 0 18px rgba(143, 216, 255, .7); }
}
.stage-no { position: absolute; top: 18px; right: 16px; font-size: 10px; letter-spacing: .2em; color: var(--accent); opacity: .8; }
.stage h3 {
  font-family: "Audiowide", cursive; font-weight: 400; font-size: 14px;
  letter-spacing: .06em; margin-bottom: 10px;
}
.stage p { color: var(--body); font-size: 12px; line-height: 1.7; margin-bottom: 14px; }
.stage-meta {
  display: block; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft);
  font-size: 9.5px; letter-spacing: .16em; color: var(--accent);
}
@media (max-width: 1100px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline::before { display: none; }
  .stage { margin-top: 0; }
  .stage::before { display: none; }
}
@media (max-width: 640px) { .pipeline { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer-sec {
  position: relative; z-index: 5; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 6, 10, 0) 0%, rgba(5, 6, 10, .8) 22%, rgba(5, 6, 10, .8) 100%);
  backdrop-filter: blur(4px);
  padding: clamp(48px, 8vh, 88px) 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line-soft);
}
.brand-col .brand { margin-bottom: 16px; }
.f-tag { color: var(--muted); font-size: 12px; line-height: 1.7; letter-spacing: .02em; }
.f-col h4 { font-size: 10px; letter-spacing: .24em; color: var(--accent); margin-bottom: 16px; font-weight: 400; }
.f-link {
  display: block; color: var(--body); text-decoration: none; font-size: 12px;
  letter-spacing: .08em; padding: 5px 0; transition: color .25s ease, translate .25s var(--ease-out);
}
a.f-link:hover { color: var(--accent); translate: 4px 0; }
.f-link.static { color: var(--muted); }
.footer-base {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 24px; font-size: 9.5px; letter-spacing: .12em; color: var(--muted);
}
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-base { flex-direction: column; gap: 8px; }
}
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- fallback (no WebGL) ---------- */
body.no-webgl #scene {
  background:
    radial-gradient(1200px 700px at 70% 40%, rgba(143, 216, 255, .10), transparent 60%),
    radial-gradient(900px 500px at 20% 70%, rgba(232, 213, 176, .06), transparent 60%),
    var(--bg);
}
body.no-webgl .grain { opacity: .08; }

@media (max-width: 720px) {
  .hud-top { gap: 8px; }
  .nav { gap: 0; margin-left: auto; overflow-x: auto; }
  .nav a { padding-inline: 6px; font-size: 9px; letter-spacing: .08em; }
  .brand { font-size: 10px; }
  .brand-mark { width: 14px; height: 14px; }
  h1.display { font-size: clamp(44px, 14vw, 72px); letter-spacing: -.045em; margin-left: -.045em; }
  .chapter { padding-block: 112px; }
  .ticker-track { animation-duration: 22s; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
body.dragging-planet .cursor-ring.is-active { width: 64px; height: 64px; background: rgba(143, 216, 255, .22); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .preloader, .cursor-dot, .cursor-ring { display: none; }
  .preloader-signal::after, .scroll-hint .tick, .panel-dot, .log-caret, .ticker-track, .stage::before { animation: none; }
  .nav a::after, .btn::before, .card, .cursor-dot, .cursor-ring, .f-link, .shot, .shot img, .stage { transition: none; }
  .btn::before { display: none; }
  .btn:hover, .btn:active, .shot:hover img { transform: none; }
  .card:hover, .shot:hover, .stage:hover { translate: none; }
  .ticker-track { transform: none; }
}

/* ---------- projected NO DATA label (dithered glitch treatment) ---------- */
.nodata-label {
  position: fixed; z-index: 8; pointer-events: none; opacity: 0; display: none;
  transform: translate(-50%, -50%); text-align: center;
}
.nodata-label .glitch {
  position: relative; display: inline-block;
  font-family: "Audiowide", cursive; font-size: clamp(20px, 2.2vw, 34px);
  letter-spacing: .3em; color: var(--text);
  text-shadow: 0 0 18px rgba(5, 6, 10, .9), 0 2px 10px rgba(5, 6, 10, .8);
  animation: rgb-split 2.8s steps(1) infinite;
}
.nodata-label .glitch::before, .nodata-label .glitch::after {
  content: attr(data-text); position: absolute; inset: 0;
}
.nodata-label .glitch::before { color: rgba(255, 60, 90, .75); clip-path: inset(12% 0 58% 0); animation: glitch-a 3.4s steps(1) infinite; }
.nodata-label .glitch::after { color: rgba(120, 220, 255, .75); clip-path: inset(62% 0 8% 0); animation: glitch-b 3.1s steps(1) infinite; }
@keyframes rgb-split {
  0%, 92%, 100% { text-shadow: 0 0 18px rgba(5, 6, 10, .9); }
  93% { text-shadow: -2px 0 rgba(255, 60, 90, .8), 2px 0 rgba(120, 220, 255, .8); }
  96% { text-shadow: 2px 0 rgba(255, 60, 90, .8), -2px 0 rgba(120, 220, 255, .8); }
}
@keyframes glitch-a {
  0%, 88%, 100% { transform: none; opacity: .75; }
  90% { transform: translate(-3px, -2px); opacity: 1; }
  94% { transform: translate(2px, 1px); }
}
@keyframes glitch-b {
  0%, 85%, 100% { transform: none; opacity: .75; }
  87% { transform: translate(3px, 2px); opacity: 1; }
  91% { transform: translate(-2px, -1px); }
}
.nodata-sub {
  display: block; margin-top: 8px; font-size: 10px; letter-spacing: .3em;
  color: var(--text); text-shadow: 0 1px 3px var(--bg), 0 0 10px var(--bg), 0 0 18px var(--bg);
}

/* comms status chip (over bright terrain — carries its own backdrop) */
.btn.ghost.static {
  cursor: default;
  background: rgba(5, 6, 10, .74);
  color: #dff3ff;
  border-color: rgba(143, 216, 255, .55);
  letter-spacing: .18em;
  text-shadow: 0 0 10px rgba(143, 216, 255, .3);
  animation: chip-pulse 3.2s ease-in-out infinite;
}
@keyframes chip-pulse {
  0%, 100% { border-color: rgba(143, 216, 255, .5); }
  50% { border-color: rgba(143, 216, 255, .95); }
}
@media (prefers-reduced-motion: reduce) {
  .nodata-label .glitch, .nodata-label .glitch::before, .nodata-label .glitch::after, .btn.ghost.static { animation: none; }
}
