/* Downstream Labs: LS identity (layers + holographic seal), November 2026 exploration branch.
   Geologica (display and wordmark) · Manrope (body) · IBM Plex Mono (labels).
   White page · navy #0B1F3A text · midnight #071226 blocks · one accent, cyan #0E7490 (#22D3EE on midnight) · platinum foil only in the seal. */
:root {
  --ink: #0B1F3A;
  --bg: #FFFFFF;
  --surface: #F2F5F9;
  --line: rgba(11, 31, 58, .10);
  --line-2: rgba(11, 31, 58, .20);
  --text: #0B1F3A;
  --text-2: #23324A;
  --text-3: #33445E;
  --muted: #5B6B82;
  --grey: #5B6B82;
  --green: #0E7490;
  --green-hi: #0E7490;
  --green-glow: rgba(14, 116, 144, .30);
  --amber: #C7861F;
  --red: #E5484D;
  --fx-fg: 11,31,58;
  --fx-green: 14,116,144;
  --holo: linear-gradient(120deg, #F5F8FC 0%, #9FB3C8 38%, #EEF3F8 55%, #7F95AD 80%, #CFE6EE 100%);
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --display: "Geologica", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
/* Black blocks: same components, dark tokens. White page, black and green accents. */
.dark, .paper, .ticker, .site-foot, .terminal, .terminal-head, .phone {
  --bg: #071226;
  --surface: #0C1A30;
  --line: rgba(230, 238, 248, .10);
  --line-2: rgba(230, 238, 248, .18);
  --text: #E6EEF8;
  --text-2: var(--text-2);
  --text-3: var(--text-3);
  --muted: #8FA0B8;
  --green-hi: #22D3EE;
  --green-glow: rgba(34, 211, 238, .35);
  --amber: #E3A23B;
  --fx-fg: 230,238,248;
  --fx-green: 34,211,238;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas, video { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; }
::selection { background: var(--green); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--green); color: #fff; padding: 8px 12px; z-index: 100; }

/* Type */
.mono, .label, .eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 500; }
.eyebrow { color: var(--green-hi); display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.label { color: var(--muted); }
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .92;
  margin: 0;
}
h1 { font-size: clamp(44px, 8.4vw, 132px); }
h2 { font-size: clamp(34px, 5.2vw, 76px); }
h3 { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.05; letter-spacing: 0; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--text-2); max-width: 46ch; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.accent { color: var(--green-hi); }
.outline-text { color: transparent; -webkit-text-stroke: 1.5px rgba(5, 6, 7, .5); }

/* Header */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; margin: -4px 0; }
.brand-word { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.brand-word small { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -.02em; color: var(--muted); margin-left: .28em; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px;
  text-decoration: none; color: var(--text-2); padding: 10px 12px; position: relative;
}
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--green-hi); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav-cta { border: 1px solid var(--line-2); margin-left: 8px; }
.nav a.nav-cta:hover { border-color: var(--green-hi); }
.nav a.nav-cta::after { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding: 9px 12px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 500;
  text-decoration: none; padding: 17px 22px; border: 1px solid var(--line-2); color: var(--text);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--green); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--green); color: #fff; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary::before { background: var(--ink); }
