/* ============================================================
   XRV NETWORK - mission console design system
   Palette, type and components shared by every page.
   ============================================================ */

:root {
  /* Color ------------------------------------------------- */
  --void:        #04070E;   /* deep space ground */
  --hull:        #0B1120;   /* raised panel */
  --hull-2:      #0E1626;   /* panel top edge */
  --chrome:      #C9D6E8;   /* steel text / bevel highlight */
  --chrome-dim:  #7C8AA0;   /* secondary text */
  --arc:         #1E7BFF;   /* primary electric blue (from logo) */
  --ion:         #5FB2FF;   /* glow highlight */
  --signal:      #E8B33C;   /* LIVE / mission-critical only */
  --white:       #F2F6FC;

  --line:        rgba(201, 214, 232, 0.12);
  --line-soft:   rgba(201, 214, 232, 0.07);
  --arc-soft:    rgba(30, 123, 255, 0.14);

  /* Type -------------------------------------------------- */
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Space / shape ----------------------------------------- */
  --shell: 1200px;
  --gutter: 24px;
  --r: 4px;            /* instruments are square-ish, not pill */
  --nav-h: 64px;
}

/* Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

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

/* Ambient starfield sits behind everything ----------------- */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page { position: relative; z-index: 1; }

/* Shared layout -------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: 104px; position: relative; }
section.tight { padding-block: 72px; }

/* Typography ----------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--arc);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--white);
  text-transform: uppercase;
}

h1 { font-size: clamp(2.8rem, 8.5vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: 0.01em; }

/* Chrome bevel text - echoes the metallic logo rings */
.chrome-text {
  background: linear-gradient(176deg, #FFFFFF 4%, var(--chrome) 38%, #6F7F96 62%, #EAF1FB 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.arc-text {
  background: linear-gradient(176deg, var(--ion) 10%, var(--arc) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p { color: var(--chrome-dim); }
.lede { font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 60ch; }

.section-head { margin-bottom: 48px; display: grid; gap: 16px; }

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  min-height: 48px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: linear-gradient(180deg, var(--arc), #0B5BD3);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(95,178,255,.5) inset, 0 8px 30px rgba(30,123,255,.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(95,178,255,.8) inset, 0 12px 38px rgba(30,123,255,.45);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--chrome);
  background: rgba(201,214,232,.03);
}
.btn-ghost:hover {
  border-color: rgba(95,178,255,.55);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(4,7,14,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled { background: rgba(4,7,14,.95); border-bottom-color: var(--line); }

.nav .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.brand span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  position: relative;
  padding-block: 6px;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--arc);
  transition: width .28s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--white); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--chrome);
  position: relative; transition: background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--chrome);
  transition: transform .28s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   TELEMETRY TICKER
   ============================================================ */
.ticker {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(232,179,60,.07), rgba(4,7,14,0) 60%);
  overflow: hidden;
  position: relative;
  z-index: 50;
}
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding-block: 9px;
  animation: slide 38s linear infinite;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  white-space: nowrap;
}
.ticker-item b { color: var(--signal); font-weight: 600; }

.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(232,179,60,.7);
  animation: pulse 2s infinite;
  flex: none;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 7px rgba(232,179,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,179,60,0); }
}
@keyframes slide { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: 72px;
  overflow: hidden;
  /* clip, not just hidden: hidden boxes can still be scrolled by focus or
     scrollIntoView, which would shove the hero sideways when a satellite
     callout near the edge gets keyboard focus. */
  overflow: clip;
}
/* Ambient glow instead of artwork: the hero's job is to carry the headline
   and the mission clock, so the ground stays deep and quiet. */
.hero-art {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(ellipse 48% 52% at 22% 34%, rgba(30,123,255,.30), transparent 68%),
    radial-gradient(ellipse 40% 44% at 78% 18%, rgba(95,178,255,.16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 92%, rgba(11,17,32,.9), transparent 72%);
  filter: blur(26px);
  will-change: transform;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%);
}
.hero .shell { position: relative; z-index: 2; }

