@import url("assets/colors_and_type.css");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,100,0,0");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Lenis owns scroll smoothing — native smooth fights it and causes jitter. */
body {
  background: var(--bg-primary);
  font-family: var(--font-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

button { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
input, textarea, select { background: none; border: 0; outline: 0; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens (overridden by Tweaks) ---------- */
:root {
  --accent: var(--color-blue);
  --accent-2: var(--color-navy);
  --coral-density: 1; /* multiplier for visible coral usage */
  /* Theme-aware foreground colors. The "cinematic" sections used to hardcode
     light-on-dark text — these vars let them work in both themes. */
  --fg-strong: var(--text-primary);
  --fg-soft:   rgba(28,28,28,0.72);
  --fg-mute:   rgba(28,28,28,0.55);
  --rule-soft: rgba(28,28,28,0.14);
}
body.dark {
  --fg-strong: var(--text-on-dark);
  --fg-soft:   rgba(243,246,247,0.78);
  --fg-mute:   rgba(243,246,247,0.55);
  --rule-soft: rgba(255,255,255,0.14);
}

.ms { font-family: 'Material Symbols Outlined'; font-variation-settings: 'wght' 100, 'FILL' 0, 'GRAD' 0, 'opsz' 24; user-select: none; color: var(--icon-color); }

/* Letter component (from design system) */
.letter {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding: 0 8px;
  pointer-events: none;
}
.letter svg { width: 100%; height: 100%; display: block; }

/* ---------- Page chrome ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__brand {
  display: inline-flex; align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 0;
}
body.dark .nav__brand { color: var(--text-on-dark); }
.nav__brand:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 6px;
  border-radius: 2px;
}
.nav__brand-logo {
  display: block;
  height: 28px;
  width: auto;
  color: inherit;
  transition: opacity 0.2s ease;
}
.nav__brand:hover .nav__brand-logo { opacity: 0.78; }
.nav__right { display: flex; gap: 12px; align-items: center; }
.nav__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(0px);
  border-radius: 4px;
}
body.dark .nav__status { background: rgba(28,28,28,0.6); color: var(--text-on-dark); }
.nav__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-coral);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.nav__cta {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  position: relative;
}
.nav__cta::before {
  content: ""; position: absolute;
  width: 30px; height: 30px;
  background: var(--color-red); border-radius: 50%;
  left: 4px; top: 50%; transform: translateY(-50%);
  opacity: 0; transition: opacity 0.3s ease;
  z-index: 0;
}
.nav__cta:hover::before { opacity: 1; }
.nav__cta > * { position: relative; z-index: 1; }

/* Theme toggle */
.theme-toggle {
  width: 60px; height: 32px;
  position: relative;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 3px;
  transition: background 0.3s ease;
  flex-shrink: 0;
}
body.dark .theme-toggle { background: rgba(255,255,255,0.08); }
.theme-toggle__track {
  position: relative;
  width: 100%; height: 100%;
  display: block;
}
.theme-toggle__thumb {
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--text-primary);
  transition: transform 0.35s cubic-bezier(0.65,0,0.35,1);
}
.theme-toggle.is-dark .theme-toggle__thumb {
  transform: translateX(28px);
  background: var(--color-coral);
}
.theme-toggle__icon {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 14px !important;
  font-variation-settings: 'wght' 200, 'FILL' 0, 'GRAD' 0, 'opsz' 24 !important;
  color: var(--text-secondary);
  pointer-events: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.theme-toggle__icon--sun { left: 7px; opacity: 0; }
.theme-toggle__icon--moon { right: 7px; opacity: 0.6; color: var(--text-primary); }
.theme-toggle.is-dark .theme-toggle__icon--sun { opacity: 0.65; color: var(--text-on-dark); }
.theme-toggle.is-dark .theme-toggle__icon--moon { opacity: 0; }

/* ---------- Section chrome ---------- */
.section {
  position: relative;
  padding: 120px 0;
}
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .num { color: var(--color-coral); }
.eyebrow .bar { display: inline-block; width: 32px; height: 1px; background: currentColor; opacity: 0.4; }

.bode-stop {
  display: inline-block;
  width: 0.22em; height: 0.22em;
  background: var(--color-coral);
  vertical-align: baseline;
  margin-left: 0.06em;
}

/* ---------- HERO (logo-led) ---------- */
.hero {
  min-height: auto;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  animation: gridAppear 1.4s ease 0.2s forwards;
}
.hero__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(28,28,28,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28,28,28,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 70%);
}
body.dark .hero__bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
}
@keyframes gridAppear { to { opacity: 1; } }

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 110px 80px 56px;
  max-width: 1320px;
  margin: 0 auto;
}

/* The wordmark. Reveals via animated clip-path so the real logo unfolds left→right */
.hero__logo {
  position: relative;
  margin: 12px 0 36px;
  width: 100%;
  max-width: 880px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}
.hero__logo-img {
  width: 100%;
  height: auto;
  display: block;
  clip-path: inset(0 100% 0 0);
  animation: logoReveal 1.6s cubic-bezier(0.65,0,0.35,1) 0.5s forwards;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0));
}
body.dark .hero__logo-img {
  filter: invert(1) brightness(1.05);
}
@keyframes logoReveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.hero__logo-rule {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--color-coral);
  margin-bottom: 8%;
  opacity: 0;
  transform: scale(0.4);
  animation: stopIn 0.5s ease 2s forwards;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-coral);
  animation: pulse 2s ease-in-out infinite;
}
.hero__eyebrow .pipe { opacity: 0.3; }

.hero__headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 32px;
  max-width: 1100px;
  text-wrap: balance;
}
.hero__headline .word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.18em;
}
.hero__headline .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: chIn 0.5s ease forwards;
}
@keyframes chIn { to { opacity: 1; transform: translateY(0); } }

.hero__headline .stop {
  display: inline-block;
  width: 0.22em; height: 0.22em;
  background: var(--color-coral);
  vertical-align: baseline;
  margin-left: 0.06em;
  margin-bottom: 0.02em;
  opacity: 0;
  animation: stopIn 0.4s ease 2.4s forwards;
  transform: scale(0.4);
}
@keyframes stopIn {
  to { opacity: 1; transform: scale(1); }
}

.hero__sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease 2.4s forwards;
}
.hero__sub p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--text-secondary);
  text-wrap: pretty;
}
body.dark .hero__sub p { color: rgba(243,246,247,0.75); }

.hero__stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 24px;
  max-width: 900px;
  opacity: 0;
  animation: fadeUp 0.8s ease 2.7s forwards;
}
body.dark .hero__stats { border-top-color: rgba(255,255,255,0.15); }
.hero__stat {
  flex: 1;
  padding-right: 32px;
  position: relative;
}
.hero__stat + .hero__stat { padding-left: 32px; border-left: 1px solid rgba(0,0,0,0.1); }
body.dark .hero__stat + .hero__stat { border-left-color: rgba(255,255,255,0.15); }
.hero__stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.hero__stat-num.coral { color: var(--color-coral); }
.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 12px;
}

