:root {
  --black: #181a1c;
  --black-soft: #24272a;
  --paper: #e7e7e4;
  --paper-light: #f4f4f1;
  --white: #ffffff;
  --ink: #202326;
  --muted: #666c70;
  --accent: #828b91;
  --accent-dark: #4f585e;
  --signal: #a34d2f;
  --signal-dark: #713521;
  --line: rgba(32, 35, 38, 0.18);
  --max: 1440px;
  --nav-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper-light);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--accent-dark);
  color: var(--white);
}

.skip-link {
  position: fixed;
  z-index: 500;
  top: -70px;
  left: 18px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.site-nav {
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  left: 0;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(24, 26, 28, 0.92);
  backdrop-filter: blur(14px);
}

.nav-inner {
  width: min(100% - 64px, var(--max));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.nav-name {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-tagline {
  color: rgba(255, 255, 255, 0.58);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.74);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
}

.burger span,
.burger::before,
.burger::after {
  display: block;
  content: "";
  width: 20px;
  height: 1px;
  background: var(--white);
  transition: 0.2s ease;
}

.burger span {
  margin: 5px 0;
}

.burger.open span {
  opacity: 0;
}

.burger.open::before {
  transform: translateY(6px) rotate(45deg);
}

.burger.open::after {
  transform: translateY(-6px) rotate(-45deg);
}

section {
  scroll-margin-top: calc(var(--nav-h) - 1px);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: #060607;
  color: var(--white);
}

.hero::before {
  /* The trailer's end title: black, with the standing scratches of a worn print. */
  position: absolute;
  inset: 0;
  content: "";
  background-color: #060607;
  background-image:
    linear-gradient(rgba(190, 190, 186, 0.26), rgba(190, 190, 186, 0.26)),
    linear-gradient(rgba(190, 190, 186, 0.16), rgba(190, 190, 186, 0.16)),
    linear-gradient(rgba(190, 190, 186, 0.22), rgba(190, 190, 186, 0.22)),
    linear-gradient(rgba(190, 190, 186, 0.12), rgba(190, 190, 186, 0.12)),
    linear-gradient(rgba(190, 190, 186, 0.2), rgba(190, 190, 186, 0.2)),
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.045), transparent 62%);
  background-repeat: no-repeat;
  background-size: 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%, 100% 100%;
  background-position: 24.4% 0, 44.9% 0, 73.1% 0, 88.4% 0, 97.2% 0, 0 0;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.3;
  background-image: radial-gradient(rgba(255, 255, 255, 0.19) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 96px, var(--max));
  min-height: calc(100vh - var(--nav-h));
  margin: 0 auto;
  padding: 70px 0 86px;
  display: grid;
  grid-template-columns: minmax(520px, 1.04fr) minmax(440px, 0.96fr);
  align-items: center;
  gap: 52px;
}

.hero-copy {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 20px;
  color: #aeb5b9;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  /* The owner's note of 2026-09-26: say plainly that this is a book. */
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.2em;
}

.hero-title {
  margin: 0;
}

.hero-title-art {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
}

.hero-subtitle {
  max-width: 800px;
  margin: 26px 0 0;
  color: #dedcd6;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 600;
  letter-spacing: 0.32em;
  line-height: 1.75;
  text-transform: uppercase;
}

.hero-subtitle-lead,
.hero-subtitle-emphasis {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.hero-question {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--white);
  font-size: clamp(20px, 1.7vw, 26px);
  font-weight: 600;
  line-height: 1.45;
}

.hero-description {
  max-width: 710px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.75;
}

.hero-concepts {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-concept {
  --concept: var(--accent-dark);
  position: relative;
  padding: 8px 23px 8px 16px;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  clip-path: polygon(0 0, 93% 0, 100% 50%, 93% 100%, 0 100%, 4% 50%);
  background: var(--concept);
  color: var(--white);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-0.7deg);
}

.hero-concept:nth-child(even) {
  transform: rotate(0.7deg);
}

