/* AISOC in-a-box — marketing + developer-docs surface theme.
   Design tokens and shared component primitives live in packages/ui-kit/
   (copied into dist/ by build.py); this file only styles this surface.

   Torq-style dark language: pure-black ground, white display type with
   tight tracking, IBM Plex Mono labels, white pill CTAs, staggered tiles. */

/* ── self-hosted faces (files copied to dist/assets/fonts/) ──────── */
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter var";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/InterVariable-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/IBMPlexMono-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/IBMPlexMono-Bold.woff2") format("woff2");
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-sans);
  font-feature-settings: var(--font-feature-settings);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: var(--maxw, 1120px); margin: 0 auto; padding: 0 24px; }
.wide { max-width: 1280px; }

a { color: #ffffff; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--bg-panel);
  border-radius: 4px;
  padding: 0.12em 0.4em;
  /* long repo paths and file:line refs are single words — they may break,
     but never widen the page (aiso-8bo: features overflowed 375px) */
  overflow-wrap: anywhere;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  overflow-x: auto;
  box-shadow: var(--inset-highlight);
}
pre code { background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.6; }
pre code .hl-kw  { color: var(--code-keyword); }
pre code .hl-str { color: var(--code-string); }
pre code .hl-num { color: var(--code-number); }
pre code .hl-com { color: var(--code-comment); font-style: italic; }
blockquote {
  margin: 1em 0;
  padding: 0.6em 1.2em;
  border-left: 2px solid var(--accent);
  background: var(--bg-panel);
  color: var(--ink-secondary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2.5em 0; }

/* ── header ───────────────────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
}
.head-in { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand {
  display: flex; align-items: center; gap: 9px;
  font: var(--weight-heading) 15px/1 var(--font-sans);
  font-feature-settings: var(--font-feature-settings);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-sub { color: var(--ink-secondary); font-weight: var(--weight-ui); }
.brand-mark {
  width: 16px; height: 16px; border-radius: 4px; flex: none;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-secondary);
  font: var(--weight-ui) 13.5px/1 var(--font-sans);
  font-feature-settings: var(--font-feature-settings);
  letter-spacing: -0.005em;
  padding: 7px 11px;
  border-radius: 5px;
}
.site-nav a:hover { color: #ffffff; background: var(--fill); text-decoration: none; }
.site-nav a[aria-current="page"] { color: #ffffff; background: var(--fill); }

main { padding: 0 24px 96px; }

/* ── hero (compact: the trust strip must sit under it at 1080p) ───── */
.hero { padding: 56px 0 20px; max-width: 820px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-secondary);
  background: var(--fill);
  border: 1px solid var(--line-soft);
  padding: 7px 12px; border-radius: 999px;
}
.hero .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px var(--ok);
  animation: breathe 2.4s ease-in-out infinite;
}
/* announcement chip: link + dismiss (dismissible via site.js, static if no JS) */
.hero .eyebrow a { color: var(--ink-secondary); }
.hero .eyebrow a:hover { color: var(--ink); text-decoration: none; }
.hero .eyebrow .chip-x {
  margin-left: 4px;
  padding: 2px 5px;
  border: 0;
  background: none;
  border-radius: var(--r-sm);
  color: var(--ink-tertiary);
  font: 500 11px/1 var(--font-mono);
  cursor: pointer;
}
.hero .eyebrow .chip-x:hover { color: var(--ink); background: var(--fill); }
.hero .eyebrow.dismissed { display: none; }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.5rem); /* up to 72px */
  line-height: 1.02;
  letter-spacing: -0.022em;                /* ≈ -1.584px at 72px */
  font-weight: var(--weight-heading);
  margin: 18px 0 14px;
  text-wrap: balance;
}
.hero .tagline {
  color: var(--ink-secondary);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 22px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-centered { justify-content: center; }

/* ── trust strip (marquee under the hero) ─────────────────────────── */
.trust { margin: 22px 0 0; padding-bottom: 4px; }
.trust-label {
  display: block;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 12px;
}
.trust-label.gap { margin-top: 24px; }
.trust-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.trust-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.trust-track span {
  font: 500 12.5px/1 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  padding-right: 48px;
  flex: none;
}
/* claim cards in the marquee: one hard stat + caption (Noma pattern —
   rotating claims, not logo soup). */
.trust-track .claim {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.trust-track .claim { padding-right: 0; }
.trust-track .claim::after {
  content: "·";
  margin-left: 38px;
  color: var(--ink-tertiary);
}
.trust-track .claim b {
  font: 700 15px/1 var(--font-mono);
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}
.trust-track .claim i {
  font: 500 11px/1 var(--font-mono);
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}
@keyframes marquee { to { transform: translateX(-50%); } }
/* static fallback when the marquee is paused (reduced motion): show the
   first four claims instead of an arbitrary clipped frame. */
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; transform: none; }
  .trust-track .claim:nth-child(n + 5) { display: none; }
}
/* integration surfaces: a clean tile grid of real protocol support —
   no aspirational logos (Noma partner-strip pattern). */
.intgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.inttile {
  display: block;
  padding: 9px 10px;
  background: var(--bg-panel);
  border-radius: var(--r-md);
  box-shadow: var(--inset-highlight);
  font: 500 10.5px/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inttile.mitre {
  background: var(--accent-soft);
  color: #ffffff;
  box-shadow: var(--inset-highlight), inset 0 0 0 1px rgba(255,255,255,0.28);
}
.trust-standards {
  margin: 12px 0 0;
  font: 500 12px/1.5 var(--font-sans);
  color: var(--ink-tertiary);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sr-only li { list-style: none; }

/* ── hero pipeline showpiece ──────────────────────────────────────── */
.pipeline-shell {
  margin: 36px 0 0;
}
/* ── 3D glass stage (design language): a soft glass plate floats behind
   the panel; pointer tilt (fine pointers only, reduced-motion off)
   gives the panel depth. Plate never carries the information — it is
   a backdrop; everything above it is the content. */
.tilt3d {
  position: relative;
  perspective: 1100px;
  perspective-origin: 50% 42%;
  -webkit-tap-highlight-color: transparent;
}
/* rAF-lerped in site.js; no CSS transition (rAF and a transition on
   the same property would fight — and harness headless stalls
   transitions). */
.tilt-obj {
  will-change: transform;
}
.glass-plate::before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: 0;
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(255,255,255,.085), rgba(255,255,255,.02) 45%, transparent 74%),
    var(--bg-elevated);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,0.14),
    0 0 42px -10px rgba(255,255,255,0.16),
    0 52px 110px -34px rgba(0,0,0,.78);
  pointer-events: none;
}
.pipeline-shell .pipeline { position: relative; z-index: 1; box-shadow: var(--inset-highlight), var(--shadow-ambient), var(--glow-accent), 0 1px 0 rgba(255,255,255,.04); }
.pipe-flow { transition: transform 520ms cubic-bezier(0.23, 1, 0.32, 1); }
.pipeline {
  margin: 0;
  background: var(--bg-panel);
  border-radius: var(--r-xl);
  padding: 26px 26px 20px;
  box-shadow: var(--inset-highlight), var(--shadow-ambient), var(--glow-accent);
  overflow: hidden;
}
.pipeline-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.pipeline-head .t {
  font: var(--weight-ui) 13px/1 var(--font-sans);
  color: var(--ink-secondary);
  letter-spacing: 0.02em;
}
.pipeline-head .legend {
  display: flex; gap: 14px;
  font: 500 11px/1 var(--font-mono);
  color: var(--ink-tertiary);
}
.pipeline-head .legend i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 5px; }

.pipe-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr) 88px minmax(0, 1.15fr) 88px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-width: 0;
}
.pipe-node { min-width: 0; }
.pipe-node {
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  padding: 14px 14px 12px;
  box-shadow: var(--inset-highlight), var(--shadow-raise);
  min-width: 0;
  transition: box-shadow 200ms ease;
}
.pipe-node.lit { box-shadow: var(--inset-highlight), var(--shadow-raise), 0 0 0 1px rgba(255,255,255,0.32), 0 0 24px -6px var(--accent-glow); }
.pipe-node .stage {
  font: 600 9.5px/1 var(--font-mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 8px;
}
.pipe-node .rows { display: grid; gap: 5px; }
.pipe-node .row {
  display: flex; justify-content: space-between; gap: 8px;
  font: 500 11.5px/1.55 var(--font-mono);
  color: var(--ink-secondary);
  white-space: normal; overflow: visible; text-overflow: clip;
  align-items: flex-start;
}
/* the field-name label stays intact; the value carries the ellipsis when a
   live-loop value (e.g. crowdstrike.fdr) is wider than the node. Previously
   the whole row ellipsized and clipped the value mid-token ("crowdstrike.").
   min-width:0 lets the flex <b> shrink below its content width. (aiso-cwz) */
.pipe-node .row span { flex: none; }
.pipe-node .row b { color: var(--ink); font-weight: 500; min-width: 0; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; white-space: normal; line-height: 1.45; text-align: right; }
.pipe-node .row b.verdict { overflow: visible; }

.pipe-node .verdict { font-weight: 700; }
.v-benign { color: var(--ok-ink); }
.v-suspicious { color: var(--warn-ink); }
.v-malicious { color: var(--bad-ink); }

/* connector wire between nodes: an SVG line on the motion.css
   .packet-flow-path dash marquee — the tunnel, always rose, dashes
   drifting in the direction of data (the 3rd wire's path is reversed:
   directives return to the edge). No local keyframes, no packet spans. */
.wire {
  position: relative;
  align-self: center;
  height: 16px;
  display: flex;
  align-items: center;
}
.wire-svg { width: 100%; height: 16px; display: block; overflow: visible; }
.wire-line { fill: none; stroke: var(--dl-tunnel); stroke-width: 2; opacity: 0.85; }
.wire .flowlabel {
  position: absolute;
  top: -16px; left: 50%; transform: translateX(-50%);
  font: 500 8px/1.4 var(--font-mono);
  color: var(--ink-tertiary);
  white-space: normal;
  text-align: center;
  width: 100%;
  max-width: 88px;
  overflow-wrap: break-word;
  pointer-events: none;
}

/* node 4 — HITL queue: verdict chips stamp in (motion.js stampIn +
   .stamp-chip), trimmed to three. The queue reserves its height so the
   card never reflows as the loop trims; the static markup is the
   settled final frame (one stamped chip, the approved action shown). */
.sig-queue {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 96px;
}
.sig-queue li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  background: var(--bg-panel);
  border-radius: var(--r-sm);
  padding: 7px 9px;
  box-shadow: var(--inset-highlight);
}
.sig-queue .sev { width: 7px; height: 7px; border-radius: 50%; flex: none; }
/* q-src and q-note are secondary to the verdict (b, flex:none); both shrink
   and ellipsize so a narrow queue (mobile) degrades gracefully instead of
   pushing the note out entirely. min-width:0 is what lets them shrink below
   content width in a flex row. (aiso-cwz) */
