:root {
  color-scheme: light;
  --ink: #111319;
  --muted: #626a78;
  --line: #d8dde6;
  --soft-line: #e9edf3;
  --paper: #ffffff;
  --wash: #f4f6fa;
  --cobalt: #2357ff;
  --coral: #f0523c;
  --green: #087b5b;
  --yellow: #e7b92f;
  --max: 1440px;
  --reading: 860px;
  --radius: 6px;
  --shadow: 0 14px 34px rgba(24, 31, 46, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  display: block;
  width: 100%;
}

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

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cobalt);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  background: var(--ink);
  border-radius: 4px;
  font-size: 13px;
}

.top-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
}

.top-nav a {
  color: #343945;
  text-decoration: none;
}

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

.icon-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

.band {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: 48px;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 72px;
  padding-top: 84px;
  padding-bottom: 84px;
}

.date-line,
.source-line,
.section-heading > p,
.reader-title-row > div > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 64px;
  line-height: 1.06;
  font-weight: 820;
}

.hero-lead {
  max-width: 700px;
  margin: 30px 0 0;
  color: #454c59;
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.text-action {
  color: var(--cobalt);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.axis {
  position: absolute;
  background: #bfc6d3;
}

.axis-x {
  top: 50%;
  right: 9%;
  left: 9%;
  height: 1px;
}

.axis-y {
  top: 9%;
  bottom: 9%;
  left: 50%;
  width: 1px;
}

.visual-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 158px;
  height: 158px;
  display: grid;
  place-content: center;
  translate: -50% -50%;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: white;
  text-align: center;
  line-height: 1.5;
}

.visual-center strong {
  color: var(--cobalt);
  font-size: 21px;
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 128px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: white;
  font-size: 14px;
  font-weight: 750;
  box-shadow: var(--shadow);
}

.node-eval {
  top: 13%;
  left: 10%;
  color: var(--cobalt);
}

.node-agent {
  top: 14%;
  right: 8%;
  color: var(--coral);
}

.node-safe {
  right: 12%;
  bottom: 12%;
  color: var(--green);
}

.node-open {
  bottom: 14%;
  left: 9%;
  color: #8b6d00;
}

.signal-strip {
  padding-top: 94px;
  padding-bottom: 104px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 190px minmax(0, 860px);
  gap: 36px;
  align-items: start;
}

.section-heading > p {
  color: var(--cobalt);
}

.section-heading h2,
.reader-title-row h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.25;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 58px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.evidence-protocol {
  grid-template-columns: repeat(3, 1fr);
}

.evidence-protocol article:nth-child(3),
.evidence-protocol article:nth-child(6) {
  border-right: 0;
}

.evidence-protocol article:nth-child(-n + 3) {
  border-bottom: 1px solid var(--line);
}

.legend-row {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr;
  gap: 10px 16px;
  align-items: center;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--wash);
}

.legend-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.evidence-tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  margin-right: 5px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  vertical-align: 1px;
}

