/* =============================================================
   SectorOps - Signal Discipline / Instrument Grade
   Hairline is structure. Amber is the only thing that is "live".
   ============================================================= */

:root {
  /* Surfaces */
  --bg: #030406;
  --surface: rgba(10, 13, 18, 0.78);
  --surface-2: rgba(18, 23, 31, 0.84);

  /* The structural hairline */
  --hairline: rgba(128, 146, 169, 0.18);
  --hairline-bright: rgba(173, 190, 214, 0.34);

  /* Type */
  --text: #ecedef;
  --text-muted: #8a9099;
  --text-dim: #565c64;

  /* Signal - ACTIVE / computing state only */
  --signal: #8ec8ff;
  --signal-soft: rgba(142, 200, 255, 0.15);
  --signal-warm: #e6f0aa;
  --deep-blue: #0d3a58;
  --cyan: #65f4ff;

  /* Reserved meanings */
  --alert: #e5484d; /* falsifiers + safety boundaries only */
  --verify: #3fb58b; /* resolved outcome / passed eval only */

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  --maxw: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --spine-gutter: 0px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 6px;
  --r-lg: 8px;
}

/* ----------------------------- Reset ----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}
body {
  background: linear-gradient(180deg, #030406 0%, #05070c 42%, #030406 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-left: var(--spine-gutter);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 82%);
}
img,
svg {
  display: block;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--signal-soft);
  color: var(--text);
}

/* ----------------------------- Type ------------------------------ */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: 0;
  line-height: 1.03;
  color: var(--text);
}
p {
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.dim {
  color: var(--text-dim);
}
.muted {
  color: var(--text-muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
}
.caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 6px;
  background: var(--signal);
  transform: translateY(2px);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.arrow {
  display: inline-block;
  transition: transform 0.22s var(--ease);
}

/* status dots */
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
  background: var(--text-dim);
  vertical-align: middle;
}
.dot-verify {
  background: var(--verify);
}

/* --------------------------- Layout ------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(72px, 11vw, 140px);
  border-top: 1px solid var(--hairline);
  position: relative;
  /* anchor jumps land the heading ~112px from the top (just under the header),
     cancelling the section's top padding regardless of viewport width */
  scroll-margin-top: calc(112px - clamp(72px, 11vw, 140px));
}
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 84% 22%, rgba(101, 244, 255, 0.07), transparent 24rem),
    linear-gradient(180deg, transparent, rgba(3, 4, 6, 0.4));
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.section:nth-of-type(odd)::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(230, 240, 170, 0.05), transparent 22rem),
    linear-gradient(180deg, transparent, rgba(3, 4, 6, 0.45));
}
.section:focus-within::before,
.section:hover::before {
  opacity: 1;
}

/* skip link */
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 200;
  background: var(--surface-2);
  border: 1px solid var(--hairline-bright);
  padding: 10px 16px;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* focus ring - precise, no glow */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--signal-soft);
  border-radius: var(--r);
}

/* ---------------------- Scroll progress (mobile) ----------------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--signal);
}

/* ----------------------- Cinematic Atmosphere -------------------- */
.cinema-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.95;
}
html.has-three-hero .cinema-canvas {
  display: none;
}
.cinema-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 22%, transparent 0 22rem, rgba(3, 4, 6, 0.12) 34rem, rgba(3, 4, 6, 0.86) 100%),
    linear-gradient(90deg, rgba(3, 4, 6, 0.94), transparent 18%, transparent 82%, rgba(3, 4, 6, 0.92)),
    linear-gradient(180deg, rgba(3, 4, 6, 0.18), rgba(3, 4, 6, 0.9) 82%);
}

/* --------------------------- Spine ------------------------------- */
.spine {
  position: fixed;
  top: 0;
  left: 0;
  width: 56px;
  height: 100vh;
  z-index: 90;
  display: none;
}
.spine-rail {
  position: absolute;
  left: 50%;
  top: 130px;
  bottom: 130px;
  width: 1px;
  background: var(--hairline);
  transform: translateX(-50%);
}
.spine-node {
  position: absolute;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  transform: translate(-50%, -50%);
  transition: top 0.6s var(--ease);
  box-shadow: 0 0 0 4px var(--signal-soft);
}
.spine-tick {
  position: absolute;
  left: 50%;
  margin-left: -2.5px; /* center the dot on the 1px rail; label extends right */
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}
.spine-tick .tdot {
  width: 5px;
  height: 5px;
  border: 1px solid var(--hairline-bright);
  background: var(--bg);
  border-radius: 1px;
  transition: border-color 0.3s var(--ease);
  flex: none;
}
.spine-tick .tlabel {
  white-space: nowrap;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 3px 8px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}
.spine-tick:hover .tlabel,
.spine-tick:focus-visible .tlabel {
  opacity: 1;
  transform: translateX(0);
}
.spine-tick.is-active .tdot {
  border-color: var(--hairline-bright);
  background: var(--hairline-bright);
}

