/* BlackGrid Labs — site.css v3 "THE GRID SEES EVERYTHING" (2026-07-08)
 * Language: pure black, grayscale only, light Helvetica, sharp edges.
 * No border-radius anywhere. No color outside the gray ramp.
 * The logo font is the grid glyph alphabet (bg-glyph.js / Logo Schema).
 * Progressive enhancement: all animation initial states are set in site.js
 * at runtime, never here — a no-JS render must show the full page.
 * (/observatory is frozen and never touches this file.) */

/* ---------- tokens ---------- */
:root {
  --bg: #050506;
  --bg-raise: #0E0E0E;         /* scene black — matches the BGLoop canvas */
  --bg-deep: #000000;
  --ink: #FFFFFF;
  --ink-soft: rgba(255, 255, 255, 0.80);
  --ink-body: rgba(255, 255, 255, 0.62);
  --ink-mute: rgba(255, 255, 255, 0.42);
  --ink-ghost: rgba(255, 255, 255, 0.22);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);
  --tone-1: #282828;           /* city block tones from the Loop file */
  --tone-2: #353535;
  --tone-3: #555555;
  --graphite: #3B3F46;         /* Logo Schema parent mark field */
  --paper: #E9E9E9;            /* light band — still grayscale */
  --paper-ink: #101012;
  --paper-line: rgba(16, 16, 18, 0.14);
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 3.4vw, 52px);
  --frame-max: 1560px;
  --nav-h: 62px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: #FFFFFF; color: #000000; }

h1, h2, h3, h4 { font-weight: 200; letter-spacing: -0.02em; }

/* ---------- type helpers ---------- */
.label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.bright { color: var(--ink); }
.quiet { color: var(--ink-mute); font-size: 13px; }
.mono { letter-spacing: 0.08em; } /* legacy hook — Helvetica everywhere now */
.arr { display: inline-block; transition: transform 0.35s var(--ease-out); }
a:hover .arr { transform: translateX(5px); }

/* ---------- surveyed frame lines ---------- */
.frame-lines { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.frame-lines span {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--line-soft);
}
.frame-lines span:nth-child(1) { left: 25%; }
.frame-lines span:nth-child(2) { left: 50%; }
.frame-lines span:nth-child(3) { left: 75%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.btn:hover { border-color: rgba(255, 255, 255, 0.55); color: var(--ink); }
.btn--solid { background: var(--ink); color: #000; border-color: var(--ink); font-weight: 500; }
.btn--solid:hover { background: rgba(255, 255, 255, 0.86); color: #000; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; }
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-mark { display: inline-flex; align-items: center; gap: 12px; }
.nav-mark .mark { width: 26px; height: 26px; }
.nav-mark-name {
  font-size: 12px; font-weight: 500; letter-spacing: 0.30em; color: var(--ink);
}
.nav-mark-name span { color: var(--ink-mute); font-weight: 300; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav-link {
  font-size: 11px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link--active { color: var(--ink); border-bottom-color: rgba(255, 255, 255, 0.5); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--ink); color: #000;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.3s var(--ease-out);
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.86); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-burger span { display: block; width: 20px; height: 1px; background: var(--ink); }

/* nav over the light band */
.nav.on-light .nav-bar { background: rgba(233, 233, 233, 0.80); border-bottom-color: var(--paper-line); }
.nav.on-light .nav-mark-name { color: var(--paper-ink); }
.nav.on-light .nav-mark-name span { color: rgba(16, 16, 18, 0.45); }
.nav.on-light .nav-link { color: rgba(16, 16, 18, 0.55); }
.nav.on-light .nav-link:hover, .nav.on-light .nav-link--active { color: var(--paper-ink); }
.nav.on-light .nav-cta { background: var(--paper-ink); color: var(--paper); }
.nav.on-light .nav-burger span { background: var(--paper-ink); }

/* ---------- first-visit boot overlay ----------
   Exists only when boot.js added html.bgl-boot before first paint (first visit,
   motion allowed, storage available). No-JS renders never display it, so the
   pre-sequence initial states may safely live here. */
.boot { display: none; }
html.bgl-boot { overflow: hidden; }
html.bgl-boot .boot {
  display: flex; position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  align-items: center; justify-content: center;
}
.boot-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(26px, 4svh, 40px);
  width: min(560px, 80vw);
}
.boot-mark svg { width: clamp(72px, 10svh, 96px); height: auto; }
html.bgl-boot .boot-cell { opacity: 0; }  /* lit one by one by the sequence */
.boot-word { width: 100%; }
.boot-slogan { width: 88%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: var(--bg-raise);
}
.hero-media { position: absolute; inset: 0; }
.hero-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.55) 0%, rgba(5, 5, 6, 0.05) 30%, rgba(5, 5, 6, 0.10) 62%, rgba(5, 5, 6, 0.82) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  width: 100%; max-width: var(--frame-max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) var(--gutter) clamp(64px, 9svh, 110px);
}
.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(22px, 3.4svh, 40px); }
.hero-eyebrow .rule { display: block; width: 44px; height: 1px; background: rgba(255, 255, 255, 0.5); transform-origin: left; }
.hero-glyphline { display: flex; align-items: flex-end; gap: clamp(18px, 2.6vw, 40px); margin-bottom: clamp(26px, 4svh, 48px); }
.hero-glyph--main { width: min(560px, 56vw); }
.hero-glyph--sub { width: min(150px, 15vw); opacity: 0.75; padding-bottom: 0.4%; }
.hero-glyph--slogan { width: min(700px, 68vw); opacity: 0.85; }
.hero-glyph svg { width: 100%; height: auto; }
/* the no-JS/failed-JS headline — site.js demotes it to .sr-only once the
   glyph wordmark has actually mounted (the glyphs are decorative) */
