/* ORBIS product site.
 *
 * CON-01 applies here too: no CDN, no external font host, no runtime fetch. Everything below is
 * self-contained, which is why the type stack is system fonts rather than a webfont — a marketing
 * page that cannot be served inside the air gap is a marketing page that contradicts the product.
 *
 * The palette is committed dark. This is a deliberate single look rather than a theme-switching
 * page: the operator client it fronts is dark, and a site that renders light while the product
 * renders dark reads as two different products.
 */

/* ── Typeface ────────────────────────────────────────────────────────────
 *
 * The SAME two faces the Deck bundles, vendored here rather than fetched: Inter for UI text and
 * JetBrains Mono for anything an operator reads as a value. CON-01 is why they are files in
 * `site/fonts/` and not a Google Fonts link — a marketing page that cannot be served inside the
 * air gap contradicts the product it is selling.
 *
 * They matter beyond taste. A site set in the host's default UI font and a client set in Inter
 * read as two different products, and the ORBAT builder sits between the two.
 *
 * Variable weight axis, latin subset, `swap` so text is never invisible while the file loads.
 * Licences: SIL OFL 1.1, both — see `site/fonts/`.
 */
@font-face {
  font-family: "Inter Var";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono Var";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0e14;
  --bg-raised: #10161f;
  --bg-inset: #0d131b;
  --line: #1d2733;
  --line-bright: #2a3746;

  --text: #e3e9f0;
  --text-dim: #9aa8ba;
  --text-faint: #64748b;

  --accent: #4da3ff;
  --accent-dim: #1e5a9e;

  /* The logo's own gradient, promoted to the site's one source of brightness. Every glow, rule and
     numeral that reads as "energy" on this page comes from these two stops — so the page and the
     emblem are lit by the same light instead of coexisting. */
  --blue: #008deb;
  --cyan: #65d7ff;
  --grad: linear-gradient(115deg, var(--blue) 0%, var(--cyan) 100%);
  --grad-btn: linear-gradient(115deg, #1a9df5 0%, #7ce0ff 100%);
  --grad-text: linear-gradient(100deg, #3aa9f7 0%, #93e6ff 100%);
  --grad-soft: linear-gradient(115deg, rgba(0, 141, 235, 0.16), rgba(101, 215, 255, 0.06));
  --amber: #e0a458;
  --green: #4ea87b;
  --red: #d9636b;

  --mono: "JetBrains Mono Var", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter Var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* One easing everywhere. Mixed curves are the commonest reason a page with plenty of animation
     still feels unconsidered — each element arrives with a different personality. */
  --ease: cubic-bezier(0.16, 0.84, 0.3, 1);
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
section + section { border-top: 1px solid var(--line); }

.prose { max-width: var(--measure); }

/* ── Type ───────────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; color: var(--text-dim); }
p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text); line-height: 1.55; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7dbcff; }

strong { color: var(--text); font-weight: 600; }
code, .mono { font-family: var(--mono); font-size: 0.87em; }
code { color: var(--accent); background: var(--bg-inset); padding: 0.1em 0.4em; border-radius: 3px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.2rem;
  display: block;
}

.section-head { margin-bottom: 2.75rem; }

/* ── Nav ────────────────────────────────────────────────────────────────── */

header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.02rem;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand svg { display: block; }

/* The emblem, paired with live text rather than a baked wordmark — see site/logo/orbis-mark.svg.
   Sized in ems so the mark tracks the wordmark's size instead of being pinned to a pixel value
   that goes wrong the first time the nav type changes. */
.brand-mark {
  display: block;
  width: 1.55em;
  height: 1.55em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

@media (max-width: 720px) {
  .nav-links { gap: 1rem; font-size: 0.85rem; }
  .nav-links .hide-sm { display: none; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.35rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
  min-height: 44px;          /* touch target */
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #04080d;
  font-weight: 600;
}
.btn-primary:hover { background: #6fb5ff; color: #04080d; }

.btn-ghost {
  border-color: var(--line-bright);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: #3d5064; background: var(--bg-raised); color: var(--text); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* Faint grid — a plan-position reference, not decoration for its own sake. */
.hero::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto -10%;
  height: 180%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, #000 0%, transparent 75%);
  pointer-events: none;
}
/* The hero's emblem is drawn live in the markup (`.hero-rings`) rather than pulled in as a
   background image here, because it turns. See the AESTHETIC LAYER below. */

.hero > * { position: relative; }

.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 56ch; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-raised);
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  padding: 0.32rem 0.8rem 0.32rem 0.6rem;
  margin-bottom: 1.75rem;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(78, 168, 123, 0.16);
  flex-shrink: 0;
}

/* ── Metric strip ───────────────────────────────────────────────────────── */

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 3.5rem;
}
.metric { background: var(--bg-raised); padding: 1.35rem 1.5rem; }
.metric dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.metric dd {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.metric dd small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--text-dim); letter-spacing: 0; margin-top: 0.2rem; }

/* ── Cards ──────────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  align-items: start;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 1.6rem;
}
.card h3 { margin-bottom: 0.55rem; color: var(--text); }
.card p { margin-bottom: 0; font-size: 0.95rem; }
.card p + p { margin-top: 0.8rem; }

.card-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.9rem;
}

/* ── Tables ─────────────────────────────────────────────────────────────── */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-raised);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 620px;
}
th, td {
  text-align: left;
  padding: 0.78rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  background: var(--bg-inset);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(77, 163, 255, 0.03); }
