/* Galac.ai — light theme. Brand: Cultured #F7F7F7, Rich Black #000205, Azure #2E7EFF, Platinum #E9EAEC, Geist */

:root {
  --bg: #f7f7f7;
  --card: #ffffff;
  --sunk: #eff0f2;
  --platinum: #e9eaec;
  --ink: #000205;
  --ink-2: #4a5059;
  --ink-3: #868c95;
  --line: rgba(0, 2, 5, 0.1);
  --line-2: rgba(0, 2, 5, 0.16);
  --accent: #2e7eff;
  --accent-ink: #1a66e6;
  --ok-bg: #e2f2e8; --ok: #1d6a43;
  --warn-bg: #fbe9e3; --warn: #a8381f;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 160ms;
  --slow: 600ms;

  --r-ctrl: 10px;
  --r-card: 16px;
  --r-panel: 24px;

  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --gutter: 32px;
  --max: 1360px;
  --nav: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: rgba(46, 126, 255, 0.25); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--ink-3); }
.star { width: 12px; height: 12px; fill: currentColor; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-ctrl);
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: #1b2027; }
.btn--line { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--accent { background: var(--accent-ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--platinum); }

/* Shared type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.eyebrow .star { color: var(--accent-ink); }
.eyebrow b { font-weight: 600; color: var(--ink); }
.chapter { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.chapter .mono { color: var(--accent-ink); font-size: 13px; }
.h2 { margin-top: 16px; font-size: clamp(34px, 4vw, 56px); line-height: 1.04; font-weight: 400; letter-spacing: -0.04em; max-width: 18ch; }
.h2--sm { font-size: clamp(28px, 2.8vw, 40px); max-width: 24ch; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 36ch; }
.section { padding: 104px 0; }
.section-head { margin-bottom: 48px; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }

.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 13px; font-weight: 500; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: currentColor; }
.tag--warn { background: var(--warn-bg); color: var(--warn); }
.tag--ok { background: var(--ok-bg); color: var(--ok); }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; }
.chip--ok { background: var(--ok); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.nav.is-scrolled { background: rgba(247, 247, 247, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--nav); display: flex; align-items: center; gap: 40px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 14px; color: var(--ink-2); transition: color var(--fast) var(--ease); }
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); }
.nav__menu, .mobile-menu { display: none; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--nav); overflow: hidden; }
.hero__stage { position: absolute; top: 24px; bottom: 24px; right: 0; width: 60%; }
.hero__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__core {
  position: absolute; left: 0; top: 0; width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-ink);
  box-shadow: 0 0 0 10px rgba(247, 247, 247, 0.9), 0 24px 48px -16px rgba(0, 2, 5, 0.35);
  z-index: 20; will-change: transform;
}
.hero__core img { width: 56%; height: auto; }
.sat {
  position: absolute; left: 0; top: 0; width: 112px; height: 56px; margin: -28px 0 0 -56px;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 24px -12px rgba(0, 2, 5, 0.25);
  will-change: transform, opacity;
}
.sat img { max-width: 64%; max-height: 46%; }

.hero__content { position: relative; z-index: 30; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 40px; pointer-events: none; }
.hero__content > * { pointer-events: auto; }
.hero__title { margin-top: 24px; font-size: clamp(46px, 6.3vw, 96px); line-height: 0.97; font-weight: 400; letter-spacing: -0.05em; max-width: 9.5ch; }
.hero__sub { margin-top: 24px; max-width: 30ch; font-size: 20px; line-height: 1.4; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }


/* 01 The gap */
.gap { padding-top: 104px; border-top: 1px solid var(--line); background: var(--card); }
.gap__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.gap__copy .lede { margin-top: 24px; }
.gap__cards { display: grid; grid-template-columns: 1fr 88px 1fr; align-items: center; }
.record { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.record header { display: flex; justify-content: space-between; align-items: center; height: 28px; }
.record header img { height: 22px; width: auto; max-width: 96px; }
.record__title { margin-top: 20px; font-size: 20px; letter-spacing: -0.02em; }
.record dl { margin-top: 12px; display: grid; }
.record dl div { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 40px; border-top: 1px solid var(--line); font-size: 14px; }
.record dt { color: var(--ink-3); }
.gap__void { display: grid; justify-items: center; gap: 8px; }
.gap__dash { width: 100%; height: 0; border-top: 2px dashed var(--line-2); transition: border-color var(--slow) var(--ease); }
.gap__badge {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-ink); grid-row: 1 / span 2; grid-column: 1; align-self: center;
  transform: scale(0); transition: transform 700ms var(--ease) 300ms;
}
.gap__badge img { width: 56%; }
.gap__void { grid-template-rows: auto; position: relative; height: 56px; align-items: center; }
.gap__void .gap__dash { position: absolute; left: 0; right: 0; top: 50%; margin-top: -1px; }
.gap__void .gap__dash:last-child { display: none; }
.gap__badge { position: relative; z-index: 1; }
.gap__cards.is-in .gap__badge { transform: scale(1); }
.gap__cards.is-in .gap__dash { border-top-style: solid; border-color: var(--accent-ink); }

/* 01 Why Galac: three problems, each with a small live scene */
.probs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prob { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.prob__art {
  position: relative; height: 260px; overflow: hidden;
  background-image: radial-gradient(rgba(0, 2, 5, 0.14) 1px, transparent 1px); background-size: 16px 16px; background-position: 8px 8px;
  border-bottom: 1px solid var(--line);
}
.prob__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prob__body h3 { font-size: 24px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.prob__body p { font-size: 15px; color: var(--ink-2); }
.prob__fix { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink) !important; font-weight: 500; }
.prob__fix .star { color: var(--accent-ink); transform: translateY(1px); }

.status { position: absolute; left: 16px; top: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border-radius: 7px; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 11px; }
.status i { width: 6px; height: 6px; border-radius: 3px; background: var(--accent); animation: blink 1.2s steps(2) infinite; }
.status--warn i { background: #ff8a6b; }
@keyframes blink { 50% { opacity: 0.2; } }

/* scene 1: four islands, one person hopping between them */
.isle { position: absolute; width: 112px; padding: 10px 12px; display: grid; gap: 8px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 10px 20px -12px rgba(0, 2, 5, 0.3); }
.isle img { height: 18px; width: auto; max-width: 64px; object-fit: contain; object-position: left center; }
.isle em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.isle--1 { left: 9%; top: 34%; transform: rotate(-7deg); }
.isle--2 { right: 8%; top: 24%; transform: rotate(5deg); }
.isle--3 { left: 22%; bottom: 8%; transform: rotate(4deg); }
.isle--4 { right: 14%; bottom: 13%; transform: rotate(-5deg); }
.cursor { position: absolute; left: 0; top: 0; width: 30px; height: 30px; z-index: 2; fill: var(--accent-ink); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; animation: hop 9s var(--ease) infinite; }
@keyframes hop {
  0%, 100% { transform: translate(90px, 128px); }
  22% { transform: translate(300px, 104px); }
  30% { transform: translate(300px, 104px); }
  50% { transform: translate(150px, 214px); }
  58% { transform: translate(150px, 214px); }
  78% { transform: translate(290px, 196px); }
  86% { transform: translate(290px, 196px); }
}

/* scene 2: requests that sit */
.queue { position: absolute; left: 16px; right: 16px; top: 62px; display: grid; gap: 8px; }
.queue li { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; height: 40px; padding: 0 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; font-size: 13px; overflow: hidden; }
.queue b { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-3); }
.queue u { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent-ink); transform-origin: left center; transform: scaleX(0.04); animation: creep 7s linear infinite; }
.queue li:nth-child(2) u { animation-delay: -2s; }
.queue li:nth-child(3) u { animation-delay: -4s; }
.queue li:nth-child(4) u { animation-delay: -5.5s; }
.queue li:nth-child(n+3) { opacity: 0.7; }
.queue li:nth-child(4) { opacity: 0.4; }
@keyframes creep { 0% { transform: scaleX(0.02); } 70% { transform: scaleX(0.2); } 100% { transform: scaleX(0.22); } }

/* scene 3: bots writing into a system with nothing on the record */
.bots { position: absolute; left: 16px; top: 62px; bottom: 20px; width: 92px; display: grid; gap: 8px; align-content: space-between; }
.bots span { display: grid; place-items: center; height: 38px; background: var(--ink); color: var(--bg); border-radius: 10px; font-family: var(--mono); font-size: 11px; }
.wires { position: absolute; left: 108px; right: 168px; top: 62px; bottom: 20px; width: auto; height: auto; }
.wires path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -22; } }
.target { position: absolute; right: 16px; top: 50%; width: 152px; margin-top: -58px; padding: 14px; display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 10px 20px -12px rgba(0, 2, 5, 0.3); }
.target img { height: 14px; width: auto; max-width: 88px; }
.target ul { display: grid; gap: 6px; }
.target ul li { height: 8px; border-radius: 4px; background: var(--platinum); }
.target ul li:nth-child(2) { width: 70%; }
.target ul li:nth-child(3) { width: 85%; }
.target em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--warn); }

