:root {
  --bg: #1b1a1f;
  --bg-panel: #24232a;
  --bg-panel-2: #2e2d35;
  --border: #3a3942;
  --line-strong: #5b5964;
  --accent: #2a78d6;
  --accent-dark: #17488f;
  --accent-ring: rgba(42, 120, 214, 0.22);
  --accent-glow: rgba(42, 120, 214, 0.34);
  --accent-edge: rgba(42, 120, 214, 0.32);
  --text: #f2f1f4;
  --text-muted: #a19fab;
  --success: #3fb27f;
  --warn: #cbb98d;
  --error: #e0605a;
  --white: #ffffff;
  --bar-ink: #2a2618;
  --header-ink: #1b1a1f;
  --header-ink-muted: #55535e;
  --header-line: #e4e3e9;
  --paper: #f8f8fa;
  --paper-side: #f0eff3;
  --paper-line: #e9e8ed;
  --paper-edge: #d4d3da;
  --paper-ink: #24232a;
  --paper-ink-2: #605e6a;
  --paper-ink-3: #a3a1ac;
  --note-bg: #1b1a1f;
  --veil: rgba(27, 26, 31, 0.62);
  --clear: transparent;
  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans', 'Apple SD Gothic Neo', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  --fs-xxs: 10px;
  --fs-key: 10.5px;
  --fs-xs: 11px;
  --fs-chip: 11.5px;
  --fs-code: 12px;
  --fs-code-lg: 12.5px;
  --fs-small: 13px;
  --fs-notice: 13.5px;
  --fs-nav: 14.5px;
  --fs-body: 15px;
  --fs-lead: 15.5px;
  --fs-brand: 16px;
  --fs-subtitle: 20px;
  --fs-h3: 24px;
  --fs-h2: clamp(26px, 3vw, 36px);
  --fs-h1: clamp(34px, 3.2vw, 46px);
  --fs-h1-mobile: clamp(24px, 7vw, 30px);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --tracking-display: -0.02em;
  --tracking-tight: -0.01em;
  --tracking-label: 0.08em;
  --r-xl: 40px;
  --r-lg: 32px;
  --r-md: 16px;
  --r-sm: 8px;
  --r-xs: 6px;
  --r-shot: 10px;
  --r-line: 2px;
  --r-pill: 999px;
  --r-circle: 50%;
  --gutter: 24px;
  --wrap: 1200px;
  --header-wrap: 1280px;
  --reading: 800px;
  --section-gap: 160px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --header-height: 64px;
  --notice-height: 34px;
  --drawer-clearance: 140px;
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
  --speed: 0.2s;
  --reveal-speed: 0.65s;
  --layer-header: 50;
  --layer-fab: 30;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { margin: 0; padding: 0; }
html.nav-open { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: var(--accent-ring); }
button:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; }
img, svg { max-width: 100%; }
img { display: block; }
svg { flex-shrink: 0; }
figure, dd { margin: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.2; }
h2 { font-size: var(--fs-h2); line-height: 1.3; }
h3 { font-size: var(--fs-h3); line-height: 1.4; }
p { margin-bottom: var(--space-sm); }
strong { font-weight: var(--weight-semibold); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
::selection { background: var(--accent-dark); color: var(--white); }
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.reading { max-width: calc(var(--reading) + var(--gutter) * 2); }
.section {
  position: relative;
  padding-top: var(--section-gap);
  padding-bottom: 0;
  overflow-x: clip;
}
.section:last-child { padding-bottom: var(--section-gap); }
.section__head { max-width: 760px; margin-bottom: var(--space-lg); }
.section__eyebrow, .eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-code);
  color: var(--text-muted);
}
.muted { color: var(--text-muted); }
.keep { white-space: nowrap; }
.grid { display: grid; gap: var(--space-md); }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > *, .flex > *, .prose, .prose div, .article-body, .article-body div { min-width: 0; }
.flex { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 8px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--header-ink);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.prose, .article-body { line-height: 1.9; overflow-wrap: break-word; }
.prose h2, .article-body h2 { margin-top: 64px; margin-bottom: 24px; }
.prose h3, .article-body h3 { margin-top: 40px; margin-bottom: 16px; }
.prose a, .article-body a, .text-link {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.prose li + li, .article-body li + li { margin-top: 8px; }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-code-lg);
  line-height: 1.9;
  overscroll-behavior-inline: contain;
  tab-size: 2;
}
pre code { font-size: inherit; white-space: pre; overflow-wrap: normal; word-break: normal; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 176px;
  max-width: 100%;
  padding: 11px 26px;
  border: 1px solid var(--clear);
  border-radius: var(--r-pill);
  background: var(--clear);
  color: var(--text);
  font-size: var(--fs-body);
  font-weight: var(--weight-medium);
  line-height: 1.6;
  text-align: center;
  transition: background-color var(--speed), border-color var(--speed), color var(--speed);
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--accent-dark); color: var(--white); }
.btn--ghost { border-color: var(--line-strong); background: var(--clear); color: var(--text); }
.btn--ghost:hover, .btn--ghost.is-hover { border-color: var(--text-muted); }
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn__arrow { color: var(--text-muted); }
.cta { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.panel, .card {
  min-width: 0;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  color: var(--text);
}
.card__meta { color: var(--text-muted); font-size: var(--fs-small); }
.card h3 { margin-bottom: var(--space-sm); }
.gradient-panel {
  padding: var(--space-xl);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--bg-panel), var(--accent-dark));
  color: var(--white);
}
.reveal { transition: opacity var(--reveal-speed) var(--ease), transform var(--reveal-speed) var(--ease); }
html.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(18px); }
.reveal.shown { opacity: 1; transform: none; }

