:root {
  --bg: #FDFCFE;
  --bg-panel: #F4F1FD;
  --bg-panel-2: #ECE7FB;
  --border: #E4E0F0;
  --border-soft: #EEEBF6;
  --surface: #FFFFFF;
  --accent: #6B4FE0;
  --accent-2: #4F6BF0;
  --accent-dark: #3B2A9A;
  --text: #251B5C;
  --text-muted: #6A6488;
  --success: #1F9D6B;
  --warn: #C98512;
  --error: #D6455D;
  --success-ink: #176546;
  --warn-ink: #80510A;
  --error-ink: #A32640;
  --halo-violet: #B9A9F7;
  --halo-lilac: #E6D9FB;
  --mask-on: #000000;
  --mask-off: transparent;
  --veil: rgba(37, 27, 92, .18);

  --grad-accent: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --grad-accent-v: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  --grad-panel: linear-gradient(158deg, var(--bg-panel) 0%, var(--bg-panel) 38%, var(--bg-panel-2) 100%);
  --shadow-cell: 0 1px 2px rgba(37, 27, 92, .04), 0 12px 26px -16px rgba(37, 27, 92, .20);
  --shadow-panel: 0 1px 2px rgba(37, 27, 92, .03), 0 40px 80px -56px rgba(59, 42, 154, .30);
  --shadow-btn: 0 1px 1px rgba(59, 42, 154, .20), 0 12px 24px -12px rgba(79, 107, 240, .60);
  --shadow-btn-hover: 0 1px 1px rgba(59, 42, 154, .22), 0 16px 30px -12px rgba(79, 107, 240, .70);
  --shadow-chip: 0 1px 2px rgba(37, 27, 92, .04);
  --shadow-seg: 0 1px 2px rgba(37, 27, 92, .08), 0 4px 10px -6px rgba(37, 27, 92, .18);
  --ring-focus: 0 0 0 3px rgba(107, 79, 224, .28);

  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --fs-xs: 12px;
  --fs-caption: 13px;
  --fs-small: 14px;
  --fs-nav: 14.5px;
  --fs-body-small: 15px;
  --fs-body: 16px;
  --fs-lead: 16.5px;
  --fs-subtitle: 20px;
  --fs-tab: 22px;
  --fs-h3: 24px;
  --fs-h2: 32px;
  --fs-h1: clamp(34px, 1.5vw + 24px, 46px);
  --fs-hero: clamp(28px, 1.5vw + 24px, 46px);
  --fs-mobile-h1: 28px;
  --tracking-heading: -.02em;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-cell: 20px;
  --r-card: 28px;
  --r-xl: 32px;
  --r-pill: 999px;
  --r-circle: 50%;

  --gutter: 32px;
  --gutter-l: 80px;
  --gutter-r: 24px;
  --reading-width: 1120px;
  --header-height: 72px;
  --section-space: 120px;
  --cell: 92px;
  --cell-gap: 12px;
  --duration-fast: .2s;
  --duration-base: .25s;
  --duration-reveal: .6s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 28px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main, section, article, aside, nav, header, footer, div { min-width: 0; }
img, video { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--mask-off); }
button { color: var(--text); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
  border-radius: var(--r-sm);
}
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  color: var(--text);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: var(--tracking-heading); }
h2 { font-size: var(--fs-h2); line-height: 1.25; letter-spacing: -.015em; }
h3 { font-size: var(--fs-h3); line-height: 1.35; letter-spacing: -.01em; }
p { margin-top: 0; }
strong, b { font-weight: var(--weight-medium); }
code, pre, kbd { font-family: var(--font-mono); }
code { font-size: .875em; overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  color: var(--text);
  line-height: 1.8;
  overscroll-behavior-inline: contain;
}
pre code { overflow-wrap: normal; white-space: pre; }
hr { border: 0; border-top: 1px solid var(--border); margin-block: 40px; }
::selection { background: var(--bg-panel-2); color: var(--text); }
.wrap {
  width: 100%;
  max-width: calc(var(--reading-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.section__heading { margin-top: 12px; margin-bottom: 40px; }
.section--center > .section__heading, .section--center > .eyebrow { text-align: center; }
.grid-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-pair > *, .grid-trio > * { min-width: 0; }
.grid-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  color: var(--accent-dark);
}
.muted { color: var(--text-muted); }
.keep-word { white-space: nowrap; }
.text-link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .25em; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-pill);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.stop-a { stop-color: var(--accent); }
.stop-b { stop-color: var(--accent-2); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 12px 28px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: var(--fs-body);
  font-weight: var(--weight-medium);
  letter-spacing: .005em;
  line-height: 1.5;
  text-align: center;
  transition: box-shadow var(--duration-base) ease, transform var(--duration-base) ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { color: var(--surface); background: var(--grad-accent); box-shadow: var(--shadow-btn); }
.btn--primary:hover, .btn--primary.is-hover { color: var(--surface); box-shadow: var(--shadow-btn-hover); transform: translateY(-1px); }
.btn--ghost {
  color: var(--accent);
  border: 1.5px solid var(--accent);
  background: var(--bg);
  padding-inline: 26px 24px;
}
.btn--ghost:hover { color: var(--accent-dark); transform: translateY(-1px); }
.btn--quiet { background: var(--bg-panel); color: var(--accent-dark); }
.btn:active, .btn.is-active { transform: translateY(1px); box-shadow: var(--shadow-chip); }
.btn:focus-visible, .btn.is-focus { border-radius: var(--r-pill); box-shadow: var(--ring-focus); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--bg-panel-2); color: var(--text-muted); box-shadow: none; cursor: not-allowed; transform: none; }
.btn--small { min-height: 44px; padding: 10px 20px; font-size: var(--fs-small); }

#site-header { position: relative; z-index: 30; }
.topbar {
  position: relative;
  z-index: 30;
  height: var(--header-height);
  width: 100%;
  max-width: min(100%, calc(1280px + var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--gutter);
}
.topbar--preview { max-width: none; padding-inline: var(--gutter-l) var(--gutter-r); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand__name { font-size: var(--fs-body); font-weight: var(--weight-medium); letter-spacing: -.01em; color: var(--text); }
.nav { display: flex; align-items: center; min-width: 0; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
  font-size: var(--fs-nav);
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--duration-fast) ease;
}
.nav__link svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav__link .dot-fill { fill: currentColor; stroke: none; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"] svg { stroke: url(#ga); }
.nav__link[aria-current="page"] .dot-fill { fill: url(#ga); }
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.language { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  cursor: pointer;
  box-shadow: var(--shadow-chip);
  white-space: nowrap;
}
.lang svg { width: 16px; height: 16px; fill: none; stroke: var(--text-muted); stroke-width: 2.2; stroke-linecap: round; }
.lang__caret { color: var(--text-muted); }
.lang__short { display: none; }
.language__menu {
  position: absolute;
  z-index: 35;
  right: 0;
  top: calc(100% + 10px);
  width: 208px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-panel);
}
.language__menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--r-sm); }
.language__menu a:hover, .language__menu [aria-current="true"] { background: var(--bg-panel); color: var(--accent-dark); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mobile-drawer { display: none; }
.nav-veil { position: fixed; inset: var(--header-height) 0 0; z-index: 20; border: 0; background: var(--veil); color: var(--text); }
.preview-menu { display: none; }
.card, .panel {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-cell);
}
.panel { background: var(--bg-panel); color: var(--text); box-shadow: var(--shadow-panel); }
.card h3, .panel h3 { margin-top: 0; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.prose { min-width: 0; line-height: 1.9; }
.prose h2 { margin-top: 64px; margin-bottom: 24px; }
.prose h3 { margin-top: 36px; }
.prose p, .prose li { overflow-wrap: break-word; }
.prose a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .2em; }
.prose :is(ul, ol) { padding-left: 1.5em; }
.prose :is(section, div, figure) { min-width: 0; max-width: 100%; }
.prose figure { margin-inline: 0; }
.reveal { opacity: 1; transform: none; }
.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal.shown { opacity: 1; transform: none; transition: opacity var(--duration-reveal) ease, transform var(--duration-reveal) ease; }

.site-footer {
  position: relative;
  margin-top: 48px;
  padding-top: 64px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.footer-intro { margin-top: 20px; color: var(--text-muted); font-size: var(--fs-small); max-width: 26em; }
.footer-title { margin: 0 0 18px; font-size: var(--fs-body); font-weight: var(--weight-medium); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding-block: 7px; font-size: var(--fs-small); color: var(--text-muted); overflow-wrap: break-word; }
.footer-links a:hover, .footer-links a[aria-current] { color: var(--accent-dark); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--fs-caption); }

/* 装饰必须留在自己的画布，不扩大正文滚动区域。 */
.hero, .decorated-section { position: relative; overflow-x: clip; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 37fr) minmax(0, 63fr);
  column-gap: 40px;
  padding: 16px var(--gutter-r) 0 var(--gutter-l);
}
.hero__halo { position: absolute; pointer-events: none; border-radius: var(--r-circle); }
.hero__halo--page {
  left: -260px;
  bottom: -300px;
  width: 720px;
  height: 560px;
  background: radial-gradient(closest-side, var(--halo-violet), var(--mask-off));
  opacity: .26;
}
.hero__copy { position: relative; z-index: 2; align-self: center; padding-top: 8px; padding-bottom: 12px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px 15px 6px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-muted);
  box-shadow: var(--shadow-chip);
  font-size: var(--fs-caption);
  letter-spacing: .01em;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.badge__dot { width: 7px; height: 7px; border-radius: var(--r-circle); background: var(--success); flex-shrink: 0; }
.badge__sep { color: var(--text-muted); }
.badge b { color: var(--text); }
.hero__title { margin: 28px 0 0; font-size: var(--fs-hero); line-height: 1.1; letter-spacing: var(--tracking-heading); }
.hero__title > span { display: block; }
.hero__lead { margin: 22px 0 0; max-width: 30em; font-size: var(--fs-lead); line-height: 1.78; color: var(--text-muted); }
.hero__lead strong { color: var(--text); }
.plat { margin-top: 44px; }
.plat__label { margin: 0 0 12px; font-size: var(--fs-caption); color: var(--text-muted); }
.plat__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.plat__link { display: inline-flex; align-items: center; gap: 8px; padding-block: 3px; font-size: var(--fs-body-small); color: var(--text); }
.plat__link svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.plat__link:hover { color: var(--accent-dark); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.fact { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; max-width: 100%; padding: 6px 13px 6px 11px; border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text); border: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .01em; overflow-wrap: anywhere; }
.fact svg { width: 15px; height: 15px; fill: none; stroke: url(#ga); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.stagefield {
  position: relative;
  z-index: 1;
  height: clamp(540px, calc(100vh - 176px), 624px);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--grad-panel);
  color: var(--text);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stagefield__halo { position: absolute; border-radius: var(--r-circle); pointer-events: none; z-index: -1; }
.stagefield__halo--lilac { right: -170px; top: 6%; width: 560px; height: 560px; background: radial-gradient(closest-side, var(--halo-lilac), var(--mask-off)); opacity: .95; }
.stagefield__halo--violet { left: -120px; bottom: -200px; width: 520px; height: 440px; background: radial-gradient(closest-side, var(--halo-violet), var(--mask-off)); opacity: .34; }
.stagefield__sheen { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 70% at 50% 0%, var(--surface), var(--mask-off) 60%); opacity: .55; }
.stagefield__eyebrow { position: absolute; top: 28px; left: 32px; margin: 0; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .06em; color: var(--text-muted); }
.stagefield__note { position: absolute; bottom: 26px; left: 32px; right: 32px; margin: 0; font-size: var(--fs-caption); line-height: 1.6; color: var(--text-muted); }
.stagefield__note code { color: var(--text); }
.matrix {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  mask-image: linear-gradient(90deg, var(--mask-off) 0, var(--mask-on) 58px, var(--mask-on) calc(100% - 58px), var(--mask-off) 100%);
  -webkit-mask-image: linear-gradient(90deg, var(--mask-off) 0, var(--mask-on) 58px, var(--mask-on) calc(100% - 58px), var(--mask-off) 100%);
}
.matrix__row { display: flex; justify-content: center; gap: var(--cell-gap); margin: 0; padding: 0; list-style: none; }
.matrix__row--shift { transform: translateX(calc((var(--cell) + var(--cell-gap)) / -2)); }
.matrix__row--tail { mask-image: linear-gradient(180deg, var(--mask-on), var(--mask-off) 88%); -webkit-mask-image: linear-gradient(180deg, var(--mask-on), var(--mask-off) 88%); }
.cell { flex-shrink: 0; width: var(--cell); height: var(--cell); border-radius: var(--r-cell); border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow-cell); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 6px; }
.cell--ghost { opacity: .5; box-shadow: none; }
.cell__mark { width: 32px; height: 32px; flex-shrink: 0; }
.cell__mark .ln { fill: none; stroke: url(#ga); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cell__mark .fl, .cell__mark .tile { fill: url(#ga); }
.cell__mark .on-tile { fill: none; stroke: var(--surface); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cell__mark .tile-text { fill: var(--surface); font-family: var(--font-mono); font-size: 11.5px; font-weight: var(--weight-medium); }
.cell__label { font-size: var(--fs-xs); line-height: 1.2; color: var(--text-muted); text-align: center; white-space: nowrap; }

@media (max-width: 1180px) {
  .topbar:not(.topbar--preview) > .nav { display: none; }
  .topbar:not(.topbar--preview) .menu-toggle { display: inline-flex; }
  .header-tools { margin-left: auto; }
  .mobile-drawer:not([hidden]) {
    display: block;
    position: absolute;
    z-index: 32;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px var(--gutter) 32px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-panel);
  }
  .mobile-drawer ul { margin: 0; padding: 0; list-style: none; }
  .mobile-drawer a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-sm); }
  .mobile-drawer a:hover, .mobile-drawer [aria-current] { background: var(--bg-panel); color: var(--accent-dark); }
  .mobile-drawer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-drawer .dot-fill { fill: currentColor; stroke: none; }
  .mobile-drawer__languages { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
}
@media (max-width: 1180px) {
  :root { --gutter-l: 48px; }
  .nav__list { gap: 18px; }
}
@media (max-width: 960px) {
  :root { --gutter-l: 24px; --gutter-r: 24px; --gutter: 24px; --section-space: 88px; }
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .stagefield { height: 480px; }
  .topbar--preview > .nav { display: none; }
  .preview-menu { display: block; }
  .preview-menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--r-pill); list-style: none; cursor: pointer; background: var(--surface); color: var(--text); }
  .preview-menu summary::-webkit-details-marker { display: none; }
  .preview-menu nav { position: absolute; z-index: 40; top: var(--header-height); inset-inline: 0; padding: 20px var(--gutter); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); }
  .preview-menu nav a { display: block; min-height: 44px; padding: 12px 16px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1, .hero__title { font-size: var(--fs-mobile-h1); }
  .grid-trio { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --gutter-l: 20px; --gutter-r: 20px; --fs-h2: 24px; --fs-h3: 20px; }
  .topbar { gap: 10px; }
  .brand { gap: 8px; }
  .brand__name { font-size: var(--fs-body-small); }
  .brand__mark { width: 26px; height: 26px; }
  .header-tools { gap: 8px; margin-left: auto; }
  .lang { min-height: 44px; padding-inline: 11px; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .lang > svg { display: none; }
  .hero__lead { font-size: var(--fs-body-small); }
  .hero__title .keep-word { white-space: normal; }
  .cta { gap: 10px; margin-top: 28px; }
  .btn { padding-inline: 22px; }
  .plat { margin-top: 30px; }
  .plat__row { gap: 8px 22px; }
  .facts { gap: 8px; }
  .fact { padding-inline: 10px; }
  .card, .panel { padding: 24px; }
  .grid-pair { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-grid { gap: 32px 20px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .tilt, [data-tilt] { transform: none !important; }
  pre { padding: 18px; }
  .stagefield__eyebrow { left: 24px; right: 24px; }
  .stagefield__note { left: 24px; right: 24px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; --gutter-l: 16px; --gutter-r: 16px; }
  .brand__name { font-size: var(--fs-caption); }
  .badge { font-size: var(--fs-xs); padding-inline: 10px; gap: 8px; }
  .hero__title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-pending, .reveal.shown { opacity: 1; transform: none; }
}