.hero__terminal {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
  width: 280px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-radius: 4px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fadeUp 0.8s ease 3s forwards;
}
body.dark .hero__terminal { background: rgba(255,255,255,0.06); color: var(--text-on-dark); }
.hero__terminal-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
body.dark .hero__terminal-head { border-bottom-color: rgba(255,255,255,0.1); color: rgba(243,246,247,0.5); }
.hero__terminal-head .agent { color: var(--color-coral); display: inline-flex; align-items: center; gap: 6px; }
.hero__terminal-head .agent::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--color-coral);
}
.hero__terminal-line {
  font-family: var(--font-display); font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  text-transform: none;
  min-height: 60px;
}
body.dark .hero__terminal-line { color: var(--text-on-dark); }
.hero__terminal-line .caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--color-coral);
  vertical-align: -0.15em;
  margin-left: 2px;
  animation: caret 0.9s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.scroll-cue {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-tertiary);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s ease 3.2s forwards;
}
.scroll-cue .line {
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, transparent, var(--color-coral));
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Blueprint reveal ---------- */
.blueprint {
  height: 110vh;
  position: relative;
  background: var(--bg-column);
  overflow: hidden;
  color: var(--text-primary);
}
body.dark .blueprint { color: var(--text-on-dark); }
.blueprint__svg {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: block;
}
.blueprint__chapter {
  position: absolute;
  left: 32px; top: 32px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: inline-flex; gap: 16px; align-items: center;
}
body.dark .blueprint__chapter { color: rgba(243,246,247,0.6); }
.blueprint__chapter .num { color: var(--color-coral); }
.blueprint__caption {
  position: absolute;
  right: 32px; bottom: 32px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: inline-flex; gap: 12px;
}
body.dark .blueprint__caption { color: rgba(243,246,247,0.6); }
.blueprint__caption .num { color: var(--color-coral); }

/* ---------- PROBLEM ---------- */
.problem { background: var(--bg-primary); position: relative; }

.problem__quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 1100px;
  margin: 32px 0 80px;
  text-wrap: balance;
}
.problem__quote .em { color: var(--color-coral); font-style: normal; }

.problem__pull {
  position: relative;
  margin: 0 0 64px;
  padding: 0 0 0 56px;
  max-width: 920px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  text-wrap: balance;
}
.problem__pull::before {
  content: '';
  position: absolute;
  left: 0; top: 0.4em;
  width: 32px; height: 1px;
  background: var(--color-coral);
}
.problem__pull-mark {
  position: absolute;
  left: 0; top: -0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 80px;
  line-height: 1;
  color: var(--color-coral);
  opacity: 0.18;
  pointer-events: none;
}
.problem__pull-em {
  display: inline-block;
  margin-top: 0.15em;
  color: var(--fg-soft);
  font-style: italic;
  font-weight: 300;
}

.problem__copy {
  max-width: 1100px;
}
.problem__copy p {
  font-family: var(--font-display); font-weight: 300;
  font-size: 18px; line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.problem__copy--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 80px;
}
.problem__copy--two-col p { margin: 0; max-width: none; }
body.dark .problem__copy p { color: rgba(243,246,247,0.75); }

/* Full-width chart wrapper — pushes the visual outside the section's
   container so it has the air it deserves. Meta caption above gives
   it the editorial label without needing chrome around the chart itself. */
.problem__viz {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 24px auto 0;
  padding: 0 32px;
}
.problem__viz-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 720px;
  margin: 0 auto 18px;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.problem__viz-meta-num { color: var(--color-coral); }

.systems {
  position: relative;
  height: 460px;
  width: 100%;
}
.system-tag {
  position: absolute;
  background: var(--bg-white);
  border-radius: 4px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
  transition: transform 0.6s ease, opacity 0.4s ease;
}
body.dark .system-tag { background: rgba(255,255,255,0.06); color: var(--text-on-dark); }
.system-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-tertiary);
}
.system-tag.connected::before { background: var(--color-coral); }
.system-tag .br { position: absolute; width: 6px; height: 6px; border: 1px solid #666; opacity: 0.3; }
.system-tag .br.tl { top: 4px; left: 4px; border-right: 0; border-bottom: 0; }
.system-tag .br.tr { top: 4px; right: 4px; border-left: 0; border-bottom: 0; }
.system-tag .br.bl { bottom: 4px; left: 4px; border-right: 0; border-top: 0; }
.system-tag .br.br_ { bottom: 4px; right: 4px; border-left: 0; border-top: 0; }

.systems__lines {
  position: absolute; inset: 0;
  pointer-events: none;
}

/* ---------- POSITION (the only intelligence layer) ---------- */
.what-bode-does { background: var(--bg-column); position: relative; padding: 140px 0 80px; }

.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-coral);
}
.section-head__num .small { color: var(--text-tertiary); display: block; margin-top: 6px; font-size: 11px; }
.section-head__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.section-head__intro {
  grid-column: 2;
  font-family: var(--font-display); font-weight: 300;
  font-size: 19px; line-height: 1.5;
  letter-spacing: -0.005em;
  max-width: 720px;
  color: var(--text-secondary);
  margin: 24px 0 0;
  text-wrap: pretty;
}
body.dark .section-head__intro { color: rgba(243,246,247,0.75); }

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cap {
  background: var(--bg-white);
  border-radius: 4px;
  padding: 24px;
  position: relative;
  min-height: 380px;
  display: flex; flex-direction: column;
  overflow: hidden;
  /* Hidden by default — GSAP staggers them in via ScrollTrigger.batch.
     Reduced-motion / calm-mode fallbacks below ensure they appear when
     animation is disabled or JS fails to run. */
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .cap { opacity: 1; }
}
body.calm .cap { opacity: 1; }
body.dark .cap { background: rgba(255,255,255,0.04); }
.cap__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.cap__num .n { color: var(--color-coral); }
.cap__viz {
  flex: 1;
  margin: 8px 0 24px;
  position: relative;
  min-height: 160px;
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
}
body.dark .cap__viz { background: rgba(0,0,0,0.3); }
.cap__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.cap__body {
  font-family: var(--font-display); font-weight: 300;
  font-size: 14px; line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
  margin: 0;
  text-wrap: pretty;
}
body.dark .cap__body { color: rgba(243,246,247,0.7); }
.cap .br { position: absolute; width: 7px; height: 7px; border: 1px solid #666; opacity: 0.3; transition: opacity 0.3s ease; }
.cap:hover .br { opacity: 0.8; }
.cap .br.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.cap .br.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.cap .br.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.cap .br.br_ { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

/* ---------- POSITION ---------- */
.position {
  background: var(--bg-primary);
  padding: 180px 0;
}
.position__quote {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0 0 60px;
  max-width: 1100px;
  text-wrap: balance;
}
.position__quote .accent { color: var(--accent); }
.position__body {
  font-family: var(--font-display); font-weight: 300;
  font-size: 22px; line-height: 1.5;
  letter-spacing: -0.005em;
  max-width: 720px;
  color: var(--text-secondary);
  text-wrap: pretty;
}
body.dark .position__body { color: rgba(243,246,247,0.75); }

.sectors {
  margin-top: 100px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}
.sectors__list {
  display: flex; flex-direction: column;
}
.sector {
  display: grid;
  grid-template-columns: 80px 1fr 24px;
  gap: 24px; align-items: center;
  padding: 28px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  position: relative;
  cursor: pointer;
  transition: padding-left 0.3s ease;
}
body.dark .sector { border-top-color: rgba(255,255,255,0.1); }
.sector:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
body.dark .sector:last-child { border-bottom-color: rgba(255,255,255,0.1); }
.sector:hover { padding-left: 16px; }
.sector__code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--color-coral);
}
.sector__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 3.2vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.sector__name .desc { color: var(--text-tertiary); margin-left: 12px; font-size: 0.55em; vertical-align: 0.4em; letter-spacing: 0.04em; }
body.dark .sector__name .desc { color: rgba(243,246,247,0.5); }
.sector__arrow {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0.3;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sector:hover .sector__arrow { opacity: 1; transform: translate(4px, -4px); color: var(--color-coral); }

/* ---------- FOUNDERS ---------- */
.founders {
  background: var(--bg-column);
  padding: 140px 0;
}

.founders__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 80px;
}
.founder {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  align-items: start;
  position: relative;
  transition: background 0.3s ease;
}
body.dark .founder { border-top-color: rgba(255,255,255,0.1); }
.founder:last-child { border-bottom: 1px solid rgba(0,0,0,0.1); }
body.dark .founder:last-child { border-bottom-color: rgba(255,255,255,0.1); }
.founder__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-coral);
  padding-top: 8px;
}
.founder__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.founder__role {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 16px;
}
.founder__subtitle {
  font-family: var(--font-display); font-weight: 300;
  font-size: 18px; line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin: 0;
  text-wrap: pretty;
}
body.dark .founder__subtitle { color: rgba(243,246,247,0.7); }
.founder__bio {
  font-family: var(--font-display); font-weight: 300;
  font-size: 16px; line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: pretty;
}
body.dark .founder__bio { color: rgba(243,246,247,0.85); }

