:root {
  --ink: #101010;
  --paper: #f5f0e6;
  --white: #fffdf7;
  --coral: #ff5b35;
  --acid: #eaff38;
  --blue: #74d9ff;
  --violet: #b993ff;
  --green: #66dc8d;
  --pink: #ff6fb5;
  --gold: #ffbf38;
  --line: 3px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; overflow-x: hidden; background: var(--paper); }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--acid);
  border: var(--line);
  font-weight: 950;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-head {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(16px, 4vw, 58px);
  background: var(--paper);
  border-bottom: var(--line);
}
.wordmark {
  display: grid;
  width: 126px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -1.4px;
  line-height: .78;
}
.wordmark span:last-child { margin-left: 27px; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 19px; flex-wrap: wrap; }
.site-nav a, .text-link {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .075em;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, .97fr);
  gap: clamp(34px, 6vw, 90px);
  min-height: 810px;
  padding: clamp(64px, 9vw, 118px) clamp(22px, 6vw, 88px);
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.22) 0 5px, transparent 6px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(16,16,16,.07) 39px 40px),
    var(--coral);
  border-bottom: var(--line);
}
.hero-copy { align-self: center; }
.eyebrow, .section-index, .chapter-head p, .machine-head, .machine-foot, .progress-dock p, .hero-note, .dated-note {
  font: 900 11px/1.35 "Courier New", monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.eyebrow, .section-index { margin: 0 0 18px; }
.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(55px, 7.5vw, 116px);
  font-weight: 950;
  letter-spacing: -.078em;
  line-height: .84;
}
.hero h1 em { color: var(--acid); font-style: normal; text-shadow: 3px 3px 0 var(--ink); }
.hero-deck { max-width: 700px; margin: 30px 0 0; font-size: clamp(18px, 2vw, 26px); font-weight: 720; line-height: 1.3; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 52px;
  padding: 14px 18px;
  border: var(--line);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .16s ease, box-shadow .16s ease;
}
.button:hover, .button:focus-visible { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.button-dark { color: var(--paper); background: var(--ink); box-shadow: 5px 5px 0 var(--acid); }
.button-acid { color: var(--ink); background: var(--acid); }
.hero-note { max-width: 650px; margin: 48px 0 0; padding-top: 15px; border-top: var(--line); }

.hero-machine {
  position: relative;
  align-self: center;
  min-height: 650px;
  padding: 56px 24px 58px;
  overflow: hidden;
  background: var(--paper);
  border: 5px solid var(--ink);
  box-shadow: 15px 15px 0 var(--ink);
  transform: rotate(1.2deg);
}
.machine-head, .machine-foot {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 18px;
  color: var(--paper);
  background: var(--ink);
}
.machine-head { top: 0; }
.machine-foot { bottom: 0; color: var(--ink); background: var(--acid); border-top: var(--line); }
.machine-core {
  position: relative;
  display: grid;
  place-items: center;
  width: min(400px, 78vw);
  aspect-ratio: 1;
  margin: 26px auto 18px;
  background: var(--acid);
  border: 5px solid var(--ink);
  border-radius: 50%;
  box-shadow: inset 0 0 0 23px var(--coral), inset 0 0 0 28px var(--ink);
}
.machine-core strong { font-size: clamp(120px, 16vw, 230px); font-weight: 950; letter-spacing: -.14em; transform: translateX(-.06em); }
.machine-core i {
  position: absolute;
  right: -15px;
  bottom: 16%;
  padding: 10px;
  background: var(--blue);
  border: var(--line);
  font: normal 950 13px/.9 "Courier New", monospace;
  transform: rotate(-7deg);
}
.core-ring { position: absolute; inset: -19px; border: 3px dashed var(--ink); border-radius: 50%; }
.ring-two { inset: 32px; border-style: solid; border-width: 2px; animation: ring-pulse 2.8s ease-in-out infinite alternate; }
.hero-machine ol { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; border: var(--line); list-style: none; }
.hero-machine li { display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; padding: 12px; background: var(--white); }
.hero-machine li:nth-child(odd) { border-right: var(--line); }
.hero-machine li:nth-child(n+3) { border-top: var(--line); }
.hero-machine li span { grid-row: 1 / 3; font: 950 22px/1 "Courier New", monospace; }
.hero-machine li b { font-size: 13px; }
.hero-machine li small { font: 800 9px/1.2 "Courier New", monospace; }

.progress-dock {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 210px minmax(150px, 1fr) minmax(240px, .8fr) auto;
  align-items: center;
  gap: 22px;
  padding: 13px clamp(16px, 4vw, 58px);
  color: var(--paper);
  background: var(--ink);
  border-bottom: 2px solid var(--paper);
}
.progress-dock p { margin: 0; }
.progress-dock strong { color: var(--acid); font: 950 15px/1.2 "Courier New", monospace; }
.progress-track { height: 16px; overflow: hidden; background: #3a3a3a; border: 2px solid var(--paper); }
.progress-track i { display: block; width: 0; height: 100%; background: var(--coral); transition: width .25s ease; }
.progress-dock button, .mark-button, .prompt-slab button, .text-button, .copy-button {
  border: 0;
  color: inherit;
  background: transparent;
  font: 900 10px/1.2 "Courier New", monospace;
  letter-spacing: .06em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
  cursor: pointer;
}

.opening-note, .series-map, .brief-lab, .finish-line { padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 88px); }
.opening-note { background: var(--acid); border-bottom: var(--line); }
.opening-note h2, .section-head h2, .brief-copy h2, .finish-line h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 102px);
  font-weight: 950;
  letter-spacing: -.074em;
  line-height: .87;
}
.opening-note h2 em, .finish-line h2 em { color: var(--coral); font-style: normal; }
.opening-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 92px); margin-top: 48px; border-top: var(--line); }
.opening-grid p { margin: 0; padding-top: 24px; font-size: clamp(18px, 2vw, 25px); font-weight: 680; line-height: 1.42; }

