/* ============================================================
   FLUX — DoorDash cloud agents platform · landing page
   Design: engineering-tool aesthetic, DoorDash red #EB1700
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --red: #EB1700;
  --red-bright: #FF4A33;
  --red-soft: #FF6A52;
  --ink: #0B0B0D;
  --ink-2: #121216;
  --ink-3: #1A1A20;
  --paper: #F6F4F1;
  --paper-2: #EFEBE6;
  --text-hi: #F4F3F5;
  --text-mid: #B9B7BE;
  --text-low: #7E7C86;
  --text-ink: #16151A;
  --text-ink-mid: #4E4C55;
  --line-dark: rgba(255, 255, 255, 0.09);
  --line-light: rgba(22, 21, 26, 0.12);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.35);
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--ink);
  color: var(--text-hi);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-paper :focus-visible, .surfaces :focus-visible {
  outline-color: var(--red);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: 72px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: -60px; left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin: 0 0 18px;
}
.eyebrow-light { color: var(--red); }
.eyebrow-onred { color: rgba(255, 255, 255, 0.85); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.section-title .accent, .panel-title .accent, .timeline-title .accent, h3 .accent { color: var(--red); }
.on-paper .section-title .accent { color: var(--red); }

.section-lede {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--text-mid);
  max-width: 62ch;
  margin: 0;
}
.on-paper .section-lede { color: var(--text-ink-mid); }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.btn .ext { font-size: 0.85em; }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 28px rgba(235, 23, 0, 0.35);
}
.btn-primary:hover { background: #D51400; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(235, 23, 0, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-hi);
  border-color: var(--line-dark);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.btn-invert {
  background: #fff;
  color: var(--red);
}
.btn-invert:hover { background: #FFE9E5; transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); background: rgba(11, 11, 13, 0.88); }

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 40px;
}
.brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-hi);
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-low);
  border-left: 1px solid var(--line-dark);
  padding-left: 10px;
  margin-left: 2px;
  line-height: 1.3;
}
@media (max-width: 560px) { .brand-tag { display: none; } }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav ul a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.site-nav ul a:hover { color: var(--text-hi); background: rgba(255, 255, 255, 0.06); }
.site-nav ul a[aria-current] { color: var(--text-hi); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff;
  background: var(--red);
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s var(--ease-out);
}
.nav-cta:hover { background: #D51400; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--text-hi);
  border-radius: 2px;
  transition: transform 0.2s var(--ease-out), opacity 0.15s, top 0.2s var(--ease-out);
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -6px; left: 0; right: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 840px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(11, 11, 13, 0.97);
    border-bottom: 1px solid var(--line-dark);
    padding: 18px var(--gutter) 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s var(--ease-out), visibility 0.2s;
  }
  .site-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { font-size: 16px; padding: 12px 14px; }
  .nav-cta { text-align: center; padding: 13px 16px; font-size: 13.5px; }
}

.scroll-progress {
  height: 2px;
  background: transparent;
}
.scroll-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-soft));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 128px 0 96px;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(235, 23, 0, 0.16), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(235, 23, 0, 0.08), transparent 55%),
    var(--ink);
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--ink));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.2vw, 5rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero-title-accent { color: var(--text-hi); position: relative; display: inline-block; }
.hero-title-accent .dot { color: var(--red); font-style: normal; }
.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 56ch;
  margin: 0 0 32px;
}
.hero-lede strong { color: var(--text-hi); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0; padding: 0;
}
.hero-proof li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.hero-proof li:hover { border-color: rgba(235, 23, 0, 0.55); transform: translateY(-2px); }
.proof-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-hi);
  font-variant-numeric: tabular-nums;
}
.proof-label {
  font-size: 11.5px;
  color: var(--text-low);
  letter-spacing: 0.02em;
}

/* --- console --- */
.hero-console { min-width: 0; }
.console-frame {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 26, 32, 0.92), rgba(13, 13, 16, 0.96));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.console-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark);
}
.console-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.console-dot:first-child { background: rgba(235, 23, 0, 0.8); }
.console-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-low);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.console-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-bright);
  border: 1px solid rgba(235, 23, 0, 0.4);
  padding: 2px 8px;
  border-radius: 99px;
  transition: opacity 0.2s;
}
.console-body {
  padding: 20px 18px 16px;
  min-height: 232px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-mid);
}
.console-body .cl { display: block; white-space: pre-wrap; word-break: break-word; }
.console-body .cl-cmd { color: var(--text-hi); }
.console-body .cl-cmd .ch-prompt { color: var(--red-bright); margin-right: 8px; }
.console-body .cl-step { color: var(--text-mid); }
.console-body .cl-step .ch-key { color: var(--red-soft); }
.console-body .cl-ok { color: #7DD8A0; }
.console-body .cl-msg { color: var(--text-mid); }
.console-body .cl-msg .ch-author { color: var(--text-hi); font-weight: 600; }
.console-body .cl-flux { color: var(--text-mid); }
.console-body .cl-flux .ch-author { color: var(--red-soft); font-weight: 600; }
.console-body .cl-chan { color: var(--text-low); letter-spacing: 0.04em; }
.console-body .caret {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--red-bright);
  vertical-align: -2px;
  margin-left: 2px;
}
.console-body .caret.is-blink { animation: caret-blink 0.9s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

.console-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
}
.console-foot span::before { content: "— "; color: var(--red); }

