/* =========================================================================
   NEO//OS — The Operator's Console · Jack Price portfolio
   Three-voice type system, telemetry-as-motion, mission-control dark.
   ========================================================================= */

:root {
  --bg: #070B0A;
  --surface: #0F1513;
  --surface-2: #161E1B;
  --text: #E9F1EC;
  --text-muted: #7C988B;
  --accent: #2EE6A6;
  --accent-ink: #052b1f;
  --accent-dim: color-mix(in srgb, var(--accent) 60%, var(--text-muted)); /* structural labels — keeps teal a reserved live-signal */
  --accent-2: #F77FB4; /* soft rose pink — the gentle second voice: interactive accents, "soon", the odometer */
  --accent-2-dim: color-mix(in srgb, var(--accent-2) 68%, var(--text-muted));
  --line: #1D2925;
  --line-soft: #131b18;

  --font-display: "Space Grotesk", "Space Grotesk Fallback", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1180px;
  --pad: clamp(1.15rem, 5vw, 4rem);
  --bar-top: 44px;
  --bar-bottom: 34px;
  --r: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-mech: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Metric-matched fallback for the display (LCP) face so the hero title does not
   reflow when Space Grotesk swaps in. Overrides tuned to Arial's box. */
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial");
  size-adjust: 96%;
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: auto; /* Lenis owns smooth scroll; native fallback if absent */
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.22vw, 1.16rem);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip;
  min-height: 100vh;
  padding-top: var(--bar-top);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

.mono { font-family: var(--font-mono); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- scrollbar ---------- */
@supports (scrollbar-color: red blue) {
  html { scrollbar-color: var(--line) var(--bg); scrollbar-width: thin; }
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed; top: 6px; left: 6px; z-index: 200;
  transform: translateY(-160%);
  background: var(--accent); color: var(--accent-ink);
  padding: 0.5rem 0.9rem; border-radius: 8px; font-weight: 600;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- shared dots / chips ---------- */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); vertical-align: middle; }
.dot--live { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dot--pulse { animation: dotpulse 2.4s ease-in-out infinite; }
@keyframes dotpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.chip {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.1em; padding: 0.2em 0.5em; border-radius: 5px;
  border: 1px solid var(--line); color: var(--text-muted); white-space: nowrap;
}
.chip--live { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.chip--soon { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 40%, transparent); background: color-mix(in srgb, var(--accent-2) 9%, transparent); }
.chip--mute { color: var(--text-muted); }

kbd {
  font-family: var(--font-mono); font-size: 0.78em; line-height: 1;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 5px; padding: 0.25em 0.45em; color: var(--text);
}

/* =========================================================================
   STATUS BARS
   ========================================================================= */
.statusbar {
  position: fixed; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.4rem);
  height: var(--bar-top); padding: 0 clamp(0.8rem, 3vw, 1.5rem);
  font-size: 0.72rem; color: var(--text-muted);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.statusbar--top { top: 0; }
.statusbar--bottom {
  bottom: 0; top: auto; height: var(--bar-bottom); z-index: 80;
  border-bottom: none; border-top: 1px solid var(--line-soft);
  font-size: 0.68rem; justify-content: flex-start;
}
.statusbar__seg { display: inline-flex; align-items: center; gap: 0.4em; white-space: nowrap; }
.statusbar__brand { color: var(--text); font-weight: 700; letter-spacing: 0.08em; }
.statusbar__v { color: var(--accent); font-size: 0.62rem; margin-left: 0.2em; }
.statusbar__nav { margin-left: auto; display: flex; gap: clamp(0.7rem, 2vw, 1.3rem); }
.statusbar__nav a { color: var(--text-muted); transition: color 0.2s; }
.statusbar__nav a:hover { color: var(--accent); }
.statusbar__k {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.25em;
  padding: 0.3em 0.5em; border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface); transition: border-color 0.2s, background 0.2s;
}
.statusbar__nav + .statusbar__k { margin-left: clamp(0.7rem, 2vw, 1.3rem); }
.statusbar__k:hover { border-color: var(--accent); }
.statusbar__online { margin-left: auto; color: var(--accent); }
.statusbar__scroll { color: var(--text); }
.statusbar__bottom-spacer { margin-left: auto; }

/* =========================================================================
   BOOT OVERLAY
   ========================================================================= */
