:root {
  --paper: #f2ecdf;
  --paper-deep: #e6ddca;
  --paper-light: #fbf7ef;
  --ink: #171713;
  --ink-soft: #34332e;
  --muted: #6f695e;
  --faint: #9a9285;
  --rule: #c9bfad;
  --rule-strong: #8e8677;
  --accent: #c9472d;
  --accent-dark: #96341f;
  --accent-soft: #f0d1c5;
  --moss: #53644f;
  --moss-soft: #d9dfd3;
  --night: #20201c;
  --night-soft: #2c2d28;
  --serif: "Iowan Old Style", "Baskerville", "Songti SC", "STSong",
    "Noto Serif SC", Georgia, serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  --mono: "SFMono-Regular", "Menlo", "Consolas", monospace;
  --topbar: 66px;
  --reading-max: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 76px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgb(114 103 82 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(114 103 82 / 4%) 1px, transparent 1px),
    var(--paper);
  background-size: 88px 88px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 2px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 120ms linear;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(260px, 1fr);
  gap: 24px;
  align-items: center;
  min-height: var(--topbar);
  padding: 9px 22px;
  border-bottom: 1px solid rgb(142 134 119 / 54%);
  background: rgb(242 236 223 / 90%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: -4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mode-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--rule);
  background: rgb(251 247 239 / 64%);
}