/* --------------------------- Header ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px var(--gutter);
  background: rgba(3, 4, 6, 0.62);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.brand-mark {
  color: var(--text);
  display: inline-flex;
}
.brand-mark-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 85%;
  font-size: 12px;
  fill: var(--text);
  letter-spacing: 0;
}
.brand-mark-node {
  fill: var(--signal);
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--signal);
  transition: width 0.24s var(--ease);
}
.nav a:hover {
  color: var(--text);
}
.nav a:hover::after {
  width: 100%;
}
.header-cta {
  flex: none;
}

/* mobile nav */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}
.mobile-nav {
  position: sticky;
  top: 73px;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding: 12px var(--gutter) 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav a {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav a:last-child {
  border-bottom: none;
  margin-top: 12px;
  justify-content: center;
}

/* --------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--signal), var(--signal-warm));
  color: #08090b;
  box-shadow: 0 12px 34px rgba(101, 244, 255, 0.14);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
  transition: left 0.5s var(--ease);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #bce2ff, #f0f6bd);
  transform: translateY(-1px);
}
.btn-primary:hover::after {
  left: 130%;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--hairline-bright);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  border-color: var(--text-dim);
  background: var(--surface);
}
.btn-secondary:hover .arrow {
  transform: translateX(4px);
}
.btn-block {
  width: 100%;
  justify-content: center;
  padding-block: 15px;
}

/* ---------------------------- Hero ------------------------------- */
#top {
  /* the logo / #top should land in the same place as the bare root URL (scroll 0),
     not scrolled down by the sticky header's height */
  scroll-margin-top: 100px;
}
.hero {
  position: relative;
  min-height: calc(100svh - 73px);
  padding-top: clamp(42px, 6vw, 82px);
  padding-bottom: 0;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  padding-bottom: clamp(48px, 8vw, 88px);
}
.hero-copy {
  max-width: 820px;
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: clamp(3rem, 5.85vw, 5.75rem);
  margin-top: 22px;
  max-width: 12.4ch;
  text-wrap: balance;
  text-shadow: 0 0 52px rgba(101, 244, 255, 0.16);
}
.hero-sub {
  margin-top: 26px;
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.65vw, 1.18rem);
  line-height: 1.55;
  color: #b8c2cf;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-meta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
}
.hero-meta li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.hero-visual {
  position: relative;
  min-height: clamp(380px, 48vw, 580px);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: min(44vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(101, 244, 255, 0.2), transparent 48%),
    radial-gradient(circle at 40% 34%, rgba(230, 240, 170, 0.16), transparent 28%);
  filter: blur(18px);
  opacity: 0.9;
}
.orbital-system {
  position: relative;
  width: min(38vw, 500px);
  min-width: 320px;
  aspect-ratio: 1;
  transform-style: preserve-3d;
  animation: floatScene 8s var(--ease) infinite alternate;
}
.orbit {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(142, 200, 255, 0.25);
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(101, 244, 255, 0.08), 0 0 32px rgba(101, 244, 255, 0.06);
}
.orbit::after {
  content: "";
  position: absolute;
  top: 9%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-warm);
  box-shadow: 0 0 20px rgba(230, 240, 170, 0.82);
}
.orbit-a {
  transform: rotateX(66deg) rotateZ(12deg);
  animation: orbitSpin 18s linear infinite;
}
.orbit-b {
  inset: 18%;
  transform: rotateX(72deg) rotateY(28deg) rotateZ(78deg);
  animation: orbitSpin 13s linear infinite reverse;
}
.orbit-c {
  inset: 4%;
  transform: rotateX(58deg) rotateY(-26deg) rotateZ(-28deg);
  animation: orbitSpin 24s linear infinite;
}
.core-orb {
  position: absolute;
  inset: 31%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  background:
    radial-gradient(circle at 42% 32%, rgba(255, 255, 255, 0.24), transparent 16%),
    radial-gradient(circle, rgba(101, 244, 255, 0.26), rgba(13, 58, 88, 0.16) 54%, rgba(3, 4, 6, 0.8) 72%);
  border: 1px solid rgba(142, 200, 255, 0.34);
  box-shadow: 0 0 72px rgba(101, 244, 255, 0.18), inset 0 0 42px rgba(142, 200, 255, 0.11);
}
.core-orb span,
.core-orb strong {
  position: relative;
  z-index: 1;
}
.core-orb span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--signal);
  text-transform: uppercase;
}
.core-orb strong {
  max-width: 10ch;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2.3vw, 1.54rem);
  line-height: 1;
}
.event {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(101, 244, 255, 0.9);
}
.event-1 {
  left: 16%;
  top: 25%;
  animation: eventPulse 2.6s ease-in-out infinite;
}
.event-2 {
  right: 18%;
  top: 58%;
  animation: eventPulse 3.1s ease-in-out infinite 0.4s;
}
.event-3 {
  left: 48%;
  bottom: 12%;
  background: var(--signal-warm);
  animation: eventPulse 2.8s ease-in-out infinite 0.9s;
}
.mission-readout {
  position: absolute;
  right: 0;
  bottom: 12%;
  width: min(260px, 78%);
  padding: 16px 18px;
  border: 1px solid rgba(142, 200, 255, 0.22);
  border-radius: var(--r-lg);
  background: rgba(3, 4, 6, 0.42);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}
