/* ============================================================
   Fixpoint Technologies — Design System
   Classified-Terminal Institutionalism (national security x AI)
   Single source of truth for all pages. See .stitch/DESIGN.md
   (Re-aligned from the real Stitch home screen 68b40d89...)
   ============================================================ */

/* ---- Tokens ---------------------------------------------- */
:root {
  /* Color — graphite-black canvas */
  --bg:            #0a0a0c;   /* Void Graphite — deepest base */
  --surface:       #131315;   /* Command Console Black — primary surface */
  --surface-1:     #131315;   /* alias (cards/containers) */
  --surface-low:   #0e0e10;   /* Vault Black — recessed bands */
  --surface-2:     #1c1b1d;   /* Interrogation Slate — hover shift */
  --border:        #434655;   /* Structural Slate outline */
  --border-strong: #565b6b;   /* stronger divider */
  --hairline:      #30363d;   /* fine signal lines */

  /* Two-tone blue accent */
  --accent:        #b4c5ff;   /* Signal Periwinkle — accent text / marks */
  --accent-dim:    #8f9fd6;   /* muted periwinkle */
  --action:        #2563eb;   /* Tactical Electric Blue — primary button fill */
  --action-bright: #3b74f5;   /* hover */
  --on-action:     #eef2ff;   /* text on electric blue */

  /* Text */
  --text:          #e5e1e4;   /* Near-White Signal */
  --text-muted:    #c3c6d7;   /* Muted Recon Gray */
  --text-dim:      #8d90a0;   /* dim captions / indices */

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Geometry — sharp, machined */
  --radius:    0px;
  --radius-lg: 0px;
  --container: 1280px;

  /* Rhythm */
  --gutter: 16px;
  --margin: 48px;
}

/* ---- Reset ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Faint radar dot-grid across the whole page */
  background-image: radial-gradient(rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  color: var(--text); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0; text-transform: uppercase;
}
p { margin: 0; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
::selection { background: rgba(37,99,235,0.4); color: #fff; }

/* Custom scrollbar — institutional feel */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--hairline); }
::-webkit-scrollbar-thumb:hover { background: var(--action); }

/* ---- Layout helpers -------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--margin);
}
/* ScrollSmoother (smoother.js): the fixed #smooth-wrapper no longer flows
   below the sticky header, so pad the content by the header height. Without
   the smoother (no JS / reduced motion) the wrapper divs are inert. */
html.smooth #smooth-content { padding-top: 72px; }
/* The smoother supplies the glide; CSS smooth scrolling would animate the
   native scroll position on top of it (double-eased anchor jumps). */
html.smooth { scroll-behavior: auto; }
/* CSS sticky cannot stick inside the transformed content; smoother.js pins
   the legal index with ScrollTrigger instead. Drop BOTH sticky props: the
   pin-spacer copies the element's position/top onto itself, so a leftover
   top: 104px would shift the pinned rail down a second 104px. */
html.smooth .legal-toc { position: static; top: auto; }

.section { padding-block: 112px; position: relative; }
.section--tight { padding-block: 72px; background: var(--surface-low); }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---- Kicker / mono index label --------------------------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.kicker--plain { color: var(--text-dim); }
.kicker--plain::before { display: none; }
.accent { color: var(--accent); }

/* ---- Typographic scale ----------------------------------- */
.display { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.04em; }
.h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
.h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); line-height: 1.6; max-width: 62ch; text-transform: none; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.measure { max-width: 65ch; }

/* ---- Buttons (tactical mono) ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 15px 28px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, filter .16s ease, transform .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--action); color: var(--on-action); }
.btn--primary:hover { background: var(--action-bright); filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: #fff; background: var(--surface-2); }
.btn--lg { padding: 18px 36px; }
.btn__arrow { font-family: var(--font-mono); transition: transform .16s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---- Header / Nav ---------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,12,0.55);
  /* Stronger blur + saturate compensates for the lower opacity so nav
     text stays legible over whatever content scrolls beneath. */
  -webkit-backdrop-filter: blur(18px) saturate(125%);
          backdrop-filter: blur(18px) saturate(125%);
  border-bottom: 1px solid var(--border);
}
.site-header .container.nav { max-width: none; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text); }
/* Spiral mark — nested squares converging to a fixed point (accent #b4c5ff = var(--accent)) */
.brand__mark {
  width: 40px; height: 40px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23b4c5ff' stroke-width='2'%3E%3Crect x='7' y='7' width='50' height='50' opacity='.55'/%3E%3Crect x='15' y='15' width='34' height='34' transform='rotate(22.5 32 32)' opacity='.8'/%3E%3Crect x='23' y='23' width='18' height='18' transform='rotate(45 32 32)'/%3E%3C/g%3E%3Ccircle cx='32' cy='32' r='3.5' fill='%23b4c5ff'/%3E%3C/svg%3E") center / contain no-repeat;
}
.brand__name { font-weight: 700; letter-spacing: -0.01em; font-size: 1.3rem; text-transform: uppercase; }
.brand__name span { color: var(--text-dim); font-weight: 500; }
.nav__links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); position: relative;
  display: inline-flex; align-items: center; height: 72px; /* fill the header bar */
  padding: 0 14px; border-radius: var(--radius);
  transition: color .16s ease;
}
.nav__link:hover { color: var(--text); }
/* Current page: electric blue, no underline — the underline is a hover
   affordance only; colour alone marks where you are. */
.nav__link[aria-current="page"] { color: var(--action-bright); }
/* Underline runs along the bottom line of the header bar, under the
   hovered item. */
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: center; transition: transform .18s ease;
}
.nav__link[aria-current="page"]::after { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .nav__link::after { transition: none; }
}
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__toggle { display: none; }