/* ---------- CONTACT ---------- */
.contact { background: var(--bg-primary); padding: 160px 0; }

.contact__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
  align-items: end;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 24px 0 0;
}
.contact__intro {
  font-family: var(--font-display); font-weight: 300;
  font-size: 18px; line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
  margin: 0;
  max-width: 480px;
  text-wrap: pretty;
}
body.dark .contact__intro { color: rgba(243,246,247,0.75); }
.contact__intro a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.contact__intro a:hover { color: var(--color-coral); }

.form {
  background: var(--bg-white);
  border-radius: 4px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  position: relative;
}
body.dark .form { background: rgba(255,255,255,0.04); }
.form .br { position: absolute; width: 7px; height: 7px; border: 1px solid #666; opacity: 0.3; }
.form .br.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.form .br.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.form .br.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.form .br.br_ { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-tertiary);
}
.field label .req { color: var(--color-coral); }
.field input, .field textarea, .field select {
  font-family: var(--font-display); font-weight: 300;
  font-size: 18px;
  letter-spacing: -0.005em;
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  color: var(--text-primary);
  width: 100%;
  background: transparent;
  border-radius: 0;
}
body.dark .field input, body.dark .field textarea, body.dark .field select {
  border-bottom-color: rgba(255,255,255,0.2);
  color: var(--text-on-dark);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--color-red);
}
.field.error input, .field.error select { border-bottom-color: var(--color-red); }
.field.error label { color: var(--color-red); }
.field__error {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; color: var(--color-red);
  margin-top: 4px;
  height: 12px;
  text-transform: uppercase;
}
.field textarea { resize: vertical; min-height: 80px; padding: 10px 0; line-height: 1.45; }

.role-options {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.role-options .opt {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: transparent;
}
body.dark .role-options .opt { border-color: rgba(255,255,255,0.15); color: var(--text-on-dark); }
.role-options .opt:hover { border-color: var(--color-red); }
.role-options .opt.is-active {
  background: var(--text-primary); color: #fff; border-color: var(--text-primary);
}
body.dark .role-options .opt.is-active { background: var(--text-on-dark); color: var(--bg-dark); border-color: var(--text-on-dark); }

.form__submit {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
body.dark .form__submit { border-top-color: rgba(255,255,255,0.1); }
.form__hint {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-tertiary);
}
.submit-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 22px 14px 28px;
  cursor: pointer;
}
.submit-btn::before {
  content: '';
  position: absolute;
  width: 32px; height: 32px;
  background: var(--color-red);
  border-radius: 50%;
  left: 8px; top: 50%; transform: translateY(-50%);
  opacity: 0.0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.submit-btn:hover::before { opacity: 1; }
.submit-btn > * { position: relative; z-index: 1; }
.submit-btn .arrow { font-size: 18px; }
.submit-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.form__success {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
  padding: 40px 0;
}
.form__success .check {
  width: 56px; height: 56px;
  background: var(--color-coral);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.form__success h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0;
}
.form__success p {
  font-family: var(--font-display); font-weight: 300;
  font-size: 18px; line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
  margin: 0;
  max-width: 520px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 100px 0 28px;
  position: relative;
  overflow: hidden;
}
.footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer__tagline-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243,246,247,0.55);
  margin-bottom: 24px;
}
.footer__tagline-line {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--text-on-dark);
}
.footer__stop {
  display: inline-block;
  width: 0.22em; height: 0.22em;
  background: var(--color-coral);
  vertical-align: baseline;
  margin-left: 0.06em;
}
.footer__logo-wrap {
  display: flex; justify-content: flex-end; align-items: end;
}
.footer__logo {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  color: var(--text-on-dark);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer__col {
  display: flex; flex-direction: column; gap: 8px;
}
.footer__col-num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-coral);
}
.footer__col-label {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(243,246,247,0.85);
}
.footer__col-hint {
  font-family: var(--font-display); font-weight: 300;
  font-size: 15px; line-height: 1.3;
  letter-spacing: -0.005em;
  color: rgba(243,246,247,0.55);
}
.footer__bottom {
  margin-top: 24px;
  padding-top: 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243,246,247,0.5);
}
.footer__contact a {
  color: rgba(243,246,247,0.85);
  border-bottom: 1px solid rgba(243,246,247,0.3);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer__contact a:hover { color: var(--color-coral); border-bottom-color: var(--color-coral); }

@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__logo { max-width: 480px; }
}

/* ---------- Reveal helper ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal--snap { transition-duration: 0.6s; }

/* ---------- Cursor brackets ---------- */
.cursor-brackets {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 24px; height: 24px;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cursor-brackets.show { opacity: 0.6; }
.cursor-brackets span {
  position: absolute; width: 6px; height: 6px;
  border: 1px solid var(--color-coral);
}
.cursor-brackets .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.cursor-brackets .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.cursor-brackets .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.cursor-brackets .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ---------- Calm / Max overrides ---------- */
body.calm * {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.05s !important;
}
body.calm .hero__logo-svg { clip-path: inset(0 0 0 0) !important; }
body.calm .hero__logo-rule,
body.calm .hero__headline .ch,
body.calm .hero__headline .stop { opacity: 1 !important; transform: none !important; }
body.calm .reveal { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .hero__sub { grid-template-columns: 1fr; gap: 24px; }
  .capabilities { grid-template-columns: 1fr 1fr; }
  .problem__copy--two-col, .contact__head { grid-template-columns: 1fr; gap: 32px; }
  .section-head, .sectors { grid-template-columns: 1fr; gap: 16px; }
  .founder { grid-template-columns: 50px 1fr; }
  .founder__bio { grid-column: 2; margin-top: -16px; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .hero__content { padding: 200px 32px 60px; }
  .hero__terminal { display: none; }
}
@media (max-width: 640px) {
  .capabilities { grid-template-columns: 1fr; }
  .hero__logo-rule { width: 12px; height: 12px; }
  .hero__content { padding: 140px 24px 60px; }
}

/* ============================================================
   V3 CINEMATIC LAYER
   Dark-led void with the network particle background as the
   atmosphere. Section surfaces become semi-transparent so the
   particles read through. Adds: boot loader, scroll rail,
   section-cut sweep, magnetic cursor, hero ambient + chromatic
   logo + kinetic headline, blueprint pin, problem chaos→lock,
   alternating capability panels, position underline,
   founder convergence.
   ============================================================ */

/* Network background — the particle field sits behind everything */
.netbg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.netbg.in { opacity: 1; }
.netbg canvas { width: 100% !important; height: 100% !important; display: block; }

body.dark { background: #050608; }
body.dark .nav__status { background: rgba(15,17,20,0.6); border: 1px solid rgba(255,255,255,0.06); }

/* All section surfaces become semi-transparent in both themes so the
   particle field reads through. Section content sits on z-index 1. */
.hero, .blueprint, .problem, .what-bode-does,
.position, .founders, .contact {
  background: transparent;
  position: relative;
  z-index: 1;
}
.footer { position: relative; z-index: 1; }
body.dark .footer { background: rgba(0,0,0,0.55); }

/* Light mode: gentle alternating wash so sections still feel distinct
   from each other while the netbg shows through. */
.blueprint::before,
.what-bode-does::before,
.founders::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(243,246,247,0) 0%, rgba(243,246,247,0.78) 18%, rgba(243,246,247,0.82) 82%, rgba(243,246,247,0) 100%);
  pointer-events: none;
  z-index: -1;
}
body.dark .blueprint::before,
body.dark .what-bode-does::before,
body.dark .founders::before {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 18%, rgba(0,0,0,0.5) 82%, rgba(0,0,0,0) 100%);
}