.sig-queue .q-src { font: 500 10.5px var(--font-mono); color: var(--ink-secondary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig-queue b { font: 700 9.5px var(--font-mono); letter-spacing: 0.05em; flex: none; }
.sig-queue .q-note {
  font: 400 10px var(--font-mono);
  color: var(--ink-tertiary);
  margin-left: auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gate-state {
  text-align: center;
  font: 600 9.5px/1.5 var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--ink-tertiary);
}
.gate-state.waiting { color: var(--warn-ink); }
.gate-state.applied { color: var(--ok-ink); }

/* hero signature (§6): ambient particle field behind the showpiece,
   pause badge, caption strip */
.pipeline.sig { position: relative; }
.sig-ambient {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.pipeline.sig .pipeline-head,
.pipeline.sig .pipe-flow,
.pipeline.sig .sig-cap { position: relative; z-index: 1; }
.sig-pause {
  display: none;
  font: 510 10.5px/1 var(--font-sans);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--warn-ink); background: var(--warn-bg);
  border-radius: 4px; padding: 4px 8px;
  pointer-events: none;
}
.pipeline.sig.is-paused .sig-pause { display: inline-block; }
.sig-cap {
  margin-top: 16px;
  display: flex; gap: 18px; flex-wrap: wrap;
  font: 400 11.5px var(--font-mono);
  color: var(--ink-tertiary);
}
.sig-cap b { color: var(--ink-secondary); font-weight: 510; }

/* ── statline (kept modest — no monument stats) ───────────────────── */
.statline {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin: 26px 0 0;
}
.stat {
  flex: 1 1 200px;
  display: flex; align-items: baseline; gap: 10px;
  background: var(--bg-panel);
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: var(--inset-highlight);
}
.stat b {
  font: var(--weight-heading) 1.05rem/1 var(--font-mono);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stat span { color: var(--ink-secondary); font-size: 12.5px; line-height: 1.35; }

/* ── product pillars: CSS-only tabs (no JS; radios are the state) ── */
.pillars {
  margin: 56px 0 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
.pillars-legend { margin: 0 0 20px; padding: 0; }
.pillars-legend h2 { margin: 0; }
.pillar-radio {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  opacity: 0;
}
.pillar-tab {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font: var(--weight-ui) 13px/1 var(--font-sans);
  font-feature-settings: var(--font-feature-settings);
  color: var(--ink-secondary);
  padding: 9px 14px;
  border-radius: var(--r-md);
  margin: 0 4px 0 0;
}
.pillar-tab:hover { color: var(--ink); background: var(--fill); }
.pillars #pl-1:checked ~ .pillar-tab[for="pl-1"],
.pillars #pl-2:checked ~ .pillar-tab[for="pl-2"],
.pillars #pl-3:checked ~ .pillar-tab[for="pl-3"],
.pillars #pl-4:checked ~ .pillar-tab[for="pl-4"] {
  color: var(--ink);
  background: var(--fill-strong);
  box-shadow: var(--inset-highlight), inset 0 -2px 0 #ffffff;
}
.pillars #pl-1:focus-visible ~ .pillar-tab[for="pl-1"],
.pillars #pl-2:focus-visible ~ .pillar-tab[for="pl-2"],
.pillars #pl-3:focus-visible ~ .pillar-tab[for="pl-3"],
.pillars #pl-4:focus-visible ~ .pillar-tab[for="pl-4"] {
  outline: 2px solid var(--line-focus);
  outline-offset: 2px;
}
.pillar-panel { display: none; }
.pillars #pl-1:checked ~ .pillar-panels .pillar-panel:nth-of-type(1),
.pillars #pl-2:checked ~ .pillar-panels .pillar-panel:nth-of-type(2),
.pillars #pl-3:checked ~ .pillar-panels .pillar-panel:nth-of-type(3),
.pillars #pl-4:checked ~ .pillar-panels .pillar-panel:nth-of-type(4) { display: grid; }
.pillar-panel {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
  background: var(--bg-panel);
  border-radius: var(--r-xl);
  padding: 28px 30px;
  box-shadow: var(--inset-highlight), var(--shadow-ambient);
}
.pillar-panel h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-heading);
}
.pillar-panel .pillar-copy p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.65;
  max-width: 42ch;
}
/* pillar header row: spot illustration beside the h3 */
.pillar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.pillar-head h3 { margin: 0; }
.pillar-spot {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0;
  flex: 0 0 auto;
  opacity: 0.9;
}
/* spot illustration inline at the start of a section heading */
.h-spot {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  vertical-align: -3px;
  opacity: 0.9;
}
.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  align-content: start;
}
.pillar-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font: var(--weight-ui) 13.5px/1.5 var(--font-sans);
}
.pillar-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok-ink);
  font-weight: 700;
}
.pillar-more {
  display: inline-block;
  margin-top: 18px;
  font: var(--weight-ui) 13.5px/1.5 var(--font-sans);
}

/* ── proof: award-style gate cards ────────────────────────────────── */
.proof { margin: 64px 0 0; }
.gate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.gate-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg-panel);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--inset-highlight), var(--shadow-ambient);
}
.gate-glyph {
  font: 700 24px/1 var(--font-mono);
  letter-spacing: -0.02em;
  color: #ffffff;
  background: var(--accent-soft);
  padding: 9px 12px;
  border-radius: var(--r-md);
}
.gate-card h3 {
  margin: 6px 0 0;
  font-size: 1.02rem;
  letter-spacing: var(--tracking-tight);
  font-weight: var(--weight-heading);
}
.gate-card p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 13.5px;
  line-height: 1.55;
  flex: 1;
}
.gate-card .badge { margin-top: 8px; }

/* ── quote ────────────────────────────────────────────────────────── */
.quote {
  margin: 0;
  padding: 56px 0;
  border-top: 1px solid var(--line-soft);
}
.quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: var(--weight-heading) clamp(1.4rem, 2.6vw, 1.9rem)/1.4 var(--font-sans);
  letter-spacing: var(--tracking-tight);
  max-width: 620px;
  text-wrap: balance;
}
.quote figcaption {
  margin-top: 14px;
  color: var(--ink-tertiary);
  font: 500 12.5px/1.5 var(--font-sans);
}

/* ── sector tiles ─────────────────────────────────────────────────── */
.sectors { margin: 56px 0 0; }
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.sector {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 138px;
  background: var(--bg-panel);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--inset-highlight);
  color: var(--ink);
  transition: background 160ms ease, box-shadow 160ms ease;
}
.sector:hover {
  background: var(--bg-elevated);
  box-shadow: var(--inset-highlight), var(--shadow-ambient);
  text-decoration: none;
}
.sector p {
  margin: 0;
  flex: 1;
  color: var(--ink-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}
.sector .kicker { margin-bottom: 0; }
.sector-arrow {
  font: 500 13px/1 var(--font-mono);
  color: #ffffff;
  transition: transform 160ms ease;
}
.sector:hover .sector-arrow { transform: translateX(4px); }

/* ── closing CTA band (two-word imperative + box illustration) ────── */
.cta-band {
  margin: 72px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px 48px;
  align-items: center;
  justify-items: start;
  background: var(--bg-elevated);
  border-radius: var(--r-xl);
  padding: 48px 44px;
  box-shadow: var(--inset-highlight), var(--shadow-ambient), var(--glow-accent);
}
.cta-copy { display: grid; gap: 14px; justify-items: start; }
/* product illustration: the appliance itself (no mascot) */
.box-art { margin: 0; width: 100%; }
.box-art svg { display: block; width: 100%; height: auto; }
.box-art picture { display: block; }
.box-art .box-render { display: block; width: 100%; height: auto; }
.box-art .box-label {
  fill: var(--ink-tertiary);
  font: 500 10px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.box-art .led { animation: breathe 2.4s ease-in-out infinite; }
.box-art .led-ok { animation-delay: 1.2s; }
.cta-band h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: var(--tracking-display);
  font-weight: var(--weight-heading);
  text-wrap: balance;
}
.cta-band p {
  margin: 0 0 10px;
  color: var(--ink-secondary);
  font-size: 15px;
  max-width: 48ch;
}

/* ── decision sections (features, full-width rows — not a card grid) ─ */
.decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line-soft);
}
.decision:nth-child(even) .decision-copy { order: 2; }
.decision .dnum {
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 14px;
}
.decision h2 {
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: var(--tracking-display);
  font-weight: var(--weight-heading);
  margin: 0 0 14px;
  text-wrap: balance;
}
.decision p { color: var(--ink-secondary); margin: 0 0 12px; font-size: 15px; }
.decision p strong, .decision b { color: var(--ink); font-weight: var(--weight-ui); }

