/* =====================================================================
   WACKO GECKO STUDIOS — APEX SPACE AGENCY
   base.css · design tokens, typography, shared components, global chrome
   Every module stylesheet builds on the tokens + components defined here.
   ===================================================================== */

:root {
  /* --- Surfaces (deep space, never pure black so grain + glows read) */
  --void: #040608;
  --ink-950: #07090c;
  --ink-900: #0a0d12;
  --ink-800: #10141b;
  --ink-700: #171c25;
  --ink-600: #222936;
  --glass: rgba(10, 13, 18, 0.62);
  --glass-strong: rgba(8, 11, 15, 0.84);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* --- Brand silver (from the brand guide gradient #939598 → #58595B) */
  --silver-hi: #d6d8db;
  --silver: #939598;
  --silver-lo: #58595b;
  --brand-gradient: linear-gradient(100deg, #eceef0 0%, #b9bbbe 30%, #939598 58%, #6b6c6e 100%);

  /* --- Text */
  --text: #eef1f4;
  --text-dim: #a3aab4;
  --text-faint: #6a717c;

  /* --- Signals (HUD green from the O2 / EC bar references; ignition amber from the EVA suit) */
  --signal: #74c450;
  --signal-dim: rgba(116, 196, 80, 0.18);
  --ignite: #ff8a2a;
  --ignite-hot: #ffb35c;
  --ignite-dim: rgba(255, 138, 42, 0.16);
  --warn: #ff5a3c;
  --cyan: #8fdcff;

  /* --- Biome tints (set per section via --tint) */
  --tint-home: #6fa8c8;
  --tint-moon: #b8bcc4;
  --tint-rust: #d0643a;
  --tint-fracture: #ff6a2b;
  --tint-belt: #c9a77c;
  --tint-ochre: #e7a64e;
  --tint-lilac: #b9a8ec;
  --tint-azure: #46b8ee;
  --tint: var(--ignite);

  /* --- Type */
  --f-display: "Michroma", "Eurostile", "Lato", system-ui, sans-serif;
  --f-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-hero: clamp(2.6rem, 7.4vw, 7.2rem);
  --fs-xl: clamp(2rem, 4.6vw, 4.4rem);
  --fs-l: clamp(1.5rem, 2.9vw, 2.6rem);
  --fs-m: clamp(1.15rem, 1.6vw, 1.45rem);
  --fs-body: clamp(1rem, 1.05vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-label: 0.6875rem;

  /* --- Layout */
  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1320px;
  --radius: 4px;
  --topbar-h: 68px;

  /* --- Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html, body { overflow-x: clip; }
@media (max-width: 520px) { .eyebrow { letter-spacing: .18em; gap: 6px 10px; } .eyebrow__rule { width: 28px; } }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
::selection { background: var(--ignite); color: #120800; }
:focus-visible { outline: 1px solid var(--ignite); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Lenis */
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: hidden; }

/* -------------------------------------------------------------- typography */
.display {
  font-family: var(--f-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.02;
  font-weight: 400;
}
.display--hero { font-size: var(--fs-hero); letter-spacing: 0.02em; }
.display--xl { font-size: var(--fs-xl); }
.display--l { font-size: var(--fs-l); line-height: 1.12; }
.display--m { font-size: var(--fs-m); line-height: 1.25; letter-spacing: 0.06em; }
.metal {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede { font-size: clamp(1.08rem, 1.35vw, 1.3rem); line-height: 1.6; color: var(--text); font-weight: 300; max-width: 46ch; }
.prose { color: var(--text-dim); max-width: 60ch; }
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--text); font-weight: 700; }
.quote {
  font-family: var(--f-body); font-weight: 300; font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 2.2rem); line-height: 1.3; color: var(--text);
}
.label {
  font-family: var(--f-display);
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.4;
}
.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1, "zero" 1; letter-spacing: 0.02em; }

/* Section eyebrow: index + rule + title  →  "04 ——— THE KELVIN SYSTEM" */
.eyebrow {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; max-width: 100%;
  font-family: var(--f-display); font-size: var(--fs-label); letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--text-dim);
}
.eyebrow__idx { color: var(--tint, var(--ignite)); }
.eyebrow::before { content: none; }
.eyebrow__rule { width: 48px; height: 1px; background: currentColor; opacity: 0.5; }