/* ---- Breadcrumb navigation -------------------------------- */
.breadcrumb { position: relative; z-index: 1; background: var(--surface-low); border-bottom: 1px solid var(--border); }
.breadcrumb__list {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding: 11px var(--margin);
  display: flex; flex-wrap: wrap; align-items: center;
  list-style: none; margin-block: 0;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.breadcrumb__item { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb__item + .breadcrumb__item::before {
  content: "/"; margin: 0 10px; color: var(--border-strong); flex: none;
}
.breadcrumb__link { color: var(--text-dim); transition: color .16s ease; white-space: nowrap; }
.breadcrumb__link:hover { color: var(--accent); }
.breadcrumb__current {
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46ch;
}
@media (max-width: 640px) {
  .breadcrumb__list { padding: 10px var(--gutter); font-size: 10px; letter-spacing: 0.12em; }
  .breadcrumb__item + .breadcrumb__item::before { margin: 0 7px; }
}

/* ---- Hero ------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: 128px 96px; border-bottom: 1px solid var(--border); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--hairline) 1px, transparent 1px);
  background-size: 32px 32px; opacity: 0.35;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 10%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 50% 10%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute; inset: -20% 20% auto -10%; height: 560px; pointer-events: none; z-index: 0;
  background: radial-gradient(620px 340px at 40% 20%, rgba(37,99,235,0.16), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { margin-top: 24px; max-width: 18ch; }
.hero .lead { margin-top: 24px; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; position: relative; z-index: 1; }

/* ---- Cards (tactical modules) ---------------------------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px;
  transition: border-color .16s ease, background .16s ease;
}
.card:hover { border-color: var(--accent); background: var(--surface-2); }
/* Short horizontal periwinkle tick at the top edge */
.card--tick::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 40px; height: 3px;
  background: var(--accent);
}
.card__index { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); letter-spacing: 0.14em; text-transform: uppercase; }
.card__icon {
  position: absolute; top: 26px; right: 26px;
  width: auto; height: auto; border: 0; border-radius: 0;
  display: grid; place-items: center; color: var(--accent); margin: 0;
  opacity: 0.28; transition: opacity .16s ease;
}
.card:hover .card__icon { opacity: 1; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; margin-top: 20px; }
.card p { color: var(--text-muted); text-transform: none; }

.grid { display: grid; gap: var(--gutter); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---- Stat band ------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface-low);
}
.stat { padding: 40px 32px; border-left: 1px solid var(--border); position: relative; }
.stat:first-child { border-left: 0; }
.stat::after { content: ""; position: absolute; top: 40px; right: 32px; width: 6px; height: 6px; background: var(--accent); }
.stat__num { font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 700; letter-spacing: -0.04em; color: var(--accent); }
.stat__num .unit { color: var(--accent); }
.stat__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-top: 12px; }

/* ---- Section heading block ------------------------------- */
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 18px; text-transform: none; }
/* Lift the 760px cap so a long heading holds one line; the lead keeps its own
   .measure/.lead width, so only the heading gets the extra room. */
.section-head--wide { max-width: none; }
.section-head--between { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; max-width: none; }

/* ---- Feature / split rows -------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.stack > * + * { margin-top: 18px; }

/* ---- Definition / meta list ------------------------------ */
.metalist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.metalist li { background: var(--surface); padding: 20px 24px; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.metalist dt, .metalist .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.metalist .v { color: var(--text); font-weight: 500; text-align: right; text-transform: uppercase; letter-spacing: 0.04em; }
/* `--plain` modifier: value column rendered exactly as authored (sentence
   case, lowercase email, literal punctuation) instead of the default all-caps.
   Used for prose values (home METHOD) and literal contact details. */
.metalist--plain .v { text-transform: none; }
/* `--stacked` modifier (home METHOD): label above its sentence, flush left,
   so every value starts at the same x and holds one line at the capped
   container width (right-aligned values wrapped with ragged left edges). */
.metalist--stacked li { flex-direction: column; align-items: flex-start; gap: 8px; }
.metalist--stacked .v { text-align: left; }
/* WHO WE ARE table: labels stay all-caps (default), but values read Title Case
   and the leader roles/names read naturally. `capitalize` only uppercases each
   word's first letter, so abbreviations (VA…) keep their capitals; names render
   exactly as authored (first + last initial only). */
#who .metalist .v,
#who .metalist .leader__role { text-transform: capitalize; }
#who .metalist .leader__name { text-transform: none; }

/* ---- Numbered process list ------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.steps li { background: var(--surface); padding: 28px 32px; display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-mono); color: var(--accent); font-size: 14px; letter-spacing: 0.14em; padding-top: 4px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--text-muted); text-transform: none; }

/* ---- CTA banner ------------------------------------------ */
.cta-band { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-low); padding: 64px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 320px; background: radial-gradient(500px 240px at 60% 40%, rgba(37,99,235,0.16), transparent 70%); pointer-events: none; }
.cta-band__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
/* Stacked CTA variant: the sub-line must read as one unbroken line at
   desktop widths, so the copy takes the full band width and the action
   drops below it instead of sitting beside it. */
.cta-band--stack .cta-band__inner { flex-direction: column; align-items: flex-start; gap: 36px; }

