:root {
  --bg: #06110f;
  --bg-deep: #030b09;
  --panel: #0b1916;
  --panel-soft: #10231e;
  --ink: #f1eadc;
  --ink-soft: #c9c1b2;
  --muted: #87958e;
  --gold: #d9b06a;
  --gold-bright: #f1d394;
  --cinnabar: #c96343;
  --jade: #6ba895;
  --jade-dark: #326b5d;
  --line: rgba(225, 203, 161, 0.17);
  --line-soft: rgba(225, 203, 161, 0.09);
  --arch: #d6a55f;
  --beam: #92b7aa;
  --cable: #d86f4b;
  --suspension: #e3c982;
  --sea: #74a9a0;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --page: min(1440px, calc(100vw - 64px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 7%, rgba(101, 150, 132, 0.1), transparent 26rem),
    radial-gradient(circle at 8% 62%, rgba(201, 99, 67, 0.06), transparent 28rem),
    var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(217, 176, 106, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 176, 106, 0.025) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
  pointer-events: none;
}

::selection {
  color: #08120f;
  background: rgba(241, 211, 148, 0.9);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--gold);
  text-decoration: none;
}

button {
  color: inherit;
}

p,
h1,
h2,
h3,
dl,
dd,
blockquote {
  margin: 0;
}

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

.grain {
  position: fixed;
  z-index: 999;
  inset: 0;
  opacity: 0.027;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 74px;
  padding: 0 32px;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(4, 13, 11, 0.82);
  border-color: var(--line-soft);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.3;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

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

.brand-copy small {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(241, 234, 220, 0.62);
  transition: color 0.25s ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.competition-tag {
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--gold);
  border: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 8px;
  background: transparent;
  border: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 7px 0;
  background: var(--ink);
  transition: transform 0.3s ease;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.58fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  min-height: 100svh;
  padding: 122px max(32px, calc((100vw - 1440px) / 2 + 32px)) 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 11, 9, 0.96) 0%, rgba(3, 11, 9, 0.79) 42%, rgba(3, 11, 9, 0.25) 76%, rgba(3, 11, 9, 0.42) 100%),
    linear-gradient(180deg, rgba(3, 11, 9, 0.2) 0%, rgba(3, 11, 9, 0.2) 50%, var(--bg) 100%);
}