/* 02 The layer: five slabs that assemble into GALAC */
.arch { position: relative; height: 520vh; background: var(--bg); border-top: 1px solid var(--line); }
.arch__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: var(--nav); }
.arch__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.layers { margin-top: 32px; display: grid; border-top: 1px solid var(--line-2); }
.layers li { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); opacity: 0.25; transition: opacity var(--slow) var(--ease); }
.layers__l { font-size: 56px; line-height: 1; letter-spacing: -0.05em; transition: color var(--slow) var(--ease); }
.layers h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.layers p { font-size: 15px; color: var(--ink-2); max-height: 0; opacity: 0; overflow: hidden; transition: max-height var(--slow) var(--ease), opacity var(--slow) var(--ease); }
.layers li.is-in { opacity: 1; }
.layers li.is-on .layers__l { color: var(--accent-ink); }
.layers li.is-on p, .arch.is-done .layers p { max-height: 48px; opacity: 1; }
.arch.is-done .layers li { padding: 8px 0; }

.stackwrap { position: relative; height: min(680px, 76vh); display: grid; place-items: center; }
.stack {
  --s: min(340px, 40vh); --gap: 84px; --t: 22px;
  position: relative; width: var(--s); height: var(--s);
  transform: translateY(calc(var(--gap) * 1.55)) rotateX(57deg) rotateZ(-45deg);
  transform-style: preserve-3d;
  transition: transform 900ms var(--ease);
}
.stack::before { content: ""; position: absolute; inset: -6%; background: rgba(0, 2, 5, 0.16); filter: blur(28px); transform: translateZ(-70px); }
.slab { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * var(--gap))); transition: transform 900ms var(--ease), opacity 500ms var(--ease); }
.slab:not(.is-in) { opacity: 0; transform: translateZ(calc(var(--i) * var(--gap) + 300px)); }
.slab.is-on { transform: translateZ(calc(var(--i) * var(--gap) + 16px)); }
.slab__top { position: absolute; inset: 0; overflow: hidden; background: var(--face); border: 1px solid var(--edge); }
.slab__l, .slab__b { position: absolute; background: var(--side); border: 1px solid var(--edge); }
.slab__l { right: 100%; top: 0; width: var(--t); height: 100%; transform-origin: right center; transform: rotateY(-90deg); }
.slab__b { top: 100%; left: 0; width: 100%; height: var(--t); transform-origin: center top; transform: rotateX(-90deg); background: var(--side-2); }
.slab__top > b { position: absolute; left: 7%; bottom: 0; font-size: calc(var(--s) * 0.42); line-height: 1; font-weight: 500; letter-spacing: -0.05em; color: var(--glyph); }