/* Subpage hero - same ground, less altitude */
.hero.hero-sm { min-height: 0; padding-block: 92px 64px; align-items: flex-start; }
.hero.hero-sm h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.hero.hero-sm .hero-inner { gap: 22px; }

.hero-inner { display: grid; gap: 30px; max-width: 760px; }
.hero h1 { margin-top: 6px; }
.hero .lede { font-size: clamp(1.02rem, 1.6vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }

/* ============================================================
   T-MINUS CONSOLE  (the signature element)
   ============================================================ */
.console {
  --bevel: linear-gradient(140deg, rgba(201,214,232,.5), rgba(201,214,232,.05) 38%, rgba(30,123,255,.35));
  position: relative;
  padding: 22px 24px 20px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background:
    linear-gradient(180deg, var(--hull-2), #070C16) padding-box,
    var(--bevel) border-box;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  max-width: 560px;
}
.console-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome-dim);
}
.console-live { display: flex; align-items: center; gap: 8px; color: var(--signal); }

.clock { display: flex; align-items: flex-end; gap: 10px; }
.clock-unit { display: grid; gap: 7px; justify-items: center; flex: 1; }
.clock-val {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(1.9rem, 5.2vw, 2.9rem);
  line-height: 1;
  color: var(--signal);
  width: 100%;
  text-align: center;
  padding: 10px 4px;
  border-radius: 3px;
  background: rgba(232,179,60,.06);
  border: 1px solid rgba(232,179,60,.18);
  transition: transform .18s ease;
}
.clock-val.tick { transform: translateY(-2px) scale(1.03); }
.clock-lbl {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome-dim);
}
.clock-sep {
  font-family: var(--mono);
  font-size: 1.6rem;
  color: rgba(201,214,232,.25);
  padding-bottom: 26px;
}

.console-bar { margin-top: 18px; display: grid; gap: 8px; }
.bar-track { height: 3px; background: rgba(201,214,232,.1); border-radius: 2px; overflow: hidden; }
.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--arc), var(--ion));
  box-shadow: 0 0 12px rgba(95,178,255,.7);
  transition: width 1.6s cubic-bezier(.2,.7,.3,1);
}
.bar-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--chrome-dim);
}

/* ============================================================
   MODULE CARDS (verticals)
   ============================================================ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.module {
  position: relative;
  padding: 30px 28px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background:
    linear-gradient(180deg, var(--hull-2), #070C16) padding-box,
    linear-gradient(150deg, rgba(201,214,232,.34), rgba(201,214,232,.04) 42%, rgba(30,123,255,.26)) border-box;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
  display: grid;
  gap: 14px;
  align-content: start;
}
/* edge light sweep on hover */
.module::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(95,178,255,.09), transparent);
  transition: left .7s ease;
  pointer-events: none;
}
.module:hover { transform: translateY(-5px); box-shadow: 0 22px 54px rgba(0,0,0,.6); }
.module:hover::after { left: 115%; }

.module-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--arc);
}
.module p { font-size: 0.94rem; }
.module-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  transition: gap .25s ease, color .25s ease;
}
.module-link:hover { gap: 14px; color: var(--ion); }

.module-media {
  margin: -30px -28px 4px;
  aspect-ratio: 16 / 10;
  background: #000 center/contain no-repeat;
  border-bottom: 1px solid var(--line-soft);
}
.status-chip {
  justify-self: start;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(232,179,60,.3);
  background: rgba(232,179,60,.08);
  color: var(--signal);
}
.status-chip.live { border-color: rgba(95,178,255,.35); background: rgba(30,123,255,.1); color: var(--ion); }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(14,22,38,.7), rgba(7,12,22,.7));
  overflow: hidden;
}
.stat { padding: 28px 24px; display: grid; gap: 6px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: none; }
.stat-val {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1;
  color: var(--white);
}
.stat-lbl {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chrome-dim);
}