.hero-image-wrap {
  position: absolute;
  z-index: -3;
  inset: -4% -3% -5%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  filter: saturate(0.66) contrast(1.1) brightness(0.76);
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-contour {
  position: absolute;
  z-index: -1;
  top: -8%;
  right: -10%;
  width: min(900px, 65vw);
  height: 110%;
  opacity: 0.15;
  pointer-events: none;
}

.hero-contour svg {
  width: 100%;
  height: 100%;
}

.hero-contour path {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: rise 1s 0.08s var(--ease) both;
}

.eyebrow,
.chapter-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-line {
  width: 42px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin: 34px 0 0;
  font-family: var(--serif);
  font-size: clamp(96px, 13.3vw, 206px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.09em;
  text-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.title-top {
  color: var(--ink);
}

.title-bottom {
  margin-left: clamp(42px, 8vw, 118px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 234, 220, 0.8);
}

.hero-subtitle {
  margin-top: 36px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.3vw, 34px);
  letter-spacing: 0.34em;
  color: var(--gold-bright);
}

.hero-lead {
  max-width: 570px;
  margin-top: 24px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 2;
  color: rgba(241, 234, 220, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 48px;
  padding: 0 20px;
  font-size: 12px;
  letter-spacing: 0.09em;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: #07110e;
  background: linear-gradient(115deg, var(--gold), var(--gold-bright));
}

.button-quiet {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(4, 13, 11, 0.32);
}

.button-quiet:hover {
  border-color: var(--gold);
}

.hero-data {
  position: relative;
  z-index: 2;
  align-self: end;
  width: min(100%, 380px);
  margin-bottom: 4vh;
  padding: 22px 24px 20px;
  background:
    linear-gradient(135deg, rgba(33, 76, 66, 0.38), transparent 54%),
    rgba(4, 14, 12, 0.85);
  border: 1px solid rgba(217, 176, 106, 0.42);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  animation: card-in 1.1s 0.34s var(--ease) both;
}

.hero-data::before,
.hero-data::after {
  position: absolute;
  width: 18px;
  height: 18px;
  content: "";
  border-color: var(--gold-bright);
}

.hero-data::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.hero-data::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.data-serial {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(241, 234, 220, 0.4);
}

.data-label {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.data-massive {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 5px;
}

.data-massive strong {
  font-family: var(--mono);
  font-size: clamp(56px, 5.2vw, 78px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.08em;
  color: var(--gold-bright);
}

.data-massive span {
  padding-bottom: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

.data-caption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.data-rule {
  height: 1px;
  margin: 20px 0 16px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.data-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.data-mini dt {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
}

.data-mini dd {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.45;
  color: var(--muted);
}

.data-foot {
  margin-top: 18px;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(241, 234, 220, 0.32);
}

.hero-index {
  position: absolute;
  right: 28px;
  bottom: 46px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: rgba(241, 234, 220, 0.4);
  writing-mode: vertical-rl;
}

.hero-index i {
  width: 1px;
  height: 38px;
  background: rgba(241, 234, 220, 0.24);
}

.scroll-marker {
  position: absolute;
  bottom: 30px;
  left: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.17em;
  color: rgba(241, 234, 220, 0.44);
}

.scroll-marker i {
  width: 76px;
  height: 1px;
  overflow: hidden;
  background: rgba(241, 234, 220, 0.18);
}

.scroll-marker i::after {
  display: block;
  width: 36%;
  height: 1px;
  content: "";
  background: var(--gold);
  animation: scan 2.2s ease-in-out infinite;
}

.summary-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: var(--page);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-ribbon > div {
  position: relative;
  padding: 30px 30px 28px;
  border-right: 1px solid var(--line-soft);
}

.summary-ribbon > div:last-child {
  border-right: 0;
}

.summary-index {
  position: absolute;
  top: 30px;
  right: 22px;
  font-family: var(--mono);
  font-size: 8px;
  color: rgba(217, 176, 106, 0.42);
}

.summary-ribbon strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 500;
  color: var(--ink);
}

.summary-ribbon p {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.section {
  position: relative;
  width: var(--page);
  margin: 0 auto;
  padding: clamp(100px, 10vw, 156px) 0;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  align-items: end;
  gap: clamp(28px, 7vw, 100px);
  margin-bottom: clamp(42px, 5vw, 70px);
}

.section-head h2 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.section-intro {
  max-width: 600px;
  padding-bottom: 8px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
}

.section-note {
  margin-top: 18px;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: rgba(201, 193, 178, 0.52);
}

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 58% 44%, rgba(64, 122, 106, 0.12), transparent 36%),
    rgba(8, 24, 20, 0.58);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.map-panel {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.panel-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 2px 14px;
}

.filter-set {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  padding: 6px 11px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-chip:hover {
  color: var(--ink);
  border-color: var(--line);
}

.filter-chip.is-active {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

.map-count {
  flex: none;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}

.china-map {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(217, 176, 106, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 176, 106, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  border: 1px solid var(--line-soft);
}

.china-map::before {
  position: absolute;
  top: 18px;
  left: 20px;
  content: "CHINA / BRIDGE SAMPLE";
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(217, 176, 106, 0.24);
}

.china-map svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.map-loading {
  font-family: var(--serif);
  color: var(--muted);
}

.province-shape {
  fill: rgba(93, 134, 121, 0.1);
  stroke: rgba(151, 187, 175, 0.28);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.province-shape:hover {
  fill: rgba(99, 159, 141, 0.18);
  stroke: rgba(217, 176, 106, 0.46);
}

.province-label {
  fill: rgba(201, 193, 178, 0.28);
  font-size: 7px;
  font-family: var(--sans);
  letter-spacing: 0.06em;
  pointer-events: none;
}

.bridge-dot-group {
  cursor: pointer;
  outline: none;
}

.bridge-halo {
  opacity: 0.12;
  transition: opacity 0.2s ease, r 0.2s ease;
}

.bridge-dot {
  stroke: #08120f;
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
  transition: transform 0.25s var(--ease), stroke-width 0.2s ease;
}

.bridge-dot-group:hover .bridge-halo,
.bridge-dot-group:focus-visible .bridge-halo,
.bridge-dot-group.is-selected .bridge-halo {
  opacity: 0.36;
}

.bridge-dot-group:hover .bridge-dot,
.bridge-dot-group:focus-visible .bridge-dot,
.bridge-dot-group.is-selected .bridge-dot {
  stroke: var(--ink);
  stroke-width: 2;
}

.bridge-label {
  fill: rgba(241, 234, 220, 0.85);
  font-size: 7.5px;
  font-family: var(--sans);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bridge-dot-group:hover .bridge-label,
.bridge-dot-group:focus-visible .bridge-label,
.bridge-dot-group.is-selected .bridge-label {
  opacity: 1;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 13px 4px 0;
  font-size: 9px;
  color: var(--muted);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-arch { background: var(--arch); }
.dot-beam { background: var(--beam); }
.dot-cable { background: var(--cable); }
.dot-suspension { background: var(--suspension); }
.dot-sea { background: var(--sea); }

.bridge-inspector {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px 26px;
  background:
    linear-gradient(180deg, rgba(31, 68, 59, 0.32), transparent 46%),
    rgba(6, 17, 15, 0.85);
}

.bridge-inspector.is-updated .inspector-heading h3,
.bridge-inspector.is-updated .inspector-metrics strong {
  animation: inspector-flash 0.55s var(--ease);
}

.inspector-kicker {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.inspector-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.inspector-place {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.inspector-heading h3 {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 500;
  line-height: 1.2;
}

.inspector-year {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
}

.inspector-alias {
  min-height: 20px;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold-bright);
}

.inspector-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px 0 24px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.inspector-metrics span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.inspector-metrics strong {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.inspector-story {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.inspector-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.inspector-meta span {
  padding: 4px 8px;
  font-size: 8px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 26px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

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

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.85fr);
  gap: 12px;
}

.profile-card {
  display: flex;
  flex-direction: column;
}

.chart-feature-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 2px 16px;
}

.chart-feature-head h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.25;
}

.chart-feature-head p {
  max-width: 420px;
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  text-align: right;
}

.profile-card .chart-feature-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.profile-card .chart-feature-head p {
  max-width: none;
  text-align: left;
}

.type-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  padding: 0 2px 8px;
  font-size: 9px;
  color: var(--muted);
}

.type-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.type-legend i {
  width: 7px;
  height: 7px;
  background: var(--swatch);
  border-radius: 50%;
}

.profile-chart {
  display: flex;
  min-height: 300px;
  flex: 1;
  align-items: center;
  padding: 6px 0;
}

.composition-chart {
  display: grid;
  width: 100%;
  gap: 8px;
  padding: 8px 0 2px;
}

.composition-scale,
.composition-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
}

.composition-scale {
  margin-bottom: 2px;
}

.composition-scale-track {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 7px;
  color: rgba(201, 193, 178, 0.38);
}

.composition-scale-track i {
  font-style: normal;
}

.composition-row {
  min-height: 34px;
}

.composition-label {
  font-family: var(--mono);
  font-size: 8px;
  color: rgba(201, 193, 178, 0.66);
}

.composition-track {
  position: relative;
  display: flex;
  height: 28px;
  align-items: center;
  background-image: repeating-linear-gradient(
    to right,
    rgba(225, 203, 161, 0.085) 0 1px,
    transparent 1px 20%
  );
}

.composition-stack {
  display: flex;
  height: 28px;
  min-width: 1px;
  transition: filter 0.2s ease;
}

.composition-segment {
  display: flex;
  min-width: 10px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  color: rgba(6, 17, 15, 0.82);
  background: var(--segment-color);
  border-right: 1px solid var(--bg);
}

.composition-segment:last-child {
  border-right: 0;
}

.composition-total {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--gold);
  text-align: right;
}

.composition-total::after {
  content: " 座";
  font-size: 7px;
  color: var(--muted);
}

.composition-row {
  outline: none;
}

.composition-row:focus-within .composition-stack,
.composition-row:hover .composition-stack {
  filter: brightness(1.12);
}

.composition-row:focus-visible .composition-stack {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.composition-row:focus-visible {
  outline: none;
}

.composition-label {
  white-space: nowrap;
}

.chart-insight {
  margin-top: auto;
  padding: 16px 2px 1px;
  font-size: 10px;
  line-height: 1.85;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

.chart-insight strong {
  margin-right: 8px;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.terrain-matrix-chart {
  display: flex;
  min-height: 334px;
  align-items: center;
  overflow-x: auto;
  padding: 10px 0 18px;
}

.terrain-matrix {
  width: 100%;
  min-width: 460px;
}

.matrix-row {
  display: grid;
  grid-template-columns: 78px repeat(5, minmax(46px, 1fr)) 42px;
  gap: 5px;
}

.matrix-row + .matrix-row {
  margin-top: 5px;
}

.matrix-label,
.matrix-total {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}

.matrix-label {
  padding-left: 8px;
  border-left: 1px solid var(--line-soft);
}

.matrix-total {
  justify-content: center;
  color: var(--gold);
  border-right: 1px solid var(--line-soft);
}

.matrix-head .matrix-label,
.matrix-head .matrix-total {
  color: rgba(201, 193, 178, 0.42);
}

.matrix-head-cell {
  display: grid;
  min-height: 24px;
  place-items: center;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  color: rgba(201, 193, 178, 0.42);
}

.matrix-cell {
  display: grid;
  min-height: 54px;
  place-items: center;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--ink);
  background: rgba(225, 203, 161, 0.018);
  border: 1px solid var(--line-soft);
  outline: none;
  transition: border-color 0.2s ease, filter 0.2s ease;
}

.matrix-cell:not(.is-empty):hover,
.matrix-cell:not(.is-empty):focus-visible {
  border-color: rgba(241, 211, 148, 0.65);
  filter: brightness(1.15);
}

.matrix-cell.is-empty {
  color: rgba(201, 193, 178, 0.18);
}

.matrix-row.is-total {
  padding-top: 5px;
  border-top: 1px solid var(--line);
}

.matrix-row.is-total .matrix-label {
  color: var(--gold);
}

.matrix-row.is-total .matrix-total {
  min-height: 30px;
  color: var(--ink);
  background: rgba(217, 176, 106, 0.055);
  border-color: var(--line-soft);
}

.matrix-key {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.matrix-key i {
  width: 84px;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(217, 176, 106, 0.08),
    rgba(217, 176, 106, 0.82)
  );
}

.span-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.55fr);
  gap: 28px;
}

.chart-card {
  min-width: 0;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 34%),
    rgba(8, 23, 19, 0.62);
  border: 1px solid var(--line);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}

.span-chart {
  min-height: 490px;
  padding-top: 16px;
}

.chart-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid {
  stroke: rgba(225, 203, 161, 0.09);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-axis {
  stroke: rgba(225, 203, 161, 0.26);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-label {
  fill: rgba(201, 193, 178, 0.48);
  font-family: var(--mono);
  font-size: 8px;
}

.chart-year {
  fill: rgba(201, 193, 178, 0.6);
  font-family: var(--mono);
  font-size: 8px;
}

.chart-area {
  fill: url("#spanArea");
}

.chart-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.chart-line-glow {
  fill: none;
  stroke: rgba(217, 176, 106, 0.22);
  stroke-width: 7;
  vector-effect: non-scaling-stroke;
}

.chart-point {
  stroke: var(--bg);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: r 0.2s ease;
}

.chart-point:hover {
  r: 7;
}

.span-envelope-card {
  margin-top: 28px;
}

.span-envelope-chart {
  min-height: 380px;
  padding-top: 12px;
}

.mobile-chart-hint {
  display: none;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.envelope-range {
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.envelope-point {
  stroke: var(--bg);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: r 0.2s ease, filter 0.2s ease;
}

.envelope-point:hover,
.envelope-point:focus-visible {
  r: 7;
  filter: brightness(1.25);
}

.envelope-type {
  fill: var(--ink);
  font-family: var(--serif);
  font-size: 13px;
}

.envelope-range-label {
  fill: rgba(201, 193, 178, 0.58);
  font-family: var(--mono);
  font-size: 7px;
}

.chart-annotation {
  fill: var(--ink);
  font-family: var(--sans);
  font-size: 8px;
}

.chart-annotation-sub {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.chart-break {
  stroke: rgba(201, 99, 67, 0.34);
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}

.chart-break-text {
  fill: rgba(201, 99, 67, 0.72);
  font-family: var(--mono);
  font-size: 7px;
}

.era-stack {
  border-top: 1px solid var(--line);
}

.era-stack article {
  padding: 24px 4px 24px 22px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.era-stack span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.era-stack h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.era-stack p {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}

.limits-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.58fr);
  gap: 28px;
}

.limits-chart {
  min-height: 520px;
  padding-top: 16px;
}

.scatter-point {
  stroke: var(--bg);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: r 0.2s ease;
}

.scatter-point:hover {
  r: 8;
}

.quadrant-label {
  fill: rgba(217, 176, 106, 0.2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.frontier-copy {
  display: flex;
  flex-direction: column;
}

.frontier-item {
  padding: 28px 0 30px;
  border-top: 1px solid var(--line);
}

.frontier-code {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.frontier-item h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.35;
}

.frontier-item p {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.case-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.case-pills span {
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--ink-soft);
  border: 1px solid var(--line-soft);
}

.frontier-copy blockquote {
  margin-top: auto;
  padding: 26px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
  color: var(--gold-bright);
  border-top: 1px solid var(--line);
}

.type-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.type-tabs button {
  flex: 1;
  padding: 17px 10px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}

.type-tabs button:last-child {
  border-right: 0;
}

.type-tabs button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.018);
}

.type-tabs button[aria-selected="true"] {
  color: var(--bg);
  background: var(--gold);
}

.type-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.65fr);
  min-height: 530px;
  border-bottom: 1px solid var(--line);
}

.type-visual {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 55%, rgba(217, 176, 106, 0.08), transparent 35%),
    linear-gradient(rgba(217, 176, 106, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 176, 106, 0.025) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  border-right: 1px solid var(--line);
}

.type-diagram {
  width: min(85%, 760px);
}

.type-diagram svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.diagram-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.diagram-thin {
  fill: none;
  stroke: rgba(217, 176, 106, 0.5);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.diagram-dash {
  fill: none;
  stroke: rgba(201, 99, 67, 0.58);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}

.diagram-fill {
  fill: rgba(107, 168, 149, 0.09);
}

.diagram-label {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.diagram-arrow {
  fill: var(--jade);
}

.diagram-axis {
  position: absolute;
  right: 20px;
  bottom: 16px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: rgba(201, 193, 178, 0.32);
}

.type-copy {
  padding: 40px 34px;
}

.type-number {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
}

.type-copy h3 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 500;
}

.type-lead {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.type-facts {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.type-facts > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.type-facts dt {
  font-size: 9px;
  color: var(--muted);
}

.type-facts dd {
  font-size: 12px;
  color: var(--ink);
}

.type-samples {
  margin-top: 26px;
}

.type-samples > span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.type-samples div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.type-samples button {
  padding: 5px 9px;
  font-size: 9px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-soft);
  cursor: pointer;
}

.type-samples button:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.case-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  cursor: pointer;
}

.case-card:nth-child(1) { grid-column: span 7; min-height: 420px; }
.case-card:nth-child(2) { grid-column: span 5; min-height: 420px; }
.case-card:nth-child(3) { grid-column: span 5; }
.case-card:nth-child(4) { grid-column: span 7; }
.case-card:nth-child(5) { grid-column: span 4; }
.case-card:nth-child(6) { grid-column: span 4; }
.case-card:nth-child(7) { grid-column: span 4; }
.case-card:nth-child(8) { grid-column: span 6; }
.case-card:nth-child(9) { grid-column: span 6; }
.case-card:nth-child(10) { grid-column: span 12; min-height: 320px; }

.case-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.62) contrast(1.08) brightness(0.78);
  transition: transform 0.8s var(--ease), filter 0.5s ease;
}

.case-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(3, 11, 9, 0.02) 20%, rgba(3, 11, 9, 0.82) 100%),
    linear-gradient(90deg, rgba(3, 11, 9, 0.58), transparent 54%);
}

.case-card:hover img {
  filter: saturate(0.92) contrast(1.04) brightness(0.82);
  transform: scale(1.045);
}

.case-card-body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 22px;
}

.case-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.case-card h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.6vw, 42px);
  font-weight: 500;
}

.case-card p {
  max-width: 570px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.75;
  color: rgba(241, 234, 220, 0.74);
}

.case-card .case-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 9px;
  color: var(--ink);
}

.case-card .case-open::after {
  content: "↗";
  color: var(--gold);
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.05fr);
  border: 1px solid var(--line);
}

.lab-controls {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 38px;
  background: rgba(8, 23, 19, 0.55);
  border-right: 1px solid var(--line);
}

.range-control {
  display: block;
}

.range-control > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.range-control b {
  font-size: 13px;
  font-weight: 500;
}

.range-control output {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--gold-bright);
}

.range-control input {
  width: 100%;
  margin: 20px 0 8px;
  accent-color: var(--gold);
}

.range-control small {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted);
}