td:first-child { color: var(--text); }

.col-narrow { width: 1%; white-space: nowrap; text-align: center; }

/* Status marks. Never colour alone — each carries a glyph and a title. */
.mark { font-family: var(--mono); font-weight: 600; font-size: 1rem; }
.mark-yes { color: var(--green); }
.mark-part { color: var(--amber); }
.mark-no { color: var(--red); }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.16rem 0.5rem;
  border-radius: 3px;
  border: 1px solid var(--line-bright);
  color: var(--text-dim);
  white-space: nowrap;
}
.tag-built { border-color: rgba(78, 168, 123, 0.4); color: var(--green); }
.tag-next { border-color: rgba(224, 164, 88, 0.4); color: var(--amber); }

/* ── Callout ────────────────────────────────────────────────────────────── */

.note {
  border-left: 2px solid var(--accent-dim);
  background: var(--bg-inset);
  padding: 1.15rem 1.4rem;
  border-radius: 0 7px 7px 0;
  margin: 2rem 0;
}
.note p:last-child { margin-bottom: 0; }
.note p { font-size: 0.94rem; }

/* ── Pipeline / diagram ─────────────────────────────────────────────────── */

.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.phase { background: var(--bg-raised); padding: 1.1rem 1.15rem; }
.phase-n {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.phase-name { font-weight: 600; margin: 0.3rem 0 0.35rem; font-size: 0.97rem; }
.phase p { font-size: 0.85rem; margin: 0; line-height: 1.5; }

.stack-row {
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  gap: 1.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.stack-row:last-child { border-bottom: none; }
.stack-row dt { font-weight: 600; color: var(--text); }
.stack-row dt small { display: block; font-family: var(--mono); font-size: 0.7rem; color: var(--text-faint); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.25rem; }
.stack-row dd { margin: 0; color: var(--text-dim); font-size: 0.94rem; }

@media (max-width: 620px) {
  .stack-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ── CTA band ───────────────────────────────────────────────────────────── */

.cta {
  background: linear-gradient(180deg, var(--bg-raised), var(--bg-inset));
  border: 1px solid var(--line-bright);
  border-radius: 11px;
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}
.cta h2 { margin-bottom: 0.5rem; }
.cta p { max-width: 52ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  font-size: 0.87rem;
  color: var(--text-faint);
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: baseline; }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-left: auto; }
footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ── Utility ────────────────────────────────────────────────────────────── */

.stack-sm > * + * { margin-top: 0.75rem; }
ul.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
ul.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}
ul.ticks li::before {
  content: "▸";
  position: absolute;
  left: 0.2rem;
  color: var(--accent);
  font-size: 0.8rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.83rem;
  color: var(--text-faint);
  margin-top: 1rem;
  font-family: var(--mono);
}

/* Screen-reader-only. The comparison table has a caption for assistive technology; showing it
 * would duplicate the heading directly above it. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AESTHETIC LAYER
   ═══════════════════════════════════════════════════════════════════════════

   The direction is **instrument glass**: this page is the illuminated cover over the console it
   fronts. Everything decorative below is derived from something the product actually draws — plan
   grids, orbital rings, a radar sweep, the kill chain — rather than from a stock visual language.
   That is the difference between a page that looks designed and a page that looks *for this*.

   Three rules keep it from tipping into noise:

     1. **One light source.** All brightness comes from the logo gradient. No second accent hue.
     2. **Motion earns its place or it goes.** One orchestrated arrival per viewport, then stillness.
        Nothing loops in the reader's peripheral vision except the hero, which is the only place a
        person is not yet reading.
     3. **Nothing animates that cannot also be static.** Every reveal below is a no-op under
        `prefers-reduced-motion`, and the page is complete without a single frame of it.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Atmosphere ─────────────────────────────────────────────────────────────
   A fixed vignette plus a fine grain, both behind everything. The grain is the important one: a
   large flat dark area on a modern display shows banding, and 2 KB of SVG noise removes it while
   giving the page the texture of a photographed screen rather than a filled rectangle. */

body:not(.editor-body)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(0, 141, 235, 0.13), transparent 70%),
    radial-gradient(760px 520px at 6% 12%, rgba(101, 215, 255, 0.055), transparent 72%);
}
body:not(.editor-body)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
body:not(.editor-body) > * { position: relative; z-index: 1; }