.boot {
  position: fixed; inset: 0; z-index: 300;
  background: var(--bg);
  display: grid; place-items: center;
}
.boot[hidden] { display: none; }
.boot__inner { width: min(560px, 86vw); position: relative; }
.boot__log {
  font-size: clamp(0.78rem, 2.6vw, 0.95rem); line-height: 1.9;
  color: var(--accent); white-space: pre-wrap; min-height: 6em;
}
.boot__skip {
  position: absolute; right: 0; bottom: -2.4em;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 0.3em 0.6em;
}
.boot__skip:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: calc(100svh - var(--bar-top));
  display: flex; align-items: center;
  padding: clamp(2rem, 6vh, 5rem) var(--pad) clamp(5rem, 10vh, 7rem);
  overflow: clip;
}
.hero__field { position: absolute; inset: 0; z-index: 0; overflow: clip; }
.matrix-rain { position: absolute; inset: 0; }
.matrix-rain canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero__field::after {
  /* scrim: darken behind the (left-aligned) hero copy so matrix rain stays readable */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 58%, transparent) 44%, transparent 80%),
    linear-gradient(180deg, transparent 46%, var(--bg) 100%);
}
/* Share the exact left gutter as every .section below (was a narrower 920px rail). */
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; }

/* identity row: avatar + status eyebrow */
.hero__id { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: clamp(1.3rem, 4vh, 2rem); }
.avatar {
  position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--surface-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent), 0 0 22px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.avatar__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s var(--ease); }
.avatar.has-img .avatar__img { opacity: 1; }
.avatar.has-img .avatar__mono { opacity: 0; }
.avatar__mono { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--accent); letter-spacing: 0.02em; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em; flex-wrap: wrap;
  font-size: clamp(0.64rem, 2.2vw, 0.76rem); color: var(--text-muted);
  padding: 0.45em 0.85em; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.hero__online { color: var(--accent); }

/* socials — visible immediately under the hero CTAs */
.socials { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: clamp(1.4rem, 4vh, 2rem); font-size: 0.78rem; }
.socials a { display: inline-flex; align-items: center; gap: 0.5em; color: var(--text-muted); transition: color 0.2s, transform 0.2s var(--ease); }
.socials a:hover { color: var(--accent); }
.socials svg { color: var(--accent); flex: none; }
/* Flagship: SEOJACK proudly leads the row in brand green — the ★ ties to "the one I'd marry" */
.socials .socials__flagship a { color: var(--accent); font-weight: 600; letter-spacing: 0.04em; }
.socials .socials__flagship a:hover { color: var(--accent); filter: brightness(1.18); }
.socials__ext { opacity: 0.7; }

.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 7.4vw, 6.3rem); line-height: 0.99;
  letter-spacing: -0.025em; color: var(--text);
  text-wrap: balance;
}
.hero__mult { color: var(--text-muted); font-weight: 500; }
.odometer {
  display: inline-block; color: var(--text); /* the trailing "33" stays white */
  min-width: 2ch; text-align: left;
  font-variant-numeric: tabular-nums;
}
/* "coding" — a full-spectrum rainbow that fluidly morphs through the whole RGB
   wheel. A saturated rainbow gradient drifts across the word while a slow hue
   rotation cycles every hue, so it never settles on one colour. The two loops
   run at different (non-harmonic) speeds so the motion reads organic, not
   metronomic — a subtle, constant shimmer rather than a hard cycle. The brand
   green (#2EE6A6) sits at the centre stop as a nod to the design system.
   Falls back to solid warm gold if background-clip:text is unsupported. */
.hero__code { color: #FFB24B; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__code {
    color: transparent; -webkit-text-fill-color: transparent;
    background-image: linear-gradient(100deg,
      #ff5d5d 0%, #ff9e3d 13%, #ffe24b 26%, #5dff8b 40%, #2ee6a6 50%,
      #46c9ff 64%, #6f7dff 78%, #c46bff 90%, #ff5db0 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    animation: codingFlow 12s ease-in-out infinite alternate,
               codingHue 18s linear infinite;
    will-change: background-position, filter;
  }
}
/* spatial drift: the rainbow slides across the letters (alternate = seamless) */
@keyframes codingFlow {
  from { background-position:   0% 50%; }
  to   { background-position: 100% 50%; }
}
/* temporal morph: rotate the whole wheel 0→360° (0deg == 360deg, so it loops
   seamlessly); drop-shadow is placed first so the glow rainbows along too. */