.range-control small:nth-of-type(2) {
  float: right;
}

.choice-control {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
}

.choice-control legend {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
}

.choice-control label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--ink-soft);
  border: 1px solid var(--line-soft);
  cursor: pointer;
}

.choice-control label:has(input:checked) {
  color: var(--ink);
  border-color: var(--gold);
  background: rgba(217, 176, 106, 0.055);
}

.choice-control input {
  accent-color: var(--gold);
}

.lab-result {
  display: flex;
  flex-direction: column;
  padding: 38px;
  background:
    radial-gradient(circle at 72% 16%, rgba(95, 157, 139, 0.12), transparent 32%),
    rgba(6, 18, 15, 0.78);
}

.result-kicker {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.result-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 12px;
}

.result-head > span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.result-head h3 {
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 66px);
  font-weight: 500;
  line-height: 1;
}

.result-diagram {
  width: min(100%, 540px);
  margin: 20px auto 18px;
}

.result-diagram svg {
  width: 100%;
}

.lab-result-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(270px, 0.9fr);
  align-items: center;
  gap: 18px;
  margin: 12px 0 18px;
}

.lab-result-visuals .result-diagram {
  width: 100%;
  margin: 0;
}

.lab-radar-panel {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line-soft);
}

.lab-radar-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}

.lab-radar {
  width: 100%;
  padding: 5px 0 0;
}