@media (max-width: 980px) {
  .hero { padding-top: 116px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-console { max-width: 640px; }
}

/* ============================================================
   SCALE
   ============================================================ */
.scale {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  position: relative;
}
.scale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 36px;
}
.scale-card {
  background: var(--ink-2);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.25s;
}
.scale-card:hover { background: #17171C; }
.scale-num {
  order: -1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-hi);
  font-variant-numeric: tabular-nums;
}
.scale-card:first-child .scale-num { color: var(--red-bright); }
.scale-label { font-size: 14.5px; font-weight: 600; color: var(--text-hi); margin: 8px 0 0; }
.scale-note { margin: 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-low); letter-spacing: 0.03em; }
.scale-tagline {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
}
.scale-tagline span { position: relative; padding-left: 18px; }
.scale-tagline span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  background: var(--red);
  border-radius: 2px;
}
@media (max-width: 900px) {
  .scale-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .scale-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WHY — light band
   ============================================================ */
.why {
  background: var(--paper);
  color: var(--text-ink);
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
}
.why .section-lede { color: var(--text-ink-mid); }

.tradeoff {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}
.tradeoff-card {
  position: relative;
  border: 1px solid var(--line-light);
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.tradeoff-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(22, 21, 26, 0.09); }
.tradeoff-card p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text-ink); max-width: 30ch; }
.tradeoff-card strong { border-bottom: 3px solid rgba(235, 23, 0, 0.35); }
.tradeoff-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.tradeoff-or {
  display: flex;
  align-items: center;
}
.tradeoff-or span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-ink-mid);
  writing-mode: vertical-rl;
}
.tradeoff-answer {
  margin: 0 0 clamp(48px, 7vw, 84px);
  font-size: 16.5px;
  color: var(--text-ink-mid);
}
.tradeoff-answer strong {
  color: var(--red);
  font-weight: 700;
}

.pullquote {
  margin: 0 0 clamp(52px, 7vw, 84px);
  padding: 0 0 0 28px;
  border-left: 3px solid var(--red);
}
.pullquote p {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.32;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-ink);
  max-width: 34ch;
  text-wrap: balance;
}
.pullquote em { font-style: normal; color: var(--red); }
.pullquote figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-ink-mid);
}

.why-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-ink-mid);
  margin: 0 0 24px;
}