@keyframes codingHue {
  from { filter: drop-shadow(0 0 18px rgba(255,120,120,0.40)) hue-rotate(0deg); }
  to   { filter: drop-shadow(0 0 20px rgba(255,120,120,0.40)) hue-rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__code { animation: none; background-position: 50% 50%; filter: drop-shadow(0 0 14px rgba(140,200,170,0.30)); }
}

/* only the "<3" reads pink — the little heart in the headline */
.hero__lt { color: var(--accent-2); text-shadow: 0 0 28px color-mix(in srgb, var(--accent-2) 55%, transparent); }
.hero__sub {
  margin-top: clamp(1.3rem, 4vh, 1.9rem); max-width: 56ch;
  color: var(--text-muted); font-size: clamp(1rem, 0.97rem + 0.4vw, 1.2rem);
}
/* occasional digital glitch on the subhead (JS toggles .is-glitching ~every 5–11s) */
.hero__sub.is-glitching { animation: subGlitch 0.52s steps(1, end) 1; }
@keyframes subGlitch {
  0%   { transform: translateX(0); text-shadow: none; clip-path: inset(0 0 0 0); }
  12%  { transform: translateX(-2px); text-shadow: 1.5px 0 var(--accent), -1.5px 0 #FF4D6D; }
  24%  { transform: translateX(2px) skewX(-0.8deg); text-shadow: -2px 0 var(--accent), 2px 0 #FF4D6D; clip-path: inset(16% 0 56% 0); }
  34%  { transform: translateX(-1px); text-shadow: 2px 0 var(--accent), -2px 0 #FF4D6D; clip-path: inset(0 0 0 0); }
  46%  { transform: translateX(1px) skewX(0.8deg); text-shadow: -1.5px 0 var(--accent), 1.5px 0 #FF4D6D; clip-path: inset(58% 0 12% 0); }
  58%  { transform: translateX(0); text-shadow: 1px 0 var(--accent), -1px 0 #FF4D6D; clip-path: inset(0 0 0 0); }
  70%  { transform: translateX(-1px); text-shadow: none; }
  100% { transform: translateX(0); text-shadow: none; clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) { .hero__sub.is-glitching { animation: none; } }
.hero__cta { margin-top: clamp(1.8rem, 5vh, 2.6rem); display: flex; flex-wrap: wrap; gap: 0.8rem; }

.kchip {
  position: absolute; right: clamp(1rem, 4vw, 2.4rem); bottom: clamp(5rem, 9vh, 6.5rem); z-index: 3;
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.72rem; color: var(--text-muted);
  padding: 0.55em 0.9em; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(8px); transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.kchip:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.kchip__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: dotpulse 2s ease-in-out infinite; }

/* =========================================================================
   HERO CONSTELLATION — interconnected favicon nodes of the prized work.
   Sits over the matrix rain on the right; desktop-only (the "Selected"
   strip below covers small screens). Container is click-through; only the
   nodes are interactive, so the rain glitch still tracks the cursor behind.
   ========================================================================= */
.constellation {
  position: absolute; z-index: 3; pointer-events: none;
  top: 50%; right: clamp(0.5rem, 2.5vw, 2.6rem); transform: translateY(-50%);
  width: clamp(330px, 34vw, 540px); aspect-ratio: 1 / 0.9;
  display: none; /* enabled on wide viewports only */
}
.constellation::before { /* soft well to lift the web off the rain */
  content: ""; position: absolute; inset: -6%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 74%, transparent), transparent 78%);
}
.constellation__inner { position: absolute; inset: 0; animation: cfloat 11s ease-in-out infinite; }
@keyframes cfloat { 0%, 100% { transform: translate3d(0, -5px, 0); } 50% { transform: translate3d(0, 7px, 0); } }
.constellation__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constellation__links line {
  stroke: color-mix(in srgb, var(--accent) 46%, transparent); stroke-width: 1;
  opacity: 0.5; transition: opacity 0.3s, stroke 0.3s;
}
.constellation:hover .constellation__links line { opacity: 0.78; }

.cnode {
  position: absolute; pointer-events: auto;
  width: clamp(54px, 6.4vw, 84px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transition: filter 0.25s var(--ease);
}
.cnode--hub { width: clamp(70px, 8vw, 104px); z-index: 2; }
.cnode__disc {
  display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  border-radius: 50%; background: color-mix(in srgb, var(--surface) 86%, #000);
  border: 1.5px solid color-mix(in srgb, var(--ring) 55%, var(--line));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--bg) 70%, transparent),
              0 0 22px -6px color-mix(in srgb, var(--ring) 70%, transparent);
  transition: border-color 0.25s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.cnode__disc img { display: block; }
.cnode--cover .cnode__disc img { width: 100%; height: 100%; object-fit: cover; }
.cnode--pad .cnode__disc img { width: 62%; height: 62%; object-fit: contain; }
.cnode__label {
  position: absolute; left: 50%; top: calc(100% + 7px); transform: translateX(-50%);
  white-space: nowrap; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); background: color-mix(in srgb, var(--bg) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--ring) 40%, var(--line)); border-radius: 6px;
  padding: 0.25em 0.55em; opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.cnode:hover, .cnode:focus-visible { filter: brightness(1.06); outline: none; }
.cnode:hover .cnode__disc, .cnode:focus-visible .cnode__disc {
  transform: scale(1.12);
  border-color: var(--ring);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--bg) 60%, transparent),
              0 0 30px -2px color-mix(in srgb, var(--ring) 85%, transparent);
}
.cnode:hover .cnode__label, .cnode:focus-visible .cnode__label { opacity: 1; }
@media (min-width: 1080px) { .constellation { display: block; } }
@media (prefers-reduced-motion: reduce) { .constellation__inner { animation: none; } }

/* =========================================================================
   SELECTED STRIP — the prized ponies as favicon "beads on a thread".
   ========================================================================= */
.selected__star { color: var(--accent); }
.orbits {
  position: relative; margin-top: clamp(1.6rem, 4vh, 2.6rem);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: clamp(1.2rem, 3vw, 2rem) 0.6rem;
}
.orbits::before { /* the thread the beads sit on */
  content: ""; position: absolute; left: 6%; right: 6%; top: 39px; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 32%, transparent) 18% 82%, transparent);
  z-index: 0;
}
.orb {
  position: relative; z-index: 1;
  flex: 1 1 0; min-width: 132px; max-width: 188px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem;
}
.orb__disc {
  display: grid; place-items: center; width: 78px; height: 78px; overflow: hidden;
  border-radius: 50%; background: color-mix(in srgb, var(--surface) 92%, #000);
  border: 1.5px solid color-mix(in srgb, var(--ring) 50%, var(--line));
  box-shadow: 0 0 26px -10px color-mix(in srgb, var(--ring) 70%, transparent);
  transition: transform 0.3s var(--ease), border-color 0.25s, box-shadow 0.3s;
}
.orb__disc img { display: block; }
.orb--cover .orb__disc img { width: 100%; height: 100%; object-fit: cover; }
.orb--pad .orb__disc img { width: 60%; height: 60%; object-fit: contain; }
.orb__name { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--text); line-height: 1.2; }
.orb__host { font-size: 0.66rem; color: var(--text-muted); letter-spacing: 0.02em; }
.orb:hover .orb__disc, .orb:focus-visible .orb__disc {
  transform: translateY(-5px) scale(1.06); border-color: var(--ring);
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--ring) 85%, transparent);
}
.orb:hover .orb__host, .orb:focus-visible .orb__host { color: color-mix(in srgb, var(--ring) 70%, var(--text)); }
@media (max-width: 860px) { .orbits::before { display: none; } }
@media (max-width: 560px) { .orb { flex-basis: 40%; min-width: 40%; } }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.03em;
  padding: 0.85em 1.3em; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
  color: var(--text);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn--primary:hover { border-color: var(--accent); box-shadow: 0 8px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { font-size: 0.92rem; padding: 1.05em 1.6em; }
.btn kbd { background: color-mix(in srgb, var(--bg) 50%, transparent); }

/* =========================================================================
   SECTIONS (general)
   ========================================================================= */
.section {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4.5rem, 12vh, 9rem) var(--pad);
}
.section__head { max-width: 760px; margin-bottom: clamp(2.2rem, 5vh, 3.4rem); }
.section__index { color: var(--accent-dim); font-size: 0.72rem; letter-spacing: 0.18em; margin-bottom: 1rem; }
/* duotone: alternate the section numbers green / magenta down the page */
main > section:nth-of-type(even) .section__index { color: var(--accent-2-dim); }
.section__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 4.6vw, 3.3rem); line-height: 1.04; letter-spacing: -0.02em;
  text-wrap: balance;
}
.section__lead { margin-top: 1rem; color: var(--text-muted); max-width: 60ch; }
.section__lead .mono { color: var(--accent); font-size: 0.85em; }