.lab-radar svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.radar-ring {
  fill: none;
  stroke: rgba(225, 203, 161, 0.1);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.radar-axis {
  stroke: rgba(225, 203, 161, 0.08);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.radar-label {
  fill: rgba(201, 193, 178, 0.58);
  font-family: var(--sans);
  font-size: 8px;
}

.radar-shape {
  fill-opacity: 0.035;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: fill-opacity 0.25s ease, stroke-width 0.25s ease;
}

.radar-shape.is-selected {
  fill-opacity: 0.18;
  stroke-width: 2;
}

.radar-point {
  stroke: var(--bg);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.lab-radar-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--muted);
}

.lab-radar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lab-radar-legend i {
  width: 12px;
  height: 2px;
  background: var(--legend-color);
}

.lab-radar-legend .is-selected {
  color: var(--ink);
}

.result-copy {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.result-score {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 9px;
  color: var(--muted);
}

.result-score i {
  display: block;
  height: 3px;
  overflow: hidden;
  background: rgba(225, 203, 161, 0.12);
}

.result-score b {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--jade), var(--gold));
  transition: width 0.5s var(--ease);
}

.comparison-list {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.comparison-list > span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.comparison-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.comparison-list button {
  padding: 6px 9px;
  font-size: 9px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line-soft);
  cursor: pointer;
}

