/* ============================================================
   Newlithic Robotics design system
   paper / field / ink / signal(cobalt) / seal(amber)
   ============================================================ */

:root {
  --paper: #F7F6F3;
  --field: #DCE7EE;
  --ink: #0A0A16;
  --ink-60: #55545F;
  --ink-35: #8E8E96;
  --hairline: #E3E3E0;
  --hairline-dark: rgba(247, 246, 243, 0.14);
  --signal: #1432DC;
  --signal-soft: rgba(20, 50, 220, 0.08);
  --signal-on-ink: #93A4FF;
  --seal: #C47A1F;
  --white: #FFFFFF;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --container: 1120px;
  --radius-btn: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: 96px; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--signal); color: var(--white); }

img, svg, video { max-width: 100%; display: block; }

a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* ---------- type scale ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.h1 {
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  font-weight: 500;
}

.h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.12;
}

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-60);
  max-width: 58ch;
}

.muted { color: var(--ink-60); }
.faint { color: var(--ink-35); }

/* mono micro-label register */
.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-35);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-35);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  flex: none;
}

/* ---------- buttons (the only rounded elements) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 13px 24px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease),
    border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

.btn-solid { background: var(--signal); color: var(--white); }
.btn-solid:hover { background: #1029B8; box-shadow: 0 6px 20px rgba(20, 50, 220, 0.22); }

.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(10, 10, 22, 0.28); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.5); }

.on-ink .btn-ghost { color: var(--paper); border-color: var(--hairline-dark); }
.on-ink .btn-ghost:hover { border-color: var(--paper); background: rgba(247, 246, 243, 0.06); }

.text-link {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--signal);
}
.on-ink .text-link { color: var(--signal-on-ink); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 32px), 1060px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 22px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-wordmark:hover { text-decoration: none; }
.nav-wordmark sup {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  color: var(--signal);
  letter-spacing: 0.1em;
  top: -0.9em;
  margin-left: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-60);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--signal); }

.nav-ctas { display: flex; align-items: center; gap: 8px; }
.nav-ctas .btn { padding: 9px 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav-mobile {
  display: none;
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  width: min(calc(100% - 32px), 480px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--hairline);
  padding: 12px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile a:hover { text-decoration: none; background: var(--paper); }
.nav-mobile .btn { width: 100%; margin-top: 10px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-ctas .btn-ghost { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .nav-ctas .btn-solid { display: none; }
}

/* ---------- sections ---------- */

section { position: relative; }
.sec { padding: clamp(84px, 10vw, 140px) 0; }
.sec-white { background: var(--white); }
.sec-paper { background: var(--paper); }
.sec-field { background: var(--field); }
.sec-ink { background: var(--ink); color: var(--paper); }
.sec-ink .eyebrow, .sec-ink .mono { color: rgba(247, 246, 243, 0.45); }
.sec-ink .muted { color: rgba(247, 246, 243, 0.62); }
.sec-ink .lede { color: rgba(247, 246, 243, 0.62); }