/* Shared header: solid surfaces, independently widened measure. */
#site-header, .preview-header { position: relative; z-index: var(--layer-header); }
.notice { position: relative; z-index: 2; background: var(--warn); color: var(--bar-ink); font-size: var(--fs-notice); }
.notice__in { min-height: var(--notice-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.notice__text { margin: 0; padding-block: 5px; letter-spacing: 0.01em; }
.notice__link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.notice__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.masthead { position: relative; z-index: 2; background: var(--white); color: var(--header-ink); }
.masthead__in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: var(--header-height);
  width: 100%;
  max-width: min(100%, calc(var(--header-wrap) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: var(--fs-brand); font-weight: var(--weight-medium); letter-spacing: var(--tracking-tight); }
.brand__mark { width: 32px; height: 32px; border-radius: var(--r-circle); flex-shrink: 0; }
.brand__placeholder {
  display: block;
  background: var(--white);
  color: var(--header-ink);
  border: 2px solid var(--accent);
  box-shadow: inset 0 0 0 4px var(--paper-side);
}
.desktop-nav { min-width: 0; margin-left: 40px; }
.tabs {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.tabs__item { display: flex; min-width: 0; }
.tabs__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  padding-inline: 12px;
  color: var(--header-ink-muted);
  font-size: var(--fs-nav);
  white-space: nowrap;
  transition: color var(--speed);
}
.tabs__link:hover, .tabs__link[aria-current="page"] { color: var(--header-ink); }
.tabs__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: var(--r-line);
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity var(--speed), transform var(--speed);
}
.tabs__link[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-left: 16px; flex-shrink: 0; }
.language-picker { position: relative; }
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--header-line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--header-ink);
  font-size: var(--fs-notice);
  white-space: nowrap;
}
.lang:hover { border-color: var(--header-ink-muted); }
.lang__caret { color: var(--header-ink-muted); font-size: var(--fs-xs); }
.lang__short { display: none; }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 4;
  min-width: 180px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--header-line);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--header-ink);
}
.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 a[aria-current="true"] { background: var(--paper-side); color: var(--header-ink); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--header-line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--header-ink);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; }
.nav-veil { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: var(--veil); color: var(--white); }