/* ── Scroll progress ───────────────────────────────────────────────────────
   Two pixels of the brand gradient. On a long technical page the useful information is "how much
   of this is left", and a scrollbar in a dark UI is nearly invisible. */

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  background: var(--grad);
  z-index: 60;
  pointer-events: none;
}

/* ── Nav: condenses on scroll ──────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--line);
}
.nav-inner { transition: min-height 240ms var(--ease); }
.nav.scrolled .nav-inner { min-height: 52px; }

/* Underline that grows from the left. Cheap, and it reads as a control rather than a hyperlink. */
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 220ms var(--ease);
}
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.brand-mark { transition: transform 400ms var(--ease), filter 400ms var(--ease); }
.brand:hover .brand-mark {
  transform: rotate(-12deg) scale(1.06);
  filter: drop-shadow(0 0 10px rgba(101, 215, 255, 0.45));
}

/* ── Reveal on scroll ──────────────────────────────────────────────────────
   `--d` is a stagger index set in the markup, so a row of cards arrives in reading order rather
   than all at once — the single cheapest thing that makes a page feel authored. */

/* Scoped to `.js`: the class is added by motion.js on first execution. Without it every
   `[data-reveal]` is simply visible, so a blocked or broken script costs the animation and nothing
   else. An `opacity: 0` default outside this guard would be a page that never appears. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms var(--ease) calc(var(--d, 0) * 70ms),
    transform 620ms var(--ease) calc(var(--d, 0) * 70ms);
  will-change: opacity, transform;
}
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-rings, .sweep, .chain-link { animation: none !important; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(4.5rem, 12vw, 9rem) clamp(3.5rem, 8vw, 6rem); }

/* The orbital rings from the emblem, drawn live so they can turn. Three speeds, all slow enough to
   be noticed only if you look — a hero that visibly spins is a hero nobody reads past. */
.hero-rings {
  position: absolute;
  right: -4vw;
  top: 46%;
  width: min(44vw, 600px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.5;
}
.hero-rings ellipse, .hero-rings circle {
  fill: none;
  stroke: url(#heroGrad);
  transform-origin: 50% 50%;
}
.hero-rings .r1 { animation: spin 78s linear infinite; }
.hero-rings .r2 { animation: spin 54s linear infinite reverse; }
.hero-rings .r3 { animation: pulse 9s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.95; } }

/* A single sweep across the hero on load, like a radar bar passing. It happens once. */
.sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(101, 215, 255, 0.09) 50%, transparent 58%);
  transform: translateX(-100%);
  animation: sweep 2.6s var(--ease) 0.35s 1 both;
}
@keyframes sweep { to { transform: translateX(100%); } }

.hero h1 {
  max-width: 20ch;
  font-size: clamp(2.4rem, 5.6vw, 4.35rem);
  letter-spacing: -0.035em;
}
/* The last clause of the headline carries the gradient. One gradient-filled phrase per page reads
   as emphasis; a whole gradient headline reads as a template. */
