:root {
  --ink: #091419;
  --ink-soft: #314047;
  --paper: #ffffff;
  --mist: #eef2ef;
  --line: #cbd3d0;
  --signal: #b7f34a;
  --signal-dark: #668f13;
  --header-height: 82px;
  --page-pad: clamp(24px, 5vw, 84px);
  --measure: 92rem;
  color-scheme: light;
  font-family: "Segoe UI Variable Display", "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 280px;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 4px solid var(--signal); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  min-height: 44px;
  padding: 11px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  padding: max(12px, env(safe-area-inset-top)) max(var(--page-pad), env(safe-area-inset-right)) 12px max(var(--page-pad), env(safe-area-inset-left));
  border-bottom: 1px solid rgba(9, 20, 25, 0.13);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  text-decoration: none;
}

.brand img { width: 48px; height: 34px; }
.brand__words { display: grid; line-height: 1; }
.brand__words strong { font-size: 1.06rem; font-weight: 900; letter-spacing: -0.04em; }
.brand__words small { margin-top: 5px; color: #526167; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }

.site-nav {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: clamp(14px, 2.3vw, 38px);
  min-width: 0;
  max-width: 100%;
}

.site-nav a {
  position: relative;
  min-height: 44px;
  padding: 11px 0;
  color: var(--ink-soft);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 3px;
  background: var(--signal);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }

.header-action,
.primary-action,
.text-action,
.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-weight: 850;
}

.header-action {
  padding: 12px 0;
  border-bottom: 3px solid var(--signal);
  text-decoration: none;
}