.sec-head { margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .eyebrow { margin-bottom: 22px; }
.sec-head .h2 { max-width: 20ch; }
.sec-head .lede { margin-top: 20px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--field);
  overflow: hidden;
  padding: 140px 0 90px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero-bg svg { width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero .h1 { font-size: clamp(48px, 5.8vw, 84px); max-width: 14ch; }

/* collection-sites globe */
.hero-globe { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-globe svg { width: min(100%, 430px); height: auto; overflow: visible; }
.globe-sphere { fill: none; stroke: rgba(10, 10, 22, 0.55); stroke-width: 1.5; }
.globe-grid { fill: none; stroke: rgba(10, 10, 22, 0.22); stroke-width: 1; }
.globe-meridian { fill: none; stroke: rgba(10, 10, 22, 0.22); stroke-width: 1; }
.globe-site { fill: var(--signal); }
.globe-ring { fill: none; stroke: var(--signal); stroke-width: 1.2; opacity: 0.7; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .globe-ring { animation: site-pulse 2.8s var(--ease) infinite; }
  .globe-ring.d1 { animation-delay: 0.9s; }
  .globe-ring.d2 { animation-delay: 1.8s; }
}
@keyframes site-pulse {
  0% { transform: scale(0.35); opacity: 0.8; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
.globe-leader { fill: none; stroke: rgba(10, 10, 22, 0.35); stroke-width: 1; }
.globe-label { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; fill: var(--ink-60); }
.globe-caption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(10, 10, 22, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.globe-caption::before, .globe-caption::after {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-globe { margin-top: 10px; }
  .hero-globe svg { width: min(100%, 320px); }
}
.hero-sub {
  margin-top: 30px;
  max-width: 62ch;
  font-size: clamp(17px, 1.7vw, 19.5px);
  line-height: 1.55;
  color: rgba(10, 10, 22, 0.72);
}
.hero-ctas { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-jump {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.hero-jump a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(10, 10, 22, 0.45);
  border-bottom: 1px solid transparent;
}
.hero-jump a:hover { color: var(--signal); text-decoration: none; border-bottom-color: var(--signal); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(10, 10, 22, 0.4);
  white-space: nowrap;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--signal), transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue::after { animation: cue-drop 2.2s var(--ease) infinite; }
}
@keyframes cue-drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ambient hero line-work */
.ambient-line {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.1;
  stroke-width: 1;
}
.ambient-signal {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.4;
  stroke-opacity: 0.75;
}
@media (prefers-reduced-motion: no-preference) {
  .ambient-signal {
    stroke-dasharray: 340 1400;
    animation: ambient-travel 14s linear infinite;
  }
}
@keyframes ambient-travel {
  from { stroke-dashoffset: 1740; }
  to { stroke-dashoffset: 0; }
}

/* ---------- thesis (S2) ---------- */

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: clamp(40px, 5vw, 60px);
}
.thesis-grid .col { border-top: 1px solid var(--hairline); padding-top: 22px; }
.thesis-grid .mono { display: block; margin-bottom: 14px; }
.thesis-grid p { color: var(--ink-60); font-size: 15.5px; }

.thesis-end {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 34px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: 46ch;
}
.thesis-end em { font-style: normal; color: var(--signal); }

@media (max-width: 820px) {
  .thesis-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- journey (S3) ---------- */

.journey { background: var(--field); }

.journey-head { padding: clamp(84px, 9vw, 120px) 0 20px; }

.journey-track { position: relative; }

/* pinned mode (desktop, no reduced motion, JS available) */
.journey-pin-space { display: none; height: 480vh; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  body.journey-pinned .journey-pin-space { display: block; }
  body.journey-pinned .journey-list { display: none; }
}
.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.journey-stage {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.journey-spine { position: relative; height: 62vh; width: 64px; }
.journey-spine svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spine-base { fill: none; stroke: rgba(10, 10, 22, 0.14); stroke-width: 1.5; }
.spine-progress { fill: none; stroke: var(--signal); stroke-width: 2; }

.spine-node { fill: var(--field); stroke: rgba(10, 10, 22, 0.3); stroke-width: 1.5; transition: fill 0.2s, stroke 0.2s; }
.spine-node.lit { fill: var(--signal); stroke: var(--signal); }
.spine-node.sealed { fill: var(--seal); stroke: var(--seal); }

.journey-scenes { position: relative; min-height: 380px; }
.journey-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.journey-scene.active { opacity: 1; transform: none; visibility: visible; }

.scene-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--signal);
  margin-bottom: 18px;
}
.scene-num .of { color: rgba(10, 10, 22, 0.3); }
.journey-scene h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  max-width: 14ch;
}
.journey-scene p {
  margin-top: 20px;
  max-width: 46ch;
  color: rgba(10, 10, 22, 0.68);
  font-size: 16px;
}

.journey-art { position: relative; min-height: 380px; }
.journey-fig {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.985);
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.journey-fig.active { opacity: 1; transform: none; visibility: visible; }
.journey-fig svg { width: min(100%, 420px); height: auto; }

/* line-work illustration strokes */
.lw { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lw-faint { fill: none; stroke: rgba(10, 10, 22, 0.28); stroke-width: 1.2; stroke-linecap: round; }
.lw-signal { fill: none; stroke: var(--signal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lw-seal { fill: none; stroke: var(--seal); stroke-width: 1.8; stroke-linecap: round; }
.lw-fill-seal { fill: var(--seal); }
.lw-fill-signal { fill: var(--signal); }
.lw-dot { fill: var(--ink); }

/* static list (default; also mobile / reduced motion / no-JS) */
.journey-list { display: block; padding-bottom: clamp(84px, 9vw, 120px); }
.journey-list ol {
  list-style: none;
  border-left: 2px solid var(--signal);
  margin-left: 6px;
}
.journey-list li { padding: 30px 0 30px 30px; position: relative; }
.journey-list li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 42px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--signal);
}
.journey-list li.sealed::before { background: var(--seal); }
.journey-list .scene-num { margin-bottom: 10px; }
.journey-list h3 { font-size: clamp(24px, 5vw, 32px); letter-spacing: -0.02em; font-weight: 500; }
.journey-list p { margin-top: 12px; color: rgba(10, 10, 22, 0.68); max-width: 56ch; }
.journey-list .journey-fig-static { margin-top: 20px; opacity: 0.9; }
.journey-list .journey-fig-static svg { width: min(100%, 300px); height: auto; }

/* ---------- stats band (S4) ---------- */

.stats-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
  padding-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--hairline-dark);
}
.stat-huge {
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 148px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 0;
}
.stats-grid .stat {
  padding: clamp(28px, 4vw, 44px) 28px clamp(28px, 4vw, 44px) 0;
  border-right: 1px solid var(--hairline-dark);
}
.stats-grid .stat:last-child { border-right: none; }
.stats-grid .stat + .stat { padding-left: 28px; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat-num small { font-size: 0.5em; font-weight: 500; letter-spacing: -0.01em; }
.stat-cap { margin-top: 14px; display: block; max-width: 24ch; line-height: 1.6; }

@media (max-width: 820px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .stat:nth-child(2) { border-right: none; }
  .stats-grid .stat:nth-child(n + 3) { border-top: 1px solid var(--hairline-dark); }
  .stats-grid .stat:nth-child(odd) { padding-left: 0; }
  .stats-grid .stat:nth-child(even) { padding-left: 28px; }
}

/* ---------- proof / clips (S5) ---------- */

.proof-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.clip-frame {
  position: relative;
  border: 1px solid var(--hairline);
  background: #0D0F1A;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.clip-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.clip-slide.active { opacity: 1; visibility: visible; }
.clip-slide svg { width: 100%; height: 100%; }

.hud {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 246, 243, 0.75);
  pointer-events: none;
}
.hud-tl { top: 14px; left: 16px; }
.hud-tr { top: 14px; right: 16px; text-align: right; }
.hud-bl { bottom: 14px; left: 16px; }
.hud-br { bottom: 14px; right: 16px; text-align: right; }
.hud .ok { color: #5BE49B; }
.hud .sig { color: #93A4FF; }

.rec-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E5484D;
  margin-right: 6px;
  vertical-align: 1px;
}
@media (prefers-reduced-motion: no-preference) {
  .rec-dot { animation: rec-pulse 1.6s ease-in-out infinite; }
}
@keyframes rec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.pose-layer { transition: opacity 0.25s; }
.clip-frame.overlay-off .pose-layer { opacity: 0; }

.pose-bone { fill: none; stroke: #5BE49B; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pose-joint { fill: #5BE49B; }
.tcp-path { fill: none; stroke: #93A4FF; stroke-width: 1.6; stroke-dasharray: 5 5; }
.tcp-triad-x { stroke: #E5484D; stroke-width: 2; }
.tcp-triad-y { stroke: #5BE49B; stroke-width: 2; }
.tcp-triad-z { stroke: #93A4FF; stroke-width: 2; }

.scene-shape { opacity: 0.85; }

.clip-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.clip-nav { display: flex; align-items: center; gap: 8px; }
.clip-arrow {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.clip-arrow:hover { border-color: var(--ink); transform: translateY(-1px); }
.clip-arrow:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.clip-counter { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--ink-35); }

.overlay-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.overlay-toggle:hover { border-color: var(--ink); }
.overlay-toggle:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.overlay-toggle .pill {
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: var(--signal);
  position: relative;
  transition: background 0.2s;
}
.overlay-toggle .pill::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  transition: left 0.2s var(--ease);
}
.overlay-toggle[aria-pressed="false"] .pill { background: var(--ink-35); }
.overlay-toggle[aria-pressed="false"] .pill::after { left: 2px; }

/* spec sheet card */
.spec-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: clamp(24px, 3vw, 36px);
}
.spec-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 6px;
}
.spec-card-head strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.spec-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14.5px;
}
.spec-row:last-of-type { border-bottom: none; }
.spec-row dt { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-35); padding-top: 3px; }
.spec-row dd { color: var(--ink); }
.spec-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--ink-60); }
.spec-note a { white-space: nowrap; }

@media (max-width: 980px) {
  .proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .spec-row { grid-template-columns: 1fr; gap: 4px; padding: 11px 0; }
}

/* ---------- two lanes (S6) ---------- */

.lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.lane-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: clamp(28px, 3.6vw, 44px);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.lane-card:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(10, 10, 22, 0.06); }
.lane-chip {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  color: var(--ink-60);
  margin-bottom: 26px;
}
.lane-chip.chip-ego { border-color: rgba(20, 50, 220, 0.35); color: var(--signal); }
.lane-chip.chip-grip { border-color: rgba(10, 10, 22, 0.35); color: var(--ink); }
.lane-card h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.02em; max-width: 16ch; }
.lane-card p { margin-top: 18px; color: var(--ink-60); font-size: 15.5px; flex: 1; }
.lane-card .btn { align-self: flex-start; margin-top: 28px; }

@media (max-width: 820px) {
  .lanes { grid-template-columns: 1fr; }
}

/* ---------- catalog (S7) ---------- */

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--ink-60);
  cursor: pointer;
  border-radius: 999px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.filter-pill:hover { border-color: var(--ink); color: var(--ink); }