.hero-concept b {
  font-size: 11px;
  opacity: 0.65;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 5px 6px 0 rgba(163, 77, 47, 0.48);
  transform: translate(-2px, -2px);
}

.button-primary {
  background: var(--accent-dark);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #687278;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-cover-wrap {
  position: relative;
  justify-self: end;
  width: min(520px, 36vw);
}

.hero-cover {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(-18px 28px 42px rgba(0, 0, 0, 0.38));
}

.hero-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.fact-band {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 10, 10, 0.72);
}

.fact-band-inner {
  width: min(100% - 64px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  min-height: 132px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.fact:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.fact strong {
  color: var(--white);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 0.95;
}

.fact span {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-inner {
  width: min(100% - 96px, var(--max));
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  max-width: 1000px;
  margin: 0;
  color: var(--ink);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(52px, 6vw, 90px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.94;
  text-transform: uppercase;
}

.visual-title {
  position: relative;
  padding-left: 96px;
}

.visual-title::before {
  position: absolute;
  top: 0.02em;
  left: 0;
  width: 64px;
  height: 72px;
  display: grid;
  place-items: center;
  background: var(--signal);
  box-shadow: 8px 9px 0 rgba(24, 26, 28, 0.13);
  color: var(--white);
  content: attr(data-number);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 27px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

#book .visual-title::before,
#gates .visual-title::before,
#resources .visual-title::before {
  background: var(--accent-dark);
}

#ideas .visual-title::before {
  background: var(--signal);
  box-shadow: 8px 9px 0 rgba(255, 255, 255, 0.11);
}

#test .visual-title::before,
#contents .visual-title::before {
  background: var(--signal-dark);
}

#scenarios .visual-title::before {
  background: var(--black-soft);
}

.section-intro {
  max-width: 880px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

#trailer {
  padding: 72px 0 84px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--black);
  color: var(--paper);
}

#trailer .section-inner {
  display: grid;
  gap: 30px;
}

.trailer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}

#trailer .eyebrow {
  margin-bottom: 14px;
}

#trailer .section-title {
  color: var(--white);
  font-size: clamp(40px, 4.4vw, 64px);
}

.trailer-credit {
  margin: 0;
  color: #aeb5b9;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.trailer-frame {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5);
}

.trailer-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.trailer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0;
  color: #aeb5b9;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trailer-meta a {
  color: var(--paper);
  text-decoration-color: rgba(231, 231, 228, 0.5);
  text-underline-offset: 4px;
}

.trailer-meta a:hover,
.trailer-meta a:focus-visible {
  color: var(--white);
}

#brief {
  position: relative;
  overflow: hidden;
  padding: 94px 0 102px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
}

#brief::after {
  position: absolute;
  right: -130px;
  bottom: -210px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(79, 88, 94, 0.15);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 42px rgba(79, 88, 94, 0.035), 0 0 0 86px rgba(79, 88, 94, 0.025);
  pointer-events: none;
}

.brief-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(540px, 1.28fr);
  gap: 80px;
  align-items: start;
}

.brief-sequence {
  position: relative;
  z-index: 1;
  padding: 30px;
  border: 1px solid var(--line);
  border-top: 7px solid var(--signal);
  background: var(--white);
  box-shadow: 12px 14px 0 rgba(79, 88, 94, 0.12);
}

.decision-window {
  position: relative;
  width: 184px;
  aspect-ratio: 1;
  margin: 0 auto 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(79, 88, 94, 0.48);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--white) 0 25%, transparent 26%),
    repeating-conic-gradient(from -15deg, rgba(79, 88, 94, 0.28) 0 1deg, transparent 1deg 30deg);
}

.decision-window::before {
  position: absolute;
  width: 2px;
  height: 72px;
  bottom: 50%;
  left: calc(50% - 1px);
  background: var(--signal);
  content: "";
  transform: rotate(42deg);
  transform-origin: 50% 100%;
}