/* ---------- Section-cut sweep ---------- */
.cut-sweep {
  position: fixed; inset: 0;
  z-index: 60;
  background: var(--color-coral);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------- Theme wipe ---------- */
.theme-wipe {
  position: fixed; inset: 0;
  z-index: 9990;
  background: var(--color-coral);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  opacity: 0;
}

/* ---------- Scroll rail ---------- */
.scroll-rail {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px;
}
.scroll-rail__track {
  width: 1px; height: 160px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.scroll-rail__fill {
  position: absolute; inset: 0;
  background: var(--color-coral);
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 0.1s linear;
}
.scroll-rail__markers {
  display: flex; flex-direction: column; gap: 14px;
  align-items: center;
}
.scroll-rail__mark {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
}
.scroll-rail__mark .dot {
  width: 6px; height: 6px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.scroll-rail__mark .num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35);
  transition: color 0.25s ease;
}
.scroll-rail__mark.is-active .dot {
  background: var(--color-coral);
  border-color: var(--color-coral);
  transform: scale(1.3);
}
.scroll-rail__mark.is-active .num { color: var(--color-coral); }
.scroll-rail__mark:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 4px;
  border-radius: 2px;
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 3px;
}
.nav__cta:focus-visible,
.role-options .opt:focus-visible,
.submit-btn:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .scroll-rail { display: none; }
}

/* ---------- Magnetic cursor brackets (overrides v2) ---------- */
.cursor-brackets {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 36px; height: 36px;
  left: 0; top: 0;
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity 0.3s ease;
}
.cursor-brackets.show { opacity: 0.85; }
.cursor-brackets span {
  position: absolute; width: 9px; height: 9px;
  border: 1.5px solid var(--color-coral);
  transition: border-color 0.2s ease;
}
.cursor-brackets .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.cursor-brackets .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.cursor-brackets .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.cursor-brackets .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.cursor-brackets.lock span { border-color: #fff; border-width: 2px; }

/* ============================================================
   HERO — cinematic
   ============================================================ */
.hero--cinematic {
  /* Override base .hero { display: flex; align-items: center } so the cold
     open and the below-the-fold containers stack vertically. */
  display: block;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero__ambient {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.hero--cinematic .hero__bg-grid {
  position: absolute; inset: -10% -5% -10% -5%;
  background-image:
    linear-gradient(to right, rgba(28,28,28,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28,28,28,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 0%, transparent 80%);
  opacity: 0.7;
}
body.dark .hero--cinematic .hero__bg-grid {
  background-image:
    linear-gradient(to right, rgba(243,246,247,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(243,246,247,0.05) 1px, transparent 1px);
}
.hero__scan {
  position: absolute;
  left: 0; right: 0; top: -10%;
  height: 200px;
  background: linear-gradient(180deg, transparent, rgba(232,81,58,0.12), transparent);
  filter: blur(2px);
  pointer-events: none;
  animation: heroScan 12s ease-in-out infinite;
}
@keyframes heroScan {
  0%   { transform: translateY(-30vh); opacity: 0; }
  10%  { opacity: 0.7; }
  50%  { transform: translateY(60vh); opacity: 0.5; }
  90%  { opacity: 0; }
  100% { transform: translateY(120vh); opacity: 0; }
}
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 30% 30%, rgba(232,81,58,0.07), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(59,91,246,0.05), transparent 60%);
  pointer-events: none;
}
/* COLD OPEN — entire first viewport: BODE logo dead-centre, eyebrow under it,
   scroll cue at the foot. The container is min-height: 100vh so the logo
   sits at the optical centre regardless of viewport size. */
.hero--cinematic .hero__cold-open {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 96px;
  gap: 32px;
}

/* Below-the-fold — kinetic headline + sub + stats. */
.hero--cinematic .hero__below {
  position: relative;
  z-index: 2;
  padding: 80px 80px 100px;
  max-width: 1320px;
  margin: 0 auto;
}
.hero--cinematic .hero__content {
  position: relative;
  z-index: 2;
  padding: 0;
  max-width: 1320px;
  margin: 0 auto;
}

/* Logo — the hero's only first-fold element. Generous height clamp so it
   reads as a confident statement and stays vertically centered. */
.hero--cinematic .hero__logo {
  position: relative;
  display: inline-block;
  /* Padding gives the corner brackets room to live without overlapping the
     wordmark. Width follows the SVG's natural aspect from the height clamp. */
  padding: clamp(20px, 3vh, 36px) clamp(28px, 4vw, 48px);
  margin: 0;
}
.hero__logo-stack {
  position: relative;
  display: block;
  color: var(--text-primary);
  /* Subtle infinite breath after the reveal completes. */
  animation: logoBreath 7s ease-in-out 4.2s infinite;
}
body.dark .hero__logo-stack { color: var(--text-on-dark); }
.hero__logo-stack .hero__logo-svg {
  /* Big — the wordmark IS the hero. Height-driven so it never overflows. */
  height: clamp(260px, 56vh, 600px);
  width: auto;
  display: block;
  clip-path: inset(0 100% 0 0);
  filter:
    drop-shadow(22px 0 0 rgba(232,81,58,0.9))
    drop-shadow(-22px 0 0 rgba(59,180,246,0.82))
    blur(0.4px);
  animation:
    logoUnfold 1.9s cubic-bezier(0.72,0,0.18,1) 1.05s forwards,
    chromaResolve 1.6s cubic-bezier(0.2,0.85,0.15,1) 2.55s forwards;
}
/* Coral scan line that races across the wordmark as it unfolds. Anchored
   to .hero__logo (the bracketed frame) so its height matches the corner
   markers rather than only the SVG. mix-blend-mode is dropped — it made
   the band visible only over the dark wordmark glyphs in light mode,
   so the swipe read as the height of the letters, not the frame. */
.hero--cinematic .hero__logo::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 12%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232,81,58,0.0) 20%,
    rgba(232,81,58,0.55) 50%,
    rgba(232,81,58,0.0) 80%,
    transparent 100%
  );
  filter: blur(1.5px);
  transform: translateX(-110%);
  opacity: 0;
  animation: logoScan 1.7s cubic-bezier(0.65,0,0.35,1) 1.1s forwards;
  z-index: 2;
}
/* On the dark theme the screen blend brings the coral up nicely against
   black, so put it back there. */
body.dark .hero--cinematic .hero__logo::after { mix-blend-mode: screen; }

/* Corner brackets — snap into place around the logo as the cold-open opens.
   Built with two 1px borders per corner to draw the L-shape. */