.filter-pill[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--white); }
.filter-pill:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

.catalog-table { border: 1px solid var(--hairline); background: var(--white); }
.catalog-row {
  display: grid;
  grid-template-columns: 130px 1.4fr 90px 1.5fr 130px;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hairline);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s;
}
.catalog-row:last-child { border-bottom: none; }
.catalog-row:not(.catalog-head):hover {
  transform: translateY(-2px);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(10, 10, 22, 0.07);
  position: relative;
  z-index: 1;
}
.catalog-head {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-35);
  background: var(--paper);
}
.catalog-sku { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink); }
.catalog-family { font-family: var(--font-display); font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; }
.catalog-family .sub { display: block; font-family: var(--font-body); font-size: 12.5px; font-weight: 400; color: var(--ink-35); margin-top: 2px; }
.catalog-hours { font-family: var(--font-mono); font-size: 13px; }
.catalog-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.data-chip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--hairline);
  color: var(--ink-60);
  white-space: nowrap;
}
.data-chip.ego { border-color: rgba(20, 50, 220, 0.3); color: var(--signal); }
.status-chip {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  white-space: nowrap;
}
.status-available { background: rgba(91, 176, 116, 0.12); color: #2E7D46; }
.status-refining { background: rgba(196, 122, 31, 0.1); color: var(--seal); }

.catalog-foot { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .catalog-head { display: none; }
  .catalog-row { grid-template-columns: 1fr auto; grid-template-areas: "sku status" "family family" "hours hours" "chips chips"; gap: 8px 12px; }
  .catalog-row .catalog-sku { grid-area: sku; }
  .catalog-row .status-chip { grid-area: status; justify-self: end; }
  .catalog-row .catalog-family { grid-area: family; }
  .catalog-row .catalog-hours { grid-area: hours; color: var(--ink-60); }
  .catalog-row .catalog-chips { grid-area: chips; }
}

/* ---------- pilot (S8) ---------- */

.pilot-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.timeline { list-style: none; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--hairline);
}
.timeline li { position: relative; padding: 0 0 34px 38px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--signal);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--signal);
}
.timeline .tl-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-bottom: 6px;
}
.timeline .tl-body { font-family: var(--font-display); font-size: 17.5px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; max-width: 40ch; }
.timeline .tl-sub { margin-top: 6px; font-size: 14px; color: var(--ink-60); max-width: 48ch; }

