/*
 * Celestrike — celestrike.com
 *
 * Nocturne, ported to the web. Every colour here comes from
 * mobile/src/theme/tokens.js, which is the single source of truth for the app.
 * If a value drifts, the app is right and this file is wrong.
 *
 * Sections: tokens · reset · shell chrome · typography · layout · components ·
 * responsive · reduced motion.
 */

/* ── tokens ───────────────────────────────────────────────────────────────── */

:root {
  /* Neutral ramp */
  --n-100: #f3f5fe;
  --n-200: #e4e7f5;
  --n-300: #cfd3e5;
  --n-400: #b2b6ca;
  --n-500: #9397ab;
  --n-600: #75798c;
  --n-700: #595d6c;
  --n-800: #3f424d;
  --n-900: #292b31;

  /* Accent ramp — the product blurple */
  --a-200: #e7e5fe;
  --a-300: #d2cefd;
  --a-400: #b5abfc;
  --a-700: #5d5294;
  --a-900: #2b2741;

  /* Derived neon. The oklch originals live in tokens.js — retune from those. */
  --neon: #c2a3ff;
  --signal: #26e3fd;
  --signal-dim: #00b6d1;
  --hot: #9971ff;

  /* The rgb triple every glow and hairline is mixed from. */
  --glow: 181, 171, 252;

  /* Surfaces */
  --ground: #0d0e18;
  --bg: #161826;
  --surface: #232532;
  --text: #e9e9ed;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --hair: 1px solid rgba(var(--glow), 0.18);
  --hair-bright: 1px solid rgba(var(--glow), 0.34);

  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1180px;

  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}

/* ── reset ────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--a-300); text-decoration-color: rgba(var(--glow), 0.4); text-underline-offset: 3px; }
a:hover { color: var(--neon); text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  border: var(--hair-bright);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}
.skip:focus { left: 12px; }

/* ── shell chrome ─────────────────────────────────────────────────────────── */
/*
 * The app shell's background layers, per the design handoff: a 34px grid at 5.5%
 * and a radial glow off the top edge. Fixed rather than scrolling, so the whole
 * page reads as one continuous instrument rather than a stack of sections.
 */

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    linear-gradient(rgba(var(--glow), 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--glow), 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

body::after {
  background: radial-gradient(120% 60% at 50% 0%, rgba(var(--glow), 0.14) 0%, transparent 65%);
}

/* ── typography ───────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 1.35rem + 3.4vw, 3.85rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.2rem); }
h3 { font-size: 1.0625rem; }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  color: var(--n-400);
  line-height: 1.62;
}

/* The tracked-uppercase label that carries the whole HUD language. */
.kicker {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.26em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--a-300);
  text-shadow: 0 0 12px rgba(var(--glow), 0.6);
  margin: 0 0 14px;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

strong { color: var(--n-200); font-weight: 500; }

code {
  font-family: var(--mono);
  font-size: 0.875em;
  color: var(--a-300);
  background: rgba(var(--glow), 0.08);
  border: 1px solid rgba(var(--glow), 0.14);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
}

/* The glowing hairline divider from the CMD title block. */
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  box-shadow: 0 0 10px rgba(var(--glow), 0.5);
  opacity: 0.6;
}