.hero__logo-bracket {
  position: absolute;
  width: clamp(14px, 1.4vw, 22px);
  height: clamp(14px, 1.4vw, 22px);
  border: 1.5px solid var(--color-coral);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.hero__logo-bracket--tl { top: 0;    left: 0;    border-right: 0; border-bottom: 0; transform: translate(8px, 8px); animation: bracketIn 0.55s cubic-bezier(0.2,0.85,0.2,1) 0.35s forwards; }
.hero__logo-bracket--tr { top: 0;    right: 0;   border-left: 0;  border-bottom: 0; transform: translate(-8px, 8px); animation: bracketIn 0.55s cubic-bezier(0.2,0.85,0.2,1) 0.45s forwards; }
.hero__logo-bracket--bl { bottom: 0; left: 0;    border-right: 0; border-top: 0;    transform: translate(8px, -8px); animation: bracketIn 0.55s cubic-bezier(0.2,0.85,0.2,1) 0.55s forwards; }
.hero__logo-bracket--br { bottom: 0; right: 0;   border-left: 0;  border-top: 0;    transform: translate(-8px, -8px); animation: bracketIn 0.55s cubic-bezier(0.2,0.85,0.2,1) 0.65s forwards; }
@keyframes bracketIn {
  to { opacity: 1; transform: translate(0, 0); }
}
@keyframes logoUnfold {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes chromaResolve {
  60%  { filter: drop-shadow(3px 0 0 rgba(232,81,58,0.45)) drop-shadow(-3px 0 0 rgba(59,180,246,0.4)) blur(0.2px); }
  100% { filter: drop-shadow(0 0 0 rgba(232,81,58,0)) drop-shadow(0 0 0 rgba(59,180,246,0)) blur(0); }
}
@keyframes logoScan {
  0%   { opacity: 0; transform: translateX(-110%); }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(820%); }
}
@keyframes logoBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.006); }
}

/* Type-on eyebrow — characters reveal one by one with their own coral caret. */
.hero--cinematic .hero__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.05vw, 14px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0;
  animation: fadeUp 0.6s ease 2.55s forwards;
  position: relative;
}
body.dark .hero--cinematic .hero__eyebrow { color: rgba(243,246,247,0.65); }
.hero__eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-coral);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
.hero__eyebrow-seg {
  display: inline-flex;
  white-space: pre;
}
.hero__eyebrow-seg--sep { color: var(--color-coral); opacity: 0.6; }
.hero__eyebrow-seg--context { color: var(--color-coral); }
body.dark .hero__eyebrow-seg--context { color: var(--color-coral); }
.hero__eyebrow-ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.2em);
  animation: eyebrowChIn 0.4s cubic-bezier(0.2,0.8,0.2,1) forwards;
}
.hero__eyebrow-caret {
  display: inline-block;
  width: 7px; height: 1em;
  background: var(--color-coral);
  margin-left: 2px;
  vertical-align: -0.18em;
  opacity: 0;
  animation:
    eyebrowCaretIn 0.2s ease 2.55s forwards,
    caret 0.9s steps(1) 2.7s infinite;
}
@keyframes eyebrowChIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes eyebrowCaretIn {
  to { opacity: 1; }
}

/* Cold-open scroll cue — sits at the bottom of the first fold. */
.scroll-cue--cold {
  position: absolute;
  left: 50%; bottom: 32px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: 0;
  animation: fadeUp 0.8s ease 4.2s forwards;
}
body.dark .scroll-cue--cold { color: rgba(243,246,247,0.5); }

/* Headline — kinetic "weight collapse". Sized down vs. v3 0.x so the BODE
   wordmark stays the dominant element. */
.hero--cinematic .hero__headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 4.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  max-width: 1100px;
  color: var(--text-primary);
  text-wrap: balance;
}
body.dark .hero--cinematic .hero__headline { color: var(--text-on-dark); }
.hero--cinematic .hero__headline .word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.18em;
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
  transform-origin: left bottom;
}
.hero--cinematic .hero__headline .word:not(.word--final) {
  /* recede after they've been read so the eye is led forward */
  animation: wordRecede 1.4s ease forwards;
  animation-delay: var(--recede-delay);
}
.hero--cinematic .hero__headline .word--final {
  color: var(--color-coral);
  font-weight: 800;
}
@keyframes wordRecede {
  to {
    opacity: 0.32;
    transform: scale(0.94);
    filter: blur(0.6px);
  }
}
.hero--cinematic .hero__headline .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: chIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero--cinematic .hero__headline .stop {
  display: inline-block;
  width: 0.22em; height: 0.22em;
  background: var(--color-coral);
  vertical-align: baseline;
  margin-left: 0.06em;
  opacity: 0;
  animation: stopIn 0.5s ease 3.0s forwards;
  transform: scale(0.4);
}

/* Sub copy + stats — compact so they fit alongside the bigger logo. */
body .hero--cinematic .hero__sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 920px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s ease 3.1s forwards;
}
body .hero--cinematic .hero__sub p {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin: 0;
  color: rgba(28,28,28,0.78);
  text-wrap: pretty;
}
body.dark .hero--cinematic .hero__sub p { color: rgba(243,246,247,0.78); }
body .hero--cinematic .hero__stats {
  border-top: 1px solid rgba(0,0,0,0.14);
  padding-top: 20px;
  max-width: 820px;
  opacity: 0;
  animation: fadeUp 0.9s ease 3.4s forwards;
}
body.dark .hero--cinematic .hero__stats { border-top-color: rgba(255,255,255,0.14); }
body .hero--cinematic .hero__stat-num { color: var(--text-primary); font-size: 38px; }
body.dark .hero--cinematic .hero__stat-num { color: var(--text-on-dark); }
.hero--cinematic .hero__stat-num.coral { color: var(--color-coral); }
body .hero--cinematic .hero__stat-label { color: rgba(28,28,28,0.55); font-size: 11px; }
body.dark .hero--cinematic .hero__stat-label { color: rgba(243,246,247,0.55); }
body .hero--cinematic .hero__stat + .hero__stat { border-left-color: rgba(0,0,0,0.14); padding-left: 24px; }
body.dark .hero--cinematic .hero__stat + .hero__stat { border-left-color: rgba(255,255,255,0.14); }

/* Agent terminal — completes a thought, then collapses to inline pill */
body .hero--cinematic .hero__terminal {
  position: absolute;
  right: 32px; bottom: 80px;
  z-index: 3;
  width: 320px;
  background: rgba(15,17,20,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
  opacity: 0;
  animation: fadeUp 0.9s ease 3.5s forwards;
}
body.dark .hero--cinematic .hero__terminal { background: rgba(8,10,14,0.7); }
.hero__terminal-thread {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 8px;
}
.hero__terminal-thread li {
  display: flex; align-items: flex-start; gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  text-transform: none;
  font-weight: 300;
  color: rgba(243,246,247,0.5);
  transition: color 0.3s ease;
}
.hero__terminal-thread li.done { color: rgba(243,246,247,0.85); }
.hero__terminal-thread li.active { color: var(--text-on-dark); }
.hero__terminal-thread .check {
  font-family: var(--font-mono);
  color: var(--color-coral);
  font-size: 11px;
  margin-top: 2px;
}
.hero__terminal-thread .ind {
  color: var(--color-coral);
  font-weight: bold;
  margin-top: -1px;
}
.hero__terminal-line .caret,
.hero__terminal-thread .caret {
  display: inline-block;
  width: 7px; height: 1em;
  background: var(--color-coral);
  vertical-align: -0.15em;
  margin-left: 2px;
  animation: caret 0.9s steps(1) infinite;
}
/* Done state — collapses to a tiny inline pill */
.hero__terminal--done {
  position: absolute;
  right: 32px; bottom: 80px;
  z-index: 3;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(8,10,14,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(232,81,58,0.4);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  animation: pillIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero__terminal--done .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-coral);
  animation: pulse 1.6s ease-in-out infinite;
}
.hero__terminal--done .ready { color: var(--color-coral); }
.hero__terminal--done .meta { color: rgba(243,246,247,0.5); letter-spacing: 0.08em; }
@keyframes pillIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.hero--cinematic .scroll-cue {
  color: var(--fg-mute);
  animation-delay: 3.8s;
}

/* ============================================================
   BLUEPRINT — pinned cinematic
   ============================================================ */
.blueprint--pinned {
  height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--fg-strong);
}
.blueprint--pinned .blueprint__stage {
  position: relative;
  width: 100%; height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}