.delta-tiles { display: grid; gap: 14px; }
.delta-tile { background: var(--white); border: 1px solid var(--hairline); padding: 26px 28px; }
.delta-was {
  display: block;
  font-size: 13.5px;
  color: var(--ink-35);
  text-decoration: line-through;
  text-decoration-color: rgba(142, 142, 150, 0.7);
  margin-bottom: 8px;
}
.delta-now { font-family: var(--font-display); font-size: clamp(19px, 2vw, 23px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.delta-key { display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-35); margin-bottom: 14px; }

@media (max-width: 860px) {
  .pilot-grid { grid-template-columns: 1fr; }
}

/* ---------- trust band (S9) ---------- */

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-col { background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(10, 10, 22, 0.1); padding: clamp(24px, 3vw, 36px); }
.trust-col .mono { display: block; color: var(--signal); margin-bottom: 16px; }
.trust-col p { font-size: 15.5px; color: rgba(10, 10, 22, 0.72); }
.trust-col p strong { font-weight: 600; color: var(--ink); }

@media (max-width: 820px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ (S10) ---------- */

.faq-list { border-top: 1px solid var(--hairline); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--signal); }
.faq-item summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.faq-chevron { flex: none; transition: transform 0.2s var(--ease); color: var(--ink-35); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--signal); }
.faq-body { padding: 0 4px 26px; color: var(--ink-60); max-width: 68ch; font-size: 15.5px; }
.faq-body p + p { margin-top: 12px; }
.faq-body code { font-family: var(--font-mono); font-size: 13px; background: var(--paper); padding: 1px 6px; border: 1px solid var(--hairline); }