.evidence-tag.direct { color: var(--green); background: #eefaf6; }
.evidence-tag.interpretation { color: var(--cobalt); background: #f0f4ff; }
.evidence-tag.boundary { color: #9a4b39; background: #fff4f1; }

.reader-intro {
  color: var(--muted);
}

.formula-card {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 22px 24px;
  overflow-x: auto;
  border: 1px solid #cbd5f7;
  border-left: 5px solid var(--cobalt);
  border-radius: var(--radius);
  background: #f4f7ff;
}

.formula-card code {
  width: max-content;
  max-width: 100%;
  padding: 8px 10px;
  border-color: #cbd5f7;
  background: white;
  color: #1639a6;
  white-space: normal;
  overflow-wrap: anywhere;
}

.formula-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.token-walkthrough {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.token-walkthrough > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(180px, 0.8fr);
  gap: 14px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--cobalt);
  background: var(--wash);
}

.token-walkthrough > div.bad { border-left-color: var(--coral); background: #fff4f1; }
.token-walkthrough > div.good { border-left-color: var(--green); background: #eefaf6; }
.token-walkthrough span { color: var(--muted); font-size: 12px; }

.table-wrap {
  width: 100%;
  margin: 22px 0;
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap th,
.table-wrap td {
  min-width: 140px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: var(--wash);
  font-size: 12px;
}

.evidence-matrix {
  padding: 96px 0;
  border-bottom: 1px solid var(--ink);
}

.final-thesis {
  margin-top: 40px;
  padding: 30px;
  border-left: 6px solid var(--cobalt);
  background: var(--ink);
  color: white;
}

.final-thesis strong {
  color: #8aa7ff;
  font-size: 13px;
}

.final-thesis p {
  margin: 10px 0 0;
  font-size: 19px;
}

.signal-grid article {
  min-height: 250px;
  padding: 28px 26px 34px;
  border-right: 1px solid var(--line);
}

.signal-grid article:last-child {
  border-right: 0;
}

.signal-index {
  color: var(--cobalt);
  font-size: 13px;
  font-weight: 800;
}

.signal-grid h3 {
  margin: 52px 0 12px;
  font-size: 22px;
}

.signal-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.reading-route {
  padding-top: 94px;
  padding-bottom: 104px;
  background: var(--ink);
  color: white;
}

.reading-route.band {
  max-width: none;
  width: 100%;
  padding-inline: max(48px, calc((100vw - var(--max)) / 2 + 48px));
}

.section-heading.compact {
  display: block;
  max-width: 850px;
}

.reading-route .section-heading > p {
  color: #8aa7ff;
}

.section-intro {
  margin: 20px 0 0;
  color: #bec3ce;
  font-size: 17px;
}

.route-list {
  max-width: 1120px;
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #505662;
}

.route-list li {
  border-bottom: 1px solid #383e49;
}

.route-list a {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  min-height: 76px;
  text-decoration: none;
}

.route-list strong {
  color: #8aa7ff;
  font-size: 13px;
}

.route-list span {
  font-size: 18px;
  font-weight: 680;
}

.route-list a:hover span,
.route-list a:focus-visible span {
  color: #8aa7ff;
}

.reader-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
  padding-top: 100px;
  padding-bottom: 120px;
}

.reader-sidebar {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 116px);
  overflow: auto;
}

.sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 800;
}

.search-box {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.search-box span {
  color: var(--muted);
  font-size: 18px;
}

.search-box input {
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.topic-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 24px;
}

.filter-button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  background: white;
  font-size: 12px;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
}

.article-nav {
  border-top: 1px solid var(--line);
}

.article-nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: start;
  padding: 11px 8px;
  border-bottom: 1px solid var(--soft-line);
  color: #4c5360;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.article-nav a span {
  color: #969daa;
  font-size: 11px;
}

.article-nav a.active {
  color: var(--cobalt);
  background: #f0f4ff;
  font-weight: 750;
}

.article-nav a.active span {
  color: var(--cobalt);
}

.view-mode {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--wash);
}

.segmented-control button {
  min-height: 32px;
  border: 0;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.segmented-control button.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 1px 5px rgba(20, 27, 42, 0.12);
  font-weight: 700;
}

.reader-content {
  min-width: 0;
}

.reader-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--ink);
}

.reader-title-row > div > p {
  margin-bottom: 8px;
  color: var(--cobalt);
}

.secondary-action {
  min-height: 40px;
  border-color: var(--line);
  color: var(--ink);
  background: white;
}

.secondary-action:hover {
  border-color: var(--ink);
}

.result-note {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.brief {
  scroll-margin-top: 92px;
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--ink);
}

.brief[hidden] {
  display: none;
}

.brief-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 34px;
}

.brief-number {
  color: var(--cobalt);
  font-size: 14px;
  font-weight: 800;
}

.brief-heading-copy .source-line {
  margin-bottom: 8px;
}

.brief h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
}