/* product mock inside decisions */
.mock {
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  box-shadow: var(--inset-highlight), var(--shadow-ambient);
  overflow: hidden;
  font-size: 12px;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--bg-overlay);
  box-shadow: var(--inset-highlight);
}
.mock-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-bar .mock-title {
  margin-left: 8px;
  font: 500 11px/1 var(--font-mono);
  color: var(--ink-tertiary);
}
.mock-body { padding: 14px 16px 16px; }
.mock-body table.table { font-size: 12px; }
.mock-body .table th, .mock-body .table td { padding: 7px 9px; }
/* a table whose minimum content is wider than the card scrolls inside the
   card (the pre idiom); .mock's overflow:hidden would otherwise clip the
   last column off at 375px (aiso-8bo: sovereignty-check table) */
.mock-body table.table { display: block; overflow-x: auto; }

/* ── real product captures (aiso-4la) ───────────────────────────────
   <figure class="shot"> wraps a committed webp/avif of the RUNNING stack
   (scripts/capture/marketing-shots.mjs) in the same window chrome as
   .mock, so a screenshot reads as "the product, framed", never as a
   free-floating image. The bar carries a live dot; the title names the
   surface and the route it was captured from — provenance, not decoration.
   No border, no new hue: depth is the luminance ladder (§1). */
figure.shot {
  margin: 1.6em 0;
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  box-shadow: var(--inset-highlight), var(--shadow-ambient);
  overflow: hidden;
}
figure.shot .mock-bar { position: relative; }
figure.shot .mock-bar .dot.live {
  background: var(--ok);
  box-shadow: 0 0 0 2px var(--ok-bg);
}
figure.shot picture, figure.shot img { display: block; }
figure.shot img {
  width: 100%;
  height: auto;
  background: var(--bg-panel);
}
figure.shot figcaption {
  padding: 10px 14px;
  font: 500 11px/1.5 var(--font-mono);
  color: var(--ink-tertiary);
  box-shadow: inset 0 1px 0 var(--line-soft);
}
figure.shot figcaption code { color: var(--ink-secondary); }
/* hero placement: the landing page's first capture sits above the fold
   between the trust strip and the pipeline signature (needs the compound
   selector to beat figure.shot's 1.6em top margin) */
figure.shot.shot-hero { margin-top: 1.2em; }
/* box renders are authored at a fixed pixel artboard (640×360, 760×420);
   the full-bleed figure's img{width:100%} was inflating them ~1.7× and
   pushing the small cloud uplink out into a ~400px void. Cap them at their
   intrinsic width and center via auto margins (img is already display:block),
   so the art reads at author scale in a symmetric field instead of a
   left-pinned render. The mono figcaption stays left-aligned (aiso-cwz). */
figure.shot img.box-render { max-width: min(640px, 100%); width: auto; margin: 0 auto; }

/* ── architecture interactive diagram (§5 diagram language) ─────────
   Semantic stroke per component type (--dl-* tokens); hover lifts the
   node and dims siblings to 60%; click/Enter anchors a detail card to
   the node (motion.js spring); the tunnel runs packetFlow — the one
   animated diagram on the page. No-JS readers get a static detail card. */
.arch { margin: 40px 0; }
.arch-svg-wrap {
  position: relative;
  background: var(--bg-panel);
  border-radius: var(--r-xl);
  padding: 22px 22px 14px;
  box-shadow: var(--inset-highlight), var(--shadow-ambient);
}
@media (max-width: 1000px) { .arch-svg-wrap { overflow-x: auto; } }
.arch svg { display: block; margin: 0 auto; max-width: 100%; height: auto; font-family: var(--font-sans); }
.arch .node rect {
  fill: var(--bg-elevated);
  stroke: var(--line);
  stroke-width: 1;
  rx: 8;
  transition: stroke 160ms ease, fill 160ms ease;
  cursor: pointer;
}
/* one semantic stroke per component type (§5) */
.arch .node[data-type="edge"] rect     { stroke: var(--dl-edge); }
.arch .node[data-type="pipeline"] rect { stroke: var(--dl-pipeline); }
.arch .node[data-type="engine"] rect   { stroke: var(--dl-engine); }
.arch .node[data-type="storage"] rect  { stroke: var(--dl-storage); }
.arch .node[data-type="tunnel"] rect   { stroke: var(--dl-tunnel); stroke-dasharray: 6 5; }
.arch .node[data-type="external"] rect { stroke: var(--dl-external); }
.arch .node .t { fill: var(--ink); font: var(--weight-ui) 13px var(--font-sans); pointer-events: none; }
.arch .node .s { fill: var(--ink-tertiary); font: 500 10px var(--font-mono); pointer-events: none; }
/* hover: lift the node under the pointer, dim siblings to 60% (context
   stays legible). The `translate` property composes OVER the node's
   transform attribute (which positions it) — a CSS `transform` rule
   would overwrite the attribute and break the layout. */