.hero h1 .lit {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.status-pill {
  background: var(--grad-soft);
  border-color: rgba(101, 215, 255, 0.28);
  color: var(--text);
}
.status-pill .dot {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(101, 215, 255, 0.16);
  animation: beacon 2.8s ease-in-out infinite;
}
@keyframes beacon {
  0%, 100% { box-shadow: 0 0 0 3px rgba(101, 215, 255, 0.16); }
  50%      { box-shadow: 0 0 0 7px rgba(101, 215, 255, 0); }
}

/* ── Metrics ─────────────────────────────────────────────────────────────── */

.metrics { border-radius: 10px; }
.metric { position: relative; transition: background 260ms var(--ease); }
.metric:hover { background: color-mix(in srgb, var(--bg-raised) 70%, var(--blue) 8%); }
/* A gradient hairline along the top edge of each cell, revealed on hover. */
.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 320ms var(--ease);
}
.metric:hover::before { transform: scaleX(1); }
.metric dd {
  font-size: 1.85rem;
  font-variant-numeric: tabular-nums;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric dd small {
  background: none;
  color: var(--text-dim);
  -webkit-text-fill-color: var(--text-dim);
}

/* ── Cards ─────────────────────────────────────────────────────────────────
   A gradient border drawn as a mask so it can be one pixel and still be a gradient, plus a sheen
   that follows the pointer. Both are hover-only: a card that glows permanently is wallpaper. */

.card {
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  transition: transform 320ms var(--ease), background 320ms var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 320ms var(--ease);
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%),
              rgba(101, 215, 255, 0.09), transparent 62%);
  opacity: 0;
  transition: opacity 320ms var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-3px); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card-num {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.55;
  margin-bottom: 0.65rem;
}

/* ── The kill chain ────────────────────────────────────────────────────────
   Ten links, lighting up in sequence when the section scrolls in. This is the product's hero
   feature made visible: the point is not that it is animated, it is that the chain is *ordered* and
   that a shot stops at the first link that fails. A static list cannot show sequence. */

.chain {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.55rem;
  margin-top: 2rem;
  counter-reset: link;
}
.chain-link {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-raised);
  padding: 0.85rem 0.7rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  overflow: hidden;
}
.chain-link::before {
  counter-increment: link;
  content: counter(link, decimal-leading-zero);
  display: block;
  font-size: 0.58rem;
  color: var(--text-faint);
  opacity: 0.5;
  margin-bottom: 0.4rem;
}
/* The lit state. Applied by animation so the sequence runs itself once the row is in view. */
.chain.in .chain-link {
  animation: link 620ms var(--ease) both;
  animation-delay: calc(var(--i) * 130ms);
}
@keyframes link {
  from { border-color: var(--line); color: var(--text-faint); box-shadow: none; }
  to {
    border-color: rgba(101, 215, 255, 0.45);
    color: var(--text);
    box-shadow: 0 0 0 1px rgba(101, 215, 255, 0.12), 0 6px 20px -12px rgba(101, 215, 255, 0.5);
    background: color-mix(in srgb, var(--bg-raised) 82%, var(--blue) 18%);
  }
}
/* The last link is the one that fires the weapon, so it stays brightest. */
.chain.in .chain-link:last-child { animation-name: linkFinal; }
@keyframes linkFinal {
  from { border-color: var(--line); color: var(--text-faint); }
  to {
    border-color: var(--cyan);
    color: var(--text);
    background: color-mix(in srgb, var(--bg-raised) 74%, var(--blue) 26%);
    box-shadow: 0 0 0 1px rgba(101, 215, 255, 0.3), 0 8px 26px -12px rgba(101, 215, 255, 0.8);
  }
}

/* ── Development status board ──────────────────────────────────────────────
   Three columns: operational, in progress, next. The page's answer to "how far along is this",
   and the reason it can be answered without a paragraph of hedging. */

.board {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.board-col {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg-raised);
  overflow: hidden;
}
.board-h {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-inset);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.board-h .pip { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.board-h .pip.now { background: var(--green); box-shadow: 0 0 0 3px rgba(78, 168, 123, 0.15); }
.board-h .pip.wip { background: var(--amber); box-shadow: 0 0 0 3px rgba(224, 164, 88, 0.15); }
.board-h .pip.next { background: var(--text-faint); }
.board-h .count { margin-left: auto; opacity: 0.6; }
.board ul { list-style: none; margin: 0; padding: 0.5rem 0; }
.board li {
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.board li:hover { background: rgba(101, 215, 255, 0.035); color: var(--text); }
.board li b { color: var(--text); font-weight: 550; }
.board li .mono { font-size: 0.72rem; color: var(--text-faint); }

/* ── Section rhythm ───────────────────────────────────────────────────────
   The rule between sections becomes a gradient that fades at both ends, so the page reads as one
   continuous instrument rather than a stack of boxes. */

section + section { border-top: none; position: relative; }
section + section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-bright) 18%, var(--line-bright) 82%, transparent);
}