.blueprint--pinned .blueprint__svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.blueprint--pinned .blueprint__chapter {
  position: absolute;
  left: 32px; top: 80px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex; gap: 16px; align-items: center;
}
.blueprint--pinned .blueprint__chapter .num { color: var(--color-coral); }

/* Act progress strip — anchored to the top-right of the section, opposite
   the FIG · 01 chapter. Top placement guarantees visibility (we know the
   chapter row is in view) and avoids any pin-bottom edge-case. */
.blueprint--pinned .blueprint__acts {
  position: absolute;
  right: 32px;
  top: 72px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0;
  pointer-events: none;
  background: rgba(11,13,16,0.92);
  border: 1px solid rgba(232,81,58,0.45);
  border-radius: 4px;
  padding: 0;
  opacity: 1 !important;
  overflow: hidden;
}
.blueprint--pinned .blueprint__act {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(243,246,247,0.55);
  white-space: nowrap;
  position: relative;
  opacity: 1 !important;
  transition: color 0.35s ease, background 0.35s ease;
}
.blueprint--pinned .blueprint__act + .blueprint__act {
  border-left: 1px solid rgba(255,255,255,0.1);
}
.blueprint--pinned .blueprint__act.is-active {
  color: var(--text-on-dark);
  background: rgba(232,81,58,0.12);
}
.blueprint--pinned .blueprint__act.is-active::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px;
  bottom: 0;
  height: 2px;
  background: var(--color-coral);
  transform-origin: center;
  animation: actUnderline 0.35s cubic-bezier(0.2,0.8,0.2,1) forwards;
}
@keyframes actUnderline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.blueprint--pinned .blueprint__act + .blueprint__act {
  border-left: 1px solid var(--rule-soft);
}
.blueprint--pinned .blueprint__act-num {
  font-size: 11px;
  color: var(--color-coral);
  letter-spacing: 0.2em;
}
.blueprint--pinned .blueprint__act-num::before {
  content: 'ACT ';
  opacity: 0.7;
}
.blueprint--pinned .blueprint__act-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .blueprint--pinned .blueprint__acts { height: 52px; }
  .blueprint--pinned .blueprint__act { padding: 0 10px; gap: 8px; }
  .blueprint--pinned .blueprint__act-num { font-size: 10px; }
  .blueprint--pinned .blueprint__act-name { font-size: 14px; }
}

.blueprint--pinned .blueprint__caption {
  position: absolute;
  right: 32px; bottom: 32px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex; gap: 12px;
}
.blueprint--pinned .blueprint__caption .num { color: var(--color-coral); }

/* ============================================================
   PROBLEM — chaos → lock
   ============================================================ */
.systems {
  position: relative;
  width: 100%;
  /* Square — keeps the SVG (viewBox 0 0 100 100) and absolutely-positioned
     tags in the same coordinate space, so lines visually meet the tags. */
  height: auto;
  aspect-ratio: 1;
  max-width: 720px;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}
/* Corner brackets only — keep the framing cue, lose the box. */
.systems::before,
.systems::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border: 1.5px solid var(--color-coral);
  pointer-events: none;
  opacity: 0.55;
}
.systems::before {
  top: 0; left: 0;
  border-right: 0; border-bottom: 0;
}
.systems::after {
  bottom: 0; right: 0;
  border-left: 0; border-top: 0;
}

/* Centre dot — positioned at the true (50%,50%) of the container so the
   SVG line origins at viewBox (50,50) land on the same pixel. */
.systems__core-dot {
  position: absolute;
  left: 50%; top: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  background: var(--color-coral);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s ease 0.3s, transform 0.6s cubic-bezier(0.2,0.8,0.2,1) 0.3s;
  z-index: 3;
  box-shadow: 0 0 0 4px rgba(232,81,58,0.18);
}
.systems--lock .systems__core-dot { opacity: 1; transform: scale(1); }
.systems__core-pulse {
  position: absolute;
  left: 50%; top: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border: 1px solid var(--color-coral);
  border-radius: 50%;
  opacity: 0;
  z-index: 2;
}
.systems--lock .systems__core-pulse {
  animation: corePulse 2.4s ease-out 0.5s infinite;
}
@keyframes corePulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(8); opacity: 0; }
}
.systems__core-label {
  position: absolute;
  left: 50%;
  top: calc(50% + 26px);
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-coral);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.5s ease 0.7s;
  z-index: 3;
  pointer-events: none;
}
.systems--lock .systems__core-label { opacity: 1; }

/* Scanning beam — full container height since the box is now square. */
.systems__scan {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(232,81,58,0.4), transparent);
  filter: blur(1px);
  pointer-events: none;
  z-index: 1;
  animation: systemsScan 0.7s ease-in-out forwards;
}
@keyframes systemsScan {
  from { transform: translateY(-22%); }
  to   { transform: translateY(120%); }
}

.systems__lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}
.systems__lines line {
  transition: stroke-dashoffset 0.9s cubic-bezier(0.2,0.85,0.25,1);
}

.system-tag {
  position: absolute;
  background: rgba(15,17,20,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
  transition: transform 0.65s cubic-bezier(0.2,0.85,0.25,1), left 0.65s cubic-bezier(0.2,0.85,0.25,1), top 0.65s cubic-bezier(0.2,0.85,0.25,1), border-color 0.4s ease;
  z-index: 3;
}
.system-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.4s ease;
}
.system-tag.connected {
  border-color: rgba(232,81,58,0.45);
}
.system-tag.connected::before { background: var(--color-coral); }
.system-tag.frozen { transition-duration: 0.18s !important; filter: brightness(1.4); }
.system-tag .br { position: absolute; width: 6px; height: 6px; border: 1px solid rgba(255,255,255,0.4); opacity: 0.5; }
.system-tag .br.tl  { top: 4px; left: 4px;   border-right: 0; border-bottom: 0; }
.system-tag .br.tr  { top: 4px; right: 4px;  border-left: 0;  border-bottom: 0; }
.system-tag .br.bl  { bottom: 4px; left: 4px;border-right: 0; border-top: 0;    }
.system-tag .br.br_ { bottom: 4px; right: 4px;border-left: 0; border-top: 0;    }
.system-tag.connected .br { border-color: var(--color-coral); opacity: 0.8; }

body.dark .problem__quote .em { color: var(--color-coral); }

/* ============================================================
   WHAT BODE DOES — vizs render on a "screen" (always dark) inside
   light or dark cards. Cards animate in via the .reveal observer.
   ============================================================ */
.cap__viz--screen,
body.dark .cap__viz--screen {
  background: rgba(8,10,14,0.92);
  color: var(--text-on-dark);
}