.arch .node { transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out); }
.arch svg:has(.node:hover) .node:not(:hover),
.arch svg:has(.node:focus-visible) .node:not(:focus-visible) { opacity: 0.6; }
.arch .node:hover, .arch .node:focus-visible { translate: 0 -3px; opacity: 1; }
.arch .node:focus-visible { outline: none; }
.arch .node:focus-visible rect { stroke: var(--line-focus); }
.arch .zone { fill: none; stroke: var(--line-soft); stroke-dasharray: 4 5; rx: 12; }
.arch .zonelabel { fill: var(--ink-tertiary); font: 600 10px var(--font-mono); letter-spacing: 0.1em; }
.arch .edge { stroke: var(--line-strong); stroke-width: 1.5; fill: none; marker-end: url(#arch-arrow); }
/* the tunnel: always rose, always dashed — the sovereignty boundary.
   packetFlow (motion.js) adds .packet-flow-path to #arch-tunnel-flow:
   the dash marquee + travelling dots; reduced motion keeps the static
   dashed line. The directive return path stays a static rose dash. */
.arch .edge.tunnel { stroke: var(--dl-tunnel); stroke-width: 2; stroke-dasharray: 6 8; }
.arch .edgelabel { fill: var(--ink-secondary); font: 500 9.5px var(--font-mono); }
/* floating detail card: JS-anchored to the node (transform-origin at the
   trigger edge); opacity/transform driven by the motion.js spring, the
   class only gates pointer-events */
.arch-card {
  position: absolute; z-index: 5; left: 0; top: 0;
  width: 264px; padding: 14px 16px;
  background: var(--bg-overlay);
  border-radius: var(--r-md);
  box-shadow: var(--inset-highlight), var(--shadow-raise);
  opacity: 0;
  pointer-events: none;
  font-size: 12.5px; line-height: 1.55; color: var(--ink-secondary);
}
.arch-card.is-open { pointer-events: auto; }
.arch-card-title { margin: 0 0 6px; font-size: 13.5px; font-weight: var(--weight-ui); letter-spacing: var(--tracking-tight); color: var(--ink); }
.arch-card p { margin: 0; }
.arch-card .meta { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
/* static detail card: no-JS fallback (hidden once JS owns the card) */
html.js .arch-detail { display: none; }
.arch-detail {
  margin-top: 14px;
  background: var(--bg-elevated);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--inset-highlight), var(--shadow-raise);
}
.arch-detail h2 { margin: 0 0 6px; font-size: 14.5px; font-weight: var(--weight-heading); letter-spacing: var(--tracking-tight); }
.arch-detail p { margin: 0; color: var(--ink-secondary); font-size: 13.5px; line-height: 1.6; }
.arch-detail .meta { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.arch-hint { font: 500 11.5px/1.5 var(--font-mono); color: var(--ink-tertiary); margin: 10px 2px 0; }

/* ── content pages ────────────────────────────────────────────────── */
main h1 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: var(--weight-heading);
  letter-spacing: var(--tracking-display);
  line-height: 1.1;
  margin: 48px 0 8px;
}
main h2 {
  font-size: 1.35rem;
  font-weight: var(--weight-heading);
  letter-spacing: -0.016em;
  line-height: 1.25;
  margin-top: 2.1em;
}
main h2:first-child { margin-top: 0; }
main h3 { font-size: 1.05rem; font-weight: var(--weight-ui); letter-spacing: var(--tracking-tight); margin-top: 1.6em; }
main h1, main h2, main h3 { scroll-margin-top: calc(var(--nav-h) + 16px); }
main > p, main > ul, main > ol { max-width: 74ch; color: #c7c9cd; }
main > ul, main > ol { padding-left: 22px; }
main li { margin: 6px 0; }
main li::marker { color: var(--ink-tertiary); }

table.table, main table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2em 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}
main th, main td {
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
main th {
  background: none;
  color: var(--ink-tertiary);
  font: var(--weight-ui) 11px/1.4 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* doc body prose spacing */
.prose > *:first-child { margin-top: 8px; }

/* ── mermaid figures ──────────────────────────────────────────────── */
figure.diagram-fig {
  background: var(--bg-panel);
  border: 0;
  border-radius: var(--r-lg);
  padding: 20px;
  overflow-x: auto;
  margin: 1.6em 0;
  box-shadow: var(--inset-highlight), var(--shadow-raise);
  color-scheme: dark;
}
/* mermaid's htmlLabels emit <div class="nodeLabel"> spans; make them inherit
   the dark theme rather than their default #333 on transparent SVG */
figure.diagram-fig .nodeLabel,
figure.diagram-fig .edgeLabel,
figure.diagram-fig .label { color: var(--ink) !important; }
figure.diagram-fig .edgeLabel { background: var(--bg-panel) !important; }
figure.diagram-fig .cluster-label text, figure.diagram-fig text { fill: var(--ink-secondary); }
figure.diagram-fig svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
pre.mermaid-src { color: var(--ink-secondary); }

/* ── plain-language marketing diagrams (aiso-8bo) ──────────────────
   The imagery doctrine in miniature: 3-6 shapes, everyday words, one
   concept, one moving flow. Framed like a diagram figure but narrower —
   these sit in the prose column, not on a canvas. The animation contract
   lives inside each fragment (CSS @keyframes + a prefers-reduced-motion
   static frame); this is only the frame around it. ────────────────── */
figure.plain-fig {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 20px 20px 14px;
  margin: 1.6em auto;
  max-width: 560px;
  box-shadow: var(--inset-highlight);
  color-scheme: dark;
}
figure.plain-fig svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
figure.plain-fig figcaption {
  margin-top: 10px;
  text-align: center;
  font: 500 12px/1.5 var(--font-sans);
  color: var(--ink-tertiary);
}

/* ── API console ──────────────────────────────────────────────────── */
/* endpoint cards with method badges — Read-surface density */
.api-nav {
  position: sticky;
  top: var(--nav-h);
  float: right;
  width: 200px;
  margin: 48px -232px 0 0;
  padding: 12px 0;
  font-size: 12px;
}
.api-nav a {
  display: block;
  padding: 4px 10px;
  color: var(--ink-tertiary);
  border-radius: var(--r-sm);
  font: var(--weight-ui) 12px/1.4 var(--font-sans);
}
.api-nav a:hover { color: var(--ink); background: var(--fill); text-decoration: none; }
@media (max-width: 1280px) { .api-nav { display: none; } }

#api-console { margin: 2em 0; }
.op {
  background: var(--bg-panel);
  border: 0;
  border-radius: var(--r-md);
  margin: 6px 0;
  overflow: clip;
  box-shadow: var(--inset-highlight);
}
.op summary {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 14px; cursor: pointer; list-style: none;
  border-left: 3px solid transparent;
}
.op[open] > summary { border-left-color: var(--accent); }
.op summary::-webkit-details-marker { display: none; }
.op summary:hover { background: var(--fill-faint); }
.op .verb {
  font: 700 0.68rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  padding: 4px 8px; border-radius: 4px;
  min-width: 52px; text-align: center;
  flex: none;
}
.verb-get    { background: var(--ok-bg);   color: var(--ok-ink); }
.verb-post   { background: var(--accent-soft); color: #ffffff; }
.verb-patch  { background: var(--warn-bg); color: var(--warn-ink); }
.verb-put    { background: rgba(139,124,246,.16); color: #b6a9ff; }
.verb-delete { background: var(--bad-bg);  color: var(--bad-ink); }
.op .path { font-family: var(--font-mono); font-size: 0.86rem; color: var(--ink); }
.op .sum { color: var(--ink-secondary); font-size: 0.82rem; margin-left: auto; text-align: right; }
.op .body { padding: 8px 16px 14px; border-top: 1px solid var(--line-soft); font-size: 0.88rem; color: var(--ink-secondary); }
.op .body b { color: var(--ink); font-weight: var(--weight-ui); }

/* ── pricing ──────────────────────────────────────────────────────── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.tier {
  background: var(--bg-panel);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--inset-highlight);
  display: flex; flex-direction: column; gap: 8px;
}
.tier.featured {
  background: var(--bg-elevated);
  box-shadow: var(--inset-highlight), var(--shadow-ambient), var(--glow-accent);
}
.tier h3 { margin: 0; font-size: 1.05rem; font-weight: var(--weight-heading); letter-spacing: var(--tracking-tight); }
.tier p { margin: 0; color: var(--ink-secondary); font-size: 13.5px; flex: 1; }

/* ── micro-delights (§7) + page transitions (§4) ──────────────────── */
/* cursor-follow radial glow — marketing CTAs only (.glow-cta); --mx/--my
   are set by site.js. Work surfaces (portal) never get this. */
.glow-cta { position: relative; overflow: hidden; isolation: isolate; }
.glow-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 70%);
  opacity: 0; transition: opacity 240ms var(--ease-out);
}
.glow-cta:hover::before { opacity: 1; }
/* counters roll, they don't pop: tabular figures keep the layout still */
.roll { font-variant-numeric: tabular-nums; }
/* copy row under product mocks (features D1): the .morph-btn label ⇄ check
   path is owned by motion.css */
.mock-foot {
  display: flex;
  padding: 10px 14px;
  background: var(--bg-overlay);
  box-shadow: inset 0 1px 0 var(--line-soft);
}

/* page transitions: shared view-transition-names persist across real
   cross-document navigations where the engine supports them (§4,
   progressive enhancement — without it, plain navigation). One vt-cta
   per page (the hero CTA); the brand mark is shared on every page. */
.brand-mark { view-transition-name: vt-brand; }
.vt-cta { view-transition-name: vt-cta; }

/* pure-CSS scroll progress (keyframes + timeline owned by motion.css) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }

/* ── footer ───────────────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--line-soft);
  padding: 32px 0 44px;
  color: var(--ink-secondary);
  font-size: 0.86rem;
}
.dim { color: var(--ink-tertiary); }
/* inline link in running text: distinguishable without color (WCAG 1.4.1) */
.dim a { text-decoration: underline; text-underline-offset: 3px; }

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .gate-grid, .sector-grid { grid-template-columns: 1fr; }
  .pillar-panel { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .cta-band { grid-template-columns: 1fr; padding: 36px 26px; }
  .box-art { max-width: 320px; }
  .pipe-flow { grid-template-columns: 1fr; gap: 10px; }
  .wire { height: 34px; justify-content: center; }
  .wire-svg { width: 34px; height: 34px; transform: rotate(90deg); }
  .wire .flowlabel { top: 50%; left: 40px; transform: translateY(-50%); }
  .sig-queue { min-height: 0; }
  .decision { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
  .decision:nth-child(even) .decision-copy { order: 0; }
}
@media (max-width: 720px) {
  .hero { padding-top: 52px; }
  .head-in { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; height: auto; padding: 10px 0; }
  .site-head { height: auto; }
  main { padding: 0 18px 64px; }
  .pipeline { padding: 16px 14px; }
}

/* ── docs shell — GitBook layout (aiso-0zj) ─────────────────────────
   body.docs only (developer docs + API reference): sticky left sidebar
   (240–280 px), reading column (max 860 px), right-rail "On this page"
   TOC. DOM order is main → nav → toc (content first for screen readers);
   grid areas place the nav in the left column. Density yes, decoration
   no — this is a Read surface. */

/* page transitions across the GitBook tree (motion addendum): the docs h1
   and the current sidebar link share vt-docs-title, the rail keeps
   vt-docs-rail — the engine morphs title→title and the rail persists
   through the swap. Engines without View Transitions ignore the property:
   instant swap, the fallback. */
.docs-content > h1:first-of-type { view-transition-name: vt-docs-title; }
.docs-nav { view-transition-name: vt-docs-rail; }

.docs-tools { display: flex; align-items: center; gap: 16px; }

.docs-frame {
  display: grid;
  grid-template-columns: clamp(240px, 21vw, 280px) minmax(0, 1fr);
  grid-template-areas: "nav main";
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100vh - var(--nav-h));
}
@media (min-width: 1280px) {
  .docs-frame {
    grid-template-columns: clamp(240px, 21vw, 280px) minmax(0, 1fr) 224px;
    grid-template-areas: "nav main toc";
  }
  .docs-toc { display: block; }
}

/* left rail */
.docs-nav {
  grid-area: nav;
  position: sticky;
  top: var(--nav-h);
  align-self: start;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  border-right: 1px solid var(--line-soft);
}
.docs-nav-scroll { padding: 18px 12px 48px; }
.docs-group { margin-top: 2px; }
.docs-group-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; border: 0; background: none; cursor: pointer;
  padding: 7px 10px; border-radius: var(--r-sm);
  color: var(--ink-secondary);
  font: var(--weight-ui) 11.5px/1.4 var(--font-sans);
  font-feature-settings: var(--font-feature-settings);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.docs-group-btn:hover { color: var(--ink); background: var(--fill); }
.docs-group-caret {
  width: 7px; height: 7px; flex: none;
  border-right: 1.5px solid var(--ink-tertiary);
  border-bottom: 1.5px solid var(--ink-tertiary);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 160ms var(--ease-out);
}
.docs-group.is-open .docs-group-caret { transform: rotate(-135deg) translate(-1px, -1px); }
.docs-group:not(.is-open) .docs-group-list { display: none; }
.docs-group-list {
  list-style: none;
  margin: 2px 0 10px;
  padding: 0 0 0 8px;
  display: grid; gap: 1px;
}
.docs-link {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  color: var(--ink-secondary);
  font: var(--weight-ui) 13.5px/1.45 var(--font-sans);
  font-feature-settings: var(--font-feature-settings);
}
.docs-link:hover { color: var(--ink); background: var(--fill); text-decoration: none; }
.docs-link.is-current {
  color: var(--ink);
  background: var(--fill-strong);
  box-shadow: inset 2px 0 0 #ffffff;
}

/* reading column */
.docs-main { grid-area: main; padding: 8px 44px 96px; min-width: 0; }
.docs-content { max-width: 860px; margin: 0 auto; }
.docs-content h1 { margin-top: 36px; }

/* right rail — "On this page" (scroll-spy state in site.js) */
.docs-toc { display: none; grid-area: toc; }
.docs-toc {
  position: sticky;
  top: var(--nav-h);
  align-self: start;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  padding: 44px 16px 40px 4px;
}
.docs-toc-title {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0 0 10px;
}
.docs-toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.docs-toc-list a {
  display: block;
  padding: 4px 10px;
  font: 400 12.5px/1.5 var(--font-sans);
  color: var(--ink-tertiary);
  border-left: 1px solid var(--line-soft);
}
.docs-toc-list .lvl3 a { padding-left: 24px; }
.docs-toc-list a:hover { color: var(--ink); text-decoration: none; }
.docs-toc-list a.is-active {
  color: var(--ink);
  border-left-color: #ffffff;
}

/* in-page tabs (variant topics — API languages, deployment topologies) */
.tabs { margin: 1.5em 0; }
.tabs-bar { display: flex; gap: 2px; flex-wrap: wrap; }
.tabs-btn {
  border: 0; background: none; cursor: pointer;
  padding: 8px 13px 9px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  color: var(--ink-secondary);
  font: var(--weight-ui) 13px/1 var(--font-sans);
  font-feature-settings: var(--font-feature-settings);
  transition: color 150ms ease, background 150ms ease;
}
.tabs-btn:hover { color: var(--ink); background: var(--fill); }
.tabs-btn.is-active {
  color: var(--ink);
  background: var(--bg-panel);
  box-shadow: var(--inset-highlight), inset 0 2px 0 #ffffff;
}
.tabs-panel {
  display: none;
  background: var(--bg-panel);
  border-radius: 0 var(--r-md) var(--r-md) var(--r-md);
  padding: 6px 4px 10px;
  box-shadow: var(--inset-highlight);
}
.tabs-panel.is-active { display: block; animation: tab-fade 150ms ease; }
/* tab switches stay calm: 150 ms fade only (keyframe defined in motion.css,
   the site's keyframe source) — the reduced-motion matrix in motion.css
   (loaded last) collapses the duration to ~0 */
.tabs-panel pre { margin: 10px 0; }
.tabs-panel p { max-width: none; }

/* docs search (prebuilt index, client-side — site.js) */
.docs-search { position: relative; }
.docs-search input {
  width: 200px;
  padding: 7px 30px 7px 30px;
  font-size: 12.5px;
  background: var(--bg-panel);
}
.docs-search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--ink-tertiary); pointer-events: none;
}
.docs-search-kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 10px; padding: 1px 5px;
  color: var(--ink-tertiary);
}
.docs-results {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  width: min(440px, 80vw);
  max-height: 440px;
  overflow-y: auto;
  background: var(--bg-overlay);
  border-radius: var(--r-lg);
  padding: 6px;
  z-index: 50;
  box-shadow: var(--inset-highlight), var(--shadow-ambient);
}
.docs-result {
  display: block;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
}
.docs-result:hover, .docs-result[aria-selected="true"] {
  background: var(--fill-strong);
  text-decoration: none;
}
.docs-result-title { display: block; font: var(--weight-ui) 13px/1.4 var(--font-sans); }
.docs-result-title .docs-result-group {
  color: var(--ink-tertiary);
  font: 500 11px/1.4 var(--font-mono);
  margin-left: 8px;
}
.docs-result-meta {
  display: block;
  margin-top: 2px;
  font: 400 11.5px/1.5 var(--font-sans);
  color: var(--ink-tertiary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.docs-empty {
  margin: 0; padding: 10px;
  font: 400 12.5px/1.5 var(--font-sans);
  color: var(--ink-tertiary);
}

/* responsive: TOC drops at <1280 (media query above); at <900 the rail
   becomes a static block above the content (still collapsible) */
@media (max-width: 900px) {
  .docs-frame { grid-template-columns: 1fr; grid-template-areas: "nav" "main"; }
  .docs-nav {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .docs-main { padding: 8px 20px 72px; }
  .docs-search input { width: 140px; }
  .docs-head-in { flex-wrap: wrap; height: auto; padding: 10px 24px; }
}

/* ════════════════════════════════════════════════════════════════════
   REMAKE PASS — index marketing page (2026 restyle). Doctrine: dark,
   luminance-stepped depth, borderless containers, single signal lane,
   no third hue, no decorative gradients. Only CSS. Same selectors, so
   existing JS hooks (#soc-pipeline, .rv, .glow-cta) are preserved.
   ════════════════════════════════════════════════════════════════════ */

/* ── hero: bigger display type, signal-line separator, premium CTAs ── */
.hero { padding: 84px 0 26px; }
.hero h1 {
  font-size: clamp(3.4rem, 6.8vw, 5.4rem);
  line-height: 0.97;
  letter-spacing: -0.032em;
  margin: 22px 0 20px;
}
.hero .signal-line {
  display: block;
  height: 1px;
  width: min(620px, 100%);
  margin: 4px 0 24px;
  background: rgba(255,255,255,0.16);
  position: relative;
}
.hero .signal-line::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 72px; height: 3px;
  background: #ffffff;
  border-radius: 2px;
}
.hero .tagline {
  font-size: 1.22rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  color: #a9aeb8;
  max-width: 34ch;
  margin: 0 0 30px;
}
.hero .eyebrow {
  padding: 9px 14px;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.hero .eyebrow .dot { box-shadow: 0 0 10px var(--ok); }
.hero .eyebrow a { font-weight: 600; color: #cdd0d6; }
.cta-row { gap: 14px; }
.btn, .btn.btn-sm { padding: 13px 22px; font-size: 15px; border-radius: var(--r-md); }
.btn.btn-primary, .btn.btn-primary.glow-cta {
  box-shadow: var(--inset-highlight), 0 8px 28px -6px rgba(255,255,255,0.38), var(--glow-accent);
  letter-spacing: 0.005em;
}
.btn.btn-primary:hover, .btn.btn-primary.glow-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--inset-highlight), 0 12px 38px -6px rgba(255,255,255,0.5), var(--glow-accent);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ── trust strip: stronger claims without losing the ticker rhythm ── */
.trust { margin: 36px 0 0; }
.trust-label { font-size: 12px; letter-spacing: 0.13em; }
.trust-track .claim b { font-size: 18px; }
.trust-track .claim i { font-size: 11.5px; }
.trust-standards { margin-top: 14px; }

/* ── section rhythm: more air between the major acts ── */
.pillars { margin-top: 72px; }
.proof { margin-top: 76px; }
.quote { padding: 64px 0; }
.sectors { margin-top: 72px; }
.cta-band { margin-top: 80px; }

/* ── cards: deeper elevation, consistent rhythm ── */
.mock, .mock-body, figure.shot {
  box-shadow: var(--inset-highlight), var(--shadow-ambient), 0 24px 60px -28px rgba(0,0,0,.55);
}
.gate-card {
  box-shadow: var(--inset-highlight), var(--shadow-ambient), 0 20px 56px -30px rgba(0,0,0,.55);
}
.gate-glyph {
  font-size: 26px;
  background: var(--accent-soft);
}
.sector {
  min-height: 150px;
  box-shadow: var(--inset-highlight), var(--shadow-ambient), 0 18px 44px -26px rgba(0,0,0,.5);
}
.sector:hover { transform: translateY(-2px); }
.quote blockquote {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.35;
  max-width: 780px;
}
.quote figcaption { font-size: 13.5px; }
.quote { border-top: 1px solid var(--line-soft); }
.cta-band {
  padding: 56px 54px;
  background: var(--bg-overlay);
  box-shadow: var(--inset-highlight), var(--shadow-ambient), var(--glow-accent), 0 30px 80px -32px rgba(0,0,0,.7);
}
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.cta-band p { max-width: 52ch; }
.cta-copy { gap: 16px; }

/* ── pillars: each decision card lifts slightly on the active side ── */
.pillar-panel {
  box-shadow: var(--inset-highlight), var(--shadow-ambient), 0 24px 60px -30px rgba(0,0,0,.6);
}
.pillar-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 24px;
  height: 2px;
  width: 72px;
  background: #ffffff;
  border-radius: 2px;
  opacity: 0.75;
}
.pillar-panel { position: relative; }

/* ── FAQ blocks: airier reading rhythm ── */
#faq h3 { font-size: 1.05rem; margin-top: 1.4em; }
#faq p { margin: 8px 0 0; color: var(--ink-secondary); font-size: 15.5px; }

/* ── CTA buttons inside bands ── */
.cta-row .btn { padding: 13px 24px; }

@media (prefers-reduced-motion: reduce) {
  .sector, .btn, .btn:hover, .btn.btn-primary:hover, .btn.btn-primary:active {
    transform: none !important; transition: none !important;
  }
  .hero h1 { text-shadow: none; }
}

/* ══ status section — honest capability map (added 2026-11-26) ══ */
.status { margin-top: 76px; }
.status-sub { color: var(--ink-tertiary); font-size: 15px; margin: 8px 0 26px; max-width: 58ch; }
.status-list { display: grid; gap: 14px; }
.status-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  box-shadow: var(--inset-highlight), var(--shadow-ambient);
  align-items: start;
}
.status-dot { font-size: 15px; line-height: 1.6; }
.status-shipped .status-dot { color: var(--ok-ink); }
.status-inprogress .status-dot { color: var(--warn-ink); }
.status-notclaimed .status-dot { color: var(--ink-tertiary); }
.status-copy h3 { font-size: 1rem; letter-spacing: 0.01em; margin: 0 0 6px; }
.status-copy p { color: var(--ink-secondary); font-size: 14.5px; line-height: 1.65; margin: 0; max-width: 72ch; }
.status-copy strong { color: var(--ink); font-weight: 600; }

/* ════════════════════════════════════════════════════════════════════
   TORQ ENVELOPE — surface overrides (2026 re-skin).
   Pure-black ground, white pill CTAs, IBM Plex Mono labels, big display
   type, staggered feature tiles, borderless cards. Overrides the earlier
   remake pass via source order.
   ════════════════════════════════════════════════════════════════════ */

/* ── buttons ────────────────────────────────────────────────────── */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: #ffffff;
}
.btn-ghost:hover { background: var(--fill); border-color: rgba(255,255,255,0.4); }
.btn-primary {
  color: #000000;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary.glow-cta {
  box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 10px 36px -8px rgba(255,255,255,0.35);
}
.btn-primary.glow-cta:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.4), 0 14px 44px -8px rgba(255,255,255,0.45);
}
.cta-row { gap: 12px; justify-content: center; }
.cta-band .cta-row { justify-content: flex-start; }