.primary-action {
  gap: 24px;
  padding: 13px 20px;
  border: 2px solid var(--ink);
  background: var(--signal);
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.primary-action:hover { box-shadow: 2px 2px 0 var(--ink); transform: translate(4px, 4px); }
.text-action, .card-action { gap: 18px; border-bottom: 3px solid var(--signal); text-decoration: none; }

.chapter-rail {
  position: fixed;
  top: 50%;
  right: max(18px, env(safe-area-inset-right));
  z-index: 24;
  transform: translateY(-50%);
}

.chapter-rail ol { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.chapter-rail a { display: grid; grid-template-columns: 28px 20px; align-items: center; min-width: 48px; min-height: 44px; color: #5e6e74; font-size: 0.61rem; font-weight: 850; text-decoration: none; }
.chapter-rail i { display: block; width: 8px; height: 8px; border: 1px solid currentColor; background: var(--paper); transition: 180ms ease; }
.chapter-rail a[aria-current="step"] { color: var(--ink); }
.chapter-rail a[aria-current="step"] i { width: 17px; height: 17px; border-color: var(--ink); background: var(--signal); transform: rotate(45deg); }

.flow-stage {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 2;
  overflow: hidden;
  contain: strict;
  pointer-events: none;
}

.flow-stage svg { width: 100%; height: 100%; overflow: hidden; }
.flow-shadow, .flow-core { fill: none; stroke-linecap: square; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.flow-shadow { stroke: rgba(9, 20, 25, 0.07); stroke-width: 32px; }
.flow-core { stroke: var(--ink); stroke-width: 9px; }
.flow-gate rect:first-child { fill: var(--signal); stroke: var(--ink); stroke-width: 7px; vector-effect: non-scaling-stroke; }
.flow-gate__echo { fill: none; stroke: var(--signal); stroke-width: 3px; opacity: 0.5; vector-effect: non-scaling-stroke; animation: gate-breathe 2.8s ease-in-out infinite; }
.flow-gate__echo--two { animation-delay: 480ms; }

@keyframes gate-breathe {
  0%, 100% { opacity: 0.1; transform: scale(0.85); }
  50% { opacity: 0.55; transform: scale(1); }
}

main { position: relative; z-index: 4; }

.chapter {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: max(720px, 100svh);
  padding: calc(var(--header-height) + 60px) calc(var(--page-pad) + 58px) 80px var(--page-pad);
  isolation: isolate;
}

.chapter:not(:first-child) {
  content-visibility: auto;
  contain-intrinsic-size: auto max(720px, 100svh);
}

.chapter__content { width: min(100%, var(--measure)); min-width: 0; margin-inline: auto; }
.flow-clear-zone {
  --clear-zone: var(--paper);
  position: relative;
  z-index: 5;
  background: var(--clear-zone);
  box-shadow: 0 0 24px 18px var(--clear-zone);
}
.chapter--pigmetric .flow-clear-zone,
.chapter--proof .flow-clear-zone,
.ai-team.flow-clear-zone { --clear-zone: var(--ink); }
.chapter h1, .chapter h2 { max-width: 13ch; margin: 0; padding-block: 0.18em; font-size: clamp(3.25rem, 8.5vw, 8.8rem); font-weight: 900; letter-spacing: -0.075em; line-height: 1.06; overflow: visible; overflow-wrap: normal; word-break: normal; hyphens: none; text-wrap: balance; }
.chapter h2 { font-size: clamp(2.9rem, 6.4vw, 6.8rem); }
.chapter h3, .chapter h4 { margin: 0; padding-block: 0.18em; overflow: visible; overflow-wrap: normal; word-break: normal; hyphens: none; }
.heading-line { display: block; }

.chapter-label { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; color: var(--ink-soft); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.18em; text-transform: uppercase; }
.chapter-label span { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; border: 1px solid var(--ink); background: var(--paper); }
.chapter-label--light { color: #c9d3d6; }
.chapter-label--light span { border-color: #c9d3d6; background: transparent; }
.chapter-lede, .section-intro { max-width: 42rem; color: var(--ink-soft); font-size: clamp(1.05rem, 1.7vw, 1.36rem); }
.section-intro { margin: 24px 0 0; }
.signal-dot { color: var(--signal-dark); }

.js .chapter__content > * { opacity: 0; transform: translateY(20px); transition: opacity 500ms ease, transform 500ms ease; }
.js .chapter.is-seen .chapter__content > * { opacity: 1; transform: none; }
.js .chapter.is-seen .chapter__content > *:nth-child(2) { transition-delay: 70ms; }

.chapter--hero { min-height: max(760px, 100svh); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); align-items: center; gap: clamp(40px, 7vw, 120px); }
.hero-copy { position: relative; z-index: 5; background: rgba(255,255,255,0.96); box-shadow: 0 0 38px 30px rgba(255,255,255,0.96); }
.hero-copy h1 { max-width: 9ch; }
.hero-copy .chapter-lede { max-width: 39rem; margin: 28px 0; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.candidate-note { max-width: 42rem; margin: 30px 0 0; color: #526167; font-size: 0.83rem; font-weight: 700; }
.candidate-note span { color: var(--signal-dark); }
.hero-route { position: relative; min-height: 420px; visibility: hidden; }
.hero-route span { position: absolute; top: 45%; right: -24%; left: -12%; height: 50px; background: var(--ink); transform: skewY(-29deg); }
.hero-route i { position: absolute; top: 48%; left: 40%; width: 88px; height: 88px; border: 18px solid var(--signal); transform: rotate(45deg); }
.scroll-cue { position: absolute; right: calc(var(--page-pad) + 70px); bottom: 30px; margin: 0; color: #5e6e74; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.chapter--products { background: var(--paper); }
.section-heading--split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: end; }
.boundary-note { max-width: 31rem; margin: 0 0 12px; padding-left: 26px; border-left: 2px solid var(--ink); color: var(--ink-soft); }
.product-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; margin-top: 48px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.product-card { position: relative; display: grid; align-content: start; min-width: 0; min-height: 390px; padding: clamp(28px, 4vw, 52px); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: rgba(255,255,255,0.96); }
.product-card--signal { box-shadow: inset 0 4px 0 var(--signal); }
.product-status, .role-number, .product-boundary { margin: 0 0 18px; color: #526167; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.product-card h3 { font-size: clamp(2.5rem, 4vw, 4.4rem); font-weight: 900; letter-spacing: -0.06em; overflow-wrap: normal; word-break: normal; hyphens: none; }
.product-card > p:not(.product-status) { max-width: 40rem; font-size: 1.1rem; }
.feature-strip { display: flex; flex-wrap: wrap; gap: 0; margin: auto 0 24px; padding: 25px 0 0; list-style: none; }
.feature-strip li { max-width: 100%; padding: 3px 16px; border-right: 1px solid var(--ink); font-size: 0.69rem; font-weight: 850; letter-spacing: 0.09em; overflow-wrap: normal; word-break: normal; hyphens: none; text-transform: uppercase; }
.feature-strip li:first-child { padding-left: 0; }
.feature-strip li:last-child { border: 0; }
.card-action { justify-self: start; }

.role-layout { display: grid; grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.35fr); border: 1px solid var(--line); background: rgba(255,255,255,0.96); }
.role-heading { padding: clamp(28px, 4vw, 54px); border-right: 1px solid var(--line); }
.role-heading h2 { font-size: clamp(2.7rem, 4.2vw, 5.3rem); }
.role-explorer { min-width: 0; }
.role-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 8px solid var(--ink); }
.role-tabs button { min-height: 108px; padding: 18px 10px; border: 0; border-right: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font-weight: 800; }
.role-tabs button:last-child { border-right: 0; }
.role-tabs button[aria-selected="true"] { box-shadow: inset 0 0 0 3px var(--signal); color: var(--signal-dark); }
.role-panels { min-height: 390px; }
.role-panel { padding: clamp(34px, 6vw, 78px); }
.role-panel[hidden] { display: none; }
.role-panel h3 { max-width: 25ch; font-size: clamp(2rem, 3.5vw, 4.1rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1.02; }

.route-layout, .pigmetric-layout, .company-layout, .proof-layout, .opening-layout { display: grid; grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.55fr); gap: clamp(40px, 6vw, 92px); align-items: center; }
.route-layout, .pigmetric-layout, .company-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route-layout h2, .company-layout h2 { max-width: none; font-size: clamp(2.75rem, 3.5vw, 4.7rem); line-height: 1.02; }
.company-stack { display: grid; gap: clamp(48px, 7vw, 96px); }
.company-layout { align-items: end; }
.route-kicker { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 3rem); font-weight: 900; letter-spacing: -0.05em; }
.human-team, .ai-team, .company-route { display: grid; gap: 28px; }
.subsection-heading { display: grid; grid-template-columns: minmax(150px, 0.38fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.subsection-heading h3, .company-route > h3, .agency-evidence > h3 { font-size: clamp(1.8rem, 3.4vw, 3.8rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.human-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.person-card { display: grid; grid-template-rows: minmax(240px, 34vw) 1fr; min-width: 0; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: rgba(255,255,255,0.96); }
.person-card img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 24%; border-bottom: 1px solid var(--ink); }
.person-card--founder img { object-position: center 30%; }
.person-card > div { padding: clamp(22px, 3vw, 36px); }
.person-card h4 { font-size: clamp(1.35rem, 2.2vw, 2.4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.person-card p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.person-type { margin: 0 0 14px; color: var(--signal-dark); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.ai-team { padding: clamp(28px, 4vw, 52px); background: var(--ink); color: var(--paper); }
.ai-team .product-status { color: #c9d3d6; }
.ai-team-boundary { max-width: 68rem; margin: 0; padding: 18px 20px; border-left: 5px solid var(--signal); background: #17252b; }
.ai-role-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid #536167; border-left: 1px solid #536167; list-style: none; }
.ai-role-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 18px; min-width: 0; min-height: 144px; padding: 18px; border-right: 1px solid #536167; border-bottom: 1px solid #536167; }
.ai-role-list img { width: 96px; height: 96px; object-fit: cover; border: 1px solid #718087; background: #17252b; }
.ai-role-list h4 { margin: 0; color: var(--paper); font-size: 1.06rem; font-weight: 900; letter-spacing: -0.025em; line-height: 1.08; }
.ai-role-list p { margin: 7px 0 0; color: #d7dfe1; font-size: 0.82rem; font-weight: 700; }
.ai-role-list small { display: block; margin-top: 10px; color: #aebbbf; font-size: 0.7rem; line-height: 1.35; }
.company-route { padding-bottom: 24px; }

@media (min-width: 1121px) {
  .chapter--company { min-height: auto; padding-bottom: 48px; }
  .company-stack { gap: clamp(36px, 4.5vw, 68px); }
  .company-route { padding-bottom: 0; }
}

.process-steps { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.process-steps::before { position: absolute; top: 51px; right: 3%; left: 3%; z-index: -1; height: 7px; background: var(--ink); content: ""; }
.process-steps--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.process-steps--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.process-steps--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-steps button { width: 100%; min-height: 150px; padding: 8px 7px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: center; }
.process-steps button span { display: block; margin-bottom: 16px; font-size: 0.67rem; font-weight: 800; }
.process-steps button strong { display: inline-block; padding: 4px 7px; border-inline: 1px solid var(--ink); background: var(--paper); font-size: clamp(1.1rem, 1.9vw, 2rem); font-weight: 900; letter-spacing: -0.05em; text-transform: uppercase; }
.process-steps button small { display: block; margin-top: 18px; font-size: 0.72rem; }
.process-steps button[aria-pressed="true"] strong { border-color: var(--signal-dark); background: var(--signal); }
.step-detail { min-height: 52px; margin: 22px 0 0; padding: 14px 18px; border-left: 4px solid var(--signal); background: var(--mist); font-weight: 700; }

.chapter--pigmetric { background: var(--ink); color: var(--paper); }
.chapter--pigmetric .chapter-label, .chapter--pigmetric .section-intro { color: #c9d3d6; }
.chapter--pigmetric .chapter-label span { border-color: #c9d3d6; background: transparent; }
.pigmetric-layout { align-items: start; }
.pigmetric-layout h2 { max-width: none; font-size: clamp(2.85rem, 3.8vw, 5rem); line-height: 1.02; }
.role-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 35px 0 0; padding: 0; list-style: none; color: #c9d3d6; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.role-key span { color: var(--signal); }
.process-steps--dark::before { background: var(--paper); }
.process-steps--dark button { color: var(--paper); }
.process-steps--dark button strong { border-color: var(--paper); background: var(--ink); }
.process-steps--dark button[aria-pressed="true"] strong { border-color: var(--signal); background: var(--signal); color: var(--ink); }
.step-detail--dark { background: #17252b; }
.product-boundary { margin-top: 28px; color: #c9d3d6; }

.chapter--proof { min-height: max(620px, 80svh); background: var(--ink); color: var(--paper); }
.chapter--proof::after { display: none; content: ""; }
.proof-layout { grid-template-columns: minmax(0, 0.86fr) 14px minmax(0, 1.14fr); gap: clamp(34px, 4vw, 64px); }
.proof-divider { align-self: stretch; width: 14px; min-height: 420px; background: var(--signal); }
.proof-layout h2 { color: var(--paper); font-size: clamp(3rem, 4.8vw, 5.5rem); }
.proof-list { display: grid; gap: 26px; margin: 0; padding: 0; list-style: none; }
.proof-list li { position: relative; padding-left: 68px; font-size: clamp(1.05rem, 1.8vw, 1.4rem); }
.proof-list li::before { position: absolute; top: 0.7em; left: 0; width: 38px; height: 3px; background: var(--signal); content: ""; }

.chapter--opening { align-items: start; min-height: auto; padding-bottom: 0; }
.opening-layout { grid-template-columns: minmax(440px, 0.95fr) minmax(0, 1.3fr); padding-bottom: 70px; }
.opening-layout h2 { max-width: 15ch; font-size: clamp(2.7rem, 4.4vw, 5.2rem); }
.opening-actions { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-top: 28px; }
.contact-status { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 32px; color: #526167; font-style: normal; }
.contact-status span { width: 100%; font-size: 0.69rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-status a { min-height: 44px; padding: 11px 0 7px; border-bottom: 3px solid var(--signal); color: var(--ink); font-weight: 850; text-decoration: none; }
.agency-evidence { width: min(100%, var(--measure)); margin: 0 auto; padding: 0 0 52px; }
.agency-evidence > h3 { margin-bottom: 28px; }
.agency-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.agency-card { display: grid; grid-template-columns: minmax(130px, 0.55fr) minmax(0, 1fr); align-items: center; gap: 24px; min-width: 0; padding: clamp(22px, 3vw, 38px); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.agency-card img { width: 100%; height: 150px; object-fit: contain; }
.agency-card h4 { font-size: clamp(1.35rem, 2.2vw, 2.3rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.agency-card p:last-child { color: var(--ink-soft); }
.evidence-state { margin: 0 0 12px; font-size: 0.69rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.evidence-state--verified { color: var(--signal-dark); }
.evidence-state--pending { color: #7b3d00; }
.agency-disclaimer { margin: 22px 0 0; padding: 18px 20px; border-left: 4px solid var(--signal); background: var(--mist); color: var(--ink-soft); }
.support-center { width: min(100%, var(--measure)); margin: 0 auto 52px; content-visibility: auto; contain: layout paint style; contain-intrinsic-size: auto 640px; }
.evidence-index { width: min(100%, var(--measure)); margin: 0 auto; padding: 28px 0 40px; border-top: 1px solid var(--ink); }
.evidence-index h3 { margin: 0 0 16px; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; }
.evidence-index dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.evidence-index dl div { padding-right: 24px; }
.evidence-index dt { font-weight: 900; }
.evidence-index dd { margin: 7px 0 0; color: var(--ink-soft); }

.site-footer { position: relative; z-index: 5; display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; min-height: 132px; padding: 28px var(--page-pad); border-top: 1px solid var(--line); background: var(--paper); }
.site-footer p { justify-self: center; max-width: 50rem; color: #526167; text-align: center; }
.brand--footer img { width: 40px; height: 28px; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: auto auto; }
  .site-nav { order: 3; grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; }
  .header-action { justify-self: end; }
  :root { --header-height: 126px; }
  .hero-grid, .role-layout, .route-layout, .pigmetric-layout, .company-layout, .opening-layout { grid-template-columns: 1fr; }
  .proof-layout { grid-template-columns: minmax(0, 1fr) 10px; }
  .proof-layout > div, .proof-list { grid-column: 1; }
  .proof-divider { grid-column: 2; grid-row: 1 / span 2; width: 10px; min-height: 100%; }
  .human-team-grid, .ai-role-list { grid-template-columns: 1fr; }
  .person-card { grid-template-rows: minmax(280px, 68vw) 1fr; }
  .agency-grid { grid-template-columns: 1fr; }
  .hero-route { position: absolute; inset: auto -10% 0 46%; opacity: 0.82; }
  .role-heading { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (min-width: 761px) {
  .heading-line { white-space: nowrap; }
  .process-steps--six button strong { font-size: clamp(0.82rem, 1.1vw, 1.05rem); letter-spacing: -0.03em; }
}

@media (max-width: 760px) {
  :root { --header-height: 116px; --page-pad: 20px; }
  .site-header { grid-template-columns: minmax(0, 1fr) auto; overflow: hidden; padding-inline: var(--page-pad); }
  .site-nav { gap: 4px; overflow-x: auto; justify-content: start; scrollbar-width: none; }
  .site-nav a { flex: 0 0 auto; padding-inline: 10px; font-size: 0.65rem; }
  .brand__words small, .header-action { display: none; }
  .chapter { min-height: max(680px, 100svh); padding: calc(var(--header-height) + 94px) var(--page-pad) 70px; }
  .chapter h1 { font-size: min(17vw, 5.2rem); }
  .chapter h2 { font-size: min(13vw, 4.7rem); }
  .chapter h3 { font-size: min(9vw, 2.4rem); }
  .chapter h4 { font-size: min(7vw, 1.65rem); }
  .chapter-rail { top: var(--header-height); right: 0; bottom: auto; left: 0; z-index: 29; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--paper); transform: none; scrollbar-width: thin; }
  .chapter-rail ol { display: flex; width: max-content; min-width: 100%; gap: 0; padding: 4px 8px; background: var(--paper); }
  .chapter-rail a { flex: 1 0 44px; grid-template-columns: 1fr; place-items: center; min-width: 44px; }
  .chapter-rail a span { display: none; }
  .flow-stage { inset: calc(var(--header-height) + 53px) 0 auto; height: 80px; opacity: 0.28; }
  .hero-grid, .section-heading--split, .product-pair { grid-template-columns: 1fr; }
  .hero-route { display: none; }
  .scroll-cue { display: none; }
  .boundary-note { margin-top: 22px; }
  .product-pair { border-top: 1px solid var(--ink); }
  .product-card { min-height: 360px; }
  .role-tabs { grid-template-columns: repeat(2, 1fr); }
  .role-tabs button { min-height: 74px; }
  .role-panel { min-height: 360px; }
  .process-steps--six, .process-steps--five, .process-steps--four { grid-template-columns: 1fr; }
  .process-steps::before { top: 4%; bottom: 4%; left: 38px; width: 7px; height: auto; }
  .process-steps button { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; align-items: center; min-height: 92px; padding: 8px 0; text-align: left; }
  .process-steps button span { grid-row: 1 / 3; margin: 0; text-align: center; }
  .process-steps button strong { justify-self: start; }
  .process-steps button small { margin-top: 5px; padding-left: 7px; }
  .role-key, .evidence-index dl { grid-template-columns: 1fr; }
  .proof-layout { position: relative; display: block; padding-right: 24px; }
  .proof-layout > div { margin-bottom: 42px; }
  .proof-divider { position: absolute; top: 0; right: 0; bottom: 0; width: 8px; min-height: 100%; }
  .proof-list li { padding-left: 52px; font-size: min(5.2vw, 1.25rem); }
  .subsection-heading { grid-template-columns: 1fr; }
  .ai-team { padding-inline: 20px; }
  .ai-role-list li { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .ai-role-list img { width: 72px; height: 72px; }
  .ai-role-list h4 { font-size: min(1.06rem, 6vw); }
  .agency-card { grid-template-columns: 1fr; }
  .agency-card img { height: 120px; }
  .role-key { gap: 15px; }
  .evidence-index dl { gap: 16px; }
  .site-footer { grid-template-columns: 1fr; padding-bottom: 32px; text-align: left; }
  .site-footer p { justify-self: start; text-align: left; }
}

@media (max-width: 390px) {
  .chapter { padding-inline: 16px; }
  .site-header { padding-inline: 16px; }
  .chapter-rail { right: 0; left: 0; }
  .action-row, .opening-actions { align-items: stretch; flex-direction: column; }
  .primary-action, .text-action { width: 100%; }
  .feature-strip li { padding-inline: 8px; font-size: 0.61rem; }
  .chapter--company h2, .chapter--opening h2 { font-size: clamp(2.25rem, 11.8vw, 3.8rem); letter-spacing: -0.06em; }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-height: 68px; }
  .site-header { grid-template-columns: auto 1fr auto; min-height: 68px; padding-block: 8px; }
  .site-nav { order: initial; grid-column: auto; }
  .site-nav a { font-size: 0.58rem; }
  .chapter { min-height: 620px; padding-top: 105px; }
  .chapter h1 { font-size: 4rem; }
  .chapter h2 { font-size: 3.5rem; }
  .chapter-rail { display: none; }
}

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

@media (forced-colors: active) {
  .flow-stage, .hero-route, .chapter--proof::after { display: none; }
  .primary-action, .role-tabs button[aria-selected="true"], .process-steps button[aria-pressed="true"] strong { border: 2px solid ButtonText; background: ButtonFace; color: ButtonText; box-shadow: none; }
}

@media print {
  .site-header, .chapter-rail, .flow-stage, .scroll-cue { display: none; }
  .chapter { min-height: auto; break-inside: avoid; padding: 36px 0; content-visibility: visible; contain-intrinsic-size: none; }
  .js .chapter__content > * { opacity: 1; transform: none; }
  .chapter--pigmetric, .chapter--proof { background: var(--paper); color: var(--ink); }
  .site-footer { padding-inline: 0; }
}

.error-page {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

.error-page .site-header {
  position: static;
}

.error-main {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: clamp(2rem, 7vw, 7rem) var(--page-pad);
}

.error-card {
  width: min(52rem, 100%);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 5vw, 4rem);
  background: var(--paper);
}

.error-card h1 {
  max-width: 10ch;
  margin: 1.5rem 0;
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.95;
}

.error-card > p:not(.chapter-label) {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}
