/* ZeroTB marketing site.
   Theme: dark, locked. One accent (proof green). Semantic red appears only
   on "not operating" states. Radius rule: containers 12px, buttons pill. */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #0b0f0d;
  --bg-raised: #10151250;
  --surface: #121814;
  --surface-2: #171e19;
  --line: rgba(226, 238, 231, 0.09);
  --line-strong: rgba(226, 238, 231, 0.16);
  --text: #e9efe9;
  --text-2: #a3b3a9;
  --text-3: #6d7d73;
  --accent: #4fd99a;
  --accent-ink: #07130d;
  --bad: #e2685f;
  --font-sans: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --radius: 12px;
  --nav-h: 68px;
  --container: 1240px;
  /* z scale: 1 content overlays, 10 nav, 60 grain */
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, dl, dd, dt, ol, ul, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* film grain, fixed so it never repaints on scroll */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute; left: 16px; top: -48px;
  z-index: 20; padding: 10px 18px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; text-decoration: none; font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}
@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
}

/* ---------- type ---------- */
.h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lede {
  margin-top: 24px;
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-2);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.25s ease,
              border-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: #6ce4ad; }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 10;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-scrolled {
  background: rgba(11, 15, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 40px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.35rem; letter-spacing: -0.04em;
  text-decoration: none;
}
.wordmark .mark { flex: none; }
.wordmark .tb { color: var(--accent); }
.nav-links {
  display: flex; gap: 32px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.btn-nav { padding: 11px 22px; font-size: 0.95rem; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 24px 24px;
  background: rgba(11, 15, 13, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a {
  padding: 14px 0;
  text-decoration: none;
  color: var(--text);
  font-size: 1.15rem; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }
.nav.menu-open .mobile-menu { display: flex; }
@media (max-width: 860px) {
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav { background: rgba(11, 15, 13, 0.78); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  overflow: clip;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 18% 45%, rgba(11, 15, 13, 0.92) 0%, rgba(11, 15, 13, 0.55) 45%, rgba(11, 15, 13, 0.1) 75%),
    linear-gradient(to top, var(--bg) 0%, transparent 22%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding-top: var(--nav-h);
}
.hero-h1 {
  /* sized so each sentence holds one line from ~1100px up */
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.hero-line { display: block; }
.hero-line.accent { color: var(--accent); }
/* on phones the first sentence wraps; give the two sentences visible separation */
@media (max-width: 700px) {
  .hero-line + .hero-line { margin-top: 14px; }
}
.hero-sub {
  margin-top: 28px;
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-2);
}
.hero-ctas {
  margin-top: 40px;
  display: flex; gap: 16px; flex-wrap: wrap;
}

/* ---------- gap ---------- */
.gap { padding: clamp(96px, 14vh, 160px) 0; }

/* a year of changes vs the audit sample window */
.year { margin-top: 56px; }
.year-svg { display: block; width: 100%; height: auto; }
/* on phones the builder emits a vertical composition instead */
@media (max-width: 700px) {
  .year-svg { max-width: 380px; margin-inline: auto; }
}
.year-tick { stroke: var(--line-strong); stroke-width: 2; }
.year-window {
  fill: rgba(79, 217, 154, 0.08);
  stroke: rgba(79, 217, 154, 0.45);
  stroke-width: 1;
}
.year-dot { fill: #4c5c53; }
.year-ai { opacity: 0.85; }
.year-drift { fill: none; stroke: #ef6e63; stroke-width: 2.5; }
.year-halo { fill: var(--bad); opacity: 0.12; }
.year-connect { stroke: var(--bad); stroke-width: 1; opacity: 0.4; }
@media (prefers-reduced-motion: no-preference) {
  .year-drift { animation: year-pulse 2.6s ease-in-out infinite; }
  @keyframes year-pulse { 50% { opacity: 0.45; } }
}
.year-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  fill: var(--text-3);
}
.year-label-bad { fill: var(--bad); }
.year-legend {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-2);
}
.year-legend li { display: flex; align-items: center; gap: 10px; }
.lg-dot { width: 8px; height: 8px; border-radius: 50%; background: #55685e; }
.lg-win {
  width: 16px; height: 11px; border-radius: 3px;
  background: rgba(79, 217, 154, 0.08);
  border: 1px solid rgba(79, 217, 154, 0.45);
}
.lg-drift { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid #ef6e63; }
.year-after {
  margin: 64px auto 0;
  max-width: 52ch;
  text-align: center;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-2);
}

/* ---------- loop ---------- */
.loop { background: var(--surface); border-block: 1px solid var(--line); }
.loop-pin {
  min-height: 100dvh;
  display: flex; align-items: center;
  padding: 80px 0;
}
.loop-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
  width: min(var(--container), 100% - 48px);
}
.loop-title { max-width: 12ch; }
.loop-stages {
  margin-top: 48px;
  position: relative;
}
/* static stack by default (no JS, reduced motion, mobile) */
.stage + .stage { margin-top: 48px; }
/* overlapping crossfade only once JS pins the section */
.loop.is-pinned .stage {
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.loop.is-pinned .stage.is-active { opacity: 1; visibility: visible; }
.stage-name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
  color: var(--accent);
}
.stage-body {
  margin-top: 16px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 52ch;
}
.loop-progress {
  display: none;
  margin-top: 40px;
  height: 2px; width: min(360px, 80%);
  background: var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
}
.loop.is-pinned .loop-progress { display: block; }
.loop-progress-bar {
  display: block; height: 100%; width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}
/* the commitment artifact: one record, five moments */
.artifacts { position: relative; }
.artifact + .artifact { margin-top: 48px; }
.loop.is-pinned .artifact {
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.loop.is-pinned .artifact.is-active { opacity: 1; visibility: visible; }
.art-file {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-2);
}
.art-doc {
  border-left: 2px solid var(--line-strong);
  padding: 4px 0 4px 22px;
}
.art-doc-src {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
}
.art-doc-text {
  margin-top: 10px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-2);
}
.art-doc-text mark {
  background: rgba(79, 217, 154, 0.16);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 4px;
}
.art-card {
  margin-top: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  display: flex; flex-direction: column; gap: 12px;
}
.artifact > .art-card:first-child { margin-top: 0; }
.art-row { display: flex; justify-content: space-between; gap: 16px; }
.art-row span { color: var(--text-3); }
.art-row b { font-weight: 500; color: var(--text); text-align: right; }
.art-confirm { margin-top: 6px; color: var(--accent); }
.art-confirm::before { content: "\2713\00a0"; }
.art-block span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
}
.art-block p { margin-top: 4px; color: var(--text); }
.art-block .bad { color: var(--bad); }
.art-chip {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.art-chip + .art-chip { margin-top: 12px; }
.art-chip p { color: var(--text); }
.chip-state {
  flex: none;
  min-width: 76px;
  text-align: center;
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--accent);
  border: 1px solid rgba(79, 217, 154, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.chip-state.pending { color: var(--text-2); border-color: var(--line-strong); }
.art-alt {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
}
.art-mttr {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.art-mttr-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}
/* the mini receipt is paper, like the real one below */
.receipt-mini {
  background: #edf0e9;
  color: #131a15;
  border-radius: var(--radius);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 20px 50px rgba(4, 7, 5, 0.5);
}
.receipt-mini .mini-head {
  font-weight: 500;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(19, 26, 21, 0.3);
}
.receipt-mini .art-row span { color: #6c7a70; }
.receipt-mini .art-row b { color: #131a15; }
.receipt-mini .art-row .mini-ok { color: #0f7a4d; }
.ticker {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex; flex-wrap: wrap;
  row-gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}
.ticker li { transition: color 0.3s ease; white-space: nowrap; }
.ticker li:not(:last-child)::after {
  content: "\2192";
  margin: 0 8px;
  color: var(--text-3);
  opacity: 0.5;
}
.ticker li.is-lit { color: var(--text-2); }
.ticker li.is-current { color: var(--accent); }
.art-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}
@media (max-width: 899px) {
  .loop-pin { min-height: 0; padding: 96px 0; }
  .loop-grid { grid-template-columns: 1fr; }
  .loop-right { display: none; }
  .loop-stages { margin-top: 24px; }
}

/* ---------- AI operating model ---------- */
.ai-model {
  padding: clamp(96px, 14vh, 160px) 0;
  border-bottom: 1px solid var(--line);
}
.ai-model .h2 { max-width: 19ch; }
.ai-roles {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.ai-role {
  min-height: 360px;
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-strong);
}
.ai-role:last-child { border-right: 0; }
.ai-role-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.ai-role h3 {
  margin-top: auto;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.ai-role > p:not(.ai-role-scope) {
  margin-top: 18px;
  max-width: 35ch;
  color: var(--text-2);
}
.ai-role-scope {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}
.ai-role.is-operating {
  box-shadow: inset 0 3px 0 var(--accent);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(79, 217, 154, 0.1), transparent 68%),
    var(--surface-2);
}
.ai-role.is-operating .ai-role-meta,
.ai-role.is-operating .ai-role-scope { color: var(--accent); }
.ai-boundary {
  margin-top: 24px;
  max-width: 76ch;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
}
@media (max-width: 899px) {
  .ai-roles { grid-template-columns: 1fr; }
  .ai-role { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .ai-role:last-child { border-bottom: 0; }
}

/* ---------- receipt ---------- */
.receipt { padding: clamp(96px, 14vh, 160px) 0; }
.receipt-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.receipt-copy .btn { margin-top: 36px; }
.receipt-card { perspective: 1200px; }
/* paper on a dark desk: the one light object on the page */
.receipt-paper {
  background: #edf0e9;
  color: #131a15;
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 44px);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  box-shadow: 0 40px 100px rgba(3, 5, 4, 0.75);
  transform-style: preserve-3d;
  will-change: transform;
}
.receipt-head {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(19, 26, 21, 0.3);
  font-weight: 500;
}
.receipt-head .dim { color: #6c7a70; }
.receipt-rows { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; }
.receipt-rows > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
}
.receipt-rows dt { color: #6c7a70; }
.receipt-rows dd { color: #131a15; }
.receipt-foot {
  display: flex; align-items: center; gap: 16px;
  padding-top: 18px;
  border-top: 1px dashed rgba(19, 26, 21, 0.3);
  color: #445048;
}
.receipt-foot .ok { color: #0f7a4d; }
.seal { color: #0f7a4d; margin-left: auto; }
@media (prefers-reduced-motion: no-preference) {
  .js .seal-ring, .js .seal-check {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
  }
}
.receipt-foot .ok { font-weight: 500; }
.receipt-cap {
  margin-top: 16px;
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-3);
}
@media (max-width: 899px) {
  .receipt-grid { grid-template-columns: 1fr; }
  .receipt-rows > div { grid-template-columns: 90px 1fr; gap: 10px; }
}

/* ---------- surfaces ---------- */
.surfaces {
  padding: clamp(96px, 14vh, 160px) 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.acc { margin-top: 64px; border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line-strong); }
.acc-head {
  width: 100%;
  display: flex; align-items: baseline; gap: 20px;
  padding: 26px 4px;
  text-align: left;
}
.acc-title {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}
.acc-head:hover .acc-title { color: var(--accent); }
.acc-item.is-open .acc-title { color: var(--accent); }
.acc-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  white-space: nowrap;
}
.acc-icon {
  margin-left: auto;
  position: relative;
  width: 16px; height: 16px;
  flex: none;
  align-self: center;
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 16px; height: 2px;
  background: var(--text-2);
  transition: transform 0.3s ease;
}
.acc-icon::after { transform: rotate(90deg); }
.acc-item.is-open .acc-icon::after { transform: rotate(0deg); }
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-content { overflow: hidden; }
.acc-content p {
  padding: 0 4px 30px;
  max-width: 62ch;
  color: var(--text-2);
  font-size: 1.05rem;
}
@media (max-width: 640px) {
  .acc-status { display: none; }
}

/* ---------- customer control story ---------- */
.control-story {
  padding: clamp(96px, 14vh, 160px) 0;
  border-bottom: 1px solid var(--line);
}
.story-heading {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: end;
}
.story-heading .lede { margin-top: 0; }
.eyebrow,
.story-kicker,
.story-label,
.story-index {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.74rem;
}
.framework-note {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  max-width: 78ch;
  color: var(--text-2);
}
.story-shell {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.story-sequence {
  background: var(--bg);
}
.story-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(24px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
}
.story-step:last-child { border-bottom: 0; }
.story-index {
  padding-top: 3px;
  color: var(--text-3);
  font-size: 0.72rem;
}
.story-label {
  color: var(--text-3);
  font-size: 0.72rem;
}
.story-step p:last-child {
  margin-top: 8px;
  max-width: 58ch;
  color: var(--text-2);
  font-size: 1.02rem;
}
.story-step.is-verified {
  box-shadow: inset 3px 0 0 var(--accent);
  background: linear-gradient(90deg, rgba(79, 217, 154, 0.07), transparent 42%);
}
.story-step.is-verified .story-index,
.story-step.is-verified .story-label { color: var(--accent); }
.story-step.is-verified p:last-child { color: var(--text); }
.story-value {
  padding: clamp(32px, 4vw, 52px);
  border-left: 1px solid var(--line-strong);
  background:
    radial-gradient(80% 55% at 100% 0%, rgba(79, 217, 154, 0.09), transparent 70%),
    var(--surface);
}
.story-kicker {
  color: var(--accent);
  font-size: 0.72rem;
}
.story-value h3 {
  margin-top: 20px;
  max-width: 14ch;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.story-value ul {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.story-value li {
  position: relative;
  padding: 17px 0 17px 28px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}
.story-value li:last-child { border-bottom: 1px solid var(--line); }
.story-value li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 899px) {
  .story-heading,
  .story-shell { grid-template-columns: 1fr; }
  .story-heading .lede { margin-top: 0; }
  .story-value { border-left: 0; border-top: 1px solid var(--line-strong); }
  .story-value h3 { max-width: 19ch; }
}
@media (max-width: 520px) {
  .story-step { grid-template-columns: 36px 1fr; }
}

/* ---------- trust ---------- */
.trust { padding: clamp(96px, 14vh, 160px) 0; }
.trust-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-cell {
  background: var(--bg);
  padding: clamp(28px, 3.5vw, 44px);
}
.trust-cell:nth-child(1) { background: var(--surface); }
.trust-cell:nth-child(4) { background: var(--surface); }
.trust-cell h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.trust-cell p {
  margin-top: 12px;
  color: var(--text-2);
  max-width: 44ch;
}
.trust-foot {
  margin-top: 56px;
  display: flex; align-items: center; gap: 40px;
}
.soc2-badge { flex: none; color: var(--text-2); }
.badge-ring-text {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.174em;
  text-transform: uppercase;
  fill: var(--text-2);
}
.badge-spin { transform-origin: 60px 60px; }
@media (prefers-reduced-motion: no-preference) {
  .badge-spin { animation: badge-rot 50s linear infinite; }
  @keyframes badge-rot { to { transform: rotate(360deg); } }
}
.badge-center {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  fill: var(--text);
}
.badge-check { stroke: var(--accent); }
.trust-note {
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--text-2);
}
@media (max-width: 640px) {
  .trust-foot { flex-direction: column; align-items: flex-start; gap: 28px; }
}
@media (max-width: 720px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ---------- integrations ---------- */
.stack { padding: 80px 0 clamp(96px, 12vh, 140px); }
.stack-title { color: var(--text-2); font-weight: 500; }
.marquee {
  margin-top: 48px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center;
  gap: clamp(56px, 8vw, 110px);
  width: max-content;
  padding-block: 8px;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 40px; width: auto;
  opacity: 0.65;
  transition: opacity 0.25s ease;
}
.marquee-track img:hover { opacity: 1; }
@keyframes marquee {
  to { transform: translateX(calc(-50% - clamp(28px, 4vw, 55px))); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
}

/* ---------- pilot ---------- */
.pilot {
  padding: clamp(96px, 14vh, 160px) 0;
  background:
    radial-gradient(90% 70% at 80% 10%, rgba(79, 217, 154, 0.07) 0%, transparent 60%),
    var(--surface);
  border-top: 1px solid var(--line);
}
.pilot-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.pilot-flow {
  margin-top: 48px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.pilot-flow li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.pilot-flow span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.pilot-form {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
}
.form-title { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
.field { margin-top: 22px; display: grid; gap: 8px; }
.field label { font-size: 0.92rem; font-weight: 700; }
.field .opt { color: var(--text-3); font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field.has-error input { border-color: var(--bad); }
.field-err { color: var(--bad); font-size: 0.88rem; }
.field input[type="month"] { color-scheme: dark; }
.btn-submit { margin-top: 28px; width: 100%; }
.btn-submit[disabled] { opacity: 0.6; cursor: wait; }
.form-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.5;
}
.form-msg { margin-top: 14px; text-align: center; font-size: 0.95rem; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: var(--bad); }
@media (max-width: 899px) {
  .pilot-grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
}
.footer-grid {
  display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 34ch;
  color: var(--text-3);
  font-size: 0.95rem;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-legal {
  margin-top: 56px;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
}
.footer-legal a { color: var(--text-3); text-decoration: none; }
.footer-legal a:hover { color: var(--text-2); }
.footer-soc { display: inline-flex; align-items: center; gap: 6px; }
.footer-soc svg { color: var(--accent); }

/* ---------- document pages (privacy, terms, 404) ---------- */
.doc-nav {
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
}
.doc-nav .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.doc-nav .home-link {
  font-size: 0.95rem;
  color: var(--text-2);
  text-decoration: none;
}
.doc-nav .home-link:hover { color: var(--text); }
.doc {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(56px, 9vh, 96px) 24px clamp(72px, 10vh, 120px);
}
.doc h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.doc-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-3);
}
.doc-intro { margin-top: 24px; }
.doc h2 {
  margin-top: 56px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.doc h3 { margin-top: 28px; font-size: 1.02rem; font-weight: 700; }
.doc p { margin-top: 16px; color: var(--text-2); }
.doc ul {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--text-2);
  display: grid; gap: 8px;
}
.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc strong { color: var(--text); font-weight: 700; }
.doc-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.doc-footer .container {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
}
.doc-footer a { color: var(--text-3); }

/* ---------- 404 ---------- */
.nf {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 24px;
}
.nf-code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}
.nf h1 {
  margin-top: 20px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.nf p { margin-top: 12px; color: var(--text-2); max-width: 40ch; }
.nf .btn { margin-top: 36px; }

/* ---------- reveal defaults (JS animates in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); }
  .js .hero-line, .js .hero-sub, .js .hero-ctas { opacity: 0; }
}

/* ---------- cookie consent (first-party, injected by js/analytics.js) ---------- */
.consent {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  max-width: 400px;
  padding: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.consent p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-2);
}
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.consent a:hover { color: var(--accent); }
.consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.consent .btn { padding: 9px 20px; font-size: 0.9rem; }
@media (max-width: 520px) {
  .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
