:root {
  --ink: #102d34;
  --ink-2: #17444b;
  --river: #2e6e75;
  --foam: #d6ebe4;
  --paper: #f2eadc;
  --paper-deep: #e4d7c2;
  --sun: #f26b3a;
  --yellow: #f6c453;
  --charcoal: #202b2a;
  --muted: #68736e;
  --line: rgba(16, 45, 52, 0.19);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 28px 70px rgba(5, 25, 29, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 16% 10%, rgba(246, 196, 83, 0.12), transparent 23rem),
    repeating-linear-gradient(0deg, rgba(16, 45, 52, 0.022) 0, rgba(16, 45, 52, 0.022) 1px, transparent 1px, transparent 5px),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: .7rem 1rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #f9f3e8;
  background:
    linear-gradient(115deg, rgba(8, 39, 47, 0.98), rgba(15, 61, 67, 0.92) 58%, rgba(23, 75, 76, 0.87)),
    var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  pointer-events: none;
  background:
    repeating-linear-gradient(107deg, transparent 0 34px, rgba(255,255,255,.04) 34px 35px),
    radial-gradient(circle at 72% 19%, rgba(246,196,83,.38), transparent 18rem);
}
.topbar {
  position: relative;
  z-index: 5;
  width: min(1400px, calc(100% - 5vw));
  margin: 0 auto;
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.17);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  width: max-content;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .03em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: .76rem;
  letter-spacing: .04em;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: rgba(255,255,255,.76);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--yellow); }
.field-stamp {
  justify-self: end;
  color: rgba(255,255,255,.52);
  font: 700 .67rem/1 Georgia, serif;
  letter-spacing: .18em;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(1400px, calc(100% - 5vw));
  margin: 0 auto;
  min-height: calc(100svh - 116px);
  display: grid;
  grid-template-columns: minmax(420px, .88fr) minmax(560px, 1.12fr);
  gap: clamp(2rem, 4vw, 5.5rem);
  align-items: center;
  padding: 4.2rem 0 6rem;
}
.eyebrow {
  margin: 0 0 1.2rem;
  font: 800 .69rem/1.2 Georgia, serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow.ink { color: var(--river); }
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6.2vw, 7.2rem);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.07em;
}
.hero h1 em {
  color: var(--yellow);
  font-style: normal;
  white-space: nowrap;
}
.hero-lead {
  max-width: 690px;
  margin: 2rem 0 0;
  color: rgba(255,255,255,.74);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.2vw, 1.22rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--yellow); }
.button-primary:hover { background: #ffd16b; }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: transparent; }
.button-ghost:hover { border-color: var(--yellow); }
.hero-stats {
  margin: 3.2rem 0 0;
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.hero-stats div { padding-left: .9rem; border-left: 2px solid rgba(246,196,83,.7); }
.hero-stats dt { font: 700 1.65rem/1 Georgia, serif; color: #fff; }
.hero-stats dd { margin: .35rem 0 0; color: rgba(255,255,255,.52); font-size: .75rem; }

.scene-shell {
  position: relative;
  isolation: isolate;
  height: min(69vh, 700px);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(155deg, rgba(232,240,220,.11), rgba(4,30,37,.44));
  box-shadow: 0 35px 90px rgba(0,0,0,.22);
}
.scene-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 35px 35px;
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 100%);
}
#scene-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.scene-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.62);
  font: 700 .62rem/1 Georgia, serif;
  letter-spacing: .14em;
  pointer-events: none;
}
.scene-topline span:last-child { margin-left: auto; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(246,196,83,.1); }
.scene-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 3.8rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  pointer-events: none;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
.scene-number { font: 700 3.7rem/.76 Georgia, serif; color: var(--yellow); }
.scene-caption p { margin: 0 0 .25rem; color: rgba(255,255,255,.62); font-size: .7rem; letter-spacing: .08em; }
.scene-caption h2 { margin: 0; font: 800 clamp(1.2rem,2.2vw,2rem)/1.1 var(--serif); }
.scene-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.15);
  background: rgba(4,26,32,.45);
  backdrop-filter: blur(8px);
}
.scene-controls span { text-align: center; color: rgba(255,255,255,.5); font-size: .7rem; }
.scene-controls button {
  height: 48px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 1.25rem;
}
.scene-controls button:hover, .scene-controls button:focus-visible { color: var(--yellow); background: rgba(255,255,255,.06); }
.webgl-fallback { position: absolute; inset: 45% 1rem auto; padding: 1rem; text-align: center; background: rgba(8,39,47,.9); }
.river-rule { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 26px; overflow: hidden; }
.river-rule span, .river-rule::before, .river-rule::after {
  content: "";
  position: absolute;
  left: -5%;
  width: 110%;
  height: 12px;
  border-top: 1px solid rgba(214,235,228,.35);
  border-radius: 50%;
}
.river-rule span { top: 5px; }
.river-rule::before { top: 11px; transform: translateX(4%); }
.river-rule::after { top: 17px; transform: translateX(-3%); }