/* ── header ─────────────────────────────────────────────────────── */
.site-head { border-bottom: 1px solid var(--line-soft); }
.brand-mark { background: #ffffff; box-shadow: none; }
.brand-sub { color: var(--ink-secondary); }

/* ── hero: centered, display-sized, white-pill CTA ────────────────── */
.hero {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  padding: 76px 24px 30px;
}
.hero .eyebrow { justify-content: center; }
.hero h1 {
  font-size: clamp(3.4rem, 7.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.032em;
  margin: 18px auto 16px;
  max-width: 16ch;
  text-shadow: none;
}
.hero .tagline {
  margin: 0 auto 28px;
  max-width: 46ch;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* ── section chrome (kicker / title / sub) ───────────────────────── */
.section-kicker {
  display: block;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.026em;
  font-weight: var(--weight-heading);
  margin: 0 0 14px;
}
.section-sub {
  color: var(--ink-secondary);
  font-size: 1.06rem;
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 0 30px;
}

/* ── trust/proof band ───────────────────────────────────────────── */
.trust, .proof-band { margin: 40px 0 0; }
.proof-band { padding: 0 0 8px; }
.trust-label { color: var(--ink-tertiary); }
.inttile {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  color: var(--ink-secondary);
}
.inttile.mitre {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.22);
}

/* ── action / product section ───────────────────────────────────── */
.action { margin: 56px 0 0; }
.action .pipeline-head .t { letter-spacing: 0.09em; }

/* ── feature tiles (Torq pattern) ───────────────────────────────── */
.features { margin: 56px 0 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature-tile {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: none;
  transition: border-color 160ms ease, transform 160ms ease;
}
.feature-tile:hover { border-color: var(--line); transform: translateY(-2px); }
.feature-spot { width: 32px; height: 32px; }
.feature-tile h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: var(--weight-heading);
  margin: 4px 0 0;
}
.feature-tile > p {
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.feature-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  margin-top: auto;
}
.feature-list li {
  font: 500 12px/1.45 var(--font-mono);
  color: var(--ink-tertiary);
  display: flex;
  gap: 8px;
}
.feature-list li::before { content: "—"; color: var(--ink-tertiary); flex: none; }
.features .pillar-more {
  display: inline-block;
  margin-top: 28px;
  font: 600 13px/1 var(--font-sans);
  letter-spacing: -0.005em;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
}
.features .pillar-more:hover { border-color: #ffffff; }

/* ── quote: centered, display type ──────────────────────────────── */
.quote { padding: 72px 24px 0; text-align: center; }
.quote blockquote {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.32;
  letter-spacing: -0.02em;
  font-weight: var(--weight-heading);
  max-width: 800px;
  margin: 0 auto;
  background: none;
  border: 0;
  padding: 0;
  color: #ffffff;
}
.quote figcaption { color: var(--ink-tertiary); font-size: 13.5px; margin-top: 22px; }

/* ── status: plain borderless rows ─────────────────────────────── */
.status-row { border: 1px solid var(--line-soft); border-radius: var(--r-lg); }

/* ── proof / gates ─────────────────────────────────────────────── */
.gate-glyph { background: rgba(255,255,255,0.08); color: #ffffff; border: 1px solid var(--line); }
.gate-card {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}

/* ── decision ──────────────────────────────────────────────────── */
.decision { border-radius: var(--r-lg); }
.decision h2 { letter-spacing: -0.02em; }

/* ── sectors ───────────────────────────────────────────────────── */
.sector { border-radius: var(--r-lg); border: 1px solid var(--line-soft); }

/* ── cta band ──────────────────────────────────────────────────── */
.cta-band {
  margin-top: 72px;
  padding: 56px;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  box-shadow: none;
}
.cta-band h2 { letter-spacing: -0.026em; }

/* ── FAQ ───────────────────────────────────────────────────────── */
#faq h3 { color: #ffffff; }

/* ── footer ─────────────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--line-soft);
  padding: 28px 0 44px;
  color: var(--ink-secondary);
  background: #000000;
}
.site-foot p { max-width: 720px; margin: 0 0 6px; }

/* ── responsive ────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding: 56px 20px 24px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); letter-spacing: -0.026em; }
  .feature-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .quote { padding: 48px 16px 0; }
}

/* ── header CTA pill (Torq pattern: white pill, top-right) ──────── */
.head-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* ── footer columns ─────────────────────────────────────────────── */
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font: var(--weight-heading) 15px/1 var(--font-sans);
  letter-spacing: -0.01em;
  color: #ffffff;
  text-decoration: none;
}
.foot-brand:hover { text-decoration: none; }
.foot-blurb { color: var(--ink-secondary); font-size: 13px; line-height: 1.55; margin: 0; max-width: 30ch; }
.foot-h {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 4px;
}
.foot-col a {
  color: var(--ink-secondary);
  font-size: 13px;
  text-decoration: none;
  justify-self: start;
}
.foot-col a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.foot-hq { color: var(--ink-secondary); font-size: 13px; margin: 0; }
.foot-copy { padding: 16px 0 0; margin: 0; font-size: 12px; }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ══ REDESIGN 2 — hero: centered, bold, static-first ═══════════════
   Torq pattern: one message, giant type, one pill CTA, breathing room.
   Monochrome only. The motion lives around the hero (scroll reveal,
   pipeline, marquee) — never behind the type. */

.hero-stage {
  position: relative;
  overflow: hidden;
  padding: 64px 40px 72px;
}
.hero-stage .hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  align-items: center; gap: 56px;
  max-width: 1180px; margin: 0 auto;
  min-height: 460px;
}
.hero-stage .hero-copy { max-width: 640px; }

/* aurora behind the hero — one white radial, not the indigo stage */
.hero-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-aurora-a {
  width: 520px; height: 520px;
  top: -160px; left: 50%; margin-left: -260px;
  background: radial-gradient(circle, rgba(255,255,255,.10), transparent 66%);
  animation: hero-aurora-drift-a 14s ease-in-out infinite alternate;
}
.hero-aurora-b {
  width: 480px; height: 380px;
  bottom: -220px; left: 18%;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 66%);
  animation: hero-aurora-drift-b 16s ease-in-out infinite alternate;
}
@keyframes hero-aurora-drift-a {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.12); }
}
@keyframes hero-aurora-drift-b {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-34px, -18px) scale(1.06); }
}

