:root {
  --paper: #fffdf8;
  --paper-lavender: #fcf1ff;
  --ink: #202f6d;
  --ink-soft: #4a5792;
  --pink: #d40f56;
  --pink-bright: #f31864;
  --pink-light: #ff73d5;
  --cyan: #1dd3f3;
  --violet: #8798ff;
  --violet-text: #697be0;
  --yellow: #fff36d;
  --orange: #ff764d;
  --white: #ffffff;
  --line: rgba(32, 47, 109, 0.22);
  --line-strong: rgba(32, 47, 109, 0.82);
  --shadow-navy: 8px 8px 0 #202f6d;
  --shadow-pink: 8px 8px 0 #f31864;
  --font-cjk: "Source Han Serif SC", "Noto Serif SC", "Songti SC", SimSun, serif;
  --font-latin: "Instrument Serif", Georgia, serif;
  --font-mixed: "Instrument Serif", "Source Han Serif SC", "Noto Serif SC", "Songti SC", SimSun, serif;
  --content: min(1440px, calc(100vw - 64px));
  --header-height: 78px;
  --ease: cubic-bezier(0.18, 0.765, 0.535, 0.875);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  overflow-x: clip;
  font-synthesis: none;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background-color: var(--paper-lavender);
  font-family: var(--font-mixed);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.78) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.78) 2px, transparent 2px);
  background-size: 40px 40px;
  content: "";
  pointer-events: none;
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.13;
  background-image: radial-gradient(circle, var(--violet) 0 1px, transparent 1.5px);
  background-size: 15px 15px;
  mask-image: linear-gradient(120deg, transparent 8%, #000 36%, transparent 78%);
  content: "";
  pointer-events: none;
}

button,
input {
  color: inherit;
  font: inherit;
}

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

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
}

.prediction-story button:focus-visible,
.prediction-story a:focus-visible {
  outline-color: var(--yellow);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.eyebrow,
.hero-meta dt,
.hero-sticker span,
.story-phase,
.story-copy small,
.metric-index,
.filter-label,
.drawer-heading span,
.footer-brand small {
  font-family: var(--font-latin);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.story-copy small,
.filter-label {
  font-family: var(--font-cjk);
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: var(--header-height);
  padding: 0 clamp(20px, 4vw, 44px);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(10px);
  transition: height 240ms var(--ease), box-shadow 240ms ease;
}

.site-header.scrolled {
  height: 66px;
  box-shadow: 0 12px 32px rgba(32, 47, 109, 0.07);
}

.header-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.header-logo img {
  display: block;
  width: 100px;
  height: 44px;
  object-fit: cover;
  object-position: center 51%;
}

.brand-swatch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--yellow);
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 87%);
}

.brand-swatch i {
  position: absolute;
  width: 34px;
  height: 11px;
  left: -3px;
  transform: rotate(-19deg);
}

.brand-swatch i:nth-child(1) {
  top: 5px;
  background: var(--pink);
}

.brand-swatch i:nth-child(2) {
  top: 17px;
  left: 7px;
  background: var(--cyan);
}

.brand-swatch i:nth-child(3) {
  top: 29px;
  background: var(--violet);
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 3.4vw, 52px);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  padding: 8px 6px;
  align-items: baseline;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
  transition: color 220ms ease;
}

.nav-index {
  align-self: flex-start;
  margin-top: 9px;
  color: var(--ink-soft);
  font-family: var(--font-latin);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.7;
  transition: color 220ms ease, opacity 220ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 4px;
  bottom: 7px;
  left: 4px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  content: "";
  transition: transform 260ms var(--ease);
}

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

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

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

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

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.header-share {
  display: inline-flex;
  min-height: 42px;
  padding: 8px 16px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease, border-color 160ms ease;
}

.header-share svg,
.primary-action svg,
.export-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.header-share:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 4px;
  margin: 4px 0;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-backdrop,
.filter-backdrop {
  position: fixed;
  z-index: 88;
  inset: 0;
  display: none;
  background: rgba(32, 47, 109, 0.58);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background: #f4f2ec;
}

.hero-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  text-align: center;
}

.hero-identity > * {
  animation: heroRise 760ms var(--ease) both;
}

.hero-identity > :nth-child(2) {
  animation-delay: 160ms;
}

.identity-logo {
  display: block;
  width: min(400px, 58vw);
  height: auto;
  aspect-ratio: 1434 / 494;
  object-fit: cover;
  object-position: center 47.7%;
  margin-bottom: calc(min(400px, 58vw) * 494 / 1434 * -0.18);
}

.identity-name-mark {
  margin: 0;
}

.identity-name-mark img {
  display: block;
  width: min(620px, 84vw);
  height: auto;
  aspect-ratio: 1286 / 253;
  object-fit: cover;
  object-position: center 50.9%;
  margin-top: calc(min(620px, 84vw) * 253 / 1286 * -0.24);
}

.hero::before,
.hero::after {
  display: none;
}

.hero-art {
  display: none;
}

.hero-art picture,
.hero-art img {
  width: 100%;
  height: 100%;
}

.hero-art img {
  object-fit: cover;
  object-position: 55% center;
  transform: scale(1.035) translate3d(var(--hero-pan-x, 0), var(--hero-pan-y, 0), 0);
  transition: transform 700ms var(--ease);
}