/* ---- Forms ----------------------------------------------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface-low); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: var(--font-sans); font-size: 1rem; padding: 14px 15px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(37,99,235,0.22); }
.field textarea { resize: vertical; min-height: 140px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---- Footer ---------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(14,14,16,0.5); padding-block: 64px 40px; margin-top: 0; }
/* Equal thirds, every block centred in its track and all three sharing one
   vertical axis, so the 3D mark, address, and contact read as one balanced row. */
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: center; justify-items: center; }
.footer__brand p { color: var(--text-muted); margin-top: 16px; max-width: 34ch; }
/* Footer 3D mark — spiral tumbling as an extruded solid (built by mark3d.js).
   The stage carries the flat mark as a background fallback for no-JS /
   CDN failure / reduced motion; mark3d.js swaps it for the layer stack. */
.footer__brand--mark { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.footer__brand--mark .footer__tagline {
  margin: 0; max-width: none; text-align: center; white-space: nowrap;
  /* Same sans face, size, and spacing as the address/contact columns
     (not the small mono default). */
  font-family: var(--font-sans); font-size: 1rem; letter-spacing: normal;
  text-transform: uppercase; color: var(--text-dim);
}
.mark3d {
  display: block; width: 132px; height: 132px; perspective: 800px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23b4c5ff' stroke-width='2'%3E%3Crect x='7' y='7' width='50' height='50' opacity='.55'/%3E%3Crect x='15' y='15' width='34' height='34' transform='rotate(22.5 32 32)' opacity='.8'/%3E%3Crect x='23' y='23' width='18' height='18' transform='rotate(45 32 32)'/%3E%3C/g%3E%3Ccircle cx='32' cy='32' r='3.5' fill='%23b4c5ff'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mark3d--live { background: none; }
.mark3d__obj { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.mark3d__layer {
  position: absolute; inset: 0;
  background-position: center; background-size: contain; background-repeat: no-repeat;
}
/* Interactive mark (mark3d.js grab/flick layer): grab affordance + a slight
   hover lift. touch-action none so touch drags spin the mark instead of
   scrolling — it's a small 132px stage, the page scrolls fine elsewhere. */
.mark3d--interactive {
  cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none;
  transition: transform 0.25s ease;
}
.mark3d--interactive:hover { transform: scale(1.05); }
.mark3d--grabbing, .mark3d--grabbing:hover { cursor: grabbing; }
.footer__col { min-width: 0; }
.site-footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); transition: color .16s ease; }
.site-footer a:hover { color: var(--accent); }
/* Phone + email (contact column) match the address's sans face instead of the
   mono link default; text-transform:none renders the email as authored
   (lowercase). The bottom-strip legal links (.footer__bottom a) are untouched. */
.footer__col a { font-family: var(--font-sans); font-size: 1rem; letter-spacing: normal; text-transform: none; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer__bottom p { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }

/* ---- Load-in animation (staggered reveal) ---------------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal[data-delay="1"] { animation-delay: .08s; }
.reveal[data-delay="2"] { animation-delay: .16s; }
.reveal[data-delay="3"] { animation-delay: .24s; }
.reveal[data-delay="4"] { animation-delay: .32s; }
.reveal[data-delay="5"] { animation-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 960px) {
  :root { --margin: 24px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--border); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .section { padding-block: 72px; }
  .hero { padding-block: 88px 64px; }
  .nav__links { display: none; }
  .nav__toggle {
    display: inline-flex; background: transparent; border: 1px solid var(--border);
    color: var(--text); border-radius: var(--radius); width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer;
    font-family: var(--font-mono);
  }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--border); }
  .stat:first-child { border-top: 0; }
  .form__row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .section-head--between { flex-direction: column; align-items: flex-start; }
}

/* Mobile nav open state (toggled by tiny inline script) */
.nav__links.is-open {
  display: flex; position: absolute; left: 0; right: 0; top: 72px;
  flex-direction: column; align-items: stretch; gap: 4px;
  background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px var(--margin);
}
.nav__links.is-open .nav__link { padding: 12px 8px; height: auto; }
.nav__links.is-open .nav__link::after { display: none; }

/* ============================================================
   About/Company immersive scroll story — used by about.html only.
   All selectors are story-* / js-* namespaced (plus html.fx guard)
   so the other pages are untouched. GSAP drives every hidden
   state at runtime; without JS (or with reduced motion) the page
   renders complete and static.
   ============================================================ */

/* Pre-JS flash guard: the inline <head> script adds html.fx only
   when motion is allowed; each CDN script's onerror removes it. */
html.fx .fx-hide { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html.fx .fx-hide { opacity: 1; }
}

/* ---- Scroll progress (HUD bar, shared by index + about) ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 100;
  height: 2px; width: 100%;
  background: var(--action);
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

/* ---- Hero: signal acquisition ----------------------------- */
.story-hero { min-height: calc(100vh - 72px); display: flex; align-items: center; }
/* "Sensor field": JS eases --fieldX/--fieldY so the dot grid tracks the cursor */
html.fx .story-hero::before { background-position: var(--fieldX, 0px) var(--fieldY, 0px); }
.story-hero .container { width: 100%; }
.story-hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.story-hero__viz svg { width: min(460px, 100%); display: block; margin-inline: auto; }
/* Mark legend readout (mark-svg): mono HUD labels inside the SVG canvas */
.story-hero__viz text {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em;
}
.story-telemetry {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim); margin-top: 32px;
}
.story-scrollcue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.story-scrollcue__line { width: 1px; height: 44px; background: var(--accent); display: block; transform-origin: top center; }
.story-scrollcue__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-dim); }

/* ---- Convergence: pinned fixed-point sequence -------------- */
.story-converge { position: relative; background: var(--surface-low); border-bottom: 1px solid var(--border); overflow: hidden; }
.story-converge__layout {
  min-height: 100vh; display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 64px; align-items: center; padding-block: 96px;
}
/* Default flow (no JS / reduced motion): phases read as a plain
   narrative list. Under html.fx GSAP stacks them for crossfade. */