.slab--core { --face: #fff; --side: #dfe1e5; --side-2: #cfd2d7; --edge: rgba(0, 2, 5, 0.22); --glyph: var(--ink); }
.slab--across { --face: #f1f2f4; --side: #d6d9de; --side-2: #c6c9cf; --edge: rgba(0, 2, 5, 0.22); --glyph: var(--ink); }
.slab--layer { --face: #1a66e6; --side: #1450b8; --side-2: #0f3f93; --edge: #0f3f93; --glyph: #fff; }
.slab--agentic { --face: #fff; --side: #dfe1e5; --side-2: #cfd2d7; --edge: rgba(0, 2, 5, 0.22); --glyph: var(--ink); }
.slab--gov { --face: #000205; --side: #1d2229; --side-2: #2b3139; --edge: #000205; --glyph: #fff; }

.slab__logos { position: absolute; right: 6%; top: 6%; width: 56%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.slab__logos i { display: grid; place-items: center; aspect-ratio: 2 / 1; background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; }
.slab__logos img { max-width: 66%; max-height: 50%; }
.slab__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.slab__wires path { fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-dasharray: 4 4; animation: flow 1.4s linear infinite; }
.slab__wires circle { fill: var(--ink); }
.slab__mark { position: absolute; right: 9%; top: 9%; width: 46%; }
.slab__badges { position: absolute; right: 6%; top: 6%; width: 56%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slab__badges i { display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-2); }
.slab__badges img { display: block; width: 100%; height: 100%; }
.slab__rules { position: absolute; right: 6%; top: 6%; width: 52%; display: grid; gap: 6px; }
.slab__rules li { display: flex; justify-content: space-between; align-items: center; padding: 6% 8%; border: 1px solid rgba(247, 247, 247, 0.22); border-radius: 6px; color: #fff; font-family: var(--mono); font-size: calc(var(--s) * 0.04); }
.slab__rules svg { width: 1.2em; height: 1.2em; color: #7fb0ff; }
.arch.is-done .stack { --gap: 26px; }

/* 03 Product: three animated scenes behind tabs */
.product { background: var(--bg); border-top: 1px solid var(--line); }
.product__head { display: grid; justify-items: center; text-align: center; }
.product__head .h2 { max-width: none; }
.product__head .h2 span { display: block; color: var(--accent-ink); }
.demo { margin-top: 32px; display: grid; justify-items: center; }
.av { display: block; flex: none; width: 40px; height: 40px; border-radius: 50%; }
.demo__tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--card); border: 1px solid var(--line-2); border-radius: 28px; }
.demo__tabs button { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px 0 12px; border: 0; border-radius: 22px; background: none; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.demo__tabs button:hover { color: var(--ink); }
.demo__tabs button.is-on { background: var(--ink); color: var(--bg); }
.demo__tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform-origin: left center; transform: scaleX(0); }
.demo__tabs button.is-on.is-run::after { animation: tabfill var(--dur, 10s) linear forwards; }
@keyframes tabfill { to { transform: scaleX(1); } }
.demo__tabs .av { width: 26px; height: 26px; }
.demo__tabs svg { margin-left: 6px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.demo__faces { display: inline-flex; }
.demo__faces .av + .av { margin-left: -10px; }
.demo__faces .av, .demo__tabs > button > .av { box-shadow: 0 0 0 2px var(--card); }
.demo__tabs button.is-on .av { box-shadow: 0 0 0 2px var(--ink); }
.demo__say { margin-top: 20px; max-width: 62ch; min-height: 54px; text-align: center; font-size: 18px; line-height: 1.5; color: var(--ink-2); transition: opacity var(--fast) var(--ease); }
.demo__say.is-swap { opacity: 0; }
.demo__frame { position: relative; margin-top: 24px; width: 100%; max-width: 1120px; height: 580px; }

.scene { position: absolute; inset: 0; display: grid; gap: 0; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-panel); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(0, 2, 5, 0.35); animation: enter 500ms var(--ease) both; }
.scene[hidden] { display: none; }
.scene [data-at] { opacity: 0; transform: translateY(10px); transition: opacity 450ms var(--ease), transform 450ms var(--ease); }
.scene [data-at].is-in { opacity: 1; transform: none; }
.scene__label { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; color: var(--ink-3); }
.scene__label b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; border-radius: 10px; background: var(--bg); font-weight: 500; color: var(--ink-2); }
.scene__tag { font-family: var(--mono); font-size: 11px; color: var(--accent-ink); }
.scene__time { margin-left: auto; font-size: 13px; color: var(--ink-3); }

.thread { display: flex; flex-direction: column; min-width: 0; }
.thread header { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.thread header b { font-size: 16px; font-weight: 500; }
.thread__body { padding: 20px 24px; display: grid; gap: 12px; align-content: start; max-width: 720px; }
.bubble { justify-self: start; padding: 12px 16px; background: var(--bg); border-radius: 16px; font-size: 15px; line-height: 1.5; }
.bubble--me { justify-self: end; background: var(--ink); color: var(--bg); max-width: 46ch; }
.rec { padding: 16px; border: 1px solid var(--line-2); border-radius: 16px; display: grid; gap: 12px; box-shadow: 0 12px 24px -20px rgba(0, 2, 5, 0.3); }
.rec h4 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; color: var(--ink-2); }
.meter b { font-weight: 500; color: var(--ink); }
.meter i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--platinum); overflow: hidden; }
.meter u { display: block; height: 100%; background: var(--accent-ink); transform-origin: left center; transform: scaleX(0); transition: transform 900ms var(--ease) 300ms; }
.rec.is-in .meter u { transform: scaleX(1); }
.rec dl { margin: 0; display: grid; border-top: 1px solid var(--line); }
.rec dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rec dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.rec dt { color: var(--ink-2); }
.rec dd { margin: 0; font-weight: 500; }
.rec dd.ok { color: var(--ok); }
.acts { position: relative; display: flex; align-items: center; gap: 8px; }
.acts__btn, .acts__ghost { display: inline-grid; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.acts__btn { background: var(--accent-ink); color: #fff; opacity: 1 !important; transform: none !important; transition: background-color 300ms var(--ease) !important; }
.acts__btn em { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; font-style: normal; transition: opacity 300ms var(--ease); }
.acts__btn em:last-child { opacity: 0; }
.acts__btn.is-in { background: var(--ok); }
.acts__btn.is-in em:first-child { opacity: 0; }
.acts__btn.is-in em:last-child { opacity: 1; }
.acts__btn:not(.is-in) em:last-child { position: absolute; }
.acts__ghost { border: 1px solid var(--line-2); color: var(--ink-2); }
.scene .scene__cursor { position: absolute; left: 0; top: 0; width: 24px; height: 24px; fill: var(--ink); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; transform: translate(280px, 70px); transition: opacity 300ms var(--ease), transform 1000ms var(--ease); }
.scene .scene__cursor.is-in { transform: translate(64px, 18px); }
.done { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ok); }

/* Agents scene */
.scene--agents { grid-template-columns: 300px minmax(0, 1fr); }
.inbox { padding: 20px 12px; border-right: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.inbox .scene__label { padding: 0 12px; }
.inbox ul { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.inbox li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; opacity: 1 !important; transform: none !important; }
.inbox li.is-cur { background: var(--bg); }
.inbox li div { display: grid; min-width: 0; }
.inbox li b { font-size: 15px; font-weight: 500; }
.inbox li span { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox li i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); justify-self: center; transition: background-color 300ms var(--ease), transform 300ms var(--ease); }
.inbox li.is-in i { background: var(--ok); transform: scale(1.3); }

/* Analyst scene */
.scene--analyst { grid-template-columns: 240px minmax(0, 1fr); background: none; border: 0; box-shadow: none; overflow: visible; }
.scene--analyst .thread { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-panel); box-shadow: 0 30px 60px -40px rgba(0, 2, 5, 0.35); overflow: hidden; }
.sources { display: grid; gap: 12px; align-content: center; padding-right: 32px; }
.sources ul { position: relative; display: grid; gap: 12px; }
.sources ul::after { content: ""; position: absolute; right: -32px; top: 28px; bottom: 28px; width: 1.5px; background: var(--line-2); }
.sources li { position: relative; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px 0 10px; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; font-size: 15px; font-weight: 500; }
.sources li span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg); }
.sources li img { max-width: 24px; max-height: 16px; }
.sources li::after { content: ""; position: absolute; left: 100%; top: 50%; width: 32px; height: 1.5px; background: var(--accent-ink); transform-origin: left center; transform: scaleX(0); transition: transform 500ms var(--ease) 200ms; }
.sources li.is-in::after { transform: scaleX(1); }
.chart { position: relative; height: 150px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart__grid { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__line { fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms var(--ease) 500ms; }
.rec.is-in .chart__line { stroke-dashoffset: 0; }
.chart__tag { position: absolute; right: 0; top: 0; height: 22px; padding: 0 8px; display: inline-grid; align-items: center; border-radius: 11px; background: var(--accent-ink); color: #fff; font-family: var(--mono); font-size: 11px; }
.points { display: grid; gap: 6px; }
.points li { position: relative; padding-left: 16px; font-size: 14px; color: var(--ink-2); }
.points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }

/* Build scene */
.scene--build { grid-template-columns: 380px minmax(0, 1fr); gap: 24px; padding: 24px; }
.chat { display: grid; gap: 14px; align-content: start; }
.chat .bubble--me { justify-self: stretch; max-width: none; }
.reply { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.steps { display: grid; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 14px; font-weight: 500; }
.steps i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--platinum); border-top-color: var(--accent-ink); animation: spin 0.8s linear infinite; }
.steps li.is-in:has(~ li.is-in) i, .scene.is-end .steps i { animation: none; border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.300l2.600 2.600L12 5.500' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.app { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--card); }
.app__bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-bottom: 2px solid var(--accent-ink); }
.app__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--platinum); }
.app__bar span { margin: 0 auto; padding: 4px 12px; border-radius: 10px; background: var(--bg); font-size: 12px; color: var(--ink-2); transform: translateX(-21px); }
.app__body { flex: 1; display: grid; grid-template-columns: 132px minmax(0, 1fr); }
.app__nav { padding: 12px 8px; border-right: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.app__nav li { padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.app__nav li.is-cur { background: var(--accent-ink); color: #fff; font-weight: 500; }
.app__main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis div { padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; display: grid; gap: 4px; }
.kpis span { font-size: 12px; color: var(--ink-2); }
.kpis b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.app__row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px; }
.donut { padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; display: grid; gap: 8px; justify-items: center; }
.donut .scene__label { justify-self: start; }
.donut svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 6; }
.donut__bg { stroke: var(--platinum); }
.donut__a { stroke: var(--accent-ink); stroke-dasharray: 0 100; transition: stroke-dasharray 1000ms var(--ease) 300ms; }
.donut__b { stroke: var(--ink); stroke-dasharray: 0 100; stroke-dashoffset: -55; transition: stroke-dasharray 1000ms var(--ease) 700ms; }
.donut.is-in .donut__a { stroke-dasharray: 55 45; }
.donut.is-in .donut__b { stroke-dasharray: 45 55; }
.donut ul { width: 100%; display: grid; gap: 4px; }
.donut li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }
.donut li b { margin-left: auto; font-weight: 500; color: var(--ink); }
.donut li i { width: 8px; height: 8px; border-radius: 50%; }
.donut li .a { background: var(--accent-ink); }
.donut li .b { background: var(--ink); }
.tbl { display: grid; gap: 6px; align-content: start; }
.tbl li { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13px; }
.tbl li b { font-weight: 500; }
.tbl__ok { border-color: var(--accent-ink) !important; }
.tbl__ok b { color: var(--accent-ink); }
.toast { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--ink); color: var(--bg); font-size: 13px; }
.toast svg { color: #7fd6a0; }

/* 04 AI Agents: orchestrator, sub-agents, harness */
.agents { background: var(--card); border-top: 1px solid var(--line); }
.crew-head { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
.crew-head .h2 { max-width: 16ch; }
.crew-head__side { padding-bottom: 6px; }
.agent__id { display: block; flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line-2); transition: box-shadow var(--slow) var(--ease); }

.orch { position: relative; margin-top: 48px; display: grid; grid-template-columns: 200px minmax(0, 1fr) 200px; gap: 56px; align-items: center; }
.orch__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.w { fill: none; stroke: var(--line-2); stroke-width: 1.5; transition: stroke var(--slow) var(--ease); }
.w.is-on { stroke: var(--accent-ink); stroke-width: 2; stroke-dasharray: 6 7; animation: flow 0.9s linear infinite; }
.w--out.is-on { animation: none; stroke-dasharray: none; stroke-width: 1.5; }

.node { position: relative; z-index: 2; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 16px; display: grid; gap: 8px; transition: border-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease); }
.orch__task p, .orch__done p { font-size: 18px; line-height: 1.2; letter-spacing: -0.02em; }
.tagline { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.tagline img { height: 16px; width: auto; max-width: 56px; }
.orch__done { background: var(--bg); }
.orch__tick { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--platinum); color: var(--ink-3); transition: background-color var(--slow) var(--ease), color var(--slow) var(--ease); }
.orch__tick svg { width: 16px; height: 16px; }
.orch__done.is-on { border-color: var(--ok); }
.orch__done.is-on .orch__tick { background: var(--ok); color: #fff; }

.harness { position: relative; z-index: 2; border: 1.5px dashed var(--line-2); border-radius: var(--r-panel); background: rgba(247, 247, 247, 0.6); }
.harness__label { position: absolute; left: 20px; top: -11px; padding: 0 8px; background: var(--card); font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.harness__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; align-items: center; padding: 32px 24px 24px; }
.orch__main { justify-items: start; padding: 20px; }
.orch__main h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.orch__main p { font-size: 14px; color: var(--accent-ink); min-height: 21px; }
.orch__badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-ink); margin-bottom: 4px; }
.orch__badge img { width: 56%; }
.orch__main.is-on { border-color: var(--accent-ink); box-shadow: 0 0 0 4px rgba(46, 126, 255, 0.12); }