/* ── layout ───────────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

.band {
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid rgba(var(--glow), 0.1);
}

.band-head { margin-bottom: clamp(28px, 4vw, 44px); }
.band-head .lede { margin-top: 14px; }

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* ── header ───────────────────────────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: var(--hair);
  background: linear-gradient(180deg, rgba(13, 14, 24, 0.94), rgba(13, 14, 24, 0.82));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 58px;
  padding-block: 9px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex: none;
}

.brand svg {
  width: 17px;
  height: 17px;
  color: var(--neon);
  filter: drop-shadow(0 0 6px rgba(var(--glow), 0.9));
}

.wordmark {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(var(--glow), 0.7);
}

.masthead nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

.masthead nav a {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-500);
  text-decoration: none;
  white-space: nowrap;
}
.masthead nav a:hover { color: var(--neon); filter: drop-shadow(0 0 8px rgba(var(--glow), 0.7)); }
.masthead nav a[aria-current="page"] { color: var(--neon); }

/* Live status pill — the header's threat dot, repurposed. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--n-300);
  border: var(--hair);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(var(--glow), 0.05);
  white-space: nowrap;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  color: var(--signal);
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 2s ease-in-out infinite;
  flex: none;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ── hero ─────────────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(40px, 6vw, 76px) clamp(48px, 7vw, 88px); }

.hero-grid {
  display: grid;
  gap: clamp(36px, 5vw, 60px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); }
}

.hero h1 {
  text-shadow: 0 0 26px rgba(var(--glow), 0.45);
  margin-bottom: 20px;
}
.hero .rule { margin-bottom: 22px; }
.hero h1 .quiet { color: var(--n-500); text-shadow: none; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  border: 1px solid var(--neon);
  background: linear-gradient(180deg, rgba(var(--glow), 0.16), rgba(var(--glow), 0.04));
  box-shadow: 0 0 22px rgba(var(--glow), 0.28);
  color: var(--text);
}
.btn-primary:hover { box-shadow: 0 0 32px rgba(var(--glow), 0.5); color: #fff; }

.btn-ghost {
  border: 1px solid rgba(var(--glow), 0.28);
  background: rgba(35, 37, 50, 0.5);
  color: var(--n-300);
}
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 20px rgba(var(--glow), 0.2); }

.btn svg { width: 17px; height: 17px; flex: none; }

.cta-note { margin-top: 16px; font-size: 0.8125rem; color: var(--n-600); }

/* Stat trio, from the CMD screen. */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 34px;
  max-width: 460px;
}

.stat {
  background: rgba(35, 37, 50, 0.55);
  border: 1px solid rgba(var(--glow), 0.22);
  border-radius: var(--radius-md);
  padding: 12px;
}

.stat b {
  display: block;
  font-size: 1.3125rem;
  font-weight: 500;
  color: var(--a-200);
  text-shadow: 0 0 14px rgba(var(--glow), 0.5);
  line-height: 1.2;
}

.stat span {
  display: block;
  margin-top: 3px;
  font-size: 0.5938rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--n-500);
}

/* ── the globe instrument ─────────────────────────────────────────────────── */

.scope {
  border: var(--hair);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(var(--glow), 0.09), transparent 60%),
    rgba(13, 14, 24, 0.72);
  overflow: hidden;
  position: relative;
}

.scope-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.5938rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(var(--glow), 0.14);
  color: var(--signal);
  text-shadow: 0 0 10px rgba(38, 227, 253, 0.5);
}

.scope-head .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--n-500);
  text-shadow: none;
}

.scope-canvas {
  position: relative;
  aspect-ratio: 1 / 1;
}

.scope-canvas canvas { width: 100%; height: 100%; }

/* Corner brackets — the reticle framing from the WORLD HUD. */
.scope-canvas::before,
.scope-canvas::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(var(--glow), 0.45);
  pointer-events: none;
}
.scope-canvas::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.scope-canvas::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

/* Per-platform telemetry strip — driven by the live propagator, not authored. */
.telemetry {
  border-top: 1px solid rgba(var(--glow), 0.14);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tel { padding: 10px 12px 12px; border-left: 1px solid rgba(var(--glow), 0.1); }
.tel:first-child { border-left: 0; }

.tel-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  color: var(--n-300);
}

.tel-name i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  flex: none;
}

.tel-val {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: var(--n-500);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tel-val b { color: var(--a-200); font-weight: 400; }

/* ── cards ────────────────────────────────────────────────────────────────── */

/* Numbered step, borrowing the objective list's left-rule treatment. */
.step {
  background: rgba(35, 37, 50, 0.5);
  border: 1px solid rgba(var(--glow), 0.14);
  border-left: 2px solid var(--neon);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.step .n {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--neon);
  text-shadow: 0 0 10px rgba(var(--glow), 0.6);
}

.step h3 { margin: 6px 0; font-size: 1rem; }
.step p { font-size: 0.875rem; color: var(--n-500); margin: 0; }

/* Rule card — a claim plus the failure mode it prevents. */
.ruleset { display: grid; gap: 12px; }

@media (min-width: 760px) {
  .ruleset { grid-template-columns: 1fr 1fr; }
}

.rule-card {
  background: rgba(35, 37, 50, 0.5);
  border: 1px solid rgba(var(--glow), 0.16);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-card h3 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  line-height: 1.3;
}

.rule-card h3 svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--neon);
  filter: drop-shadow(0 0 6px rgba(var(--glow), 0.7));
}