/* grain */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background-image: radial-gradient(rgba(255,255,255,.5) 0.6px, transparent 0.6px);
  background-size: 5px 5px;
  mix-blend-mode: overlay;
}

/* eyebrow — mono pill, centered */
.hero-stage .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 26px;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-secondary);
  background: var(--fill-faint);
  border: 1px solid rgba(255,255,255,.14);
  padding: 8px 16px; border-radius: 999px;
  margin: 0 0 30px;
  transition: border-color 300ms, color 300ms;
}
.hero-stage .eyebrow:hover { border-color: rgba(255,255,255,.30); color: var(--ink); }
.hero-stage .eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 0 10px #fff;
  animation: breathe 2.2s ease-in-out infinite;
}
.hero-stage .eyebrow .chip-x { display: none; }
.hero-stage .eyebrow.dismissed { display: none; }

/* giant display headline — platinum sweep */
.hero-stage h1 {
  font-size: clamp(3rem, 5.6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.036em;
  font-weight: 640;
  margin: 0 0 22px;
  text-wrap: balance;
  text-align: left;
}
.hero-stage .cw > span {
  background: linear-gradient(112deg, #ffffff 0%, #e9ebf6 38%, #ffffff 50%, #d5d9ee 64%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hero-sweep 7s cubic-bezier(.45,0,.55,1) infinite, word-up 620ms var(--ease-out) forwards;
  animation-delay: 0s, calc(120ms + var(--i, 0) * 45ms);
  text-shadow: none;
}
@keyframes hero-sweep {
  0%   { background-position: 0% 50%; }
  100% { background-position: -220% 50%; }
}

/* one message, centered */
.hero-stage .tagline {
  color: var(--ink-secondary);
  font-size: 1.1rem;
  line-height: 1.66;
  max-width: 46ch;
  margin: 0 0 30px;
  font-weight: 450;
}

/* single primary CTA — white pill (Torq primary) */
.hero-stage .cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-door {
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color .25s;
}
.hero-door:hover { color: var(--ink); text-decoration: none; }

/* live status strip — subtle, centered */
.hero-status {
  display: inline-flex; align-items: center; gap: 14px;
  text-align: left;
  font: 600 11px/1.5 var(--font-mono);
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-secondary);
}
.hero-status .status-dot-live { color: var(--ok-ink); text-shadow: 0 0 10px var(--ok-ink); animation: glass-pulse 2.2s ease-in-out infinite; }
.hero-status .status-text { color: var(--ink); }
.hero-status .status-detail { color: var(--ink-tertiary); letter-spacing: 0.05em; text-transform: none; font-weight: 500; }
@keyframes glass-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }


/* ── right column: live gate-check banner (the honest cousin of a cert
   badge) — mono label, scrolling marquee, footer tick. ── */
.hero-gate {
  position: relative;
  align-self: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  padding: 22px 20px 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-gate::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) .6px, transparent .6px);
  background-size: 5px 5px;
  opacity: .35;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-gate-head {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.hero-gate-label {
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-interactive);
}
.hero-gate-arrow {
  font-size: 18px; line-height: 1;
  color: var(--ink-tertiary);
}
.hero-gate-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  padding: 6px 0 22px;
}
.hero-gate-track {
  display: inline-flex;
  white-space: nowrap;
  animation: hero-gate-marquee 24s linear infinite;
}
.hero-gate-track .claim {
  display: inline-flex; align-items: baseline; gap: 10px;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.03em;
  padding-right: 38px; flex: none;
}
.hero-gate-track .claim b {
  font: 700 17px/1.2 var(--font-mono);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-gate-track .claim i {
  font: 500 10.5px/1 var(--font-mono);
  font-style: normal; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-tertiary);
}
.hero-gate-foot {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 12px;
  margin-top: 10px;
}
.hero-gate-dot {
  font-size: 9px; line-height: 1;
  color: var(--ok-ink); text-shadow: 0 0 8px var(--ok-ink);
  animation: glass-pulse 2.2s ease-in-out infinite;
}
.hero-gate-foot-text {
  font: 500 10.5px/1.4 var(--font-mono);
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-secondary);
}
@keyframes hero-gate-marquee { to { transform: translateX(-50%); } }
@media (max-width: 920px) {
  .hero-stage .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
    padding-top: 12px;
    text-align: center;
    justify-items: center;
  }
  .hero-stage .hero-copy {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    display: flex; flex-direction: column; align-items: center;
  }
  .hero-stage .eyebrow,
  .hero-stage .hero-status { justify-content: center; }
  .hero-stage .hero-status { text-align: center; }
  .hero-gate {
    align-self: stretch;
    text-align: left;
  }
  .hero-stage .cta-row { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-gate-track { animation: none; }
  .hero-gate-dot { animation: none !important; }
  .hero-gate-marquee { max-height: 64px; overflow: hidden; }
}