.hero-headline--text { font-size: clamp(28px, 3.4vw, 52px); margin-top: 18px; }
.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;
}
.hero-headline {
  font-size: clamp(44px, 7.2vw, 108px);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.hero-line { display: block; overflow: hidden; }
.hero-line > span { display: inline-block; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 4.4svh, 52px); }
.hero-side { display: flex; flex-direction: column; gap: 22px; padding-bottom: 6px; }
.hero-sub { font-size: 14.5px; font-weight: 300; color: var(--ink-body); line-height: 1.65; }
.hero-coords { font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink-mute); line-height: 1.9; text-transform: uppercase; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between;
  padding: 0 var(--gutter) 22px;
  pointer-events: none;
}
.hero-foot .label { color: var(--ink-ghost); }

/* ---------- center-stage statement ---------- */
.statement { position: relative; background: var(--bg); min-height: 100svh; }
.statement.on { min-height: 170svh; }
.statement-pin {
  position: sticky; top: 0;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 0 var(--gutter);
}
.statement-text {
  max-width: 1080px;
  text-align: center;
  font-size: clamp(30px, 4.6vw, 66px);
  font-weight: 200;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.st-w { display: inline-block; }

/* ---------- panels + nodes ---------- */
.panel { position: relative; border-top: 1px solid var(--line-soft); background: var(--bg); }
.panel-inner {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 150px) var(--gutter);
}
.node {
  position: absolute; z-index: 3;
  width: 9px; height: 9px;
  pointer-events: none;
}
.node::before, .node::after {
  content: ''; position: absolute; background: rgba(255, 255, 255, 0.34);
}
.node::before { left: 4px; top: 0; width: 1px; height: 9px; }
.node::after { left: 0; top: 4px; width: 9px; height: 1px; }
.node--tl { top: -5px; left: calc(25% - 4px); }
.node--tc { top: -5px; left: calc(50% - 4px); }
.node--tr { top: -5px; left: calc(75% - 4px); }
.panel--light .node::before, .panel--light .node::after { background: rgba(16, 16, 18, 0.4); }

.sect-head {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 90px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.sect-title { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.05; }
.sect-side { font-size: 14.5px; color: var(--ink-body); max-width: 420px; justify-self: end; align-self: end; }

/* ---------- products split ---------- */
.products-split {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-soft);
}
.product-cell {
  position: relative;
  padding: clamp(40px, 5vw, 76px) var(--gutter) clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.45s var(--ease-out);
}
.product-cell:first-child { border-right: 1px solid var(--line-soft); }
.product-cell:hover { background: rgba(255, 255, 255, 0.022); }
.product-status { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; }
.dot { width: 6px; height: 6px; background: var(--ink-mute); }
.dot--live { background: var(--ink); animation: livePulse 2.1s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.label--live { color: var(--ink-soft); }
.product-name { font-size: clamp(34px, 3.6vw, 54px); font-weight: 200; margin-bottom: 10px; }
.product-role { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.product-body { font-size: 14.5px; color: var(--ink-body); max-width: 480px; margin-bottom: 34px; }
.product-metric { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.product-metric-val { font-size: 30px; font-weight: 200; letter-spacing: -0.02em; }
.product-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px;
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: color 0.3s, border-color 0.3s;
}
.product-link:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.6); }

