/* Public presentation projection; accepted protected source remains unchanged. */
:root {
  color-scheme: light dark;
  --paper: #f5f3ee;
  --paper-deep: #eae6de;
  --ink: #171818;
  --muted: #63635f;
  --line: #c8c3b9;
  --line-strong: #8d8980;
  --panel: #fffdf8;
  --charcoal: #222525;
  --red: #a72d24;
  --red-soft: #f0d9d4;
  --green: #24624b;
  --green-soft: #dce8df;
  --amber: #9a6514;
  --amber-soft: #eee1c8;
  --blue: #355b73;
  --blue-soft: #dce5ea;
  --focus: #c6422e;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(28, 28, 24, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151716;
    --paper-deep: #1d201e;
    --ink: #f0eee8;
    --muted: #b5b4ad;
    --line: #3d423f;
    --line-strong: #717770;
    --panel: #1b1e1c;
    --charcoal: #070908;
    --red: #f07f70;
    --red-soft: #402521;
    --green: #7ec19c;
    --green-soft: #1e392b;
    --amber: #edbd64;
    --amber-soft: #44361c;
    --blue: #8db9d2;
    --blue-soft: #233944;
    --focus: #ffae45;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
}

a {
  color: inherit;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: -100vw;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--panel);
  border: 2px solid var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  left: 0.75rem;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem max(1rem, calc((100vw - 1240px) / 2));
  background: var(--charcoal);
  color: #f7f4ed;
}

.site-header {
  min-height: 56px;
  border-bottom: 3px solid var(--red);
}

.site-header p,
.site-footer p {
  margin: 0;
  font: 700 0.72rem/1.3 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.wordmark {
  color: inherit;
  font: 900 0.9rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-decoration: none;
}

.status-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: #8ed6a5;
  box-shadow: 0 0 0 3px rgba(142, 214, 165, 0.14);
}

main {
  overflow: clip;
}

.hero,
.chapter,
.closing,
.receipt,
.brief-nav {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  padding: clamp(3.5rem, 8vw, 8rem) 0 clamp(3rem, 7vw, 6.5rem);
}