@media (max-width: 720px) {
  .hero-stage { padding: 64px 22px 60px; }
  .hero-stage h1 { font-size: clamp(2.5rem, 12.6vw, 3.9rem); }
  .hero-stage .tagline { font-size: 1.05rem; }
  .hero-status { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-aurora, .hero-status .status-dot-live { animation: none !important; }
  .hero-stage .cw > span { background: none; color: var(--ink); animation: none !important; text-shadow: 0 1px 0 rgba(255,255,255,.05), 0 10px 26px rgba(0,0,0,.55); }
}

/* ── whole-page glass pass (cinematic 3D design language) ─────────────
   One shared treatment across the landing: glass surfaces for every card
   and table region, consistent section type, subtle page aurora.
   Every rule is inert under reduced motion. */

/* page-wide aurora — one dim radial glow behind everything, not per section */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 560px at 78% -8%, rgba(255,255,255,.09), transparent 66%),
    radial-gradient(760px 480px at 8% 108%, rgba(255,255,255,.05), transparent 66%);
  filter: blur(30px);
}

/* section title typography: physical plate on every page, not just hero */
.section-title {
  text-shadow: 0 1px 0 rgba(255,255,255,.05), 0 10px 28px rgba(0,0,0,.55);
}
.section-kicker {
  text-shadow: 0 0 14px rgba(255,255,255,.12);
}

/* shared glass surface pattern */
.feature-tile,
.sector,
.gate-card,
.status-row {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015) 52%, transparent 88%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.38),
    0 24px 50px -22px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(6px) saturate(1.25);
  backdrop-filter: blur(6px) saturate(1.25);
  transition: transform 320ms cubic-bezier(.23, 1, .32, 1), box-shadow 320ms cubic-bezier(.23, 1, .32, 1), border-color 320ms;
}
.feature-tile:hover,
.sector:hover,
.gate-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(0,0,0,.4),
    0 38px 70px -28px rgba(0,0,0,.7),
    0 0 44px -8px rgba(255,255,255,.14);
}

/* table region: glass frame instead of flat */
table.table {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 30px 60px -26px rgba(0,0,0,.62);
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.012) 60%, transparent 92%);
}

/* status band: treat the WHOLE row as a glass strip, not a card */
.status-list { display: flex; flex-direction: column; gap: 14px; }
.status-row {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  align-items: start;
}

/* CTA band: keep the glass shell but deepen the ambient glow */
.cta-band {
  box-shadow:
    var(--shadow-ambient),
    0 0 90px -24px rgba(255,255,255,.16);
}

/* feature tiles: slightly taller lift on touch-sized devices */
@media (hover: none) {
  .feature-tile:hover, .sector:hover, .gate-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-tile, .sector, .gate-card, .status-row, .cta-band {
    transition: none !important;
    transform: none !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.10),
      inset 0 -1px 0 rgba(0,0,0,.38),
      0 24px 50px -22px rgba(0,0,0,.6);
  }
  .feature-tile:hover, .sector:hover, .gate-card:hover { transform: none !important; }
  body::before { animation: none !important; }
}

/* ── whole-page component glass pass V2: every remaining component ────
   trust band, decision/invoice mock, quote, FAQ, gate chips, box art —
   all in the same language as the hero and pipeline. */

/* trust band: glass frame around the gates/tooling strip */
.proof-band {
  margin: 40px 0 0;
  padding: 22px 24px 18px;
  background:
    radial-gradient(rgba(255,255,255,.12) .55px, transparent .55px),
    linear-gradient(162deg, rgba(255,255,255,.055), rgba(255,255,255,.015) 55%, transparent 92%);
  background-size: 5px 5px, auto;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.11),
    inset 0 -1px 0 rgba(0,0,0,.36),
    0 30px 60px -26px rgba(0,0,0,.58);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  backdrop-filter: blur(8px) saturate(1.2);
}
.trust-label { text-shadow: 0 1px 0 rgba(255,255,255,.06); }
.inttile {
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 70%, transparent 92%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.30),
    0 10px 22px -14px rgba(0,0,0,.65);
  transition: transform 260ms cubic-bezier(.23,1,.32,1), box-shadow 260ms, border-color 260ms;
}
.inttile:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 16px 28px -14px rgba(0,0,0,.7);
}
.inttile.mitre {
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.07) 70%);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(0,0,0,.30),
    0 10px 26px -12px rgba(255,255,255,.22);
}
.trust-standards { color: var(--ink-tertiary); }

/* invoice/problem section: glass shell around the whole editorial block */
.decision.problem {
  background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 56%, transparent 94%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  padding: 40px 42px;
  margin: 48px 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.34),
    0 36px 70px -30px rgba(0,0,0,.66);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  backdrop-filter: blur(6px) saturate(1.2);
}
.decision.problem h2 { text-shadow: 0 1px 0 rgba(255,255,255,.05), 0 10px 26px rgba(0,0,0,.55); }
.mock {
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015) 60%, transparent 94%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.32),
    0 26px 50px -24px rgba(0,0,0,.68);
  -webkit-backdrop-filter: blur(8px) saturate(1.25);
  backdrop-filter: blur(8px) saturate(1.25);
}

/* quote figure: glass frame, not a bordered line */
.quote {
  margin: 48px auto;
  padding: 40px 42px 34px;
  max-width: 780px;
  text-align: center;
  background: linear-gradient(165deg, rgba(255,255,255,.055), rgba(255,255,255,.014) 60%, transparent 94%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.11),
    inset 0 -1px 0 rgba(0,0,0,.34),
    0 34px 60px -28px rgba(0,0,0,.60);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  backdrop-filter: blur(6px) saturate(1.2);
}
.quote blockquote { text-shadow: 0 1px 0 rgba(255,255,255,.06), 0 12px 30px rgba(0,0,0,.5); }

/* FAQ: glass shell; h3 phrasing kept natural but elevated */
#faq {
  margin: 48px 0 0;
  padding: 34px 40px 22px;
  background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.012) 60%, transparent 94%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    inset 0 -1px 0 rgba(0,0,0,.30),
    0 30px 56px -26px rgba(0,0,0,.56);
}
#faq h2 { text-shadow: 0 1px 0 rgba(255,255,255,.05), 0 10px 26px rgba(0,0,0,.55); }
#faq h3 { text-shadow: 0 1px 0 rgba(255,255,255,.05), 0 6px 18px rgba(0,0,0,.5); }

/* gate chips: physical pressed-in plate */
.gate-glyph {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(0,0,0,.42),
    0 5px 12px -4px rgba(0,0,0,.7);
}

/* appliance box render: reflective floor shadow + soft glow behind it */
.box-art {
  position: relative;
  filter: drop-shadow(0 30px 42px rgba(0,0,0,.6)) drop-shadow(0 0 40px rgba(255,255,255,.16));
}

@media (prefers-reduced-motion: reduce) {
  .inttile { transition: none !important; transform: none !important; }
  .inttile:hover { transform: none !important; }
  .box-art { filter: drop-shadow(0 24px 34px rgba(0,0,0,.55)); }
}

.btn.magnet { will-change: transform; }

/* shine sweep on CTA hover */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: -12%; bottom: -12%;
  left: -80%; width: 52%;
  background: linear-gradient(104deg, transparent, rgba(255,255,255,.6), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 680ms cubic-bezier(.22,1,.32,1);
}
.btn:hover::after, .btn:focus-visible::after { left: 132%; }

/* page-wide cursor spotlight (decorative) */
.site-spotlight {
  position: fixed;
  left: -340px; top: -340px;
  width: 680px; height: 680px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 34%, transparent 68%);
  opacity: 0;
  transition: opacity 500ms ease;
  will-change: transform;
}
html.spotlight-on .site-spotlight { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-stage h1 .cw > span {
    background: none; color: var(--ink); animation: none !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.05), 0 10px 26px rgba(0,0,0,.55);
  }
  .btn::after { transition: none; }
  .site-spotlight { display: none; }
}

/* ── transitions & effects: scroll progress, blur reveal, gradient ring ── */

/* fixed scroll progress bar — thin gradient line, top, follows the page */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 60;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, #ffffff 0%, #d9dce8 55%, #ffffff 100%);
  box-shadow: 0 0 18px 1px rgba(255,255,255,.35);
}

/* section entrances gain a blur + rise — only where the view() timeline
   is unsupported (it owns the animation there, and would fight this rule) */
@supports not (animation-timeline: view()) {
  .rv {
    transition: opacity 640ms cubic-bezier(.23,1,.32,1), transform 640ms cubic-bezier(.23,1,.32,1), filter 640ms cubic-bezier(.23,1,.32,1);
  }
  html.js .rv:not(.rv--on) { opacity: 0; transform: translateY(26px); filter: blur(7px); }
  html.js .rv.rv--on { opacity: 1; transform: none; filter: none; }
}