.series-map { background: var(--paper); border-bottom: var(--line); }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 44px; margin-bottom: 46px; }
.section-head > p { max-width: 550px; margin: 0; font-size: 18px; font-weight: 650; line-height: 1.46; }
.part-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: var(--line); border-left: var(--line); box-shadow: var(--shadow); }
.part-grid a { display: grid; align-content: start; min-height: 250px; padding: 19px; background: var(--white); border-right: var(--line); border-bottom: var(--line); text-decoration: none; }
.part-grid a:nth-child(1), .part-grid a:nth-child(8) { background: var(--coral); }
.part-grid a:nth-child(2), .part-grid a:nth-child(9) { background: var(--acid); }
.part-grid a:nth-child(3) { background: var(--blue); }
.part-grid a:nth-child(4) { background: var(--violet); }
.part-grid a:nth-child(5) { background: var(--green); }
.part-grid a:nth-child(6) { color: var(--paper); background: var(--ink); }
.part-grid a:nth-child(7) { background: var(--pink); }
.part-grid a:nth-child(10) { color: var(--paper); background: var(--coral); }
.part-grid a:hover, .part-grid a:focus-visible { box-shadow: inset 0 0 0 7px currentColor; }
.part-grid span { font: 950 38px/1 "Courier New", monospace; }
.part-grid b { margin-top: 42px; font-size: 21px; letter-spacing: -.035em; line-height: .95; }
.part-grid small { margin-top: 10px; font: 850 10px/1.25 "Courier New", monospace; text-transform: uppercase; }

