:root {
  /* Typography audit: Space Mono** wordmark uncovered by drafting ruler. IBM Plex Mono** annotations. Source Serif 4** short reflective paragraphs. Duotone photograph should wait on the right. */
  --font-audit-tokens: "Mono** 4**";
  --parchment: #F6F1E6;
  --chrome: #C9D0D4;
  --graphite: #1F2326;
  --nickel: #737D83;
  --blue: #2F6BFF;
  --amber: #F0B84A;
  --plum: #6D4C71;
  --mist: #E7ECEE;
  --steel: #AAB3B8;
  --white: #F9FBFA;
  --shadow: #8C969C;
  --metal: linear-gradient(110deg, #E7ECEE, #AAB3B8, #F9FBFA, #8C969C);
  --mono: "Space Mono", "Courier New", monospace;
  --plex: "IBM Plex Mono", "Courier New", monospace;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--graphite);
  background: var(--parchment);
  font-family: var(--plex);
  overflow-x: hidden;
}

.grid-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(115, 125, 131, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 125, 131, .16) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 23.8%, rgba(47, 107, 255, .20) 23.9% 24%, transparent 24.1% 100%);
  background-size: 42px 42px, 42px 42px, 100% 100%;
}

.chrome-ruler {
  position: fixed;
  top: 0;
  left: -32vw;
  width: 32vw;
  height: 100vh;
  z-index: 8;
  background: var(--metal);
  box-shadow: 0 0 30px rgba(31, 35, 38, .18), inset -1px 0 #F9FBFA;
  animation: rulerSweep 1.25s cubic-bezier(.78,0,.18,1) forwards;
  pointer-events: none;
}

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 24vw 1fr;
  min-height: 78px;
  border-bottom: 1px solid rgba(31, 35, 38, .35);
  background: rgba(246, 241, 230, .82);
  backdrop-filter: blur(10px);
}

.brand-reveal {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-left: 28px;
  border-right: 1px solid rgba(31, 35, 38, .24);
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 30px);
  letter-spacing: -.08em;
}

.brand-reveal span {
  transform: translateX(-105%);
  animation: revealBrand .95s .55s cubic-bezier(.76,0,.24,1) forwards;
}

.top-nav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.top-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-left: 1px solid rgba(31, 35, 38, .18);
  color: var(--graphite);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.top-nav a::after,
.choice::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 22px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}

.top-nav a:hover::after,
.choice:hover::after { transform: scaleX(1); }

.evidence-spine {
  position: fixed;
  top: 78px;
  left: 0;
  bottom: 0;
  width: 24vw;
  min-width: 260px;
  z-index: 5;
  padding: 34px 26px;
  border-right: 1px solid rgba(31, 35, 38, .28);
  background: rgba(246, 241, 230, .74);
}

.spine-rule {
  height: 7px;
  width: 100%;
  background: var(--metal);
  margin-bottom: 26px;
  box-shadow: 0 8px 20px rgba(31,35,38,.12);
}

.spine-kicker,
.chapter-number,
.argument-band,
.coordinate-panel,
.annotation-row,
.fork,
.chrome-tab,
.decision-plane span,
.decision-plane small {
  font-family: var(--mono);
  text-transform: uppercase;
}

.spine-kicker { color: var(--nickel); font-size: 11px; letter-spacing: .16em; }

.evidence-spine ol {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  counter-reset: notes;
}

.evidence-spine li {
  min-height: 50px;
  padding: 13px 0 13px 18px;
  border-top: 1px solid rgba(115, 125, 131, .28);
  color: var(--nickel);
  font-size: 11px;
  line-height: 1.45;
  transform: translateX(-8px);
  opacity: .58;
  transition: .35s ease;
}

.evidence-spine li.active {
  color: var(--blue);
  opacity: 1;
  transform: translateX(0);
  background: linear-gradient(90deg, rgba(47,107,255,.10), transparent);
}