.rule-card p { font-size: 0.875rem; color: var(--n-500); margin: 0; }

.prevents {
  font-size: 0.75rem;
  color: var(--n-600);
  border-top: 1px dashed rgba(var(--glow), 0.2);
  padding-top: 10px;
  margin-top: auto;
}
.prevents b {
  color: var(--a-400);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.6875rem;
}

/* Orbit regime card. */
.regime {
  background: rgba(35, 37, 50, 0.55);
  border: 1px solid rgba(var(--glow), 0.18);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.regime-band {
  height: 3px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(var(--glow), 0.8);
  margin-bottom: 16px;
}
.regime:nth-child(2) .regime-band { background: var(--a-400); box-shadow: 0 0 8px rgba(var(--glow), 0.45); }
.regime:nth-child(3) .regime-band { background: var(--a-700); box-shadow: none; }

.regime h3 { font-size: 1.25rem; }
.regime .alt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--signal);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.regime p { font-size: 0.875rem; color: var(--n-400); margin: 12px 0 14px; }

.regime dl {
  margin: auto 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 0.75rem;
  border-top: 1px solid rgba(var(--glow), 0.14);
  padding-top: 12px;
}
.regime dt {
  color: var(--n-600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.6563rem;
  align-self: center;
}
.regime dd { margin: 0; font-family: var(--mono); color: var(--n-300); text-align: right; }

/* Platform card, from FLEET. */
.platform {
  background: rgba(35, 37, 50, 0.58);
  border: 1px solid rgba(var(--glow), 0.18);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  /* So a full-bleed bus render is clipped by the card's own corners. */
  overflow: hidden;
}

/* Bus hero art, landscape — the render the app shows for that design. Pulled out to
   the card edges, which is what the negative margin undoes .platform's padding for. */
.platform-art {
  margin: -14px -16px 12px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(62% 74% at 50% 50%, rgba(var(--glow), 0.16), transparent 72%),
    rgba(13, 14, 24, 0.5);
  border-bottom: 1px solid rgba(var(--glow), 0.12);
}
.platform-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}
.platform-note {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--n-500);
}

.platform-top { display: flex; align-items: center; gap: 10px; }
.platform-top h3 { font-size: 0.875rem; letter-spacing: 0.02em; }

.chip {
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--a-700);
  color: var(--a-200);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  margin-left: auto;
  white-space: nowrap;
}

.platform .meta {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--n-500);
  line-height: 1.7;
}

.bar {
  margin-top: 12px;
  height: 3px;
  border-radius: 2px;
  background: rgba(var(--glow), 0.14);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(var(--glow), 0.9);
}

/* ── fact list with hairline separators ───────────────────────────────────── */

.facts { display: grid; margin: 0; padding: 0; list-style: none; }

.facts li {
  display: grid;
  gap: 4px 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(var(--glow), 0.12);
}
.facts li:last-child { border-bottom: 1px solid rgba(var(--glow), 0.12); }

@media (min-width: 760px) {
  .facts li { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
}

.facts h3 { font-size: 0.9375rem; }
.facts p { font-size: 0.9375rem; color: var(--n-500); margin: 0; }

/* ── claim band ───────────────────────────────────────────────────────────── */

.claim {
  border: 1px solid rgba(var(--glow), 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(100% 140% at 50% 0%, rgba(var(--glow), 0.1), transparent 70%),
    rgba(22, 24, 38, 0.7);
  padding: clamp(26px, 4vw, 44px);
  text-align: center;
}

.claim q {
  display: block;
  quotes: none;
  font-size: clamp(1.15rem, 0.95rem + 1vw, 1.6rem);
  line-height: 1.42;
  color: var(--n-200);
  text-shadow: 0 0 22px rgba(var(--glow), 0.32);
  max-width: 34ch;
  margin-inline: auto;
}

.claim cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--n-600);
}

/* ── roadmap ──────────────────────────────────────────────────────────────── */