.comparison-list button:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.lab-disclaimer {
  margin-top: auto;
  padding-top: 20px;
  font-size: 9px;
  line-height: 1.7;
  color: rgba(201, 193, 178, 0.45);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.method-card {
  min-height: 220px;
  padding: 26px;
  background: rgba(8, 23, 19, 0.5);
  border: 1px solid var(--line-soft);
}

.method-wide {
  grid-column: span 2;
  min-height: 260px;
}

.method-ai {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(201, 99, 67, 0.08), transparent 46%),
    rgba(8, 23, 19, 0.62);
}

.method-index {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.method-card h3 {
  margin-top: 15px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.method-card p {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.95;
  color: var(--muted);
}

.method-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.method-facts strong,
.method-facts span {
  display: block;
}

.method-facts strong {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.method-facts span {
  margin-top: 4px;
  font-size: 9px;
  color: var(--muted);
}

.sources-block,
.credits-block {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.sources-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.sources-head h3,
.credits-block h3 {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.sources-head > a {
  font-size: 10px;
  color: var(--muted);
}

.sources-head > a:hover {
  color: var(--gold);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 34px;
}

.source-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}

.source-item > span:first-child {
  font-family: var(--mono);
  font-size: 8px;
  color: rgba(217, 176, 106, 0.6);
}

.source-item h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.source-item p {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.65;
  color: var(--muted);
}

.source-item a {
  align-self: start;
  font-size: 14px;
  color: var(--muted);
}

.source-item a:hover {
  color: var(--gold);
}

.credits-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
}

.credits-block ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.credits-block li {
  padding: 9px 0;
  font-size: 9px;
  line-height: 1.65;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}

.credits-block a {
  color: var(--ink-soft);
}

.method-disclaimer {
  margin-top: 30px;
  padding-top: 18px;
  font-size: 9px;
  line-height: 1.7;
  color: rgba(201, 193, 178, 0.38);
  border-top: 1px solid var(--line-soft);
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  width: var(--page);
  margin: 0 auto;
  padding: 50px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-title span {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: 0.03em;
}

.footer-title p {
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-meta a {
  margin-top: 6px;
  color: var(--gold);
}

.case-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: #071310;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.case-dialog::backdrop {
  background: rgba(1, 6, 5, 0.82);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  color: var(--ink);
  background: rgba(3, 11, 9, 0.72);
  border: 1px solid var(--line);
  cursor: pointer;
}

.dialog-image {
  position: relative;
  height: min(48vh, 450px);
}

.dialog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05) brightness(0.82);
}

.dialog-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 60%, #071310 100%);
}

.dialog-image p {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 8px;
  color: rgba(241, 234, 220, 0.55);
}

.dialog-copy {
  padding: 8px 36px 34px;
}

.dialog-copy h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
}