/* ============================================================
   POSITION — line reveal + underline draw
   ============================================================ */
.position--cinematic .position__quote {
  display: flex; flex-direction: column;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 32px 0 64px;
  color: var(--fg-strong);
}
.position--cinematic .position__quote .line { display: block; }
.position--cinematic .position__quote .line--final .accent {
  position: relative;
  display: inline-block;
  color: var(--color-coral);
}
.position__underline {
  position: absolute;
  left: 0; right: 0;
  bottom: -0.06em;
  height: 6px;
  background: var(--color-coral);
  transform-origin: left center;
}
.position--cinematic .position__body {
  color: var(--fg-soft);
}

body.dark .sector { border-top-color: rgba(255,255,255,0.1); }
body.dark .sector__name { color: var(--text-on-dark); }
body.dark .sector:last-child { border-bottom-color: rgba(255,255,255,0.1); }
.sector { transition: padding-left 0.45s cubic-bezier(0.2,0.8,0.2,1), background 0.3s ease; }
.sector:hover {
  padding-left: 24px;
  background: rgba(232,81,58,0.05);
}

/* ============================================================
   FOUNDERS — convergence + hover bio
   ============================================================ */
.founders--cinematic .founder {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr;
  gap: 48px;
  padding: 56px 24px;
  border-top: 1px solid var(--rule-soft);
  align-items: start;
  transition: background 0.5s ease, padding 0.5s ease;
}
.founders--cinematic .founder:last-child { border-bottom: 1px solid var(--rule-soft); }
.founders--cinematic .founder:hover {
  background: linear-gradient(90deg, rgba(232,81,58,0.06), transparent 70%);
  padding-left: 32px;
}
.founders--cinematic .founder__name { color: var(--fg-strong); }
.founders--cinematic .founder__role { color: var(--fg-mute); }
.founders--cinematic .founder__subtitle { color: var(--fg-soft); }
.founders--cinematic .founder__bio {
  color: var(--fg-soft);
  transition: color 0.3s ease;
}
.founder__hover-mark {
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 0;
  background: var(--color-coral);
  transform: translateY(-50%);
  transition: height 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
.founders--cinematic .founder:hover .founder__hover-mark { height: 60%; }

/* ============================================================
   CONTACT (dark-aware tweaks)
   ============================================================ */
body.dark .contact__title { color: var(--text-on-dark); }
body.dark .form { background: rgba(8,10,14,0.55); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.06); }
body.dark .field input, body.dark .field textarea { color: var(--text-on-dark); }
body.dark .form__success h3 { color: var(--text-on-dark); }
body.dark .form__success p { color: rgba(243,246,247,0.75); }

/* ============================================================
   CALM MODE — extend v2's calm to the new cinematic pieces
   ============================================================ */
body.calm .hero__logo-svg {
  clip-path: inset(0 0 0 0) !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
  animation: none !important;
}
body.calm .hero__headline .word,
body.calm .hero__headline .ch,
body.calm .hero__headline .stop {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
}
body.calm .hero__terminal,
body.calm .hero__sub,
body.calm .hero__stats,
body.calm .scroll-cue { opacity: 1 !important; transform: none !important; animation: none !important; }
body.calm .hero__scan { display: none; }
body.calm .netbg { opacity: 0.3; }

@media (prefers-reduced-motion: reduce) {
  .hero__scan, .systems__scan, .systems--lock .systems__core-pulse,
  .hero--cinematic .hero__logo::after { display: none; }
  .hero__logo-stack { animation: none !important; }
  .hero__logo-stack .hero__logo-svg {
    clip-path: inset(0 0 0 0);
    filter: none;
    animation: none !important;
  }
}

/* ============================================================
   Responsive — keep the new layers usable on smaller screens
   ============================================================ */
@media (max-width: 1024px) {
  .hero--cinematic .hero__cold-open { padding: 100px 24px 80px; }
  .hero--cinematic .hero__below { padding: 60px 24px 100px; }
  body .hero--cinematic .hero__terminal { display: none; }
  .hero--cinematic .hero__sub { grid-template-columns: 1fr; }
  .blueprint--pinned { height: 80vh; }
}