/* =========================================================================
   01 · OPERATOR / MANIFESTO
   ========================================================================= */
.operator { border-top: 1px solid var(--line-soft); }
.manifesto {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.manifesto .reveal-line { display: block; }
.manifesto em { font-style: normal; color: var(--accent); }
.manifesto__dim { color: var(--text-muted); }
/* typewriter */
.tw-char { opacity: 0; transition: opacity 0.05s linear; }
.manifesto__cursor {
  display: inline-block; width: 0.09em; height: 0.8em; vertical-align: -0.05em;
  margin-left: 0.04em; border-radius: 1px; background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent);
  animation: tw-blink 1.05s steps(1) infinite;
}
@keyframes tw-blink { 50% { opacity: 0; } }
.manifesto__cursor.is-done { animation: none; opacity: 0; transition: opacity 0.5s ease; }
@media (prefers-reduced-motion: reduce) { .tw-char { opacity: 1 !important; } .manifesto__cursor { display: none; } }
.operator__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.operator__lead { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); max-width: 48ch; }
.caps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.caps li {
  display: grid; grid-template-columns: minmax(8.5rem, 12rem) 1fr; gap: 1rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.caps__k { color: var(--accent-dim); font-size: 0.74rem; letter-spacing: 0.06em; }
.caps__v { color: var(--text-muted); font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0; }

/* =========================================================================
   DECK / CARDS
   ========================================================================= */
.deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 2vw, 1.4rem); }
.deck--two { grid-template-columns: repeat(2, 1fr); }
.card {
  --cp: clamp(1.2rem, 2.4vw, 1.7rem);
  position: relative; overflow: clip;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--cp);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* "complete" flagship card — full-width top banner + a quiet teal highlight */
