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

/* 组件类带 display 时会盖掉浏览器默认的 [hidden]，必须显式兜底 */
[hidden] { display: none !important; }

/* 首次出场：主角（对比图）先到，文字按阅读顺序跟上。只播放一次 */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.js-ready .hero-grid .stage { animation: rise 620ms cubic-bezier(.22,.7,.2,1) both; }
.js-ready .hero-grid .hero-head > * { animation: rise 520ms cubic-bezier(.22,.7,.2,1) both; }
.js-ready .hero-grid .hero-head > :nth-child(1) { animation-delay: 80ms; }
.js-ready .hero-grid .hero-head > :nth-child(2) { animation-delay: 140ms; }
.js-ready .hero-grid .hero-head > :nth-child(3) { animation-delay: 200ms; }
.js-ready .hero-grid .hero-head > :nth-child(4) { animation-delay: 260ms; }

/* 下方区块按阅读顺序出场：滚动到位才动，只做一次，幅度小，不循环 */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms cubic-bezier(.22,.7,.2,1), transform 520ms cubic-bezier(.22,.7,.2,1);
}
.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* 滚动叙事：对比手柄随滚动推进，把「越靠近越看清」这件事做成可见变化 */
.scroll-narrative .compare { --split: 50%; }
.scroll-narrative .compare .handle { transition: left 90ms linear; }

@media (prefers-reduced-motion: reduce) {
  .js-ready .hero-grid .stage,
  .js-ready .hero-grid .hero-head > * { animation: none; }
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-narrative .compare .handle { transition: none; }
}

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 5.2vw, 68px); font-weight: 650; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 620; }
h3 { font-size: 17px; font-weight: 600; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

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

num, .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

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

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  max-width: 54ch;
}

.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.site-header {
  height: var(--header-h);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
}
.site-header .shell {
  display: flex;
  align-items: center;
  gap: var(--step-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-mark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.85;
}
.nav { display: flex; gap: var(--step-5); margin-left: auto; align-items: center; }
.nav a { color: var(--text-dim); font-size: 14px; }
.nav a:hover { color: var(--text); }
.nav a.current { color: var(--text); }

.footer {
  border-top: 1px solid var(--line-soft);
  padding: var(--step-6) 0 var(--step-7);
  margin-top: var(--step-8);
  color: var(--text-faint);
  font-size: 13px;
}
.footer .shell { display: flex; gap: var(--step-5); flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 680px) {
  :root { --header-h: 56px; }
  .shell { width: min(100% - 32px, var(--page-max)); }
  .nav { gap: var(--step-3); }
  .nav a { font-size: 13px; }
  .nav a.hide-sm { display: none; }
}