.decision-window::after {
  position: absolute;
  width: 17px;
  height: 17px;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: var(--signal-dark);
  content: "";
  box-shadow: 0 0 0 1px rgba(79, 88, 94, 0.35);
}

.decision-window span {
  position: relative;
  z-index: 2;
  margin-top: 72px;
  color: var(--ink);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brief-sequence p {
  margin: 0;
  color: var(--muted);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.55;
  text-transform: uppercase;
}

.brief-sequence p + p {
  margin-top: 17px;
}

.brief-sequence p::before {
  margin-right: 10px;
  color: var(--signal);
  content: "→";
}

.brief-sequence .rejected {
  color: #858a8d;
  text-decoration: line-through;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
}

.brief-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 5.8vw, 78px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.brief-copy .visual-title {
  padding-left: 94px;
}

.brief-copy h2 em {
  color: var(--signal-dark);
  font-weight: 500;
}

.brief-copy > p {
  max-width: 820px;
  margin: 27px 0 0;
  color: #3e4346;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 2.25vw, 32px);
  font-weight: 500;
  line-height: 1.4;
}

.brief-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#book {
  padding: 118px 0 124px;
  background: var(--paper);
}

.book-grid {
  display: grid;
  grid-template-columns: minmax(470px, 1.02fr) minmax(520px, 0.98fr);
  gap: 64px;
  align-items: start;
}

.book-cover-column {
  position: sticky;
  top: calc(var(--nav-h) + 36px);
}

.book-cover {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(32, 35, 38, 0.08);
  box-shadow: 0 28px 64px rgba(24, 27, 29, 0.14);
}

.book-status {
  margin: 18px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.book-heading {
  max-width: 850px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(45px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.03;
}

.book-deck {
  max-width: 840px;
  margin: 30px 0 0;
  color: #34383b;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 2.5vw, 35px);
  font-weight: 500;
  line-height: 1.32;
}

.book-copy {
  max-width: 820px;
  margin-top: 30px;
  columns: 2;
  column-gap: 42px;
  color: #50565a;
  font-size: 17px;
  line-height: 1.82;
}

.book-copy p {
  margin: 0 0 20px;
  break-inside: avoid;
}

.book-copy p:first-child::first-letter {
  float: left;
  margin: 6px 8px 0 0;
  color: var(--accent-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 74px;
  font-weight: 600;
  line-height: 0.68;
}

.book-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-dark {
  background: var(--black);
  color: var(--white);
}

.button-dark:hover,
.button-dark:focus-visible {
  background: var(--accent-dark);
}

.button-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.button-outline:hover,
.button-outline:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.reader-line {
  margin: 38px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.reader-line strong {
  color: var(--ink);
  font-weight: 700;
}

#ideas {
  position: relative;
  overflow: hidden;
  padding: 120px 0 132px;
  background: var(--black);
  color: var(--white);
}

#ideas::before {
  position: absolute;
  top: 125px;
  right: -170px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  content: "";
  transform: rotate(19deg);
}

#ideas::after {
  position: absolute;
  top: 310px;
  right: -40px;
  width: 330px;
  height: 5px;
  background: var(--signal);
  content: "";
  opacity: 0.5;
  transform: rotate(-31deg);
}

#ideas .section-inner,
#gates .section-inner {
  position: relative;
  z-index: 1;
}

#ideas .section-kicker {
  color: #aeb5b9;
}

#ideas .section-title {
  max-width: 1100px;
  color: var(--white);
}

#ideas .section-intro {
  color: rgba(255, 255, 255, 0.62);
}

