@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-sans-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "League Gothic";
  src: url("/assets/fonts/league-gothic-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #050817;
  --bg-deep: #030511;
  --surface: #0a0e22;
  --surface-strong: #111630;
  --surface-soft: #0d122a;
  --text: #f7f5ff;
  --text-soft: #c7c6db;
  --muted: #9193ad;
  --line: rgba(221, 220, 255, 0.16);
  --line-strong: rgba(221, 220, 255, 0.3);
  --cyan: #70dcff;
  --violet: #9e8cff;
  --pink: #ff6dbb;
  --amber: #ffad5c;
  --red: #ff5d73;
  --red-surface: #26101d;
  --focus: #a9eaff;
  --body: "Geist", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --display: "League Gothic", "Arial Narrow", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --page: 78rem;
  --reading: 72ch;
  --radius: 1.4rem;
  --shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.24);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 18rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::selection { background: var(--pink); color: var(--bg-deep); }

img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 0.3rem;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.icon {
  width: 1.05em;
  height: 1.05em;
  display: inline-block;
  flex: none;
  filter: invert(1);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 23, 0.9);
  backdrop-filter: blur(22px);
}

.header-inner {
  max-width: var(--page);
  min-height: 4.5rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 680;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-soft);
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.7rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 560;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.primary-nav a:hover,
body[data-nav="rulings"] .primary-nav a[data-nav="rulings"],
body[data-nav="method"] .primary-nav a[data-nav="method"],
body[data-nav="transparency"] .primary-nav a[data-nav="transparency"],
body[data-nav="submit"] .primary-nav a[data-nav="submit"] {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.primary-nav .nav-github { margin-left: 0.4rem; border-left-color: var(--line); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--text); padding: 0.55rem; }
.nav-toggle .icon { width: 1.35rem; height: 1.35rem; }

.site-main { min-height: 62vh; }
.landing-shell { width: 100%; }
.section-wide { width: min(calc(100% - 3rem), var(--page)); margin-inline: auto; }

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

[lang^="zh"] .display {
  font-family: "Geist", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: -0.06em;
  text-transform: none;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

[lang^="zh"] .eyebrow { letter-spacing: 0.12em; }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 2rem; }
.button-row.centered { justify-content: center; }

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 660;
  text-decoration: none;
}

.button {
  min-height: 3.35rem;
  padding: 0.86rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--text); color: var(--bg-deep); box-shadow: 0 0.8rem 2.5rem rgba(158, 140, 255, 0.15); }
.button-primary .icon { filter: none; }
.button-primary:hover { box-shadow: 0 1.1rem 3rem rgba(255, 109, 187, 0.22); }
.button-secondary { border-color: var(--line-strong); background: var(--surface-strong); color: var(--text); }
.button-secondary:hover { background: #171c3c; }

.text-link {
  min-height: 2.5rem;
  color: var(--text-soft);
  text-underline-offset: 0.25em;
}

.text-link:hover { color: var(--text); }

/* Home hero */
.hero {
  min-height: 47rem;
  padding: clamp(3.5rem, 7vw, 7rem) 0 5rem;
  display: grid;
  grid-template-columns: minmax(19rem, 0.78fr) minmax(34rem, 1.22fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 5rem);
}

.hero-copy { position: relative; z-index: 2; padding-top: 4.75rem; }
.hero-copy h1 { max-width: 10ch; font-size: clamp(5.25rem, 7vw, 7.5rem); }
[lang^="zh"] .hero-copy h1 { max-width: 8ch; font-size: clamp(3.7rem, 6vw, 6.8rem); }
.hero-subtitle { margin: 1.6rem 0 0; color: var(--text); font-size: clamp(1.35rem, 2vw, 1.85rem); font-weight: 560; letter-spacing: -0.035em; }
.hero-summary { max-width: 37rem; margin: 1.1rem 0 0; color: var(--text-soft); font-size: 1.05rem; line-height: 1.7; }

.pressure-stage {
  position: relative;
  min-height: 43rem;
  margin: 0;
  padding: 2.5rem 1rem 0;
  isolation: isolate;
}

.stage-heading {
  position: absolute;
  z-index: 4;
  top: 0.8rem;
  right: 3rem;
  display: grid;
  justify-items: end;
  gap: 0.25rem;
}

.stage-heading span, .turn-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stage-heading strong { font-size: 1.45rem; letter-spacing: -0.035em; }

.pressure-art {
  position: relative;
  display: block;
  width: min(100%, 35rem);
  margin: 0 auto;
}

.pressure-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1), filter 400ms ease;
}

.pressure-stage[data-active-turn="1"] .pressure-art img { transform: rotate(-3deg) scale(0.985); filter: saturate(0.82); }
.pressure-stage[data-active-turn="2"] .pressure-art img { transform: scale(1.015); filter: saturate(1.08); }
.pressure-stage[data-active-turn="3"] .pressure-art img { transform: rotate(2deg) scale(0.995); filter: saturate(0.93); }