.coordinate-panel {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 28px;
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--graphite);
  font-size: 11px;
}

main { position: relative; z-index: 1; }

.chapter {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 24vw) minmax(320px, .9fr) minmax(420px, 1.25fr);
  padding-top: 78px;
  background: rgba(246, 241, 230, .88);
  overflow: hidden;
}

.argument-band {
  grid-column: 2 / 4;
  height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
  border-bottom: 1px solid rgba(31, 35, 38, .35);
  border-right: 1px solid rgba(31, 35, 38, .15);
  background: linear-gradient(90deg, rgba(249,251,250,.72), rgba(201,208,212,.42));
  font-size: 12px;
  letter-spacing: .08em;
}

.chapter-copy {
  grid-column: 2;
  padding: 50px 38px 60px;
  align-self: stretch;
  border-right: 1px solid rgba(31, 35, 38, .2);
}

.chapter-number {
  display: inline-block;
  padding: 4px 10px;
  background: var(--graphite);
  color: var(--parchment);
  font-weight: 700;
  letter-spacing: .1em;
}

h1, h2 {
  margin: 24px 0 22px;
  font-family: var(--mono);
  font-size: clamp(42px, 6vw, 86px);
  line-height: .88;
  letter-spacing: -.09em;
  max-width: 760px;
}

h2 { font-size: clamp(40px, 5vw, 72px); }

.serif-lede,
blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.18;
  color: var(--graphite);
}

blockquote {
  margin: 40px 0 0;
  padding-left: 22px;
  border-left: 7px solid var(--amber);
}

.choice-line { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.choice {
  position: relative;
  border: 1px solid var(--graphite);
  background: rgba(249,251,250,.62);
  padding: 16px 24px;
  font-family: var(--mono);
  cursor: pointer;
  color: var(--graphite);
}

.choice.selected { background: var(--blue); color: var(--white); }

.visual-evidence {
  grid-column: 3;
  position: relative;
  min-height: calc(100vh - 164px);
  margin: 86px 0 0;
  overflow: hidden;
}

.photo-panel,
.truth-pane,
.decision-plane {
  position: absolute;
  inset: 8% 6% 9% 8%;
  border: 1px solid rgba(31,35,38,.28);
  box-shadow: 0 20px 50px rgba(31, 35, 38, .14);
  transform: translateX(24%);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .8s cubic-bezier(.76,0,.24,1), transform .8s cubic-bezier(.76,0,.24,1);
}

.chapter.in-view .photo-panel,
.chapter.in-view .truth-pane,
.chapter.in-view .decision-plane { clip-path: inset(0 0 0 0); transform: translateX(0); }

.photo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(249,251,250,.9) 0 8%, transparent 9%),
    radial-gradient(ellipse at 70% 32%, rgba(31,35,38,.22) 0 13%, transparent 14%),
    linear-gradient(135deg, rgba(109,76,113,.88), rgba(246,241,230,.54) 48%, rgba(47,107,255,.5)),
    repeating-linear-gradient(24deg, rgba(31,35,38,.16) 0 10px, transparent 11px 34px);
  mix-blend-mode: multiply;
}

.photo-panel::after {
  content: "EVIDENCE PHOTO / DUOTONE";
  position: absolute;
  left: 18px;
  bottom: 18px;
  font: 700 12px var(--mono);
  color: var(--white);
  background: rgba(31,35,38,.68);
  padding: 8px 10px;
}