.btn.primary:hover { border-color: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* HUD frame: corner brackets */
.hud { position: relative; }
.hud::before, .hud::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--green-hi); pointer-events: none; }
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); }
.hero canvas.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before { /* vignette */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 70% 40%, transparent 30%, rgba(255, 255, 255, .6) 70%, var(--bg) 100%),
              linear-gradient(to top, var(--bg) 0%, transparent 38%);
}
.hero .scanlines { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .22; background: repeating-linear-gradient(to bottom, rgba(11,31,58,.03) 0 1px, transparent 1px 3px); }
.hero-inner { position: relative; z-index: 3; width: 100%; padding-bottom: clamp(48px, 8vh, 96px); padding-top: 140px; }
.hero h1 { font-size: clamp(42px, 6.6vw, 104px); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero h1 .line:nth-child(4) > span { animation-delay: .36s; }
.hero h1.h1-4 { font-size: clamp(38px, 5.6vw, 88px); }
.hero .lede { margin: 28px 0 36px; opacity: 0; animation: fade 1s .6s var(--ease) forwards; }
.hero .btn-row { opacity: 0; animation: fade 1s .8s var(--ease) forwards; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero.sub { min-height: 86svh; }
.hero.sub h1 { font-size: clamp(40px, 6.2vw, 96px); }

.telemetry {
  position: absolute; z-index: 3; top: 96px; right: var(--gutter);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  text-align: right; line-height: 1.9;
}
.telemetry b { color: var(--text); font-weight: 500; }
.telemetry .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green-hi); box-shadow: 0 0 10px var(--green-hi); margin-right: 8px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero-meta { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 22px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); pointer-events: none; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 26px; background: linear-gradient(var(--green-hi), transparent); animation: cue 2s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker span { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 16px 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; }
.ticker span::after { content: ""; width: 6px; height: 6px; background: var(--green); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
section { position: relative; }
.section { padding: clamp(88px, 13vw, 180px) 0; }
.section.tight { padding: clamp(64px, 8vw, 110px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .lede { justify-self: end; }
.idx { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--grey); display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 40px; text-transform: uppercase; }
.idx b { color: var(--green-hi); font-weight: 500; }
.grid-bg { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 80px 80px; background-position: -1px -1px; }

/* Mission statement */
.statement { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 68px); line-height: 1; letter-spacing: -.005em; max-width: 20ch; }
.statement .w { opacity: .14; transition: opacity .5s var(--ease); }
.statement .w.on { opacity: 1; }

/* Stack (six layers) */
.stack { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.stack-visual { position: sticky; top: 110px; aspect-ratio: 1 / 1.05; border: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, rgba(11, 142, 104, .10), transparent 60%), var(--surface); overflow: hidden; }
.stack-visual canvas { width: 100%; height: 100%; }
.stack-visual .readout { position: absolute; left: 18px; bottom: 16px; right: 18px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stack-visual .readout b { color: var(--green-hi); font-weight: 500; }
.layers { list-style: none; margin: 0; padding: 0; counter-reset: layer; }
.layer { border-top: 1px solid var(--line); padding: 34px 0 38px; display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 18px; align-items: start; transition: opacity .4s var(--ease); opacity: .38; }
.layer.active { opacity: 1; }
.layer:last-child { border-bottom: 1px solid var(--line); }
.layer .n { font-family: var(--mono); font-size: 13px; color: var(--green-hi); letter-spacing: .1em; padding-top: 6px; }
.layer h3 { margin-bottom: 6px; }
.layer .where { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.layer p { color: var(--text-2); margin: 0; max-width: 52ch; }
.layer a { color: var(--green-hi); text-decoration: none; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; display: inline-block; margin-top: 14px; }
.status { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; padding: 6px 9px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.status.live { color: var(--green-hi); border-color: rgba(34, 211, 238, .4); }
.status.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green-hi); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 8px var(--green-hi); }
.status.base { color: var(--text); border-color: var(--text); }

/* Capability cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(26px, 3vw, 40px); position: relative; overflow: hidden; background: transparent; transition: background .4s var(--ease); min-height: 280px; display: flex; flex-direction: column; text-decoration: none; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(23, 201, 143, .1), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card:hover { background: var(--surface); }
.card .label { padding-bottom: 40px; display: flex; justify-content: space-between; }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--text-3); margin: 0; font-size: 15.5px; }
.card .go { margin-top: auto; padding-top: 26px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-hi); }
.card .glyph { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; opacity: .8; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 34px 24px 6px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat .v { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -.02em; }
.stat .v small { font-size: .4em; color: var(--green-hi); margin-left: 4px; }
.stat .label { display: block; margin-top: 14px; line-height: 1.6; }

/* Split media blocks */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
.media { position: relative; aspect-ratio: 4 / 3.4; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.media canvas { width: 100%; height: 100%; }
.media .tag { position: absolute; top: 16px; left: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); z-index: 2; }
.media .tag b { color: var(--green-hi); font-weight: 500; }
.media .tag.r { left: auto; right: 18px; }
.media .rec { position: absolute; bottom: 16px; left: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--muted); z-index: 2; text-transform: uppercase; }
.media .rec::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 8px; animation: blink 1.2s infinite; }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { padding: 14px 0 14px 32px; border-top: 1px solid var(--line); position: relative; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 23px; width: 14px; height: 1px; background: var(--green-hi); }
.ticks li::after { content: ""; position: absolute; left: 13px; top: 20px; width: 1px; height: 7px; background: var(--green-hi); }

/* Process / timeline */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 1px; background: var(--line-2); }
.process .bar { position: absolute; left: 0; top: 9px; height: 1px; background: var(--green-hi); box-shadow: 0 0 10px var(--green-hi); width: 0; transition: width 2.2s var(--ease); }
.process.in .bar { width: 100%; }
.step { padding: 44px 22px 0 0; position: relative; }
.step::before { content: ""; position: absolute; top: 4px; left: 0; width: 11px; height: 11px; background: var(--bg); border: 1px solid var(--green-hi); transform: rotate(45deg); }
.step .label { display: block; margin-bottom: 14px; color: var(--green-hi); }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--text-3); font-size: 15px; margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line-2); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
th, td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
td:first-child { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-hi); white-space: nowrap; }
td { color: var(--text-2); }