.pressure-break {
  position: absolute;
  z-index: 5;
  top: 28%;
  right: 7%;
  display: grid;
  gap: 0.1rem;
  color: var(--pink);
  text-align: left;
  text-transform: uppercase;
  transition: opacity 220ms ease, transform 220ms ease;
}

.pressure-break span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; }
.pressure-break strong { font-size: 1.25rem; line-height: 1; }
.pressure-stage:not([data-active-turn="2"]) .pressure-break { opacity: 0.45; transform: scale(0.92); }

.turn-selector {
  position: relative;
  z-index: 5;
  width: min(92%, 38rem);
  margin: -4.4rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.turn-selector button {
  min-height: 3.1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 8, 23, 0.9);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 620;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.turn-selector button span { display: block; font-family: var(--mono); font-size: 0.62rem; }
.turn-selector button:hover { color: var(--text); transform: translateY(-2px); }
.turn-selector button[aria-selected="true"] { color: var(--text); border-color: var(--pink); background: var(--surface-strong); }

.pressure-scrubber {
  position: relative;
  z-index: 5;
  display: block;
  width: min(82%, 34rem);
  margin: 1.2rem auto 0;
  accent-color: var(--pink);
  cursor: pointer;
}

.turn-panels {
  position: relative;
  z-index: 5;
  width: min(92%, 38rem);
  min-height: 9rem;
  margin: 1rem auto 0;
}

.turn-panels article {
  min-height: 8rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(8, 11, 29, 0.94);
  box-shadow: var(--shadow);
}

.turn-panels p { margin: 0.45rem 0 0; color: var(--text-soft); font-size: 0.88rem; line-height: 1.55; }
.turn-panels blockquote { margin: 0.5rem 0; color: var(--text); font-size: 1.1rem; font-weight: 650; }
.pressure-stage figcaption { width: min(92%, 38rem); margin: 0.8rem auto 0; color: var(--text); font-size: 0.82rem; text-align: center; }

.metric-rail {
  width: min(96%, 42rem);
  margin: 1.4rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.metric-rail strong { display: block; color: var(--text); font-size: 0.9rem; }

/* Section language */
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -0.5rem; }
.section-heading h2 { max-width: 12ch; font-size: clamp(4.5rem, 7.6vw, 7.8rem); }
[lang^="zh"] .section-heading h2 { max-width: 13ch; font-size: clamp(3rem, 5vw, 5.5rem); }
.section-heading.centered { display: block; text-align: center; }
.section-heading.centered h2 { margin-inline: auto; }
.centered { text-align: center; }

.rulings-section { padding: 8rem 0 5rem; }
.ruling-list { margin-top: 3rem; border-top: 1px solid var(--line); }
.ruling-row {
  min-height: 9.5rem;
  padding: 1.7rem 1rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto 2.5rem;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  transition: background-color 180ms ease, padding 180ms ease;
}

.ruling-row:hover { padding-inline: 1.5rem; background: rgba(255, 255, 255, 0.026); }
.ruling-number { color: var(--muted); font-family: var(--display); font-size: 3.8rem; line-height: 1; }
.ruling-main { display: grid; gap: 0.25rem; }
.ruling-id { color: var(--muted); font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; }
.ruling-main strong { font-size: clamp(1.55rem, 3vw, 2.6rem); letter-spacing: -0.045em; line-height: 1.1; }
.ruling-main small { color: var(--muted); font-size: 0.88rem; }
.ruling-arrow { width: 1.35rem; transition: transform 180ms ease; }
.ruling-row:hover .ruling-arrow { transform: translateX(0.35rem); }

.status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.42rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.status-caving { color: #ffc0df; border-color: rgba(255, 109, 187, 0.5); background: rgba(255, 109, 187, 0.08); }
.status-held { color: #b6efff; border-color: rgba(112, 220, 255, 0.45); background: rgba(112, 220, 255, 0.06); }
.status-red { color: #ffb3bd; border-color: rgba(255, 93, 115, 0.55); background: var(--red-surface); }

.method-teaser { padding: 8rem 0 6rem; }
.method-path { margin: 4rem 0 2rem; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.method-path li { position: relative; min-height: 18rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.method-path li > span { position: absolute; top: 1.6rem; right: 1.6rem; color: var(--muted); font-family: var(--display); font-size: 2.2rem; }
.method-icon, .panel-icon { width: 2rem; height: 2rem; filter: invert(1); opacity: 0.9; }
.method-path strong { display: block; margin-top: 3rem; font-size: 1.25rem; letter-spacing: -0.035em; }
.method-path p { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.9rem; }

.evidence-band {
  padding: 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.5rem;
  background: var(--surface-strong);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: var(--shadow);
}

.evidence-band span { min-height: 5.2rem; padding: 1rem; border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 0.75rem; color: var(--text-soft); font-size: 0.86rem; text-align: center; }
.evidence-band span:last-child { border-right: 0; }
.evidence-band img { width: 1.45rem; height: 1.45rem; filter: invert(1); }
.scope-line { max-width: 65rem; padding: 2rem 0 0; color: var(--muted); font-size: 0.82rem; text-align: center; }

.closing-cta { padding: 10rem 0 8rem; text-align: center; }
.closing-cta h2 { max-width: 12ch; margin: 0 auto 2rem; font-size: clamp(4.5rem, 8vw, 8.5rem); }
[lang^="zh"] .closing-cta h2 { max-width: 15ch; font-size: clamp(3rem, 5vw, 5.6rem); }
.closing-cta .button { margin-inline: auto; }

/* Landing subpages */
.subpage-hero,
.ruling-summary-hero {
  padding: clamp(5rem, 9vw, 9rem) 0 clamp(4rem, 7vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.subpage-hero h1, .ruling-summary-hero h1 { max-width: 16ch; font-size: clamp(5rem, 7.6vw, 7.75rem); }
[lang^="zh"] .subpage-hero h1, [lang^="zh"] .ruling-summary-hero h1 { max-width: 13ch; font-size: clamp(3.5rem, 6vw, 6.6rem); }
.subpage-lede { max-width: 44rem; margin: 2rem 0 0; color: var(--text-soft); font-size: clamp(1.1rem, 2vw, 1.45rem); letter-spacing: -0.02em; line-height: 1.55; }
.subpage-hero .button { margin-top: 2.2rem; }

.numbered-flow { padding: 4rem 0 8rem; }
.numbered-flow article { padding: 2.5rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 2rem; }
.flow-number { color: var(--pink); font-family: var(--display); font-size: 4.8rem; line-height: 1; }
.numbered-flow h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.045em; }
.numbered-flow p { max-width: 48rem; margin: 0.8rem 0 0; color: var(--muted); }

.split-feature { padding: 7rem 0; }
.feature-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feature-grid.three-up { grid-template-columns: repeat(3, 1fr); padding-block: 6rem; }
.feature-grid article { min-height: 16rem; padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature-grid h2, .feature-grid h3 { margin: 2.3rem 0 0.8rem; font-size: 1.7rem; letter-spacing: -0.04em; line-height: 1.15; }
.feature-grid p { color: var(--muted); }
.feature-grid .text-link { margin-top: 1rem; }

.reading-key { padding: 7rem 0; }
.definition-grid { margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.definition-grid div { padding: 2rem; background: var(--surface); }
.definition-grid dt { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; }
.definition-grid dd { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.9rem; }

.claim-boundary { margin-top: 5rem; padding: 3rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-strong); display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.claim-boundary h2 { margin: 0; max-width: 18ch; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.05em; line-height: 1.05; }
.claim-boundary p { margin-top: 0; color: var(--text-soft); }
.claim-boundary .text-link, .claim-boundary .button { margin-top: 1rem; }

.action-grid { padding: 5rem 0 7rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.action-card { position: relative; min-height: 34rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
.action-card.action-primary { border-color: rgba(112, 220, 255, 0.45); background: var(--surface-strong); }
.action-number { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--muted); font-family: var(--display); font-size: 2.5rem; }
.action-card h2 { margin: 2.6rem 0 0.8rem; font-size: 1.8rem; letter-spacing: -0.05em; line-height: 1.05; }
.action-card p, .action-card li { color: var(--muted); font-size: 0.9rem; }
.action-card ul { margin: 1rem 0 2rem; padding-left: 1.2rem; }
.action-card li { margin: 0.55rem 0; }
.action-card .button { width: 100%; margin-top: auto; }

.integrity-state { margin-top: -1px; padding: 3rem; border: 1px solid rgba(255, 93, 115, 0.45); background: var(--red-surface); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.integrity-state h2 { margin: 1rem 0 0.5rem; font-size: clamp(2rem, 4vw, 3.8rem); letter-spacing: -0.06em; }
.integrity-state p { max-width: 47rem; margin: 0; color: var(--text-soft); }

.ledger-grid { padding: 5rem 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ledger-grid article { min-height: 22rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ledger-value { margin: 0; color: var(--pink); font-family: var(--display); font-size: clamp(5rem, 9vw, 8rem); line-height: 0.8; }
.ledger-grid h2 { margin: 2rem 0 0.8rem; font-size: 1.5rem; letter-spacing: -0.04em; }
.ledger-grid article > p:last-child { color: var(--muted); }

.ruling-summary-hero .status { margin-bottom: 1.3rem; }
.summary-grid { padding: 4rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.6fr); gap: 4rem; }
.summary-grid h2 { margin: 0; max-width: 23ch; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.06em; }
.summary-grid p { color: var(--muted); }
.summary-grid dl { margin: 0; border-top: 1px solid var(--line); }
.summary-grid dl div { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.summary-grid dt { color: var(--muted); }
.summary-grid dd { margin: 0; color: var(--text); font-weight: 650; text-align: right; }

.source-evidence { padding: 5rem 0; }
.source-evidence blockquote { max-width: 62rem; margin: 2rem 0; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.source-evidence blockquote p { margin: 0 0 1.2rem; color: var(--text-soft); }
.source-evidence blockquote p:last-child { margin-bottom: 0; }
.source-evidence > p:last-child { color: var(--muted); }

.library-list { padding: 4rem 0 8rem; border-top: 1px solid var(--line); }
.library-list a { min-height: 7rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(12rem, 0.6fr) 2rem; align-items: center; gap: 1.5rem; text-decoration: none; }
.library-list a > span { color: var(--muted); font-family: var(--display); font-size: 2.8rem; }
.library-list a > strong { font-size: 1.55rem; letter-spacing: -0.04em; }
.library-list a > small { color: var(--muted); }
.library-list a:hover { background: rgba(255,255,255,0.025); }

/* Long-form records */
.record-prose {
  width: min(calc(100% - 3rem), 62rem);
  margin: 0 auto;
  padding: 5rem 0 7rem;
  color: var(--text-soft);
}

.record-prose > * { max-width: var(--reading); }
.record-prose > h1:first-of-type { max-width: 13ch; margin: 0 0 2.5rem; color: var(--text); font-family: var(--display); font-size: clamp(4.8rem, 9vw, 8.5rem); font-weight: 400; letter-spacing: -0.025em; line-height: 0.9; text-transform: uppercase; }
[lang^="zh"] .record-prose > h1:first-of-type { font-family: var(--body); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 760; line-height: 1.05; text-transform: none; }
.record-prose h2, .record-prose h3, .record-prose h4 { color: var(--text); line-height: 1.16; letter-spacing: -0.04em; scroll-margin-top: 6rem; }
.record-title { max-width: none; margin: 4.5rem 0 3.5rem; }
.record-title > span { color: var(--cyan); font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; }
.record-title h1 { max-width: 12ch; margin: 0.8rem 0; color: var(--text); font-family: var(--display); font-size: clamp(5.8rem, 10vw, 9rem); font-weight: 400; letter-spacing: -0.025em; line-height: 0.88; text-transform: uppercase; }
.record-title p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 0.76rem; }
.record-prose h2 { margin: 5rem 0 1.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: clamp(2rem, 4vw, 3.2rem); }
.record-prose h3 { margin: 3rem 0 1rem; font-size: 1.55rem; }
.record-prose h4 { margin-top: 2rem; font-size: 1.15rem; }
.record-prose p, .record-prose li { font-size: 1rem; line-height: 1.8; }
.record-prose p { margin: 1rem 0; }
.record-prose ul, .record-prose ol { padding-left: 1.35rem; }
.record-prose li { margin: 0.5rem 0; }
.record-prose li::marker { color: var(--pink); }
.record-prose a { color: var(--text); text-underline-offset: 0.25em; text-decoration-color: rgba(112, 220, 255, 0.5); }
.record-prose a:hover { color: var(--cyan); }
.record-prose code { font-family: var(--mono); font-size: 0.88em; color: #d9d3ff; }
.record-prose :not(pre) > code { padding: 0.15em 0.36em; border: 1px solid var(--line); border-radius: 0.35rem; background: var(--surface); }
.record-prose pre { max-width: 100%; padding: 1.2rem; border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); overflow: auto; }
.record-prose blockquote { margin: 1.8rem 0; padding: 0.3rem 0 0.3rem 1.4rem; border-left: 2px solid var(--violet); color: var(--text); }
.record-prose hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--line); }

.record-actions {
  max-width: none;
  margin-bottom: 4rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}
.record-actions a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); font-family: var(--body); font-size: 0.78rem; letter-spacing: 0; text-decoration: none; }

.record-outline { max-width: none; margin: -2.5rem 0 4rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.record-outline a { padding: 0.45rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.72rem; text-decoration: none; }
.record-outline a:hover { color: var(--text); border-color: var(--line-strong); }

.banner,
.contestability,
.ruling-meta,
.callout {
  max-width: none;
  margin: 1.5rem 0;
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.86rem;
}
.banner { border-color: rgba(112, 220, 255, 0.35); }
.contestability { border-color: rgba(158, 140, 255, 0.35); }
.ruling-meta { display: grid; gap: 0.35rem; }
.ruling-meta p { margin: 0; font-size: 0.82rem; }
.ruling-meta strong { color: var(--text); }
.verdict-red { color: #ffb3bd; font-weight: 750; }
.verdict-red.badge, td.verdict-red, th.verdict-red { padding: 0.3rem 0.5rem; background: var(--red-surface); }
.contestability p, .banner p { margin: 0; }

.table-wrap { max-width: 100%; margin: 2rem 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 0.8rem; }
.record-prose table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.record-prose th, .record-prose td { padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.record-prose th { color: var(--text); background: var(--surface-strong); }
.record-prose tbody tr:hover { background: rgba(255,255,255,0.025); }

.transcript { max-width: none; margin: 2rem 0; }
.transcript details, .record-prose details { border: 1px solid var(--line); border-radius: 0.9rem; background: var(--surface); overflow: hidden; }
.transcript summary, .record-prose details > summary { padding: 1rem 1.2rem; color: var(--text); cursor: pointer; font-weight: 650; }
.transcript details[open] summary, .record-prose details[open] > summary { border-bottom: 1px solid var(--line); }
.transcript details > *:not(summary), .record-prose details > *:not(summary) { margin-inline: 1.2rem; }
.sources { padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem !important; }
.channels { display: grid; gap: 1rem; }
.channel { padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.channel-kicker { color: var(--cyan); font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-inner { width: min(calc(100% - 3rem), var(--page)); margin: 0 auto; padding: 4rem 0 2.5rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; }
.footer-lead p { max-width: 32rem; color: var(--text-soft); }
.footer-lead .footer-scope { color: var(--muted); font-size: 0.78rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.45rem 1rem; align-content: start; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.3rem; min-height: 2rem; color: var(--muted); font-size: 0.82rem; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
}
.footer-meta p { margin: 0; }
.footer-locales { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.footer-locales-label { color: color-mix(in srgb, var(--muted) 76%, transparent); white-space: nowrap; }
.footer-locales ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.75rem; margin: 0; padding: 0; list-style: none; }
.footer-locales a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  text-decoration-color: transparent;
  text-underline-offset: 0.25rem;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.footer-locales a:hover { color: var(--text-soft); text-decoration-color: currentColor; }
.footer-locales a[aria-current="page"] { color: var(--text-soft); text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); }

/* Conversation Lens (/check) */
.check-hero .subpage-lede { max-width: 46rem; }
.lens-distinction { max-width: 46rem; margin: 1.4rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.lens-shield { margin: 1.6rem 0 0; color: var(--cyan); font-weight: 650; letter-spacing: -0.02em; }
.lens-pin { margin: 0.8rem 0 0; color: var(--muted); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; }
.lens-pin a { color: var(--text-soft); }

.lens-app { padding: 3.5rem 0 4rem; }
.lens-modes { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.lens-mode { min-height: 3rem; padding: 0.6rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 0.85rem; font-weight: 620; transition: color 160ms ease, border-color 160ms ease; }
.lens-mode:hover { color: var(--text); }
.lens-mode[aria-selected="true"] { color: var(--text); border-color: var(--cyan); background: var(--surface-strong); }
.lens-beta { margin-left: 0.35rem; color: var(--amber); font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }

.lens-panel { margin-top: 1.4rem; }
.lens-label { display: block; margin-bottom: 0.8rem; color: var(--text-soft); font-size: 0.92rem; }
.lens-panel textarea, .lens-panel input[type="url"] { width: 100%; padding: 1rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 1rem; background: var(--surface); color: var(--text); }
.lens-panel input[type="file"] { color: var(--text-soft); }
.lens-note { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.84rem; }
.lens-thumbs { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.lens-thumbs img { width: 6.5rem; height: 6.5rem; object-fit: cover; border: 1px solid var(--line); border-radius: 0.7rem; }

.lens-turnbar { margin-top: 0.8rem; }
.lens-minor { padding: 0.45rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 0.76rem; }
.lens-minor:hover { color: var(--text); border-color: var(--line-strong); }
.lens-turnlist { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.lens-turn { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 0.8rem; align-items: start; }
.lens-turn p { margin: 0.2rem 0 0; color: var(--text-soft); font-size: 0.88rem; }
.lens-turn-cut { opacity: 0.4; }
.lens-speaker { padding: 0.35rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.lens-speaker-user { color: var(--cyan); border-color: rgba(112, 220, 255, 0.4); }
.lens-speaker-companion { color: var(--pink); border-color: rgba(255, 109, 187, 0.4); }

.lens-submitrow { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.lens-status { margin-top: 1.5rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--surface); color: var(--text-soft); font-size: 0.9rem; }
.lens-status[data-kind="error"] { border-color: rgba(255, 93, 115, 0.5); }
.lens-status[data-kind="crisis"] { border-color: rgba(255, 173, 92, 0.55); color: var(--text); }
.lens-status[data-kind="dev"] { border-color: rgba(112, 220, 255, 0.4); }

.lens-capacity { margin-top: 2.5rem; padding: 2rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-strong); }
.lens-capacity h2 { margin: 0 0 0.8rem; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.04em; }
.lens-capacity p { color: var(--text-soft); }
.lens-capacity .button { margin: 1rem 0 1.5rem; }

.lens-result { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.lens-headline { margin: 0; font-family: var(--display); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 400; letter-spacing: -0.02em; line-height: 0.95; text-transform: uppercase; }
.lens-headline[data-tier="HELD"] { color: var(--cyan); }
.lens-headline[data-tier="WOBBLED"] { color: var(--amber); }
.lens-headline[data-tier="CAVED"] { color: var(--red); }
.lens-headline[data-tier="UNTESTED"] { color: var(--muted); }
.lens-locknote { margin: 0.7rem 0 0; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; }
.lens-stripwrap { margin-top: 1.8rem; }
.lens-strip { position: relative; display: flex; gap: 4px; min-height: 2.4rem; padding-top: 1.4rem; }
.lens-seg { flex: 1 1 0; min-width: 0.5rem; border-radius: 0.3rem; }
.lens-seg-held { background: var(--cyan); }
.lens-seg-hedged { background: var(--amber); }
.lens-seg-caved { background: var(--red); }
.lens-seg-untested { background: #3a3f58; }
.lens-median-tick { position: absolute; top: 0; bottom: -0.4rem; border-left: 2px dashed var(--text-soft); }
.lens-median-tick em { position: absolute; top: -0.2rem; left: 0.35rem; color: var(--muted); font-family: var(--mono); font-size: 0.6rem; font-style: normal; letter-spacing: 0.06em; white-space: nowrap; text-transform: uppercase; }
.lens-median { margin: 1.4rem 0 0; color: var(--text-soft); font-size: 0.9rem; }
.lens-axes { margin: 1.6rem 0 0; display: flex; gap: 2.5rem; }
.lens-axes div { display: flex; align-items: baseline; gap: 0.6rem; }
.lens-axes dt { color: var(--muted); font-size: 0.82rem; }
.lens-axes dd { margin: 0; color: var(--text); font-family: var(--mono); font-size: 0.95rem; font-weight: 700; text-transform: uppercase; }
.lens-axesnote { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.8rem; max-width: 44rem; }
.lens-notes { margin: 1.4rem 0 0; color: var(--text-soft); max-width: 46rem; }
.lens-receiptwrap { margin-top: 1.6rem; }
.lens-receipt { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 650; cursor: pointer; }
.lens-quote { margin: 1rem 0 0; padding: 1rem 1.2rem; border-left: 2px solid var(--violet); background: var(--surface); }
.lens-quotelabel { display: block; color: var(--muted); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; }
.lens-quote p { margin: 0.4rem 0 0; color: var(--text); font-style: italic; }
.lens-card { margin: 2rem 0 0; }
.lens-card canvas { width: 100%; max-width: 40rem; height: auto; border: 1px solid var(--line); border-radius: 0.8rem; }
.lens-cardalt, .lens-card figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.76rem; max-width: 40rem; }
.lens-resultnote { margin-top: 1.6rem; color: var(--muted); font-size: 0.8rem; max-width: 46rem; }

.lens-gate { max-width: 34rem; padding: 2rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-strong); color: var(--text-soft); }
.lens-gate::backdrop { background: rgba(3, 5, 17, 0.8); }
.lens-gate h2 { margin: 0 0 1rem; color: var(--text); letter-spacing: -0.04em; }
.lens-gate p { font-size: 0.9rem; }
.lens-gate a { color: var(--text); }
.lens-gatecheck { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1.4rem 0; color: var(--text); font-size: 0.9rem; cursor: pointer; }
.lens-gatecheck input { margin-top: 0.3rem; }

.lens-foot { padding: 2rem 0 5rem; display: grid; gap: 0.8rem; }
.lens-foot p { margin: 0; color: var(--muted); font-size: 0.84rem; max-width: 52rem; }
.lens-foot a { color: var(--text-soft); }
.lens-crisis { border-left: 2px solid var(--amber); padding-left: 1rem; }

/* Blind bench (/judge) */
.judge-provenance { margin: 1.6rem 0 0; color: var(--muted); font-size: 0.88rem; max-width: 44rem; }
.judge-app { padding: 3rem 0 5rem; }
.judge-noscript { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 0.9rem; background: var(--surface); color: var(--text-soft); }
.judge-progress { min-height: 1.4rem; margin: 0 0 1.5rem; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.judge-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.2rem; }
.judge-item { padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.judge-head { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.judge-number { color: var(--muted); font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.judge-heading h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.04em; }
.judge-setup { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.88rem; }
.judge-transcript { margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.judge-turn { display: grid; grid-template-columns: 6.8rem minmax(0, 1fr); gap: 0.8rem; }
.judge-speaker { color: var(--muted); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.25rem; }
.judge-turn-respondent .judge-speaker, .judge-turn-companion .judge-speaker { color: var(--pink); }
.judge-turn-persona .judge-speaker, .judge-turn-user .judge-speaker { color: var(--cyan); }
.judge-text { margin: 0; color: var(--text); font-size: 0.95rem; line-height: 1.65; }
.judge-stage { margin: 0; color: var(--muted); font-size: 0.84rem; font-style: italic; }
.judge-vote { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.judge-question { margin: 0 0 0.9rem; color: var(--text); font-weight: 650; }
.judge-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.judge-option { padding: 0.7rem 1.05rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-strong); color: var(--text); cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: border-color 160ms ease, transform 160ms ease; }
.judge-option:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--cyan); }
.judge-option:disabled { opacity: 0.55; cursor: default; }
.judge-option.is-picked { opacity: 1; border-color: var(--cyan); }
.judge-reveal { margin-top: 1.4rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface-soft); }
.judge-agree { margin: 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.judge-agree-yes { color: var(--cyan); }
.judge-agree-no { color: var(--amber); }
.judge-verdict { margin: 0.7rem 0 0; color: var(--text); font-weight: 650; }
.judge-quote { margin: 1rem 0 0; padding: 0.3rem 0 0.3rem 1.2rem; border-left: 2px solid var(--violet); }
.judge-quote p { margin: 0; color: var(--text-soft); font-size: 0.92rem; }
.judge-cite { margin: 1rem 0 0; font-size: 0.84rem; }
.judge-cite a { color: var(--text-soft); }
.judge-final { margin-top: 2.5rem; padding: 2rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-strong); }
.judge-final h2 { margin: 0 0 0.8rem; font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.045em; }
.judge-final p { color: var(--text-soft); }
.judge-rounds { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1.6rem; }
.judge-round-tab { display: inline-flex; align-items: baseline; gap: 0.55rem; padding: 0.65rem 1.05rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-strong); color: var(--text); cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: border-color 160ms ease; }
.judge-round-tab:hover { border-color: var(--cyan); }
.judge-round-tab.is-active { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.judge-round-date, .judge-round-played { color: var(--muted); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; }
.judge-round-played { color: var(--cyan); }
.judge-share { margin: 1.2rem 0 1.6rem; }
.judge-share-text { margin: 0 0 0.9rem; padding: 1rem 1.2rem; border: 1px dashed var(--line-strong); border-radius: 0.8rem; background: var(--surface-soft); color: var(--text); font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; white-space: pre-wrap; overflow-x: auto; }

@media (max-width: 820px) {
  /* Mobile input order: screenshots lead, share link trails (beta). */
  .lens-modes { display: flex; }
  .lens-mode-images { order: 1; }
  .lens-mode-text { order: 2; }
  .lens-mode-file { order: 3; }
  .lens-mode-url { order: 4; }
  .lens-turn { grid-template-columns: 5.6rem minmax(0, 1fr); }
  .judge-turn { grid-template-columns: 1fr; gap: 0.15rem; }
  .lens-axes { flex-direction: column; gap: 0.5rem; }
}

/* Motion */
@keyframes reveal-in {
  from { opacity: 0.58; transform: translateY(1.2rem); }
  to { opacity: 1; transform: none; }
}

.is-enhanced [data-reveal] { opacity: 1; transform: none; }
.is-enhanced [data-reveal].is-visible { animation: reveal-in 650ms cubic-bezier(.2,.75,.25,1) both; }
.is-enhanced .hero [data-reveal].is-visible,
.is-enhanced .subpage-hero.is-visible,
.is-enhanced .ruling-summary-hero.is-visible { animation: none; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 5rem; }
  .hero-copy { max-width: 44rem; padding-top: 0; }
  .hero-copy h1 { max-width: 10ch; }
  .pressure-stage { width: min(100%, 48rem); margin-inline: auto; }
  .action-grid { grid-template-columns: 1fr; }
  .action-card { min-height: auto; }
  .action-card .button { margin-top: 1rem; }
}

@media (max-width: 820px) {
  .header-inner { min-height: 4.1rem; padding-inline: 1rem; }
  .nav-toggle { display: inline-flex; }
  .is-enhanced .primary-nav { position: fixed; top: 4.1rem; left: 0; right: 0; padding: 1rem; border-bottom: 1px solid var(--line); background: var(--bg-deep); display: none; flex-direction: column; align-items: stretch; }
  .is-enhanced .primary-nav[data-open="true"] { display: flex; }
  .primary-nav a { justify-content: space-between; padding-inline: 1rem; }
  .primary-nav .nav-github { margin-left: 0; }
  .nav-is-open { overflow: hidden; }
  .section-heading { display: block; }
  .section-heading .text-link { margin-top: 1.2rem; }
  .ruling-row { grid-template-columns: 3.5rem minmax(0, 1fr) 2rem; }
  .ruling-row .status { grid-column: 2 / 3; }
  .ruling-number { font-size: 3rem; }
  .method-path, .definition-grid, .feature-grid, .feature-grid.three-up { grid-template-columns: 1fr; }
  .method-path li { min-height: 14rem; }
  .evidence-band { grid-template-columns: repeat(2, 1fr); }
  .evidence-band span:nth-child(2) { border-right: 0; }
  .evidence-band span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .claim-boundary, .summary-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ledger-grid { grid-template-columns: 1fr; }
  .integrity-state { align-items: flex-start; flex-direction: column; }
  .library-list a { grid-template-columns: 3rem minmax(0, 1fr) 2rem; }
  .library-list a > small { grid-column: 2 / 3; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { grid-column: 1; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .section-wide, .record-prose, .footer-inner { width: min(calc(100% - 2rem), var(--page)); }
  .hero { min-height: 0; padding: 4rem 0 3rem; }
  .hero-copy { padding-top: 0; }
  .hero-copy h1 { font-size: clamp(4.5rem, 23vw, 7rem); }
  [lang^="zh"] .hero-copy h1 { font-size: clamp(3.3rem, 15vw, 5rem); }
  .hero-summary { font-size: 0.98rem; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button, .button-row .text-link { width: 100%; }
  .pressure-stage { min-height: 41rem; padding-inline: 0; }
  .stage-heading { position: relative; top: auto; right: auto; margin-bottom: -1.5rem; justify-items: start; }
  .pressure-break { top: 24%; right: 2%; }
  .turn-selector { width: 100%; margin-top: -1.5rem; gap: 0.3rem; }
  .turn-selector button { padding-inline: 0.35rem; font-size: 0.64rem; }
  .turn-panels, .pressure-stage figcaption { width: 100%; }
  .metric-rail { width: 100%; grid-template-columns: 1fr; text-align: left; }
  .metric-rail strong { display: inline; margin-right: 0.35rem; }
  .rulings-section, .method-teaser, .split-feature, .reading-key { padding-block: 5rem; }
  .section-heading h2, .closing-cta h2 { font-size: clamp(3.8rem, 20vw, 6rem); }
  [lang^="zh"] .section-heading h2, [lang^="zh"] .closing-cta h2 { font-size: clamp(2.7rem, 13vw, 4.5rem); }
  .ruling-row { min-height: 8rem; padding-inline: 0; grid-template-columns: 2.5rem minmax(0, 1fr) 1.5rem; gap: 0.8rem; }
  .ruling-row:hover { padding-inline: 0.35rem; }
  .ruling-number { font-size: 2.3rem; }
  .ruling-main strong { font-size: 1.45rem; }
  .ruling-main small { display: none; }
  .method-path { margin-top: 2rem; }
  .evidence-band { padding: 0.6rem; }
  .evidence-band span { min-height: 4.5rem; padding: 0.65rem; font-size: 0.73rem; }
  .closing-cta { padding-block: 7rem; }
  .subpage-hero, .ruling-summary-hero { padding-block: 4.5rem; }
  .subpage-hero h1, .ruling-summary-hero h1 { font-size: clamp(4.7rem, 24vw, 7rem); }
  [lang^="zh"] .subpage-hero h1, [lang^="zh"] .ruling-summary-hero h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .numbered-flow article { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; }
  .flow-number { font-size: 3.4rem; }
  .claim-boundary { padding: 1.5rem; }
  .action-grid { padding-top: 2rem; }
  .action-card { padding: 1.4rem; }
  .ledger-grid article { min-height: 18rem; padding: 1.5rem; }
  .record-prose { padding-top: 3rem; }
  .record-prose > h1:first-of-type { font-size: clamp(4rem, 20vw, 6rem); }
  .record-title { margin-top: 3rem; }
  .record-title h1 { font-size: clamp(4.5rem, 22vw, 6.5rem); }
  .record-actions { align-items: flex-start; border-radius: 1rem; flex-direction: column; }
  .record-outline { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.4rem; }
  .record-outline a { flex: none; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .is-enhanced [data-reveal] { opacity: 1; transform: none; }
  .pressure-art img { transform: none !important; }
}

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-strong: #f4f4f4; --text: #111; --text-soft: #333; --muted: #555; --line: #ccc; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-header, .site-footer, .record-actions, .record-outline, .button-row, .closing-cta { display: none !important; }
  .record-prose { width: 100%; max-width: none; padding: 0; }
  .record-prose > * { max-width: none; }
  a { color: #111; text-decoration: underline; }
}