.story-phases { display: grid; gap: 48px; margin-top: 28px; }
html.fx .story-phases { gap: 0; }
html.fx .story-phase { grid-area: 1 / 1; align-self: start; }
.story-phase .h2 { max-width: 16ch; }
.story-phase p { margin-top: 18px; }
.story-readout {
  margin-top: 48px; display: inline-flex; align-items: baseline; gap: 18px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em;
  border: 1px solid var(--border); background: var(--surface); padding: 14px 20px;
}
.story-readout__k { color: var(--text-dim); }
.story-readout__v { color: var(--accent); min-width: 6ch; }
.story-readout__s { color: var(--text-dim); }
.story-converge__viz svg { width: min(640px, 100%); display: block; margin-inline: auto; }

/* ---- Trajectory timeline ----------------------------------- */
.story-timeline { position: relative; }
.story-timeline__rail { position: absolute; left: 4px; top: 4px; bottom: 4px; width: 2px; background: rgba(180, 197, 255, 0.14); }
.story-timeline__fill { width: 100%; height: 100%; background: var(--accent); transform-origin: top center; }
.story-timeline__list { list-style: none; margin: 0; padding: 0 0 0 56px; display: grid; gap: 56px; }
.story-milestone { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 32px; align-items: start; }
.story-milestone::before {
  content: ""; position: absolute; left: -56px; top: 5px; width: 10px; height: 10px;
  background: var(--surface-low); border: 1px solid var(--accent);
}
.story-milestone__year { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.14em; color: var(--accent); padding-top: 2px; }
.story-milestone__body h3 { margin-bottom: 8px; }
.story-milestone__body p { max-width: 56ch; }

/* ---- Method progress rail ----------------------------------- */
.story-steps { position: relative; }
.story-steps__rail { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; z-index: 1; }
.story-steps__fill { width: 100%; height: 100%; background: var(--accent); transform-origin: top center; }

/* ---- Responsive --------------------------------------------- */
@media (max-width: 960px) {
  .story-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .story-hero__viz svg { width: min(340px, 80%); }
  .story-converge__layout { grid-template-columns: 1fr; gap: 40px; padding-block: 88px 64px; align-content: center; }
  .story-converge__viz svg { width: min(440px, 100%); }
  .story-phase .h2 { max-width: none; }
}
@media (max-width: 640px) {
  .story-hero { min-height: 0; }
  .story-scrollcue { display: none; }
  .story-milestone { grid-template-columns: 1fr; gap: 8px; }
  .story-timeline__list { padding-left: 40px; gap: 44px; }
  .story-milestone::before { left: -40px; }
  .story-readout { margin-top: 24px; padding: 10px 14px; }
  /* Keep the whole pinned sequence inside small viewports */
  .story-converge__layout { padding-block: 84px 32px; gap: 24px; }
  .story-converge__viz svg { width: max(180px, min(440px, 100%, calc(100vh - 560px))); }
}

/* ============================================================
   Landing scroll-story (index.html hero) — ported from the
   react-app's LandingStory so the production home page carries
   the same cinematic sequence. Markup defaults are the FINISHED
   final frame: reduced-motion users and no-JS renders get a
   complete static hero. The GSAP branch (home.js) rewinds to
   the start state and scrubs the story.
   ============================================================ */