.subs { display: grid; gap: 8px; }
.sub { position: relative; z-index: 2; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 10px 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; transition: border-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease); }
.sub h4 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.sub p { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.sub p b { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-3); margin-right: 6px; }
.sub.is-on { border-color: var(--accent-ink); box-shadow: 0 0 0 4px rgba(46, 126, 255, 0.12); }
.sub.is-on .agent__id { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent-ink); }
.sub.is-done .agent__id { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ok); }

.harness__bar { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; padding: 16px 24px; border-top: 1.5px dashed var(--line-2); }
.harness__bar .mono { display: block; margin-bottom: 8px; }
.harness__gov ul { display: grid; gap: 4px; }
.harness__gov li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.harness__gov svg { width: 14px; height: 14px; color: var(--ok); }
.harness__obs ol { display: grid; gap: 4px; min-height: 66px; align-content: start; }
.harness__obs li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); animation: enter 400ms var(--ease) both; }
.harness__obs li b { font-weight: 500; color: var(--ink); }
.harness__obs li:last-child b { color: var(--accent-ink); }

.roster { margin-top: 32px; display: grid; grid-template-columns: 200px 1fr; gap: 56px; align-items: start; padding-top: 24px; border-top: 1px solid var(--line); }
.roster__rows { display: grid; gap: 12px; }
.roster__rows div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: baseline; }
.roster__rows span { font-size: 14px; font-weight: 500; }
.roster__rows ul { display: flex; flex-wrap: wrap; gap: 6px; }
.roster__rows li { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 15px; font-size: 13px; color: var(--ink-2); background: var(--bg); }