.eyebrow {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -0.028em; }

/* ── Tables ─────────────────────────────────────────────────────────────── */

.table-scroll { border-radius: 11px; }
tbody tr { transition: background 180ms var(--ease); }
tbody tr:hover { background: rgba(101, 215, 255, 0.045); }
tbody tr:hover td:first-child { color: var(--cyan); }
.mark { font-size: 1.05rem; }
.tag-built {
  border-color: rgba(78, 168, 123, 0.45);
  background: rgba(78, 168, 123, 0.08);
}
.tag-next {
  border-color: rgba(224, 164, 88, 0.45);
  background: rgba(224, 164, 88, 0.07);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn-primary {
  background: var(--grad-btn);
  color: #04121c;
  box-shadow: 0 10px 30px -14px rgba(0, 141, 235, 0.9);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: var(--grad-btn);
  filter: brightness(1.1);
  box-shadow: 0 14px 34px -14px rgba(101, 215, 255, 0.9);
}
/* A highlight that crosses the button once on hover. */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { animation: sheen 720ms var(--ease) both; }
@keyframes sheen { to { transform: translateX(120%); } }

.btn-ghost:hover { border-color: rgba(101, 215, 255, 0.45); background: rgba(101, 215, 255, 0.05); }
.btn svg { transition: transform 220ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ── Ticks ──────────────────────────────────────────────────────────────── */

ul.ticks li::before { color: var(--cyan); opacity: 0.75; }
ul.ticks li { transition: color 180ms var(--ease); }
ul.ticks li:hover { color: var(--text); }

/* ── CTA ────────────────────────────────────────────────────────────────── */

.cta {
  position: relative;
  overflow: hidden;
  border-color: rgba(101, 215, 255, 0.22);
  background:
    radial-gradient(700px 300px at 50% -30%, rgba(0, 141, 235, 0.22), transparent 70%),
    linear-gradient(180deg, var(--bg-raised), var(--bg-inset));
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000, transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer { position: relative; }
.foot-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.55rem; }
.foot-brand img { width: 26px; height: 26px; }
.foot-brand strong { color: var(--text); letter-spacing: 0.06em; font-size: 1rem; }
.foot-links a { position: relative; }
.foot-links a:hover { color: var(--cyan); }

/* A line of commentary under a diagram: narrower than the measure, quieter than body copy, and
   never a caption — it says what the diagram means rather than what it is. */
.hint-line {
  max-width: 62ch;
  margin: 1.4rem 0 0;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.board-col { align-self: start; }

/* `.nav-links a` is (0,1,1) and `.btn-primary` is (0,1,0), so the nav's dim link colour was winning
   and the primary button in the header rendered its label in grey on a bright gradient. It looked
   like a disabled control on every page — including this one, for weeks. */
.nav-links a.btn-primary { color: #04121c; }
.nav-links a.btn-ghost { color: var(--text); }

/* ── Narrow screens ───────────────────────────────────────────────────────
   Two things go wrong below a tablet and both were visible only by loading the page at 430px:

     * the nav's link row overflows the viewport, and the casualty is the rightmost item — which is
       the "Open Deck" button, i.e. the only control on the page that matters. Section links go
       first instead; they are anchors to content the reader is about to scroll through anyway.
     * the hero rings sit at `right: -4vw`, which at 430px is on top of the buttons rather than
       beside the copy. They are atmosphere, so they leave. */

@media (max-width: 900px) {
  .hero-rings { display: none; }
}

@media (max-width: 760px) {
  .nav-inner { gap: 0.75rem; }
  .nav-links { gap: 0.9rem; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links a.btn { padding: 0.36rem 0.8rem !important; font-size: 0.82rem !important; }
  .brand { font-size: 0.95rem; }
  /* The metric strip is four cells of tabular data; two columns keeps the numbers legible where one
     would make a very long ladder and four would clip them. */
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .chain { grid-template-columns: repeat(2, 1fr); }
}
