:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --surface: #ffffff;
  --signal: #d63d2e;
  --cobalt: #2856a6;
  --max: 1180px;
  --paper-deep: #ebe4d8;
  --ink: #171717;
  --muted: #66635e;
  --line: #d9d6cf;
  --red: var(--signal);
  --blue: var(--cobalt);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: transparent;
  line-height: 1.78;
}

button,
input,
textarea,
select { font: inherit; }

a { color: inherit; }

.paper-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  color: #c8c0b3;
  opacity: .32;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: .55rem .85rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.reading-progress {
  position: fixed;
  z-index: 15;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(27, 27, 25, .13);
}

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

.site-header,
main,
footer {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 4rem));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  min-height: 4.6rem;
  border-bottom: 1px solid var(--ink);
  padding: 1.25rem 1.75rem .85rem;
}

.wordmark {
  grid-column: 1 / span 3;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: "Songti SC", STSong, "Noto Serif CJK SC", serif;
  font-size: .93rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}

.wordmark::before {
  width: 1.8rem;
  height: 3px;
  background: var(--red);
  content: "";
}

nav {
  grid-column: 5 / -1;
  display: flex;
  justify-content: flex-end;
  gap: .15rem .8rem;
  flex-wrap: wrap;
}

nav a {
  border-bottom: 1px solid transparent;
  padding: .08rem 0;
  color: var(--muted);
  font-size: .77rem;
  letter-spacing: .04em;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

nav a[aria-current="page"] {
  border-color: var(--red);
  color: var(--ink);
}

main { border-inline: 1px solid var(--line); }

@media (min-width: 761px) {
  main {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  main > section { grid-column: 1 / -1; }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(22rem, .75fr);
  align-items: end;
  gap: clamp(2.5rem, 7vw, 8rem);
  min-height: 82vh;
  border-bottom: 1px solid var(--ink);
  padding: clamp(6rem, 11vw, 11rem) clamp(1.6rem, 6vw, 6rem) clamp(4.8rem, 7vw, 7rem);
}

.hero-copy { max-width: 42rem; }

.hero-copy::before {
  display: block;
  width: 2.6rem;
  height: 4px;
  margin-bottom: 1.4rem;
  background: var(--red);
  content: "";
}

.eyebrow,
.section-index,
.section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow { color: var(--blue); }

h1,
h2,
h3 {
  font-family: "Songti SC", STSong, "Noto Serif CJK SC", serif;
  font-weight: 700;
}

h1 {
  max-width: 8ch;
  margin: .24em 0 .32em;
  font-size: clamp(3.7rem, 8vw, 8.8rem);
  letter-spacing: -.095em;
  line-height: .96;
}

h2 {
  margin: -.12em 0 1.25rem;
  font-size: clamp(2.35rem, 4.4vw, 5.15rem);
  letter-spacing: -.07em;
  line-height: 1.05;
}

h3 {
  margin: 0 0 .85rem;
  font-size: 1.23rem;
  letter-spacing: -.03em;
  line-height: 1.25;
}

.lede {
  max-width: 31rem;
  margin: 0 0 1.3rem;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.65;
}

.evidence-note,
.trend-note {
  max-width: 39rem;
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.7;
}

.hero-image {
  position: relative;
  min-height: 30rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
}

.hero-image::before,
.hero-image::after {
  position: absolute;
  z-index: 3;
  display: block;
  content: "";
  pointer-events: none;
}

.hero-image::before {
  top: 1rem;
  left: -1px;
  width: 3.2rem;
  height: 4px;
  background: var(--red);
}

.hero-image::after {
  right: 1rem;
  bottom: 1rem;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid var(--paper);
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image img:first-child {
  filter: blur(8px);
  transform: scale(1.04);
}

.hero-image [data-hero-hd] {
  opacity: 0;
  transition: opacity 500ms ease-out;
}

.hero-image [data-hero-hd][data-loaded="true"] { opacity: 1; }

.report-section {
  display: grid;
  grid-template-columns: minmax(5rem, 12%) minmax(0, 1fr);
  column-gap: clamp(1.4rem, 4vw, 4.3rem);
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: clamp(4.8rem, 10vw, 9rem) clamp(1.6rem, 8vw, 8.2rem) clamp(4.8rem, 9vw, 8.5rem);
}

.report-section > :not(.section-index) {
  grid-column: 2;
  width: min(100%, 50rem);
}

.section-index {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  border-right: 1px solid var(--red);
  padding-right: .65rem;
  color: var(--red);
  line-height: 1.05;
  writing-mode: vertical-rl;
}

.report-section > p:not(.section-index):not(.section-kicker):not(.trend-note) {
  max-width: 45rem;
  margin: 0 0 1.3rem;
  font-size: 1rem;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: -.45rem 0 1.2rem;
  color: var(--blue);
}

.section-kicker::before {
  width: 1.7rem;
  height: 2px;
  background: var(--red);
  content: "";
}

.trend-note {
  border-left: 3px solid var(--blue);
  padding-left: 1rem;
}

.sequence-line {
  margin: .3rem 0 0 !important;
  color: var(--blue);
  font-size: .8rem !important;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.7;
}

.diagram {
  position: relative;
  margin: clamp(2rem, 5vw, 3.8rem) 0;
  border: 1px solid var(--ink);
  background: rgba(245, 241, 232, .82);
}

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

.matrix div {
  display: flex;
  min-height: 12.7rem;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  border-right: 1px solid var(--ink);
  padding: 1.25rem 1.25rem 1.4rem;
}

.matrix div:last-child { border-right: 0; }

.matrix strong {
  font-family: "Songti SC", STSong, "Noto Serif CJK SC", serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -.04em;
  line-height: 1.1;
}

.matrix span {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.65;
}

.matrix div:nth-child(2) {
  background: var(--ink);
  color: var(--paper);
}

.matrix div:nth-child(2) span { color: #ded8cf; }

.ability-list {
  width: min(100%, 49rem);
  margin: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0;
  list-style: none;
}

.ability-list li {
  display: grid;
  grid-template-columns: minmax(10rem, 1.1fr) minmax(0, 2fr);
  gap: 1rem;
  border-top: 1px solid var(--ink);
  padding: 1rem 0;
}

.ability-list strong { font-weight: 700; }

.ability-list span {
  color: var(--muted);
  font-size: .9rem;
}

.value-path {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
  margin: clamp(2rem, 5vw, 3.8rem) 0;
  padding: 0;
  list-style: none;
}

.value-path li {
  position: relative;
  display: flex;
  min-height: 8.6rem;
  align-items: flex-end;
  border-right: 1px solid var(--ink);
  padding: 1rem .75rem;
  font-family: "Songti SC", STSong, "Noto Serif CJK SC", serif;
  font-size: clamp(.92rem, 1.2vw, 1.13rem);
  line-height: 1.27;
}

.value-path li:last-child { border-right: 0; }

.value-path li::before {
  position: absolute;
  top: .8rem;
  left: .75rem;
  color: var(--blue);
  content: "→";
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.2rem;
}

.value-path li:first-child::before { color: var(--red); content: "01"; font-size: .7rem; font-weight: 700; letter-spacing: .08em; }

.funnel {
  display: block;
  overflow: hidden;
  padding: 1.4rem 1rem 0;
}

.funnel div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  border: 1px solid var(--ink);
  margin: 0 auto;
  padding: .9rem 1rem;
  text-align: center;
}

.funnel div + div { border-top: 0; }

.funnel div:nth-child(1) { width: 100%; }
.funnel div:nth-child(2) { width: 78%; }
.funnel div:nth-child(3) { width: 56%; background: var(--ink); color: var(--paper); }

.funnel div:not(:first-child)::before {
  position: absolute;
  top: -.95rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: var(--red);
  content: "↓";
  line-height: 1;
}

.funnel span {
  color: var(--muted);
  font-size: .82rem;
}

.funnel div:nth-child(3) span { color: #ded8cf; }

.funnel p {
  margin: 1.5rem -1rem 0;
  border-top: 1px solid var(--ink);
  padding: 1.1rem 1.25rem;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.7;
}

.funnel p strong { color: var(--blue); }

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

.infrastructure-grid article {
  min-height: 13rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 1.4rem 1.25rem;
}

.infrastructure-grid article:nth-child(2n) { border-right: 0; }
.infrastructure-grid article:nth-last-child(-n + 2) { border-bottom: 0; }

.infrastructure-grid article:nth-child(1) h3::before,
.infrastructure-grid article:nth-child(2) h3::before,
.infrastructure-grid article:nth-child(3) h3::before,
.infrastructure-grid article:nth-child(4) h3::before {
  display: block;
  margin-bottom: 1.7rem;
  color: var(--red);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: .65rem;
  letter-spacing: .1em;
}

.infrastructure-grid article:nth-child(1) h3::before { content: "01"; }
.infrastructure-grid article:nth-child(2) h3::before { content: "02"; }
.infrastructure-grid article:nth-child(3) h3::before { content: "03"; }
.infrastructure-grid article:nth-child(4) h3::before { content: "04"; }

.infrastructure-grid p,
.boundary-split p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.68; }

.boundary-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.boundary-split article {
  min-height: 15rem;
  padding: 1.5rem 1.3rem;
}

.boundary-split article:first-child {
  border-right: 1px solid var(--ink);
  border-top: 5px solid var(--blue);
}

.boundary-split article:last-child { border-top: 5px solid var(--red); }

.boundary-split h3 { margin-top: .4rem; }

.compass {
  display: grid;
  min-height: 19rem;
  place-items: center;
  overflow: hidden;
}

.compass::before,
.compass::after {
  position: absolute;
  background: var(--ink);
  content: "";
}

.compass::before { width: min(66%, 27rem); height: 1px; }
.compass::after { width: 1px; height: 72%; }

.compass strong {
  z-index: 1;
  display: grid;
  width: 6.7rem;
  height: 6.7rem;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--red);
  font-family: "Songti SC", STSong, "Noto Serif CJK SC", serif;
  font-size: 1.7rem;
  letter-spacing: -.06em;
}

.compass span {
  position: absolute;
  z-index: 1;
  padding: .18rem .45rem;
  background: var(--paper);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.compass span:nth-child(1) { top: 1.8rem; }
.compass span:nth-child(2) { right: clamp(.7rem, 7%, 3rem); }
.compass span:nth-child(3) { bottom: 1.8rem; }
.compass span:nth-child(4) { left: clamp(.7rem, 7%, 3rem); }

footer {
  border-top: 1px solid var(--ink);
  padding: 1.7rem 1.75rem 4rem;
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .03em;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-image img:first-child { filter: none; transform: none; }
  .hero-image [data-hero-hd] { transition: none; }
}

@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(17rem, .75fr); gap: 2.5rem; }
  .hero-image { min-height: 24rem; }
  .report-section { grid-template-columns: 4rem minmax(0, 1fr); }
  .value-path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .value-path li:nth-child(3) { border-right: 0; }
  .value-path li:nth-child(-n + 3) { border-bottom: 1px solid var(--ink); }
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer { width: min(calc(100% - 2rem), var(--max)); }

  .site-header {
    grid-template-columns: 1fr;
    gap: .7rem;
    padding: 1.05rem 1rem .85rem;
  }

  .wordmark,
  nav { grid-column: auto; }

  nav { justify-content: flex-start; gap: .3rem .85rem; }
  nav a { font-size: .71rem; }
  main { border-inline-color: var(--line); }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    min-height: auto;
    padding: 5rem 1rem 3rem;
  }

  h1 { max-width: none; font-size: clamp(3.35rem, 17vw, 5.3rem); }
  h2 { margin-bottom: 1rem; font-size: clamp(2.4rem, 12vw, 4rem); }
  .hero-image { min-height: 19rem; }

  .report-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 4rem 1rem;
  }

  .report-section > :not(.section-index),
  .section-index { grid-column: 1; }

  .section-index {
    grid-row: auto;
    width: max-content;
    border-right: 0;
    border-bottom: 1px solid var(--red);
    padding: 0 0 .35rem;
    writing-mode: horizontal-tb;
  }

  .matrix,
  .boundary-split,
  .infrastructure-grid { grid-template-columns: 1fr; }

  .matrix div,
  .infrastructure-grid article,
  .boundary-split article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .matrix div { gap: 1.7rem; }
  .matrix div:last-child,
  .infrastructure-grid article:last-child,
  .boundary-split article:last-child { border-bottom: 0; }

  .infrastructure-grid article:nth-last-child(-n + 2) { border-bottom: 1px solid var(--ink); }
  .infrastructure-grid article:last-child { border-bottom: 0; }
  .boundary-split article:first-child { border-right: 0; }

  .ability-list li { grid-template-columns: 1fr; gap: .35rem; }

  .value-path { grid-template-columns: 1fr; }
  .value-path li,
  .value-path li:nth-child(3) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    padding: .9rem 1rem .9rem 3rem;
  }
  .value-path li:last-child { border-bottom: 0; }
  .value-path li::before { top: .86rem; left: 1rem; content: "↓"; }
  .value-path li:first-child::before { content: "01"; }

  .funnel { padding: 1rem .7rem 0; }
  .funnel div:nth-child(2) { width: 86%; }
  .funnel div:nth-child(3) { width: 70%; }
  .funnel p { margin-inline: -.7rem; }

  .compass { min-height: 17rem; }
  .compass::before { width: 82%; }
  .compass span:nth-child(2) { right: .25rem; }
  .compass span:nth-child(4) { left: .25rem; }
  .compass strong { width: 5.5rem; height: 5.5rem; font-size: 1.4rem; }

  footer { padding: 1.4rem 1rem 3rem; }
}