.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
  position: relative;
  padding: 0 0 26px 26px;
  border-left: 1px solid rgba(var(--glow), 0.2);
}
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ground);
  border: 1px solid var(--n-700);
}
.timeline li.now::before {
  background: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 10px rgba(var(--glow), 0.9);
}

.timeline h3 { font-size: 0.9375rem; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.timeline .when { font-family: var(--mono); font-size: 0.6875rem; color: var(--n-600); letter-spacing: 0.06em; }
.timeline p { font-size: 0.875rem; color: var(--n-500); margin: 6px 0 0; }

/* ── footer ───────────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid rgba(var(--glow), 0.24);
  background: linear-gradient(180deg, rgba(var(--glow), 0.05), rgba(8, 9, 16, 0.9));
  padding-block: 34px 40px;
  margin-top: clamp(48px, 7vw, 88px);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
}

.foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }

.foot a {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-500);
  text-decoration: none;
}
.foot a:hover { color: var(--neon); }

.foot small { font-size: 0.6875rem; color: var(--n-700); letter-spacing: 0.04em; }

/* ── document pages (privacy, support, press) ─────────────────────────────── */

.doc { padding-block: clamp(40px, 6vw, 72px); }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(1.85rem, 1.4rem + 2vw, 2.6rem); margin-bottom: 12px; }
.doc h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.doc h3 { margin: 26px 0 8px; }
.doc p, .doc li { color: var(--n-400); }
.doc ul, .doc ol { padding-left: 20px; margin: 0 0 1em; max-width: var(--measure); }
.doc li { margin-bottom: 8px; }
.doc .updated { font-family: var(--mono); font-size: 0.75rem; color: var(--n-600); }

.doc .callout {
  border: 1px solid rgba(var(--glow), 0.22);
  border-left: 2px solid var(--neon);
  border-radius: var(--radius-md);
  background: rgba(35, 37, 50, 0.5);
  padding: 16px 20px;
  margin: 24px 0;
}
.doc .callout p { margin: 0; color: var(--n-300); }

.faq { border-top: 1px solid rgba(var(--glow), 0.12); padding: 20px 0; }
.faq:last-of-type { border-bottom: 1px solid rgba(var(--glow), 0.12); }
.faq h3 { margin: 0 0 8px; }
.faq p { margin: 0; }

.kv {
  display: grid;
  gap: 0;
  margin: 0 0 1em;
  font-size: 0.9375rem;
}
.kv > div {
  display: grid;
  gap: 2px 20px;
  padding: 12px 0;
  border-top: 1px solid rgba(var(--glow), 0.12);
}
.kv > div:last-child { border-bottom: 1px solid rgba(var(--glow), 0.12); }
@media (min-width: 620px) {
  .kv > div { grid-template-columns: 190px minmax(0, 1fr); }
}
.kv dt { color: var(--n-600); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; align-self: center; }
.kv dd { margin: 0; color: var(--n-300); font-family: var(--mono); font-size: 0.8125rem; }

/* Trailer facade (#trailer): a poster and a play mark until pressed, then the
   youtube-nocookie player in the same 16:9 box, so nothing below it moves. */
.trailer {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(var(--glow), 0.2);
  border-radius: var(--radius-lg);
  background: var(--ground);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}
.trailer img,
.trailer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.trailer-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: rgba(13, 14, 24, 0.72);
  border: 1px solid rgba(var(--glow), 0.5);
  box-shadow: 0 0 28px rgba(var(--glow), 0.35);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.trailer-play::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 24px;
  border-style: solid;
  border-width: 14px 0 14px 23px;
  border-color: transparent transparent transparent var(--text);
}
a.trailer:hover .trailer-play,
a.trailer:focus-visible .trailer-play {
  transform: scale(1.06);
  border-color: var(--neon);
}
.trailer-note {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--n-500);
}

/* ── responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .masthead nav a.hide-sm { display: none; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; max-width: none; }
  .telemetry { grid-template-columns: 1fr; }
  .tel { border-left: 0; border-top: 1px solid rgba(var(--glow), 0.1); }
  .tel:first-child { border-top: 0; }
  .btn { width: 100%; justify-content: center; }
}

/* ── reduced motion ───────────────────────────────────────────────────────── */
/*
 * The globe is decorative. Under prefers-reduced-motion the script draws one
 * frame and stops rather than animating — see assets/globe.js.
 */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── print ────────────────────────────────────────────────────────────────── */