.panel-desk { background: linear-gradient(140deg, #F6F1E6, #6D4C71); }
.panel-hands { background: conic-gradient(from 90deg, #F6F1E6, #6D4C71, #C9D0D4, #F6F1E6); }
.panel-tools { inset: 36% 14% 8% 38%; background: linear-gradient(100deg, #E7ECEE, #2F6BFF, #6D4C71); }

.evidence-strip {
  position: absolute;
  right: 10%;
  width: 76%;
  height: 13%;
  background: var(--metal);
  border: 1px solid rgba(31,35,38,.22);
  transform: translateX(120%);
  animation: stripSlide .9s 1.05s cubic-bezier(.76,0,.24,1) forwards;
}
.strip-one { top: 22%; }
.strip-two { top: 48%; animation-delay: 1.25s; background: linear-gradient(90deg, #6D4C71, #F6F1E6); }

.loupe {
  position: absolute;
  right: 12%;
  top: 56%;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 1px solid var(--graphite);
  background: rgba(249,251,250,.58);
  display: grid;
  place-items: center;
  font: 700 12px var(--mono);
  color: var(--blue);
  box-shadow: inset 0 0 0 14px rgba(201,208,212,.35);
}

.slide-card {
  position: absolute;
  top: 13%;
  left: 6%;
  right: 30%;
  z-index: 2;
  padding: 24px;
  background: rgba(249,251,250,.8);
  border: 1px solid var(--graphite);
  transform: translateX(35%);
  transition: transform .7s ease;
}
.chapter.in-view .slide-card { transform: translateX(0); }
.slide-card b { display: block; font: 700 13px var(--mono); color: var(--blue); margin-bottom: 16px; }
.slide-card em { font: 600 28px/1.05 var(--serif); }

.annotation-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  font-size: 12px;
}
.annotation-row i { height: 2px; background: var(--blue); }
.annotation-row.amber i { background: var(--amber); }

.truth-pane {
  inset: 14% 52% 16% 7%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(145deg, rgba(246,241,230,.8), rgba(109,76,113,.72));
  font: 700 34px var(--mono);
  color: var(--white);
}
.truth-pane.right { inset: 22% 7% 8% 50%; transition-delay: .16s; background: linear-gradient(145deg, rgba(231,236,238,.9), rgba(47,107,255,.72)); }
.truth-pane span { font: 400 18px var(--serif); color: var(--white); }
.mirror-arrow { position: absolute; top: 46%; left: 47%; font: 700 56px var(--mono); color: var(--blue); }

.fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}
.fork span { padding: 18px; border-top: 2px solid var(--graphite); background: rgba(240,184,74,.18); }

.folded-model {
  position: absolute;
  top: 12%;
  left: 12%;
  width: 54%;
  height: 48%;
  background: linear-gradient(135deg, #F9FBFA 0 49%, #C9D0D4 50% 100%);
  clip-path: polygon(0 18%, 54% 0, 100% 28%, 84% 100%, 18% 84%);
  border: 1px solid var(--graphite);
  transform: rotate(-8deg);
  box-shadow: 20px 28px 0 rgba(109,76,113,.22);
}
.chrome-tab {
  position: absolute;
  top: 18%;
  right: 9%;
  padding: 16px 34px;
  background: var(--metal);
  border: 1px solid rgba(31,35,38,.25);
  font-size: 12px;
  animation: shimmer 2.6s linear infinite;
}

.decision-plane {
  inset: 17% 8% 14% 2%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
  background: var(--metal);
}
.decision-plane strong { font: 700 clamp(44px, 8vw, 112px)/.88 var(--mono); letter-spacing: -.1em; }
.decision-plane span { color: var(--blue); font-weight: 700; margin-bottom: 22px; }
.decision-plane small { margin-top: 20px; color: var(--nickel); letter-spacing: .12em; }

@keyframes rulerSweep { 0% { left: -32vw; } 62% { left: 0; } 100% { left: 115vw; } }
@keyframes revealBrand { to { transform: translateX(0); } }
@keyframes stripSlide { to { transform: translateX(0); } }
@keyframes shimmer { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }

@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr; }
  .top-nav { display: none; }
  .evidence-spine { display: none; }
  .chapter { grid-template-columns: 1fr; padding-top: 78px; }
  .argument-band, .chapter-copy, .visual-evidence { grid-column: 1; }
  .visual-evidence { min-height: 54vh; margin-top: 0; }
}