.mode-switch button {
  padding: 6px 13px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.mode-switch button.active {
  background: var(--ink);
  color: var(--paper);
}

.topbar-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.source-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.source-picker select {
  max-width: min(28vw, 390px);
  padding: 7px 30px 7px 10px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: rgb(255 252 245 / 66%);
  color: var(--ink);
}

.search-box {
  width: min(18vw, 230px);
}

.search-box input {
  width: 100%;
  padding: 8px 0 7px;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  outline: 0;
  background: transparent;
}

.search-box input:focus {
  border-color: var(--accent);
}

.icon-button {
  display: none;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  background: transparent;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(230px, 274px) minmax(0, 1fr) minmax(238px, 286px);
  min-height: calc(100svh - var(--topbar));
}

.route-panel,
.evidence-panel {
  min-width: 0;
  padding: 26px 20px 70px;
}

.route-panel {
  border-right: 1px solid var(--rule);
  background: rgb(230 221 202 / 48%);
}

.evidence-panel {
  position: sticky;
  top: var(--topbar);
  align-self: start;
  max-height: calc(100svh - var(--topbar));
  overflow: auto;
  border-left: 1px solid var(--rule);
  background: rgb(242 236 223 / 70%);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.route-content,
.evidence-content {
  display: grid;
  gap: 3px;
}

.route-link {
  position: relative;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 11px 8px 11px 0;
  border: 0;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  background: transparent;
  text-align: left;
}

.route-link:hover,
.route-link.active {
  border-color: var(--rule);
  background: rgb(251 247 239 / 58%);
}

.route-link.active {
  box-shadow: inset 2px 0 var(--accent);
}

.route-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.route-copy strong,
.route-copy small {
  display: block;
}

.route-copy strong {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.4;
}

.route-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.route-scene-meta {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
}

.route-scene-meta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
}

.reading-panel {
  min-width: 0;
  overflow: hidden;
}

.reader-toolbar {
  position: sticky;
  top: var(--topbar);
  z-index: 50;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 50px;
  padding: 10px clamp(20px, 4.2vw, 66px);
  border-bottom: 1px solid rgb(201 191 173 / 72%);
  background: rgb(242 236 223 / 90%);
  backdrop-filter: blur(18px);
}

.breadcrumb {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-position {
  flex: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.reader {
  width: min(100%, var(--reading-max));
  min-width: 0;
  min-height: 80vh;
  margin: 0 auto;
  padding: 0 clamp(22px, 5.5vw, 74px) 150px;
}

.scene-cover {
  position: relative;
  min-height: calc(100svh - var(--topbar) - 50px);
  padding: clamp(62px, 9vh, 105px) 0 72px;
  border-bottom: 1px solid var(--rule-strong);
}

.scene-cover::before {
  position: absolute;
  top: 32px;
  right: 0;
  width: min(28vw, 250px);
  height: min(28vw, 250px);
  border: 1px solid rgb(201 71 45 / 18%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.scene-cover > * {
  opacity: 0;
  transform: translateY(14px);
  animation: cover-in 520ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

.scene-cover > :nth-child(1) {
  animation-delay: 40ms;
}

.scene-cover > :nth-child(2) {
  animation-delay: 100ms;
}

.scene-cover > :nth-child(3) {
  animation-delay: 160ms;
}

.scene-cover > :nth-child(4) {
  animation-delay: 220ms;
}

.scene-cover > :nth-child(5) {
  animation-delay: 280ms;
}

.scene-cover > :nth-child(6) {
  animation-delay: 340ms;
}

.cover-eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cover-title {
  max-width: 9.8em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 94px);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.052em;
}

.cover-title em {
  color: var(--accent);
  font-style: normal;
}

.cover-kicker {
  max-width: 36em;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(20px, 2.25vw, 29px);
  line-height: 1.55;
}

.thesis-band {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 26px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}

.thesis-band strong {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.thesis-band p {
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
}

.tension-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 46px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.tension-side small,
.tension-side strong,
.tension-side span {
  display: block;
}

.tension-side small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.tension-side strong {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 27px);
}

.tension-side span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.tension-axis {
  position: relative;
  height: 1px;
  background: var(--rule-strong);
}

.tension-axis::before,
.tension-axis::after {
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rule-strong);
  content: "";
}

.tension-axis::before {
  left: 0;
}

.tension-axis::after {
  right: 0;
  background: var(--accent);
}

.state-shift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.state-node {
  padding: 15px 0;
}

.state-node small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
}

.state-node p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.state-arrow {
  color: var(--accent);
  font-family: var(--mono);
  text-align: center;
}

.cover-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 11px;
}

.route-overview {
  padding: 68px 0 78px;
  border-bottom: 1px solid var(--rule-strong);
}

.route-overview-head {
  display: grid;
  grid-template-columns: 114px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.route-overview-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.25;
}

.route-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}

.route-stop {
  position: relative;
  min-height: 148px;
  padding: 17px 18px 10px 0;
  border-right: 1px solid var(--rule);
}

.route-stop:last-child {
  border-right: 0;
}

.route-stop::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.route-stop span,
.route-stop strong,
.route-stop small {
  display: block;
}

.route-stop span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.route-stop strong {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.4;
}

.route-stop small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.key-moments {
  display: grid;
}

.key-moment {
  padding: clamp(76px, 10vw, 118px) 0;
  border-bottom: 1px solid var(--rule-strong);
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.key-moment.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.moment-heading {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.moment-index {
  padding-top: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.moment-index span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  letter-spacing: 0;
}

.moment-question {
  max-width: 12.5em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 59px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.moment-summary {
  max-width: 42em;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.turn-chain {
  display: grid;
  gap: 0;
  margin: 48px 0 54px 142px;
  border-top: 1px solid var(--rule-strong);
}

.turn-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 22px;
  padding: 21px 0;
  border-bottom: 1px solid var(--rule);
}

.turn-time {
  padding-top: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.turn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.turn-meta strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
}

.turn-row blockquote {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.68;
}

.analysis-board {
  margin-left: 142px;
  border-top: 1px solid var(--rule-strong);
}

.analysis-primary {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0 31px;
  border-bottom: 1px solid var(--rule);
}

.analysis-primary h3,
.analysis-matrix h3,
.branch-section h3,
.takeaway-item h3 {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.analysis-primary p {
  margin: 0;
  font-size: 17px;
  line-height: 1.9;
}

.analysis-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.analysis-item {
  padding: 24px 24px 26px 0;
  border-right: 1px solid var(--rule);
}

.analysis-item:nth-child(even) {
  padding-right: 0;
  padding-left: 24px;
  border-right: 0;
}

.analysis-item p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.82;
}

.effect-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.effect-item {
  padding: 21px 20px 23px 0;
  border-right: 1px solid var(--rule);
}

.effect-item:not(:first-child) {
  padding-left: 20px;
}

.effect-item:last-child {
  border-right: 0;
}

.effect-item small,
.effect-item strong {
  display: block;
}

.effect-item small {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.effect-item strong {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.72;
}

.branch-section {
  padding: 36px 0 38px;
  border-bottom: 1px solid var(--rule);
}

.branch-section > h3 {
  margin-bottom: 18px;
}

.branch-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.branch-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  background: var(--paper-light);
}

.branch-item > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.branch-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
}

.branch-item p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.branch-item small {
  display: block;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.moment-takeaway {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  margin-top: 38px;
  background: var(--night);
  color: #f5efe3;
}

.takeaway-item {
  padding: 28px 30px 31px;
}

.takeaway-item:first-child {
  border-right: 1px solid rgb(245 239 227 / 19%);
}

.takeaway-item h3 {
  color: rgb(245 239 227 / 58%);
}

.takeaway-item p {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.72;
}

.takeaway-item:last-child p {
  color: rgb(245 239 227 / 76%);
  font-family: var(--sans);
  font-size: 13px;
}

.micro-link {
  margin-top: 24px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.micro-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.synthesis-section {
  padding: clamp(80px, 10vw, 120px) 0 40px;
}

.synthesis-heading {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.synthesis-heading h2 {
  max-width: 12em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(35px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.036em;
}

.synthesis-copy {
  margin: 32px 0 0 142px;
}

.synthesis-copy p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 52px 0 0 142px;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.pattern-step {
  min-height: 250px;
  padding: 22px 18px 24px 0;
  border-right: 1px solid var(--rule);
}

.pattern-step:not(:first-child) {
  padding-left: 18px;
}

.pattern-step:last-child {
  border-right: 0;
}

.pattern-step span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.pattern-step h3 {
  margin: 31px 0 0;
  font-family: var(--serif);
  font-size: 19px;
}

.pattern-step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.68;
}

.synthesis-close {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  margin: 44px 0 0 142px;
  padding: 32px 0 0;
  border-top: 1px solid var(--rule);
}

.synthesis-close blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.5;
}

.synthesis-boundary {
  padding-left: 24px;
  border-left: 2px solid var(--accent);
}

.synthesis-boundary strong {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.synthesis-boundary p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.evidence-card {
  padding: 17px 0;
  border-top: 1px solid var(--rule);
}

.evidence-card:first-child {
  border-top: 0;
}

.evidence-card small,
.evidence-card span,
.evidence-card strong {
  display: block;
}

.evidence-card small {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.evidence-card strong {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.45;
}

.evidence-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.62;
}

.evidence-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.evidence-stat {
  padding: 14px 12px;
  background: var(--paper-light);
}

.evidence-stat strong,
.evidence-stat small {
  display: block;
}

.evidence-stat strong {
  font-family: var(--serif);
  font-size: 22px;
}

.evidence-stat small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.evidence-principle {
  padding: 18px;
  background: var(--night);
  color: var(--paper);
}

.evidence-principle small {
  color: rgb(245 239 227 / 58%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.evidence-principle p {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
}

.evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.evidence-links button {
  padding: 3px 0;
  border: 0;
  border-bottom: 1px dotted var(--rule-strong);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.evidence-links button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.view-switch {
  display: flex;
  gap: 14px;
  flex: none;
}

.view-switch button {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.view-switch button.active {
  border-color: var(--accent);
  color: var(--ink);
}

.micro-scene {
  padding-top: 74px;
}

.micro-scene h1,
.reader-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 5.7vw, 72px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.micro-scene > p {
  max-width: 42em;
  color: var(--muted);
}

.micro-timeline {
  display: grid;
  margin-top: 42px;
  border-top: 1px solid var(--rule-strong);
}

.micro-timeline button {
  display: grid;
  grid-template-columns: 92px 92px minmax(0, 1fr);
  gap: 16px;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  text-align: left;
}

.micro-timeline button:hover {
  background: rgb(251 247 239 / 64%);
}

.micro-timeline time {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.micro-timeline small {
  color: var(--muted);
}

.reader-hero {
  position: relative;
  padding: 72px 0 38px;
  border-bottom: 1px solid var(--rule);
}

.reader-hero::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 72px;
  height: 3px;
  background: var(--accent);
  content: "";
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.reader-hero .quote {
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.7;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.analysis-section {
  display: grid;
  grid-template-columns: minmax(100px, 128px) minmax(0, 1fr);
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid rgb(201 191 173 / 72%);
}

.analysis-section > h2 {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.analysis-body {
  min-width: 0;
  font-size: 15px;
}

.term-list,
.alternative-list {
  display: grid;
  gap: 14px;
}

.term {
  display: grid;
  grid-template-columns: minmax(80px, 130px) 1fr;
  gap: 14px;
}

.term code {
  font-family: var(--mono);
  font-size: 12px;
}

.alternative {
  padding-left: 16px;
  border-left: 2px solid var(--rule-strong);
}

.alternative.deep {
  border-color: var(--accent);
}

.alternative b {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.template {
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--night);
  color: #f5efe3;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
}

.reader-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.reader-actions button,
.text-button {
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  background: none;
}

.reader-actions button:hover,
.text-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.micro-index {
  display: grid;
  gap: 20px;
  margin-top: 38px;
}

.micro-index section {
  padding-top: 15px;
  border-top: 1px solid var(--rule);
}

.micro-index h3 {
  margin: 0 0 9px;
  font-size: 13px;
}

.micro-index button {
  margin: 0 8px 7px 0;
  padding: 0;
  border: 0;
  border-bottom: 1px dotted var(--rule-strong);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.mobile-route-sheet {
  position: fixed;
  inset: var(--topbar) 0 0;
  z-index: 95;
  overflow: auto;
  padding: 24px;
  background: var(--paper);
}

.mobile-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.mobile-sheet-header button {
  padding: 5px 8px;
  border: 1px solid var(--rule);
  background: transparent;
}

@keyframes cover-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1240px) {
  .app-shell {
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  }

  .evidence-panel {
    display: none;
  }

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

  .pattern-step:nth-child(3) {
    border-right: 0;
  }

  .pattern-step:nth-child(n + 4) {
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 860px) {
  :root {
    --topbar: 112px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    padding: 9px 14px;
  }

  .mode-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .mode-switch button {
    flex: 1;
  }

  .source-picker,
  .search-box,
  .route-panel {
    display: none;
  }

  .icon-button {
    display: block;
  }

  .app-shell {
    display: block;
  }

  .reader-toolbar {
    top: var(--topbar);
    padding: 9px 14px;
  }

  .breadcrumb {
    display: none;
  }

  .scene-position {
    margin-left: auto;
  }

  .reader {
    padding-right: 20px;
    padding-left: 20px;
  }

  .scene-cover {
    min-height: auto;
    padding-top: 64px;
  }

  .scene-cover::before {
    width: 160px;
    height: 160px;
  }

  .cover-title {
    font-size: clamp(45px, 13vw, 68px);
  }

  .thesis-band,
  .moment-heading,
  .synthesis-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tension-board {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tension-axis {
    display: none;
  }

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

  .state-arrow {
    text-align: left;
  }

  .route-overview-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .route-stop:nth-child(2n) {
    border-right: 0;
  }

  .route-stop:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .turn-chain,
  .analysis-board,
  .synthesis-copy,
  .pattern-grid,
  .synthesis-close {
    margin-left: 0;
  }

  .turn-row {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
  }

  .analysis-primary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .analysis-matrix,
  .effect-strip,
  .branch-list,
  .moment-takeaway,
  .synthesis-close {
    grid-template-columns: 1fr;
  }

  .analysis-item,
  .analysis-item:nth-child(even),
  .effect-item,
  .effect-item:not(:first-child) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .effect-item:last-child {
    border-bottom: 0;
  }

  .takeaway-item:first-child {
    border-right: 0;
    border-bottom: 1px solid rgb(245 239 227 / 19%);
  }

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

  .pattern-step,
  .pattern-step:not(:first-child) {
    min-height: 0;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .pattern-step:last-child {
    border-bottom: 0;
  }

  .pattern-step h3 {
    margin-top: 12px;
  }

  .micro-timeline button {
    grid-template-columns: 75px minmax(0, 1fr);
  }

  .micro-timeline small {
    grid-column: 2;
  }

  .micro-timeline button > span {
    grid-column: 2;
  }

  .analysis-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .brand-copy small {
    display: none;
  }

  .cover-kicker {
    font-size: 19px;
  }

  .thesis-band p {
    font-size: 15px;
  }

  .moment-question {
    font-size: 34px;
  }

  .turn-chain {
    margin-top: 36px;
  }

  .turn-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .turn-quote {
    font-size: 17px;
  }

  .branch-item {
    padding: 18px;
  }
}

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

  .scene-cover > *,
  .key-moment {
    opacity: 1;
    transform: none;
  }
}