/* teach cards (flip) */
.teach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.teach {
  position: relative;
  font: inherit;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  perspective: 1200px;
  min-height: 300px;
}
.teach-face {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 26px;
  border-radius: var(--radius);
  backface-visibility: hidden;
  transition: transform 0.55s var(--ease-out);
  position: absolute;
  inset: 0;
}
.teach-front {
  background: #fff;
  border: 1px solid var(--line-light);
}
.teach-back {
  background: var(--ink);
  color: var(--text-hi);
  transform: rotateY(180deg);
  border: 1px solid rgba(235, 23, 0, 0.4);
}
.teach:hover .teach-front, .teach:focus-visible .teach-front, .teach.is-flipped .teach-front { transform: rotateY(-180deg); }
.teach:hover .teach-back, .teach:focus-visible .teach-back, .teach.is-flipped .teach-back { transform: rotateY(0deg); }
.teach:focus-visible { outline-offset: 6px; }

.teach-icon { width: 40px; height: 40px; color: var(--text-ink); }
.teach-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.teach-icon .zz { stroke: var(--red); stroke-width: 2; }
.teach-back .teach-icon { color: var(--red-bright); }

.teach-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-ink-mid);
}
.teach-kicker-flux { color: var(--red-bright); }
.teach-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.teach-text { font-size: 14.5px; line-height: 1.6; color: var(--text-ink-mid); margin: 0; }
.teach-back .teach-text { color: var(--text-mid); }
.teach-hint {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--red);
}
.teach-back .teach-hint { color: var(--text-low); }
.teach:hover .teach-front .teach-hint, .teach:focus-visible .teach-front .teach-hint { color: var(--red); opacity: 1; }
.teach-front .teach-hint { opacity: 0.75; }

@media (max-width: 900px) {
  .teach-grid { grid-template-columns: 1fr; }
  .teach { min-height: 260px; }
}

/* ============================================================
   PLATFORM — dark immersive
   ============================================================ */
.platform {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(235, 23, 0, 0.07), transparent 60%),
    var(--ink);
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--line-dark);
}
.platform .section-lede { color: var(--text-mid); }

.platform-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.pipeline-sticky { position: sticky; top: 104px; }

.pipeline { width: 100%; height: auto; overflow: visible; }
.pipeline-v { display: none; max-width: 340px; margin: 0 auto; }
@media (max-width: 1020px) {
  .pipeline-h { display: none; }
  .pipeline-v { display: block; }
}
.pipe-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 2;
  stroke-dasharray: 0.02 0.022;
}
.pipe-node rect {
  fill: var(--ink-2);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
  transition: stroke 0.3s, fill 0.3s;
}
.pipe-node-label {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--text-hi);
  letter-spacing: 0.02em;
}
.pipe-node-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  fill: var(--text-low);
  letter-spacing: 0.06em;
}
.pipe-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--text-low);
  letter-spacing: 0.05em;
}
.pipe-node.is-active rect, .pipe-node.is-passing rect { stroke: var(--red-bright); fill: #1D0E0C; }
.pipe-node.is-active .pipe-node-label, .pipe-node.is-passing .pipe-node-label { fill: #fff; }
.pipe-packet {
  fill: var(--red-bright);
  filter: drop-shadow(0 0 6px rgba(255, 74, 51, 0.9));
  opacity: 0;
}
.pipe-packet.is-running { opacity: 1; }
.pipe-result path { fill: rgba(125, 216, 160, 0); transition: fill 0.3s; }
.pipe-result.is-delivered path { fill: #7DD8A0; }

.pipeline-hint {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-low);
  letter-spacing: 0.03em;
  min-height: 2.6em;
}
.pipeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-low);
}
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-agentic { background: linear-gradient(135deg, var(--red), var(--red-soft)); }
.sw-deterministic { background: repeating-linear-gradient(45deg, #3E3E48 0 3px, #2A2A31 3px 6px); }

@media (max-width: 1020px) {
  .platform-layout { grid-template-columns: 1fr; }
  .pipeline-sticky { position: static; }
}

/* tabs */
.tablist-wrap { margin-bottom: 26px; }
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-mid);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.tab:hover { color: var(--text-hi); border-color: rgba(255, 255, 255, 0.28); }
.tab[aria-selected="true"] {
  color: #fff;
  border-color: var(--red);
  background: rgba(235, 23, 0, 0.12);
}
.tab-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red-bright);
  letter-spacing: 0.06em;
}