.hero-statement {
  max-width: 1080px;
  margin-bottom: clamp(4rem, 8vw, 8rem);
  font-size: clamp(2.1rem, 5.7vw, 5.6rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-statement p {
  margin: 0;
}

.hero-statement p:last-child {
  color: var(--red);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
}

.eyebrow,
.chapter-number,
figcaption,
.step-tag,
.prototype-item > span,
.night {
  font: 800 0.72rem/1.35 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--red);
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

h2 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 4.8rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero-copy {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.hero-copy p {
  margin: 0 0 1.2rem;
}

.hero-copy .thesis {
  margin: 2rem 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 5px solid var(--red);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 760;
  line-height: 1.25;
}

.brief-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brief-nav a {
  font: 700 0.73rem/1.4 var(--mono);
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.brief-nav a::before {
  content: "↳ ";
  color: var(--red);
}

.chapter {
  padding: clamp(5rem, 10vw, 10rem) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 2rem;
}

.chapter-heading {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.chapter-number {
  margin: 0.2rem 0 0;
  color: var(--red);
}

.lede {
  max-width: 820px;
  margin: -1rem 0 3.5rem 5rem;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--muted);
}

.gap-grid,
.doctrine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.gap-grid article,
.doctrine-grid article {
  min-height: 250px;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--panel);
}

.gap-grid h3,
.doctrine-grid h3 {
  margin: 1.6rem 0 0.75rem;
}

.gap-grid p,
.doctrine-grid p {
  margin: 0;
  color: var(--muted);
}

.gap-mark {
  color: var(--red);
  font: 600 2.5rem/1 var(--mono);
}

.chapter-close {
  max-width: 900px;
  margin: 2.5rem 0 0;
  font-size: clamp(1.35rem, 2.7vw, 2.4rem);
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

figure {
  margin: 0;
}

figcaption {
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.boundary-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.boundary-card {
  min-height: 620px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.boundary-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.boundary-card figcaption span {
  color: var(--red);
}

.vertical-flow {
  display: grid;
  justify-items: stretch;
  padding: 1.8rem 0 0;
}

.flow-node,
.flow-result,
.review-source,
.review-gate {
  padding: 1.1rem;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  text-align: center;
}

.flow-node b,
.flow-node small,
.flow-result b,
.flow-result small,
.review-source b,
.review-source small,
.review-gate b,
.review-gate small {
  display: block;
}

.flow-node small,
.flow-result small,
.review-source small,
.review-gate small {
  margin-top: 0.35rem;
  color: var(--muted);
  font: 600 0.72rem/1.4 var(--mono);
}

.node-dark {
  background: var(--charcoal);
  color: #f7f4ed;
}

.node-dark small {
  color: #c9cbc7;
}

.node-muted {
  border-style: dashed;
  color: var(--muted);
}

.node-accent {
  border-color: var(--red);
  background: var(--red-soft);
}

.flow-arrow {
  display: block;
  padding: 0.35rem;
  color: var(--red);
  font: 900 1.2rem/1 var(--mono);
  text-align: center;
}

.boundary-line {
  position: relative;
  height: 62px;
  border-top: 2px dashed var(--red);
  border-bottom: 2px dashed var(--red);
}

.boundary-line span {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0.2rem 0.55rem;
  background: var(--red-soft);
  color: var(--red);
  font: 800 0.65rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.flow-result {
  border-color: var(--red);
  color: var(--red);
}

.result-good {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.inversion-mark {
  display: grid;
  justify-items: center;
  color: var(--red);
  text-align: center;
}

.inversion-mark span {
  font: 400 3.5rem/1 var(--mono);
}

.inversion-mark b {
  margin-top: 0.5rem;
  font: 800 0.74rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inversion-mark small {
  color: var(--muted);
  font-size: 0.72rem;
}

.signal {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding: 2rem;
  background: var(--charcoal);
  color: #f7f4ed;
}

.signal p {
  margin: 0;
}

.signal .signal-label {
  color: #f0a399;
  font: 800 0.7rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal p:last-child {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 680;
  line-height: 1.25;
}

.experience-stack {
  display: grid;
  gap: 1.5rem;
}

.experience-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  background: var(--panel);
}

.experience-copy h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

.experience-copy > p:not(.step-tag) {
  color: var(--muted);
}

.step-tag {
  color: var(--red);
}

.distant-party {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.sequence-diagram,
.inbound-diagram,
.review-diagram {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.sequence-head {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.sequence-head span {
  overflow: hidden;
  color: var(--muted);
  font: 700 0.65rem/1.3 var(--mono);
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.sequence-events {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.sequence-events li {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  min-height: 2rem;
  color: var(--ink);
  font: 650 0.68rem/1.3 var(--mono);
}

.sequence-events li span {
  display: grid;
  z-index: 1;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}

.sequence-events li b {
  z-index: 1;
  width: fit-content;
  padding: 0.25rem 0.45rem;
  background: var(--paper);
}

.sequence-events li i {
  position: absolute;
  right: 0;
  left: 1.5rem;
  z-index: 0;
  height: 1px;
  background: var(--line-strong);
}

.sequence-events li i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  content: "";
  transform: rotate(45deg);
}

.event-two { margin-right: 50%; }
.event-three { margin-left: 25%; margin-right: 25%; }
.event-four { margin-left: 50%; }
.event-five { margin-left: 25%; }
.event-six { margin-right: 25%; }

.inbound-main {
  display: grid;
  grid-template-columns: 1fr 3rem 1.5fr;
  align-items: center;
  margin-bottom: 1.5rem;
}

.h-arrow {
  color: var(--red);
  font: 900 1.5rem/1 var(--mono);
  text-align: center;
}

.route-branches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.route-branches div,
.review-actions div {
  padding: 0.9rem;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
}

.route-branches b,
.route-branches small,
.review-actions b,
.review-actions small {
  display: block;
}

.route-branches span {
  float: right;
  color: var(--blue);
  font: 900 1.2rem/1 var(--mono);
}

.route-branches small,
.review-actions small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.review-diagram {
  display: grid;
  align-content: center;
}

.review-gate {
  border: 2px solid var(--red);
  background: var(--red-soft);
}

.review-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.review-actions div {
  border-left-color: var(--green);
  background: var(--green-soft);
}

.architecture-chapter {
  width: 100%;
  padding-inline: max(1rem, calc((100% - 1240px) / 2));
  background: var(--charcoal);
  color: #f7f4ed;
}

.architecture-chapter .chapter-heading,
.architecture-chapter .lede,
.architecture-chapter .architecture-canvas,
.architecture-chapter .threat-canvas {
  width: min(1240px, 100%);
  margin-inline: auto;
}

.architecture-chapter .lede {
  margin-bottom: 3.5rem;
  color: #bfc3bf;
}

.architecture-canvas {
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid #555b57;
  background: #101211;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
}

.architecture-canvas figcaption,
.threat-canvas figcaption {
  color: #bfc3bf;
}

.plane {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid #4b514d;
  background: #191c1a;
}

.plane-title {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  font: 800 0.76rem/1.35 var(--mono);
  text-transform: uppercase;
}

.plane-title span {
  color: #f08a7c;
}

.plane-nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.plane-nodes div {
  padding: 0.8rem;
  border: 1px solid #5d655f;
  background: #222623;
  font-size: 0.86rem;
  font-weight: 700;
}

.plane-nodes small {
  display: block;
  margin-top: 0.25rem;
  color: #bfc3bf;
  font: 500 0.66rem/1.4 var(--mono);
}

.plane-link {
  position: relative;
  height: 44px;
  margin-left: 180px;
  border-left: 1px solid #dc776a;
}

.plane-link::after {
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 7px;
  height: 7px;
  border-right: 1px solid #dc776a;
  border-bottom: 1px solid #dc776a;
  content: "";
  transform: rotate(45deg);
}

.plane-link span {
  margin-left: 0.8rem;
  color: #dcaaa2;
  font: 600 0.64rem/1.3 var(--mono);
}

.architecture-lower {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.architecture-lower .plane {
  grid-template-columns: 1fr;
  align-content: start;
  border-style: dashed;
}

.architecture-lower .plane-nodes {
  grid-template-columns: 1fr;
}

.plane-governance {
  border-color: #bb6e62;
}

.plane-continuity {
  border-color: #719680;
}

.trust-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  color: #bfc3bf;
  font: 600 0.65rem/1.4 var(--mono);
}

.trust-legend i {
  display: inline-block;
  width: 1.5rem;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.legend-line { border-top: 1px dashed #aeb3af; }
.legend-arrow { border-top: 1px solid #dc776a; }
.legend-gate { border-top: 4px solid #77a689; }

.threat-canvas {
  margin-top: 2rem;
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid #555b57;
}

.threat-zones {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
}

.threat-zones div {
  position: relative;
  min-height: 170px;
  padding: 1rem;
  border: 1px dashed #646c67;
  background: #191c1a;
}

.threat-zones div:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -0.75rem;
  z-index: 2;
  width: 0.9rem;
  height: 0.9rem;
  border-top: 1px solid #e37d6f;
  border-right: 1px solid #e37d6f;
  content: "";
  transform: rotate(45deg);
}

.threat-zones span,
.threat-zones b,
.threat-zones small {
  display: block;
}

.threat-zones span {
  color: #f08a7c;
  font: 700 0.61rem/1.3 var(--mono);
  text-transform: uppercase;
}

.threat-zones b {
  margin-top: 1.3rem;
}

.threat-zones small {
  margin-top: 0.5rem;
  color: #bfc3bf;
}

.threat-zones .human-zone {
  border: 2px solid #78aa8a;
}

.prototype-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 2rem;
}

.prototype-stack {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.prototype-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: baseline;
  padding: 1.1rem;
  background: var(--panel);
}

.prototype-item > span {
  color: var(--red);
}

.prototype-item small {
  color: var(--muted);
}

.prototype-hypothesis {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--charcoal);
  color: #f7f4ed;
}

.prototype-hypothesis h3 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 2.7vw, 2.4rem);
}

.prototype-hypothesis .eyebrow {
  color: #f0a399;
}

.prototype-hypothesis > p:not(.eyebrow) {
  color: #c9ccc8;
}

.prototype-hypothesis .caution {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #626762;
  font-size: 0.84rem;
}

.table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--panel);
  font-size: 0.9rem;
}

caption {
  padding: 1rem;
  color: var(--muted);
  font: 700 0.7rem/1.4 var(--mono);
  text-align: left;
  text-transform: uppercase;
}

th,
td {
  padding: 1rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--paper-deep);
  font: 800 0.7rem/1.4 var(--mono);
  text-transform: uppercase;
}

tbody th {
  color: var(--red);
  font: 750 0.78rem/1.4 var(--mono);
}

.number-rail {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.number-rail ol {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.number-rail li {
  position: relative;
  padding: 1.3rem 1rem 0;
  border-top: 3px solid var(--red);
}

.number-rail li::before {
  position: absolute;
  top: -0.45rem;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.number-rail span,
.number-rail b,
.number-rail small {
  display: block;
}

.number-rail span {
  color: var(--red);
  font: 800 0.65rem/1.4 var(--mono);
}

.number-rail b {
  margin: 0.6rem 0 0.3rem;
}

.number-rail small {
  color: var(--muted);
}

.number-rail > p {
  margin: 2rem 0 0;
  padding: 0.8rem;
  border-left: 4px solid var(--red);
  background: var(--red-soft);
  font-weight: 750;
}

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

.doctrine-grid article {
  min-height: 280px;
}

.doctrine-grid article > span {
  color: var(--red);
  font: 800 0.7rem/1.4 var(--mono);
}

.agent-topology {
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--panel);
}

.human-gates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px dashed var(--red);
  background: var(--red-soft);
}

.human-gates span {
  padding: 0.35rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--red) 45%, transparent);
  font: 700 0.66rem/1.3 var(--mono);
  text-transform: uppercase;
}

.supervisor,
.integration {
  position: relative;
  width: min(600px, 90%);
  margin: 2.2rem auto;
  padding: 1.2rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  text-align: center;
}

.supervisor::before,
.supervisor::after,
.integration::before {
  position: absolute;
  left: 50%;
  height: 2.2rem;
  border-left: 1px solid var(--line-strong);
  content: "";
}

.supervisor::before { bottom: 100%; }
.supervisor::after { top: 100%; }
.integration::before { bottom: 100%; }

.supervisor span,
.integration span {
  display: block;
  color: var(--red);
  font: 800 0.67rem/1.4 var(--mono);
  text-transform: uppercase;
}

.supervisor b,
.integration b {
  display: block;
  margin-top: 0.35rem;
}

.agent-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.agent-lanes div {
  min-height: 140px;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}

.agent-lanes span,
.agent-lanes b,
.agent-lanes small {
  display: block;
}

.agent-lanes span {
  color: var(--red);
  font: 800 0.7rem/1.4 var(--mono);
}

.agent-lanes b {
  margin: 0.75rem 0 0.3rem;
}

.agent-lanes small {
  color: var(--muted);
}

.overnight-rail {
  position: relative;
}

.overnight-rail ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.overnight-rail li {
  position: relative;
  min-height: 340px;
  padding: 2rem 1.4rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.overnight-rail li:not(:last-child)::after {
  position: absolute;
  top: 2.2rem;
  right: -1.25rem;
  z-index: 2;
  width: 1.4rem;
  border-top: 2px solid var(--red);
  content: "";
}

.overnight-rail h3 {
  margin: 1rem 0;
  font-size: 1.35rem;
}

.overnight-rail p {
  color: var(--muted);
}

.overnight-rail small {
  display: block;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.night {
  color: var(--red);
}

.time-reality {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 2rem;
  margin-top: 1rem;
  padding: 1.5rem;
  background: var(--amber-soft);
  color: var(--ink);
}

.time-reality b {
  color: var(--amber);
  font: 800 0.7rem/1.4 var(--mono);
  text-transform: uppercase;
}

.time-reality p {
  margin: 0;
}

.proof-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.proof-matrix div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  background: var(--panel);
}

.proof-matrix span {
  color: var(--green);
  font: 800 0.68rem/1.4 var(--mono);
  text-transform: uppercase;
}

.proof-matrix b {
  font-size: 0.92rem;
}

.boundaries {
  border-bottom: 0;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: var(--line);
  list-style: none;
}

.boundary-list li {
  min-height: 150px;
  padding: 1.5rem;
  background: var(--panel);
}

.boundary-list b,
.boundary-list span {
  display: block;
}

.boundary-list b {
  color: var(--red);
  font-size: 1.05rem;
}

.boundary-list span {
  margin-top: 0.6rem;
  color: var(--muted);
}

.closing {
  padding: clamp(6rem, 13vw, 13rem) 0;
}

.closing h2 {
  max-width: 1000px;
}

.closing > p:not(.eyebrow):not(.closing-note) {
  max-width: 1050px;
  margin: 2rem 0;
  color: var(--red);
  font-size: clamp(1.8rem, 4.6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.closing-note {
  max-width: 760px;
  margin: 3rem 0 0 auto;
  font-size: 1.15rem;
  color: var(--muted);
}

.receipt {
  margin-bottom: 6rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.receipt summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  font-weight: 800;
}

.receipt summary small {
  color: var(--muted);
  font: 600 0.68rem/1.4 var(--mono);
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
}

.receipt dl {
  margin: 0;
}

.receipt dl > div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.receipt dt {
  color: var(--muted);
  font: 700 0.67rem/1.4 var(--mono);
  text-transform: uppercase;
}

.receipt dd {
  margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
}

code {
  font-family: var(--mono);
  font-size: 0.82em;
}

.site-footer {
  min-height: 90px;
  border-top: 3px solid var(--red);
}

.subtitle {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.55;
}

blockquote {
  quotes: none;
}

.hero-boundary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
  margin-top: 3rem;
}

.hero-boundary-card,
.native-path,
.persona-canvas,
.state-canvas,
.lifecycle-canvas,
.mock-canvas {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  padding: clamp(1rem, 3vw, 2rem);
}

.hero-boundary-card.wrong {
  border-top: 4px solid var(--red);
}

.hero-boundary-card.right {
  border-top: 4px solid var(--green);
}

.hero-boundary-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.hero-boundary-card figcaption span {
  color: var(--muted);
}

.hero-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr) auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  margin-top: 1.2rem;
}

.hero-path > div {
  min-height: 7.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.7rem;
  text-align: center;
}

.hero-path b,
.hero-path small,
.native-path-grid span,
.native-path-grid b,
.native-path-grid small {
  display: block;
}

.hero-path small,
.native-path-grid small {
  color: var(--muted);
}

.hero-path .gateway-node {
  border-color: var(--green);
  background: var(--green-soft);
}

.hero-boundary-card > p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.hero-invert {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--red);
  text-align: center;
}

.hero-invert span {
  font-size: 2rem;
}

.hero-invert b {
  max-width: 7rem;
  font: 800 0.72rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-signal {
  margin-top: 1.2rem;
}

.product-thesis {
  max-width: 70rem;
  margin: 2rem 0 2.5rem;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--green);
  background: var(--panel);
  padding: clamp(1.4rem, 3vw, 2.5rem);
  color: var(--ink);
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  font-weight: 760;
  line-height: 1.35;
}

.job-grid,
.risk-grid,
.assumption-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.job-grid article,
.risk-grid article,
.assumption-grid article,
.experiment-test article {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.35rem;
}

.job-grid span,
.risk-grid span,
.assumption-grid span,
.experiment-test article > span {
  color: var(--red);
  font: 800 0.72rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-grid h3,
.risk-grid h3,
.assumption-grid h3 {
  margin: 0.8rem 0 0.55rem;
}

.job-grid p,
.risk-grid p,
.assumption-grid p {
  margin: 0;
  color: var(--muted);
}

.native-path {
  margin-top: 2rem;
}

.native-path-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.native-path-grid > div,
.native-branch > div {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
  text-align: center;
}

.native-path-grid div > span {
  margin-bottom: 0.45rem;
  color: var(--red);
  font: 800 0.68rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.native-phone {
  border-color: var(--red) !important;
}

.path-arrow {
  color: var(--red);
  font-size: 1.5rem;
}

.native-branch {
  width: min(34rem, 80%);
  margin: 0 auto;
  color: var(--red);
  text-align: center;
}

.native-branch > span {
  display: block;
  padding: 0.5rem;
  font-size: 1.5rem;
}

.native-branch small {
  display: block;
  color: var(--muted);
}

.endpoint-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.endpoint-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
}

.endpoint-card span,
.endpoint-card b,
.endpoint-card small,
.gateway-title span,
.gateway-title b,
.gateway-capabilities b,
.gateway-capabilities small,
.artifact-row span,
.artifact-row b,
.artifact-row small {
  display: block;
}

.endpoint-card span,
.gateway-title span {
  color: var(--red);
  font: 800 0.68rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.endpoint-card small,
.gateway-capabilities small,
.artifact-row small {
  margin-top: 0.35rem;
  color: var(--muted);
}

.endpoint-card.participant {
  border-color: var(--green);
}

.gateway-core {
  position: relative;
  margin: 2.5rem 5%;
  border: 2px solid var(--green);
  background: var(--green-soft);
  padding: 1.2rem;
}

.gateway-core::before,
.gateway-core::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 2.5rem;
  background: var(--green);
}

.gateway-core::before {
  bottom: 100%;
}

.gateway-core::after {
  top: 100%;
}

.gateway-title b {
  margin-top: 0.35rem;
  font-size: 1.2rem;
}

.gateway-capabilities,
.artifact-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.gateway-capabilities {
  margin-top: 1rem;
}

.gateway-capabilities div {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.8rem;
}

.artifact-row div {
  border-top: 3px solid var(--red);
  background: var(--panel);
  padding: 0.9rem;
}

.artifact-row span {
  color: var(--red);
  font: 800 0.68rem/1.4 var(--mono);
}

.persona-canvas,
.state-canvas,
.lifecycle-canvas,
.mock-canvas {
  margin-top: 2rem;
}

.persona-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.persona-grid article {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.2rem;
}

.persona-grid article:last-child {
  border-color: var(--green);
}

.persona-label {
  color: var(--red);
  font: 800 0.72rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.persona-grid ol {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.persona-grid li + li {
  margin-top: 0.45rem;
}

.shared-contract {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 10rem;
  color: var(--red);
  text-align: center;
}

.shared-contract > span {
  font-size: 2rem;
}

.shared-contract b,
.shared-contract small {
  display: block;
}

.shared-contract small {
  margin-top: 0.35rem;
  color: var(--muted);
}

.trust-chapter {
  background:
    linear-gradient(135deg, transparent 0 78%, var(--green-soft) 78% 100%),
    var(--paper);
}

.state-machine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.4fr);
  gap: 0.7rem;
  align-items: center;
}

.state-machine > div:not(.state-branches) {
  min-height: 8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1rem;
  text-align: center;
}

.state-machine span,
.state-machine b,
.state-machine small {
  display: block;
}

.state-machine span {
  color: var(--red);
  font-family: var(--mono);
}

.state-machine small {
  margin-top: 0.3rem;
  color: var(--muted);
}

.state-machine .decision-state {
  border-color: var(--red) !important;
}

.state-branches {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  width: min(52rem, 100%);
  margin: 0 auto;
}

.state-branches div {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.8rem;
  text-align: center;
}

.state-branches .affirm {
  border-color: var(--green);
}

.state-branches .decline,
.state-branches .unclear {
  border-color: var(--red);
}

.lifecycle-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(8.5rem, 1fr));
  gap: 0;
  margin: 1.2rem 0 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
}

.lifecycle-rail li {
  position: relative;
  min-height: 8.5rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.9rem;
}

.lifecycle-rail li:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -0.7rem;
  color: var(--red);
  transform: translateY(-50%);
}

.lifecycle-rail span,
.lifecycle-rail b,
.lifecycle-rail small {
  display: block;
}

.lifecycle-rail span {
  color: var(--red);
  font: 800 0.7rem/1.4 var(--mono);
}

.lifecycle-rail small {
  margin-top: 0.4rem;
  color: var(--muted);
}

.lifecycle-rule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  padding: 1rem;
}

.lifecycle-rule p {
  margin: 0;
}

.risk-grid,
.assumption-grid {
  margin-top: 2rem;
}

.risk-grid article {
  border-top: 3px solid var(--red);
}

.assumption-grid article {
  border-top: 3px solid var(--amber);
}

.experiment-chapter {
  background:
    linear-gradient(180deg, var(--paper) 0 72%, var(--amber-soft) 72% 100%);
}

.mock-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.mock-screen {
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  background: var(--panel);
  padding: 1rem;
}

.mock-screen span,
.mock-screen b,
.mock-screen small {
  display: block;
}

.mock-screen span {
  color: var(--red);
  font: 800 0.7rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-screen b {
  margin-top: 0.55rem;
  font-size: 1.15rem;
}

.mock-screen small {
  margin-top: 0.45rem;
  color: var(--muted);
}

.mock-arrow {
  color: var(--red);
  font-size: 1.5rem;
}

.mock-evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.mock-evidence div {
  border: 1px dashed var(--line-strong);
  background: var(--panel);
  padding: 0.8rem;
}

.mock-evidence b,
.mock-evidence small {
  display: block;
}

.mock-evidence small {
  margin-top: 0.3rem;
  color: var(--muted);
}

.experiment-test {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.experiment-test ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.experiment-test li + li {
  margin-top: 0.45rem;
}

.non-goal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.non-goal-grid li {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.8rem;
  color: var(--muted);
}

.non-goal-grid li::before {
  content: "×";
  flex: 0 0 auto;
  margin-right: 0.55rem;
  color: var(--red);
  font: 800 1rem/1 var(--mono);
}

.review-chapter {
  background: var(--charcoal);
  color: #f0eee8;
}

.review-chapter h2 {
  color: #fff;
}

.review-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid #555a56;
  border-left: 1px solid #555a56;
  list-style: none;
  counter-reset: review;
}

.review-questions li {
  min-height: 7rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  border-right: 1px solid #555a56;
  border-bottom: 1px solid #555a56;
  padding: 1rem;
  color: #e9ecea;
  font-size: 1.05rem;
  counter-increment: review;
}

.review-questions li::before {
  content: counter(review, decimal-leading-zero);
  color: #f0a174;
  font: 800 0.72rem/1.4 var(--mono);
}

.method-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.method-rail li {
  min-height: 9rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem;
}

.method-rail span,
.method-rail b,
.method-rail small {
  display: block;
}

.method-rail span {
  color: var(--red);
  font: 800 0.72rem/1.4 var(--mono);
}

.method-rail b {
  margin-top: 0.6rem;
}

.method-rail small {
  margin-top: 0.4rem;
  color: var(--muted);
}

.final-challenge {
  max-width: 62rem;
  margin: 3rem 0 0;
  font-size: clamp(1.7rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
}

@media (max-width: 1000px) {
  .hero-boundary {
    grid-template-columns: 1fr;
  }

  .hero-invert {
    flex-direction: row;
  }

  .hero-invert span,
  .shared-contract > span {
    transform: rotate(90deg);
  }

  .hero-invert b {
    max-width: none;
  }

  .job-grid,
  .risk-grid,
  .assumption-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gateway-capabilities,
  .artifact-row,
  .non-goal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .persona-grid,
  .mock-surface {
    grid-template-columns: 1fr;
  }

  .shared-contract {
    max-width: none;
    min-height: 5rem;
  }

  .mock-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

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

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

  .boundary-comparison {
    grid-template-columns: 1fr;
  }

  .inversion-mark {
    min-height: 90px;
  }

  .inversion-mark span {
    transform: rotate(90deg);
  }

  .boundary-card {
    min-height: 0;
  }

  .experience-card,
  .prototype-grid {
    grid-template-columns: 1fr;
  }

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

  .plane-link {
    margin-left: 2rem;
  }

  .architecture-lower {
    grid-template-columns: 1fr;
  }

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

  .threat-zones div:nth-child(3)::after {
    display: none;
  }

  .number-rail ol {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 0;
  }

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

  .overnight-rail ol {
    grid-template-columns: repeat(2, 1fr);
  }

  .overnight-rail li:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 700px) {
  .hero-path,
  .native-path-grid {
    grid-template-columns: 1fr;
  }

  .hero-path > span,
  .path-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .hero-path > div {
    min-height: 5.5rem;
  }

  .native-branch {
    width: 100%;
  }

  .job-grid,
  .risk-grid,
  .assumption-grid,
  .gateway-capabilities,
  .artifact-row,
  .state-branches,
  .mock-evidence,
  .experiment-test,
  .non-goal-grid,
  .review-questions,
  .method-rail,
  .lifecycle-rule {
    grid-template-columns: 1fr;
  }

  .endpoint-row {
    grid-template-columns: 1fr;
  }

  .gateway-core {
    margin-inline: 0;
  }

  .state-machine {
    grid-template-columns: 1fr;
  }

  .state-machine > span {
    justify-self: center;
    transform: rotate(90deg);
  }

  .state-branches {
    grid-column: auto;
  }

  .mock-screen {
    min-height: 8rem;
  }

  .review-questions li {
    min-height: auto;
  }

  body {
    font-size: 16px;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .chapter,
  .closing,
  .receipt,
  .brief-nav {
    width: min(100% - 1.25rem, 1240px);
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-statement {
    margin-bottom: 4rem;
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5.5rem);
  }

  h2 {
    font-size: clamp(2.1rem, 11vw, 3.5rem);
  }

  .chapter-heading {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .lede {
    margin-left: 0;
  }

  .gap-grid,
  .doctrine-grid,
  .proof-matrix,
  .boundary-list,
  .receipt-grid {
    grid-template-columns: 1fr;
  }

  .gap-grid article,
  .doctrine-grid article {
    min-height: 0;
  }

  .signal,
  .time-reality {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .experience-card {
    padding: 1rem;
  }

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

  .event-two,
  .event-three,
  .event-four,
  .event-five,
  .event-six {
    margin-right: 0;
    margin-left: 0;
  }

  .inbound-main {
    grid-template-columns: 1fr;
  }

  .h-arrow {
    padding: 0.5rem;
    transform: rotate(90deg);
  }

  .route-branches,
  .review-actions {
    grid-template-columns: 1fr;
  }

  .architecture-chapter {
    padding-inline: 0.625rem;
  }

  .architecture-canvas,
  .threat-canvas {
    padding: 0.75rem;
  }

  .plane {
    padding: 0.75rem;
  }

  .plane-nodes {
    grid-template-columns: 1fr;
  }

  .threat-zones {
    grid-template-columns: 1fr;
  }

  .threat-zones div {
    min-height: 0;
  }

  .threat-zones div::after {
    display: none;
  }

  .prototype-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .number-rail {
    padding: 1.2rem;
  }

  .number-rail ol {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .number-rail li {
    padding: 0 0 1.5rem 1.5rem;
    border-top: 0;
    border-left: 3px solid var(--red);
  }

  .number-rail li::before {
    top: 0;
    left: -0.45rem;
  }

  .agent-lanes,
  .overnight-rail ol {
    grid-template-columns: 1fr;
  }

  .overnight-rail li {
    min-height: 0;
  }

  .overnight-rail li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -1.1rem;
    left: 2.2rem;
    width: 0;
    height: 1.1rem;
    border-top: 0;
    border-left: 2px solid var(--red);
  }

  .overnight-rail li:nth-child(2)::after {
    display: block;
  }

  .proof-matrix div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .closing-note {
    margin-left: 0;
  }

  .receipt summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  :root {
    color-scheme: light;
    --paper: #fff;
    --panel: #fff;
    --ink: #111;
  }

  .site-header,
  .site-footer,
  .brief-nav {
    display: none;
  }

  .chapter,
  .hero,
  .closing {
    break-inside: avoid;
  }
}