.hero-art-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(252, 241, 255, 0.7), transparent 23% 86%, rgba(32, 47, 109, 0.12));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(730px, 50vw);
  padding: 22px 0 32px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pink);
  font-size: clamp(14px, 1.2vw, 19px);
  line-height: 1.2;
}

.live-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  background: var(--cyan);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(45deg);
}

.hero-kicker {
  width: fit-content;
  margin-top: 28px;
  padding: 5px 14px;
  color: var(--ink);
  background: var(--yellow);
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 700;
  transform: rotate(-1.4deg);
}

.hero h1 {
  margin-top: 24px;
  color: var(--ink);
  font-size: clamp(58px, 6.6vw, 118px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1.04;
}

.hero h1 em {
  position: relative;
  display: inline-block;
  color: var(--white);
  font-style: normal;
  text-shadow: 3px 3px 0 var(--ink);
}

.hero h1 em::before {
  position: absolute;
  z-index: -1;
  inset: 11% -18px 1% -10px;
  border: 3px solid var(--ink);
  background: var(--pink);
  clip-path: polygon(0 9%, 100% 0, 96% 100%, 3% 91%);
  content: "";
}

.hero-deck {
  max-width: 660px;
  margin-top: 28px;
  color: var(--ink);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  margin-top: 34px;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  min-height: 54px;
  border: 2px solid var(--ink);
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action {
  display: inline-flex;
  padding: 12px 20px;
  align-items: center;
  gap: 14px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 7px 7px 0 var(--cyan);
}

.primary-action:hover {
  box-shadow: 3px 3px 0 var(--cyan);
  transform: translate(4px, 4px);
}

.secondary-action {
  display: inline-flex;
  padding: 11px 18px;
  align-items: center;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--pink);
}

.secondary-action:hover {
  color: var(--white);
  background: var(--pink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(4px, 4px);
}

.hero-meta {
  display: flex;
  margin-top: 42px;
  gap: 0;
  flex-wrap: wrap;
}

.hero-meta > div {
  min-width: 142px;
  padding: 0 22px;
  border-left: 3px solid var(--ink);
}

.hero-meta > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-meta dt {
  color: var(--pink);
  font-size: 13px;
}

.hero-meta dd {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
}

.hero-stickers {
  position: absolute;
  z-index: 5;
  right: clamp(26px, 5vw, 92px);
  bottom: clamp(74px, 10vh, 122px);
  display: grid;
  width: min(430px, 34vw);
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-sticker {
  min-height: 138px;
  padding: 18px;
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
}

.hero-sticker-total {
  color: var(--ink);
  background: var(--yellow);
  transform: rotate(-2.5deg);
}

.hero-sticker-public {
  color: var(--white);
  background: var(--pink);
  transform: rotate(2deg) translateY(14px);
}

.hero-sticker span {
  display: block;
  font-size: 13px;
}

.hero-sticker strong {
  display: block;
  margin: 2px 0;
  font-family: var(--font-latin);
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
}

.hero-sticker small {
  font-size: 12px;
}

.hero-sticker-note {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 7px 12px;
  color: var(--white);
  background: var(--ink);
  font-family: var(--font-mixed);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  transform: rotate(-1deg);
}

.scroll-cue {
  position: absolute;
  z-index: 6;
  bottom: 22px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 14px;
  letter-spacing: 0.1em;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 22px;
  height: 34px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.scroll-cue b {
  position: absolute;
  top: 6px;
  left: 7px;
  width: 5px;
  height: 9px;
  background: var(--pink);
  animation: scrollBeat 1.45s ease-in-out infinite;
}

@keyframes scrollBeat {
  50% { transform: translateY(11px); background: var(--cyan); }
}

.hero-reveal {
  animation: heroRise 760ms var(--ease) both;
}

.hero-copy .hero-reveal:nth-child(2) { animation-delay: 80ms; }
.hero-copy .hero-reveal:nth-child(3) { animation-delay: 140ms; }
.hero-copy .hero-reveal:nth-child(4) { animation-delay: 220ms; }
.hero-copy .hero-reveal:nth-child(5) { animation-delay: 300ms; }
.hero-copy .hero-reveal:nth-child(6) { animation-delay: 380ms; }
.hero-stickers.hero-reveal { animation-delay: 480ms; }

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

/* Pinned story */
.prediction-story {
  position: relative;
  color: var(--white);
  background: var(--ink);
  border-bottom: 5px solid var(--pink);
}

.prediction-story::before {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image:
    radial-gradient(circle, var(--cyan) 0 2px, transparent 2.5px),
    linear-gradient(115deg, transparent 46%, rgba(255, 115, 213, 0.36) 47% 48%, transparent 49%);
  background-size: 30px 30px, 250px 250px;
  content: "";
  pointer-events: none;
}

.story-lead {
  position: relative;
  z-index: 2;
  display: grid;
  width: var(--content);
  margin: 0 auto;
  padding: 118px 0 78px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: 70px;
}

.story-lead .eyebrow {
  color: var(--cyan);
}

.story-lead h2,
.section-heading h2 {
  margin-top: 16px;
  font-size: clamp(46px, 5.2vw, 86px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.story-lead h2 span,
.section-heading h2 span {
  display: block;
  margin-bottom: 5px;
  color: var(--pink-light);
  font-family: var(--font-latin);
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.story-lead > p {
  padding: 22px 0 0 24px;
  border-left: 5px solid var(--yellow);
  font-size: 17px;
  line-height: 1.85;
}

.story-track {
  position: relative;
  z-index: 1;
}

.story-pin {
  position: relative;
  width: var(--content);
  margin: 0 auto;
  padding: 0 0 118px;
}

.story-scenes {
  display: grid;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.story-scene {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 3px solid var(--white);
  background: #121b47;
  box-shadow: 10px 10px 0 var(--pink);
}

.story-scene:nth-child(even) {
  box-shadow: 10px 10px 0 var(--cyan);
}

.story-media,
.story-media picture,
.story-media img {
  width: 100%;
  height: 100%;
}

.story-media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.story-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(14, 25, 68, 0.12) 48%, rgba(14, 25, 68, 0.92) 100%);
  content: "";
}

.story-media img {
  object-fit: cover;
}

.story-copy {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  left: 28px;
  padding: 24px 26px;
  border: 2px solid var(--white);
  color: var(--white);
  background: rgba(32, 47, 109, 0.94);
  box-shadow: 6px 6px 0 var(--yellow);
}

.story-phase {
  color: var(--cyan);
  font-size: 15px;
}

.story-copy h3 {
  margin-top: 8px;
  font-size: clamp(27px, 2.4vw, 42px);
  line-height: 1.25;
}

.story-copy p {
  margin-top: 13px;
  line-height: 1.8;
}

.story-copy small {
  display: inline-block;
  margin-top: 15px;
  padding: 4px 9px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 12px;
}

.story-controls {
  display: none;
}

.prediction-story.is-enhanced .story-track {
  height: 500svh;
}

.prediction-story.is-enhanced .story-pin {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.prediction-story.is-enhanced .story-scenes,
.prediction-story.is-enhanced .story-scene {
  position: absolute;
  inset: 0;
}

.prediction-story.is-enhanced .story-scenes {
  display: block;
}

.prediction-story.is-enhanced .story-scene {
  min-height: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  --reveal: 100%;
  --scene-scale: 1.04;
  --scene-x: 0px;
  --scene-y: 0px;
}

.prediction-story.is-enhanced .story-scene:first-child {
  --reveal: 0%;
}

.prediction-story.is-enhanced .story-scene:nth-child(1) { z-index: 1; }
.prediction-story.is-enhanced .story-scene:nth-child(2) { z-index: 2; }
.prediction-story.is-enhanced .story-scene:nth-child(3) { z-index: 3; }
.prediction-story.is-enhanced .story-scene:nth-child(4) { z-index: 4; }

.prediction-story.is-enhanced .story-media {
  clip-path: inset(0 var(--reveal) 0 0);
  will-change: clip-path;
}

.prediction-story.is-enhanced .story-scene:nth-child(even) .story-media {
  clip-path: inset(0 0 0 var(--reveal));
}

.prediction-story.is-enhanced .story-media::after {
  background:
    linear-gradient(90deg, rgba(252, 241, 255, 0.34), transparent 35%),
    linear-gradient(180deg, rgba(32, 47, 109, 0.04), rgba(32, 47, 109, 0.23));
}

.prediction-story.is-enhanced .story-media img {
  object-position: 58% center;
  transform: translate3d(var(--scene-x), var(--scene-y), 0) scale(var(--scene-scale));
  will-change: transform;
}

.prediction-story.is-enhanced .story-copy {
  top: 50%;
  right: auto;
  bottom: auto;
  left: clamp(28px, 6vw, 112px);
  width: min(550px, 40vw);
  padding: clamp(25px, 3vw, 48px);
  border: 3px solid var(--ink);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 12px 12px 0 var(--pink);
  opacity: 0;
  transform: translateY(calc(-50% + 30px)) rotate(-1deg);
  transition: opacity 360ms ease, transform 520ms var(--ease);
}

.prediction-story.is-enhanced .story-scene:nth-child(even) .story-copy {
  box-shadow: 12px 12px 0 var(--cyan);
  transform: translateY(calc(-50% + 30px)) rotate(1deg);
}

.prediction-story.is-enhanced .story-scene.is-current .story-copy {
  opacity: 1;
  transform: translateY(-50%) rotate(-1deg);
}

.prediction-story.is-enhanced .story-scene:nth-child(even).is-current .story-copy {
  transform: translateY(-50%) rotate(1deg);
}

.prediction-story.is-enhanced .story-copy p {
  color: var(--ink-soft);
}

.prediction-story.is-enhanced .story-phase {
  color: var(--pink);
}

.prediction-story.is-enhanced .story-controls {
  position: absolute;
  z-index: 12;
  right: clamp(24px, 4vw, 72px);
  bottom: clamp(24px, 4vh, 46px);
  left: clamp(24px, 4vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.45fr) auto;
  align-items: end;
  gap: 22px;
}

.story-step-buttons {
  display: grid;
  max-width: 640px;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.story-step-buttons button {
  min-height: 58px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.story-step-buttons button span {
  display: block;
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.story-step-buttons button strong {
  font-size: 14px;
}

.story-step-buttons button.is-current {
  color: var(--white);
  background: var(--pink);
  transform: translateY(-6px);
}

.story-step-buttons button:nth-child(2).is-current { color: var(--ink); background: var(--violet); }
.story-step-buttons button:nth-child(3).is-current { color: var(--ink); background: var(--cyan); }
.story-step-buttons button:nth-child(4).is-current { color: var(--ink); background: var(--yellow); }

.story-progress {
  position: relative;
  height: 16px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.story-progress i {
  display: block;
  width: var(--story-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--cyan), var(--yellow));
}

.story-skip {
  min-height: 46px;
  padding: 10px 14px;
  border: 2px solid var(--white);
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* Metrics */
.metrics {
  display: grid;
  width: var(--content);
  margin: 0 auto;
  padding: 92px 0 110px;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.metrics article {
  position: relative;
  display: flex;
  min-height: 168px;
  padding: 24px 28px 26px;
  overflow: hidden;
  flex-direction: column;
  border: 3px solid var(--ink);
  background: transparent;
}

.metrics article + article {
  margin-left: -3px;
}

.metrics article:nth-child(1) { color: var(--pink); }
.metrics article:nth-child(2) { color: var(--ink); }
.metrics article:nth-child(3) { color: var(--violet-text); }
.metrics article:nth-child(4) { color: var(--orange); }

.metric-index {
  display: block;
  color: var(--ink-soft);
  font-size: 15px;
}

.metric-value {
  display: block;
  margin-top: 14px;
  font-family: var(--font-latin);
  font-size: clamp(64px, 6vw, 100px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric-label {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  border-top: 3px solid currentColor;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Shared section headings */
.section-heading {
  display: grid;
  width: var(--content);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: end;
  gap: 70px;
}

.section-heading .eyebrow {
  color: var(--pink);
}

.section-heading h2 span {
  color: var(--violet-text);
}

.section-heading > p {
  padding-left: 24px;
  border-left: 5px solid var(--cyan);
  color: var(--ink-soft);
  font-size: 17px;
}

/* Highlights */
.highlights {
  position: relative;
  padding: 118px 0 142px;
  overflow: hidden;
}

.page-videos .highlights {
  min-height: calc(100svh - 220px);
  padding-top: calc(var(--header-height) + 72px);
}

.highlights::before {
  display: none;
}

.highlight-grid {
  display: grid;
  width: var(--content);
  margin: 62px auto 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.highlight-card {
  position: relative;
  display: flex;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  border: 3px solid var(--ink);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-navy);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: transform 260ms var(--ease), box-shadow 260ms ease;
}

.highlight-card:nth-child(2) { box-shadow: 8px 8px 0 var(--cyan); }
.highlight-card:nth-child(3) { box-shadow: 8px 8px 0 var(--pink); }
.highlight-card:nth-child(5) { box-shadow: 8px 8px 0 var(--cyan); }
.highlight-card:nth-child(6) { box-shadow: 8px 8px 0 var(--pink); }

.highlight-cover {
  display: block;
  margin: 0;
  width: 100%;
  height: auto;
  border-bottom: 3px solid var(--ink);
  transition: transform 700ms var(--ease);
}

.highlight-card > * {
  position: relative;
  z-index: 2;
  margin-right: 24px;
  margin-left: 24px;
}

.highlight-card > .highlight-cover {
  margin-right: 0;
  margin-left: 0;
}

.highlight-card:hover {
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(5px, 5px);
}

.highlight-card.reveal.is-visible:hover {
  transform: translate(5px, 5px);
}

.highlight-card:hover .highlight-cover {
  transform: scale(1.03);
}

.highlight-topline {
  display: flex;
  margin-top: 20px;
  margin-bottom: 14px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.highlight-type,
.highlight-id {
  padding: 4px 8px;
  border: 2px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.highlight-type { color: var(--white); background: var(--pink); }
.highlight-id { background: var(--yellow); }

.highlight-card h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(18px, 1.5vw, 23px);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.42;
}

.highlight-meta {
  display: flex;
  margin-top: 18px;
  margin-bottom: 20px;
  padding-top: 14px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 3px solid var(--ink);
}

.highlight-meta small {
  font-size: 11px;
}

.highlight-meta strong {
  padding: 5px 9px;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
}

/* Ledger */
.ledger-section {
  position: relative;
  padding: 120px 0 140px;
  border-top: 5px solid var(--ink);
  background: var(--paper);
}

.ledger-section::before {
  position: absolute;
  top: -5px;
  right: 0;
  width: 34%;
  height: 13px;
  background: linear-gradient(90deg, var(--pink), var(--cyan), var(--yellow));
  content: "";
}

.control-panel {
  position: relative;
  z-index: 10;
  width: var(--content);
  margin: 54px auto 0;
  padding: 28px;
  border: 3px solid var(--ink);
  background: var(--paper-lavender);
  box-shadow: 10px 10px 0 var(--ink);
}

.control-panel::before {
  position: absolute;
  top: -14px;
  left: 28px;
  width: 170px;
  height: 24px;
  border: 2px solid var(--ink);
  background: var(--cyan);
  content: "FILTER DESK";
  font-family: var(--font-latin);
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 20px;
  text-align: center;
  transform: rotate(-1deg);
}

.drawer-heading,
.drawer-apply,
.mobile-ledger-tools {
  display: none;
}

.control-topline {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px;
}

.search-field {
  position: relative;
  display: flex;
  min-height: 56px;
  align-items: center;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--cyan);
}

.search-field:focus-within {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
}

.search-icon {
  width: 24px;
  height: 24px;
  margin-left: 16px;
  flex: 0 0 24px;
  fill: var(--pink);
}

.search-field input {
  width: 100%;
  height: 50px;
  padding: 0 52px 0 13px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.search-field input::placeholder {
  color: rgba(32, 47, 109, 0.72);
}

.clear-search {
  position: absolute;
  right: 8px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--yellow);
  cursor: pointer;
}

.close-shape {
  display: block;
  width: 14px;
  height: 14px;
  background: currentColor;
  clip-path: polygon(0 18%, 18% 0, 50% 32%, 82% 0, 100% 18%, 68% 50%, 100% 82%, 82% 100%, 50% 68%, 18% 100%, 0 82%, 32% 50%);
}

.control-actions {
  display: flex;
  gap: 10px;
}

.reset-button,
.export-button {
  display: inline-flex;
  min-height: 56px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 3px solid var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.export-button {
  color: var(--white);
  background: var(--pink);
  box-shadow: 5px 5px 0 var(--ink);
}

.reset-button:hover,
.export-button:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.filter-groups {
  display: grid;
  margin-top: 28px;
  grid-template-columns: 0.9fr 1.35fr 0.9fr 1.35fr;
  gap: 22px;
}

.filter-group {
  min-width: 0;
}

.filter-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.filter-options,
.sort-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-options button,
.sort-options button {
  min-height: 44px;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--white);
  box-shadow: 3px 3px 0 rgba(32, 47, 109, 0.2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: transform 150ms ease, color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.filter-options button:hover,
.sort-options button:hover {
  background: var(--yellow);
  transform: translateY(-2px);
}

.filter-options button.active,
.sort-options button.active {
  color: var(--white);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--pink);
}

.sort-strip {
  display: grid;
  margin-top: 27px;
  padding-top: 22px;
  grid-template-columns: 82px 1fr;
  align-items: start;
  border-top: 3px solid var(--ink);
}

.filter-summary {
  display: grid;
  margin-top: 22px;
  padding: 14px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 2px dashed var(--ink);
  background: rgba(255, 243, 109, 0.35);
}

.filter-summary .filter-label {
  margin: 0;
}

.active-filter-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.active-filter-chips button,
.clear-active-filters {
  min-height: 38px;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  background: var(--white);
  cursor: pointer;
  font-size: 12px;
}

.active-filter-chips button {
  color: var(--ink);
  background: var(--violet);
}

.clear-active-filters {
  background: var(--yellow);
  font-weight: 700;
}

.result-line {
  display: flex;
  width: var(--content);
  margin: 42px auto 16px;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 14px;
}

.result-line strong {
  color: var(--pink);
  font-family: var(--font-latin);
  font-size: 22px;
  font-weight: 400;
}

.table-shell {
  position: relative;
  width: var(--content);
  margin: 0 auto;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 12px 12px 0 var(--cyan);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 18px 15px;
  border-bottom: 2px solid rgba(32, 47, 109, 0.18);
  vertical-align: top;
  text-align: left;
}

th {
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

th:nth-child(1) { width: 100px; }
th:nth-child(2) { width: auto; }
th:nth-child(3) { width: 122px; }
th:nth-child(4) { width: 132px; }
th:nth-child(5) { width: 292px; }
th:nth-child(6) { width: 76px; }
th:nth-child(7) { width: 68px; }

.record-row {
  transition: background 180ms ease;
}

.record-row:hover,
.record-row.expanded {
  background: rgba(255, 243, 109, 0.26);
}

.record-id {
  display: block;
  color: var(--pink);
  font-family: var(--font-latin);
  font-size: 19px;
  font-weight: 400;
}

.kind-badge {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 8px;
  border: 2px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.kind-prediction { color: var(--white); background: var(--pink); }
.kind-analysis { background: var(--cyan); }

.claim-cell strong {
  display: block;
  font-size: 17px;
  line-height: 1.5;
}

.claim-cell > p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  margin-top: 10px;
  gap: 5px;
  flex-wrap: wrap;
}

.tag-list span {
  padding: 2px 7px;
  color: var(--ink-soft);
  background: var(--paper-lavender);
  font-size: 10px;
}

.tag-list-table {
  margin-top: 0;
  gap: 6px;
}

.tag-list .tag-pill {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 7px;
  align-items: baseline;
  gap: 4px;
  border: 1px solid rgba(32, 47, 109, 0.26);
  color: var(--ink);
  background: var(--paper-lavender);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tag-pill b {
  color: var(--pink);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.tag-list .tag-pill-compact {
  padding: 3px 6px;
  font-size: 9px;
}

.tag-list .tag-人物,
.tag-list .tag-团体 { background: rgba(29, 211, 243, 0.2); }
.tag-list .tag-集数 { background: rgba(255, 243, 109, 0.42); }
.tag-list .tag-用途 { background: rgba(209, 188, 255, 0.48); }

.source-link,
.source-pending {
  display: inline-flex;
  min-height: 42px;
  padding: 8px 10px;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.source-link {
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.source-link:hover,
.source-link:focus-visible {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

.source-link span {
  color: var(--pink);
  font-size: 16px;
}

.source-pending {
  flex-direction: column;
  align-items: flex-start;
  background: var(--paper-lavender);
}

.source-pending small {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 500;
}

.source-link-compact {
  min-height: 0;
  padding: 5px 7px;
  font-size: 10px;
}

.comment-count {
  display: inline-flex;
  min-width: 48px;
  padding: 6px 8px;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.comment-count.has-comments { background: var(--yellow); }

.comment-count strong {
  color: var(--pink);
  font-family: var(--font-latin);
  font-size: 19px;
  font-weight: 400;
}

.comment-count small {
  color: var(--ink-soft);
  font-size: 9px;
}

.confidence-tag {
  position: relative;
  padding: 10px 10px 10px 14px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.confidence-tag::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--violet);
  content: "";
}

.confidence-high::before { background: var(--pink); }
.confidence-medium::before { background: var(--cyan); }
.confidence-low::before { background: var(--yellow); }
.confidence-exploratory::before { background: var(--violet); }

.confidence-tag span {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.confidence-tag small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.4;
}

.publication,
.status {
  display: inline-block;
  padding: 5px 8px;
  border: 2px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.publication.is-public { color: var(--white); background: var(--pink); }
.publication.is-private { background: var(--paper-lavender); }

td[data-label="发表"] > small {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}

.status-positive { background: var(--cyan); }
.status-partial { background: var(--yellow); }
.status-negative { color: var(--white); background: var(--pink); }
.status-theory { color: var(--ink); background: var(--violet); }
.status-pending { background: var(--white); }

.expand-cell {
  text-align: center;
}

.expand-button {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  place-items: center;
  border: 2px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--pink);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.expand-button:hover {
  box-shadow: 1px 1px 0 var(--pink);
  transform: translate(3px, 3px);
}

.expand-shape {
  display: block;
  width: 15px;
  height: 15px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: transform 180ms ease;
}

.expanded .expand-shape {
  transform: rotate(90deg);
}

.detail-row > td {
  padding: 0;
  border-bottom: 3px solid var(--ink);
  background: var(--paper-lavender);
}

.record-detail {
  display: grid;
  padding: 30px;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 22px;
  animation: detailOpen 100ms linear both;
}

.record-detail.analysis-detail {
  grid-template-columns: 1.25fr 0.58fr 1.17fr;
}

.reasoning-column > p:not(.detail-label) {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.85;
}

.comment-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.comment-heading > span {
  color: var(--pink);
  font-family: var(--font-latin);
  font-size: 15px;
}

.comment-list {
  display: grid;
  padding: 0;
  list-style: none;
  gap: 10px;
}

.comment-item {
  padding: 12px;
  border: 2px solid rgba(32, 47, 109, 0.18);
  background: var(--paper-lavender);
}

.comment-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.comment-meta strong {
  color: var(--pink);
  font-size: 12px;
}

.comment-meta time {
  color: var(--ink-soft);
  font-family: var(--font-latin);
  font-size: 11px;
}

.comment-item > p,
.comment-empty > p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.comment-empty {
  padding: 16px;
  border: 2px dashed var(--ink);
  background: rgba(255, 243, 109, 0.24);
}

.comment-empty strong { font-size: 13px; }

@keyframes detailOpen {
  from { opacity: 0; }
  to { opacity: 1; }
}

.detail-row.is-closing .record-detail {
  animation-name: detailClose;
  animation-duration: 80ms;
  pointer-events: none;
}

@keyframes detailClose {
  from { opacity: 1; }
  to { opacity: 0; }
}

.detail-column {
  padding: 20px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.detail-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 8px;
  color: var(--white);
  background: var(--pink);
  font-size: 11px;
  font-weight: 700;
}

.detail-column > p:not(.detail-label) {
  color: var(--ink-soft);
  font-size: 13px;
}

.revision-list {
  padding: 0;
  list-style: none;
}

.revision-list li {
  display: grid;
  padding: 12px 0;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  border-top: 2px solid rgba(32, 47, 109, 0.15);
}

.revision-list li:first-child {
  border-top: 0;
}

.revision-list time {
  color: var(--pink);
  font-family: var(--font-latin);
  font-size: 14px;
}

.revision-list strong {
  font-size: 12px;
}

.revision-list p,
.no-revisions {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.detail-actions {
  display: flex;
  padding: 0 30px 28px;
  justify-content: flex-end;
}

.record-share {
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--violet);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  padding: 40px;
  text-align: center;
}

.empty-state img {
  width: 180px;
  height: 150px;
  margin: 0 auto 20px;
  border: 3px solid var(--ink);
  object-fit: cover;
  box-shadow: 6px 6px 0 var(--cyan);
}

.empty-state button {
  min-height: 44px;
  margin-top: 16px;
  padding: 8px 16px;
  color: var(--white);
  background: var(--pink);
  cursor: pointer;
}

/* Footer and utilities */
footer {
  display: grid;
  min-height: 210px;
  padding: 52px max(32px, calc((100vw - 1440px) / 2 + 32px));
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 40px;
  border-top: 5px solid var(--pink);
  background: var(--yellow);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand > div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  font-size: 16px;
}

.footer-brand small {
  font-size: 13px;
}

footer > p {
  max-width: 420px;
  font-size: 13px;
}

footer > a {
  padding: 10px 14px;
  border: 2px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  font-family: var(--font-latin);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 18px;
  border: 2px solid var(--ink);
  color: var(--white);
  background: var(--pink);
  box-shadow: 6px 6px 0 var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.fatal-error {
  max-width: 620px;
  margin: 120px auto;
  padding: 28px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: var(--shadow-pink);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

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

/* Tablet */
@media (max-width: 1180px) {
  :root {
    --content: calc(100vw - 48px);
  }

  .site-header {
    padding: 0 20px;
    gap: 16px;
  }

  .site-nav a {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 15px;
  }

  .hero-copy {
    width: 55vw;
  }

  .hero-stickers {
    width: 330px;
  }

  .filter-groups {
    grid-template-columns: 1fr 1.4fr;
  }

  th:nth-child(3) { width: 148px; }
  th:nth-child(5) { width: 238px; }

  .record-detail {
    grid-template-columns: 1fr 1fr;
  }

  .record-detail.analysis-detail {
    grid-template-columns: 1fr 1fr;
  }

  .analysis-detail .comment-column {
    grid-column: 1 / -1;
  }

  .timeline-column {
    grid-column: 1 / -1;
  }
}

/* Mobile navigation and layout */
@media (max-width: 920px) {
  :root {
    --content: calc(100vw - 34px);
    --header-height: 68px;
  }

  .site-header {
    height: var(--header-height);
    grid-template-columns: 1fr auto;
  }

  body.nav-open,
  body.filters-open {
    overflow-y: hidden;
  }

  .site-header.scrolled {
    height: 62px;
  }

  .brand-swatch {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .header-share span {
    display: none;
  }

  .header-share {
    width: 46px;
    padding: 0;
    justify-content: center;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    z-index: 95;
    top: 0;
    right: 0;
    display: flex;
    width: min(390px, 86vw);
    height: 100dvh;
    padding: 100px 28px 40px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    border-left: 1px solid var(--line);
    background: var(--paper);
    box-shadow: -24px 0 48px rgba(32, 47, 109, 0.12);
    transform: translateX(110%);
    transition: transform 320ms var(--ease);
  }

  .site-nav a {
    min-height: 54px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    font-size: 15px;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  body.nav-open .nav-backdrop {
    display: block;
  }

  body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero {
    min-height: 100svh;
    padding: 0;
  }

  .hero-copy {
    width: 100%;
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(50px, 10vw, 76px);
  }

  .hero-deck {
    max-width: 700px;
  }

  .hero-stickers {
    right: 22px;
    bottom: 58px;
    width: min(410px, calc(100vw - 44px));
  }

  .scroll-cue {
    display: none;
  }

  .story-lead,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .story-lead {
    padding: 84px 0 52px;
  }

  .story-lead > p,
  .section-heading > p {
    padding: 0 0 0 18px;
  }

  .story-pin {
    width: 100%;
    padding: 0 0 82px 17px;
  }

  .story-scenes {
    display: grid;
    padding: 0 17px 18px 0;
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: min(86vw, 610px);
    grid-template-columns: none;
    gap: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--pink) rgba(255, 255, 255, 0.18);
  }

  .story-scene {
    min-height: min(760px, 82svh);
    scroll-snap-align: center;
  }

  .metrics {
    padding: 80px 0 96px;
    grid-template-columns: 1fr 1fr;
  }

  .metrics article {
    min-height: 190px;
  }

  .metrics article + article {
    margin-left: -3px;
  }

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

  .mobile-ledger-tools {
    position: sticky;
    z-index: 30;
    top: 72px;
    display: flex;
    width: var(--content);
    min-height: 60px;
    margin: 44px auto 18px;
    padding: 9px 10px 9px 15px;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    border: 3px solid var(--ink);
    background: var(--yellow);
    box-shadow: 6px 6px 0 var(--ink);
  }

  .mobile-ledger-tools p {
    font-size: 13px;
  }

  .mobile-ledger-tools button {
    min-height: 42px;
    padding: 7px 12px;
    color: var(--white);
    background: var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-ledger-tools button span {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    margin-left: 5px;
    place-items: center;
    color: var(--ink);
    background: var(--cyan);
  }

  .control-panel {
    position: fixed;
    z-index: 120;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 88dvh;
    margin: 0;
    padding: 22px 18px 92px;
    overflow-y: auto;
    border: 3px solid var(--ink);
    box-shadow: 0 -9px 0 var(--cyan);
    transform: translateY(112%);
    transition: transform 320ms var(--ease);
  }

  .control-panel::before {
    display: none;
  }

  body.filters-open .control-panel {
    transform: translateY(0);
  }

  body.filters-open .filter-backdrop {
    z-index: 110;
    display: block;
  }

  .drawer-heading {
    display: flex;
    margin-bottom: 22px;
    justify-content: space-between;
    align-items: center;
  }

  .drawer-heading > div {
    display: flex;
    flex-direction: column;
  }

  .drawer-heading span {
    color: var(--pink);
    font-size: 13px;
  }

  .drawer-heading strong {
    font-size: 19px;
  }

  #close-filters {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 2px solid var(--ink);
    background: var(--yellow);
    cursor: pointer;
  }

  .control-topline,
  .filter-groups {
    grid-template-columns: 1fr;
  }

  .control-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-groups {
    gap: 18px;
  }

  .filter-options,
  .sort-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 4px 6px 0;
    scrollbar-width: thin;
  }

  .filter-options button,
  .sort-options button {
    flex: 0 0 auto;
  }

  .sort-strip {
    grid-template-columns: 1fr;
  }

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

  .filter-summary > .filter-label {
    grid-column: 1 / -1;
  }

  .drawer-apply {
    position: fixed;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 12px 18px;
    border-top: 3px solid var(--ink);
    background: var(--paper);
  }

  .drawer-apply button {
    width: 100%;
    min-height: 50px;
    color: var(--white);
    background: var(--pink);
    cursor: pointer;
    font-weight: 700;
  }

  .result-line {
    display: none;
  }

  .table-shell {
    margin-top: 26px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  .record-row {
    position: relative;
    display: grid;
    margin-bottom: 22px;
    padding: 18px;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    border: 3px solid var(--ink);
    background: var(--white);
    box-shadow: 7px 7px 0 var(--cyan);
  }

  .record-row.expanded {
    margin-bottom: 0;
    background: var(--white);
    box-shadow: 7px 0 0 var(--pink);
  }

  .record-row td {
    padding: 0;
    border: 0;
  }

  .record-row td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-soft);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
  }

  .record-row .claim-cell {
    grid-column: 1 / -1;
    padding: 14px 0;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
  }

  .record-row td[data-label="标签"] {
    grid-column: 1 / -1;
  }

  .claim-cell::before,
  .expand-cell::before {
    display: none !important;
  }

  .record-row .expand-cell {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 46px;
  }

  .record-row td:first-child {
    padding-right: 56px;
    grid-column: 1 / -1;
  }

  .detail-row {
    margin: -1px 0 24px;
    border: 3px solid var(--ink);
    border-top: 0;
    box-shadow: 7px 7px 0 var(--pink);
  }

  .record-detail {
    grid-template-columns: 1fr;
  }

  .record-detail.analysis-detail {
    grid-template-columns: 1fr;
  }

  .analysis-detail .comment-column {
    grid-column: auto;
  }

  .timeline-column {
    grid-column: auto;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

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

  body {
    font-size: 15px;
  }

  .site-header {
    padding: 0 14px;
  }

  .hero {
    min-height: 100svh;
    padding: 0;
  }

  .hero-kicker {
    margin-top: 20px;
    font-size: 14px;
  }

  .hero h1 {
    margin-top: 19px;
    font-size: clamp(45px, 13.3vw, 64px);
  }

  .hero-deck {
    margin-top: 22px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 25px;
    gap: 12px;
  }

  .primary-action,
  .secondary-action {
    min-height: 48px;
    padding: 9px 13px;
    font-size: 13px;
  }

  .hero-meta {
    margin-top: 30px;
  }

  .hero-meta > div {
    min-width: 31%;
    padding: 0 9px;
  }

  .hero-meta dt {
    font-size: 10px;
  }

  .hero-meta dd {
    font-size: 12px;
  }

  .hero-stickers {
    right: 14px;
    bottom: 40px;
    width: calc(100vw - 28px);
    gap: 8px;
  }

  .hero-sticker {
    min-height: 118px;
    padding: 14px;
  }

  .hero-sticker strong {
    font-size: 42px;
  }

  .hero-sticker-note {
    font-size: 11px;
  }

  .story-lead h2,
  .section-heading h2 {
    font-size: clamp(42px, 12vw, 60px);
  }

  .story-scenes {
    grid-auto-columns: 89vw;
  }

  .story-scene {
    min-height: 76svh;
  }

  .story-copy {
    right: 15px;
    bottom: 15px;
    left: 15px;
    padding: 19px;
  }

  .story-copy h3 {
    font-size: 25px;
  }

  .story-copy p {
    font-size: 13px;
  }

  .metrics article {
    min-height: 150px;
    padding: 20px;
  }

  .metric-value {
    font-size: 68px;
  }

  .metric-label {
    right: auto;
    bottom: auto;
    left: auto;
    font-size: 10px;
  }

  .highlights,
  .ledger-section {
    padding-top: 88px;
    padding-bottom: 100px;
  }

  .highlight-grid {
    margin-top: 42px;
    grid-template-columns: 1fr;
  }

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

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

  .record-detail {
    padding: 18px;
  }

  .detail-actions {
    padding: 0 18px 20px;
  }

  footer {
    padding: 42px 18px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  footer > p {
    grid-column: auto;
    grid-row: auto;
  }

  footer > a {
    width: fit-content;
  }
}

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

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

  .hero-art img {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .prediction-story.is-enhanced .story-track,
  .prediction-story.is-enhanced .story-pin {
    height: auto;
  }

  .prediction-story.is-enhanced .story-pin,
  .prediction-story.is-enhanced .story-scenes,
  .prediction-story.is-enhanced .story-scene {
    position: relative;
    inset: auto;
  }

  .prediction-story.is-enhanced .story-scenes {
    display: grid;
  }

  .prediction-story.is-enhanced .story-scene {
    min-height: 680px;
  }

  .prediction-story.is-enhanced .story-media {
    clip-path: none;
  }

  .prediction-story.is-enhanced .story-copy {
    top: auto;
    right: 28px;
    bottom: 28px;
    left: 28px;
    width: auto;
    opacity: 1;
    transform: none;
  }

  .prediction-story.is-enhanced .story-controls {
    display: none;
  }
}

@media print {
  .site-header,
  .hero,
  .prediction-story,
  .highlights,
  footer,
  .control-panel,
  .mobile-ledger-tools,
  .toast {
    display: none !important;
  }

  .ledger-section {
    padding: 0;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .table-shell {
    width: 100%;
    box-shadow: none;
  }
}