/* ---------- what we do ---------- */
.wwd-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
}
.wwd-cell {
  padding: clamp(34px, 4vw, 60px) 26px clamp(40px, 5vw, 72px);
  border-right: 1px solid var(--line-soft);
  transition: background 0.45s var(--ease-out);
}
.wwd-cell:last-child { border-right: 0; }
.wwd-cell:hover { background: rgba(255, 255, 255, 0.022); }
.wwd-name { font-size: clamp(26px, 2.8vw, 42px); font-weight: 200; margin: 18px 0 14px; }
.wwd-body { font-size: 14px; color: var(--ink-body); max-width: 380px; }

/* ---------- observatory strip ---------- */
.obs { background: var(--bg-raise); }
.obs-inner { max-width: var(--frame-max); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter) 0; }
.obs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(36px, 5vw, 64px); }
.obs-live { display: inline-flex; align-items: center; gap: 10px; }
.obs-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
}
.obs-metric {
  padding: clamp(30px, 4vw, 52px) 26px;
  border-right: 1px solid var(--line-soft);
}
.obs-metric:last-child { border-right: 0; }
.obs-metric-val {
  display: block;
  font-size: clamp(44px, 6vw, 86px);
  font-weight: 200; letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}
.obs-foot { border-top: 1px solid var(--line-soft); overflow: hidden; padding: 16px 0; margin-top: 8px; }
.ticker { display: flex; width: max-content; animation: tickerMove 34s linear infinite; }
.ticker-seq { display: flex; gap: 64px; padding-right: 64px; white-space: nowrap; }
.ticker-seq span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); }
.ticker-seq .bright { color: var(--ink-soft); }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- initiatives ---------- */
.init-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(28px, 5vw, 110px); }
.init-count { display: block; font-size: 12px; letter-spacing: 0.24em; color: var(--ink-mute); margin-bottom: 34px; }
.init-names { display: flex; flex-direction: column; gap: 8px; }
.init-name {
  display: flex; align-items: center; gap: 16px;
  font-size: clamp(30px, 3.4vw, 52px); font-weight: 200;
  color: var(--ink-ghost);
  padding: 10px 0;
  transition: color 0.4s var(--ease-out);
}
.init-name.active { color: var(--ink); }
.init-name-dot { width: 8px; height: 8px; background: currentColor; opacity: 0.5; }
.init-panels { position: relative; min-height: 340px; }
.init-panel { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.init-panel.active { opacity: 1; pointer-events: auto; }
.init-panel-glyph { display: block; font-size: 11px; letter-spacing: 0.26em; color: var(--ink-mute); text-transform: uppercase; margin-bottom: 22px; }
.init-panel-sub { font-size: 18px; font-weight: 300; color: var(--ink-soft); margin-bottom: 16px; }
.init-panel-body { font-size: 15px; color: var(--ink-body); max-width: 560px; margin-bottom: 26px; }
.init-panel-tag {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- light band (research gateway) — grayscale paper ---------- */
.panel--light { background: var(--paper); color: var(--paper-ink); border-top: 0; }
.light-lines { position: absolute; inset: 0; pointer-events: none; }
.light-lines span { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(16, 16, 18, 0.07); }
.light-lines span:nth-child(1) { left: 25%; }
.light-lines span:nth-child(2) { left: 50%; }
.light-lines span:nth-child(3) { left: 75%; }
.panel--light .label { color: rgba(16, 16, 18, 0.5); }
.panel--light .hero-eyebrow .rule { background: rgba(16, 16, 18, 0.5); }
.band-inner { max-width: 900px; }
.band-title { font-size: clamp(38px, 5vw, 74px); line-height: 1.04; margin-bottom: 16px; }
.band-sub { font-size: 16px; color: rgba(16, 16, 18, 0.6); margin-bottom: 44px; }
.band-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  color: var(--paper-ink);
  border: 1px solid rgba(16, 16, 18, 0.35);
  padding: 16px 26px;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.band-link:hover { background: var(--paper-ink); color: var(--paper); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg-deep); }
.footer-inner {
  max-width: var(--frame-max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
  padding: clamp(48px, 6vw, 80px) var(--gutter) 40px;
}
.footer-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-line { font-size: 12.5px; color: var(--ink-mute); }
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--ink); }
.footer-base {
  max-width: var(--frame-max); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter) 30px;
}
.footer-base .label { color: var(--ink-ghost); }