.mission-readout .mono {
  color: var(--signal);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}
.mission-readout p {
  margin-top: 8px;
  color: #c6d0dc;
  font-size: 0.92rem;
  line-height: 1.42;
}
@keyframes orbitSpin {
  to { transform: rotateX(66deg) rotateZ(372deg); }
}
@keyframes floatScene {
  to { transform: translate3d(0, -14px, 0) rotateZ(1.5deg); }
}
@keyframes eventPulse {
  50% { transform: scale(1.8); opacity: 0.44; }
}

/* ------------------- FIG.01 - Reference pipeline ----------------- */
.diagram {
  position: relative;
  margin: 0 auto;
  max-width: var(--maxw);
  width: calc(100% - 2 * var(--gutter));
  margin-bottom: clamp(40px, 7vw, 80px);
  background: rgba(7, 10, 15, 0.55);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 44px);
  /* faint schematic substrate, masked to fade at edges */
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}
.diagram::before {
  /* mask the grid to a faint wash */
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: var(--r-lg);
  background: radial-gradient(
    120% 130% at 50% 40%,
    rgba(14, 16, 19, 0.72),
    var(--surface) 70%
  );
  pointer-events: none;
}
.diagram > * {
  position: relative;
  z-index: 1;
}
/* corner crop marks */
.diagram::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 2px;
  background:
    linear-gradient(var(--hairline-bright), var(--hairline-bright)) left 0 top 0 / 12px 1px no-repeat,
    linear-gradient(var(--hairline-bright), var(--hairline-bright)) left 0 top 0 / 1px 12px no-repeat,
    linear-gradient(var(--hairline-bright), var(--hairline-bright)) right 0 top 0 / 12px 1px no-repeat,
    linear-gradient(var(--hairline-bright), var(--hairline-bright)) right 0 top 0 / 1px 12px no-repeat,
    linear-gradient(var(--hairline-bright), var(--hairline-bright)) left 0 bottom 0 / 12px 1px no-repeat,
    linear-gradient(var(--hairline-bright), var(--hairline-bright)) left 0 bottom 0 / 1px 12px no-repeat,
    linear-gradient(var(--hairline-bright), var(--hairline-bright)) right 0 bottom 0 / 12px 1px no-repeat,
    linear-gradient(var(--hairline-bright), var(--hairline-bright)) right 0 bottom 0 / 1px 12px no-repeat;
  pointer-events: none;
  z-index: 0;
}
.diagram-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.diagram-head .status {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
}
.diagram-note {
  margin-top: 26px;
  text-align: center;
  font-size: 0.72rem;
}

.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 56px; /* clearance for the upward fork */
}
.pnode {
  position: relative;
  flex: 0 1 150px;
  min-width: 0;
  background: rgba(3, 4, 6, 0.72);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 14px 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.4s var(--ease);
}
.pnode-idx {
  color: var(--text-dim);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}
.pnode-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 0.98rem;
  letter-spacing: 0;
  line-height: 1.1;
}
.pnode-op {
  font-size: 0.64rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  transition: color 0.3s var(--ease);
}
.pnode.is-live {
  border-color: var(--signal);
}
.pnode.is-live .pnode-op {
  color: var(--signal);
}
.pnode-outcome.is-resolved {
  border-color: var(--verify);
}
.pnode-outcome.is-resolved .pnode-op {
  color: var(--verify);
}

.prail {
  position: relative;
  flex: 1 1 30px;
  min-width: 22px;
  align-self: center;
  height: 2px;
}
.prail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--hairline);
  transform: translateY(-50%);
}
.prail > i {
  position: absolute;
  left: 0;
  top: 50%;
  height: 1px;
  width: 0;
  background: var(--signal);
  transform: translateY(-50%);
  transition: width 0.45s var(--ease);
}
.prail.is-flowing > i {
  width: 100%;
}

/* the honest fork */
.pnode-decision {
  overflow: visible;
}
.pbranch {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  width: max-content;
  padding-bottom: 7px;
}
.pbranch-rail {
  width: 1px;
  height: 24px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.pbranch-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--signal);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.pbranch.is-flowing .pbranch-rail::after {
  transform: translateY(0);
}
.pnode-hold {
  flex: none;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px dashed var(--hairline-bright);
  border-radius: var(--r);
  white-space: nowrap;
}
.pnode-hold .pnode-op {
  color: var(--text-dim);
}
.pnode-hold.is-live {
  border-color: var(--text-muted);
}
.pnode-hold.is-live .pnode-op {
  color: var(--text-muted);
}