.idea-list {
  margin-top: 72px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.idea {
  padding: 44px 0;
  display: grid;
  grid-template-columns: 110px minmax(260px, 0.7fr) minmax(420px, 1.3fr);
  gap: 40px;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.idea-number {
  color: var(--accent);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.idea h3 {
  margin: 0;
  color: var(--white);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 37px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.idea p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.75;
}

.idea strong {
  color: var(--white);
  font-weight: 600;
}

.theory-quote {
  max-width: 1120px;
  margin: 78px 0 0 auto;
  padding-left: 32px;
  border-left: 4px solid var(--accent);
  color: var(--paper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 4vw, 58px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.18;
}

#test {
  padding: 122px 0 126px;
  background: var(--paper-light);
}

.test-grid {
  margin-top: 62px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.test-card {
  min-height: 390px;
  padding: 38px 34px;
  border-right: 1px solid var(--line);
  border-top: 7px solid var(--accent-dark);
  background: var(--white);
}

.test-card:nth-child(2) {
  border-top-color: var(--signal);
}

.test-card:nth-child(3) {
  border-top-color: #8a7451;
}

.test-card:last-child {
  border-right: 0;
}

.test-label {
  display: block;
  color: var(--accent-dark);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.test-card h3 {
  margin: 74px 0 17px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.04;
  text-transform: uppercase;
}

.test-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.test-failure {
  margin-top: 26px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px !important;
  font-style: italic;
  line-height: 1.4 !important;
}

#gates {
  position: relative;
  overflow: hidden;
  padding: 118px 0 128px;
  background: var(--paper);
}

#gates::after {
  position: absolute;
  right: -180px;
  bottom: -200px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(79, 88, 94, 0.16);
  border-radius: 50%;
  content: "";
  background: repeating-conic-gradient(rgba(79, 88, 94, 0.06) 0 1deg, transparent 1deg 18deg);
  pointer-events: none;
}

.gates-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gate {
  position: relative;
  min-height: 270px;
  padding: 30px 30px 32px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--accent-dark);
  background: var(--white);
  box-shadow: 8px 10px 0 rgba(79, 88, 94, 0.09);
}

.gate::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -17px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--signal);
  content: "→";
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 21px;
  font-weight: 800;
  transform: translateY(-50%);
}

.gate:nth-child(3)::after,
.gate:nth-child(6)::after {
  display: none;
}