.panel {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 26, 32, 0.6), rgba(15, 15, 18, 0.6));
  padding: clamp(24px, 3.4vw, 40px);
}
.panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 14px;
  text-wrap: balance;
}
.panel-copy { color: var(--text-mid); font-size: 15.5px; line-height: 1.68; margin: 0 0 28px; max-width: 64ch; }
.panel-copy strong { color: var(--text-hi); font-weight: 600; }
.panel-link {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 74, 51, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.15s;
}
.panel-link:hover { border-color: var(--red-bright); }

/* widgets */
.widget {
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(11, 11, 13, 0.65);
  padding: 20px 20px 18px;
}
.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.widget-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mid);
  letter-spacing: 0.03em;
}
.widget-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red-bright);
  border: 1px solid rgba(235, 23, 0, 0.45);
  border-radius: 99px;
  padding: 3px 10px;
  white-space: nowrap;
}
.widget-badge-live {
  color: #7DD8A0;
  border-color: rgba(125, 216, 160, 0.4);
}
.widget-badge-live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7DD8A0;
  margin-right: 6px;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot { 50% { opacity: 0.35; } }
.widget-note {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-low);
}

/* SLO widget */
.slo-track {
  position: relative;
  height: 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: visible;
}
.slo-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--red-soft));
  transition: width 1.4s var(--ease-out);
}
.slo-marker {
  position: absolute;
  top: -4px; bottom: -4px;
  left: 100%;
  width: 2px;
  background: rgba(255, 255, 255, 0.5);
}
.slo-marker::after {
  content: "5s";
  position: absolute;
  top: -22px; left: -8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mid);
}
.slo-phases {
  list-style: none;
  display: flex;
  margin: 26px 0 0;
  padding: 0;
}
.slo-phases li {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--text-low);
  border-left: 1px solid var(--line-dark);
  padding-left: 8px;
  line-height: 1.5;
}
.slo-phases li:first-child { border-left: none; }

/* gateway widget */
.gw-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.scope {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid;
}
.scope svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scope-granted { color: #7DD8A0; border-color: rgba(125, 216, 160, 0.35); background: rgba(125, 216, 160, 0.06); }
.scope-denied { color: var(--text-low); border-color: var(--line-dark); background: rgba(255, 255, 255, 0.02); text-decoration: line-through; text-decoration-color: rgba(235, 23, 0, 0.6); }
.gw-log {
  border-top: 1px dashed var(--line-dark);
  padding-top: 12px;
  min-height: 96px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 2;
  color: var(--text-low);
  overflow: hidden;
}
.gw-log .gl { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-log .gl-time { color: var(--text-low); margin-right: 10px; }
.gw-log .gl-allow { color: #7DD8A0; }
.gw-log .gl-scope { color: var(--red-soft); }

/* yaml widget */
.widget-yaml { padding: 20px 0 8px; }
.widget-yaml .widget-head { padding: 0 20px; }
.yaml {
  margin: 0;
  padding: 16px 20px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--text-mid);
  tab-size: 2;
}
.yaml .yk { color: var(--red-soft); }
.yaml .yv { color: var(--text-hi); }
.yaml .yc { color: var(--text-low); }
.yaml .ys {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 7px;
  border-radius: 4px;
  margin-right: 6px;
}
.yaml .ys.agentic { color: var(--red-bright); border: 1px solid rgba(235, 23, 0, 0.5); }
.yaml .ys.deterministic { color: var(--text-mid); border: 1px solid rgba(255, 255, 255, 0.22); }

/* fan widget */
.widget-fan { text-align: center; }
.fan-surfaces {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.fan-chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-hi);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.fan-chip:hover { border-color: var(--red); color: var(--red-bright); transform: translateY(-2px); }
.fan-join { height: 44px; margin: 4px auto 0; max-width: 320px; }
.fan-line {
  fill: none;
  stroke: rgba(255, 106, 82, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  animation: fan-dash 1.2s linear infinite;
}
@keyframes fan-dash { to { stroke-dashoffset: -8; } }
.fan-target { margin-top: 6px; }
.fan-target-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #fff;
  background: rgba(235, 23, 0, 0.16);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 9px 16px;
}

/* ============================================================
   SURFACES — light band
   ============================================================ */
.surfaces {
  background: var(--paper);
  color: var(--text-ink);
  padding: clamp(80px, 10vw, 140px) 0;
}
.surfaces .section-lede { color: var(--text-ink-mid); }
.surfaces .section-lede code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(235, 23, 0, 0.08);
  border: 1px solid rgba(235, 23, 0, 0.2);
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--red);
}

