/*
 * 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;
}

.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; }

/* ── 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; }

/* ── 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.
 */
.mod-when {
  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; }