/* static end-state (reduced motion / no-JS schematic) */
.pipeline.is-static .prail > i {
  width: 100%;
  background: var(--hairline-bright);
}
.pipeline.is-static .prail[data-rail="r3"] > i {
  background: var(--signal);
}
.pipeline.is-static .pnode-outcome {
  border-color: var(--verify);
}
.pipeline.is-static .pnode-outcome .pnode-op {
  color: var(--verify);
}

/* --------------------------- Run-heads --------------------------- */
.run-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding-bottom: 30px;
  margin-bottom: clamp(36px, 5vw, 56px);
  position: relative;
}
.run-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--hairline);
  transition: width 0.9s var(--ease);
}
.run-head.in-view::after {
  width: 100%;
}
.run-index {
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding-top: 8px;
}
.run-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
}
.run-lede {
  margin-top: 14px;
  color: var(--text-muted);
  max-width: 56ch;
  font-size: 1.04rem;
}

/* ----------------------- S01 - Core cards ------------------------ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card {
  position: relative;
  background: rgba(8, 12, 18, 0.64);
  padding: 30px 26px 64px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s var(--ease);
  outline: none;
}
.card,
.dossier,
.compare-thesis,
.compare-col,
.stack,
.assess-questions,
.assess-readout,
.step,
.guarantee,
.faq,
.about-side,
.contact-form {
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.card::before {
  /* internal divider that draws on hover */
  content: "";
  position: absolute;
  left: 26px;
  top: 70px;
  height: 1px;
  width: 0;
  background: var(--hairline-bright);
  transition: width 0.4s var(--ease);
}
.card:hover,
.card:focus-visible {
  background: rgba(18, 25, 34, 0.78);
}
.card:hover::before,
.card:focus-visible::before {
  width: 44px;
}
.card-kicker {
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-kicker::before {
  content: "";
  width: 0;
  height: 6px;
  border-left: 2px solid var(--signal);
  opacity: 0;
  transition: opacity 0.3s var(--ease), width 0.3s var(--ease);
}
.card:hover .card-kicker::before,
.card:focus-visible .card-kicker::before {
  opacity: 1;
  width: 2px;
}
.card h3 {
  font-size: 1.32rem;
  margin-top: 24px;
  font-weight: 700;
}
.card p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.55;
}
.card-glyph {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--hairline-bright);
  border-radius: 2px;
  opacity: 0.6;
}
.card-glyph::before,
.card-glyph::after {
  content: "";
  position: absolute;
  background: var(--hairline-bright);
}
.card-glyph::before {
  left: -1px;
  top: 50%;
  width: 9px;
  height: 1px;
}
.card-glyph::after {
  left: 50%;
  top: -1px;
  width: 1px;
  height: 9px;
}

/* ---------------------- S03 - Why different ---------------------- */
.compare {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare-thesis,
.compare-col {
  background: rgba(8, 12, 18, 0.64);
  padding: 30px 28px 36px;
}
.compare-thesis p {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.5;
}
.compare-thesis p.muted {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 16px;
}
.compare-head {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding-bottom: 16px;
  margin-bottom: 20px;
  position: relative;
}
.compare-typical .compare-head {
  color: var(--text-dim);
  border-bottom: 1px solid var(--hairline);
}
.compare-self .compare-head {
  color: var(--text);
  border-bottom: 1px solid var(--hairline);
}
.compare-self .compare-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 1px;
  background: var(--signal);
}
.compare-col ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compare-col li {
  font-size: 1rem;
  padding-left: 18px;
  position: relative;
}
.compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--text-dim);
}
.compare-typical li {
  color: var(--text-dim);
}
.compare-self li {
  color: var(--text);
}
.compare-self li::before {
  background: var(--text-muted);
}

/* ---------------------- S04 - Technical depth -------------------- */
.stack {
  position: relative;
  background: rgba(8, 12, 18, 0.62);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3.4vw, 40px);
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 48px 48px;
}
.stack::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: var(--r-lg);
  background: radial-gradient(120% 120% at 50% 35%, rgba(14, 16, 19, 0.7), var(--surface) 72%);
  pointer-events: none;
}
.stack-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stack-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.stack-head {
  color: var(--text-dim);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 4px;
}
.chip {
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  background: rgba(3, 4, 6, 0.56);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 9px 12px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background 0.2s var(--ease), opacity 0.2s var(--ease);
}
.chip:hover {
  border-color: var(--hairline-bright);
  color: var(--text);
}
.chip.is-source {
  border-color: var(--signal);
  color: var(--signal);
  background: var(--signal-soft);
}
.chip.is-related {
  border-color: var(--hairline-bright);
  color: var(--text);
}
.chip.is-dim {
  opacity: 0.32;
}
.stack-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.stack-wires line {
  stroke: var(--signal);
  stroke-width: 1;
  opacity: 0.7;
}
.stack-caption {
  position: relative;
  z-index: 2;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 0.7rem;
}