/* 05 Industries */
.industries { background: var(--card); border-top: 1px solid var(--line); }
.industries .lede { margin-top: 16px; max-width: 56ch; }
.ind { margin-top: 40px; }
.ind__tabs { display: flex; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.ind__tabs::-webkit-scrollbar { display: none; }
.ind__tabs button { position: relative; flex: 1 0 auto; height: 52px; padding: 0 20px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink-3); white-space: nowrap; cursor: pointer; transition: color var(--fast) var(--ease); }
.ind__tabs button:hover { color: var(--ink); }
.ind__tabs button.is-on { color: var(--ink); font-weight: 500; }
.ind__tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform var(--slow) var(--ease); }
.ind__tabs button.is-on::after { transform: scaleX(1); }
.ind__panel { margin-top: 24px; display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: center; padding: 40px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-panel); min-height: 500px; }
.ind__copy { display: grid; gap: 24px; justify-items: start; }
.ind__copy h3 { font-size: 30px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; max-width: 18ch; }
.ind__checks { display: grid; gap: 14px; }
.ind__checks li { display: flex; align-items: center; gap: 12px; font-size: 17px; animation: enter 450ms var(--ease) both; }
.ind__checks svg { flex: none; width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--ok); color: #fff; }
.ind__art { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 20px; display: grid; gap: 12px; box-shadow: 0 30px 60px -40px rgba(0, 2, 5, 0.35); }
.ind__art > * { animation: enter 500ms var(--ease) both; }
.ind__who { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ind__who b { font-size: 16px; font-weight: 500; }
.ind__who span { margin-left: auto; }
.ind__flow { display: grid; gap: 0; }
.ind__flow li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 8px 0; font-size: 15px; animation: enter 500ms var(--ease) both; }
.ind__flow li + li::before { content: ""; position: absolute; left: 21px; top: -8px; height: 16px; width: 1.5px; background: var(--accent-ink); }
.ind__flow i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.ind__flow img { max-width: 28px; max-height: 18px; }
.ind__flow em { display: block; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ind__art .done { padding-top: 12px; border-top: 1px solid var(--line); }

/* 06 Integrations: a hub, filtered by system type */
.systems { border-top: 1px solid var(--line); }
.hubwrap { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.hubwrap__copy .lede { margin-top: 20px; }
.cats { margin-top: 32px; display: grid; border-top: 1px solid var(--line-2); }
.cats button { position: relative; display: grid; grid-template-columns: 72px 1fr; align-items: baseline; gap: 12px; padding: 14px 0 14px 16px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color var(--fast) var(--ease); }
.cats button::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 1px; background: transparent; transition: background-color var(--fast) var(--ease); }
.cats span { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-3); transition: color var(--fast) var(--ease); }
.cats em { font-style: normal; font-size: 15px; color: var(--ink-3); transition: color var(--fast) var(--ease); }
.cats button:hover span, .cats button[aria-selected="true"] span { color: var(--ink); }
.cats button[aria-selected="true"] em { color: var(--ink-2); }
.cats button[aria-selected="true"]::before { background: var(--accent-ink); }