/* Tablet portrait + small laptops. Tighten section rhythm and unstack the
   wider grids that the 1024 breakpoint hasn't already collapsed. */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 96px 0; }
  .position { padding: 120px 0; }
  .contact { padding: 120px 0; }
  .founders { padding: 96px 0; }

  .section-head { margin-bottom: 56px; }

  /* Sectors: drop the 200px label column so the list takes the full width. */
  .sectors { grid-template-columns: 1fr; gap: 16px; margin-top: 64px; }
  .sector { grid-template-columns: 56px 1fr 20px; gap: 16px; padding: 22px 0; }
  .sector:hover { padding-left: 0; } /* hover-shift looks broken on touch */

  /* Founders: drop the index column so name + bio stack cleanly. */
  .founder { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
  .founder__bio { grid-column: auto; margin-top: 0; }
  .founder__index { padding-top: 0; }

  /* Contact form: single column + tighter padding. */
  .contact__head { gap: 32px; margin-bottom: 56px; }
  .form { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
  .form__submit { flex-direction: column; align-items: stretch; gap: 16px; }
  .form__hint { order: 2; text-align: center; }
  .submit-btn { justify-content: center; }
  .role-options { gap: 6px; }

  /* Footer: 2 cols of meta + tighter hero tagline. */
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .footer__bottom { font-size: 10px; gap: 12px; }

  /* Problem: stop the chart wrapper from breaking out wider than the page. */
  .problem__viz { padding: 0 24px; }
  .problem__pull { padding-left: 36px; font-size: clamp(20px, 4.4vw, 28px); }
  .problem__pull-mark { font-size: 56px; }

  /* Hero — fit the cold-open inside the viewport. The SVG was previously
     sized by height (56vh) with width:auto, which meant the wordmark could
     overflow horizontally on narrow screens. Switch to width-driven sizing
     and dial back the chromatic shadows so they don't push past the frame. */
  .hero--cinematic .hero__logo {
    width: 100%;
    max-width: min(92vw, 480px);
    padding: clamp(14px, 2.4vh, 24px) clamp(18px, 4vw, 28px);
  }
  .hero__logo-stack { width: 100%; }
  .hero__logo-stack .hero__logo-svg {
    width: 100%;
    height: auto;
    filter:
      drop-shadow(8px 0 0 rgba(232,81,58,0.85))
      drop-shadow(-8px 0 0 rgba(59,180,246,0.78))
      blur(0.3px);
  }
  .hero--cinematic .hero__cold-open {
    min-height: 100svh; /* small-viewport units handle mobile browser chrome */
    padding: 64px 24px 48px;
    gap: 20px;
  }
  .hero__eyebrow {
    font-size: 10px;
    letter-spacing: 0.18em;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 6px;
    text-align: center;
  }
  .hero__headline { font-size: clamp(34px, 8vw, 56px); margin-bottom: 24px; }
  .hero__sub { gap: 20px; margin-bottom: 32px; }
  .hero__sub p { font-size: 16px; }
  .scroll-cue--cold { font-size: 9px; }

  /* Blueprint — un-pin and make the SVG horizontally scrollable. The 1600×700
     viewBox is unreadable when fit-to-width on a phone (chat window ends up
     ~80px wide), so we keep the SVG at a natural readable size and let the
     user pan. The chapter + acts strip move into the normal flow above the
     scroll area instead of fighting an absolute position. */
  .blueprint, .blueprint--pinned {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .blueprint--pinned .blueprint__stage {
    height: auto;
    display: block;
    padding: 24px 0 32px;
  }
  .blueprint--pinned .blueprint__chapter {
    position: static;
    margin: 0 24px 16px;
  }
  /* The mobile flow embeds I/II/III labels per stage, so the desktop act
     strip becomes redundant — hide it. */
  .blueprint--pinned .blueprint__acts { display: none; }
  .blueprint--pinned .blueprint__act {
    padding: 8px 6px;
    gap: 4px;
    flex: 1;
    justify-content: center;
  }
  .blueprint--pinned .blueprint__act-num::before { content: ''; }
  .blueprint--pinned .blueprint__act-num { font-size: 9px; }
  .blueprint--pinned .blueprint__act-name { font-size: 11px; letter-spacing: 0.08em; }
  /* Hide the wide landscape SVG entirely; the mobile-specific vertical
     layout below renders the same story top-to-bottom so nothing crops. */
  .blueprint--pinned .blueprint__svg-wrap { display: none; }
  .blueprint--pinned .blueprint__caption {
    position: static;
    margin: 16px 24px 0;
    font-size: 10px;
  }
}

/* Default — wrapper is invisible in flow on larger viewports so the SVG
   keeps behaving exactly as it did before this scene was wrapped. */
.blueprint__svg-wrap { display: contents; }

/* ============================================================
   BLUEPRINT — mobile vertical layout. Hidden on desktop; on mobile
   it replaces the wide landscape SVG with a top-to-bottom flow that
   reads sources → agent hub → output without any horizontal panning.
   ============================================================ */
.bp-mobile { display: none; }

@media (max-width: 768px) {
  .bp-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 8px 24px 0;
    color: var(--text-primary);
    box-sizing: border-box;
  }
  body.dark .bp-mobile { color: var(--text-on-dark); }

  .bp-mobile-stage {
    width: 100%;
    max-width: 360px;
    position: relative;
  }
  .bp-mobile-stage-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  body.dark .bp-mobile-stage-label { color: rgba(243,246,247,0.55); }
  .bp-mobile-stage-label > span:first-child {
    color: var(--color-coral);
    font-weight: 700;
  }

  /* Sources — 2-col grid so all 7 fit in a tidy block. */
  .bp-mobile-sources {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .bp-mobile-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(232,81,58,0.35);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    background: rgba(232,81,58,0.04);
  }
  body.dark .bp-mobile-source { background: rgba(232,81,58,0.08); }
  .bp-mobile-source .dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--color-coral);
    flex-shrink: 0;
  }

  /* Converging connector between sources and hub. */
  .bp-mobile-converge {
    width: 100%;
    max-width: 360px;
    height: 56px;
    margin: 4px 0 8px;
    overflow: visible;
  }

  /* Hub — agent chat. Always-dark surface like the desktop hub, so it
     reads in either theme. */
  .bp-mobile-hub {
    background: #0B0D10;
    border-radius: 6px;
    border: 1px solid rgba(232,81,58,0.45);
    overflow: hidden;
  }
  .bp-mobile-hub__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .bp-mobile-hub__lights { display: inline-flex; gap: 4px; }
  .bp-mobile-hub__lights span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #3a3d42;
  }
  .bp-mobile-hub__title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: rgba(243,246,247,0.85);
  }
  .bp-mobile-hub__live {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--color-coral);
    animation: bpMobileLive 1.6s ease-in-out infinite;
  }
  @keyframes bpMobileLive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
  }
  .bp-mobile-hub__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  .bp-mobile-hub__msg {
    border-radius: 6px;
    padding: 10px 12px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 14px;
    color: rgba(243,246,247,0.95);
    line-height: 1.35;
  }
  .bp-mobile-hub__msg--user {
    background: rgba(232,81,58,0.22);
    border: 1px solid rgba(232,81,58,0.4);
    align-self: flex-end;
    max-width: 78%;
  }
  .bp-mobile-hub__msg--agent {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    align-self: flex-start;
    max-width: 88%;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .bp-mobile-hub__meta {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    color: rgba(243,246,247,0.55);
    text-transform: uppercase;
  }
  .bp-mobile-hub__dots { display: inline-flex; gap: 4px; }
  .bp-mobile-hub__dots span {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--color-coral);
    animation: bpMobileDot 1.1s ease-in-out infinite;
  }
  .bp-mobile-hub__dots span:nth-child(2) { animation-delay: 0.18s; }
  .bp-mobile-hub__dots span:nth-child(3) { animation-delay: 0.36s; }
  @keyframes bpMobileDot {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
  }
  .bp-mobile-hub__answer {
    font-size: 13px;
    color: rgba(243,246,247,0.95);
  }
  .bp-mobile-hub__pill {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--color-coral);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--color-coral);
  }
  .bp-mobile-hub__pill-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--color-coral);
    animation: bpMobileLive 1.6s ease-in-out infinite;
  }

  /* Beam between hub and output. */
  .bp-mobile-beam {
    width: 20px;
    height: 56px;
    margin: 4px 0;
  }

  /* Output — vertical bars showing the integrated answer. */
  .bp-mobile-output {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--rule-soft);
    border-radius: 4px;
  }
  body.dark .bp-mobile-output { border-color: rgba(255,255,255,0.12); }
  .bp-mobile-output__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-coral);
  }
  .bp-mobile-output__bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
  }
  .bp-mobile-output__bar {
    flex: 1;
    background: var(--text-tertiary);
    opacity: 0.6;
    border-radius: 1px;
    min-height: 6%;
    transition: height 0.6s cubic-bezier(0.34,1.56,0.64,1);
  }
  body.dark .bp-mobile-output__bar { background: rgba(243,246,247,0.55); }
  .bp-mobile-output__bar.is-active {
    background: var(--color-coral);
    opacity: 1;
  }

  /* Closing legend, mirrors the SVG's closing measure. */
  .bp-mobile-closing {
    width: 100%;
    max-width: 360px;
    margin: 24px 0 0;
    padding-top: 14px;
    border-top: 1px dashed var(--rule-soft);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
  }
  body.dark .bp-mobile-closing {
    border-top-color: rgba(255,255,255,0.18);
    color: rgba(243,246,247,0.55);
  }
  .bp-mobile-closing__mid { color: var(--color-coral); }

  /* Caption no longer needed below the mobile flow — the closing legend
     above covers the same role. */
  .blueprint--pinned .blueprint__caption { display: none; }
}

/* Phone — tightest column. Stack hero stats vertically (the 3-up flex was
   crushing the numbers + dividers under ~420px) and drop padding further. */
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .hero--cinematic .hero__cold-open { padding: 80px 20px 56px; }
  .hero--cinematic .hero__below { padding: 40px 20px 80px; }
  .hero__content { padding: 80px 20px 48px; }

  /* Stats stack so each number reads at full size. */
  .hero__stats { flex-direction: column; gap: 20px; }
  .hero__stat { padding: 20px 0 0; }
  .hero__stat + .hero__stat {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(0,0,0,0.1);
  }
  body.dark .hero__stat + .hero__stat { border-top-color: rgba(255,255,255,0.15); }
  .hero__stat-num { font-size: 36px; }

  .section-head__num { font-size: 11px; }
  .position { padding: 96px 0; }
  .position__quote { margin-bottom: 32px; }
  .position__body { font-size: 18px; }

  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .form { padding: 24px 20px; }

  /* Blueprint: still readable here, just slightly shorter. */
  .blueprint--pinned .blueprint__svg { height: 50vh; min-height: 320px; }
  .blueprint--pinned .blueprint__act-name { font-size: 10px; }
}

