@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/pt-serif-regular.ttf") format("truetype");
}


/* Structured field-manual renderer --------------------------------------- */

.generated-manual .reading-column > ul,
.generated-manual .reading-column > ol {
  margin: 24px 0;
  padding-left: 24px;
}

.generated-manual .reading-column > ul li,
.generated-manual .reading-column > ol li {
  margin: 10px 0;
  padding-left: 6px;
  color: var(--muted);
  line-height: 1.65;
}

.manual-visual {
  margin: 42px 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.manual-visual figcaption {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 700 11px/1.2 var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.manual-visual-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.manual-visual-items > div {
  min-height: 150px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.manual-visual-items > div:last-child {
  border-right: 0;
}

.manual-visual-items span,
.manual-fork-branch > span {
  display: block;
  margin-bottom: 30px;
  color: var(--accent);
  font: 700 10px/1 var(--sans);
  letter-spacing: 0.12em;
}

.manual-visual-items strong,
.manual-fork-branch strong {
  display: block;
  color: var(--ink);
  font: 700 17px/1.15 var(--serif);
}

.manual-visual-items p,
.manual-fork-branch p {
  margin: 10px 0 0;
  color: var(--muted);
  font: 400 13px/1.55 var(--sans);
}

.visual-source {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 700 9px/1.4 var(--sans);
  letter-spacing: 0.1em;
}

.manual-fork-point {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  font: 700 16px/1.25 var(--serif);
  text-align: center;
}

.manual-fork-branches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.manual-fork-branch {
  min-height: 220px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manual-fork-branch:nth-child(2n) {
  border-right: 0;
}

.manual-fork-branch small,
.manual-fork-branch b {
  display: block;
  margin-top: 16px;
  font: 700 10px/1.45 var(--sans);
  letter-spacing: 0.05em;
}

.manual-fork-branch b {
  color: var(--accent);
}

.manual-equation > div {
  display: flex;
  align-items: stretch;
}

.manual-equation > div span {
  flex: 1;
  padding: 28px 16px;
  color: var(--ink);
  font: 700 16px/1.25 var(--serif);
  text-align: center;
}

.manual-equation > div i {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-style: normal;
}

.manual-table {
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.manual-table table {
  width: 100%;
  border-collapse: collapse;
}

.manual-table th,
.manual-table td {
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.manual-table th {
  color: var(--ink);
  font: 700 10px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.manual-table td {
  color: var(--muted);
  font: 400 13px/1.5 var(--sans);
}

@media (max-width: 700px) {
  .manual-fork-branches,
  .manual-visual-items {
    grid-template-columns: 1fr;
  }

  .manual-visual-items > div,
  .manual-fork-branch,
  .manual-fork-branch:nth-child(2n) {
    border-right: 0;
  }

  .manual-equation > div {
    flex-direction: column;
  }

  .manual-equation > div i {
    min-height: 30px;
    transform: rotate(90deg);
  }
}

@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/pt-serif-bold.ttf") format("truetype");
}

:root {
  --paper: #f3f1eb;
  --paper-solid: #f7f5ef;
  --ink: #151713;
  --graphite: #464a44;
  --quiet: #686d65;
  --line: #c6c9c0;
  --line-dark: #a6aaa0;
  --faint: #e4e3dc;
  --accent: #ad4d32;
  --accent-soft: #d8b3a4;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--paper-solid);
  background: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.side-index {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 248px;
  flex-direction: column;
  padding: 30px 27px 25px;
  border-right: 1px solid var(--line-dark);
  background:
    linear-gradient(90deg, transparent calc(100% - 5px), rgba(21, 23, 19, 0.035) calc(100% - 5px)),
    rgba(243, 241, 235, 0.98);
}

.side-index::before,
.side-index::after {
  position: absolute;
  right: -4px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.side-index::before {
  top: 16px;
}

.side-index::after {
  bottom: 16px;
}

.wordmark,
.mobile-wordmark,
.footer-mark {
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark em,
.mobile-wordmark em {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 0.72em;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.signal-dot,
.accent {
  color: var(--accent) !important;
}

.side-deck {
  max-width: 175px;
  margin: 39px 0 46px;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.side-index nav {
  display: grid;
  gap: 1px;
}

.side-index nav a {
  display: grid;
  min-height: 34px;
  grid-template-columns: 32px 1fr;
  align-items: center;
  color: var(--graphite);
  font-size: 13px;
  transition: color 150ms ease, padding 150ms ease, background 150ms ease;
}

.side-index nav a span {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 10px;
}

.side-index nav a:hover,
.side-index nav a:focus-visible {
  padding-left: 5px;
  color: var(--accent);
  background: rgba(173, 77, 50, 0.05);
}

.side-meta {
  display: grid;
  gap: 5px;
  margin-top: auto;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.035em;
}

main {
  min-width: 0;
  margin-left: 248px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(243, 241, 235, 0.94);
  backdrop-filter: blur(12px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.breadcrumbs span:last-child {
  color: var(--ink);
}

.index-link {
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 11px;
}

.mobile-wordmark {
  display: none;
}

article {
  width: min(1180px, calc(100vw - 248px));
  margin: 0 auto;
  border-right: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(98, 104, 94, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 104, 94, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

.hero,
.chapter,
footer {
  background: rgba(243, 241, 235, 0.975);
}

.hero {
  position: relative;
  min-height: 950px;
  padding: 108px 56px 52px;
  border-bottom: 1px solid var(--line-dark);
  text-align: center;
}

.hero::before,
.hero::after {
  position: absolute;
  top: 21px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 46%, var(--line-dark) 47% 53%, transparent 54%),
    var(--paper);
  content: "";
}

.hero::before {
  left: 21px;
}

.hero::after {
  right: 21px;
}

.hero-meta,
.eyebrow,
.hero-source,
.section-label,
.panel-heading,
.panel-caption,
.failure-grid span,
.case-file header,
.case-facts,
.inspection-note span,
.final-note span,
.sources-note {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.065em;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--quiet);
}

.eyebrow {
  margin: 75px 0 19px;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(50px, 5.4vw, 82px);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.standfirst {
  max-width: 780px;
  margin: 31px auto 0;
  color: var(--graphite);
  font-size: 18px;
  line-height: 1.68;
}

.funding-machine {
  display: grid;
  max-width: 980px;
  grid-template-columns: 1fr 0.78fr 1.25fr 0.78fr 1fr;
  align-items: center;
  margin: 78px auto 0;
}

.machine-port,
.machine-core {
  position: relative;
  display: flex;
  min-height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  background: var(--paper-solid);
}

.machine-port::before,
.machine-port::after,
.machine-core::before,
.machine-core::after {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  content: "";
}

.machine-port::before,
.machine-core::before {
  top: 7px;
  left: 7px;
}

.machine-port::after,
.machine-core::after {
  right: 7px;
  bottom: 7px;
}

.machine-port > span,
.machine-core > span,
.machine-port small,
.machine-core small,
.machine-rail span {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.machine-port > span,
.machine-core > span {
  position: absolute;
  top: 10px;
  left: 12px;
}

.machine-port strong,
.machine-core strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.machine-port small,
.machine-core small {
  margin-top: 6px;
}

.machine-core {
  min-height: 148px;
  border: 1px solid var(--accent);
  box-shadow: inset 0 0 0 5px rgba(173, 77, 50, 0.035);
}

.core-grid {
  display: grid;
  width: 56px;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 8px 0;
}

.core-grid i {
  height: 5px;
  background: var(--accent);
}

.machine-rail {
  display: grid;
  align-items: center;
  gap: 6px;
}

.machine-rail i {
  position: relative;
  display: block;
  height: 8px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 10px);
}

.machine-rail i::after {
  position: absolute;
  top: -4px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--graphite);
  border-right: 1px solid var(--graphite);
  content: "";
  transform: rotate(45deg);
}

.hazard i {
  border-color: var(--accent);
  background: repeating-linear-gradient(135deg, var(--accent-soft) 0 5px, transparent 5px 10px);
}

.output-port {
  border-color: var(--accent);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 70px;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
  text-align: left;
}

.hero-stats > div {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.hero-stats span,
.hero-stats small {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.hero-stats strong {
  font-size: 29px;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.hero-source {
  margin: 16px 0 0;
  color: var(--quiet);
  text-align: right;
}

.chapter {
  position: relative;
  padding: 100px 56px 118px;
  border-bottom: 1px solid var(--line-dark);
  scroll-margin-top: 68px;
}

.section-label {
  display: grid;
  grid-template-columns: 46px 1fr;
  margin-bottom: 70px;
  color: var(--quiet);
}

.section-label span:first-child {
  color: var(--accent);
}

.reading-column {
  max-width: 710px;
  margin: 0 auto;
}

.reading-column p {
  margin-bottom: 25px;
  color: #333630;
  font-size: 17px;
  line-height: 1.82;
}

.reading-column h2 {
  margin-bottom: 38px;
  font-size: clamp(31px, 3vw, 44px);
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.reading-column h3 {
  margin: 58px 0 22px;
  font-size: 23px;
  font-weight: 560;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.drop-intro::first-letter {
  color: var(--accent);
  font-size: 43px;
  font-weight: 600;
  line-height: 0;
}

.cite {
  margin-left: 3px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 11px;
}

.inspection-note,
.final-note {
  position: relative;
  display: grid;
  max-width: 710px;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  margin: 58px auto 0;
  padding: 24px 0;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.inspection-note::before,
.final-note::before {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--accent);
  content: "";
}

.inspection-note span,
.final-note span {
  color: var(--accent);
}

.inspection-note p,
.final-note p {
  margin: 0;
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.7;
}

.gate-diagram,
.proof-stack,
.process-line,
.no-decoder,
.repair-grid,
.verdict-equation {
  max-width: 980px;
  margin: 74px auto;
  border: 1px solid var(--line-dark);
  background: var(--paper-solid);
}

.panel-heading {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--quiet);
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(21, 23, 19, 0.025) 10px 11px);
}

.panel-caption {
  margin: 0;
  padding: 15px 16px 17px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  line-height: 1.7;
}

.gate-row {
  display: grid;
  min-height: 66px;
  grid-template-columns: 70px 160px 1fr 28px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.gate-row > span {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 10px;
}

.gate-row strong {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.gate-row p {
  margin: 0;
  color: var(--quiet);
  font-size: 14px;
}

.gate-row i {
  width: 13px;
  height: 13px;
  justify-self: end;
  border: 1px solid var(--line-dark);
  background: linear-gradient(135deg, transparent 45%, var(--accent) 46% 55%, transparent 56%);
}

.proof-row {
  display: grid;
  min-height: 88px;
  grid-template-columns: 70px minmax(260px, 1fr) minmax(170px, 0.7fr) 38px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}

.proof-row > span,
.proof-row > b {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
}

.proof-row strong {
  font-size: 15px;
  font-weight: 600;
}

.proof-row p {
  margin: 4px 0 0;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.5;
}

.proof-meter {
  height: 14px;
  border: 1px solid var(--line-dark);
  background: repeating-linear-gradient(90deg, transparent 0 9px, var(--line) 9px 10px);
}

.proof-meter i {
  display: block;
  height: 100%;
  background: var(--ink);
}

.proof-row:first-of-type .proof-meter i {
  background: var(--accent);
}

.failure-list {
  max-width: 980px;
  margin: 72px auto 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.failure-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-dark);
}

.failure-no {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 12px;
}

.failure-body h3 {
  margin: -5px 0 28px;
  font-size: 23px;
  font-weight: 580;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.failure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.failure-grid > div {
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.failure-grid span {
  color: var(--quiet);
}

.failure-grid p {
  margin: 10px 0 0;
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.72;
}

.case-files {
  display: grid;
  max-width: 980px;
  gap: 28px;
  margin: 75px auto;
}

.case-file {
  position: relative;
  border: 1px solid var(--line-dark);
  background: var(--paper-solid);
}

.case-file::before,
.case-file::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.case-file::before {
  top: 8px;
  right: 8px;
}

.case-file::after {
  right: 8px;
  bottom: 8px;
}

.case-file header {
  display: grid;
  min-height: 52px;
  grid-template-columns: 70px 150px 1fr;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-dark);
}

.case-file header > span {
  color: var(--accent);
}

.case-file header strong {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.case-file header small {
  color: var(--quiet);
  font-size: 10px;
  text-align: right;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-dark);
}

.case-facts span {
  min-height: 54px;
  padding: 17px 14px;
  border-right: 1px solid var(--line);
  color: var(--graphite);
  text-align: center;
}

.case-facts span:last-child {
  border-right: 0;
}

.case-copy {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 34px;
  padding: 30px 34px 34px;
}

.case-copy > p {
  margin: 0;
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.78;
}

.case-copy aside {
  padding: 17px;
  border-left: 3px solid var(--accent);
  background: rgba(173, 77, 50, 0.045);
}

.case-copy aside span {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.case-copy aside p {
  margin: 10px 0 0;
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.7;
}

.process-line {
  padding-bottom: 16px;
}

.process-step {
  display: grid;
  min-height: 78px;
  grid-template-columns: 54px 26px 1fr;
  align-items: center;
  padding: 0 24px;
}

.process-step > span {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 10px;
}

.process-step > i {
  position: relative;
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-solid);
}

.process-step > i::after {
  position: absolute;
  top: 10px;
  left: 4px;
  width: 1px;
  height: 68px;
  background: var(--line-dark);
  content: "";
}

.process-step:last-child > i {
  border-color: var(--accent);
  background: var(--accent);
}

.process-step:last-child > i::after {
  display: none;
}

.process-step > div {
  display: grid;
  min-height: 100%;
  grid-template-columns: 150px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.process-step:last-child > div {
  border-bottom: 0;
}

.process-step strong {
  font-size: 13px;
  letter-spacing: 0.05em;
}

.process-step p {
  margin: 0;
  color: var(--quiet);
  font-size: 14px;
}

.no-decoder {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.no-decoder .panel-heading {
  grid-column: 1 / -1;
}

.no-decoder > div:not(.panel-heading) {
  min-height: 122px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.no-decoder > div:nth-child(odd) {
  border-right: 0;
}

.no-decoder strong {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
}

.no-decoder p {
  margin: 10px 0 0;
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.65;
}

.repair-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.repair-grid > div {
  display: flex;
  min-height: 188px;
  flex-direction: column;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.repair-grid > div:nth-child(3n) {
  border-right: 0;
}

.repair-grid > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.repair-grid span {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 10px;
}

.repair-grid strong {
  margin-top: 27px;
  font-size: 16px;
  font-weight: 600;
}

.repair-grid p {
  margin: auto 0 0;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.65;
}

.verdict {
  padding-bottom: 100px;
}

.verdict-equation {
  display: grid;
  grid-template-columns: 1.2fr auto 1.4fr auto 1.4fr auto 1.2fr auto 1.2fr auto 1.35fr;
  align-items: stretch;
}

.verdict-equation > span {
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.verdict-equation small {
  color: var(--quiet);
  font-size: 8px;
}

.verdict-equation b {
  display: grid;
  min-width: 24px;
  place-items: center;
  color: var(--quiet);
  font-weight: 400;
}

.verdict-equation .equation-result {
  border-right: 0;
  color: var(--accent);
  background: rgba(173, 77, 50, 0.05);
}

.final-note {
  margin-top: 0;
}

.sources-note {
  max-width: 710px;
  margin: 0 auto 48px;
  color: var(--quiet);
  line-height: 1.75;
}

.source-list {
  max-width: 980px;
  margin: 0 auto;
  border-top: 1px solid var(--line-dark);
}

.source-list a {
  display: grid;
  min-height: 72px;
  grid-template-columns: 64px 1fr 190px 24px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  transition: color 150ms ease, padding 150ms ease, background 150ms ease;
}

.source-list a:hover,
.source-list a:focus-visible {
  padding-left: 7px;
  color: var(--accent);
  background: rgba(173, 77, 50, 0.035);
}

.source-list span,
.source-list small {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 10px;
}

.source-list strong {
  font-size: 14px;
  font-weight: 560;
}

.source-list b {
  font-weight: 400;
}

footer {
  display: grid;
  min-height: 168px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 56px;
}

footer p,
footer > a:last-child {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.04em;
}

footer > a:last-child {
  justify-self: end;
}

.manual-jump {
  display: grid;
  gap: 5px;
  margin-top: 28px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.manual-jump span {
  color: var(--quiet);
}

.manual-jump a {
  color: var(--accent);
}

.conflict-hero {
  min-height: 925px;
}

.conflict-machine {
  display: grid;
  max-width: 900px;
  grid-template-columns: 1fr 0.78fr 1fr;
  align-items: center;
  margin: 76px auto 0;
}

.founder-node,
.fault-chamber {
  position: relative;
  display: flex;
  min-height: 136px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-dark);
  background: var(--paper-solid);
}

.founder-node::before,
.founder-node::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.founder-node::before {
  top: 8px;
  left: 8px;
}

.founder-node::after {
  right: 8px;
  bottom: 8px;
}

.founder-node > span,
.fault-chamber > span {
  position: absolute;
  top: 11px;
  left: 13px;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.founder-node strong {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.founder-node small,
.fault-chamber small {
  margin-top: 8px;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.035em;
}

.founder-node-b {
  border-color: var(--accent);
}

.fault-chamber {
  min-height: 178px;
  border-right: 0;
  border-left: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(21, 23, 19, 0.035) 10px 11px),
    var(--paper);
}

.fault-chamber > span {
  right: 0;
  left: 0;
  color: var(--accent);
  text-align: center;
}

.fault-chamber i {
  position: relative;
  display: block;
  width: 3px;
  height: 75px;
  background: var(--accent);
  transform: rotate(7deg);
}

.fault-chamber i::before,
.fault-chamber i::after {
  position: absolute;
  left: -5px;
  width: 11px;
  height: 26px;
  border-right: 3px solid var(--accent);
  content: "";
  transform: skewX(-18deg);
}

.fault-chamber i::before {
  top: 3px;
}

.fault-chamber i::after {
  bottom: 3px;
  transform: skewX(18deg);
}

.conflict-telemetry,
.accord-grid,
.separation-sequence {
  max-width: 980px;
  margin: 74px auto;
  border: 1px solid var(--line-dark);
  background: var(--paper-solid);
}

.telemetry-row,
.accord-row,
.separation-step {
  display: grid;
  min-height: 76px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.telemetry-row {
  grid-template-columns: 72px 180px 1fr 24px;
}

.telemetry-row > span,
.accord-row > span,
.separation-step > span {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 10px;
}

.telemetry-row strong,
.accord-row strong,
.separation-step strong {
  font-size: 14px;
  font-weight: 600;
}

.telemetry-row p,
.accord-row p,
.separation-step p {
  margin: 0;
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.6;
}

.telemetry-row i {
  width: 11px;
  height: 11px;
  justify-self: end;
  border: 1px solid var(--line-dark);
  background: linear-gradient(135deg, transparent 45%, var(--accent) 46% 55%, transparent 56%);
}

.accord-row {
  grid-template-columns: 72px 190px 1fr;
}

.accord-row:last-child,
.separation-step:last-child {
  border-bottom: 0;
}

.separation-sequence {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.separation-sequence .panel-heading {
  grid-column: 1 / -1;
}

.separation-step {
  min-height: 118px;
  grid-template-columns: 50px 110px 1fr;
}

.separation-step:nth-child(even) {
  border-right: 1px solid var(--line);
}

.separation-step:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.conflict-equation {
  grid-template-columns: 1.2fr auto 1.2fr auto 1.1fr auto 1.1fr auto 1.1fr auto 1.35fr;
}

.next-manual {
  display: grid;
  min-height: 150px;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 56px;
  border-bottom: 1px solid var(--line-dark);
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(21, 23, 19, 0.025) 13px 14px),
    var(--paper-solid);
  transition: color 150ms ease, background 150ms ease;
}

.next-manual:hover,
.next-manual:focus-visible {
  color: var(--accent);
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(173, 77, 50, 0.045) 13px 14px),
    var(--paper-solid);
}

.next-manual span,
.next-manual b {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.next-manual strong {
  font-size: clamp(24px, 2.6vw, 37px);
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.next-manual b {
  color: var(--accent);
}

.ai-copy-panel {
  display: grid;
  min-height: 220px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
  align-items: center;
  gap: 56px;
  padding: 42px 56px;
  border-bottom: 1px solid var(--line-dark);
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(21, 23, 19, 0.025) 13px 14px),
    var(--paper-solid);
}

.ai-copy-copy > span {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.ai-copy-copy h2 {
  margin: 9px 0 10px;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.ai-copy-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--graphite);
  font-family: var(--serif);
  line-height: 1.65;
}

.ai-copy-actions {
  display: grid;
  gap: 10px;
}

.ai-copy-button {
  display: grid;
  width: 100%;
  min-height: 94px;
  align-content: center;
  gap: 2px;
  padding: 18px 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--paper-solid);
  background: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: color 150ms ease, background 150ms ease;
}

.ai-copy-button:hover {
  color: var(--ink);
  background: var(--paper-solid);
}

.ai-copy-button:disabled {
  cursor: wait;
}

.ai-copy-button span {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.055em;
}

.ai-copy-button small {
  color: var(--accent-soft);
  font-size: 9px;
  letter-spacing: 0.065em;
}

.ai-copy-button:hover small {
  color: var(--accent);
}

.ai-copy-status {
  min-height: 22px;
  margin: 0;
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.45;
}

.ai-copy-fallback {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--quiet);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.065em;
  text-align: left;
}

.ai-copy-fallback:hover,
.ai-copy-fallback:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.skill-installer {
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  overflow: auto;
}

.skill-installer::backdrop {
  background: rgba(21, 23, 19, 0.72);
  backdrop-filter: blur(3px);
}

.skill-installer [hidden] {
  display: none !important;
}

.skill-installer-shell {
  border: 1px solid var(--ink);
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(21, 23, 19, 0.025) 13px 14px),
    var(--paper-solid);
  box-shadow: 0 24px 80px rgba(21, 23, 19, 0.24);
}

.skill-installer header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--line-dark);
}

.skill-installer header span,
.skill-installer-instructions > span,
.skill-installer-scope-note {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.skill-installer header h2 {
  margin: 7px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.skill-installer-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-solid);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 25px;
  line-height: 1;
}

.skill-installer-close:hover,
.skill-installer-close:focus-visible {
  color: var(--paper-solid);
  background: var(--ink);
}

.skill-installer-scopes,
.skill-installer-tools {
  display: grid;
  border-bottom: 1px solid var(--line-dark);
}

.skill-installer-scopes {
  grid-template-columns: repeat(2, 1fr);
  padding: 16px 32px;
  gap: 8px;
}

.skill-installer-scope-note {
  margin: 0;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line-dark);
}

.skill-installer-scopes button,
.skill-installer-tools button {
  min-height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--quiet);
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.055em;
}

.skill-installer-scopes button[aria-pressed="true"],
.skill-installer-tools button[aria-pressed="true"],
.skill-installer-scopes button:hover,
.skill-installer-tools button:hover {
  color: var(--paper-solid);
  background: var(--ink);
}

.skill-installer-tools {
  grid-template-columns: repeat(6, 1fr);
}

.skill-installer-tools button {
  min-height: 58px;
  border-width: 0 1px 0 0;
}

.skill-installer-tools button:last-child {
  border-right: 0;
}

.skill-installer-instructions {
  display: grid;
  gap: 14px;
  padding: 32px;
}

.skill-installer-instructions h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.skill-installer-instructions > p {
  max-width: 650px;
  margin: 0;
  color: var(--graphite);
  font-family: var(--serif);
  line-height: 1.65;
}

.skill-installer-instructions code {
  display: block;
  max-height: 112px;
  padding: 14px 16px;
  border: 1px solid var(--line-dark);
  color: var(--graphite);
  background: rgba(21, 23, 19, 0.035);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.skill-installer-primary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--paper-solid);
  background: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.skill-installer-primary:hover,
.skill-installer-primary:focus-visible {
  color: var(--ink);
  background: var(--paper-solid);
}

.skill-installer-status {
  min-height: 18px;
  margin: 0;
  color: var(--accent);
  font-family: var(--sans) !important;
  font-size: 10px;
}

.skill-installer-instructions > small {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.ai-starter-prompts {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.ai-starter-prompts > span {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.ai-starter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ai-starter-prompt {
  display: grid;
  min-height: 84px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: 1.35;
  text-align: left;
  transition: color 150ms ease, background 150ms ease;
}

.ai-starter-prompt:hover,
.ai-starter-prompt:focus-visible {
  color: var(--paper-solid);
  background: var(--ink);
}

.ai-starter-prompt:disabled {
  cursor: wait;
}

.ai-starter-prompt small {
  color: var(--accent);
  font-size: 8px;
  letter-spacing: 0.065em;
  white-space: nowrap;
}

.ai-starter-status {
  min-height: 15px;
  margin: 0;
  color: var(--quiet);
  font-size: 10px;
}

[id^="io-"] {
  scroll-margin-top: 86px;
}

[id^="io-"]:target {
  outline: 2px solid var(--accent);
  outline-offset: 7px;
}

.home-side-index nav {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.index-register {
  display: grid;
  gap: 4px;
  margin-top: 25px;
  font-family: var(--sans);
  font-size: 10px;
}

.index-register > span {
  margin-bottom: 6px;
  color: var(--quiet);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.index-register a {
  display: grid;
  grid-template-columns: 32px 1fr;
  color: var(--graphite);
  transition: color 150ms ease, padding 150ms ease;
}

.index-register a:hover,
.index-register a:focus-visible {
  padding-left: 4px;
  color: var(--accent);
}

.index-register b {
  color: var(--accent);
  font-weight: 500;
}

.home-article {
  background-color: var(--paper);
}

.index-hero {
  position: relative;
  min-height: 770px;
  padding: 106px 56px 54px;
  border-bottom: 1px solid var(--line-dark);
  background:
    linear-gradient(rgba(243, 241, 235, 0.965), rgba(243, 241, 235, 0.965)),
    linear-gradient(rgba(98, 104, 94, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 104, 94, 0.1) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  background-position: 0 0, -1px -1px, -1px -1px;
}

.index-hero::before,
.index-hero::after {
  position: absolute;
  top: 21px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 46%, var(--line-dark) 47% 53%, transparent 54%),
    var(--paper);
  content: "";
}

.index-hero::before {
  left: 21px;
}

.index-hero::after {
  right: 21px;
}

.index-hero .hero-meta {
  justify-content: flex-start;
}

.index-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
  align-items: end;
  gap: 72px;
  margin-top: 75px;
}

.index-hero .eyebrow {
  margin: 0 0 20px;
}

.index-hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(56px, 6vw, 88px);
  line-height: 0.98;
  text-align: left;
}

.index-hero h1 span {
  display: block;
  color: var(--quiet);
}

.index-intro {
  padding: 22px 0 4px;
  border-top: 1px solid var(--accent);
}

.index-intro p {
  margin: 0 0 28px;
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.75;
}

.index-intro a {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.055em;
}

.index-signal {
  display: grid;
  min-height: 82px;
  grid-template-columns: auto 1fr auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  margin-top: 90px;
  padding: 0 17px;
  border: 1px solid var(--line-dark);
  background: var(--paper-solid);
}

.index-signal span,
.index-signal strong {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.045em;
}

.index-signal span b {
  margin-right: 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 560;
}

.index-signal i {
  height: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 9px);
}

.index-signal strong {
  color: var(--accent);
}

.manual-index-section {
  padding-bottom: 102px;
}

.manual-card-list {
  display: grid;
  gap: 28px;
}

.manual-card {
  position: relative;
  display: grid;
  min-height: 330px;
  grid-template-columns: 96px minmax(360px, 1.45fr) minmax(235px, 0.75fr);
  border: 1px solid var(--line-dark);
  background: var(--paper-solid);
  transition: color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.manual-card::before,
.manual-card::after {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 8px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.manual-card::before {
  top: 9px;
  right: 9px;
}

.manual-card::after {
  right: 9px;
  bottom: 9px;
}

.manual-card:hover,
.manual-card:focus-visible {
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 11px 0 rgba(21, 23, 19, 0.035);
}

.manual-card-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 10px;
  border-right: 1px solid var(--line-dark);
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(21, 23, 19, 0.035) 10px 11px);
}

.manual-card-rail span,
.manual-card-rail small {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.05em;
  writing-mode: vertical-rl;
}

.manual-card-rail strong {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 500;
  writing-mode: vertical-rl;
}

.manual-card-body {
  display: flex;
  flex-direction: column;
  padding: 27px 32px 28px;
}

.manual-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.045em;
}

.manual-card-meta span:first-child {
  color: var(--accent);
}

.manual-card-body h2 {
  max-width: 590px;
  margin: 36px 0 18px;
  font-size: clamp(35px, 3.8vw, 53px);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.manual-card-body > p {
  max-width: 640px;
  margin: 0;
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.72;
}

.manual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 25px;
}

.manual-tags span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.manual-card-visual {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px 23px;
  border-left: 1px solid var(--line-dark);
  background:
    linear-gradient(rgba(247, 245, 239, 0.88), rgba(247, 245, 239, 0.88)),
    linear-gradient(rgba(98, 104, 94, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 104, 94, 0.13) 1px, transparent 1px);
  background-size: auto, 20px 20px, 20px 20px;
}

.manual-card-visual > span {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-align: right;
}

.index-diagram {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 82px 1fr 48px;
  align-items: center;
  margin: auto 0;
}

.index-diagram span,
.index-diagram strong,
.index-diagram b {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--paper-solid);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
}

.index-diagram strong {
  aspect-ratio: auto;
  min-height: 82px;
  border-color: var(--accent);
  border-radius: 0;
  color: var(--accent);
  font-size: 8px;
}

.index-diagram i {
  height: 6px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px);
}

.index-people-diagram b {
  aspect-ratio: auto;
  min-height: 74px;
  border: 0;
  border-right: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  transform: skewX(-8deg);
}

.index-people-diagram i {
  border-color: var(--accent-soft);
}

.index-method {
  padding-bottom: 100px;
}

.index-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.index-method-grid > div {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 24px 25px 28px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--paper-solid);
}

.index-method-grid span {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.055em;
}

.index-method-grid h2 {
  margin: 62px 0 24px;
  font-size: 28px;
  font-weight: 560;
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.index-method-grid p {
  margin: auto 0 0;
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.75;
}

.register-table {
  border-top: 1px solid var(--line-dark);
}

.register-row {
  display: grid;
  min-height: 84px;
  grid-template-columns: 72px 1.4fr 0.8fr 110px 72px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-dark);
  transition: color 150ms ease, padding 150ms ease, background 150ms ease;
}

a.register-row:hover,
a.register-row:focus-visible {
  padding-left: 22px;
  color: var(--accent);
  background: rgba(173, 77, 50, 0.035);
}

.register-row span,
.register-row b {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.045em;
}

.register-row > span:first-child {
  color: var(--accent);
}

.register-row strong {
  font-size: 16px;
  font-weight: 560;
}

.register-row i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.register-row b {
  justify-self: end;
  color: var(--accent);
}

.register-heading {
  min-height: 45px;
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(21, 23, 19, 0.025) 10px 11px);
}

.register-heading span {
  color: var(--quiet) !important;
}

.register-note {
  max-width: 660px;
  margin: 34px 0 0 auto;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.75;
  text-align: right;
}

@media (max-width: 1120px) {
  .side-index {
    width: 205px;
    padding-right: 22px;
    padding-left: 22px;
  }

  main {
    margin-left: 205px;
  }

  article {
    width: calc(100vw - 205px);
  }

  .funding-machine {
    max-width: 500px;
    grid-template-columns: 1fr;
  }

  .machine-rail {
    min-height: 58px;
  }

  .machine-rail i {
    width: 8px;
    height: 36px;
    margin: 0 auto;
    border: 0;
    border-right: 1px solid var(--line-dark);
    border-left: 1px solid var(--line-dark);
    background: repeating-linear-gradient(180deg, var(--line) 0 5px, transparent 5px 10px);
  }

  .machine-rail i::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .hazard i {
    border-color: var(--accent);
    background: repeating-linear-gradient(135deg, var(--accent-soft) 0 5px, transparent 5px 10px);
  }

  .conflict-machine {
    max-width: 520px;
    grid-template-columns: 1fr;
  }

  .fault-chamber {
    min-height: 112px;
    border: 0;
    border-right: 1px solid var(--line-dark);
    border-left: 1px solid var(--line-dark);
  }

  .fault-chamber i {
    height: 48px;
  }

  .index-hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .index-hero h1 {
    max-width: 760px;
  }

  .index-intro {
    max-width: 600px;
  }

  .index-signal {
    grid-template-columns: auto 1fr auto;
  }

  .index-signal span:nth-of-type(3),
  .index-signal i:nth-of-type(2) {
    display: none;
  }

  .manual-card {
    grid-template-columns: 82px 1.45fr minmax(210px, 0.7fr);
  }

  .manual-card-body {
    padding-right: 24px;
    padding-left: 24px;
  }

  .index-diagram {
    grid-template-columns: 36px 1fr 64px 1fr 36px;
  }

  .failure-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .verdict-equation {
    grid-template-columns: 1fr;
  }

  .verdict-equation > span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .verdict-equation b {
    min-height: 34px;
  }
}

@media (max-width: 800px) {
  body {
    font-size: 16px;
  }

  .side-index {
    display: none;
  }

  main {
    margin-left: 0;
  }

  .topbar {
    height: 60px;
    padding: 0 17px;
  }

  .mobile-wordmark {
    display: block;
    font-size: 14px;
  }

  .breadcrumbs {
    display: none;
  }

  article {
    width: 100%;
    border: 0;
  }

  .hero {
    min-height: 0;
    padding: 76px 18px 38px;
  }

  .eyebrow {
    margin-top: 52px;
  }

  h1 {
    font-size: 45px;
  }

  .standfirst {
    font-size: 17px;
  }

  .funding-machine {
    margin-top: 58px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 58px;
  }

  .hero-stats strong {
    font-size: 25px;
  }

  .chapter {
    padding: 72px 18px 84px;
    scroll-margin-top: 60px;
  }

  .section-label {
    margin-bottom: 48px;
  }

  .reading-column p {
    font-size: 17px;
    line-height: 1.78;
  }

  .reading-column h2 {
    font-size: 31px;
  }

  .inspection-note,
  .final-note {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .gate-diagram,
  .proof-stack,
  .process-line,
  .no-decoder,
  .repair-grid,
  .verdict-equation,
  .conflict-telemetry,
  .accord-grid,
  .separation-sequence {
    margin: 54px auto;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 10px 13px;
  }

  .gate-row {
    grid-template-columns: 52px 1fr 22px;
    padding: 12px;
  }

  .gate-row p {
    grid-column: 2 / -1;
    margin-top: 4px;
  }

  .proof-row {
    grid-template-columns: 48px 1fr 30px;
    gap: 10px;
    padding: 15px 12px;
  }

  .proof-meter {
    grid-column: 2 / -1;
  }

  .telemetry-row,
  .accord-row {
    grid-template-columns: 48px 1fr;
    gap: 4px 10px;
    padding: 15px 12px;
  }

  .telemetry-row p,
  .accord-row p {
    grid-column: 2 / -1;
  }

  .telemetry-row i {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: start;
    margin-top: 24px;
  }

  .failure-list li {
    grid-template-columns: 44px 1fr;
  }

  .failure-body h3 {
    font-size: 21px;
  }

  .case-file header {
    grid-template-columns: 60px 1fr;
    padding: 10px 13px;
  }

  .case-file header small {
    grid-column: 1 / -1;
    text-align: left;
  }

  .case-facts {
    grid-template-columns: 1fr 1fr;
  }

  .case-facts span:nth-child(2) {
    border-right: 0;
  }

  .case-facts span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .case-copy {
    grid-template-columns: 1fr;
    padding: 24px 20px 28px;
  }

  .process-step {
    grid-template-columns: 42px 20px 1fr;
    padding: 0 14px;
  }

  .process-step > div {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 12px 0;
  }

  .process-step > i::after {
    height: 80px;
  }

  .no-decoder {
    grid-template-columns: 1fr;
  }

  .no-decoder > div:not(.panel-heading) {
    border-right: 0;
  }

  .repair-grid {
    grid-template-columns: 1fr;
  }

  .repair-grid > div,
  .repair-grid > div:nth-child(3n),
  .repair-grid > div:nth-last-child(-n + 3) {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .repair-grid > div:last-child {
    border-bottom: 0;
  }

  .separation-sequence {
    grid-template-columns: 1fr;
  }

  .separation-step,
  .separation-step:nth-child(even),
  .separation-step:nth-last-child(-n + 2) {
    min-height: 108px;
    grid-template-columns: 42px 90px 1fr;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .separation-step:last-child {
    border-bottom: 0;
  }

  .source-list a {
    grid-template-columns: 42px 1fr 22px;
    padding: 12px 0;
  }

  .source-list small {
    display: none;
  }

  footer {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  footer p {
    display: none;
  }

  .next-manual {
    min-height: 160px;
    grid-template-columns: 1fr auto;
    gap: 8px 20px;
    padding: 28px 18px;
  }

  .next-manual span {
    grid-column: 1 / -1;
  }

  .next-manual strong {
    font-size: 27px;
  }

  .index-hero {
    min-height: 0;
    padding: 76px 18px 38px;
  }

  .index-hero-grid {
    margin-top: 56px;
  }

  .index-hero h1 {
    font-size: 48px;
  }

  .index-signal {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 58px;
    padding: 18px;
  }

  .index-signal i,
  .index-signal span:nth-of-type(3) {
    display: none;
  }

  .manual-card {
    grid-template-columns: 1fr;
  }

  .manual-card-rail {
    min-height: 54px;
    flex-direction: row;
    padding: 0 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .manual-card-rail span,
  .manual-card-rail small,
  .manual-card-rail strong {
    writing-mode: horizontal-tb;
  }

  .manual-card-body {
    padding: 23px 20px 28px;
  }

  .manual-card-body h2 {
    margin-top: 30px;
    font-size: 39px;
  }

  .manual-card-visual {
    min-height: 210px;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .index-diagram {
    max-width: 360px;
    margin: auto;
  }

  .index-method-grid {
    grid-template-columns: 1fr;
  }

  .index-method-grid > div {
    min-height: 260px;
  }

  .index-method-grid h2 {
    margin-top: 40px;
  }

  .register-row {
    grid-template-columns: 48px 1fr 58px;
    padding: 12px 8px;
  }

  .register-row > span:nth-of-type(2),
  .register-row > span:nth-of-type(3) {
    display: none;
  }

  .register-row b {
    justify-self: end;
  }

  .register-note {
    text-align: left;
  }
}

/* Survivors ------------------------------------------------------------- */

.side-survivors-link {
  display: grid;
  min-height: 54px;
  flex: 0 0 auto;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 8px;
  margin-top: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.06em;
  transition: color 150ms ease, background 150ms ease;
}

.side-survivors-link:hover,
.side-survivors-link:focus-visible {
  color: var(--accent);
  background: rgba(173, 77, 50, 0.05);
}

.side-survivors-count {
  color: var(--accent);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.side-survivors-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.side-survivors-copy b {
  font-weight: 650;
}

.side-survivors-copy small {
  color: var(--quiet);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.side-survivors-link i {
  color: var(--accent);
  font-style: normal;
}

.survivor-discovery {
  padding: 86px 56px 96px;
  color: var(--paper-solid);
  background: var(--ink);
}

.survivor-discovery .report-discovery-heading h2 {
  color: var(--paper-solid);
}

.survivor-discovery .report-discovery-heading p {
  color: var(--accent-soft);
}

.survivor-card-list {
  display: grid;
}

.survivor-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 130px;
  gap: 28px;
  align-items: stretch;
  min-height: 340px;
  padding: 34px;
  border: 1px solid rgba(247, 245, 239, 0.25);
  color: var(--paper-solid);
  background: rgba(247, 245, 239, 0.025);
  transition: border-color 150ms ease, background 150ms ease;
}

.survivor-card:hover,
.survivor-card:focus-visible {
  border-color: var(--accent-soft);
  background: rgba(247, 245, 239, 0.055);
}

.survivor-card-number {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 26px;
  border-right: 1px solid rgba(247, 245, 239, 0.22);
  color: var(--accent-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.survivor-card-number strong {
  color: var(--paper-solid);
  font-family: var(--serif);
  font-size: 70px;
  font-weight: 560;
  line-height: 0.8;
  letter-spacing: -0.065em;
}

.survivor-card-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.survivor-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  color: var(--accent-soft);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.survivor-card-main h3 {
  max-width: 760px;
  margin: 35px 0 18px;
  color: var(--paper-solid);
  font-size: clamp(40px, 4.8vw, 70px);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.survivor-card-main > p {
  max-width: 760px;
  margin: 0;
  color: rgba(247, 245, 239, 0.72);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
}

.survivor-card-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
}

.survivor-card-modes span {
  padding: 7px 9px;
  border: 1px solid rgba(247, 245, 239, 0.2);
  color: var(--accent-soft);
  font-size: 9px;
  letter-spacing: 0.055em;
}

.survivor-card .report-read {
  color: var(--accent-soft);
}

.survivor-page .side-deck {
  color: var(--accent);
}

.survivor-page .hero {
  border-top: 4px solid var(--accent);
}

.survivor-page .hero-meta span:first-child,
.survivor-page .manual-jump > span {
  color: var(--accent);
}

.survivor-page .reading-column a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.survivor-page .reading-column a:hover,
.survivor-page .reading-column a:focus-visible {
  color: var(--ink);
}

.survivor-related {
  border-bottom: 1px solid var(--line-dark);
}

.survivor-mode-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.survivor-mode-links a {
  display: grid;
  min-height: 150px;
  grid-template-rows: auto 1fr auto;
  padding: 20px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink) !important;
  text-decoration: none !important;
}

.survivor-mode-links a:hover,
.survivor-mode-links a:focus-visible {
  background: rgba(173, 77, 50, 0.055);
}

.survivor-mode-links span {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.survivor-mode-links strong {
  align-self: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 560;
}

.survivor-mode-links b {
  color: var(--accent);
  text-align: right;
}

@media (max-width: 800px) {
  .side-survivors-link {
    display: none;
  }

  .survivor-discovery {
    padding: 62px 18px 72px;
  }

  .survivor-card {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 24px;
    padding: 25px 20px;
  }

  .survivor-card-number {
    min-height: 52px;
    flex-direction: row;
    align-items: center;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(247, 245, 239, 0.22);
  }

  .survivor-card-number strong {
    font-size: 42px;
  }

  .survivor-card-main h3 {
    margin-top: 24px;
    font-size: 42px;
  }

  .survivor-card-modes {
    margin-top: 24px;
  }

  .survivor-card .report-read {
    text-align: left;
  }

  .survivor-mode-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1100px) {
  .ai-starter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ai-copy-panel {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 18px;
  }

  .ai-copy-copy h2 {
    font-size: 34px;
  }

  .ai-copy-button {
    min-height: 82px;
  }

  .skill-installer {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .skill-installer header,
  .skill-installer-instructions {
    padding: 22px 18px;
  }

  .skill-installer-scopes {
    padding: 12px 18px;
  }

  .skill-installer-scope-note {
    padding: 16px 18px;
  }

  .skill-installer-tools {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-installer-tools button {
    border-bottom: 1px solid var(--line-dark);
  }

  .skill-installer-tools button:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .ai-starter-prompts {
    grid-column: auto;
  }

  .ai-starter-grid {
    grid-template-columns: 1fr;
  }

  .ai-starter-prompt {
    min-height: 72px;
  }
}

/* Typography: sans-serif interface and titles, PT Serif reading copy. */
.standfirst,
.reading-column p,
.index-intro p,
.manual-card-body > p,
.index-method-grid p,
.register-note,
.panel-caption,
.gate-row p,
.proof-row p,
.failure-grid p,
.case-copy > p,
.case-copy aside p,
.process-step p,
.no-decoder p,
.repair-grid p,
.inspection-note p,
.final-note p,
.sources-note,
.telemetry-row p,
.accord-row p,
.separation-step p {
  font-family: var(--serif);
}

h1,
h2,
h3,
h4,
h5,
h6,
.wordmark,
.mobile-wordmark,
.footer-mark,
.side-index,
.topbar,
.section-label,
.hero-meta,
.eyebrow,
.hero-source,
.panel-heading,
.failure-grid span,
.case-file header,
.case-facts,
.source-list,
.next-manual,
footer {
  font-family: var(--sans);
}

/* Evidence-led pattern reports. */
.report-hero {
  min-height: 650px;
}

.report-boundaries {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.report-boundaries li {
  position: relative;
  padding: 15px 0 15px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--graphite);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
}

.report-boundaries li::before {
  position: absolute;
  top: 25px;
  left: 3px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.report-causal-chain {
  display: grid;
  max-width: 980px;
  grid-template-columns: 1fr 42px 1.15fr 42px 1fr;
  align-items: stretch;
  margin: 68px auto;
  border: 1px solid var(--line-dark);
  background: var(--paper-solid);
}

.report-causal-chain > div {
  min-height: 205px;
  padding: 23px;
}

.report-causal-chain .root-cause {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: rgba(173, 77, 50, 0.045);
}

.report-causal-chain > b {
  display: grid;
  place-items: center;
  color: var(--quiet);
  font-family: var(--sans);
  font-weight: 400;
}

.report-causal-chain span {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.report-causal-chain p {
  margin: 34px 0 0;
  color: var(--graphite);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.72;
}

.report-case-files {
  margin-bottom: 58px;
}

.report-survivorship {
  margin-top: 70px;
  padding-top: 30px;
  border-top: 3px double var(--line-dark);
}

.report-progression {
  display: grid;
  max-width: 980px;
  margin: 68px auto 0;
  padding: 0;
  border: 1px solid var(--line-dark);
  background: var(--paper-solid);
  list-style: none;
}

.report-progression li {
  display: grid;
  min-height: 172px;
  grid-template-columns: 92px 1fr;
  border-bottom: 1px solid var(--line);
}

.report-progression li:last-child {
  border-bottom: 0;
}

.progression-marker {
  position: relative;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
}

.progression-marker span {
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--paper-solid);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 9px;
}

.progression-marker i {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 1px;
  background: var(--line);
}

.report-progression li:first-child .progression-marker i {
  top: 50%;
}

.report-progression li:last-child .progression-marker i {
  bottom: 50%;
  background: var(--accent);
}

.report-progression li > div:last-child {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-content: center;
  gap: 9px 26px;
  padding: 24px 28px;
}

.report-progression small {
  grid-column: 1 / -1;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.report-progression h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.report-progression p {
  margin: 0;
  color: var(--graphite);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
}

.report-progression strong {
  grid-column: 2;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.report-fork {
  max-width: 1120px;
  margin: 68px auto 0;
}

.fork-origin {
  display: grid;
  width: 250px;
  min-height: 86px;
  align-content: center;
  gap: 6px;
  margin: 0 auto;
  padding: 14px 20px;
  border: 1px solid var(--line-dark);
  background: var(--paper-solid);
  text-align: center;
}

.fork-origin span,
.fork-origin strong {
  font-family: var(--sans);
}

.fork-origin span {
  color: var(--quiet);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.fork-origin strong {
  font-size: 12px;
  font-weight: 600;
}

.fork-stem {
  position: relative;
  width: calc(80% - 20px);
  height: 72px;
  margin: 0 auto;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.fork-stem::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--line-dark);
  content: "";
}

.fork-branches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.fork-branch {
  position: relative;
  min-height: 340px;
  padding: 22px 18px;
  border: 1px solid var(--line-dark);
  background: var(--paper-solid);
}

.fork-branch::before {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 1px;
  height: 11px;
  background: var(--line-dark);
  content: "";
}

.fork-branch > span {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.fork-branch > b {
  float: right;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.fork-branch h3 {
  min-height: 88px;
  margin: 25px 0 30px;
  font-size: 17px;
  font-weight: 580;
  line-height: 1.35;
}

.fork-branch dl,
.fork-branch dl div {
  margin: 0;
}

.fork-branch dl {
  display: grid;
  gap: 18px;
}

.fork-branch dl div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.fork-branch dt {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.fork-branch dd {
  margin: 8px 0 0;
  color: var(--graphite);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
}

.fork-branch.survivable {
  border-top: 3px solid var(--accent);
}

.report-checklist {
  max-width: 1120px;
  margin: 68px auto 0;
  border: 1px solid var(--line-dark);
  background: var(--paper-solid);
}

.report-check-heading,
.report-check-row {
  display: grid;
  grid-template-columns: 70px 1fr 1.35fr 0.75fr;
}

.report-check-heading {
  min-height: 38px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.report-check-heading span,
.report-check-row > * {
  padding-right: 14px;
  padding-left: 14px;
  border-right: 1px solid var(--line);
}

.report-check-heading span:last-child,
.report-check-row > *:last-child {
  border-right: 0;
}

.report-check-row {
  min-height: 122px;
  border-bottom: 1px solid var(--line);
}

.report-check-row:last-child {
  border-bottom: 0;
}

.report-check-row > span,
.report-check-row > strong,
.report-check-row > p,
.report-check-row > small {
  display: flex;
  align-items: center;
}

.report-check-row > span {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 9px;
}

.report-check-row > strong {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.report-check-row > p {
  margin: 0;
  color: var(--graphite);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.65;
}

.report-check-row > small {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 8px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.confidence-register {
  max-width: 980px;
  margin: 0 auto 92px;
  border-top: 1px solid var(--line-dark);
}

.confidence-row {
  display: grid;
  min-height: 120px;
  grid-template-columns: 100px 1fr 1.5fr;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line-dark);
}

.confidence-level {
  display: inline-grid;
  width: 78px;
  min-height: 26px;
  place-items: center;
  border: 1px solid var(--line-dark);
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.confidence-level.high {
  border-color: var(--ink);
  color: var(--ink);
}

.confidence-level.limited {
  border-style: dashed;
}

.confidence-row strong {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.confidence-row p {
  margin: 0;
  color: var(--graphite);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1120px) {
  .fork-stem {
    display: none;
  }

  .fork-origin {
    margin-bottom: 30px;
  }

  .fork-branches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fork-branch {
    min-height: 290px;
  }

  .fork-branch::before {
    display: none;
  }

  .fork-branch:last-child {
    grid-column: 1 / -1;
    min-height: 245px;
  }
}

@media (max-width: 800px) {
  .report-hero {
    min-height: 0;
  }

  .report-causal-chain {
    grid-template-columns: 1fr;
    margin: 54px auto;
  }

  .report-causal-chain > div {
    min-height: 0;
  }

  .report-causal-chain .root-cause {
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .report-causal-chain > b {
    min-height: 34px;
    transform: rotate(90deg);
  }

  .report-progression {
    margin-top: 54px;
  }

  .report-progression li {
    min-height: 0;
    grid-template-columns: 62px 1fr;
  }

  .report-progression li > div:last-child {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 18px;
  }

  .report-progression strong {
    grid-column: 1;
  }

  .fork-branches {
    grid-template-columns: 1fr;
  }

  .fork-branch,
  .fork-branch:last-child {
    min-height: 0;
    grid-column: auto;
  }

  .fork-branch h3 {
    min-height: 0;
  }

  .report-check-heading {
    display: none;
  }

  .report-check-row {
    grid-template-columns: 52px 1fr;
    min-height: 0;
  }

  .report-check-row > * {
    padding: 14px;
    border-right: 0;
  }

  .report-check-row > span {
    grid-row: 1 / span 3;
    align-items: flex-start;
    border-right: 1px solid var(--line);
  }

  .report-check-row > strong,
  .report-check-row > p {
    border-bottom: 1px solid var(--line);
  }

  .confidence-row {
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 18px 0;
  }

  .confidence-row p {
    grid-column: 1 / -1;
  }
}

/* Simplified reader experience ------------------------------------------ */

[hidden] {
  display: none !important;
}

.home-index .side-index,
.report-page .side-index {
  background: rgba(243, 241, 235, 0.98);
}

.home-index .side-index::before,
.home-index .side-index::after,
.report-page .side-index::before,
.report-page .side-index::after,
.home-index .index-hero::before,
.home-index .index-hero::after,
.report-page .hero::before,
.report-page .hero::after {
  display: none;
}

.home-index article,
.report-page article {
  background-image: none;
}

.home-index article {
  border-right: 0;
  border-left: 0;
}

.home-index .topbar,
.home-index .index-hero,
.home-index .chapter {
  border-bottom: 0;
}

.home-index .home-side-index nav {
  flex: 1;
  border-bottom: 0;
}

.home-index .side-deck,
.report-page .side-deck {
  max-width: 180px;
  color: var(--graphite);
  line-height: 1.65;
}

.home-index .side-deck {
  margin: 28px 0 24px;
}

.failure-mode-nav {
  min-height: 0;
  align-content: start;
  grid-auto-rows: max-content;
  margin-right: -10px;
  padding-right: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-dark) transparent;
  scrollbar-width: thin;
}

.failure-mode-nav .side-nav-label {
  position: sticky;
  top: 0;
  z-index: 1;
  display: block;
  padding: 0 0 10px;
  color: var(--accent);
  background: var(--paper);
  font-size: 9px;
  letter-spacing: 0.065em;
}

.home-index .failure-mode-nav a {
  min-height: 28px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  padding: 6px 0;
  font-size: 11px;
  line-height: 1.3;
}

.home-index .failure-mode-nav a b {
  font-weight: 500;
}

.home-index .failure-mode-nav a span {
  padding-top: 1px;
  font-size: 9px;
}

.home-index .topbar .breadcrumbs,
.report-page .topbar .breadcrumbs {
  color: var(--graphite);
}

.home-index .index-hero {
  min-height: 720px;
  padding: 78px 56px 44px;
  background: var(--paper);
}

.home-index .index-hero-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  align-items: stretch;
  gap: 52px;
  margin-top: 0;
}

.home-index .index-hero .eyebrow {
  margin: 0 0 24px;
}

.home-index .index-hero h1 {
  max-width: 720px;
  font-size: clamp(54px, 5.5vw, 82px);
}

.index-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.index-hero-deck {
  max-width: 650px;
  margin: 34px 0 24px;
  color: var(--graphite);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
}

.index-hero-link {
  width: fit-content;
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.07em;
}

.index-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.index-hero-links .index-hero-link:last-child {
  color: var(--graphite);
}

.hero-ai {
  display: flex;
  min-height: 470px;
  flex-direction: column;
  align-self: stretch;
  padding: 32px;
  border: 0;
  background: rgba(21, 23, 19, 0.035);
}

.hero-ai-kicker {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.075em;
}

.hero-ai h2 {
  max-width: 420px;
  margin: 42px 0 16px;
  font-size: clamp(31px, 3.3vw, 46px);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-ai-description {
  max-width: 470px;
  margin: 22px 0 0;
  color: var(--graphite);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
}

.hero-ai .ai-copy-actions {
  margin-top: 26px;
}

.hero-ai .ai-copy-button {
  min-height: 72px;
}

.hero-ai .ai-copy-status {
  min-height: 15px;
}

.hero-ai .hero-ai-next {
  margin-top: auto;
  padding-top: 18px;
  border-top: 0;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.5;
}

.hero-ai-next b {
  color: var(--ink);
  font-weight: 650;
}

.reader-contract {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 44px;
  border: 0;
}

.reader-contract span {
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.5;
}

.reader-contract span:last-child {
  border-right: 0;
}

.reader-contract b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.report-discovery,
.home-index .index-method {
  padding: 86px 56px 96px;
}

.report-discovery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  align-items: end;
  gap: 64px;
  margin-bottom: 44px;
}

.report-discovery-heading span {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.075em;
}

.report-discovery-heading h2 {
  max-width: 720px;
  margin: 9px 0 0;
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.report-discovery-heading p {
  margin: 0;
  color: var(--graphite);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
}

.report-filters button {
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--graphite);
  background: var(--faint);
  cursor: pointer;
  font-size: 11px;
  line-height: 1.3;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.report-filters button:hover,
.report-filters button:focus-visible,
.report-filters button[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--paper-solid);
  background: var(--ink);
}

.report-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 36px;
  margin-bottom: 44px;
  padding: 0;
  border: 0;
}

.report-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
}

.report-count {
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
  white-space: nowrap;
}

.home-index .manual-card-list {
  gap: 18px;
  border: 0;
}

.home-index .manual-card {
  display: grid;
  min-height: 0;
  grid-template-columns: 58px minmax(0, 1fr) 132px;
  align-items: start;
  gap: 0 18px;
  padding: 22px 18px;
  border: 0;
  background: transparent;
}

.home-index .manual-card::before,
.home-index .manual-card::after {
  display: none;
}

.home-index .manual-card:hover,
.home-index .manual-card:focus-visible {
  color: inherit;
  background: rgba(173, 77, 50, 0.045);
  box-shadow: none;
  transform: none;
}

.report-number {
  padding-top: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.report-card-main {
  min-width: 0;
}

.report-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--quiet);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.report-card-meta span:first-child {
  color: var(--accent);
}

.report-card-main h3 {
  margin: 14px 0 8px;
  font-size: clamp(25px, 2.7vw, 38px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.report-card-main p {
  max-width: 760px;
  margin: 0;
  color: var(--graphite);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
}

.report-read {
  align-self: center;
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.065em;
  white-space: nowrap;
  text-align: right;
}

.report-read b {
  display: inline-block;
  margin-left: 7px;
  transition: transform 150ms ease;
}

.manual-card:hover .report-read b {
  transform: translateX(4px);
}

.home-index .index-method {
  padding-bottom: 92px;
}

.home-index .index-method-grid {
  border: 0;
  gap: 18px;
}

.home-index .index-method-grid > div {
  min-height: 210px;
  padding: 25px 24px;
  border: 0;
  background: rgba(21, 23, 19, 0.035);
}

.home-index .index-method-grid h3 {
  margin: 34px 0 16px;
  font-size: 27px;
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.home-index .index-method-grid p {
  margin-top: auto;
}

.ai-copy-panel {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
  gap: 36px;
  padding: 34px 56px;
  border-top: 1px solid var(--line-dark);
  background: var(--paper-solid);
}

.ai-copy-copy h2 {
  margin: 0 0 7px;
  font-size: clamp(25px, 2.8vw, 36px);
}

.ai-copy-copy p {
  font-size: 15px;
}

.ai-copy-button {
  min-height: 52px;
  padding: 12px 18px;
}

.ai-copy-status {
  min-height: 16px;
}

.report-page .hero {
  min-height: 0;
  padding: 82px 56px 54px;
  background: var(--paper);
}

.report-page .hero-meta {
  gap: 18px;
}

.report-page .eyebrow {
  margin-top: 50px;
}

.report-page .chapter {
  padding-top: 82px;
  padding-bottom: 96px;
}

.report-page .section-label {
  margin-bottom: 52px;
}

.report-page .manual-jump > span {
  color: var(--quiet);
}

.report-page .report-ai-panel {
  border-bottom: 1px solid var(--line-dark);
}

.report-topbar {
  position: sticky;
}

.report-top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.report-read-time,
.contents-toggle {
  color: var(--graphite);
  font-size: 10px;
  letter-spacing: 0.055em;
}

.contents-toggle {
  display: none;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.mobile-contents {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  width: min(360px, 90vw);
  padding: 24px;
  border-left: 1px solid var(--line-dark);
  background: var(--paper-solid);
  box-shadow: -20px 0 50px rgba(21, 23, 19, 0.12);
  overflow-y: auto;
}

.mobile-contents-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 11px;
  letter-spacing: 0.07em;
}

.mobile-contents-header button {
  padding: 8px;
  border: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.mobile-contents nav {
  display: grid;
  padding-top: 18px;
}

.mobile-contents nav a {
  display: grid;
  min-height: 48px;
  grid-template-columns: 38px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--graphite);
  font-size: 14px;
}

.mobile-contents nav a span {
  color: var(--accent);
  font-size: 10px;
}

.contents-scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  border: 0;
  background: rgba(21, 23, 19, 0.32);
}

body.contents-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .home-index .index-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-ai {
    min-height: 420px;
  }
}

@media (max-width: 800px) {
  .home-index .index-hero {
    padding: 54px 18px 34px;
  }

  .home-index .index-hero-grid {
    gap: 34px;
    margin-top: 0;
  }

  .home-index .index-hero h1 {
    font-size: 50px;
  }

  .index-hero-deck {
    margin-top: 26px;
    font-size: 16px;
  }

  .hero-ai {
    min-height: 0;
    padding: 24px 20px;
  }

  .hero-ai h2 {
    margin-top: 30px;
    font-size: 34px;
  }

  .hero-ai .ai-copy-actions {
    margin-top: 24px;
  }

  .reader-contract {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .reader-contract span {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 0;
  }

  .reader-contract span:last-child {
    border-bottom: 0;
  }

  .report-discovery,
  .home-index .index-method {
    padding: 62px 18px 72px;
  }

  .report-discovery-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
  }

  .report-discovery-heading h2 {
    font-size: 43px;
  }

  .report-tools {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .report-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-right: -18px;
    padding-right: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .report-filters::-webkit-scrollbar {
    display: none;
  }

  .report-filters button {
    flex: 0 0 auto;
  }

  .report-count {
    padding-left: 1px;
  }

  .home-index .manual-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0 4px;
    padding: 25px 0 27px;
  }

  .report-number {
    text-align: left;
  }

  .report-card-main h3 {
    margin-top: 12px;
    font-size: 30px;
  }

  .report-card-main p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .report-read {
    grid-column: 2;
    margin-top: 18px;
    text-align: left;
  }

  .home-index .index-method-grid > div {
    min-height: 190px;
  }

  .ai-copy-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 18px;
  }

  .report-page .hero {
    padding: 64px 18px 38px;
  }

  .report-page .eyebrow {
    margin-top: 38px;
  }

  .report-page .chapter {
    padding-top: 62px;
    padding-bottom: 74px;
  }

  .report-page .section-label {
    margin-bottom: 38px;
  }

  .report-read-time {
    display: none;
  }

  .contents-toggle {
    display: block;
  }
}

/* Responsive collection repairs ---------------------------------------- */

.home-top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.home-top-actions .index-link:last-child {
  color: var(--accent);
}

.home-index .failure-mode-nav {
  flex: 1 1 auto;
}

.home-index .side-meta {
  flex: 0 0 auto;
  margin-top: 12px;
}

.report-discovery,
.survivor-discovery,
.home-index .index-method {
  scroll-margin-top: 78px;
}

.reading-column,
.manual-visual,
.manual-visual > div,
.manual-equation > div span {
  min-width: 0;
  max-width: 100%;
}

.manual-equation > div span {
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) and (min-width: 801px) {
  .report-discovery-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  .report-discovery-heading p {
    max-width: 620px;
  }

  .survivor-card {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 24px;
    min-height: 0;
    padding: 28px;
  }

  .survivor-card-number {
    padding-right: 20px;
  }

  .survivor-card-number strong {
    font-size: 46px;
  }

  .survivor-card-main h3 {
    margin-top: 28px;
    font-size: clamp(40px, 5.4vw, 58px);
  }

  .survivor-card .report-read {
    grid-column: 2;
    justify-self: start;
    align-self: end;
    margin-top: 0;
    text-align: left;
  }

  .manual-equation > div {
    flex-direction: column;
  }

  .manual-equation > div span {
    width: 100%;
    padding: 20px 16px;
  }

  .manual-equation > div i {
    min-height: 30px;
    transform: rotate(90deg);
  }
}

@media (max-width: 800px) {
  .home-top-actions {
    gap: 13px;
  }

  .home-top-actions .index-link {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .report-discovery,
  .survivor-discovery,
  .home-index .index-method {
    scroll-margin-top: 68px;
  }

  .report-filters {
    flex-wrap: wrap;
    margin-right: 0;
    padding-right: 0;
    overflow-x: visible;
  }

  .report-filters button {
    min-height: 42px;
    padding: 10px 13px;
  }

  .survivor-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .survivor-card-main,
  .survivor-card .report-read {
    grid-column: 1;
    width: 100%;
  }

  .survivor-card .report-read {
    justify-self: start;
  }

  .manual-visual-items > div {
    min-height: 0;
    padding: 16px;
  }

  .manual-visual-items span,
  .manual-fork-branch > span {
    margin-bottom: 18px;
  }
}

@media (max-width: 440px) {
  .home-index .index-hero h1 {
    font-size: clamp(40px, 12.5vw, 48px);
  }

  .report-discovery-heading h2,
  .survivor-card-main h3 {
    font-size: clamp(36px, 11vw, 42px);
  }

  .home-top-actions {
    gap: 10px;
  }

  .home-top-actions .index-link {
    font-size: 8px;
  }
}