@media print {
  body { background: #fff; color: #000; }
  body::before, body::after, .masthead, .scope, .foot nav { display: none; }
  a { color: #000; }
  .doc p, .doc li { color: #222; }
}

/* ── small utilities ──────────────────────────────────────────────────────── */
/*
 * These exist so no element needs a style attribute, which is what lets the CSP
 * in _headers drop 'unsafe-inline' for styles entirely.
 */

.sprite { position: absolute; width: 0; height: 0; }

.tel-imagery { color: var(--neon); }
.tel-sigint  { color: var(--signal); }
.tel-relay   { color: var(--a-400); }

.bar-100 i { width: 100%; }
.bar-92 i  { width: 92%; }
.bar-78 i  { width: 78%; }

.cta-center { justify-content: center; }
.stack { margin-top: 1em; }

/* A divider inside a band, for a section with two halves — the open slots above,
   the fitted hardware below. .kicker's own margin shorthand would otherwise zero
   the top, and 1em of a 10px label is not a divide. */
.sub-head {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(var(--glow), 0.14);
}

/* The plain-English tail on a module group's kicker label — "Optical — the imaging
   telescope". Reset off .kicker's uppercase/tracking, which reads fine on a two-word
   label and turns a sentence into something nobody can skim. */
.mod-group-note {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--n-500);
}

/* ── module cards ─────────────────────────────────────────────────────────── */
/*
 * The art is a photographic render on transparency, so it needs its own pool of
 * light to sit in — a flat card background makes it read as a cut-out sticker.
 * Hence the radial wash behind each one, tinted with the accent rather than a
 * neutral grey.
 */

.modules {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr));
}

.mod {
  display: flex;
  flex-direction: column;
  background: rgba(35, 37, 50, 0.55);
  border: 1px solid rgba(var(--glow), 0.18);
  border-radius: var(--radius-md);
  padding: 0 18px 18px;
  overflow: hidden;
}

.mod-art {
  margin: 0 -18px 14px;
  height: 148px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 70% at 50% 52%, rgba(var(--glow), 0.16), transparent 70%),
    rgba(13, 14, 24, 0.5);
  border-bottom: 1px solid rgba(var(--glow), 0.12);
}

.mod-art img {
  max-width: 82%;
  max-height: 118px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.mod-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mod-head h3 {
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  margin-right: auto;
}

.mod p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--n-500);
  margin: 0;
}

/*
 * Deliberately not neon: this marks something the player cannot have yet, and
 * making it glow like a feature would be advertising the roadmap as the product.
 */
/*
 * "Not in the shipping build yet." One dashed chip, used everywhere the site
 * describes something that cannot be built or played today — a v1.1 module, a
 * design rule whose mechanic arrives with the engagement screen, the supporter
 * purchase. Dashed rather than solid because every other chip on the page
 * (.chip, .pill) is a statement of fact about something that exists, and the
 * broken border is the one visual cue that separates the two without a colour.
 */
.mod-when, .soon {
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--n-500);
  border: 1px dashed rgba(var(--glow), 0.34);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  white-space: nowrap;
}

.mod-note {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--n-600);
  max-width: var(--measure);
}

.mod-note .mod-when { display: inline-block; vertical-align: baseline; }

/* Standalone chip, above a heading rather than inline in one. */
.soon {
  display: inline-block;
  margin-bottom: 10px;
}
.rule-card .soon,
.regime .soon { margin-bottom: 12px; }

/* ── platform plate ───────────────────────────────────────────────────────── */
/*
 * Same treatment as a module card's art well, widened: the render is on
 * transparency, so it needs its own pool of light or it reads as a cut-out
 * pasted onto the page.
 */

.platform-plate {
  margin: 0 0 18px;
  padding: clamp(14px, 3vw, 30px);
  border: 1px solid rgba(var(--glow), 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(58% 76% at 50% 46%, rgba(var(--glow), 0.15), transparent 72%),
    rgba(13, 14, 24, 0.55);
}

.platform-plate img {
  width: 100%;
  max-width: 620px;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.6));
}

.platform-plate figcaption {
  margin-top: clamp(10px, 2vw, 18px);
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--n-600);
  max-width: 52ch;
  margin-inline: auto;
}