.brief-lab { display: grid; grid-template-columns: minmax(280px, .76fr) minmax(0, 1.24fr); gap: clamp(44px, 8vw, 110px); background: var(--blue); border-bottom: var(--line); }
.brief-copy > p:not(.section-index) { max-width: 520px; font-size: 18px; font-weight: 650; line-height: 1.48; }
.brief-formula { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 34px; }
.brief-formula span { padding: 8px; background: var(--paper); border: 2px solid var(--ink); font: 900 9px/1 "Courier New", monospace; }
.brief-form { padding: 26px; background: var(--paper); border: 4px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); }
.form-stamp { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: 2px dashed var(--ink); font: 900 10px/1.2 "Courier New", monospace; }
.form-stamp b[data-ready="true"] { color: #187538; }
.brief-form label { display: grid; gap: 7px; margin-top: 18px; font: 900 10px/1.2 "Courier New", monospace; letter-spacing: .04em; text-transform: uppercase; }
.brief-form input, .brief-form textarea { width: 100%; padding: 13px 14px; resize: vertical; color: var(--ink); background: white; border: 2px solid var(--ink); border-radius: 0; font: 650 16px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: none; }
.brief-form input:focus, .brief-form textarea:focus { outline: 4px solid var(--acid); outline-offset: 1px; }
.form-actions { display: flex; align-items: center; gap: 21px; margin-top: 24px; }
.text-button { color: var(--ink); }
.brief-output textarea { min-height: 300px; font-family: "Courier New", monospace; font-size: 13px; }
.copy-button { width: 100%; margin-top: 12px; padding: 13px; color: var(--ink); background: var(--acid); border: var(--line); text-decoration: none; }
.form-status { margin: 15px 0 0; font: 800 10px/1.4 "Courier New", monospace; }

.chapter-stack { background: var(--ink); }
.chapter { scroll-margin-top: 78px; padding: clamp(62px, 9vw, 112px) clamp(20px, 6vw, 88px); border-bottom: 4px solid var(--ink); }
.chapter-coral { background: var(--coral); }
.chapter-acid { background: var(--acid); }
.chapter-blue { background: var(--blue); }
.chapter-violet { background: var(--violet); }
.chapter-green { background: var(--green); }
.chapter-black { color: var(--paper); background: var(--ink); border-color: var(--paper); }
.chapter-pink { background: var(--pink); }
.chapter-gold { background: var(--gold); }
.chapter-signal { background: var(--white); }
.chapter-final { color: var(--paper); background: var(--coral); }
.chapter-head { display: grid; grid-template-columns: 140px 1fr auto; align-items: start; gap: clamp(20px, 4vw, 50px); padding-bottom: 32px; border-bottom: var(--line); }
.chapter-black .chapter-head, .chapter-final .chapter-head { border-color: var(--paper); }
.part-number { font: 950 clamp(76px, 10vw, 150px)/.72 "Courier New", monospace; letter-spacing: -.12em; }
.chapter-head p { margin: 0 0 13px; }
.chapter-head h2 { max-width: 1050px; margin: 0; font-size: clamp(43px, 6.2vw, 90px); font-weight: 950; letter-spacing: -.07em; line-height: .88; }
.mark-button { min-width: 125px; padding: 12px; color: var(--ink); background: var(--paper); border: var(--line); text-decoration: none; }
.chapter-black .mark-button, .chapter-final .mark-button { color: var(--paper); background: transparent; border-color: var(--paper); }
.mark-button[aria-pressed="true"] { color: var(--ink); background: var(--acid); box-shadow: 5px 5px 0 currentColor; }
.chapter-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: clamp(34px, 7vw, 100px); padding-top: 46px; }
.chapter-body-wide { grid-template-columns: minmax(0, 1.42fr) minmax(270px, .58fr); }
.lesson h3 { max-width: 900px; margin: 0; font-size: clamp(30px, 4vw, 57px); font-weight: 950; letter-spacing: -.055em; line-height: .93; }
.lesson > p { max-width: 910px; font-size: 18px; font-weight: 660; line-height: 1.52; }
.lesson ol { max-width: 900px; margin: 28px 0 0; padding: 0; counter-reset: lesson; list-style: none; border-top: var(--line); }
.chapter-black .lesson ol, .chapter-final .lesson ol { border-color: var(--paper); }
.lesson ol li { display: grid; grid-template-columns: 35px 1fr; gap: 12px; padding: 15px 0; border-bottom: var(--line); font-size: 16px; font-weight: 720; line-height: 1.4; }
.chapter-black .lesson ol li, .chapter-final .lesson ol li { border-color: var(--paper); }
.lesson ol li::before { counter-increment: lesson; content: counter(lesson, decimal-leading-zero); font: 900 11px/1.5 "Courier New", monospace; }
.receipt-card { align-self: start; padding: 24px; background: var(--paper); color: var(--ink); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); transform: rotate(1deg); }
.receipt-card > p:first-child { margin: 0; font: 900 11px/1 "Courier New", monospace; }
.receipt-card h3 { margin: 40px 0 20px; font-size: clamp(30px, 3.7vw, 52px); font-weight: 950; letter-spacing: -.06em; line-height: .9; }
.receipt-card ul { margin: 0; padding: 18px 0 0 18px; border-top: var(--line); font-size: 15px; font-weight: 760; line-height: 1.5; }
.receipt-card a, .official-link { display: inline-block; margin-top: 25px; font: 900 10px/1.3 "Courier New", monospace; text-underline-offset: 5px; text-transform: uppercase; }
.receipt-card-dark { background: var(--acid); }
.receipt-card-final { color: var(--ink); background: var(--acid); box-shadow: 10px 10px 0 var(--paper); }
.boundary { margin-top: 22px; padding-top: 13px; border-top: 2px dashed var(--ink); font: 900 10px/1.3 "Courier New", monospace; }
.field-test, .rule-strip, .phone-prop { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 44px; padding: 18px; background: var(--paper); border: var(--line); }
.field-test b, .rule-strip span, .phone-prop span { padding: 7px 9px; color: var(--paper); background: var(--ink); font: 900 10px/1 "Courier New", monospace; }
.field-test p { margin: 0; font-weight: 750; }
.rule-strip { justify-content: space-between; background: var(--ink); color: var(--paper); }
.rule-strip span { color: var(--ink); background: var(--acid); }
.prompt-slab { margin-top: 44px; color: var(--paper); background: var(--ink); border: var(--line); box-shadow: 8px 8px 0 var(--coral); }
.prompt-slab > div { display: flex; justify-content: space-between; padding: 13px 18px; color: var(--ink); background: var(--coral); border-bottom: 2px solid var(--paper); font: 900 10px/1 "Courier New", monospace; }
.prompt-slab button { color: var(--ink); }
.prompt-slab pre { margin: 0; padding: 24px; overflow-x: auto; white-space: pre-wrap; font: 700 13px/1.6 "Courier New", monospace; }