.dialog-alias {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--gold-bright);
}

.dialog-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dialog-metrics span {
  display: block;
  font-size: 9px;
  color: var(--muted);
}

.dialog-metrics strong {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
}

.dialog-story {
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
}

.dialog-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 16px;
  font-size: 9px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

.dialog-footer a {
  flex: none;
}

.is-hidden {
  display: none !important;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(24px) rotate(1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes scan {
  0%, 100% { transform: translateX(-110%); }
  50% { transform: translateX(285%); }
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.075) translate3d(-1.2%, -0.8%, 0); }
}

@keyframes inspector-flash {
  0% { color: var(--gold-bright); }
  100% { color: inherit; }
}

@media (max-width: 1180px) {
  .site-nav {
    gap: 16px;
  }

  .competition-tag {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .atlas-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .china-map {
    min-height: 500px;
  }
}

@media (max-width: 980px) {
  :root {
    --page: calc(100vw - 40px);
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(4, 13, 11, 0.96);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 34px;
    min-height: 1040px;
    padding: 124px 24px 92px;
  }

  .hero-image {
    object-position: 70% center;
  }

  .hero-data {
    width: min(100%, 460px);
    margin: 0;
  }

  .hero-index {
    display: none;
  }

  .summary-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-ribbon > div:nth-child(2) {
    border-right: 0;
  }

  .summary-ribbon > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .atlas-layout {
    grid-template-columns: 1fr;
  }

  .map-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .bridge-inspector {
    min-height: 420px;
  }

  .china-map {
    min-height: 520px;
  }

  .span-layout,
  .limits-layout {
    grid-template-columns: 1fr;
  }

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

  .span-chart,
  .limits-chart {
    min-height: 420px;
  }

  .era-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .era-stack article:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .type-stage {
    grid-template-columns: 1fr;
  }

  .type-visual {
    min-height: 380px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-card:nth-child(n) {
    grid-column: span 6;
    min-height: 300px;
  }

  .case-card:nth-child(1),
  .case-card:nth-child(2) {
    min-height: 360px;
  }

  .case-card:nth-child(10) {
    grid-column: span 12;
    min-height: 320px;
  }

  .lab-layout {
    grid-template-columns: 1fr;
  }

  .lab-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .lab-result-visuals {
    grid-template-columns: 1fr;
  }

  .lab-radar-panel {
    padding: 16px 0 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .lab-radar {
    max-width: 440px;
    margin: 0 auto;
  }

  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-wide,
  .method-ai {
    grid-column: span 2;
  }

  .credits-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --page: calc(100vw - 28px);
  }

  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 66px;
  }

  .hero {
    min-height: 980px;
    padding: 108px 18px 78px;
  }

  .hero-title {
    font-size: clamp(78px, 24vw, 118px);
    line-height: 0.84;
  }

  .title-bottom {
    margin-left: 32px;
  }

  .hero-subtitle {
    margin-top: 28px;
    font-size: 18px;
    letter-spacing: 0.22em;
  }

  .hero-lead {
    font-size: 13px;
    line-height: 1.85;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    justify-content: space-between;
  }

  .hero-data {
    padding: 20px;
  }

  .data-mini {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .data-mini > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
  }

  .data-mini dd {
    margin-top: 0;
    text-align: right;
  }

  .scroll-marker {
    left: 18px;
  }

  .summary-ribbon {
    grid-template-columns: 1fr;
  }

  .summary-ribbon > div {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .summary-ribbon > div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 86px 0;
  }

  .section-head h2 {
    font-size: clamp(38px, 11.5vw, 56px);
  }

  .section-intro {
    font-size: 12px;
  }

  .panel-topline {
    flex-direction: column;
  }

  .china-map {
    min-height: 390px;
  }

  .bridge-inspector {
    padding: 24px 20px;
  }

  .chart-card {
    padding: 12px;
  }

  .chart-head {
    flex-direction: column;
    gap: 4px;
  }

  .chart-feature-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 20px 2px 14px;
  }

  .chart-feature-head p {
    text-align: left;
  }

  .profile-chart {
    min-height: 220px;
  }

  .composition-scale,
  .composition-row {
    grid-template-columns: 68px minmax(0, 1fr) 24px;
    gap: 8px;
  }

  .composition-label,
  .composition-segment {
    font-size: 7px;
  }

  .terrain-matrix-chart {
    min-height: 300px;
  }

  .terrain-matrix {
    min-width: 0;
  }

  .matrix-row {
    grid-template-columns: 54px repeat(5, minmax(0, 1fr)) 28px;
    gap: 3px;
  }

  .matrix-row + .matrix-row {
    margin-top: 3px;
  }

  .matrix-label,
  .matrix-total,
  .matrix-head-cell {
    font-size: 6px;
  }

  .matrix-cell {
    min-height: 46px;
    font-size: 12px;
  }

  .span-chart,
  .limits-chart {
    min-height: 330px;
  }

  .span-envelope-chart {
    min-height: 280px;
    overflow-x: auto;
  }

  .span-envelope-chart svg {
    min-width: 720px;
  }

  .mobile-chart-hint {
    display: block;
  }

  .era-stack {
    grid-template-columns: 1fr;
  }

  .era-stack article:nth-child(odd) {
    border-right: 0;
  }

  .type-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .type-tabs button:nth-child(2) {
    border-right: 0;
  }

  .type-tabs button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .type-copy {
    padding: 28px 20px;
  }

  .type-visual {
    min-height: 280px;
  }

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

  .case-card:nth-child(n),
  .case-card:nth-child(1),
  .case-card:nth-child(2),
  .case-card:nth-child(10) {
    grid-column: span 1;
    min-height: 320px;
  }

  .lab-controls,
  .lab-result {
    padding: 24px 18px;
  }

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

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

  .method-wide,
  .method-ai {
    grid-column: span 1;
  }

  .method-facts {
    grid-template-columns: 1fr;
  }

  .source-list,
  .credits-block ul {
    grid-template-columns: 1fr;
  }

  .sources-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    align-items: flex-start;
  }

  .dialog-copy {
    padding: 6px 20px 26px;
  }

  .dialog-metrics {
    gap: 8px;
  }

  .dialog-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .fade-up {
    opacity: 1;
    transform: none;
  }
}