.section { width: min(1320px, calc(100% - 8vw)); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) 0; }
.principles { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem, 7vw, 9rem); }
.section-heading h2, .schemes-header h2, .pilot h2, .sources h2 {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(2.4rem, 4.2vw, 5.3rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.lead-quote {
  margin: 0;
  padding: 0 0 2.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 700 clamp(1.25rem,2.2vw,2rem)/1.6 var(--serif);
}
.logic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.logic-grid article { padding: 2rem 1.8rem 1.8rem 0; border-bottom: 1px solid var(--line); }
.logic-grid article:nth-child(even) { padding-left: 1.8rem; border-left: 1px solid var(--line); }
.logic-grid span { color: var(--sun); font-size: .68rem; font-weight: 900; letter-spacing: .13em; }
.logic-grid h3 { margin: .5rem 0 .5rem; color: var(--ink); font: 800 1.12rem/1.35 var(--serif); }
.logic-grid p { margin: 0; color: var(--muted); font-size: .86rem; }

.schemes { border-top: 1px solid var(--line); }
.schemes-header { display: grid; grid-template-columns: 1fr minmax(280px, 450px); gap: 2rem; align-items: end; }
.schemes-header p:last-child { margin: 0; color: var(--muted); }
.schemes-header strong { color: var(--sun); }
.filter-row { display: flex; flex-wrap: wrap; gap: .55rem; margin: 3rem 0 1.25rem; }
.filter {
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
}
.filter:hover, .filter:focus-visible, .filter.is-active { color: #fff; border-color: var(--ink); background: var(--ink); }
.scheme-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.scheme-list { background: var(--paper); }
.scheme-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.45rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.scheme-card:last-child { border-bottom: 0; }
.scheme-card:hover { padding-left: 1.8rem; background: rgba(255,255,255,.35); }
.scheme-card.is-active { color: #fff; background: var(--ink); }
.scheme-card[hidden] { display: none; }
.scheme-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.card-number { font: 700 2.45rem/1 Georgia, serif; color: var(--sun); }
.scheme-card.is-active .card-number { color: var(--yellow); }
.card-meta { display: block; overflow: hidden; margin: 0 0 .28rem; color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-overflow: ellipsis; white-space: nowrap; }
.scheme-card.is-active .card-meta { color: rgba(255,255,255,.5); }
.card-title { display: block; margin: 0; font: 800 1.08rem/1.25 var(--serif); }
.card-arrow { font-size: 1.15rem; opacity: .45; }
.detail-panel { min-height: 840px; padding: clamp(2rem, 4vw, 4rem); background: #fbf5e9; }
.detail-kicker { display: flex; justify-content: space-between; gap: 1rem; color: var(--river); font: 800 .66rem/1 Georgia,serif; letter-spacing: .12em; }
.detail-panel h3 { margin: 1.1rem 0 .8rem; color: var(--ink); font: 800 clamp(2rem,3.5vw,4.2rem)/1.05 var(--serif); letter-spacing: -.05em; }
.detail-pitch { margin: 0 0 1.8rem; color: var(--muted); font-family: var(--serif); font-size: 1.02rem; }
.metric-strip { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.metric { min-width: 0; padding: .85rem; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric b { display: block; color: var(--ink); font: 800 1rem/1.2 var(--serif); }
.metric span { display: block; margin-top: .2rem; color: var(--muted); font-size: .62rem; }
.detail-block { margin-top: 2rem; }
.detail-block h4 { margin: 0 0 .75rem; color: var(--river); font-size: .68rem; letter-spacing: .12em; }
.detail-block blockquote { margin: 0; padding: 1.1rem 1.25rem; color: var(--ink); border-left: 4px solid var(--sun); background: var(--paper); font: 800 1.28rem/1.4 var(--serif); }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: flow; }
.timeline li { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 1rem; padding: .66rem 0 .66rem 1.3rem; border-left: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 1.25rem; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.timeline time { color: var(--river); font: 800 .68rem/1.5 Georgia,serif; }
.timeline span { font-size: .83rem; }
.two-column-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.detail-block ul { margin: 0; padding: 0; list-style: none; }
.detail-block li { position: relative; padding: .35rem 0 .35rem 1rem; color: var(--muted); font-size: .79rem; }
.detail-block li::before { content: "—"; position: absolute; left: 0; color: var(--sun); }
.next-step, .guardrail { padding: 1.25rem; background: var(--foam); }
.guardrail { background: #f1dfd4; }
.next-step p, .guardrail p { margin: 0; color: var(--ink); font-size: .83rem; }

.matrix-section { display: grid; grid-template-columns: .55fr 1.45fr; gap: clamp(3rem,7vw,7rem); border-top: 1px solid var(--line); }
.section-heading.compact h2 { font-size: clamp(2.6rem,4vw,4.5rem); }
.matrix-copy > p { max-width: 760px; margin: 0 0 2rem; color: var(--muted); }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); background: rgba(255,255,255,.24); }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: .75rem; }
th, td { padding: .78rem .85rem; border-bottom: 1px solid var(--line); text-align: left; }
th { color: #fff; background: var(--ink); font-size: .66rem; letter-spacing: .05em; }
td:nth-child(n+3):nth-child(-n+6) { text-align: center; }
tr:last-child td { border-bottom: 0; }
.dot-score { letter-spacing: .1em; color: var(--sun); }
.recommend { color: var(--river); font-weight: 800; }

.pilot {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px,.78fr) minmax(620px,1.22fr);
  gap: clamp(3rem,7vw,8rem);
  padding-left: max(4vw, calc((100vw - 1320px)/2));
  padding-right: max(4vw, calc((100vw - 1320px)/2));
  color: #f7f1e6;
  background: var(--ink);
}
.pilot h2 { color: #fff; }
.pilot-intro > p:last-child { color: rgba(255,255,255,.58); }
.pilot-weeks { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.16); }
.pilot-weeks article { min-height: 205px; padding: 1.7rem; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.pilot-weeks article:last-child { grid-column: 1 / -1; min-height: auto; }
.pilot-weeks span { color: var(--yellow); font: 700 .65rem/1 Georgia,serif; letter-spacing: .12em; }
.pilot-weeks h3 { margin: .65rem 0 .55rem; font: 800 1.25rem/1.2 var(--serif); }
.pilot-weeks p { margin: 0; color: rgba(255,255,255,.56); font-size: .79rem; }

.guardrails { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.guardrails-card, .field-card { padding: clamp(2rem,5vw,5rem); background: #fbf5e9; }
.guardrails h2 { margin: 0 0 1.8rem; color: var(--ink); font: 800 clamp(2.2rem,3.6vw,4rem)/1.05 var(--serif); }
.guardrails ul { margin: 0; padding: 0; list-style: none; }
.guardrails li { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.guardrails li span { color: var(--sun); font: 700 .72rem/1.7 Georgia,serif; }
.field-card { background: var(--yellow); }
.field-card h3 { margin: 0 0 1.5rem; color: var(--ink); font: 800 2rem/1.1 var(--serif); }
.field-card dl { margin: 0; }
.field-card dl div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .85rem 0; border-top: 1px solid rgba(16,45,52,.22); }
.field-card dt { color: var(--ink); font-weight: 900; }
.field-card dd { margin: 0; color: rgba(16,45,52,.72); }

.sources { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(3rem,7vw,8rem); border-top: 1px solid var(--line); }
.sources h2 { font-size: clamp(2.2rem,3.5vw,4rem); }
.source-list { border-top: 1px solid var(--line); }
.source-list a { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--serif); font-weight: 700; }
.source-list a:hover { color: var(--sun); }
.source-list span { color: var(--river); font-family: var(--sans); font-size: .68rem; font-weight: 800; }

footer {
  min-height: 180px;
  display: grid;
  grid-template-columns: .6fr 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 3rem max(4vw, calc((100vw - 1320px)/2));
  color: rgba(255,255,255,.62);
  background: #071f25;
  font-size: .78rem;
}
.footer-brand { color: #fff; }
.version { font: 700 .62rem/1 Georgia,serif; letter-spacing: .15em; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-copy { max-width: 780px; }
  .scene-shell { height: 620px; }
  .principles, .matrix-section, .sources { grid-template-columns: 1fr; }
  .scheme-layout { grid-template-columns: 1fr; }
  .detail-panel { min-height: 0; }
  .pilot { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { width: min(100% - 2rem, 1400px); grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .field-stamp { font-size: .57rem; }
  .hero-grid { width: min(100% - 2rem, 1400px); gap: 3rem; padding-bottom: 4rem; }
  .hero h1 { font-size: clamp(3.1rem,15vw,5.2rem); }
  .hero-lead { font-size: .96rem; }
  .scene-shell { min-height: 440px; height: 64vh; }
  .scene-caption { bottom: 4.2rem; }
  .scene-number { font-size: 2.8rem; }
  .section { width: min(100% - 2rem, 1320px); padding: 5rem 0; }
  .principles { gap: 2.5rem; }
  .logic-grid { grid-template-columns: 1fr; }
  .logic-grid article:nth-child(even) { padding-left: 0; border-left: 0; }
  .schemes-header { grid-template-columns: 1fr; align-items: start; }
  .scheme-card { grid-template-columns: 52px 1fr auto; padding: 1.15rem; }
  .card-number { font-size: 1.9rem; }
  .detail-panel { padding: 1.5rem; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .two-column-detail { grid-template-columns: 1fr; gap: 0; }
  .timeline li { grid-template-columns: 66px 1fr; }
  .pilot { padding: 5rem 1rem; }
  .pilot-weeks { grid-template-columns: 1fr; }
  .pilot-weeks article:last-child { grid-column: auto; }
  .guardrails { grid-template-columns: 1fr; }
  .source-list a { grid-template-columns: 88px 1fr; }
  footer { grid-template-columns: 1fr; padding: 3rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