/* ============================================================
   CAPABILITY LIST (Triax)
   ============================================================ */
.cap {
  display: grid;
  gap: 10px;
  padding: 26px 24px;
  border-top: 1px solid var(--line);
  transition: background .3s ease, padding-left .3s ease;
}
.cap:hover { background: rgba(30,123,255,.04); padding-left: 32px; }
.cap-id {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: var(--arc);
}
.cap h3 { font-size: 1.2rem; }
.cap p { font-size: 0.93rem; max-width: 70ch; }

/* ============================================================
   SPLIT (image + copy)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #000;
  overflow: hidden;
}
.split-media img { width: 100%; }

/* ============================================================
   CTA BAND
   ============================================================ */
.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(30,123,255,.16), transparent 70%),
    linear-gradient(180deg, rgba(11,17,32,.6), rgba(4,7,14,.6));
  text-align: center;
}
.band .shell { display: grid; gap: 22px; justify-items: center; }
.band h2 { max-width: 18ch; }

/* ============================================================
   FORM (contact)
   ============================================================ */
.form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chrome-dim);
}
.field input, .field textarea {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(201,214,232,.04);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 15px;
  transition: border-color .25s ease, background .25s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(95,178,255,.6);
  background: rgba(30,123,255,.06);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-family: var(--mono); font-size: 0.66rem; letter-spacing: .1em; color: var(--chrome-dim); }

/* ============================================================
   LEGAL (long-form text)
   ============================================================ */
.legal { max-width: 72ch; display: grid; gap: 14px; }
.legal h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-top: 26px;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--chrome-dim); font-size: 0.98rem; }
.legal ul { display: grid; gap: 10px; padding-left: 20px; }
.legal li::marker { color: var(--arc); }
.legal strong { color: var(--chrome); font-weight: 600; }
.legal a { color: var(--ion); text-decoration: underline; text-underline-offset: 3px; }