/* ── screenshots ──────────────────────────────────────────────────────────── */
/*
 * Two treatments, and the difference is what each one is for.
 *
 * .device is the angled mockup that leads the band: one screen, large enough to
 * read, carrying its own glow in the alpha channel — so it gets no plate and no
 * border, and fades into the page the way the bus renders do. Give it a panel and
 * the glow would sit inside a box and stop being a glow.
 *
 * .shot is a flat capture with the app's own ground behind it, so it needs the
 * opposite: a hairline and a corner radius, because without them a dark rectangle
 * on a dark page has no edge. The rounding is here rather than baked into the WebP
 * so the site's chrome is one CSS edit and not a re-render of five images.
 */

.device-grid {
  display: grid;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
}

/*
 * Reading column left, device right — the same way round as the hero, so the two
 * halves of the page that pair prose with a picture agree with each other.
 *
 * Done with `order` rather than by swapping the source, because the two axes want
 * opposite things: side by side there is no reading sequence and the text should
 * lead, but stacked on a phone there is one, and four readout items ahead of the
 * picture would put a wall of prose between the band's lede and the thing it is
 * describing. So the mockup stays first in the source and moves right only once
 * there are two columns for it to move within. Nothing in here is focusable, so
 * the visual order and the tab order cannot disagree.
 */
@media (min-width: 900px) {
  .device-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .device-grid .device { order: 2; }
  .device-grid .readout { order: 1; }
}

.device { margin: 0; }

.device img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-inline: auto;
}

/* The readout beside it. Hairline-separated like .facts, but always stacked: it
   sits in a column about half the page wide and a 240px label gutter there leaves
   the sentence too narrow to read. */
.readout { display: grid; margin: 0; padding: 0; list-style: none; }

.readout li {
  padding: 14px 0;
  border-top: 1px solid rgba(var(--glow), 0.12);
}
.readout li:last-child { border-bottom: 1px solid rgba(var(--glow), 0.12); }

.readout h3 {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--a-300);
  margin-bottom: 5px;
}

.readout p { font-size: 0.875rem; line-height: 1.6; color: var(--n-500); margin: 0; }

/*
 * The strip of five. A snap-scrolling row on a phone rather than a stack: these
 * are portrait captures, and five of them stacked full-width is about four screens
 * of scrolling to look at five pictures. Above 1060px there is room for all five
 * at once and the scroller becomes an ordinary grid.
 */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(196px, 44vw, 300px);
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(28px, 4vw, 46px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--glow), 0.3) transparent;
  /* So a card's glow is not clipped by the scroll box, and the last one can be
     scrolled clear of the gutter. */
  padding: 2px 2px 14px;
}

@media (min-width: 1060px) {
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }
}

.shot {
  margin: 0;
  scroll-snap-align: start;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(var(--glow), 0.2);
  border-radius: var(--radius-lg);
  background: var(--ground);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.shot figcaption {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--n-600);
}

.shot figcaption b {
  display: block;
  font-weight: 500;
  color: var(--n-300);
  margin-bottom: 3px;
}

/* Press kit: the same strip, but every shot is a link to the full-resolution
   capture, so the caption carries the file rather than a sentence. */
/* The press kit's reading column is 800px, so five across there is five 120px
   thumbnails. Three, and the last row carries two. */