/* ---------- research index ---------- */
main > .panel-inner { padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px)); }
.page-head { margin-bottom: clamp(48px, 7vw, 90px); max-width: 900px; }
.page-title { font-size: clamp(40px, 5.6vw, 82px); line-height: 1.03; margin: 18px 0 14px; }
.page-sub { font-size: 16px; color: var(--ink-body); }
.res-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.res-row {
  display: grid;
  grid-template-columns: 110px minmax(180px, 0.8fr) minmax(0, 1.6fr) minmax(200px, 0.9fr);
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(30px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.4s var(--ease-out);
}
.res-row:hover { background: rgba(255, 255, 255, 0.018); }
.res-idx { font-size: 12px; letter-spacing: 0.2em; color: var(--ink-ghost); padding-top: 8px; }
.res-name { font-size: clamp(24px, 2.6vw, 38px); font-weight: 200; margin-bottom: 12px; }
.res-badge {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 5px 10px;
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
}
.res-badge--public { border-color: rgba(255, 255, 255, 0.4); color: var(--ink-soft); }
.res-badge--restricted { color: var(--ink-mute); }
.res-badge--classified { border-style: dashed; color: var(--ink-ghost); }
.res-desc p { font-size: 14.5px; color: var(--ink-body); margin-bottom: 12px; max-width: 560px; }
.res-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; justify-self: end; text-align: right; }
.res-link {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.res-link:hover { color: var(--ink); }
.res-link--dim { color: var(--ink-mute); }
.res-status { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-ghost); }
.res-row--classified .res-name { color: var(--ink-mute); }
.res-blur { filter: blur(5px); user-select: none; }
.res-progress { position: relative; width: min(300px, 100%); height: 1px; background: var(--line); margin: 18px 0 10px; }
.res-progress::after {
  content: ''; position: absolute; left: 0; top: -1px; height: 3px; width: 0;
  background: rgba(255, 255, 255, 0.6);
  transition: width 1.4s var(--ease-out-expo);
}
.res-progress.on::after { width: var(--p, 0%); }
.res-progress-num { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-ghost); }

/* ---------- research doc ---------- */
.doc-head { max-width: 900px; margin-bottom: clamp(44px, 6vw, 80px); }
.doc-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.doc-title { font-size: clamp(44px, 6vw, 92px); line-height: 1.02; margin-bottom: 22px; }
.doc-stand { font-size: 18px; font-weight: 300; color: var(--ink-soft); line-height: 1.6; margin-bottom: 30px; }
.doc-actions { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 16px; }
.doc-body { max-width: 760px; }
.doc-section { padding: clamp(32px, 4vw, 52px) 0; border-top: 1px solid var(--line-soft); }
.doc-num { display: block; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-ghost); margin-bottom: 16px; }
.doc-section h2 { font-size: clamp(24px, 2.6vw, 36px); margin-bottom: 18px; }
.doc-section p { font-size: 15px; color: var(--ink-body); margin-bottom: 16px; }
.doc-section ul, .doc-section ol { padding-left: 20px; }
.doc-section li { font-size: 14.5px; color: var(--ink-body); margin-bottom: 10px; }
.doc-sources a { color: var(--ink-mute); border-bottom: 1px solid var(--line); transition: color 0.3s; }
.doc-sources a:hover { color: var(--ink); }

/* ---------- engine-family strip (home) ---------- */
.panel-inner--tight { padding-top: 0; }
.fam-strip { border-top: 1px solid var(--line-soft); padding-top: clamp(26px, 3vw, 40px); }
.fam-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.fam-items { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); }
.fam-item {
  display: block;
  padding: clamp(24px, 2.6vw, 34px) 26px clamp(24px, 2.6vw, 34px) 0;
  border-right: 1px solid var(--line-soft);
  transition: background 0.4s var(--ease-out);
}
.fam-item:last-child { border-right: 0; }
.fam-item:hover { background: rgba(255, 255, 255, 0.022); }
.fam-item-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.fam-item-name { font-size: clamp(19px, 1.7vw, 24px); font-weight: 200; color: var(--ink); }
.fam-item-acro { font-size: 10.5px; letter-spacing: 0.22em; color: var(--ink-ghost); }
.fam-item-role { display: block; font-size: 13.5px; color: var(--ink-body); margin-bottom: 16px; }
.fam-item-status { display: inline-flex; align-items: center; gap: 9px; }