/* -------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; isolation: isolate; }
.section--pad { padding-block: clamp(96px, 14vh, 180px); }
.stack > * + * { margin-top: var(--stack, 1.25rem); }
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
@media (min-width: 900px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 600px) and (max-width: 899px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Full-bleed media layer (images / video backgrounds) */
.bleed { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.bleed > img, .bleed > video, .bleed > picture img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%);
}
.scrim-b { background: linear-gradient(180deg, rgba(4,6,8,0) 35%, rgba(4,6,8,0.92) 100%); }
.scrim-t { background: linear-gradient(0deg, rgba(4,6,8,0) 55%, rgba(4,6,8,0.85) 100%); }
.scrim-l { background: linear-gradient(90deg, rgba(4,6,8,0.88) 0%, rgba(4,6,8,0.35) 55%, rgba(4,6,8,0) 100%); }
.scrim-full { background: rgba(4,6,8,0.55); }
.fade-edges::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--void) 0%, transparent 18%, transparent 82%, var(--void) 100%);
}

/* --------------------------------------------------------- components */

/* Glass panel with corner brackets — the core "instrument" surface */
.panel {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  padding: clamp(18px, 2vw, 28px);
}
.panel--solid { background: var(--glass-strong); }
.brackets { position: relative; }
.brackets::before, .brackets::after {
  content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none;
  border-color: var(--silver); border-style: solid; opacity: 0.85;
}
.brackets::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.brackets::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* Buttons */
.btn {
  --btn-c: var(--text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--btn-c);
  border: 1px solid var(--line-strong); border-radius: 2px;
  background: rgba(255,255,255,0.02);
  overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease-out), border-color .35s var(--ease-out), background .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill, var(--text));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: var(--void); border-color: var(--btn-fill, var(--text)); }
.btn--ignite { --btn-c: #1a0b00; --btn-fill: var(--ignite-hot); background: var(--ignite); border-color: var(--ignite); }
.btn--ignite:hover { color: #1a0b00; }
.btn--ghost { border-color: transparent; padding-inline: 4px; }
.btn--ghost::before { display: none; }
.btn--ghost:hover { color: var(--ignite); background: none; border-color: transparent; }
.btn__arrow { width: 14px; height: 14px; flex: none; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 0.64rem; }

/* Chips / tags */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 2px;
  font-family: var(--f-display); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim); background: rgba(255,255,255,0.02);
}
.chip--signal { color: var(--signal); border-color: rgba(116,196,80,.35); }
.chip--ignite { color: var(--ignite); border-color: rgba(255,138,42,.4); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; flex: none; }
.dot--pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* Segmented bars — straight from the O2 / EC HUD references */
.segbar { display: inline-flex; gap: 3px; align-items: flex-end; }
.segbar--v { flex-direction: column-reverse; }
.segbar__seg { width: 18px; height: 6px; background: var(--signal); opacity: 1; transition: opacity .3s, background .3s; }
.segbar--v .segbar__seg { width: 8px; height: 14px; }
.segbar__seg.is-off { opacity: 0.14; }
.segbar--warn .segbar__seg { background: var(--ignite); }
.segbar--crit .segbar__seg { background: var(--warn); }

/* Readout: label over big mono value */
.readout { display: grid; gap: 2px; }
.readout__k { font-family: var(--f-display); font-size: 0.58rem; letter-spacing: 0.24em; color: var(--text-faint); text-transform: uppercase; }
.readout__v { font-family: var(--f-mono); font-size: 0.95rem; color: var(--text); font-feature-settings: "tnum" 1; }
.readout__v small { color: var(--text-faint); font-size: 0.7em; margin-left: 3px; }