.card--banner {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent), 0 24px 60px -34px color-mix(in srgb, var(--accent) 50%, #000);
}
.card__banner {
  display: block; text-align: center;
  margin: calc(-1 * var(--cp)) calc(-1 * var(--cp)) var(--cp);
  padding: 0.55em 1em;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.24em;
  position: relative; z-index: 2;
}
.card:hover, .card:focus-within {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--accent) 45%, #000);
}
.card--wide { grid-column: span 2; }
.card__top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.card__top .chip { margin-left: auto; }
.card__media {
  width: 40px; height: 40px; border-radius: 9px; overflow: hidden; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--surface-2), #0b110f); border: 1px solid var(--line);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--ph span { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--accent); opacity: 0.85; }
.card__idx { color: var(--text-muted); font-size: 0.72rem; }
.card__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: -0.01em; }
.card__tag { color: var(--accent); font-size: 0.92rem; margin-top: 0.35rem; }
.card__desc { color: var(--text-muted); font-size: 0.92rem; margin-top: 0.8rem; }
.card__stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.card__stack li { font-size: 0.66rem; color: var(--text-muted); border: 1px solid var(--line); border-radius: 6px; padding: 0.22em 0.5em; }
.card__foot { margin-top: auto; padding-top: 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; font-size: 0.7rem; }
.card__cat { color: var(--text-muted); }
.card__link { color: var(--accent); display: inline-flex; align-items: center; gap: 0.3em; transition: gap 0.2s; }
.card__link:hover { gap: 0.55em; }
.card__link--dead { color: var(--text-muted); }
.card__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transform: translateY(0);
}

/* =========================================================================
   03 · INDEX / LEDGER
   ========================================================================= */
.index__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.filter {
  font-size: 0.7rem; letter-spacing: 0.08em; color: var(--text-muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.45em 0.9em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filter:hover { color: var(--text); border-color: var(--text-muted); }
.filter.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 700; }
.index__counter { color: var(--text-muted); font-size: 0.74rem; }

/* ---- timeline (chronological build log) ---- */
.timeline {
  --tl-gap: clamp(1.2rem, 3.5vw, 2.2rem);
  position: relative; margin-left: 0.5rem; padding-left: var(--tl-gap);
  border-left: 1px solid var(--line);
}
.tl-year { position: relative; padding: 1.7rem 0 0.6rem; }
.tl-year__label { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--accent-dim); letter-spacing: 0.02em; }
.tl-year__node {
  position: absolute; left: calc(-1 * var(--tl-gap)); top: 2rem; transform: translateX(-50%);
  width: 13px; height: 13px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent), 0 0 0 4px var(--bg);
}