.model-duel, .engine-grid, .contract-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.model-duel > div, .contract-grid > div { display: grid; align-content: start; min-height: 240px; padding: 21px; background: var(--paper); border: var(--line); }
.model-duel span, .contract-grid span, .engine-grid span { font: 900 10px/1.2 "Courier New", monospace; letter-spacing: .06em; }
.model-duel strong { margin-top: 36px; font-size: 25px; line-height: .98; }
.model-duel p { font-size: 14px; font-weight: 650; line-height: 1.42; }
.model-duel a { margin-top: auto; font: 900 10px/1.2 "Courier New", monospace; text-underline-offset: 4px; text-transform: uppercase; }
.dated-note { max-width: 900px; margin-top: 20px !important; }
.contract-grid > div { min-height: 120px; }
.contract-grid b { margin-top: 22px; font-size: 16px; }
.bridge-table { margin-top: 30px; border-top: var(--line); border-left: var(--line); }
.bridge-table > div { display: grid; grid-template-columns: 150px 1fr 1fr; align-items: center; min-height: 100px; background: var(--paper); border-right: var(--line); border-bottom: var(--line); }
.bridge-table b, .bridge-table span, .bridge-table small { padding: 17px; }
.bridge-table b { font: 950 16px/1 "Courier New", monospace; }
.bridge-table span { font-size: 16px; font-weight: 750; border-left: var(--line); border-right: var(--line); }
.bridge-table small { font-size: 13px; font-weight: 700; line-height: 1.35; }
.engine-grid { grid-template-columns: repeat(3, 1fr); }
.engine-grid a { display: grid; align-content: start; min-height: 230px; padding: 20px; color: var(--ink); background: var(--acid); border: 3px solid var(--paper); text-decoration: none; }
.engine-grid a:nth-child(2) { background: var(--blue); }
.engine-grid a:nth-child(3) { background: var(--pink); }
.engine-grid strong { margin-top: 44px; font-size: 22px; line-height: .98; }
.engine-grid small { margin-top: auto; font: 800 10px/1.4 "Courier New", monospace; }
.shot-line, .state-rail { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.shot-line span, .state-rail span { padding: 10px; color: var(--ink); background: var(--paper); border: 2px solid currentColor; font: 900 10px/1 "Courier New", monospace; }
.chapter blockquote { max-width: 1000px; margin: 50px 0 0; padding: 26px 0 0; border-top: var(--line); font-size: clamp(25px, 4vw, 54px); font-weight: 950; letter-spacing: -.05em; line-height: .95; }
.state-rail span { background: var(--white); }
.phone-prop { justify-content: center; background: var(--blue); }
.phone-prop span { padding: 12px; }
.ship-loop { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 2px solid var(--paper); border-left: 2px solid var(--paper); }
.ship-loop div { display: grid; min-height: 150px; padding: 17px; border-right: 2px solid var(--paper); border-bottom: 2px solid var(--paper); }
.ship-loop span { font: 900 12px/1 "Courier New", monospace; }
.ship-loop b { margin-top: auto; font-size: 20px; }
.ship-loop small { margin-top: 6px; font: 800 9px/1.3 "Courier New", monospace; }
.source-pair { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.source-pair a { padding: 10px; border: 2px solid var(--paper); font: 900 10px/1.2 "Courier New", monospace; text-transform: uppercase; }
.final-declaration { display: grid; gap: 18px; margin-top: 52px; padding: 34px; color: var(--ink); background: var(--acid); border: 5px solid var(--ink); box-shadow: 12px 12px 0 var(--paper); }
.final-declaration p { margin: 0; font: 900 11px/1.2 "Courier New", monospace; }
.final-declaration strong { max-width: 1150px; font-size: clamp(34px, 5vw, 72px); letter-spacing: -.06em; line-height: .9; }
.final-declaration span { max-width: 850px; font-size: 17px; font-weight: 720; line-height: 1.45; }

.finish-line { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 50px; background: var(--ink); color: var(--paper); border-bottom: 2px solid var(--paper); }
.finish-actions { display: grid; justify-items: start; gap: 20px; }
.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 42px clamp(20px, 6vw, 88px) 28px; color: var(--paper); background: var(--ink); }
.footer-mark { color: var(--paper); }
.site-footer p { max-width: 700px; font: 800 10px/1.5 "Courier New", monospace; }
.site-footer nav { display: flex; justify-content: flex-end; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { font-size: 10px; font-weight: 900; text-underline-offset: 4px; text-transform: uppercase; }
.footer-note { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--paper); }
.site-footer [data-pointcast-network] { grid-column: 1 / -1; }

@keyframes ring-pulse { from { transform: scale(.92) rotate(-10deg); } to { transform: scale(1.05) rotate(10deg); } }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-machine { width: min(680px, 94%); justify-self: center; }
  .progress-dock { grid-template-columns: 180px 1fr auto; }
  .progress-dock > p { display: none; }
  .part-grid { grid-template-columns: repeat(2, 1fr); }
  .brief-lab { grid-template-columns: 1fr; }
  .brief-copy { max-width: 850px; }
  .chapter-head { grid-template-columns: 105px 1fr; }
  .chapter-head .mark-button { grid-column: 2; justify-self: start; }
  .engine-grid { grid-template-columns: 1fr; }
  .engine-grid a { min-height: 190px; }
}