/* Data list (key / value rows) */
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt, .kv .k { font-family: var(--f-display); font-size: 0.6rem; letter-spacing: 0.2em; color: var(--text-faint); text-transform: uppercase; padding-top: 3px; }
.kv dd, .kv .v { margin: 0; text-align: right; color: var(--text); font-size: 0.92rem; }

/* Redacted / unknown data (knowledge-as-progression motif) */
.redact {
  display: inline-block; color: transparent; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 6px, rgba(255,255,255,.08) 6px 8px);
  border-radius: 1px; user-select: none; min-width: 6ch;
}

/* Thin progress rule */
.rule { height: 1px; background: var(--line); }

/* Reveal helpers (main.js toggles .is-in) */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; } [data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; } [data-reveal-delay="4"] { transition-delay: .32s; }
.split-line { display: block; overflow: hidden; }
.split-line > span { display: inline-block; }

/* ------------------------------------------------- atmosphere overlays */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } 100% { transform: translate(0,0); }
}
.vignette { position: fixed; inset: 0; z-index: 89; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%); }

/* ================================================================
   GLOBAL CHROME
   ================================================================ */

/* ---------- boot / preloader */
.boot {
  position: fixed; inset: 0; z-index: 200; background: var(--void);
  display: grid; place-items: center; padding: var(--gutter);
}
.boot__inner { width: min(560px, 100%); display: grid; gap: 28px; justify-items: center; text-align: center; }
.boot__emblem { position: relative; width: 132px; height: 132px; }
.boot__emblem img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; opacity: 0; }
.boot__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.boot__ring circle { fill: none; stroke-width: 1; }
.boot__ring .track { stroke: var(--line); }
.boot__ring .prog { stroke: var(--silver-hi); stroke-dasharray: 402; stroke-dashoffset: 402; transition: stroke-dashoffset .4s var(--ease-out); }
.boot__orbiter { position: absolute; inset: 0; animation: spin 6s linear infinite; }
.boot__orbiter::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--ignite); box-shadow: 0 0 12px var(--ignite); }
@keyframes spin { to { transform: rotate(360deg); } }
.boot__log { width: 100%; min-height: 7.6em; text-align: left; font-family: var(--f-mono); font-size: 0.74rem; line-height: 1.9; color: var(--text-faint); }
.boot__log .ok { color: var(--signal); }
.boot__log .hl { color: var(--text); }
.boot__pct { font-family: var(--f-mono); font-size: 0.72rem; color: var(--text-dim); letter-spacing: .1em; }
.boot__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); pointer-events: none; }
.boot.is-ready .boot__actions { opacity: 1; transform: none; pointer-events: auto; }
.boot__note { font-size: 0.75rem; color: var(--text-faint); }
.boot__shutter { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--void); z-index: 2; transform: scaleY(0); }
.boot__shutter--t { top: 0; transform-origin: top; }
.boot__shutter--b { bottom: 0; transform-origin: bottom; }