/* gradient ring + slow rotate on the CTA band (decorative) */
.cta-band {
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -1.2px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from 120deg, transparent 0deg, rgba(255,255,255,.75) 70deg, transparent 140deg, rgba(255,255,255,.45) 250deg, transparent 330deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  animation: ring-spin 7s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(1turn); } }

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .cta-band::before { animation: none; }
  html.js .rv:not(.rv--on) { opacity: 1; transform: none; filter: none; }
}

/* ── still mode — static final frame (?still=1) ──────────────────────
   Screenshot/verify escape hatch: everything visible, nothing animated. */
html.still .rv, html.still .rv--on {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
  transition: none !important;
}
html.still .clip-hero .cw > span,
html.still .hero-stage .cw > span {
  animation: none !important;
  transform: none !important;
}
html.still .hero-aurora, html.still .hero-grain,
html.still .hero-status .status-dot-live,
html.still .eyebrow .dot,
html.still .hero-grain {
  animation: none !important;
}
html.still .scroll-progress { transform: scaleX(1) !important; }

/* ── benefit rows: torq-pattern 3-column benefit module ───────────── */
.benefit-rows {
  list-style: none; padding: 0; margin: 34px auto 28px;
  max-width: 880px; border-top: 1px solid rgba(255,255,255,.12);
}
.benefit-rows li {
  display: grid; grid-template-columns: 64px 1fr auto;
  align-items: center; gap: 22px;
  padding: 26px 8px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: background 300ms;
}
.benefit-rows li:hover { background: rgba(255,255,255,.025); }
.benefit-rows .benefit-num {
  font: 700 13px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--ink-tertiary);
}
.benefit-rows strong {
  display: block;
  font-size: 1.45rem; font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.14;
  margin: 0 0 8px;
  text-wrap: balance;
}
.benefit-rows p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 1.02rem; line-height: 1.6; max-width: 58ch;
}
.benefit-rows .benefit-arrow {
  font-size: 24px; line-height: 1;
  color: var(--ink-tertiary);
  transition: color .25s, transform .25s;
}
.benefit-rows li:hover .benefit-arrow { color: var(--ink); transform: translateX(5px); }
@media (max-width: 640px) {
  .benefit-rows li { grid-template-columns: 1fr; gap: 12px; padding: 22px 4px; }
  .benefit-rows .benefit-num { order: 2; }
  .benefit-rows .benefit-arrow { display: none; }
  .benefit-rows strong { font-size: 1.3rem; }
}


/* ── mobile nav toggle (base: hidden until the 720px media query shows it) ── */
.nav-toggle { display: none; }

/* ── mobile-native pass: slim sticky header + hamburger panel ────────
   Research (2026): hamburger-as-overflow keeps one visible primary action
   (Brand + "Run the live demo") and hands the rest to a panel. Targets are
   ≥44px (Apple HIG) / 48px (Material), spacing between targets ≥8px.
   This block owns the mobile header path; the desktop flex layout above is
   untouched. Docs header uses the same panel via display:contents. */
@media (max-width: 720px) {
  .head-in {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    column-gap: 10px;
    height: 56px;
    padding: 0 14px;
  }
  .site-head { height: 56px; }
  .brand { font-size: 14.5px; letter-spacing: -0.01em; }
  .brand-sub { font-size: 10.5px; }
  .head-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
    white-space: nowrap;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    padding: 0;
    border: 1px solid var(--line-soft);
    border-radius: var(--r-sm);
    background: var(--fill);
    cursor: pointer;
    flex: none;
    position: relative;
  }
  .nav-toggle:hover { border-color: rgba(255,255,255,0.22); }
  .nav-toggle:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px; }
  .nav-toggle-x {
    display: block; position: relative; width: 16px; height: 12px;
  }
  .nav-toggle-x::before, .nav-toggle-x::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 1.6px;
    background: var(--ink); border-radius: 2px; transition: transform 220ms ease, top 220ms ease, opacity 220ms ease;
  }
  .nav-toggle-x::before { top: 3px; }
  .nav-toggle-x::after { top: 9px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-x::before { top: 6px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-x::after { top: 6px; transform: rotate(-45deg); }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(0,0,0,0.97);
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 14px 14px;
    z-index: 60;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 22px 40px -18px rgba(0,0,0,0.85);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    display: flex; align-items: center;
    min-height: 48px;
    padding: 13px 12px;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    border-radius: var(--r-sm);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a[aria-current="page"] { background: var(--fill); color: #fff; }
  /* docs header: keep toggle outside the flex row; hide search on small screens */
  .docs-tools { display: contents; }
  .docs-search { display: none; }
  /* tight sticky-bar shadow so the header floats off the content */
  .site-head { box-shadow: 0 8px 24px -16px rgba(0,0,0,0.9); }
}
@media (max-width: 480px) {
  /* primary CTA full-width in the hero; header keeps brand + toggle only */
  .head-cta { display: none; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-row .btn { width: 100%; min-height: 48px; text-align: center; justify-content: center; }
  .hero .cta-row .btn, .hero-cta { width: 100%; }
  .hero-gate { padding: 18px; }
}
@media (min-width: 721px) {
  .nav-toggle { display: none; }
}

/* ── interactive gate-check demo (aiso-x07) ──────────────────────────
   Three canned events; one click runs the real pipeline shape (triaging
   → verdict stamp-in → signed receipt). Static markup IS the final frame
   (event 0) — reduced motion and no-JS both land here. All dynamics are
   class toggles + transitions/keyframes; no JS layout properties. */
.gate-demo {
  margin: 44px 0 0;
  padding: 20px 22px 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  background:
    radial-gradient(rgba(255,255,255,.10) .55px, transparent .55px),
    linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 58%, transparent 92%);
  background-size: 5px 5px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 30px 60px -28px rgba(0,0,0,.60);
  display: flex; flex-direction: column; gap: 14px;
}
.gate-demo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.gate-demo-note { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-tertiary); }
.gate-demo-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.gate-demo-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 10px 14px; min-height: 48px; min-width: 150px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.04);
  font-family: inherit; text-align: left; cursor: pointer;
  transition: transform 200ms cubic-bezier(.23,1,.32,1), border-color 200ms, background 200ms;
}
.gate-demo-chip b { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.gate-demo-chip span { font-size: 10.5px; color: var(--ink-secondary); }
.gate-demo-chip:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.07); transform: translateY(-2px); }
.gate-demo-chip:focus-visible { outline: 2px solid rgba(255,255,255,.55); outline-offset: 2px; }
.gate-demo-chip[aria-pressed="true"] {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.10);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 12px 26px -14px rgba(0,0,0,.8);
}
.gate-demo-stage {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-sm);
  background: rgba(0,0,0,.45);
  padding: 14px 16px; min-height: 96px;
  align-content: center;
}
.gate-demo-verdict { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gate-demo-verdict b {
  font-size: 22px; font-weight: 700; letter-spacing: .02em;
  position: relative;
}
.gate-demo-verdict .gd-note { font-size: 12.5px; color: var(--ink-secondary); }
.gate-demo-receipt { font-family: var(--font-mono, monospace); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-tertiary); }
.gate-demo-foot { margin: 0; font-size: 11.5px; color: var(--ink-tertiary); letter-spacing: .02em; }
/* triaging spinner */
.gate-demo-verdict.triaging b { color: var(--ink-secondary); letter-spacing: .18em; animation: gd-pulse 900ms ease-in-out infinite alternate; }
@keyframes gd-pulse { from { opacity: .35; } to { opacity: 1; } }
/* verdict stamp-in (one-shot) */
.gate-demo-verdict.stamp b { animation: gd-stamp 420ms cubic-bezier(.2,1.6,.3,1) both; }
@keyframes gd-stamp {
  0% { transform: scale(1.55) rotate(-5deg); opacity: 0; }
  60% { transform: scale(0.92) rotate(0.8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.gate-demo-receipt.reveal { animation: gd-fade 500ms cubic-bezier(.22,.61,.36,1) both; }
@keyframes gd-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* reduced motion / still — final frame, no animation (handled in the still gate below) */
@media (prefers-reduced-motion: reduce) {
  .gate-demo-verdict.triaging b,
  .gate-demo-verdict.stamp b,
  .gate-demo-receipt.reveal { animation: none !important; }
}
html.still .gate-demo-verdict.triaging b,
html.still .gate-demo-verdict.stamp b,
html.still .gate-demo-receipt.reveal { animation: none !important; }
@media (max-width: 720px) {
  .gate-demo { padding: 16px 16px 14px; }
  .gate-demo-chips { gap: 8px; }
  .gate-demo-chip { flex: 1 1 100%; min-width: 0; min-height: 52px; }
  .gate-demo-head { flex-direction: column; gap: 4px; }
}

/* ── sales strip: three proof numbers, the headline beat ─────────
   Big display numerals roll in on first view (.roll + data-prefix/
   data-suffix). Static text is the settled frame. */
.sales-strip {
  margin: 40px auto 0;
  max-width: 1080px;
  padding: 22px 24px 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background:
    radial-gradient(rgba(255,255,255,.11) .55px, transparent .55px),
    linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.015) 55%, transparent 94%);
  background-size: 5px 5px, auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 30px 60px -30px rgba(0,0,0,.7);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.strip-label {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-tertiary);
}
.strip-nums {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 26px;
  width: 100%;
}
.strip-num {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 6px 10px;
  min-width: 0;
}
.strip-num b {
  font-family: var(--font-display, inherit);
  font-size: clamp(38px, 5.6vw, 60px);
  font-weight: 700; letter-spacing: -0.03em; color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.strip-num i {
  font-style: normal; font-size: 12px; letter-spacing: .04em;
  color: var(--ink-secondary); text-transform: uppercase; letter-spacing: .12em;
}
@media (max-width: 720px) {
  .sales-strip { padding: 18px 16px 16px; border-radius: 16px; gap: 12px; }
  .strip-nums { gap: 10px; }
  .strip-num i { font-size: 10.5px; letter-spacing: .1em; }
  .strip-num b { font-size: clamp(30px, 9vw, 40px); }
}