/* --------------------------- S05 - About ------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-copy {
  max-width: 62ch;
}
.about-role {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 85%;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 26px;
  position: relative;
  display: inline-block;
}
.about-role::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 56px;
  height: 2px;
  background: var(--signal);
}
.about-role .amp {
  color: var(--text-dim);
  font-weight: 600;
}
.about-copy p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.06rem;
  line-height: 1.62;
}
.about-credit {
  color: var(--text) !important;
}
.about-credit strong {
  color: var(--text);
  font-weight: 600;
}
.about-side {
  background: rgba(8, 12, 18, 0.66);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  position: sticky;
  top: 96px;
}
.about-side-head {
  color: var(--text-dim);
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  display: block;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 18px;
}
.about-side dl {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-side dt {
  color: var(--text-dim);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.about-side dd {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* -------------------------- S06 - Contact ------------------------ */
.section-contact {
  background:
    radial-gradient(circle at 50% 30%, rgba(142, 200, 255, 0.09), transparent 34rem),
    rgba(3, 4, 6, 0.3);
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.contact-head {
  max-width: 48ch;
}
.contact-title {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  margin-top: 18px;
}
.contact-lede {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.6;
}
.contact-direct {
  margin-top: 26px;
}
.contact-direct a {
  color: var(--text);
  border-bottom: 1px solid var(--signal);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease);
}
.contact-direct a:hover {
  color: var(--signal);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(8, 12, 18, 0.72);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.4vw, 36px);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label {
  color: var(--text-dim);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--hairline-bright);
  box-shadow: 0 0 0 3px var(--signal-soft);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.bot-check {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
}
.bot-check-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bot-check-copy strong {
  color: var(--text-muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.bot-check-copy span {
  font-size: 0.78rem;
}
.form-note {
  font-size: 0.74rem;
  line-height: 1.5;
}
.form-note a {
  color: var(--text-muted);
  border-bottom: 1px solid var(--hairline-bright);
}

/* ---------------------------- Footer ----------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: rgba(3, 4, 6, 0.72);
  padding-block: 40px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .mono {
  color: var(--text);
  font-size: 0.82rem;
}
.footer-tick {
  width: 2px;
  height: 14px;
  background: var(--signal);
  display: inline-block;
}
.footer-line {
  font-size: 0.72rem;
}
.footer-meta {
  display: inline-flex;
  gap: 22px;
  font-size: 0.72rem;
}

/* thanks / error pages */
.utility-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.utility-card {
  max-width: 560px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(30px, 5vw, 52px);
}
.utility-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 16px 0 18px;
}
.utility-card p {
  color: var(--text-muted);
  line-height: 1.6;
}
.utility-card a.inline {
  color: var(--text);
  border-bottom: 1px solid var(--signal);
}
.handshake {
  margin: 24px 0 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  background: var(--surface-2);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.handshake-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(2px);
  animation: hsline 0.4s var(--ease) forwards;
}
.handshake-line .ok {
  color: var(--verify);
}
.handshake-line:nth-child(1) { animation-delay: 0.1s; }
.handshake-line:nth-child(2) { animation-delay: 0.5s; }
.handshake-line:nth-child(3) { animation-delay: 0.95s; }
@keyframes hsline {
  to { opacity: 1; transform: translateY(0); }
}

/* ================= S02 - Selected Systems (proof) =============== */
.dossiers {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.dossier {
  display: grid;
  grid-template-columns: 290px 1fr;
  background: var(--surface);
  transition: background 0.25s var(--ease);
}
.dossier:hover {
  background: var(--surface-2);
}
.dossier-meta {
  padding: 28px 26px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
}
.dossier-fig {
  color: var(--text-dim);
  letter-spacing: 0.12em;
}
.dossier-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: 0;
  font-size: 1.5rem;
  margin-top: 12px;
}
.dossier-thesis {
  margin-top: 9px;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.dossier-spec {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.dossier-spec > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px dotted var(--hairline);
  padding-bottom: 7px;
}
.dossier-spec dt {
  color: var(--text-dim);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}
.dossier-spec dd {
  color: var(--text-muted);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-align: right;
}
.claims-none {
  color: var(--alert);
}
.pill {
  margin-top: 22px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  border: 1px solid var(--hairline-bright);
  border-radius: 100px;
  padding: 4px 11px;
}
.pill-live {
  color: var(--verify);
  border-color: rgba(63, 181, 139, 0.4);
}
.pill-research {
  color: var(--signal);
  border-color: rgba(168, 171, 247, 0.4);
}
.dossier-body {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dossier-desc {
  color: var(--text-muted);
  line-height: 1.6;
}
.dossier-line {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dossier-line .mono {
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.dossier-line strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.2rem;
  color: var(--text);
}
.hl-safety {
  color: var(--alert);
}

/* ===================== S05 - How I Work ======================== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step {
  background: var(--surface);
  padding: 28px 24px 34px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.step-num::before {
  content: "";
  width: 2px;
  height: 12px;
  background: var(--signal);
}
.step h3 {
  font-size: 1.16rem;
  margin-top: 18px;
}
.step p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}
.guarantees-head {
  display: block;
  margin: 38px 0 16px;
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}
.guarantees {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.guarantee {
  background: var(--surface);
  padding: 24px 22px;
}
.guarantee .mono {
  color: var(--text);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guarantee .mono::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--signal);
  border-radius: 1px;
  flex: none;
}
.guarantee p {
  margin-top: 11px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* =========================== S06 - FAQ ========================= */
.faq {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq details:last-child {
  border-bottom: none;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 90%;
  font-size: 1.06rem;
  color: var(--text);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-dim);
  flex: none;
  transition: color 0.2s var(--ease);
}
.faq details[open] summary::after {
  content: "\2212";
  color: var(--signal);
}
.faq-a {
  padding: 0 26px 24px;
  color: var(--text-muted);
  line-height: 1.62;
  max-width: 74ch;
}
.faq-a .flag {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.cinema-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.cinema-reveal.cinema-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ================= Cinematic Scroll Choreography ================= */
.cinema-scroll body {
  overscroll-behavior-y: none;
}
.cinema-scroll .hero,
.cinema-scroll .diagram,
.cinema-scroll .section,
.cinema-scroll .site-footer {
  --scene-y: 0px;
  --scene-scale: 1;
  --scene-opacity: 1;
  --scene-wipe: 0;
}
.cinema-scroll .section {
  overflow: clip;
}
.cinema-scroll .section > .wrap,
.cinema-scroll .diagram > *,
.cinema-scroll .site-footer > .wrap {
  transform: translate3d(0, var(--scene-y), 0) scale(var(--scene-scale));
  opacity: var(--scene-opacity);
  transition: transform 0.18s linear, opacity 0.18s linear;
  transform-origin: center;
}
.cinema-scroll .section::after,
.cinema-scroll .diagram::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 4, 6, 0.94), transparent 18%, transparent 82%, rgba(3, 4, 6, 0.92)),
    radial-gradient(circle at calc(18% + var(--scene-wipe) * 64%) 46%, rgba(101, 244, 255, 0.1), transparent 24rem);
  opacity: calc(0.18 + var(--scene-wipe) * 0.22);
  mix-blend-mode: screen;
}
.cinema-scroll .section.is-cinema-active .run-title,
.cinema-scroll .section.is-cinema-active .contact-title {
  text-shadow: 0 0 42px rgba(101, 244, 255, 0.12);
}
.cinema-scroll .run-head {
  transform: translate3d(0, calc((1 - var(--scene-wipe)) * 18px), 0);
  transition: transform 0.28s var(--ease);
}
.cinema-scroll .card,
.cinema-scroll .dossier,
.cinema-scroll .step,
.cinema-scroll .guarantee,
.cinema-scroll .q,
.cinema-scroll .faq details {
  transition:
    transform 0.35s var(--ease),
    opacity 0.35s var(--ease),
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.cinema-scroll .section.is-cinema-active .card:hover,
.cinema-scroll .section.is-cinema-active .dossier:hover,
.cinema-scroll .section.is-cinema-active .step:hover,
.cinema-scroll .section.is-cinema-active .guarantee:hover {
  transform: translate3d(0, -8px, 0);
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  html.cinema-scroll {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 84px;
  }
  .cinema-scroll .hero,
  .cinema-scroll .diagram,
  .cinema-scroll .section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .cinema-scroll .site-footer {
    scroll-snap-align: end;
  }
}

/* on-ramps + CTA clarity */
.cta-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.cta-note .sep {
  color: var(--hairline-bright);
  margin: 0 9px;
}
.onramp {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.onramp-item {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.onramp-item .mono {
  color: var(--signal);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  flex: none;
  width: 52px;
}
.onramp-item span:last-child {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

/* responsive - new sections */
@media (max-width: 980px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
  .guarantees {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .dossier {
    grid-template-columns: 1fr;
  }
  .dossier-meta {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
}
@media (max-width: 560px) {
  .process,
  .guarantees {
    grid-template-columns: 1fr;
  }
}

/* ================= S04 - Demo or System? (diagnostic) ========== */
.assess {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.assess-questions {
  background: var(--surface);
}
.q {
  padding: 22px 26px;
  border-bottom: 1px solid var(--hairline);
}
.q:last-child {
  border-bottom: none;
}
.q-head {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.q-num {
  color: var(--text-dim);
  flex: none;
}
.q-text {
  font-weight: 600;
  font-size: 1.01rem;
  color: var(--text);
  line-height: 1.4;
}
.q-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-left: 30px;
}
.q-opt {
  font-size: 0.84rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  padding: 8px 13px;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
    background 0.18s var(--ease);
}
.q-opt:hover {
  border-color: var(--hairline-bright);
  color: var(--text);
}
.q-opt.is-selected {
  border-color: var(--signal);
  color: var(--signal);
  background: var(--signal-soft);
}
.assess-readout {
  background: var(--surface);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 100px;
  align-self: start;
}
.readout-head {
  color: var(--text-dim);
  letter-spacing: 0.12em;
}
.meter {
  margin-top: 20px;
}
.meter-track {
  position: relative;
  height: 8px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  overflow: hidden;
}
.meter-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--signal);
  border-radius: 100px;
  transition: width 0.45s var(--ease);
}
.meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--text-dim);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}
.readout-score {
  margin-top: 24px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}
.readout-verdict {
  margin-top: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 88%;
  font-size: 1.22rem;
  line-height: 1.22;
  letter-spacing: 0;
}
.readout-gaps {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.readout-gaps li {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  padding-left: 16px;
  position: relative;
}
.readout-gaps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--alert);
  border-radius: 1px;
}
.readout-cta {
  margin-top: 26px;
}
@media (max-width: 860px) {
  .assess {
    grid-template-columns: 1fr;
  }
  .assess-readout {
    position: static;
    border-top: 1px solid var(--hairline);
  }
}
@media (max-width: 600px) {
  .q-opts {
    padding-left: 0;
  }
}

/* ========================= Responsive ============================ */
@media (min-width: 1180px) {
  :root {
    --spine-gutter: 56px;
  }
  .spine {
    display: block;
  }
  .scroll-progress {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    max-width: 11ch;
  }
  .hero-visual {
    min-height: 390px;
    margin-top: -12px;
  }
  .orbital-system {
    width: min(74vw, 460px);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .compare {
    grid-template-columns: 1fr;
  }
  .compare-thesis {
    grid-column: 1 / -1;
  }
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 22px;
  }
  .stack-wires {
    display: none; /* tap-to-trace highlights chips directly on small screens */
  }
}

@media (max-width: 860px) {
  .nav,
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .plate {
    grid-template-columns: 1fr;
  }
  .plate-rev .plate-readout {
    order: initial;
  }
  .plate-rev .plate-body {
    order: initial;
  }
  .plate-readout {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  .plate-rev .plate-readout {
    border-left: none;
    border-bottom: 1px solid var(--hairline);
  }
  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .about-side {
    position: static;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .site-header {
    padding-block: 13px;
  }
  .hero {
    min-height: calc(100svh - 67px);
    padding-top: 42px;
    align-items: start;
  }
  .hero-grid {
    position: relative;
    display: block;
    min-height: calc(100svh - 109px);
    padding-bottom: 70px;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
  }
  .hero-title {
    max-width: 10.8ch;
    text-shadow: 0 2px 22px rgba(3, 4, 6, 0.82), 0 0 42px rgba(101, 244, 255, 0.18);
  }
  .hero-sub {
    font-size: 1.03rem;
    color: #d0d7df;
    text-shadow: 0 2px 18px rgba(3, 4, 6, 0.82);
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-meta {
    display: none;
  }
  .hero-visual {
    position: absolute;
    top: 76px;
    left: 70px;
    right: auto;
    z-index: 1;
    min-height: 330px;
    width: 300px;
    opacity: 0.72;
    pointer-events: none;
    overflow: hidden;
    contain: paint;
  }
  .orbital-system {
    min-width: 250px;
    width: 300px;
  }
  .mission-readout {
    display: none;
  }
  .contact-head,
  .contact-form,
  .onramp,
  .onramp-item {
    max-width: calc(100vw - 40px);
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .stack-grid {
    grid-template-columns: 1fr;
  }
  /* pipeline becomes vertical, fork goes to the side */
  .pipeline {
    flex-direction: column;
    align-items: stretch;
  }
  .pnode {
    flex: none;
    width: 100%;
  }
  .prail {
    flex: none;
    width: 2px;
    height: 26px;
    align-self: center;
  }
  .prail::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    transform: translateX(-50%);
  }
  .prail > i {
    left: 50%;
    top: 0;
    width: 1px;
    height: 0;
    transform: translateX(-50%);
    transition: height 0.45s var(--ease);
  }
  .prail.is-flowing > i {
    height: 100%;
  }
  .pbranch {
    display: none;
  }
  .pbranch-rail {
    width: 24px;
    height: 1px;
  }
  .pbranch-rail::after {
    transform: translateX(-100%);
  }
  .pbranch.is-flowing .pbranch-rail::after {
    transform: translateX(0);
  }
  .bbo-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .discipline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .hero-title {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }
}

/* ===================== Reduced motion ============================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .caret {
    animation: none;
    opacity: 1;
  }
  .spine-node {
    transition: none;
  }
}

/* ================= Three.js Cinematic Hero ======================= */
html.has-three-hero .hero {
  min-height: calc(100svh - 73px);
  padding-top: 0;
  align-items: end;
  isolation: isolate;
}
html.has-three-hero .cinematic-hero::before {
  content: "";
  position: absolute;
  inset: -18% -8% -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 43%, rgba(101, 244, 255, 0.18), transparent 22%),
    radial-gradient(ellipse at 76% 54%, rgba(230, 240, 170, 0.1), transparent 18%),
    conic-gradient(from 222deg at 70% 48%, transparent 0 18%, rgba(101, 244, 255, 0.08) 24%, transparent 34%, rgba(230, 240, 170, 0.05) 46%, transparent 58%),
    linear-gradient(90deg, rgba(3, 4, 6, 0.98) 0%, rgba(3, 4, 6, 0.78) 34%, rgba(3, 4, 6, 0.22) 72%, rgba(3, 4, 6, 0.74) 100%);
  filter: saturate(1.22);
}
html.has-three-hero .cinematic-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 4, 6, 0.2), transparent 22%, transparent 70%, rgba(3, 4, 6, 0.96)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 5px);
  opacity: 0.36;
  mix-blend-mode: screen;
}
html.has-three-hero .hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: 100vw;
  max-width: none;
  min-height: calc(100svh - 73px);
  margin-left: calc(-1 * var(--spine-gutter));
  margin-right: 0;
  padding-inline: clamp(28px, 7vw, 150px);
  padding-top: clamp(72px, 10vh, 112px);
  padding-bottom: clamp(72px, 10vh, 112px);
}
html.has-three-hero .hero-copy {
  width: min(820px, 100%);
  max-width: 820px;
  padding-top: 0;
  z-index: 4;
  position: relative;
  text-align: center;
  margin-inline: auto;
  justify-self: center;
}
html.has-three-hero .hero-copy::before {
  content: "";
  position: absolute;
  inset: -120px -220px -110px -220px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(3, 4, 6, 0.76), rgba(3, 4, 6, 0.46) 34%, rgba(3, 4, 6, 0.18) 58%, transparent 82%);
  filter: blur(22px);
}
html.has-three-hero .hero-title {
  font-size: clamp(3rem, 4.85vw, 5.25rem);
  max-width: 13.8ch;
  margin-inline: auto;
  margin-top: 18px;
  text-shadow:
    0 4px 42px rgba(3, 4, 6, 0.96),
    0 0 72px rgba(101, 244, 255, 0.23);
}
html.has-three-hero .hero-sub {
  margin-inline: auto;
  max-width: 54ch;
  color: #eef4fb;
  text-shadow:
    0 2px 20px rgba(3, 4, 6, 0.98),
    0 0 18px rgba(3, 4, 6, 0.88);
}
html.has-three-hero .eyebrow,
html.has-three-hero .cta-note,
html.has-three-hero .hero-meta li {
  color: rgba(238, 244, 251, 0.86);
  font-weight: 600;
  text-shadow:
    0 2px 14px rgba(3, 4, 6, 1),
    0 0 18px rgba(3, 4, 6, 0.92);
}
html.has-three-hero .eyebrow {
  justify-content: center;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}
html.has-three-hero .hero-actions,
html.has-three-hero .hero-meta {
  justify-content: center;
}
html.has-three-hero .hero-meta {
  max-width: 760px;
  margin-inline: auto;
}
html.has-three-hero .cta-note {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}
html.has-three-hero .hero-meta li {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
}
html.has-three-hero .hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: calc(100vw + var(--spine-gutter));
  left: calc(-1 * var(--spine-gutter));
  right: auto;
  min-height: 100%;
  display: block;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}
html.has-three-hero .three-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(1.28) contrast(1.1);
}
html.has-three-hero .hero-visual::before {
  content: none;
  display: none;
}
html.has-three-hero .orbital-system,
html.has-three-hero .mission-readout {
  display: none;
}

@media (max-width: 700px) {
  html.has-three-hero .hero {
    min-height: calc(100svh - 67px);
  }
  html.has-three-hero .hero-grid {
    min-height: calc(100svh - 67px);
    padding-inline: 20px;
    padding-top: 54px;
    padding-bottom: 42px;
  }
  html.has-three-hero .hero-copy {
    padding-top: clamp(40px, 8vh, 72px);
  }
  html.has-three-hero .hero-title {
    font-size: clamp(2.75rem, 9.6vw, 3.85rem);
    max-width: 11.4ch;
  }
  html.has-three-hero .hero-sub {
    max-width: 32ch;
    font-size: 1.02rem;
  }
  html.has-three-hero .hero-actions {
    margin-top: 28px;
  }
  html.has-three-hero .cta-note {
    max-width: 34ch;
  }
}