/* ---------- top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
  transition: background .5s, border-color .5s, transform .6s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled { background: linear-gradient(180deg, rgba(4,6,8,.86), rgba(4,6,8,.55)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.topbar.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__icon { width: 34px; height: 34px; object-fit: contain; }
.brand__word { width: 150px; height: auto; opacity: .92; }
.nav { display: none; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a { font-family: var(--f-display); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim); position: relative; padding: 8px 0; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ignite); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.topbar__tools { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--text-dim); transition: color .3s, border-color .3s; }
.icon-btn:hover { color: var(--text); border-color: var(--silver); }
.audio-btn .bars { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.audio-btn .bars i { width: 2px; height: 3px; background: currentColor; }
.audio-btn.is-on { color: var(--signal); border-color: rgba(116,196,80,.45); }
.audio-btn.is-on .bars i { animation: eq 1s ease-in-out infinite; }
.audio-btn.is-on .bars i:nth-child(2) { animation-delay: -.3s; } .audio-btn.is-on .bars i:nth-child(3) { animation-delay: -.6s; } .audio-btn.is-on .bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 14px; } }
.menu-btn { display: grid; }
.menu-btn span { display: block; width: 18px; height: 1px; background: currentColor; transition: transform .4s var(--ease-out), opacity .3s; }
.menu-btn span + span { margin-top: 6px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (min-width: 1100px) { .nav { display: flex; } .menu-btn { display: none; } }
@media (max-width: 520px) { .brand__word { display: none; } }

/* mobile menu */
.mnav {
  position: fixed; inset: 0; z-index: 79; background: rgba(4,6,8,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  display: grid; align-content: center; padding: calc(var(--topbar-h) + 20px) var(--gutter) 40px; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.menu-open .mnav { opacity: 1; visibility: visible; }
.mnav a { font-family: var(--f-display); font-size: clamp(1.2rem, 6vw, 2rem); text-transform: uppercase; letter-spacing: .06em; padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.mnav a span { font-size: .7rem; color: var(--ignite); letter-spacing: .2em; }

/* ---------- mission rail (right edge) */
.rail {
  position: fixed; right: clamp(14px, 1.6vw, 28px); top: 50%; z-index: 70; transform: translateY(-50%);
  display: none; flex-direction: column; align-items: flex-end; gap: 0;
}
@media (min-width: 1100px) { .rail { display: flex; } }
.rail__track { position: absolute; right: 3px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.rail__fill { position: absolute; right: 3px; top: 6px; width: 1px; height: 0; background: linear-gradient(var(--silver-hi), var(--ignite)); }
.rail a { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.rail a .lbl { font-family: var(--f-display); font-size: 0.56rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim); opacity: 0; transform: translateX(8px); transition: opacity .35s, transform .35s var(--ease-out); white-space: nowrap; }
.rail a:hover .lbl, .rail a.is-active .lbl { opacity: 1; transform: none; }
.rail a.is-active .lbl { color: var(--text); }
.rail a .pip { width: 7px; height: 7px; border: 1px solid var(--silver); background: var(--void); transform: rotate(45deg); transition: background .3s, border-color .3s, box-shadow .3s; }
.rail a.is-done .pip { background: var(--silver); }
.rail a.is-active .pip { background: var(--ignite); border-color: var(--ignite); box-shadow: 0 0 12px var(--ignite); }

/* ---------- telemetry HUD (bottom) */
.hud {
  position: fixed; left: var(--gutter); bottom: clamp(14px, 2.4vh, 26px); z-index: 70;
  display: flex; align-items: flex-end; gap: clamp(14px, 2vw, 30px);
  pointer-events: none; opacity: 0; transition: opacity .6s;
}
.hud.is-on { opacity: 1; }
.hud__phase { display: grid; gap: 4px; }
.hud__phase .label { color: var(--text-faint); }
.hud__phase strong { font-family: var(--f-display); font-weight: 400; font-size: 0.72rem; letter-spacing: .2em; color: var(--text); }
.hud .readout__v { font-size: 0.86rem; min-width: 9ch; }
.hud__sys { position: fixed; right: var(--gutter); bottom: clamp(14px, 2.4vh, 26px); z-index: 70; display: flex; gap: 16px; align-items: flex-end; pointer-events: none; opacity: 0; transition: opacity .6s; }
.hud__sys.is-on { opacity: 1; }
.hud__sys .sys { display: flex; align-items: flex-end; gap: 7px; }
.hud__sys .sys b { font-family: var(--f-display); font-weight: 400; font-size: .6rem; letter-spacing: .14em; color: var(--text-faint); line-height: 1; }
@media (min-width: 1100px) { .hud__sys { right: calc(var(--gutter) + 70px); } }
@media (max-width: 700px) {
  .hud .hide-sm, .hud__sys { display: none; }
  .hud { gap: 14px; }
}

/* ---------- scroll cue */
.cue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.cue__line { width: 1px; height: 54px; background: linear-gradient(var(--text), transparent); position: relative; overflow: hidden; }
.cue__line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ignite); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--text-faint); font-size: 0.8rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }

/* ---------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .grain { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