.story {
  position: relative;
  min-height: 100vh; /* fallback for browsers without svh */
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.story__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Diagram strokes (all colors via tokens) */
.fx-sig { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: 0; }
.fx-sig--hot { stroke: var(--accent); }
.fx-pulse { fill: var(--accent); opacity: 0; }
.fx-ring { fill: none; stroke: var(--border-strong); stroke-width: 1; opacity: 0; }
.fx-venn { opacity: 0.4; }
.fx-circle { fill: none; stroke: var(--text-muted); stroke-width: 1.25; }
.fx-lens { fill: var(--accent); opacity: 0.16; }
.fx-label {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.22em;
  fill: var(--text-dim); text-transform: uppercase;
}
.fx-label--center { fill: var(--accent); font-size: 15px; }
.fx-core rect { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.fx-core circle { fill: var(--accent); }
.fx-core line { stroke: var(--accent); stroke-width: 1.25; }
/* The fixed-point label + crosshair are a mid-story beat only; the final
   resting frame hides them (home.js reveals them during the scrub, then
   fades them out) so the headline/description read clean. No-JS, reduced
   motion, and CDN-failure all get the clean final frame. */
.fx-center, .fx-core { opacity: 0; }

/* Text slides stacked in the same grid cell, centered */
.story__slides {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; text-align: center;
  padding-inline: var(--margin);
  pointer-events: none;
}
.story__slide { grid-area: 1 / 1; max-width: 940px; opacity: 0; visibility: hidden; }
/* The final slide lifts the 940px cap so the headline sits on ONE line at the
   current font size; the lead stays constrained by its own max-width, and
   narrower viewports still wrap the headline via the (padded) grid cell. */
.story__slide--final { opacity: 1; visibility: visible; pointer-events: auto; max-width: none; }
.story__kicker { justify-content: center; margin-bottom: 20px; }
.story__title {
  /* Rendered as <p> (narrative cards are aria-hidden), so restate heading styling */
  color: var(--text);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  /* Sized so line 1 ("Converting disconnected data") stays intact within the
     940px slide from tablet up; the <br> in the markup sets the two-line break. */
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  letter-spacing: -0.03em;
}
/* Sized so "FOR THE MISSIONS THAT CANNOT FAIL" sits on one line from tablet
   up (fits within the 940px slide); wraps readably on small phones. */
.story__headline { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.04em; }
.story__slide-sub {
  margin-top: 18px;
  font-family: var(--font-mono); font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
  /* This line sits exactly on the crosshair where the converging signal lines
     cross, so it needs to win against bright strokes: a full-strength dark
     halo (a soft scrim knocking back the lines around the glyphs) plus the
     bright --text tone. Does not touch the animation. */
  text-shadow:
    0 0 5px var(--bg), 0 0 5px var(--bg), 0 0 10px var(--bg),
    0 0 14px var(--bg), 0 0 20px var(--bg), 0 0 28px var(--bg);
}
.story__final-rest { margin-top: 24px; display: grid; gap: 32px; justify-items: center; }
.story__final-rest .lead { max-width: 56ch; }

/* Scroll hint */
.story__hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3em;
  color: var(--text-dim); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; pointer-events: none;
}
.story__hint-line { width: 1px; height: 28px; background: var(--accent); display: block; }

/* Narrow viewports scale the 1200-unit viewBox down ~0.3x — bump SVG label
   sizes (user units) so the diagram text stays legible on phones. */
@media (max-width: 700px) {
  .fx-label { font-size: 30px; letter-spacing: 0.12em; }
  .fx-label--center { font-size: 36px; }
}

/* ============================================================
   Capabilities immersive scroll story — used by services.html
   only. Selectors are cap-* namespaced (plus the shared
   story-scrollcue / story-readout / scroll-progress primitives
   and the html.fx guard). Markup defaults are the FINISHED
   final frame: no-JS and reduced-motion renders are complete
   and static; GSAP (services.js) rewinds and scrubs the story.
   ============================================================ */

/* ---- Hero: manifest boot sequence -------------------------- */
.cap-hero { min-height: calc(100vh - 72px); display: flex; align-items: center; }
html.fx .cap-hero::before { background-position: var(--fieldX, 0px) var(--fieldY, 0px); }
.cap-hero .container { width: 100%; }
.cap-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }

.cap-manifest {
  position: relative; display: block;
  border: 1px solid var(--border); background: var(--surface-low);
  font-family: var(--font-mono);
}
.cap-manifest::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 40px; height: 3px;
  background: var(--accent);
}
.cap-manifest__head, .cap-manifest__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 20px; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-dim);
}
.cap-manifest__head { border-bottom: 1px solid var(--border); }
.cap-manifest__foot { border-top: 1px solid var(--border); justify-content: flex-start; gap: 10px; }
.cap-manifest__list { list-style: none; margin: 0; padding: 0; }
.cap-manifest__list li + li { border-top: 1px solid var(--hairline); }
.cap-manifest__row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: baseline;
  padding: 16px 20px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background .16s ease;
}
.cap-manifest__row:hover { background: var(--surface-2); }
.cap-manifest__idx { color: var(--text-dim); }
.cap-manifest__name { color: var(--text); }
.cap-manifest__row:hover .cap-manifest__name { color: var(--accent); }
.cap-manifest__status { color: var(--accent); font-size: 11px; letter-spacing: 0.18em; }
.cap-manifest__cursor { width: 8px; height: 13px; background: var(--accent); display: inline-block; flex: none; }

/* ---- Mission stack: pinned, scroll-scrubbed scene ----------- */
.cap-mission { position: relative; background: var(--surface-low); border-bottom: 1px solid var(--border); overflow: hidden; }
.cap-mission__layout {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 64px; align-items: center; padding-block: 96px;
}
.cap-mission__viz { order: -1; } /* schematic left, copy right (mirrors the about page) */
.cap-mission__viz svg { width: min(620px, 100%); display: block; margin-inline: auto; }
/* Default flow (no JS / reduced motion): phases read as a plain
   narrative list. Under html.fx GSAP stacks them for crossfade. */
.cap-phases { display: grid; gap: 48px; margin-top: 28px; }
html.fx .cap-phases { gap: 0; }
html.fx .cap-phase { grid-area: 1 / 1; align-self: start; }
.cap-phase .h2 { max-width: 16ch; }
.cap-phase p { margin-top: 18px; }

/* ---- Deliverables: verification checklist ------------------ */
.cap-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cap-check { display: grid; grid-template-columns: 18px 1fr; gap: 14px; align-items: start; color: var(--text-muted); }
.cap-check svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); flex: none; }
.cap-check span { text-transform: none; }

/* Alternate split orientation for editorial rhythm (desktop only) */
@media (min-width: 961px) {
  .cap-flip > :first-child { order: 2; }
}

/* ---- HUD section rail (wide desktop garnish) ---------------- */
.cap-rail { position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; }
@media (min-width: 1440px) { .cap-rail { display: block; } }
html.fx .cap-rail { opacity: 0; visibility: hidden; } /* GSAP autoAlpha-fades it in alongside the sections */
.cap-rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cap-rail a {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-dim); transition: color .16s ease;
}
.cap-rail a::before { content: ""; width: 14px; height: 2px; background: var(--hairline); transition: background .16s ease, width .16s ease; }
.cap-rail a:hover { color: var(--text); }
.cap-rail a.is-active { color: var(--accent); }
.cap-rail a.is-active::before { background: var(--accent); width: 22px; }