/* Approved first-screen composition. */
.hero { position: relative; padding-top: 34px; overflow-x: clip; }
.hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__mark {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: var(--r-circle);
  flex-shrink: 0;
  background: var(--white);
  color: var(--header-ink);
  box-shadow: 0 0 0 6px var(--bg-panel);
}
.hero__placeholder { border: 2px solid var(--accent); box-shadow: inset 0 0 0 6px var(--paper-side), 0 0 0 6px var(--bg-panel); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  max-width: 100%;
  padding: 3px 14px 3px 12px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: var(--fs-small);
}
.tag__dot { width: 7px; height: 7px; border-radius: var(--r-circle); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); flex-shrink: 0; }
.hero__title { margin: 0 0 14px; font-size: var(--fs-h1); line-height: 1.2; }
.hero__title-main { display: block; color: var(--text); }
.hero__title-sub { display: block; color: var(--text-muted); }
.hero__lead { max-width: 640px; margin: 0 0 24px; font-size: var(--fs-lead); line-height: 1.7; color: var(--text-muted); }
.hero__lead strong { color: var(--text); font-weight: var(--weight-medium); }
.devices { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 0 0 22px; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--text-muted); }
.devices__item, .devices__item a { display: inline-flex; align-items: center; gap: 7px; min-height: 22px; }
.devices__item svg { width: 18px; height: 18px; flex-shrink: 0; }
.devices__item--main { color: var(--text); }
.devices__item a:hover { text-decoration: underline; text-underline-offset: 4px; }
.devices__rule { width: 1px; height: 14px; background: var(--border); flex-shrink: 0; }
.chip { display: inline-flex; align-items: center; min-height: 22px; max-width: 100%; padding: 2px 10px; border: 1px solid var(--border); border-radius: var(--r-pill); font-family: var(--font-mono); font-size: var(--fs-chip); color: var(--text); overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: 0.9fr 1.7fr 0.8fr 1.4fr; margin: 0 0 26px; padding-block: 11px; border-block: 1px solid var(--border); font-family: var(--font-mono); }
.facts__cell { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; padding-inline: 12px; }
.facts__cell + .facts__cell { border-left: 1px solid var(--border); }
.facts__key { font-size: var(--fs-key); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted); }
.facts__val { font-size: var(--fs-code-lg); color: var(--text); overflow-wrap: break-word; text-align: center; }
.stage { position: relative; }
.stage__horizon { position: absolute; left: 50%; top: -120px; width: 1560px; max-width: none; height: 300px; transform: translateX(-50%); background: radial-gradient(ellipse 50% 46% at 50% 50%, var(--accent-glow) 0%, var(--clear) 72%); opacity: 0.5; pointer-events: none; z-index: 0; animation: horizon 12s ease-in-out infinite; }
@keyframes horizon { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.9; } }
.frame { position: relative; z-index: 1; height: 256px; margin: 0; border-radius: var(--r-xl); border-top: 1px solid var(--accent-edge); background: linear-gradient(180deg, var(--bg) 0%, var(--accent-dark) 58%, var(--accent) 100%); color: var(--white); overflow: hidden; }
.sheet-wrap { position: absolute; top: 26px; left: 12.5%; width: 66.6667%; }
.sheet { border: 1px solid var(--paper-edge); border-radius: var(--r-md); background: var(--paper); color: var(--paper-ink); overflow: hidden; }
.sheet__head { height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 16px; border-bottom: 1px solid var(--paper-line); font-size: var(--fs-code); }
.sheet__file { font-family: var(--font-mono); color: var(--paper-ink); }
.sheet__kind { color: var(--paper-ink-2); }
.sheet__body { display: grid; grid-template-columns: 168px minmax(0, 1fr); }
.toc { margin: 0; padding: 10px 10px 40px; list-style: none; background: var(--paper-side); color: var(--paper-ink-2); border-right: 1px solid var(--paper-line); font-family: var(--font-mono); font-size: var(--fs-code); }
.toc__label { height: 22px; padding-inline: 10px; font-size: var(--fs-xxs); letter-spacing: 0.1em; text-transform: uppercase; line-height: 22px; }
.toc__item { height: 26px; padding-inline: 10px; margin-bottom: 4px; border-radius: var(--r-xs); line-height: 26px; }
.toc__item--on { background: var(--accent); color: var(--white); }
.code { margin: 0; padding: 0; list-style: none; min-width: 0; overflow-x: auto; font-family: var(--font-mono); font-size: var(--fs-code-lg); }
.code__row { display: grid; grid-template-columns: 40px 1fr; min-width: max-content; height: 24px; align-items: center; border-bottom: 1px solid var(--paper-line); white-space: nowrap; }
.code__no { padding-right: 14px; text-align: right; color: var(--paper-ink-3); font-size: var(--fs-xs); }
.t-sec, .t-val, .t-pol { color: var(--paper-ink-2); }
.t-key, .t-arg { color: var(--paper-ink); }
.t-op { color: var(--paper-ink-2); }
.t-rule { color: var(--accent-dark); font-weight: var(--weight-medium); }
.note { position: absolute; left: calc(100% + 48px); height: 28px; padding-inline: 12px; border: 1px solid var(--warn); border-radius: var(--r-sm); background: var(--note-bg); color: var(--warn); font-size: var(--fs-code-lg); line-height: 26px; white-space: nowrap; }
.note::before { content: ""; position: absolute; right: 100%; top: 50%; width: 48px; border-top: 1px dashed var(--warn); }
.note::after { content: ""; position: absolute; left: -53px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: var(--r-circle); background: var(--warn); }
.note--order { top: 124px; }
.note--final { top: 172px; }
.note__kw { font-family: var(--font-mono); font-size: var(--fs-code); }
.ticker { padding-top: 26px; padding-bottom: 120px; overflow-x: clip; }
.ticker__bar { display: flex; justify-content: center; gap: 40px; min-height: 40px; align-items: center; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); font-family: var(--font-mono); font-size: var(--fs-code); }
.ticker__field b { font-weight: var(--weight-regular); color: var(--text); margin-left: 8px; }