.form-privacy { font-size: 0.82rem; }
.form-privacy a { color: var(--ion); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 36px;
  background: linear-gradient(180deg, rgba(11,17,32,.4), transparent);
}
.footer-top {
  display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 32px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--chrome-dim);
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--ion); }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--chrome-dim);
  transition: all .25s ease;
}
.socials a:hover { color: var(--white); border-color: rgba(95,178,255,.5); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

.footer-base {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  border-top: 1px solid var(--line-soft); padding-top: 24px;
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: .1em; color: var(--chrome-dim);
}
.footer-tag { color: var(--chrome); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

/* Orchestrated hero load sequence */
.hero-inner > * { opacity: 0; transform: translateY(16px); animation: rise .8s cubic-bezier(.2,.7,.3,1) forwards; }
.hero-inner > *:nth-child(1) { animation-delay: .10s; }
.hero-inner > *:nth-child(2) { animation-delay: .20s; }
.hero-inner > *:nth-child(3) { animation-delay: .32s; }
.hero-inner > *:nth-child(4) { animation-delay: .46s; }
.hero-inner > *:nth-child(5) { animation-delay: .58s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============================================================
   THE XRV SYSTEM - interactive home hero
   ============================================================ */
.hero-home .shell { z-index: 2; pointer-events: none; }
.hero-home .hero-inner { pointer-events: auto; max-width: 600px; }
.hero-home h1 { font-size: clamp(2.8rem, 6.2vw, 5.4rem); }
.hero-home.is-pointing { cursor: pointer; }

.system {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.system-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
  /* Let the ion field dissolve before it reaches the copy. */
  -webkit-mask-image: linear-gradient(90deg, transparent 16%, #000 50%);
          mask-image: linear-gradient(90deg, transparent 16%, #000 50%);
}
.system.is-live .system-canvas { opacity: 1; }

/* Shown until WebGL is ready - and kept if it never is. */
.system-fallback {
  position: absolute;
  left: 70%;
  top: 50%;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .9s ease;
  animation: hover-float 9s ease-in-out infinite;
}
.system.is-live .system-fallback { opacity: 0; }
@keyframes hover-float {
  50% { transform: translate(-50%, calc(-50% - 10px)); }
}

/* Satellite callouts, positioned every frame by system.js */
.system-labels { position: absolute; inset: 0; pointer-events: none; }
.system:not(.is-live) .system-labels { display: none; }

.sat-label {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: auto;
  will-change: transform, opacity;
}
.sat-tag {
  position: absolute;
  top: -12px;
  left: 18px;
  display: grid;
  gap: 3px;
  /* Anchored inside a zero-width point, so size to content explicitly -
     otherwise it shrinks to min-content and clips the description. */
  width: max-content;
  padding: 5px 9px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.sat-tag::before {
  content: "";
  position: absolute;
  top: 11px;
  left: -12px;
  width: 9px;
  height: 1px;
  background: rgba(201, 214, 232, .45);
}
.sat-label.is-left .sat-tag { left: auto; right: 18px; text-align: right; }
.sat-label.is-left .sat-tag::before { left: auto; right: -12px; }

.sat-name {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chrome);
  text-shadow: 0 0 10px var(--void), 0 0 3px var(--void);
  transition: color .2s ease;
}
.sat-desc {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--ion);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease;
}
.sat-desc i { font-style: normal; }

.sat-label.is-active .sat-tag,
.sat-label:focus-visible .sat-tag {
  background: rgba(4, 7, 14, .86);
  border-color: rgba(95, 178, 255, .45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}
.sat-label.is-active .sat-name,
.sat-label:focus-visible .sat-name { color: var(--white); }
.sat-label.is-active .sat-desc,
.sat-label:focus-visible .sat-desc { max-height: 20px; opacity: 1; }
.sat-label:focus-visible { outline: none; }
.sat-label:focus-visible .sat-tag { outline: 2px solid var(--ion); outline-offset: 2px; }

.sat-label.is-ghost { pointer-events: none; }
.sat-label.is-ghost .sat-name { color: var(--chrome-dim); }
.sat-label.is-ghost .sat-desc { color: var(--chrome-dim); }

.system-hint {
  position: absolute;
  right: 32px;
  bottom: 56px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chrome-dim);
  opacity: 0;
  transition: opacity .8s ease;
}
.system.is-live .system-hint { opacity: .75; }
.system.is-live .system-hint.is-done { opacity: 0; }
.hint-touch { display: none; }
@media (hover: none) {
  .hint-fine { display: none; }
  .hint-touch { display: inline; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  /* The system stacks above the copy instead of beside it. */
  .hero-home { flex-direction: column; align-items: stretch; padding-top: 8px; }
  .system {
    position: relative;
    inset: auto;
    order: -1;
    height: min(104vw, 480px);
    margin-bottom: 12px;
  }
  .system-canvas { -webkit-mask-image: none; mask-image: none; }
  .system-fallback { left: 50%; width: min(64vw, 320px); }
  .system-hint { right: 50%; bottom: 0; transform: translateX(50%); white-space: nowrap; }
  .hero-home .hero-inner { max-width: none; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 760px) {
  section { padding-block: 72px; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(4,7,14,.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-120%);
    transition: transform .34s cubic-bezier(.2,.7,.3,1);
  }
  .nav-links.open { transform: none; }
  .nav-links a { width: 100%; padding-block: 14px; border-bottom: 1px solid var(--line-soft); font-size: 0.8rem; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .clock { gap: 6px; }
  .clock-sep { display: none; }
  .console { padding: 18px 16px 16px; }
  .module-media { margin: -30px -28px 4px; }
}

@media (max-width: 420px) {
  .clock-val { font-size: 1.5rem; padding: 8px 2px; }
  .clock-lbl { font-size: 0.5rem; letter-spacing: .12em; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-inner > * { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