/* ---------- products ---------- */
.prod-group { max-width: 780px; margin: clamp(30px, 4vw, 48px) 0 clamp(18px, 2vw, 26px); }
.prod-group--spaced { margin-top: clamp(64px, 8vw, 112px); }
.prod-group-key { display: block; margin-bottom: 12px; color: var(--ink-soft); }
.prod-group-note { font-size: 14.5px; color: var(--ink-body); }
.prod-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.prod-row {
  display: grid;
  grid-template-columns: 90px minmax(190px, 0.9fr) minmax(0, 1.7fr) minmax(190px, 0.7fr);
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.4s var(--ease-out);
}
.prod-row:hover { background: rgba(255, 255, 255, 0.018); }
.prod-idx { font-size: 12px; letter-spacing: 0.2em; color: var(--ink-ghost); padding-top: 10px; }
.prod-name { font-size: clamp(26px, 2.8vw, 42px); font-weight: 200; line-height: 1.06; margin-bottom: 10px; }
.prod-acro { font-size: 11px; letter-spacing: 0.22em; color: var(--ink-ghost); vertical-align: middle; }
.prod-role { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.prod-status { display: inline-flex; align-items: center; gap: 10px; }
.prod-desc p { font-size: 14.5px; color: var(--ink-body); max-width: 620px; margin-bottom: 20px; }
.prod-specs { list-style: none; border-top: 1px solid var(--line-soft); max-width: 620px; }
.prod-specs li {
  font-size: 13px; color: var(--ink-mute); line-height: 1.6;
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
/* 11px top padding + half of the 20.8px first line — keeps the rule centred
   on line one rather than floating above it. */
.prod-specs li::before {
  content: ''; position: absolute; left: 0; top: 21px;
  width: 6px; height: 1px; background: var(--ink-ghost);
}
.prod-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: right; justify-self: end; }
.prod-metric { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.prod-metric-val { font-size: 30px; font-weight: 200; letter-spacing: -0.02em; }
.prod-tail {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(44px, 6vw, 80px) 0 clamp(60px, 8vw, 110px);
}
.prod-tail-line { font-size: 15px; color: var(--ink-mute); }

/* ---------- contact ---------- */
.cf-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: clamp(34px, 6vw, 100px);
  border-top: 1px solid var(--line-soft);
  padding: clamp(40px, 5vw, 64px) 0 clamp(60px, 8vw, 110px);
}
.cf-form { max-width: 620px; }
.cf-field { margin-bottom: 22px; }
.cf-label { display: block; margin-bottom: 10px; color: var(--ink-mute); }
.cf-opt { color: var(--ink-ghost); letter-spacing: 0.14em; }
.cf-input {
  width: 100%;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px; font-weight: 300; line-height: 1.6;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.cf-input:hover { border-color: rgba(255, 255, 255, 0.25); }
.cf-input:focus { border-color: rgba(255, 255, 255, 0.55); background: var(--bg); }
.cf-input::placeholder { color: var(--ink-ghost); }
.cf-input--area { resize: vertical; min-height: 160px; }
.cf-input--select { appearance: none; cursor: pointer; }
.cf-input--select option { background: var(--bg-raise); color: var(--ink); }
.cf-submit {
  margin-top: 8px;
  background: var(--ink); color: #000;
  padding: 16px 34px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  transition: background 0.3s;
}
.cf-submit:hover { background: rgba(255, 255, 255, 0.86); }
.cf-fine { margin-top: 20px; font-size: 12px; color: var(--ink-ghost); max-width: 460px; }
.cf-error {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  margin-bottom: 26px;
  font-size: 13px; color: var(--ink-soft);
}
/* Honeypot — off-screen rather than display:none so headless fillers still see it. */
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-sent { max-width: 560px; }
.cf-sent-key { display: block; color: var(--ink-mute); margin-bottom: 18px; }
.cf-sent-ref { font-size: clamp(34px, 4.4vw, 56px); font-weight: 200; letter-spacing: -0.01em; margin-bottom: 22px; }
.cf-sent-body { font-size: 14.5px; color: var(--ink-body); margin-bottom: 30px; }
.cf-sent-body a { color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.cf-sent-body a:hover { color: var(--ink); }
.cf-side { display: flex; flex-direction: column; gap: 34px; }
.cf-block { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.cf-block-key { display: block; color: var(--ink-ghost); margin-bottom: 12px; }
.cf-block-line { font-size: 15px; color: var(--ink-soft); margin-bottom: 6px; }
.cf-block-line a { color: var(--ink-soft); transition: color 0.3s; }
.cf-block-line a:hover { color: var(--ink); }
.cf-block-note { font-size: 12.5px; color: var(--ink-mute); line-height: 1.6; }

/* ---------- portal ---------- */
.portal-wrap {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: var(--gutter);
  background: var(--bg);
}
.portal-box {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  background: var(--bg-raise);
  padding: clamp(36px, 5vw, 56px);
}
.node--a { top: -5px; left: -5px; }
.node--b { bottom: -5px; right: -5px; }
.portal-title { font-size: clamp(30px, 4vw, 44px); margin: 18px 0 12px; }
.portal-sub { font-size: 14px; color: var(--ink-body); margin-bottom: 30px; }
.portal-field {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px; letter-spacing: 0.3em;
  padding: 15px 16px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.3s;
}
.portal-field:focus { border-color: rgba(255, 255, 255, 0.5); }
.portal-field::placeholder { color: var(--ink-ghost); letter-spacing: 0.3em; }
.portal-btn {
  width: 100%;
  background: var(--ink); color: #000;
  padding: 15px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  transition: background 0.3s;
}
.portal-btn:hover { background: rgba(255, 255, 255, 0.86); }
.portal-error { margin-top: 18px; font-size: 12px; letter-spacing: 0.2em; color: var(--ink-soft); }
.portal-doc {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1px solid var(--line);
  padding: 22px;
  transition: border-color 0.3s, background 0.3s;
}
.portal-doc:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.02); }
.portal-doc-name { font-size: 15px; font-weight: 400; margin-bottom: 8px; }
.portal-doc-class { color: var(--ink-ghost); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .res-row { grid-template-columns: 70px minmax(0, 1fr); }
  .res-desc { grid-column: 2; }
  .res-actions { grid-column: 2; justify-self: start; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .prod-row { grid-template-columns: 70px minmax(0, 1fr); }
  .prod-desc { grid-column: 2; }
  .prod-actions {
    grid-column: 2; justify-self: start; text-align: left;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px;
  }
  .prod-metric { flex-direction: row; align-items: baseline; gap: 10px; }
  .cf-split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 0;
    background: rgba(5, 5, 6, 0.96);
    border-bottom: 1px solid var(--line-soft);
    padding: 10px var(--gutter) 22px;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { padding: 14px 0; font-size: 13px; }
  .nav-links .nav-cta { margin-top: 14px; }
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
  .hero-glyphline { flex-wrap: wrap; align-items: flex-start; row-gap: 12px; }
  .hero-glyph--main { width: min(480px, 86vw); }
  .hero-glyph--sub { width: min(110px, 20vw); padding-bottom: 0; }
  .hero-glyph--slogan { width: 100%; }  /* fill the gutter-padded column, never clip */
  .hero-sub { max-width: 92vw; }
  .hero-side { padding-bottom: 0; }
  .hero-foot { display: none; }
  .sect-head { grid-template-columns: 1fr; align-items: start; }
  .sect-side { justify-self: start; }
  .products-split { grid-template-columns: 1fr; }
  .product-cell:first-child { border-right: 0; }
  .wwd-grid { grid-template-columns: 1fr; }
  .wwd-cell { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .wwd-cell:last-child { border-bottom: 0; }
  .obs-metrics { grid-template-columns: 1fr; }
  .obs-metric { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .obs-metric:last-child { border-bottom: 0; }
  .init-stage { grid-template-columns: 1fr; }
  .init-panels { min-height: 0; }
  .init-panel { position: relative; opacity: 1; pointer-events: auto; margin-bottom: 40px; }
  .fam-items { grid-template-columns: 1fr; }
  .fam-item { border-right: 0; border-bottom: 1px solid var(--line-soft); padding-right: 0; }
  .fam-item:last-child { border-bottom: 0; }
  .prod-tail { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .footer-base { flex-wrap: wrap; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
  .dot--live { animation: none; }
  .arr { transition: none; }
  * { transition-duration: 0.01ms !important; }
}