.tl-row { position: relative; border-bottom: 1px solid var(--line); }
.tl-row[hidden] { display: none; }
.tl-row__head {
  display: grid; align-items: center; gap: clamp(0.6rem, 1.6vw, 1rem);
  grid-template-columns: 4rem 3rem minmax(0, 1fr) auto 1.1rem;
  padding: 1rem 0.2rem; cursor: pointer; list-style: none;
  transition: padding-left 0.25s var(--ease), background 0.25s;
}
.tl-row__head::-webkit-details-marker { display: none; }
.tl-row__head:hover { padding-left: 0.6rem; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 55%); }
.tl-row__node {
  position: absolute; left: calc(-1 * var(--tl-gap)); top: 1.7rem; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2);
  border: 1.5px solid var(--accent); transition: box-shadow 0.25s, background 0.25s;
}
.tl-row[data-status="soon"] .tl-row__node, .tl-row[data-status="rnd"] .tl-row__node { border-color: var(--accent-2); }
.tl-row[data-status="archived"] .tl-row__node, .tl-row[data-status="parked"] .tl-row__node, .tl-row[data-status="personal"] .tl-row__node { border-color: var(--text-muted); }
.tl-row__head:hover .tl-row__node { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.tl-row__date { font-family: var(--font-mono); color: var(--accent-dim); font-size: 0.72rem; letter-spacing: 0.04em; white-space: nowrap; }
.tl-row__media {
  width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--surface-2), #0b110f);
  border: 1px solid var(--line);
}
.tl-row__media img { width: 100%; height: 100%; object-fit: cover; }
.tl-row__media--ph span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--accent); opacity: 0.85;
}
.tl-row__main { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.tl-row__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 2.4vw, 1.45rem); letter-spacing: -0.01em; overflow-wrap: break-word; }
.tl-row__cat { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.64rem; letter-spacing: 0.08em; }
.tl-row__exp { font-family: var(--font-mono); color: var(--accent); text-align: center; transition: transform 0.3s var(--ease); }
.tl-row[open] .tl-row__exp { transform: rotate(45deg); }
.tl-row[open] .tl-row__node { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.tl-row__panel { overflow: hidden; padding: 0 0.2rem 1.5rem 0; }
.tl-row__pitch { color: var(--text); max-width: 68ch; margin-bottom: 1rem; }
.tl-row__pitch b { color: var(--accent); font-weight: 500; }
.tl-row__spec { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.tl-row__spec > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; font-size: 0.78rem; }
.tl-row__spec dt { color: var(--accent-dim); }
.tl-row__spec dd { color: var(--text-muted); }
.tl-row__link {
  display: inline-flex; align-items: center; gap: 0.5em; color: var(--accent); font-size: 0.78rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 8px;
  padding: 0.55em 0.95em; transition: background 0.2s, gap 0.2s;
}
.tl-row__link:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); gap: 0.8em; }
.tl-row__forge { color: var(--accent-2); font-size: 0.72rem; display: inline-flex; align-items: center; gap: 0.5em; }
.timeline__foot { margin-top: 1.6rem; padding-left: 0.5rem; color: var(--text-muted); font-size: 0.78rem; }
.timeline__foot b { color: var(--accent-2); font-weight: 500; }

/* ---- the stack (favourite tools / tech) ---- */
.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: clamp(1.2rem, 2.5vw, 2.2rem) clamp(1.5rem, 3vw, 3rem); }
.stack__group { border-top: 1px solid var(--line); padding-top: 1rem; }
.stack__cat { color: var(--accent-dim); font-size: 0.7rem; letter-spacing: 0.16em; margin-bottom: 1.1rem; }
.stack__list { display: grid; gap: 0.9rem; }
.stack__item { display: grid; grid-template-columns: 34px 1fr; gap: 0.75rem; align-items: start; color: inherit; text-decoration: none; }
.stack__icon {
  position: relative; width: 34px; height: 34px; border-radius: 9px; flex: none; overflow: hidden;
  display: grid; place-items: center;
  background: #eef2ef; border: 1px solid #cdd8d2;  /* light chip so real brand colours stay visible */
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.stack__ic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7px; transition: opacity 0.25s var(--ease); }
.stack__ic--teal { opacity: 0; }
.stack__icon--mono { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: #0b110f; transition: color 0.25s var(--ease); }
/* hover/focus → the whole chip flips to teal-on-dark */
.stack__item:hover .stack__icon, .stack__item:focus-visible .stack__icon {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-2));
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 0 16px -6px color-mix(in srgb, var(--accent) 60%, transparent);
}
.stack__item:hover .stack__ic--brand, .stack__item:focus-visible .stack__ic--brand { opacity: 0; }
.stack__item:hover .stack__ic--teal, .stack__item:focus-visible .stack__ic--teal { opacity: 1; }
.stack__item:hover .stack__icon--mono, .stack__item:focus-visible .stack__icon--mono { color: var(--accent); }
.stack__item:hover .stack__name, .stack__item:focus-visible .stack__name { color: var(--accent); }
.stack__ext { color: var(--accent); opacity: 0; font-size: 0.72em; transition: opacity 0.2s; }
.stack__item:hover .stack__ext, .stack__item:focus-visible .stack__ext { opacity: 0.8; }
.stack__body { min-width: 0; display: grid; gap: 0.12rem; }
.stack__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text); display: inline-flex; align-items: baseline; gap: 0.45em; transition: color 0.2s var(--ease); }
.stack__star { color: var(--accent); font-size: 0.7em; text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); }
.stack__take { color: var(--text-muted); font-size: 0.82rem; line-height: 1.45; }

/* =========================================================================
   04 · SUBSYSTEMS / PIPELINE
   ========================================================================= */
.pipeline {
  position: relative; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  padding: 1.1rem 1.2rem; margin-bottom: clamp(1.6rem, 4vh, 2.6rem);
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); overflow: hidden;
}
.pipeline__stage { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--text-muted); }
.pipeline__edge { flex: 1; min-width: 1.4rem; height: 1px; background: var(--line); position: relative; }
.pipeline__packet {
  position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}