/* ---- Responsive --------------------------------------------- */
@media (max-width: 960px) {
  .cap-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .cap-mission__layout { grid-template-columns: 1fr; gap: 40px; padding-block: 88px 64px; align-content: center; }
  .cap-mission__viz { order: 0; } /* copy first, schematic beneath */
  .cap-mission__viz svg { width: min(460px, 100%); }
  .cap-phase .h2 { max-width: none; }
}
@media (max-width: 640px) {
  .cap-hero { min-height: 0; }
  .cap-manifest__row { grid-template-columns: 44px 1fr auto; gap: 10px; padding: 13px 14px; }
  .cap-manifest__head, .cap-manifest__foot { padding: 12px 14px; }
  /* Keep the whole pinned sequence inside small viewports */
  .cap-mission__layout { padding-block: 84px 32px; gap: 24px; }
  .cap-mission__viz svg { width: max(200px, min(440px, 100%, calc(100vh - 540px))); }
}
@media (max-width: 360px) {
  /* The mission statuses ("PERIMETER SEALED") run longer than the
     about page's — tighten the readout so it fits a 320px viewport */
  .cap-mission .story-readout { gap: 10px; padding: 10px 12px; font-size: 12px; }
  .cap-mission .story-readout__v { min-width: 5ch; }
}

/* ============================================================
   Hero glow interactions (glow.js — index/about/services).
   Decorative only: the base .hero__glow stays authored/static;
   these are motion-only artifacts, so no-JS renders are
   untouched and reduced motion never sees them.
   ============================================================ */
/* Hotter twin of the glow gradient — click surge fades it in/out */
.hero__glow-hot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(620px 340px at 40% 20%, rgba(37,99,235,0.30), transparent 70%);
}
/* Sonar ping: expanding hairline ring + square registration mark,
   positioned at the click point, behind the hero copy (z 0 vs z 1) */
.glow-ping { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; visibility: hidden; }
.glow-ping__ring {
  position: absolute; left: -110px; top: -110px; width: 220px; height: 220px;
  border: 1px solid var(--accent); border-radius: 50%; display: block; opacity: 0;
}
.glow-ping__mark {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px;
  background: var(--accent); display: block; opacity: 0;
}

/* ============================================================
   Cursor spotlight (spotlight.js — index/about/services).
   A faint radial that follows the pointer and ADDS light via
   screen blend, lifting dark surfaces/grid/content near the
   cursor. Injected by JS only — no-JS/reduced-motion/touch
   renders never see it. z 40: over content, under header (50)
   and the scroll-progress bar (100).
   ============================================================ */
.cursor-spotlight {
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none; overflow: hidden; opacity: 0;
  contain: strict;
}
/* Copy sits above the injected CTA effect layer. */
.cta-band__inner { z-index: 1; }

/* ============================================================
   Signal fusion — SITEWIDE CTA (signal.js, .cta-band--signal on
   the home, company and capabilities closing CTAs). Three messy
   noise-signal waveforms flow across the box and converge into
   one clean line that terminates in a bright electric-blue point;
   a periodic pulse travels the fused line into the point. The
   SIGNAL · FUSION · RESOLUTION brandline drawn live on a <canvas>
   in the site blues (periwinkle signals `#b4c5ff`, brighter-blue
   `#3b74f5` point) — vector-crisp at any DPI, ~4KB, and rasterized
   in the same layer as the band's border so nothing pixel-snaps
   against it (the AI video loops this replaced shimmered there).
   A left veil keeps the copy legible. Injected by JS only — no-JS
   keeps the static band; reduced motion → one static frame.
   ============================================================ */
.signal { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cta-band--signal::after { display: none; } /* retire the static ::after glow; the signal replaces it */
.signal__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Left legibility veil */
.signal__veil {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    var(--surface-low) 0%,
    rgba(14,14,16,0.88) 26%,
    rgba(14,14,16,0.56) 46%,
    rgba(14,14,16,0.16) 66%,
    rgba(14,14,16,0) 82%);
}

.cursor-spotlight__beam {
  position: absolute; top: 0; left: 0;
  width: 900px; height: 900px; margin: -450px 0 0 -450px; /* centered on origin */
  border-radius: 50%;
  /* Tactical Electric Blue #2563eb — matches .hero__glow / .hero__glow-hot */
  background: radial-gradient(circle,
    rgba(37,99,235,0.16) 0%,
    rgba(37,99,235,0.09) 34%,
    transparent 62%);
  mix-blend-mode: screen;
  will-change: transform;
}

/* ============================================================
   Contact page — "secure comms channel" (contact.js, .comms-page).
   A drifting signal constellation converges on a fixed point behind
   the hero; the form reads as a comms terminal with a live telemetry
   status line, focus "lock-on" underlines, and a TRANSMITTING →
   SIGNAL ACKNOWLEDGED submit sequence. All behaviour is additive /
   JS-injected — no-JS keeps the static form; reduced motion → a calm
   static frame + instant states.
   ============================================================ */
/* The hero headline "Tell us what can't fail." fits on one line here, so
   lift the shared .hero h1 { max-width: 18ch } measure cap on this page. */
.comms-page .hero .h1 { max-width: none; }