.surface-tabs { margin-bottom: 28px; }
.tablist-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.pill {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-ink-mid);
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 99px;
  padding: 10px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.pill:hover { border-color: rgba(235, 23, 0, 0.5); color: var(--red); }
.pill[aria-selected="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 6px 20px rgba(235, 23, 0, 0.3);
}

.surface-stage { margin-bottom: 34px; }
.stage {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(22, 21, 26, 0.05), 0 18px 50px rgba(22, 21, 26, 0.08);
}
.stage-chrome {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-ink);
  background: var(--paper-2);
}
.stage-chrome-meta { margin-left: auto; font-size: 11px; font-weight: 400; color: var(--text-ink-mid); letter-spacing: 0.03em; }

.chat { padding: 22px 22px 16px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; flex-direction: column; gap: 3px; max-width: 78%; }
.msg p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-ink); }
.msg code { font-family: var(--font-mono); font-size: 0.88em; background: rgba(235, 23, 0, 0.07); border-radius: 5px; padding: 1px 6px; color: var(--red); }
.msg-author { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--text-ink-mid); }
.msg-human { align-self: flex-end; align-items: flex-end; background: var(--paper); border: 1px solid var(--line-light); border-radius: 14px 14px 4px 14px; padding: 12px 16px; }
.msg-flux { align-self: flex-start; border: 1px solid rgba(235, 23, 0, 0.3); background: rgba(235, 23, 0, 0.04); border-radius: 14px 14px 14px 4px; padding: 12px 16px; }
.msg-flux .msg-author { color: var(--red); }

.gh { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.gh-comment { display: flex; gap: 12px; align-items: flex-start; }
.gh-comment p { margin: 4px 0 0; font-size: 14.5px; color: var(--text-ink); }
.gh-comment p code { font-family: var(--font-mono); font-size: 0.88em; background: rgba(235, 23, 0, 0.07); border-radius: 5px; padding: 1px 6px; color: var(--red); }
.gh-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  flex: 0 0 auto;
}
.gh-avatar-human { background: #3E3E48; }
.gh-avatar-flux { background: var(--red); color: var(--red); padding: 0; }
.gh-avatar-flux svg { width: 100%; height: 100%; border-radius: 50%; }
.gh-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 44px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-ink);
  background: rgba(125, 216, 160, 0.08);
  border: 1px solid rgba(62, 142, 100, 0.3);
  border-radius: 8px;
  padding: 9px 14px;
}
.gh-check-icon {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #2E8A5F;
  color: #fff;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gh-check-meta { margin-left: auto; color: var(--text-ink-mid); font-size: 11px; }

.cron, .cliterm {
  margin: 0;
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-ink);
  overflow-x: auto;
  background: #14141A;
}
.cron .c-comment { color: #7E7C86; }
.cron .c-cadence { color: var(--red-soft); }
.cron .c-pb { color: #F4F3F5; font-weight: 600; }
.cliterm .t-prompt { color: var(--red-bright); }
.cliterm .t-arg { color: var(--text-hi); }
.cliterm .t-dim { color: var(--text-low); }
.cliterm .t-ok { color: #7DD8A0; }

.stage-caption {
  margin: 0;
  padding: 13px 20px;
  border-top: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-ink-mid);
}
.stage-caption::before { content: "— "; color: var(--red); }

.surface-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0; padding: 0;
}
.surface-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  background: #fff;
  padding: 16px 16px 14px;
  cursor: default;
  transition: border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.surface-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(22, 21, 26, 0.08); }