/* =========================================================================
   06 · TERMINAL PANEL
   ========================================================================= */
.section--infra { }
.termpanel { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); max-width: 760px; }
.termpanel__bar { display: flex; align-items: center; gap: 0.5em; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: 0.72rem; background: var(--surface-2); }
.termpanel__log { padding: 1.2rem 1.1rem; font-size: 0.8rem; line-height: 1.9; color: var(--accent); white-space: pre-wrap; min-height: 9.5em; }
.termpanel__log .t-mute { color: var(--text-muted); }
.termpanel__log .t-amber { color: var(--accent-2); }

/* =========================================================================
   07 · MISSION
   ========================================================================= */
.mission { border-top: 1px solid var(--line-soft); }
.mission__grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.mission__portrait { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.6rem; }
.mission__portrait img {
  width: 64px; height: 64px; border-radius: 14px; object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 0 24px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}
.mission__portrait figcaption { color: var(--text-muted); font-size: 0.7rem; letter-spacing: 0.1em; }
.mission__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 1.6rem; }
.mission__body p { color: var(--text-muted); max-width: 52ch; margin-bottom: 1rem; }
.mission__body p:first-child { color: var(--text); }
.mission__route { display: grid; place-items: center; }
.mission__route svg { width: 100%; max-width: 320px; height: auto; }
#route-path { stroke-dasharray: 4 7; }
.route-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; fill: var(--text); }
.route-coord { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.05em; fill: var(--text-muted); }
.route-ping { fill: none; stroke: var(--accent); stroke-width: 1; transform-origin: 70px 60px; animation: ping 2.6s ease-out infinite; }
.route-ping--2 { stroke: var(--accent-2); transform-origin: 240px 360px; animation-delay: 1.3s; }
@keyframes ping { 0% { opacity: 0.8; r: 6px; } 100% { opacity: 0; r: 16px; } }

/* =========================================================================
   08 · STATS
   ========================================================================= */
.stats { border-top: 1px solid var(--line-soft); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.8rem, 2vw, 1.4rem); }
.stat { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 2rem); background: var(--surface); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat__num .stat__suffix { color: var(--text); font-size: 0.42em; vertical-align: baseline; margin-left: 0.1em; }
.stat__label { margin-top: 0.9rem; color: var(--text-muted); font-size: 0.85rem; }

/* =========================================================================
   09 · COMMS
   ========================================================================= */
.comms { text-align: center; border-top: 1px solid var(--line-soft); }
.comms__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 8vw, 5.5rem); letter-spacing: -0.03em; line-height: 1; }
.comms__lead { margin: 1.3rem auto 0; max-width: 46ch; color: var(--text-muted); }
.comms__handshake { margin-top: 1.4rem; color: var(--accent); font-size: 0.78rem; min-height: 1.2em; }
.comms__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { border-top: 1px solid var(--line); padding: clamp(2.5rem, 6vh, 4rem) var(--pad) calc(var(--bar-bottom) + 2.5rem); max-width: var(--maxw); margin: 0 auto; color: var(--text-muted); }
.footer__ascii { color: var(--accent); font-size: clamp(0.5rem, 1.7vw, 0.72rem); line-height: 1.3; overflow-x: auto; margin-bottom: 2rem; opacity: 0.85; }
.footer__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-soft); }
.footer__lbl { color: var(--accent-dim); font-size: 0.66rem; letter-spacing: 0.14em; margin-bottom: 0.7rem; }
.footer__col a, .footer__col p { display: block; font-size: 0.8rem; line-height: 1.9; }
.footer__col a:hover { color: var(--accent); }
.footer__flex { color: var(--accent-2); }
.footer__eof { margin-top: 1.5rem; font-size: 0.72rem; }

/* =========================================================================
   ⌘K COMMAND PALETTE
   ========================================================================= */