/* Constellation field spans the main content, behind the sections. */
.comms-page main { position: relative; }
.comms-page main > section,
.comms-page main > .divider { position: relative; z-index: 1; }
.comms-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.comms-field__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Terminal chrome around the form */
.comms-terminal {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(19,19,21,0.66), rgba(14,14,16,0.66));
}
.comms-terminal__bar {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-dim);
}
.comms-terminal__dot {
  width: 8px; height: 8px; flex: none; background: var(--border-strong);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.comms-terminal.is-live .comms-terminal__dot {
  background: var(--action); box-shadow: 0 0 9px rgba(37,99,235,0.9);
}
.comms-terminal__status { color: var(--accent-dim); }
.comms-terminal.is-live .comms-terminal__status::after {
  content: "_"; margin-left: 1px; color: var(--action-bright);
  animation: comms-blink 1.1s steps(1) infinite;
}
.comms-terminal__link { margin-left: auto; color: var(--text-dim); font-variant-numeric: tabular-nums; }
@keyframes comms-blink { 50% { opacity: 0; } }
.comms-terminal .form { padding: 24px; }

/* Focus "lock-on": animated underline + label state per field */
.comms-page .field { position: relative; }
.comms-page .field label { display: flex; align-items: center; justify-content: space-between; }
.comms-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--action);
  transform: scaleX(0); transform-origin: left center; pointer-events: none;
  box-shadow: 0 0 10px rgba(37,99,235,0.7);
}
.field.is-locked label { color: var(--accent); }
.comms-lock {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--action-bright); opacity: 0; text-transform: uppercase;
}

/* Submit: transmitting scan + acknowledged panel */
.comms-submit { position: relative; overflow: hidden; }
.comms-submit.is-transmitting { pointer-events: none; }
.comms-submit__scan {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(238,242,255,0.35) 50%, transparent 100%);
  transform: translateX(-120%);
}
.comms-ack {
  display: none; align-items: center; gap: 14px; margin-top: 4px;
  border: 1px solid var(--action); background: rgba(37,99,235,0.09); padding: 16px 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
}
.comms-ack.is-shown { display: flex; }
/* Honeypot — kept in the layout but out of sight, tab order and AT. */
.comms-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Transmission failure — same terminal register as the ack, in a warning tone
   so a lost brief can never be mistaken for a delivered one. */
.comms-error {
  display: none; align-items: center; gap: 14px; margin-top: 4px;
  border: 1px solid #b4553f; background: rgba(180,85,63,0.10); padding: 16px 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: none; color: #f0b8a6;
}
.comms-error.is-shown { display: flex; }
.comms-error a { color: var(--accent); text-decoration: underline; }
.comms-ack__mark {
  width: 20px; height: 20px; flex: none; display: block;
}
.comms-ack__mark path { stroke: var(--action-bright); stroke-width: 2.4; fill: none; stroke-linecap: square; }
.comms-ack__body { display: grid; gap: 2px; }
.comms-ack__sub { color: var(--text-dim); letter-spacing: 0.06em; text-transform: none; font-size: 11px; }

@media (prefers-reduced-motion: reduce) {
  .comms-terminal.is-live .comms-terminal__status::after { animation: none; }
  .comms-submit__scan { display: none; }
}

/* ============================================================
   Leadership roster in the company metalist (company.html). Each
   cofounder is a compact profile: a monogram tile with the name
   over the role; the names decode in with ScrambleText
   (leadership.js) and re-scramble on hover. Left-aligned — a people
   list reads left-to-right, unlike the scalar rows. No-JS /
   reduced motion: the names show plainly. (Bios and the Flip
   accordion that expanded them were removed 2026-07-21.)
   ============================================================ */
.metalist li.metalist__leaders-row { align-items: flex-start; }
.metalist__leaders { flex: 1; display: grid; gap: 8px; text-align: left; }
.leader__head {
  display: flex; align-items: center; gap: 13px; width: 100%;
  margin: 0; padding: 6px 0; text-align: left;
}
.leader__mono {
  width: 34px; height: 34px; flex: none; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  background: var(--action); color: var(--on-action);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
/* Hover cues the name re-scramble */
.leader__head:hover .leader__mono { box-shadow: 0 0 12px rgba(37,99,235,0.7); }
.leader__id { flex: 1; min-width: 0; display: grid; gap: 1px; }
.leader__name { color: var(--text); font-weight: 600; letter-spacing: 0.04em; line-height: 1.2; text-transform: uppercase; }
.leader__role {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-dim); font-weight: 500;
}

/* ============================================================
   Legal page (terms-of-use.html). Sticky mono index on the left,
   numbered clause articles on the right. Clause kickers reuse the
   site's "NN / TITLE" idiom; conspicuous (all-caps) clauses get
   .legal-caps so they stay legally prominent without breaking the
   terminal register.
   ============================================================ */

/* Hero doc metadata strip — effective date / entity / jurisdiction */
.docmeta {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  width: fit-content;
}
.docmeta li {
  background: var(--surface); padding: 12px 20px;
  display: grid; gap: 3px;
}
.docmeta .k {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-dim);
}
.docmeta .v { color: var(--text); font-size: 13px; font-weight: 500; }

/* ---- Legal hero lockup (legal-mark.js) --------------------
   Copy left, the stacked brand lockup right — rebuilt as live DOM
   (inline-SVG spiral glyph + real text) so GSAP can split the
   letters (SplitText entrance) and scatter them ballistically on
   click (Physics2D burst → letters glide back to the lockup). */