/* Phone (ODIN demo) */
.phone-stage { position: relative; display: grid; place-items: center; padding: 40px 0; }
.phone-stage::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(11, 142, 104, .25), transparent 62%); filter: blur(10px); }
.phone { position: relative; width: min(300px, 86vw); aspect-ratio: 9 / 19; border-radius: 44px; background: #0C0F10; border: 1px solid #2A3132; box-shadow: 0 0 0 6px #070909, 0 40px 100px rgba(11,31,58,.28), inset 0 0 0 1px rgba(255,255,255,.04); overflow: hidden; display: flex; flex-direction: column; }
.phone .notch { width: 96px; height: 26px; background: #000; border-radius: 0 0 16px 16px; margin: 0 auto; flex: none; }
.phone .bar-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.phone .avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #3A4243, #222829); }
.phone .who { font-size: 13px; font-weight: 700; }
.phone .who small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.phone .msgs { flex: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; overflow: hidden; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; display: none; }
.bubble.in { display: block; animation: fade .45s var(--ease); }
.bubble.them { background: #1E2526; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { background: #2D3536; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.flag { box-shadow: 0 0 0 1px var(--amber); }
.risk { padding: 10px 16px 14px; border-top: 1px solid rgba(255,255,255,.06); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.risk .meter { height: 3px; background: rgba(255,255,255,.08); margin-top: 8px; position: relative; overflow: hidden; }
.risk .meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--green-hi), var(--amber)); transition: width .8s var(--ease); }
.nudge { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #F3F4F2; color: #0B1F3A; border-radius: 22px; padding: 20px 18px 16px; transform: translateY(120%); transition: transform .6s var(--ease); }
.nudge.in { transform: none; }
.nudge .k { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.nudge strong { display: block; font-size: 16px; line-height: 1.3; margin-bottom: 6px; }
.nudge p { font-size: 13px; color: #3B4140; margin: 0 0 14px; }
.nudge .acts { display: grid; gap: 8px; }
.nudge .acts span { display: block; text-align: center; padding: 11px; border-radius: 12px; font-size: 13px; font-weight: 700; background: #0B1F3A; color: #fff; }
.nudge .acts span + span { background: transparent; color: #0B1F3A; border: 1px solid rgba(11,31,58,.18); }
.phone-callouts { position: absolute; inset: 0; pointer-events: none; }
.callout { position: absolute; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity .5s; }
.callout.in { opacity: 1; }
.callout b { color: var(--green-hi); font-weight: 500; }
.callout::before { content: ""; width: 18px; height: 1px; background: var(--green-hi); flex: none; }
.callout span { background: var(--bg); padding: 4px 6px; }
.callout.l { flex-direction: row-reverse; }

/* Terminal */
.terminal { background: #030404; border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; line-height: 1.85; color: #9BA4A2; padding: 18px 20px; height: 340px; overflow: hidden; position: relative; }
.terminal::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(transparent, #030404); pointer-events: none; }
.terminal .ok { color: var(--green-hi); }
.terminal .warn { color: var(--amber); }
.terminal .err { color: var(--red); }
.terminal .t { color: var(--grey); }
.terminal-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 12px 20px; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); }

/* Principles (big numbered) */
.principles { counter-reset: p; }
.principle { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); align-items: start; }
.principle .n { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--green-hi); }
.principle h3 { font-size: clamp(22px, 2.3vw, 32px); }
.principle p { color: var(--text-3); margin: 0; }

/* Two-column ledger (stays / never) */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.ledger > div { padding: clamp(26px, 3vw, 44px); }
.ledger > div + div { border-left: 1px solid var(--line); }
.ledger h3 { margin-bottom: 20px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.person { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px; }
.person .portrait { aspect-ratio: 4 / 4.4; margin-bottom: 22px; background: var(--surface); position: relative; overflow: hidden; }
.person .portrait canvas { width: 100%; height: 100%; }
.person .portrait .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 64px; color: var(--text); letter-spacing: .04em; }
.person h3 { font-size: 22px; margin-bottom: 6px; }
.person .label { display: block; margin-bottom: 14px; color: var(--green-hi); }
.person p { color: var(--text-3); font-size: 15px; margin: 0; }
.person.open .portrait { border: 1px dashed var(--line-2); background: transparent; }

/* CTA */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(44px, 8vw, 128px); max-width: 12ch; margin-bottom: 36px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.contact-grid > div { padding: 22px 22px 0 0; }
.contact-grid a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--green); }

/* Notice */
.note { border: 1px solid var(--line-2); padding: 18px 22px; font-size: 14.5px; color: var(--text-3); display: flex; gap: 16px; align-items: flex-start; }
.note::before { content: "NOTE"; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--amber); padding-top: 3px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 72px 0 36px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-foot h4 { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 10px; }
.site-foot a { text-decoration: none; color: var(--text-2); font-size: 15px; }
.site-foot a:hover { color: var(--green-hi); }
.foot-brand p { color: var(--muted); font-size: 14.5px; max-width: 42ch; }
.foot-word { margin: 80px 0 28px; user-select: none; line-height: 0; }
.foot-word svg { display: block; width: 100%; height: auto; overflow: visible; }
.foot-word text { font-family: var(--display); font-weight: 900; font-size: 150px; letter-spacing: -.01em; fill: none; stroke: rgba(233, 237, 236, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); border-top: 1px solid var(--line); padding-top: 22px; }

/* Boot overlay */
/* Load intro: the LS mark assembles. Layers drop in, a notice travels down them (chain of custody), the seal stamps on. */
.boot { position: fixed; inset: 0; z-index: 200; background: radial-gradient(70% 60% at 50% 42%, #0F2A4A 0%, #071226 64%); color: #E6EEF8; display: flex; align-items: center; justify-content: center; padding: var(--gutter); font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; transition: opacity .7s var(--ease), visibility .7s; cursor: pointer; }
.boot.done { opacity: 0; visibility: hidden; }
.boot .bar { position: absolute; left: 0; top: 0; height: 2px; background: #22D3EE; box-shadow: 0 0 12px #22D3EE; width: 0; animation: boot 3.4s linear forwards; }
@keyframes boot { to { width: 100%; } }
.i-stage { display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translateY(-4vh); }
.i-mark { width: min(480px, 90vw); overflow: visible; margin-bottom: -28px; }
.i-p { fill: #E6EEF8; stroke: #22D3EE; stroke-width: 0; opacity: 0; transform-box: fill-box; transform-origin: center; animation: iDrop .55s var(--ease) forwards, iFlash .5s ease-out forwards; }
.i-p0 { animation-delay: .15s, 1.22s; --o: 1; } .i-p1 { animation-delay: .35s, 1.58s; --o: .7; } .i-p2 { animation-delay: .55s, 1.94s; --o: .35; }
@keyframes iDrop { from { opacity: 0; transform: translateY(-38px); } to { opacity: var(--o); transform: none; } }
@keyframes iFlash { 0% { stroke-width: 0; fill: #E6EEF8; } 30% { stroke-width: 2.2px; fill: #BFF4FB; } 100% { stroke-width: 0; fill: #E6EEF8; } }
.i-lab { font: 500 6px var(--mono); letter-spacing: .18em; fill: #8FA0B8; opacity: 0; animation: iLab 1.9s ease forwards; }
.i-lab0 { animation-delay: .5s; } .i-lab1 { animation-delay: .7s; } .i-lab2 { animation-delay: .9s; }
@keyframes iLab { 0% { opacity: 0; transform: translateX(6px); } 20%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.i-pkt { fill: #22D3EE; filter: drop-shadow(0 0 4px #22D3EE); opacity: 0; animation: iPkt 1.25s cubic-bezier(.5,0,.5,1) 1s forwards; }
@keyframes iPkt { 0% { opacity: 0; transform: translateY(-6px); } 8% { opacity: 1; } 22%, 30% { transform: translateY(36px); } 50%, 58% { transform: translateY(56px); } 80%, 90% { opacity: 1; transform: translateY(76px); } 100% { opacity: 0; transform: translateY(80px); } }
.i-cut { r: 0; animation: iCut .35s var(--ease) 2.32s forwards; }
@keyframes iCut { to { r: 24px; } }
.i-seal { opacity: 0; transform-box: view-box; transform-origin: 92px 28px; animation: iStamp .6s cubic-bezier(.2,1.4,.4,1) 2.35s forwards; }
@keyframes iStamp { from { opacity: 0; transform: scale(2.4) rotate(-40deg); } to { opacity: 1; transform: none; } }
.i-ring { fill: none; stroke: #CFE0EE; stroke-width: 1.2; opacity: 0; transform-box: view-box; transform-origin: 92px 28px; animation: iRing .8s ease-out 2.5s forwards; }
@keyframes iRing { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
.i-word { display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; transform: translateY(10px); animation: iWord .8s var(--ease) 2.8s forwards; text-transform: none; letter-spacing: 0; }
.i-word .brand-word, .i-word .brand-word small { font-size: clamp(30px, 4.4vw, 50px); }
.i-word .brand-word small { color: #8FA0B8; }
.i-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes iWord { to { opacity: 1; transform: none; } }
.boot .lines { position: absolute; left: var(--gutter); bottom: var(--gutter); color: #8FA0B8; display: grid; gap: 4px; }
.boot .lines div { opacity: 0; animation: fade .3s forwards; }
.boot .lines div b { color: #22D3EE; font-weight: 500; }
.i-skip { position: absolute; right: var(--gutter); bottom: var(--gutter); background: none; border: 1px solid rgba(230,238,248,.25); color: #8FA0B8; font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; padding: 8px 14px; cursor: pointer; }
@media (max-width: 700px) { .boot .lines { display: none; } }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
[data-reveal="clip"].in { clip-path: inset(0 0 0 0); }
[data-delay="1"] { transition-delay: .1s; } [data-delay="2"] { transition-delay: .2s; } [data-delay="3"] { transition-delay: .3s; } [data-delay="4"] { transition-delay: .4s; } [data-delay="5"] { transition-delay: .5s; }

/* Cursor crosshair (pointer devices only) */
.xhair { position: fixed; z-index: 150; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; border: 1px solid rgba(23, 201, 143, .55); transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), border-color .25s; }
.xhair::before, .xhair::after { content: ""; position: absolute; background: var(--green-hi); }
.xhair::before { left: 50%; top: -6px; bottom: -6px; width: 1px; }
.xhair::after { top: 50%; left: -6px; right: -6px; height: 1px; }
.xhair.hot { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: var(--green-hi); }
@media (hover: none), (pointer: coarse) { .xhair { display: none; } }

/* Responsive */
@media (max-width: 1040px) {
  .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: 1fr; }
  .process::before, .process .bar { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process.in .bar { width: 1px; height: 100%; }
  .process .bar { height: 0; transition: height 2.2s var(--ease); }
  .step { padding: 0 0 36px 44px; }
  .step::before { top: 4px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .principle { grid-template-columns: 80px minmax(0, 1fr); }
  .principle p { grid-column: 2; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { position: fixed; inset: 72px 0 auto 0; background: rgba(255,255,255,.98); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .3s var(--ease); }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav a::after { display: none; }
  .nav a.nav-cta { margin: 16px 0 0; text-align: center; padding: 16px; }
  .section-head, .stack, .split, .ledger { grid-template-columns: 1fr; }
  .section-head .lede { justify-self: start; }
  .split.flip > :first-child { order: 0; }
  .stack-visual { position: relative; top: 0; aspect-ratio: 1 / .8; }
  .ledger > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .team, .contact-grid { grid-template-columns: 1fr; }
  .telemetry { display: none; }
  .layer { grid-template-columns: 48px minmax(0, 1fr); }
  .layer .status { grid-column: 2; justify-self: start; }
  .callout { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards, .cards.two, .cards.four { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 1fr; gap: 14px; }
  .principle p { grid-column: auto; }
  .hero-meta .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .ticker-track { animation: none; }
  .boot { display: none; }
}

/* Contact pop-up (assets/js/contact.js) */
html.cf-lock { overflow: hidden; }
.cf-modal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--text); }
.cf-modal[open] { display: grid; place-items: center; }
.cf-modal::backdrop { background: rgba(7, 18, 38, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cf-panel { position: relative; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border: 1px solid var(--line-2); border-top: 3px solid var(--green);
  padding: clamp(28px, 5vw, 48px); box-shadow: 0 30px 80px rgba(7, 18, 38, .35);
  animation: cf-in .35s var(--ease); }
@keyframes cf-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cf-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 1px solid transparent; color: var(--text); cursor: pointer; transition: border-color .2s, color .2s; }
.cf-close:hover, .cf-close:focus-visible { border-color: var(--line-2); color: var(--green); outline: none; }
.cf-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.cf-title { font-family: var(--display); font-size: clamp(30px, 4vw, 42px); line-height: 1.05; margin: 12px 0 10px; }
.cf-lede { color: var(--text-3); margin: 0 0 28px; font-size: 15.5px; }
.cf-form { display: grid; gap: 18px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-field { display: grid; gap: 7px; }
.cf-field > span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cf-field em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .75; }
.cf-field input, .cf-field select, .cf-field textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--surface);
  border: 1px solid transparent; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 12px 14px; width: 100%;
  transition: border-color .2s, background .2s; }
.cf-field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B1F3A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.cf-field textarea { resize: vertical; min-height: 120px; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; background: #fff; border-color: var(--green); }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 4px; }
.cf-fine { font-size: 12.5px; color: var(--muted); margin: 0; max-width: 34ch; line-height: 1.5; }
.cf-send { flex: none; cursor: pointer; }
.cf-send[disabled] { opacity: .6; cursor: progress; }
.cf-status { font-size: 14.5px; color: var(--text-2); margin: 0; min-height: 1.2em; }
.cf-done h3 { font-family: var(--display); font-size: 26px; margin: 8px 0 8px; }
.cf-done p { color: var(--text-3); margin: 0 0 24px; }
@media (max-width: 640px) { .cf-row { grid-template-columns: 1fr; } .cf-foot { flex-direction: column; align-items: stretch; } .cf-fine { max-width: none; } }