.surface-card strong { font-size: 14.5px; color: var(--text-ink); display: flex; align-items: center; gap: 8px; }
.surface-card span:last-child { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.03em; color: var(--text-ink-mid); }
.surface-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-light);
  transition: background 0.2s, box-shadow 0.2s;
}
.surface-card[data-active] { border-color: var(--red); }
.surface-card[data-active] .surface-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(235, 23, 0, 0.15); }
@media (max-width: 900px) {
  .surface-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .surface-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   LESSONS — dark timeline
   ============================================================ */
.lessons {
  background:
    radial-gradient(800px 460px at 85% 0%, rgba(235, 23, 0, 0.06), transparent 60%),
    var(--ink);
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--line-dark);
}

.timeline {
  list-style: none;
  margin: 0 0 clamp(64px, 8vw, 100px);
  padding: 0;
  position: relative;
  max-width: 780px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--line-dark);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  padding: 26px 0;
}
.timeline-marker {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}
.timeline-item.is-in .timeline-marker { border-color: var(--red); background: #1D0E0C; }
.timeline-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 6px 0 10px;
}
.timeline-body p { margin: 0; color: var(--text-mid); font-size: 15.5px; line-height: 1.68; max-width: 58ch; }

.next { border-top: 1px dashed var(--line-dark); padding-top: clamp(36px, 5vw, 56px); }
.next .eyebrow { margin-bottom: 22px; }
.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.next-card {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: 28px 28px 24px;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.next-card:hover { border-color: rgba(235, 23, 0, 0.5); transform: translateY(-3px); }
.next-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.next-title::after {
  content: "";
  display: block;
  width: 34px; height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 12px;
}
.next-card p { margin: 0; color: var(--text-mid); font-size: 14.5px; line-height: 1.65; }
@media (max-width: 720px) { .next-grid { grid-template-columns: 1fr; } }

/* ============================================================
   STORY — red closing
   ============================================================ */
.story {
  background:
    radial-gradient(900px 480px at 100% 100%, rgba(0, 0, 0, 0.22), transparent 60%),
    var(--red);
  color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
}
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.story-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.story-dot { color: var(--ink); }
.story-lede { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, 0.92); max-width: 48ch; margin: 0 0 30px; }
.story .btn-invert { color: var(--red); }

.figures { margin-top: 38px; }
.figures-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 12px;
}
.figures ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.figures a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 99px;
  padding: 7px 15px;
  transition: background 0.15s, border-color 0.15s;
}
.figures a:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.story-card {
  background: #fff;
  color: var(--text-ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.story-card:hover { transform: translateY(-5px); box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38); }
.story-card-img { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; }
.story-card-body { padding: 24px 26px 22px; }
.story-card-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}
.story-card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.story-card-authors { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 0; padding: 0; }
.story-card-authors li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-ink);
}
.story-card-authors img {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--paper-2);
}
@media (max-width: 980px) { .story-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding: clamp(44px, 6vw, 64px) 0 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand p { margin: 0; font-size: 14px; color: var(--text-mid); max-width: 40ch; }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.footer-nav a {
  font-size: 13.5px;
  color: var(--text-mid);
  text-decoration: none;
  padding: 6px 2px;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--text-hi); }
.footer-note { margin-top: 30px; border-top: 1px solid var(--line-dark); padding-top: 22px; }
.footer-note p { margin: 0; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7; color: var(--text-low); max-width: 90ch; }

/* ============================================================
   REVEAL MOTION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slo-fill { transition: none; }
  .fan-line { animation: none; }
  .widget-badge-live::before { animation: none; }
  .console-body .caret.is-blink { animation: none; }
  .teach-face { transition: none; }
  .story-card, .next-card, .surface-card, .tradeoff-card { transition: none; }
}

/* hero canvas prefers reduced handled in JS */