.hero__inner--legal { display: flex; align-items: center; justify-content: space-between; gap: 56px; }
.legal-hero__copy { max-width: 660px; }
.legal-mark {
  display: flex; flex-direction: column; align-items: center;
  margin-right: clamp(0px, 5vw, 72px);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.legal-mark__glyph { display: block; margin-bottom: 20px; overflow: visible; }
.legal-mark__name {
  font-weight: 700; font-size: 30px; letter-spacing: -0.01em; line-height: 1;
  color: var(--text); text-transform: uppercase;
  /* SplitText: avoid kerning shift when the line becomes per-char divs */
  font-kerning: none; text-rendering: optimizeSpeed;
}
.legal-mark__sub {
  margin-top: 12px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.4em; line-height: 1; color: var(--text-dim); text-transform: uppercase;
  font-kerning: none; text-rendering: optimizeSpeed;
}
/* Burst letters fly outside the lockup box — keep them unclipped and above */
.legal-mark, .legal-mark__name, .legal-mark__sub { overflow: visible; }
@media (max-width: 920px) {
  .hero__inner--legal { display: block; }
  .legal-mark { display: none; } /* the header brand carries the mark on small screens */
}

.legal-grid {
  display: grid; grid-template-columns: 280px minmax(0, 1fr);
  gap: 72px; align-items: start;
}
.legal-toc {
  position: sticky; top: 104px;
  display: grid; gap: 0;
  border-left: 1px solid var(--hairline);
}
.legal-toc .kicker--plain { padding: 0 0 14px 18px; }
.legal-toc a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-dim);
  padding: 9px 0 9px 18px; margin-left: -1px;
  border-left: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.legal-toc a:hover { color: var(--accent); border-left-color: var(--accent); }

.legal-body { max-width: 72ch; display: grid; gap: 72px; }
.legal-section { scroll-margin-top: 104px; }
.legal-section h2 { margin-top: 0; }
.legal-section p { line-height: 1.7; }
.legal-list { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; line-height: 1.7; }
.legal-list li::marker { color: var(--accent); }
.legal-caps {
  text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.015em;
  line-height: 1.75;
}

/* Footer legal link sits inside the mono bottom strip — inherit its scale */
.footer__bottom a { font: inherit; letter-spacing: inherit; color: inherit; }
.footer__bottom a:hover, .footer__bottom a[aria-current="page"] { color: var(--accent); }

@media (max-width: 960px) {
  .legal-grid { grid-template-columns: 1fr; gap: 48px; }
  .legal-toc { position: static; border-left: 0; }
  .legal-toc .kicker--plain { padding-left: 0; }
  .legal-toc a { padding-left: 0; margin-left: 0; border-left: 0; }
}

/* ---- Capability schematic panels (Deliverables) ----------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.cap-schematic { position: relative; overflow: hidden; min-height: 430px; padding: 0; isolation: isolate; }
.cap-schematic > .card__icon { display: none; } /* icon re-homed into the head row */
.cap-schematic.card--tick::before { display: none; } /* panel supersedes the card accent bar */

.cap-schematic__atmo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.25; pointer-events: none;
}
html.fx .cap-schematic__atmo { opacity: 0; } /* entrance tween fades to 0.25 */
.cap-schematic__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 105% 105% at 50% 45%, transparent 48%, var(--bg) 97%);
}

.cap-schematic__head {
  position: relative; z-index: 4; display: flex; align-items: center;
  justify-content: space-between; padding: 14px 18px 0;
}
.cap-schematic__tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--text-dim); text-transform: uppercase;
}
.cap-schematic__head svg { width: 20px; height: 20px; color: var(--accent); opacity: .8; }

.cap-schematic__svg {
  position: absolute; top: 56px; left: 0; width: 100%; z-index: 2;
}
.cap-schematic__svg path, .cap-schematic__svg circle,
.cap-schematic__svg rect, .cap-schematic__svg ellipse {
  fill: none; stroke: var(--hairline); stroke-width: 1;
}
.cap-schematic__svg .core { stroke: var(--accent); stroke-width: 1.5; }
.cap-schematic__svg .core-fill { fill: var(--accent); stroke: none; }
.cap-schematic__svg .leader { stroke: var(--border-strong); stroke-dasharray: 3 4; }

.cap-node {
  position: absolute; z-index: 5; width: 132px; padding: 0;
  background: none; border: 0; cursor: pointer; font: inherit;
}
.cap-node--tl { top: 92px; left: 7%; }
.cap-node--tr { top: 92px; right: 7%; }
.cap-node--bl { top: 236px; left: 7%; }
.cap-node--br { top: 236px; right: 7%; }
.cap-node__dot {
  display: block; width: 11px; height: 11px; border: 1.5px solid var(--accent);
  background: var(--bg); border-radius: 50%; margin: 0 auto 5px;
  position: relative; transition: background .15s ease, box-shadow .15s ease, transform .2s ease;
}
.cap-node__dot::after {
  content: ""; position: absolute; inset: -5px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 50%;
}
.cap-node__lbl {
  display: block; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
  color: var(--text-dim); transition: color .15s ease; line-height: 1.5;
}
.cap-node:hover .cap-node__dot, .cap-node.on .cap-node__dot {
  background: var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent);
}
.cap-node:hover .cap-node__lbl, .cap-node.on .cap-node__lbl { color: var(--text); }
.cap-node.on .cap-node__dot { transform: scale(1.3); } /* reduced-motion / pre-GSAP state; GSAP inline transforms take over under fx */
.cap-node:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.cap-readout {
  position: absolute; z-index: 6; left: 18px; right: 18px; bottom: 14px;
  border: 1px solid var(--hairline); background: color-mix(in srgb, var(--surface-low) 92%, transparent);
  padding: 12px 14px; min-height: 64px;
}
.cap-readout__tag {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 4px;
}
.cap-readout__txt { font-size: 13px; line-height: 1.55; color: var(--text-muted); }

@media (max-width: 960px) {
  .cap-schematic { min-height: 400px; }
  .cap-node { width: 110px; }
  .cap-node--tl { left: 3%; }  .cap-node--tr { right: 3%; }
  .cap-node--bl { left: 3%; top: 178px; }  .cap-node--br { right: 3%; top: 178px; }
  .cap-node__lbl { font-size: 10px; }
}