.hub { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.hub__inner {
  position: relative; aspect-ratio: 720 / 440; margin: 32px;
}
.hub { background-image: radial-gradient(rgba(0, 2, 5, 0.12) 1px, transparent 1px); background-size: 16px 16px; background-position: 8px 8px; }
.hub__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub__wires path { fill: none; stroke: var(--line-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke var(--slow) var(--ease); }
.hub__wires path.is-on { stroke: var(--accent-ink); stroke-width: 2; stroke-dasharray: 6 7; animation: flow 1s linear infinite; }
.hub__tile { position: absolute; width: 20.83%; height: 14.5%; min-height: 40px; display: grid; place-items: center; transform: translateY(-50%); background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; opacity: 0.45; transition: opacity var(--slow) var(--ease), border-color var(--slow) var(--ease), box-shadow var(--slow) var(--ease); }
.hub__tile--l { left: 0; }
.hub__tile--r { right: 0; }
.hub__tile img { max-width: 62%; max-height: 46%; }
.hub__tile.is-on { opacity: 1; border-color: var(--accent-ink); box-shadow: 0 12px 24px -14px rgba(0, 2, 5, 0.35); }
.hub__core { position: absolute; left: 50%; top: 50%; width: 12.2%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: var(--accent-ink); box-shadow: 0 0 0 8px var(--card), 0 0 0 9px var(--line); }
.hub__core img { width: 56%; }
.hub__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 56px; padding: 0 20px; border-top: 1px solid var(--line); background: var(--card); }
.hub__foot .status { position: static; }
.hub__foot .status b { font-weight: 400; }

/* Closing */
.closing { padding-top: 104px; padding-bottom: 104px; }
.cta { position: relative; overflow: hidden; background: var(--accent-ink); color: #fff; border-radius: 32px; padding: 64px; min-height: 440px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
.cta__mark { position: absolute; right: -6%; top: -18%; width: 56%; max-width: none; opacity: 0.14; pointer-events: none; }
.cta__title { position: relative; align-self: start; font-size: clamp(40px, 6vw, 88px); line-height: 0.98; font-weight: 400; letter-spacing: -0.05em; max-width: 11ch; }
.cta__side { position: relative; display: grid; gap: 20px; justify-items: start; max-width: 300px; }
.cta__side p { font-size: 18px; line-height: 1.35; }

/* Footer */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--line); background: var(--card); }
.footer__top { display: grid; grid-template-columns: 1fr auto; gap: 64px; padding-bottom: 72px; }
.footer__line { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.03em; max-width: 18ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(140px, auto)); gap: 48px; }
.footer__cols div { display: grid; gap: 10px; align-content: start; }
.footer__h { font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.footer__cols a { font-size: 15px; color: var(--ink-2); transition: color var(--fast) var(--ease); }
.footer__cols a:hover { color: var(--ink); }
.footer__wordmark { width: 100%; height: auto; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { transition: color var(--fast) var(--ease); }
.footer__legal a:hover { color: var(--ink); }
.legal { max-width: 720px; margin: 0 auto; padding: 160px var(--gutter) 120px; }
.legal h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1; font-weight: 400; letter-spacing: -0.04em; }
.legal p { margin-top: 24px; font-size: 18px; color: var(--ink-2); }
.legal a { color: var(--accent-ink); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* v2 hero: a three-part film behind the headline */
.hero--film { color: #fff; background: #0b0f14; }
.film { position: absolute; inset: 0; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1200ms var(--ease), transform 11s linear; }
.film video.is-on { opacity: 1; transform: scale(1); }
.film__veil { position: absolute; inset: 0; background: rgba(4, 8, 14, 0.5); }
.film__veil::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; background: linear-gradient(rgba(4, 8, 14, 0.55), rgba(4, 8, 14, 0)); }
.hero--film .hero__title { max-width: 12ch; color: #fff; }
.hero--film .hero__sub { color: rgba(255, 255, 255, 0.82); max-width: 34ch; }
.btn--glass { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.34); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; }
.hero--film .hero__actions .btn { height: 52px; padding: 0 40px; font-size: 16px; }
.film__chapters { position: relative; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 40px; }
.chap { display: grid; gap: 14px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, 0.55); font: inherit; font-size: 17px; text-align: left; cursor: pointer; transition: color var(--fast) var(--ease); }
.chap:hover, .chap.is-on { color: #fff; }
.chap__bar { display: block; height: 2px; background: rgba(255, 255, 255, 0.24); overflow: hidden; }
.chap__bar i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.chap.is-done .chap__bar i { transform: scaleX(1); }
.chap.is-on .chap__bar i { animation: chapfill var(--dur, 10s) linear forwards; }
@keyframes chapfill { to { transform: scaleX(1); } }
.nav.is-over:not(.is-scrolled) .nav__logo img { filter: brightness(0) invert(1); }
.nav.is-over:not(.is-scrolled) .nav__links a { color: rgba(255, 255, 255, 0.78); }
.nav.is-over:not(.is-scrolled) .nav__links a:hover { color: #fff; }
.nav.is-over:not(.is-scrolled) .nav__cta { background: #fff; color: var(--ink); }
.nav.is-over:not(.is-scrolled) .nav__menu { border-color: rgba(255, 255, 255, 0.4); }
.nav.is-over:not(.is-scrolled) .nav__menu span { background: #fff; }

/* Motion */
.enter { opacity: 0; transform: translateY(12px); animation: enter 800ms var(--ease) forwards; }
.hero__content .enter:nth-child(2) { animation-delay: 80ms; }
.hero__content .enter:nth-child(3) { animation-delay: 160ms; }
.hero__content .enter:nth-child(4) { animation-delay: 240ms; }
@keyframes enter { to { opacity: 1; transform: none; } }
.hero__stage { opacity: 0; animation: fade 1400ms var(--ease) 200ms forwards; }
@keyframes fade { to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1180px) {
  .orch { grid-template-columns: 1fr; gap: 16px; }
  .orch__wires { display: none; }
  .roster { grid-template-columns: 1fr; gap: 16px; }
  .probs { grid-template-columns: 1fr; }
  .prob { flex-direction: row; }
  .prob__art { width: 400px; height: auto; min-height: 260px; flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav__menu { display: grid; place-content: center; gap: 6px; width: 40px; height: 40px; background: none; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; }
  .nav__menu span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform var(--fast) var(--ease); }
  .nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .mobile-menu:not([hidden]) { display: grid; gap: 4px; padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .mobile-menu a:not(.btn) { padding: 12px 0; font-size: 18px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 16px; }

  .hero { min-height: 0; }
  .hero__stage { position: relative; top: auto; bottom: auto; width: 100%; height: 400px; order: 2; }
  .hero__content { flex: none; padding-top: 56px; padding-bottom: 40px; }
  .hero > .container:last-child { order: 3; }
  .sat { width: 84px; height: 42px; margin: -21px 0 0 -42px; border-radius: 10px; }
  .hero__core { width: 72px; height: 72px; }

  .section { padding: 72px 0; }
  .gap { padding-top: 72px; }
  .gap__grid, .gov__grid { grid-template-columns: 1fr; gap: 40px; }
  .crew-head { grid-template-columns: 1fr; gap: 24px; }
  .harness__body, .harness__bar { grid-template-columns: 1fr; gap: 16px; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hubwrap { grid-template-columns: 1fr; gap: 40px; }
  .hub__inner { margin: 20px; }
  .cta { grid-template-columns: 1fr; padding: 40px 28px; min-height: 0; border-radius: 24px; }
  .closing { padding-top: 72px; padding-bottom: 72px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .demo__frame { height: 600px; }
  .scene--agents, .scene--analyst, .scene--build { grid-template-columns: 1fr; }
  .inbox, .sources, .scene--build .chat .steps, .app__nav { display: none; }
  .app__body { grid-template-columns: 1fr; }
  .scene--build { padding: 16px; gap: 12px; }
  .app__row { grid-template-columns: 1fr; }
  .donut { display: none; }
  .thread__body { padding: 16px; }
  .thread header { padding: 0 16px; }
  .ind__panel { grid-template-columns: 1fr; gap: 24px; padding: 20px; min-height: 0; }
  .ind__copy h3 { font-size: 24px; }
  .ind__checks li { font-size: 15px; }
  .ind__tabs button { padding: 0 14px; font-size: 15px; }
  .arch__grid { grid-template-columns: 1fr; gap: 0; }
  .arch__copy .h2 { font-size: 28px; }
  .layers { margin-top: 16px; }
  .layers li { grid-template-columns: 36px 1fr; padding: 6px 0; gap: 12px; }
  .layers__l { font-size: 30px; }
  .layers h3 { font-size: 16px; }
  .layers p { font-size: 13px; }
  .arch.is-done .layers p { max-height: 0; opacity: 0; }
  .stackwrap { height: 46vh; }
  .stack { --s: min(200px, 22vh); --gap: 46px; --t: 14px; }
  .arch.is-done .stack { --gap: 16px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .demo__tabs button { height: 40px; padding: 0 12px 0 8px; font-size: 14px; gap: 6px; }
  .demo__faces .av:not(:first-child) { display: none; }
  .demo__say { font-size: 16px; min-height: 96px; }
  .bubble, .reply { font-size: 14px; }
  .demo__frame { height: 690px; }
  .toast { font-size: 12px; padding: 0 12px; white-space: nowrap; }
  .done { align-items: flex-start; font-size: 13px; }
  .rec h4 { font-size: 15px; }
  .scene__time, .thread header .scene__tag { display: none; }
  .kpis b { font-size: 17px; }
  .nav__cta { display: none; }
  .nav__menu { margin-left: auto; }
  .hero__title { font-size: 44px; }
  .hero__sub { font-size: 18px; }
  .hero__stage { height: 340px; }
  .gap__cards { grid-template-columns: 1fr; gap: 0; }
  .gap__void { height: 64px; width: 56px; margin: 0 auto; }
  .gap__void .gap__dash { left: 50%; right: auto; top: 0; bottom: 0; width: 0; height: auto; margin: 0 0 0 -1px; border-top: 0; border-left: 2px dashed var(--line-2); }
  .gap__cards.is-in .gap__dash { border-left-style: solid; border-color: var(--accent-ink); }
  .roster__rows div { grid-template-columns: 1fr; gap: 8px; }
  .hub__tile { min-height: 0; height: 17%; border-radius: 8px; }
  .hub__inner { margin: 16px; aspect-ratio: 720 / 520; }
  .prob { flex-direction: column; }
  .prob__art { width: auto; height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .footer__base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .enter, .reveal, .hero__stage { opacity: 1; transform: none; }
}

/* v2 hero, small screens (after the shared responsive rules) */
@media (max-width: 960px) {
  .hero--film { min-height: 100svh; }
  .hero--film .hero__content { flex: 1; padding-top: 40px; }
  .film__chapters { gap: 14px; }
  .chap { font-size: 15px; }
}
@media (max-width: 640px) {
  .film__chapters { grid-template-columns: 1fr; gap: 12px; padding-bottom: 28px; }
  .chap:not(.is-on) { display: none; }
  .hero--film .hero__actions .btn { padding: 0 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .film video { transform: none; }
}