@media (max-width: 760px) {
  .site-head { align-items: flex-start; }
  .site-nav { max-width: 62%; gap: 11px; }
  .site-nav a { font-size: 9px; }
  .hero { min-height: 0; padding-inline: 20px; }
  .hero-machine { width: 100%; min-height: 570px; padding-inline: 15px; transform: none; box-shadow: 8px 8px 0 var(--ink); }
  .machine-core { width: min(340px, 75vw); }
  .progress-dock { grid-template-columns: 145px 1fr; gap: 12px; }
  .progress-dock button { display: none; }
  .opening-grid, .section-head, .chapter-body, .chapter-body-wide, .finish-line { grid-template-columns: 1fr; }
  .part-grid { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--ink); }
  .part-grid a { min-height: 180px; }
  .part-grid b { margin-top: 24px; }
  .chapter { scroll-margin-top: 70px; padding-inline: 16px; }
  .chapter-head { grid-template-columns: 78px 1fr; gap: 15px; }
  .part-number { font-size: 68px; }
  .receipt-card { max-width: 520px; transform: none; }
  .model-duel, .contract-grid { grid-template-columns: 1fr; }
  .bridge-table > div { grid-template-columns: 1fr; }
  .bridge-table span { border: 0; border-top: var(--line); border-bottom: var(--line); }
  .ship-loop { grid-template-columns: 1fr 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
  .footer-note { grid-column: 1; }
}