.gate-number {
  width: 49px;
  height: 49px;
  margin: 0 0 37px;
  display: grid;
  place-items: center;
  background: var(--accent-dark);
  color: var(--white);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.gate h3 {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
}

.gate p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.gate-rule {
  max-width: 1000px;
  margin: 65px auto 0;
  padding: 28px 34px;
  border-left: 7px solid var(--signal);
  background: var(--black-soft);
  color: var(--paper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

#scenarios {
  padding: 120px 0 132px;
  background-color: #e1e2e2;
  background-image:
    linear-gradient(rgba(79, 88, 94, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 88, 94, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
}

.scenario-grid {
  margin-top: 62px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.scenario-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 35px 38px;
  border: 1px solid var(--line);
  border-top: 7px solid var(--accent-dark);
  background: var(--paper-light);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.scenario-card:hover {
  border-color: var(--accent-dark);
  transform: translateY(-3px);
}

.scenario-card:nth-child(2) {
  border-top-color: var(--signal);
}

.scenario-card:nth-child(3) {
  border-top-color: #626657;
}

.scenario-card:nth-child(4) {
  border-top-color: #8a7451;
}

.scenario-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  min-height: 0;
}

.scenario-card::after {
  position: absolute;
  right: -18px;
  bottom: -70px;
  color: rgba(79, 88, 94, 0.1);
  content: attr(data-index);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 210px;
  font-weight: 900;
  line-height: 1;
}

.scenario-region {
  color: var(--accent-dark);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scenario-card h3 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 64px 0 17px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
}

.scenario-card p {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.simulation-shell {
  position: relative;
  margin-top: 64px;
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-h) + 18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0b0e0d;
  box-shadow: 16px 18px 0 rgba(24, 26, 28, 0.14);
  color: #d5ddcf;
}

.simulation-shell::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.022) 0,
    rgba(255, 255, 255, 0.022) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

.simulation-bar {
  position: relative;
  z-index: 3;
  min-height: 54px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: #151918;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.simulation-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.58);
}

.simulation-status::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d38b45;
  box-shadow: 0 0 14px rgba(211, 139, 69, 0.78);
  content: "";
  animation: signalPulse 1.8s ease-in-out infinite;
}

.simulation-classification {
  color: #d38b45;
}

.simulation-grid {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(230px, 0.36fr) minmax(520px, 1fr);
}

.simulation-controls {
  padding: 34px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: #101412;
}

.simulation-controls h3 {
  margin: 0;
  color: var(--white);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.simulation-controls p {
  margin: 16px 0 28px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  line-height: 1.65;
}

.terminal-tabs {
  display: grid;
  gap: 8px;
}

.terminal-tab {
  width: 100%;
  min-height: 56px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.terminal-tab span {
  color: rgba(211, 139, 69, 0.64);
  font-size: 11px;
}

.terminal-tab:hover,
.terminal-tab:focus-visible,
.terminal-tab[aria-pressed="true"] {
  border-color: rgba(211, 139, 69, 0.7);
  background: rgba(211, 139, 69, 0.09);
  color: var(--white);
  outline: none;
}

.terminal-screen {
  position: relative;
  min-width: 0;
  padding: 44px 46px 38px;
  background:
    radial-gradient(circle at 72% 28%, rgba(98, 108, 91, 0.13), transparent 34%),
    #090c0b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.terminal-meta {
  margin: 0 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: rgba(202, 215, 194, 0.46);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terminal-output {
  min-height: 318px;
  margin: 0;
  color: #b9c9ad;
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1.82;
  white-space: pre-wrap;
}

.terminal-line {
  display: block;
}

.terminal-line.is-alert {
  color: #e5aa68;
}

.terminal-line.is-order {
  color: #f0d2a5;
  font-weight: 700;
}

.terminal-line.is-control {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(211, 139, 69, 0.28);
  color: #d7dfd0;
}

.terminal-cursor {
  display: inline-block;
  width: 0.7em;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.16em;
  background: #d38b45;
  animation: cursorBlink 0.8s steps(1, end) infinite;
}

.simulation-note {
  position: relative;
  z-index: 3;
  margin: 0;
  padding: 17px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #151918;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes cursorBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes signalPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

#contents {
  padding: 118px 0 128px;
  background: var(--paper-light);
}

.contents-list {
  margin: 62px 0 0;
  border-top: 2px solid var(--ink);
}

.contents-part {
  border-bottom: 1px solid var(--line);
}

.contents-part summary {
  min-height: 104px;
  padding: 22px 46px 22px 0;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 28px;
  cursor: pointer;
  list-style: none;
}

.contents-part summary::-webkit-details-marker {
  display: none;
}

.contents-part summary::after {
  position: absolute;
  right: 4px;
  color: var(--signal-dark);
  content: "+";
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 32px;
  font-weight: 700;
}

.contents-part[open] summary::after {
  content: "−";
}

.contents-part summary {
  position: relative;
}

.contents-part summary span,
.contents-part summary small {
  color: var(--muted);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contents-part summary strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
}

.chapter-list {
  margin: 0;
  padding: 0 0 24px 120px;
  list-style: none;
}

.chapter-list li {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  border-top: 1px solid rgba(32, 35, 38, 0.1);
}

.chapter-list span {
  color: var(--signal-dark);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.chapter-list strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}

#resources {
  padding: 118px 0 128px;
  background: var(--paper);
}

.resource-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.resource-card {
  min-height: 315px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ink);
  background: var(--white);
}

.resource-card:nth-child(1) {
  box-shadow: 9px 11px 0 rgba(163, 77, 47, 0.2);
}

.resource-card:nth-child(2) {
  box-shadow: 9px 11px 0 rgba(79, 88, 94, 0.18);
}

.resource-card:nth-child(3) {
  box-shadow: 9px 11px 0 rgba(24, 26, 28, 0.14);
}

.resource-label {
  margin: 0;
  color: var(--signal-dark);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resource-card h3 {
  margin: 35px 0 15px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 37px;
  font-weight: 600;
  line-height: 1.05;
}

.resource-card > p:not(.resource-label) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.resource-card a {
  margin-top: auto;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.resource-card a span {
  float: right;
  color: var(--signal);
  font-size: 20px;
}

.citation-panel {
  margin-top: 70px;
  padding: 38px 42px;
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 55px;
  align-items: center;
  background: var(--black-soft);
  color: var(--white);
}

.citation-panel h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.08;
}

.citation-copy {
  padding-left: 34px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.citation-copy cite {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-style: normal;
  line-height: 1.5;
}

.copy-citation {
  margin-top: 20px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.copy-citation:hover,
.copy-citation:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.copy-status {
  min-height: 1.4em;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

#author {
  padding: 116px 0 124px;
  background: var(--black-soft);
  color: var(--white);
}

.author-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 86px;
  align-items: center;
}

.author-photo {
  width: 100%;
  aspect-ratio: 0.83;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.06);
}

#author .section-kicker {
  color: #aeb5b9;
}

.author-name {
  margin: 0;
  color: var(--white);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(58px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.88;
  text-transform: uppercase;
}

.author-lead {
  max-width: 790px;
  margin: 30px 0 0;
  color: var(--paper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 29px;
  line-height: 1.35;
}

.author-copy {
  max-width: 800px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  line-height: 1.82;
}

.author-tags {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.author-tag {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.72);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

footer {
  padding: 70px 0 34px;
  background: #101214;
  color: var(--white);
}

.footer-grid {
  padding-bottom: 54px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1fr 0.9fr;
  gap: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-title {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.footer-copy {
  max-width: 500px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.footer-heading {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.32);
  font-size: 12px;
  letter-spacing: 0.05em;
}

@media (max-width: 1120px) {
  .hero-inner {
    grid-template-columns: minmax(470px, 1.15fr) minmax(300px, 0.85fr);
    gap: 48px;
  }

  .book-grid {
    grid-template-columns: minmax(390px, 0.9fr) minmax(480px, 1.1fr);
    gap: 52px;
  }

  .idea {
    grid-template-columns: 80px minmax(220px, 0.7fr) minmax(350px, 1.3fr);
    gap: 30px;
  }

  .brief-grid {
    gap: 55px;
  }
}

@media (max-width: 1019px) {
  .book-grid {
    grid-template-columns: 1fr;
  }

  .book-cover-column {
    position: static;
    width: min(100%, 590px);
    margin: 0 auto;
  }
}

@media (max-width: 860px) {
  .nav-inner,
  .section-inner,
  .fact-band-inner,
  .hero-inner {
    width: min(100% - 40px, var(--max));
  }

  .brand-tagline {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    right: 0;
    left: 0;
    /* The blurred header contains fixed descendants; size the menu to the viewport. */
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    padding: 36px 24px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(24, 26, 28, 0.98);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    flex-shrink: 0;
    font-size: 22px;
  }

  .hero::before {
    inset: 0;
    opacity: 0.5;
  }

  .hero-inner {
    padding-top: 58px;
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-cover-wrap {
    justify-self: center;
    width: min(440px, 72vw);
  }

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

  .fact:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .book-grid,
  .author-grid,
  .brief-grid,
  .citation-panel {
    grid-template-columns: 1fr;
  }

  .brief-sequence {
    max-width: 520px;
  }

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

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

  .simulation-controls {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

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

  .resource-card {
    min-height: 275px;
  }

  .citation-copy {
    padding-top: 28px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .book-cover-column {
    position: static;
    max-width: 420px;
    margin: 0 auto;
  }

  .idea {
    grid-template-columns: 70px 1fr;
  }

  .idea p {
    grid-column: 2;
  }

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

  .test-card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .test-card:last-child {
    border-bottom: 0;
  }

  .test-card h3 {
    margin-top: 40px;
  }

  .author-photo {
    max-width: 420px;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 68px;
  }

  body {
    font-size: 16px;
  }

  .nav-inner,
  .section-inner,
  .fact-band-inner,
  .hero-inner {
    width: min(100% - 28px, var(--max));
  }

  .nav-name {
    font-size: 25px;
  }

  .hero-inner {
    padding: 58px 0 64px;
  }

  .eyebrow {
    font-size: 15px;
  }

  .hero-title-art {
    max-width: 100%;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-subtitle {
    letter-spacing: 0.2em;
  }

  .hero-concepts {
    gap: 7px;
  }

  .hero-concept {
    padding: 8px 19px 8px 13px;
    font-size: 12px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-cover-wrap {
    width: min(390px, 86vw);
  }

  .fact-band-inner {
    grid-template-columns: 1fr 1fr;
  }

  .fact {
    min-height: 112px;
    padding: 22px 16px;
  }

  .fact strong {
    font-size: 34px;
  }

  .fact span {
    margin-top: 9px;
    font-size: 13px;
  }

  #book,
  #brief,
  #ideas,
  #test,
  #gates,
  #scenarios,
  #contents,
  #resources,
  #author {
    padding: 84px 0 90px;
  }

  .brief-copy > p {
    font-size: 24px;
  }

  .section-title {
    font-size: 50px;
  }

  .visual-title,
  .brief-copy .visual-title {
    padding-left: 70px;
  }

  .visual-title::before {
    width: 48px;
    height: 56px;
    box-shadow: 6px 7px 0 rgba(24, 26, 28, 0.13);
    font-size: 21px;
  }

  .decision-window {
    width: 158px;
  }

  .section-intro {
    font-size: 18px;
  }

  .book-grid {
    gap: 52px;
  }

  .book-copy {
    columns: 1;
  }

  .idea-list {
    margin-top: 48px;
  }

  .idea {
    padding: 34px 0;
    grid-template-columns: 52px 1fr;
    gap: 18px;
  }

  .idea-number {
    font-size: 36px;
  }

  .idea h3 {
    font-size: 30px;
  }

  .idea p {
    font-size: 15px;
  }

  .theory-quote {
    margin-top: 52px;
    padding-left: 20px;
  }

  .test-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .simulation-shell {
    margin-top: 46px;
    box-shadow: 8px 10px 0 rgba(24, 26, 28, 0.14);
  }

  .simulation-bar {
    padding: 12px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .simulation-controls,
  .terminal-screen {
    padding: 27px 20px;
  }

  .terminal-tabs {
    grid-template-columns: 1fr;
  }

  .terminal-output {
    min-height: 340px;
    font-size: 12px;
    line-height: 1.78;
  }

  .test-card,
  .scenario-card {
    padding: 30px 24px;
  }

  .gates-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gate {
    min-height: 0;
    padding: 27px 24px 30px;
  }

  .gate::after {
    top: auto;
    right: auto;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  .gate:nth-child(3)::after {
    display: grid;
  }

  .gate-rule {
    margin-top: 48px;
    padding: 22px 10px;
    font-size: 23px;
  }

  .scenario-card {
    min-height: 300px;
  }

  .scenario-card h3 {
    margin-top: 48px;
    font-size: 34px;
  }

  .contents-part summary {
    grid-template-columns: 74px 1fr;
    gap: 16px;
  }

  .contents-part summary small {
    grid-column: 2;
  }

  .contents-part summary strong {
    font-size: 25px;
  }

  .chapter-list {
    padding-left: 0;
  }

  .chapter-list strong {
    font-size: 19px;
  }

  .citation-panel {
    padding: 30px 24px;
  }

  .author-grid {
    gap: 45px;
  }

  .author-lead {
    font-size: 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

/* ---------- Film page (film.html) ---------- */
.film-page main {
  background: var(--black);
}

/* The stage, as on theoct7.com/october-7-the-film.html: the trailer fills the width under the nav, the poster
   and the title stay until the viewer presses play. */
.film-stage {
  position: relative;
  padding-top: var(--nav-h);
  background: #050505;
}

.film-stage-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - var(--nav-h));
  overflow: hidden;
  background: #000;
}

.film-stage-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.film-stage-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.35s ease;
}

.film-stage-overlay {
  position: absolute;
  left: clamp(20px, 5vw, 104px);
  right: clamp(20px, 5vw, 104px);
  bottom: clamp(26px, 4vw, 56px);
  z-index: 3;
  max-width: min(38vw, 600px);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.film-stage-overlay a {
  pointer-events: auto;
}

.film-stage-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #e9e5dd;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.film-stage-crumbs a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.film-stage-crumbs span[aria-hidden] {
  color: rgba(255, 255, 255, 0.55);
}

.film-stage-title {
  margin: 0;
  max-width: 14ch;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2.3rem, 3.7vw, 4rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6);
}

.film-stage-kicker {
  margin: 14px 0 0;
  color: #e9e5dd;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.film-stage-duration {
  margin: 10px 0 0;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.film-stage-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.35s ease;
  backdrop-filter: blur(2px);
}

.film-stage-play::before {
  content: "";
  display: block;
  margin-left: 7px;
  border-style: solid;
  border-width: 15px 0 15px 26px;
  border-color: transparent transparent transparent #fff;
}

.film-stage-play:hover,
.film-stage-play:focus-visible {
  background: rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%) scale(1.05);
}

.film-stage-sound {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 0;
  background: rgba(18, 17, 15, 0.82);
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.film-stage-sound:hover,
.film-stage-sound:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #181714;
}

.film-stage.is-playing .film-stage-play,
.film-stage.is-playing .film-stage-overlay,
.film-stage.is-playing .film-stage-media::after {
  opacity: 0;
  pointer-events: none;
}

.film-stage.is-playing .film-stage-overlay a {
  pointer-events: none;
}

.film-section {
  padding: 72px 0 84px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--black);
  color: var(--paper);
}

.film-section .section-inner {
  display: grid;
  gap: 30px;
}

.film-section .eyebrow {
  margin-bottom: 14px;
}

.film-section .section-title {
  color: var(--white);
  font-size: clamp(40px, 4.4vw, 64px);
}

.film-section .trailer-note {
  max-width: 820px;
  margin: 0;
  color: #c9cdcf;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  line-height: 1.55;
}

.film-article {
  padding: 94px 0 102px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-light);
  color: var(--ink);
}

.film-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 64px;
  align-items: start;
}

.film-article-copy .section-title {
  margin-bottom: 26px;
  font-size: clamp(44px, 4.8vw, 72px);
}

.film-article-copy .film-deck {
  margin: 0 0 30px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  line-height: 1.45;
  color: var(--ink);
}

.film-article-copy p {
  max-width: 760px;
}

.film-quote {
  margin: 30px 0;
  padding: 6px 0 6px 28px;
  border-left: 3px solid var(--signal);
}

.film-quote p {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

.film-quote cite {
  display: block;
  margin-top: 10px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.film-credits {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 30px 32px 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.film-credits-heading {
  margin: 0 0 18px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.film-credits dl {
  margin: 0;
}

.film-credits dl div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.film-credits dt {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.film-credits dd {
  margin: 4px 0 0;
  font-size: 17px;
}

.film-credits dd a {
  color: var(--signal-dark);
}

@media (max-width: 900px) {
  .film-article-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .film-credits {
    position: static;
  }

  .film-stage-media {
    max-height: none;
  }

  .film-stage-overlay {
    position: static;
    max-width: none;
    padding: 20px 18px 30px;
    pointer-events: auto;
  }

  .film-stage.is-playing .film-stage-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .film-stage.is-playing .film-stage-overlay a {
    pointer-events: auto;
  }

  .film-stage-media::after {
    height: 30%;
  }

  .film-stage-play {
    width: 68px;
    height: 68px;
  }
}