/* ---------- closing CTA (S11) ---------- */

.closing { text-align: left; }
.closing .h2 { max-width: 18ch; }
.closing-sub { margin-top: 22px; max-width: 56ch; }
.closing-ctas { margin-top: 36px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* ---------- footer ---------- */

footer {
  background: var(--white);
  border-top: 1px solid var(--hairline);
  padding: 54px 0 40px;
}
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.footer-word { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.footer-tag { margin-top: 8px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; }
.footer-links a { font-family: var(--font-display); font-size: 14.5px; font-weight: 500; color: var(--ink-60); }
.footer-links a:hover { color: var(--ink); text-decoration: none; }
.footer-meta {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-meta a { color: var(--ink-35); }
.footer-meta a:hover { color: var(--signal); }

/* ---------- subpage scaffolding ---------- */

.page-hero { background: var(--field); padding: 172px 0 76px; }
.page-hero .eyebrow { margin-bottom: 24px; color: rgba(10, 10, 22, 0.45); }
.page-hero h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 600; letter-spacing: -0.025em; line-height: 0.96; max-width: 14ch; }
.page-hero .lede { margin-top: 22px; color: rgba(10, 10, 22, 0.68); }

.prose { max-width: 68ch; color: var(--ink-60); }
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--ink); }

/* blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 30px;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(10, 10, 22, 0.06); text-decoration: none; }
.post-card .mono { margin-bottom: 18px; }
.post-card h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.post-card p { margin-top: 12px; font-size: 14.5px; color: var(--ink-60); flex: 1; }
.post-card .read { margin-top: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); }

@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-form { background: var(--white); border: 1px solid var(--hairline); padding: clamp(26px, 3vw, 40px); }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-35); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  border-radius: 0;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--signal);
  outline-offset: -1px;
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 13px; color: var(--ink-35); margin-top: 8px; }

.route-card { border: 1px solid var(--hairline); background: var(--white); padding: 28px; margin-bottom: 16px; }
.route-card h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; }
.route-card p { margin-top: 10px; font-size: 14.5px; color: var(--ink-60); }
.route-card .mono { display: block; margin-bottom: 14px; }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* careers */
.role-list { border: 1px solid var(--hairline); background: var(--white); }
.role-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--hairline);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.role-row:last-child { border-bottom: none; }
.role-row:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10, 10, 22, 0.07); position: relative; z-index: 1; }
.role-row h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.role-row .role-team { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-35); margin-top: 5px; display: block; }
.role-chips { display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .role-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.15s var(--ease), transform 0.15s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- reduced motion: read as a static document ---------- */

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

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--signal);
  color: var(--white);
  padding: 10px 18px;
  font-family: var(--font-display);
}
.skip-link:focus { left: 12px; top: 12px; }