@media (max-width: 480px) {
  .site-head { padding: 12px 14px; }
  .wordmark { width: 100px; font-size: 17px; }
  .wordmark span:last-child { margin-left: 21px; }
  .site-nav { max-width: 57%; }
  .site-nav a:nth-child(2), .site-nav a:nth-child(3) { display: none; }
  .hero { padding: 50px 14px 64px; }
  .hero h1 { font-size: clamp(48px, 15.5vw, 72px); }
  .hero-deck { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-machine { min-height: 500px; border-width: 3px; }
  .machine-core { width: min(280px, 73vw); margin-top: 42px; box-shadow: inset 0 0 0 16px var(--coral), inset 0 0 0 20px var(--ink); }
  .machine-core strong { font-size: 114px; }
  .machine-core i { font-size: 9px; }
  .hero-machine ol { grid-template-columns: 1fr; }
  .hero-machine li:nth-child(odd) { border-right: 0; }
  .hero-machine li:nth-child(n+2) { border-top: var(--line); }
  .hero-machine li:nth-child(n+4) { display: none; }
  .progress-dock { grid-template-columns: 1fr; padding: 10px 14px; }
  .progress-dock > div:first-child p { display: none; }
  .opening-note, .series-map, .brief-lab, .finish-line { padding-inline: 14px; }
  .opening-note h2, .section-head h2, .brief-copy h2, .finish-line h2 { font-size: 48px; }
  .brief-form { padding: 17px; box-shadow: 6px 6px 0 var(--ink); }
  .form-stamp { flex-direction: column; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .chapter-head { grid-template-columns: 1fr; }
  .chapter-head .mark-button { grid-column: 1; }
  .chapter-head h2 { font-size: 44px; }
  .receipt-card { padding: 19px; box-shadow: 6px 6px 0 var(--ink); }
  .prompt-slab pre { padding: 16px; font-size: 11px; }
  .model-duel > div { min-height: 210px; }
  .ship-loop { grid-template-columns: 1fr; }
  .final-declaration { padding: 22px; box-shadow: 6px 6px 0 var(--paper); }
  .rule-strip { align-items: flex-start; flex-direction: column; }
}

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

@media (prefers-contrast: more) {
  :root { --line: 4px solid var(--ink); }
  .hero-machine, .part-grid, .brief-form, .receipt-card { box-shadow: none; }
}

@media print {
  .site-head, .hero-machine, .progress-dock, .hero-actions, .part-grid, .brief-lab, .mark-button, .prompt-slab button, .site-footer, .finish-actions { display: none !important; }
  .hero, .opening-note, .series-map, .chapter, .finish-line { display: block; min-height: 0; padding: 24px 0; color: #000; background: #fff; border: 0; }
  .chapter-head, .chapter-body, .chapter-body-wide { display: block; }
  .receipt-card, .prompt-slab, .model-duel > div, .engine-grid a, .final-declaration { color: #000; background: #fff; box-shadow: none; break-inside: avoid; }
  .chapter { break-before: page; }
}