.palette { position: fixed; inset: 0; z-index: 250; display: grid; align-items: start; justify-items: center; padding-top: clamp(4rem, 14vh, 9rem); }
.palette[hidden] { display: none; }
.palette__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.palette__panel {
  position: relative; width: min(620px, 92vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 40px 90px -30px #000, 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent);
  overflow: hidden;
}
.palette__inputrow { display: flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--line); }
.palette__prompt { color: var(--accent); font-size: 1.1rem; }
.palette__input { flex: 1; background: none; border: none; color: var(--text); font-family: var(--font-mono); font-size: 0.95rem; outline: none; min-width: 0; }
.palette__input::placeholder { color: var(--text-muted); }
.palette__esc { color: var(--text-muted); }
.palette__list { max-height: min(48vh, 420px); overflow-y: auto; padding: 0.5rem; }
.palette__opt {
  display: grid; grid-template-columns: 3.4rem 1fr auto; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0.8rem; border-radius: 9px; cursor: pointer;
}
.palette__opt[aria-selected="true"], .palette__opt:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.palette__opt-idx { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.palette__opt-name { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.palette__opt-cat { font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-muted); }
.palette__opt[aria-selected="true"] .palette__opt-idx { color: var(--accent); }
.palette__status:empty { display: none; }
.palette__status { border-top: 1px solid var(--line); }
.palette__empty { padding: 1.4rem 0.9rem; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.82rem; }
.palette__empty code { color: var(--accent); }
.palette__response { padding: 1rem 0.9rem; color: var(--accent); font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.7; white-space: pre-wrap; }
.palette__foot { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; padding: 0.75rem 1.1rem; border-top: 1px solid var(--line); font-size: 0.68rem; color: var(--text-muted); }
.palette__foot code { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 0.1em 0.4em; border-radius: 4px; }
.palette__hint { margin-left: auto; }

/* =========================================================================
   CUSTOM CURSOR
   ========================================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
  width: 26px; height: 26px; border: 1px solid var(--accent); border-radius: 50%;
  transform: translate(-50%, -50%); opacity: 0;
  transition: width 0.2s var(--ease), height 0.2s var(--ease), opacity 0.25s, background 0.2s, border-color 0.2s;
  mix-blend-mode: difference;
}
.cursor.is-on { opacity: 1; }
.cursor.is-active { width: 46px; height: 46px; background: color-mix(in srgb, var(--accent) 18%, transparent); }

/* =========================================================================
   SCROLL-REVEAL helper (JS adds .reveal then GSAP animates; CSS only sets
   a gentle default so no-JS / failed-CDN still shows everything)
   ========================================================================= */
.reveal { /* styled by GSAP at runtime; nothing hidden by default */ }

/* =========================================================================
   DUOTONE — magenta is the interactive / "hot" voice (green stays the brand)
   ========================================================================= */
.statusbar__nav a:hover,
.socials a:hover,
.footer__col a:hover,
.card__link:hover { color: var(--accent-2); }
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.tl-row__link:hover {
  color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent-2) 45%, transparent);
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
}
.kchip:hover { border-color: var(--accent-2); }

/* ⌘K-jump hit flash on the targeted row/card */
.is-hit { position: relative; }
.is-hit::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid var(--accent); border-radius: inherit;
  box-shadow: inset 0 0 24px -6px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: hitflash 0.95s var(--ease) forwards;
}
@keyframes hitflash { 0% { opacity: 0.95; } 100% { opacity: 0; } }

.route-comet { filter: drop-shadow(0 0 5px var(--accent)); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .operator__grid { grid-template-columns: 1fr; }
  .deck { grid-template-columns: repeat(2, 1fr); }
  .mission__grid { grid-template-columns: 1fr; }
  .mission__route { order: -1; }
  .mission__route svg { max-width: 260px; }
}
@media (max-width: 760px) {
  .statusbar__hide-sm { display: none; }
  .deck, .deck--two { grid-template-columns: 1fr; }
  .card--wide { grid-column: span 1; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__row { grid-template-columns: 1fr; gap: 1.4rem; }
  /* timeline → two rows: date on top, then media · name · status */
  .tl-row__head {
    grid-template-columns: 2.8rem minmax(0, 1fr) auto 1rem;
    grid-template-areas: "date date date date" "media main chip exp";
    gap: 0.4rem 0.6rem;
  }
  .tl-row__date { grid-area: date; }
  .tl-row__media { grid-area: media; width: 40px; height: 40px; }
  .tl-row__main { grid-area: main; }
  .tl-row__head > .chip { grid-area: chip; }
  .tl-row__exp { grid-area: exp; }
  .statusbar--bottom .statusbar__seg.statusbar__hide-sm { display: none; }
}
@media (max-width: 560px) {
  .statusbar__hide-md { display: none; }
  .hero__cta .btn, .comms__cta .btn { width: 100%; justify-content: center; }
  /* The hero CTA already exposes an "Open ⌘K" control — drop the floating chip
     so it can't collide with the now-full-width stacked buttons. */
  .kchip { display: none; }
  .hero__eyebrow { border-radius: 14px; line-height: 1.35; } /* multi-line pill shouldn't read as a ragged stadium */
}

/* Pointer: coarse → no custom cursor, and real 44px touch targets for filters */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
  .filter { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 1.1em; }
  .filters { gap: 0.6rem; }
}

/* =========================================================================
   REDUCED MOTION — first-class static path
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .dot--pulse, .kchip__pulse, .route-ping { animation: none !important; }
  .pipeline__packet { display: none; }
}