@media (min-width: 1060px) {
  .doc .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.shots-dl .shot a { display: block; text-decoration: none; }
.shots-dl .shot a:hover img { border-color: var(--neon); }
.shots-dl figcaption { font-family: var(--mono); font-size: 0.75rem; }

/* ── store badges ─────────────────────────────────────────────────────────── */
/*
 * The two-line store badge, in the site's own palette rather than either store's
 * black-and-white artwork. It was drawn here as a "coming soon" variant, which
 * neither store supplies.
 *
 * Both listings are live (App Store 2026-09-16, Google Play 2026-09-21), so both
 * badges are <a>s and they are the page's download buttons — there is no separate
 * primary App Store button beside them, which read as two ways to get one store.
 * Still the in-house drawings: both stores ask for their supplied badge artwork,
 * so swap it in when it is to hand.
 */

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px 9px 15px;
  /*
   * Inverted: a light face on a dark page. This is the other standard store-badge
   * form and it is the loudest thing the palette can say — the page is built out
   * of one dark violet-grey family, so a light fill is the only value that has no
   * neighbour to be confused with.
   *
   * Three earlier attempts, each a fill inside that family, and worth not
   * repeating. The ground colour made them holes punched in the page. The surface
   * mix .stat and .btn-ghost use lifted them off the band but not out of it — a
   * step of lightness inside one hue is not a boundary the eye finds at a glance.
   * A near-white hairline over a dark face was the first that read at all, and it
   * still asked the badge to compete on an outline a few pixels wide.
   *
   * The violet halo is not decoration. Every bright object on this page carries a
   * glow — .btn-primary's box-shadow, the wordmark's text-shadow, .stat b — so a
   * bright object without one would be the single element that does not belong to
   * Nocturne. It is what makes this a light badge in *this* product rather than a
   * white rectangle pasted onto it.
   *
   * The face is --n-100 rather than #fff, for the same reason: pure white is not
   * in the palette.
   */
  border: 1px solid var(--n-100);
  border-radius: 999px;
  background: var(--n-100);
  box-shadow: 0 0 26px rgba(var(--glow), 0.3), 0 8px 22px rgba(0, 0, 0, 0.5);
  /* The coming-soon badge is not a control, so it takes no cursor. */
  cursor: default;
  user-select: none;
}

/* A live listing's badge is a link: a pointer, no underline, and the page's own lift. */
a.store-badge {
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}
a.store-badge:hover,
a.store-badge:focus-visible {
  box-shadow: 0 0 34px rgba(var(--glow), 0.55), 0 8px 22px rgba(0, 0, 0, 0.5);
}

.store-badge svg {
  width: 25px;
  height: 25px;
  flex: none;
}

/* The Apple mark is one colour and inherits; the Play mark carries its own four. */
/* Dark ink on the light face, and the Play mark keeps its own four colours. */
.store-badge .mark-apple { color: var(--ground); }

.store-badge span {
  display: grid;
  line-height: 1.15;
}

.store-badge .soon-to {
  font-size: 0.5625rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--n-700);
}

.store-badge b {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ground);
}

/* In the hero the badges lead, straight under the stats, with HOW IT WORKS below. */
.stats + .store-row { margin-top: 30px; }
.store-row + .cta-row { margin-top: 18px; }

/* Centred under the closing claim, where the row has no left edge to hang off. */
.claim .store-row { justify-content: center; }

/* ── the unexplained band ─────────────────────────────────────────────────── */
/*
 * The landing page's second heading with a quiet half. The hero's rule is scoped to
 * .hero h1 because that is the only place it used to appear.
 */
h2 .quiet { color: var(--n-500); }

/*
 * Sighting photographs, cropped out of their sheets by make-images.py. They are the
 * app's own frames — black ground, grain, a dashed reticle — so they get the .shot
 * treatment (hairline, radius) and no plate: a lit well behind a night-time photo
 * would read as a second picture around it. Two across on a phone, four above
 * 900px, because at one across four near-identical black rectangles is a lot of
 * scrolling for the band's first impression.
 */
.evidence {
  display: grid;
  gap: clamp(12px, 2vw, 20px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .evidence { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.evidence-shot { margin: 0; }
.evidence-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(var(--glow), 0.2);
  border-radius: var(--radius-md);
  background: #000;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}
.evidence-shot figcaption,
.craft-plate figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--n-600);
}
.evidence-shot figcaption b,
.craft-plate figcaption b {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--n-300);
  margin-bottom: 3px;
}

/*
 * The TRB-01 beside what it is built from. Same arrangement as .device-grid and for
 * the same reason: the picture is first in the source so it leads on a phone, and
 * moves right only once there are two columns. Unlike the device mockup this is an
 * opaque hangar render, so it takes a hairline and a radius rather than a glow.
 */
.craft-grid {
  display: grid;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  margin-top: clamp(32px, 5vw, 56px);
}
@media (min-width: 900px) {
  .craft-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .craft-grid .craft-plate { order: 2; }
  .craft-grid .readout { order: 1; }
}
.craft-plate { margin: 0; }
.craft-plate img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(var(--glow), 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
