:root {
  --ink: #121212;
  --paper: #f5f1e8;
  --paper-strong: #fffdf8;
  --red: #8d1f2d;
  --red-dark: #61141e;
  --steel: #30475c;
  --muted: #6b675f;
  --line: rgba(18, 18, 18, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #c89129; outline-offset: 4px; }
img, svg { display: block; max-width: 100%; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--paper-strong);
  padding: .7rem 1rem;
  border: 2px solid var(--ink);
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 232, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  width: min(1180px, calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--red);
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: -.05em;
}
.nav-toggle { display: none; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a {
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--red); }
.nav-links .nav-cta {
  padding: .62rem .9rem;
  border: 1px solid var(--ink);
}

.wrap { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 2.5rem)); margin: 0 auto; }
.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.section-tight { padding: 3.5rem 0; }
.section-dark { background: var(--ink); color: var(--paper-strong); }
.section-white { background: var(--paper-strong); }
.rule-top { border-top: 1px solid var(--line); }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-dark .eyebrow { color: #e2a2aa; }
h1, h2, h3 { margin: 0; font-family: var(--serif); line-height: 1.06; letter-spacing: -.025em; }
h1 { font-size: clamp(3.4rem, 8vw, 7.3rem); max-width: 11ch; }
h2 { font-size: clamp(2.35rem, 5vw, 4.7rem); max-width: 14ch; }
h3 { font-size: clamp(1.4rem, 2vw, 2rem); }
p { margin: 0 0 1.15rem; }
.lede { max-width: 760px; font-family: var(--serif); font-size: clamp(1.25rem, 2.1vw, 1.72rem); line-height: 1.45; }
.measure { max-width: 700px; }
.muted { color: var(--muted); }
.section-dark .muted { color: #bdb9b0; }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image:
    linear-gradient(to right, transparent 49.8%, var(--ink) 50%, transparent 50.2%),
    linear-gradient(to bottom, transparent 49.8%, var(--ink) 50%, transparent 50.2%);
  background-size: 8rem 8rem;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  padding: 5rem 0;
}
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.author-line {
  margin: 1rem 0 0;
  color: var(--red);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-subtitle {
  max-width: 650px;
  margin-top: 1.6rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.1vw, 1.8rem);
  line-height: 1.45;
}
.hero-meta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; color: var(--muted); font-size: .9rem; }
.hero-meta span { padding-top: .45rem; border-top: 1px solid var(--ink); }
.hero-figure {
  min-height: 540px;
  position: relative;
  border-left: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: var(--paper-strong);
  box-shadow: 22px 22px 0 rgba(141,31,45,.10);
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-figure::before,
.hero-figure::after { content: ""; position: absolute; left: -16%; right: -16%; height: 1px; background: var(--ink); }
.hero-figure::before { top: 18%; }
.hero-figure::after { bottom: 18%; }
.figure-number {
  font-family: var(--serif);
  font-size: clamp(8rem, 19vw, 15rem);
  line-height: .72;
  color: var(--paper-strong);
  transform: translateY(.08em);
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(18,18,18,.26);
}
.figure-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  max-width: 14ch;
  color: var(--paper-strong);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(18,18,18,.75);
}

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--paper-strong);
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.button:hover { background: var(--red); border-color: var(--red); }
.button-secondary { background: transparent; color: var(--ink); }
.section-dark .button { background: var(--paper-strong); color: var(--ink); border-color: var(--paper-strong); }
.section-dark .button:hover { background: #e5ded0; }

.film-feature { overflow: hidden; }
.film-intro {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.film-intro h2 { max-width: 11ch; }
.film-intro .lede { margin-bottom: .8rem; color: #e5ded0; }
.film-meta {
  margin: 0;
  color: #aaa69f;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 18px 18px 0 var(--red-dark);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.film-note {
  max-width: 760px;
  margin: 2.2rem 0 0;
  color: #bdb9b0;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.signup-section { border-top: 1px solid var(--line); }
.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}
.signup-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--paper-strong);
  border-top: 4px solid var(--red);
  box-shadow: 16px 16px 0 rgba(141,31,45,.10);
}
.signup-form label {
  display: block;
  margin-bottom: .55rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.signup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; }
.signup-row input {
  min-height: 50px;
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: white;
  color: var(--ink);
  font: inherit;
}
.signup-row input:focus { outline: 3px solid #c89129; outline-offset: 2px; }
.signup-privacy, .signup-status { margin: .8rem 0 0; font-size: .82rem; color: var(--muted); }
.signup-status { min-height: 1.5em; font-weight: 700; }
.signup-status[data-state="success"] { color: #2f6848; }
.signup-status[data-state="error"] { color: var(--red); }
.signup-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.statement-grid, .two-col, .three-col, .rules-grid { display: grid; gap: 2rem; }
.statement-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 3rem; }
.big-question { font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 4.3rem); line-height: 1.12; }
.big-question em { color: var(--red); font-style: normal; }

.number-card, .principle-card, .media-card {
  border-top: 3px solid var(--ink);
  padding: 1.4rem 0;
}
.section-dark .number-card { border-color: var(--paper-strong); }
.card-number { color: var(--red); font-family: var(--serif); font-size: 2.5rem; line-height: 1; }
.number-card h3, .principle-card h3, .media-card h3 { margin: .65rem 0 .75rem; }

.parts-list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.opening-chapter { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.opening-chapter .chapter-line { border-top: 0; padding: 0; font-weight: 700; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0;
  font-weight: 700;
}
summary::-webkit-details-marker { display: none; }
.part-no { color: var(--red); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.part-toggle { font-size: 1.25rem; transition: transform .2s ease; }
details[open] .part-toggle { transform: rotate(45deg); }
.part-content { padding: 0 0 1.5rem 7rem; max-width: 850px; }
.chapter-line { margin: 0; padding: .38rem 0; border-top: 1px dotted var(--line); }
.chapter-description { margin: 0 0 .75rem; max-width: 72ch; color: var(--muted); font-size: .92rem; line-height: 1.6; }

.test-shell { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.test-panel { background: var(--paper-strong); color: var(--ink); padding: clamp(1.5rem, 4vw, 3rem); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .35rem; background: #ded8cd; margin: 1.5rem 0; }
.segmented button { border: 0; padding: .8rem; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--paper-strong); }
.test-result { min-height: 170px; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.test-result h3 { color: var(--red); margin-bottom: .8rem; }

.page-hero { padding: clamp(5rem, 10vw, 9rem) 0 4rem; border-bottom: 1px solid var(--line); }
.page-hero-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(46vw, 760px);
  background:
    linear-gradient(to right, var(--paper) 0%, rgba(245,241,232,.80) 26%, rgba(245,241,232,.14) 68%),
    url("/assets/architecture-power-art.webp") center 44% / cover no-repeat;
  opacity: .48;
  filter: saturate(.88);
}
.page-hero-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: min(39vw, 650px);
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.page-hero-art .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 13ch; font-size: clamp(3rem, 7vw, 6.2rem); }
.page-hero .lede { margin-top: 1.6rem; }
.page-hero .author-line + .lede { margin-top: .9rem; }
.breadcrumb { margin-bottom: 2.5rem; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.breadcrumb a { text-decoration: none; color: var(--red); }

.evidence-ladder { display: grid; gap: .7rem; margin-top: 2rem; counter-reset: evidence; }
.evidence-step {
  display: grid;
  grid-template-columns: 3.8rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.evidence-step::before {
  counter-increment: evidence;
  content: "0" counter(evidence);
  color: var(--red);
  font-family: var(--serif);
  font-size: 1.7rem;
}

.status-band { background: var(--red); color: white; padding: 1rem 0; }
.status-band .wrap { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.site-footer {
  position: relative;
  overflow: hidden;
  color: var(--paper-strong);
  padding: 4rem 0 2rem;
  background:
    linear-gradient(rgba(18,18,18,.92), rgba(18,18,18,.96)),
    url("/assets/architecture-power-art.webp") center 58% / cover no-repeat;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--red);
}
.site-footer .wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr .6fr; gap: 2rem; }
.footer-title { font-family: var(--serif); font-size: 2rem; max-width: 13ch; line-height: 1.1; }
.footer-links { display: grid; gap: .5rem; align-content: start; }
.footer-links a { color: #ded8cd; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: white; }
.social-links { gap: .65rem; }
.social-link { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; min-height: 28px; }
.social-link img { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 5px; }
.social-link:hover img { transform: translateY(-1px); }
.footer-meta { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.22); color: #aaa69f; font-size: .78rem; display: flex; justify-content: space-between; gap: 1rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; border: 1px solid var(--ink); background: transparent; padding: .55rem .7rem; font: inherit; font-size: .8rem; font-weight: 800; }
  .nav-links { display: none; position: absolute; left: 1rem; right: 1rem; top: 68px; flex-direction: column; align-items: stretch; background: var(--paper-strong); border: 1px solid var(--ink); padding: 1rem; }
  .nav-links.open { display: flex; }
  .hero-grid, .statement-grid, .test-shell, .two-col, .three-col, .rules-grid, .footer-grid, .film-intro, .signup-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-figure { min-height: 390px; width: min(420px, 82%); justify-self: end; }
  .page-hero-art::before { width: 62vw; opacity: .31; }
  .footer-grid { gap: 2.5rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: min(100% - 1.5rem, 1120px); }
  .brand { font-size: .88rem; }
  .brand-mark { width: 30px; height: 30px; }
  .hero-grid { padding: 3.5rem 0; }
  .hero-figure { min-height: 330px; width: 88%; }
  .page-hero-art::before { width: 78vw; opacity: .24; }
  h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  summary { grid-template-columns: 4.3rem 1fr auto; }
  .opening-chapter { grid-template-columns: 4.3rem 1fr; }
  .part-content { padding-left: 0; }
  .status-band .wrap, .footer-meta { flex-direction: column; }
  .video-frame { box-shadow: 8px 8px 0 var(--red-dark); }
  .signup-row { grid-template-columns: 1fr; }
  .signup-row .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