.cn-title {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.source-link {
  white-space: nowrap;
  color: var(--cobalt);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.source-stack {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.brief-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--wash);
}

.brief-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.wide-media {
  margin: 0 0 28px;
}

.wide-media img {
  max-height: 560px;
}

.playful-media img {
  object-position: center 48%;
}

.brief-media figcaption {
  padding: 11px 14px;
  color: var(--muted);
  background: var(--wash);
  font-size: 12px;
}

.split-media {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.split-media.reverse {
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
}

.split-media .brief-media img {
  height: 100%;
}

.brief-lede {
  display: grid;
  align-content: center;
  padding: 34px;
  border-left: 5px solid var(--cobalt);
  background: var(--wash);
}

.brief-lede strong {
  margin-bottom: 10px;
  color: var(--cobalt);
  font-size: 13px;
}

.brief-lede p {
  margin: 0;
  font-size: 18px;
  line-height: 1.72;
}

.metric-row,
.data-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-row div,
.data-scale div {
  min-height: 100px;
  display: grid;
  align-content: center;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.metric-row div:last-child,
.data-scale div:last-child {
  border-right: 0;
}

.metric-row strong,
.data-scale strong {
  color: var(--cobalt);
  font-size: 26px;
}

.metric-row span,
.data-scale span {
  color: var(--muted);
  font-size: 12px;
}

.deep-dive {
  border-top: 1px solid var(--line);
}

.deep-dive:last-child {
  border-bottom: 1px solid var(--line);
}

.deep-dive summary {
  position: relative;
  padding: 21px 48px 21px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 740;
  list-style: none;
}

.deep-dive summary::-webkit-details-marker {
  display: none;
}

.deep-dive summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 12px;
  color: var(--cobalt);
  font-size: 24px;
  font-weight: 400;
}

.deep-dive[open] summary::after {
  content: "−";
}

.detail-body {
  padding: 0 0 26px 0;
  color: #363d48;
}

.detail-body > p:first-child {
  margin-top: 0;
}

.detail-body ul,
.detail-body ol {
  padding-left: 24px;
}

.detail-body li + li {
  margin-top: 8px;
}

.detail-body code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--wash);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.process-flow {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.flow-stage {
  display: grid;
  gap: 7px;
  min-height: 130px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.root-stage {
  width: calc(50% - 7px);
  margin-inline: auto;
  border-top: 4px solid var(--cobalt);
}

.flow-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.flow-stage span {
  color: var(--muted);
  font-size: 13px;
}

.flow-stage em {
  color: var(--cobalt);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.issue-grid,
.evidence-list,
.experiment-table,
.api-list,
.actor-list,
.model-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.issue-grid > div,
.evidence-list > div,
.experiment-table > div,
.api-list > div,
.actor-list > div,
.model-list > div {
  min-height: 142px;
  padding: 22px;
  background: white;
}

.issue-grid p,
.evidence-list p,
.experiment-table p,
.api-list p,
.actor-list p,
.model-list p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.model-list span {
  display: block;
  margin-top: 5px;
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 700;
}

.research-note {
  margin-top: 24px;
  padding: 22px 24px;
  border-left: 5px solid var(--coral);
  background: #fff4f1;
}

.research-note p {
  margin: 6px 0 0;
}

.mechanism-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
  font-size: 13px;
  font-weight: 700;
}

.mechanism-line b {
  color: var(--cobalt);
}

.data-scale {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 0;
}

.price-table {
  display: grid;
  margin-bottom: 20px;
  border-top: 1px solid var(--ink);
}

.price-table [role="row"] {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
}

.price-table [role="columnheader"] {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.risk-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.risk-panel > div {
  display: grid;
  gap: 9px;
  padding: 22px;
  background: white;
}

.risk-panel span {
  color: var(--muted);
  font-size: 12px;
}

.risk-panel strong {
  font-size: 14px;
}

.synthesis {
  scroll-margin-top: 90px;
  padding: 104px 0;
}

.synthesis .section-heading > p,
.sources .section-heading > p {
  color: var(--cobalt);
}

.stack-map {
  margin-top: 48px;
  border-top: 1px solid var(--ink);
}

.stack-map [role="row"] {
  display: grid;
  grid-template-columns: 110px 230px 1fr;
  gap: 22px;
  align-items: baseline;
  padding: 20px 10px;
  border-bottom: 1px solid var(--line);
}

.stack-map [role="rowheader"] {
  color: var(--cobalt);
  font-size: 12px;
  font-weight: 800;
}

.stack-map p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.final-takeaways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.final-takeaways > div {
  padding-top: 18px;
  border-top: 4px solid var(--cobalt);
}

.final-takeaways > div:nth-child(2) {
  border-color: var(--coral);
}

.final-takeaways > div:nth-child(3) {
  border-color: var(--green);
}

.final-takeaways p {
  color: var(--muted);
  font-size: 14px;
}

.sources {
  padding: 88px 0 10px;
  border-top: 1px solid var(--ink);
}

.sources > p {
  max-width: 800px;
  color: var(--muted);
}

.sources ol {
  margin: 28px 0 0;
  padding-left: 24px;
}

.sources li + li {
  margin-top: 7px;
}

.sources a {
  color: var(--cobalt);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: white;
  background: var(--ink);
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-overlay {
  display: none;
}

body.brief-mode .deep-dive:not(:first-of-type) {
  display: none;
}

body.brief-mode .brief {
  padding-block: 60px;
}

@media (max-width: 1120px) {
  .band {
    padding-inline: 32px;
  }

  .hero {
    grid-template-columns: 1fr 420px;
    gap: 40px;
  }

  .hero h1 {
    font-size: 52px;
  }

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

  .signal-grid article:nth-child(2) {
    border-right: 0;
  }

  .signal-grid article:nth-child(4) {
    border-right: 0;
  }

  .signal-grid article:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .signal-grid article:last-child {
    grid-column: 1 / -1;
  }

  .reader-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 42px;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding-inline: 20px;
  }

  .top-nav {
    display: none;
  }

  .site-header > .icon-button,
  .sidebar-head .icon-button {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .reading-route.band {
    padding-inline: 32px;
  }

  .reader-shell {
    grid-template-columns: 1fr;
  }

  .reader-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    width: min(340px, 88vw);
    max-height: none;
    padding: 24px;
    background: white;
    box-shadow: var(--shadow);
    translate: -104% 0;
    transition: translate 180ms ease;
  }

  body.menu-open .reader-sidebar {
    translate: 0 0;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(17, 19, 25, 0.42);
  }

  body.menu-open .mobile-overlay {
    display: block;
  }

  .brief-header {
    grid-template-columns: 42px 1fr;
  }

  .source-link {
    grid-column: 2;
    justify-self: start;
  }

  .source-stack {
    grid-column: 2;
    justify-items: start;
  }

  .split-media,
  .split-media.reverse {
    grid-template-columns: 1fr;
  }

  .stack-map [role="row"] {
    grid-template-columns: 90px 1fr;
  }

  .stack-map p {
    grid-column: 2;
  }

  .legend-row {
    grid-template-columns: auto 1fr;
  }

  .token-walkthrough > div {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .token-walkthrough span {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .band {
    padding-inline: 20px;
  }

  .brand > span:last-child {
    display: none;
  }

  .hero {
    gap: 48px;
    padding-top: 54px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: 39px;
    line-height: 1.12;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .node {
    width: 104px;
    min-height: 40px;
    font-size: 12px;
  }

  .visual-center {
    width: 126px;
    height: 126px;
    font-size: 13px;
  }

  .visual-center strong {
    font-size: 17px;
  }

  .signal-strip,
  .reading-route,
  .reader-shell {
    padding-top: 70px;
    padding-bottom: 76px;
  }

  .section-heading h2,
  .reader-title-row h2 {
    font-size: 29px;
  }

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

  .evidence-protocol article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-grid article {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-grid article:last-child {
    grid-column: auto;
    border-bottom: 0;
  }

  .signal-grid h3 {
    margin-top: 34px;
  }

  .reading-route.band {
    padding-inline: 20px;
  }

  .route-list a {
    grid-template-columns: 48px 1fr;
  }

  .route-list span {
    font-size: 15px;
  }

  .reader-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .brief {
    padding-block: 72px;
  }

  .brief h3 {
    font-size: 25px;
    overflow-wrap: anywhere;
  }

  .brief-header {
    grid-template-columns: 32px 1fr;
    gap: 10px;
  }

  .cn-title {
    font-size: 15px;
  }

  .brief-lede {
    padding: 24px;
  }

  .brief-lede p {
    font-size: 16px;
  }

  .metric-row,
  .data-scale {
    grid-template-columns: 1fr 1fr;
  }

  .metric-row div:nth-child(2),
  .data-scale div:nth-child(2) {
    border-right: 0;
  }

  .metric-row div:nth-child(-n + 2),
  .data-scale div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .issue-grid,
  .evidence-list,
  .experiment-table,
  .api-list,
  .actor-list,
  .model-list,
  .flow-branches,
  .risk-panel,
  .final-takeaways {
    grid-template-columns: 1fr;
  }

  .root-stage {
    width: 100%;
  }

  .mechanism-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .mechanism-line b {
    rotate: 90deg;
  }

  .stack-map [role="row"] {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .stack-map p {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 20px;
  }

  .back-to-top {
    display: none;
  }

  .legend-row {
    grid-template-columns: 1fr;
  }

  .token-walkthrough > div {
    grid-template-columns: 1fr;
  }

  .token-walkthrough span {
    grid-column: auto;
  }
}

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

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