/* Footer uses the same measured spacing, without a second promotional hero. */
.site-footer { padding-top: 80px; padding-bottom: 32px; border-top: 1px solid var(--border); background: var(--bg); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 0.75fr 1.2fr 0.65fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { max-width: 360px; color: var(--text-muted); font-size: var(--fs-small); }
.footer-title { margin-bottom: 16px; font-size: var(--fs-body); font-weight: var(--weight-medium); }
.footer-links { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: block; padding-block: 6px; color: var(--text-muted); font-size: var(--fs-small); overflow-wrap: break-word; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--fs-code); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a:hover { color: var(--text); }

@media (max-width: 1279px) {
  .desktop-nav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 3;
    max-height: calc(100dvh - var(--drawer-clearance));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px var(--gutter) 24px;
    border-top: 1px solid var(--header-line);
    border-bottom: 1px solid var(--header-line);
    background: var(--white);
    color: var(--header-ink);
  }
  .drawer-list { list-style: none; margin: 0; padding: 0; }
  .drawer-list a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-sm); }
  .drawer-list a:hover, .drawer-list a[aria-current] { background: var(--paper-side); color: var(--header-ink); }
  .drawer-list a[aria-current="page"] { border-left: 3px solid var(--accent); }
  .drawer-languages { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--header-line); }
  .drawer-languages p { padding-inline: 16px; font-size: var(--fs-small); color: var(--header-ink-muted); }
  .preview-header .desktop-nav { display: block; margin-left: auto; overflow-x: auto; }
  .preview-header .header-tools { margin-left: 12px; }
}
@media (max-width: 1080px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .facts__cell:nth-child(3) { border-left: 0; }
  .note { display: none; }
  .sheet-wrap { left: 6%; width: 88%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  h1, .hero__title { font-size: var(--fs-h1-mobile); }
  .hero__title { line-height: 1.3; }
  .notice__link { display: none; }
  .notice__text { font-size: var(--fs-code); }
  .hero__lead { font-size: var(--fs-body); }
  .devices { flex-wrap: wrap; gap: 12px 18px; }
  .facts { grid-template-columns: 1fr; }
  .facts__cell { justify-content: flex-start; }
  .facts__cell + .facts__cell { border-left: 0; }
  .facts__val { text-align: left; }
  .frame { height: auto; padding: 20px 14px 0; border-radius: var(--r-lg); }
  .sheet-wrap { position: static; width: 100%; }
  .sheet__body { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .grid--two { grid-template-columns: minmax(0, 1fr); }
  .gradient-panel { padding: 32px 24px; }
  .preview-header .masthead__in { flex-wrap: wrap; padding-top: 10px; }
  .preview-header .desktop-nav { order: 3; width: 100%; margin: 6px 0 0; }
  .preview-header .tabs__link { min-height: 48px; }
  .preview-header .header-tools { margin-left: auto; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .brand { min-width: 0; flex-shrink: 1; font-size: var(--fs-nav); gap: 8px; }
  .brand > span { min-width: 0; overflow-wrap: anywhere; }
  .header-tools { padding-left: 8px; }
  .lang { min-height: 44px; padding-inline: 10px; }
  .lang__full { display: none; }
  .lang__short { display: inline; }
  .hero { padding-top: 28px; }
  .hero__title-main, .hero__title-sub { white-space: normal; }
  .cta { flex-direction: column; align-items: stretch; width: 100%; }
  .ticker__bar { gap: 20px; }
  .sheet__kind { font-size: var(--fs-xxs); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-bottom { margin-top: 40px; }
  .tilt, [data-tilt] { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
  .stage__horizon { opacity: 0.6; }
}