:root {
  --bg: #FFFFFF;
  --panel: #EEF8DF;
  --panel-2: #F1ECFB;
  --line: #E6E6E8;
  --accent: #E81E4A;
  --accent-dark: #B5123A;
  --ink: #0C0C0D;
  --muted: #6B6B72;
  --success: #1FB57A;
  --warn: #D98E04;
  --error: #C8102E;
  --cobalt: #2F5BFF;
  --lime: #C8F03C;
  --lavender: #8B5CF6;
  --mint: #1FB57A;
  --code-bg: #0C0C0D;
  --code-text: #F4F4F5;
  --code-dim: #8C8C94;
  --clear: transparent;
  --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-normal: 400;
  --weight-medium: 500;
  --r-board: 32px;
  --r-card: 20px;
  --r-inner: 16px;
  --r-field: 10px;
  --r-small: 4px;
  --r-control: 6px;
  --r-pill: 999px;
  --r-round: 50%;
  --gutter: clamp(16px, 3.34vw, 48px);
  --reading-width: 1120px;
  --header-h: 76px;
  --peek: 60px;
  --section-space: clamp(64px, 8vw, 128px);
  --ease: cubic-bezier(.2,.7,.2,1);
  --speed: .2s;
  --body-size: 16px;
  --small-size: 14px;
  --h1-size: clamp(34px, 3.35vw, 48px);
  --h2-size: clamp(26px, 3vw, 40px);
  --h3-size: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.nav-open { overflow: hidden; }
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; vertical-align: middle; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: var(--clear); }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .25em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-field); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--h1-size); line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: var(--h2-size); line-height: 1.25; letter-spacing: -.015em; }
h3 { font-size: var(--h3-size); line-height: 1.35; }
p { margin-block: 0 1.25em; }
strong, b { font-weight: var(--weight-medium); }
code { font-family: var(--font-mono); overflow-wrap: anywhere; }
pre {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 24px;
  border-radius: var(--r-inner);
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: var(--small-size);
  line-height: 1.7;
  overscroll-behavior-inline: contain;
}
pre code { overflow-wrap: normal; word-break: normal; white-space: pre; }
hr { border: 0; border-top: 1px solid var(--line); margin-block: 40px; }
.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); }
.grid { display: grid; gap: 24px; }
.grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > *, .split > *, .footer-grid > *, .feature-board > * { min-width: 0; }
.stack > * + * { margin-top: 24px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.text-link { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-thickness: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--bg); text-decoration: none; font-size: var(--small-size);
}
.skip:not(:focus) {
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { clip-path: none; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 1px solid var(--clear); border-radius: var(--r-pill);
  font-size: var(--body-size); line-height: 1.5; text-decoration: none;
  font-weight: var(--weight-normal);
  transition: background-color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--accent-dark); color: var(--bg); }
.btn--primary:active { background: var(--accent-dark); color: var(--bg); transform: translateY(1px); }
.btn--ghost { border-color: var(--line); background: var(--bg); color: var(--ink); }
.btn--ghost:hover, .btn--ghost.is-hover { border-color: var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--line); color: var(--muted); border-color: var(--line); cursor: not-allowed;
}
.btn.is-focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.cta, .button-states { display: flex; flex-wrap: wrap; gap: 12px; }
.cta { margin-top: 32px; }
.card {
  padding: 28px;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--bg); color: var(--ink);
}
.card h3 { margin-top: 0; }
.board { padding: 48px; border-radius: var(--r-board); background: var(--panel); color: var(--ink); overflow-x: clip; }
.board--purple { background: var(--panel-2); color: var(--ink); }
.prose { min-width: 0; }
.prose h2 { margin-top: 2.5em; }
.prose h3 { margin-top: 2em; }
.prose a { text-decoration-color: var(--accent); }
.prose li + li { margin-top: .5em; }
.prose :not(pre) > code { font-size: .9em; }
.prose img { display: block; }
.prose > :first-child { margin-top: 0; }
.reveal { opacity: 1; transform: none; }
.reveal.reveal-pending { opacity: 0; transform: translateY(20px); }
.reveal.shown {
  opacity: 1; transform: none;
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

/* 页头使用独立的宽版心，不复用正文 wrap。 */
#site-header { position: relative; z-index: 40; }
.topbar {
  position: relative; z-index: 40; height: var(--header-h);
  background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line);
}
.topbar__inner {
  height: 100%; width: 100%; max-width: min(100%, calc(1280px + var(--gutter) * 2));
  margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  text-decoration: none; color: var(--ink); font-family: var(--font-display);
  font-size: 17px; letter-spacing: -.01em;
}
.brand img { display: block; width: 30px; height: 30px; flex-shrink: 0; }
.mainnav { margin-left: auto; min-width: 0; }
.mainnav > ul {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.mainnav a, .more summary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--r-pill);
  font-size: 15px; color: var(--ink); text-decoration: none; cursor: pointer;
}
.mainnav a:hover, .more summary:hover { background: var(--panel-2); color: var(--ink); }
.mainnav a[aria-current="page"], .more.has-current summary {
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 9px;
}
.more { position: relative; }
.more summary { list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary svg { width: 12px; height: 12px; flex-shrink: 0; transition: transform var(--speed) var(--ease); }
.more[open] summary svg { transform: rotate(180deg); }
.mainnav .more__menu {
  display: block; position: absolute; right: 0; top: calc(100% + 12px);
  min-width: 236px; margin: 0; padding: 8px; list-style: none;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card);
}
.mainnav .more__menu a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-inner);
}
.more__menu small { font-size: 12.5px; color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.language-box { position: relative; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--bg); color: var(--ink); font-size: var(--small-size); white-space: nowrap;
}
.lang:hover { border-color: var(--ink); }
.lang svg { width: 16px; height: 16px; flex-shrink: 0; }
.lang .chev { width: 10px; height: 10px; }
.lang-short { display: none; }
.language-menu {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 180px;
  padding: 8px; margin: 0; list-style: none; border: 1px solid var(--line);
  border-radius: var(--r-card); background: var(--bg); color: var(--ink); z-index: 3;
}
.language-menu a { display: flex; min-height: 44px; padding: 10px 14px; text-decoration: none; border-radius: var(--r-field); }
.language-menu a:hover { background: var(--panel-2); color: var(--ink); }
.language-menu a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--bg); color: var(--ink);
}
.menu-toggle svg { width: 22px; height: 22px; }
.mobile-drawer { display: none; }
.nav-veil {
  position: fixed; inset: var(--header-h) 0 0; z-index: 35;
  border: 0; padding: 0; background: var(--ink); color: var(--bg); opacity: .22;
}
.preview-mobile { display: none; }

/* 已确认的镜像首屏。装置局部溢出在 hero 内裁切。 */
.hero {
  position: relative; height: calc(100vh - var(--header-h) - var(--peek));
  min-height: 680px; overflow: hidden;
}
.stage { position: absolute; left: 0; top: 0; bottom: 0; width: 58%; z-index: 1; }
.collage { position: absolute; left: -48px; top: 40px; width: 820px; height: 860px; transform-origin: 0 0; }
.blk {
  position: absolute; border-radius: var(--r-card); outline: 1px solid var(--bg);
  animation: rise .9s var(--ease) both;
}
.blk--lav { left: 500px; top: 0; width: 250px; height: 500px; background: var(--lavender); color: var(--bg); }
.blk--cob { left: 40px; top: 52px; width: 580px; height: 440px; background: var(--cobalt); color: var(--bg); animation-delay: .08s; }
.blk--lime { left: 300px; top: 432px; width: 470px; height: 160px; background: var(--lime); color: var(--ink); animation-delay: .16s; }
.blk--red { left: 60px; top: 556px; width: 500px; height: 320px; background: var(--accent); color: var(--bg); animation-delay: .24s; }
.outs { position: absolute; left: 136px; top: 86px; width: 96px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.outs__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; color: var(--bg); margin-bottom: 4px; }
.outs__pill {
  display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border-radius: var(--r-pill); background: var(--bg); color: var(--ink); font-family: var(--font-mono); font-size: 12px;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--r-round); flex-shrink: 0; }
.dot--mint { background: var(--mint); }
.dot--cobalt { background: var(--cobalt); }
.dot--red { background: var(--accent); }
.win { position: absolute; left: 52px; top: 40px; width: 456px; background: var(--bg); color: var(--ink); border-radius: var(--r-card); overflow: hidden; }
.win__bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.win__app { width: 14px; height: 14px; border-radius: var(--r-small); background: var(--cobalt); flex-shrink: 0; }
.win__title { flex: 1; }
.win__title em { font-style: normal; color: var(--muted); }
.win__ctrl { display: flex; gap: 4px; }
.win__ctrl span { display: grid; place-items: center; width: 28px; height: 24px; border-radius: var(--r-control); color: var(--muted); }
.win__ctrl svg { width: 10px; height: 10px; display: block; }
.win__tabs { display: flex; gap: 22px; padding: 0 20px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.win__tab { position: relative; padding: 11px 0; }
.win__tab--on { color: var(--ink); }
.win__tab--on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.win__rows { padding: 2px 20px 10px; }
.set { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; border-bottom: 1px solid var(--line); font-size: 14px; }
.set:last-child { border-bottom: 0; }
.fld { display: inline-flex; align-items: center; height: 30px; min-width: 92px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-field); font-family: var(--font-mono); font-size: 13px; }
.sel { display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 13px; }
.sel svg { width: 10px; height: 10px; color: var(--muted); flex-shrink: 0; }
.tg { position: relative; display: inline-block; flex-shrink: 0; width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--line); }
.tg::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: var(--r-round); background: var(--bg); }
.tg--on { background: var(--mint); }
.tg--on::after { transform: translateX(16px); }
.link { position: absolute; left: 28px; top: 22px; right: 28px; }
.link__head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink); margin-bottom: 10px; }
.link__head b { font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: var(--r-pill); border: 1px solid var(--ink); }
.link__url { margin: 0; font-family: var(--font-mono); font-size: 14.5px; line-height: 1.55; color: var(--ink); letter-spacing: -.01em; }
.link__url span { display: block; }
.link__url .scheme { display: inline; font-weight: var(--weight-medium); }
.code { position: absolute; left: 26px; right: 26px; top: 22px; height: 300px; background: var(--code-bg); color: var(--code-text); border-radius: var(--r-inner); padding: 12px 18px; }
.code__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--code-dim); padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px dashed var(--code-dim); }
.code pre { margin: 0; padding: 0; border-radius: var(--r-small); font-size: 13px; line-height: 20px; }
.code .p { color: var(--code-dim); }
.code .k { color: var(--code-text); }
.code .s { color: var(--lime); }
.cur { position: absolute; z-index: 5; }
.cur svg { display: block; width: 18px; height: 18px; }
.cur svg path { stroke: var(--bg); stroke-width: 1.5; stroke-linejoin: round; }
.cur__tag {
  display: inline-block; margin: -3px 0 0 14px; padding: 3px 11px; border-radius: var(--r-pill);
  color: var(--bg); font-size: 12.5px; font-weight: var(--weight-medium); letter-spacing: .01em; outline: 1.5px solid var(--bg);
}
.cur--xray { left: 150px; top: 10px; animation: show .6s .6s both, drift-a 10s 1.2s ease-in-out infinite; }
.cur--xray path { fill: var(--accent); }
.cur--xray .cur__tag { background: var(--accent); color: var(--bg); }
.cur--trojan { left: 762px; top: 150px; animation: show .6s .7s both, drift-b 12s 1.2s ease-in-out infinite; }
.cur--trojan path { fill: var(--lavender); }
.cur--trojan .cur__tag { background: var(--lavender); color: var(--bg); }
.cur--vless { left: 742px; top: 600px; animation: show .6s .8s both, drift-c 9s 1.2s ease-in-out infinite; }
.cur--vless path { fill: var(--cobalt); }
.cur--vless .cur__tag { background: var(--cobalt); color: var(--bg); }
.copy {
  position: relative; z-index: 2; height: 100%; margin-left: 58%;
  padding-right: clamp(32px, 5.5vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
}
.eyebrow {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  min-height: 32px; padding: 4px 14px 4px 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 13px; color: var(--ink);
  margin: 0; max-width: 100%;
}
.eyebrow .halo { position: relative; width: 8px; height: 8px; flex-shrink: 0; border-radius: var(--r-round); background: var(--mint); }
.eyebrow .halo::after { content: ""; position: absolute; inset: -4px; border-radius: var(--r-round); border: 1px solid var(--mint); opacity: .45; }
.eyebrow em { font-style: normal; color: var(--muted); }
.hero h1 { margin: 24px 0 0; font-size: clamp(30px, 3.35vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
.hero h1 > span { display: block; }
.lede { margin: 28px 0 0; max-width: 27em; font-size: 17px; line-height: 1.72; color: var(--muted); }
.lede strong { color: var(--ink); }
.platforms { margin-top: 32px; }
.platforms__cap { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.platforms ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.platforms a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 15px 7px 13px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 14px; color: var(--ink); text-decoration: none; transition: border-color var(--speed) var(--ease); }
.platforms a:hover { border-color: var(--ink); }
.platforms svg { width: 16px; height: 16px; display: block; flex-shrink: 0; }
.next { padding: 20px 24px 0; }
.tray { min-height: 320px; padding: 16px 56px 48px; background: var(--panel); color: var(--ink); border-radius: var(--r-board); }
.tray__kicker { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--muted); }
.tray__kicker .dot { background: var(--ink); }
.tray h2 { margin: 40px 0 0; font-size: 28px; line-height: 1.25; }
.tray p { margin: 10px 0 0; color: var(--muted); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--section-space); padding-top: 56px; padding-bottom: 32px; background: var(--bg); color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.footer-brand p { max-width: 24em; margin-top: 20px; color: var(--muted); font-size: var(--small-size); }
.site-footer h2 { font-size: 15px; margin: 0 0 20px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list a { font-size: var(--small-size); text-decoration: none; }
.footer-list a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.footer-languages { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 40px; font-size: var(--small-size); }
.footer-languages [aria-current] { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* 预览页家具；每个色块均对应既有令牌。 */
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatch { min-width: 0; margin: 0; }
.swatch__paint { height: 80px; border: 1px solid var(--line); border-radius: var(--r-inner); }
.swatch figcaption { padding-top: 8px; font-size: 13px; }
.swatch--bg { background: var(--bg); color: var(--ink); }
.swatch--panel { background: var(--panel); color: var(--ink); }
.swatch--panel2 { background: var(--panel-2); color: var(--ink); }
.swatch--line { background: var(--line); color: var(--ink); }
.swatch--accent { background: var(--accent); color: var(--bg); }
.swatch--dark { background: var(--accent-dark); color: var(--bg); }
.swatch--ink { background: var(--ink); color: var(--bg); }
.swatch--muted { background: var(--muted); color: var(--bg); }
.swatch--mint { background: var(--mint); color: var(--ink); }
.swatch--warn { background: var(--warn); color: var(--ink); }
.swatch--error { background: var(--error); color: var(--bg); }
.swatch--cobalt { background: var(--cobalt); color: var(--bg); }
.swatch--lime { background: var(--lime); color: var(--ink); }
.swatch--lavender { background: var(--lavender); color: var(--bg); }
.swatch--code-text { background: var(--code-text); color: var(--ink); }
.swatch--code-dim { background: var(--code-dim); color: var(--ink); }
.type-display { font-size: var(--h1-size); line-height: 1.12; font-weight: var(--weight-normal); letter-spacing: -.02em; }
.preview-section > h2 { margin-top: 0; margin-bottom: 40px; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift-a { 0%,100% { transform: translate(0,0); } 33% { transform: translate(18px,-10px); } 66% { transform: translate(8px,14px); } }
@keyframes drift-b { 0%,100% { transform: translate(0,0); } 40% { transform: translate(-14px,16px); } 75% { transform: translate(10px,26px); } }
@keyframes drift-c { 0%,100% { transform: translate(0,0); } 30% { transform: translate(16px,8px); } 70% { transform: translate(-10px,-14px); } }

@media (max-width: 1280px) {
  .collage { transform: scale(.86); }
  .copy { margin-left: 56%; }
  .mainnav a, .more summary { padding-inline: 10px; }
}
@media (max-width: 1100px) {
  .collage { transform: scale(.74); }
  .copy { margin-left: 54%; }
  .topbar__inner { padding-inline: 28px; }
}
@media (max-width: 1024px) {
  .mainnav { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-drawer:not([hidden]) {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0; z-index: 41;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    background: var(--bg); color: var(--ink);
  }
  .mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
  .mobile-drawer a { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; text-decoration: none; border-radius: var(--r-field); }
  .mobile-drawer a:hover { background: var(--panel-2); color: var(--ink); }
  .mobile-drawer [aria-current] { text-decoration: underline; text-decoration-color: var(--accent); }
  .drawer-languages { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .drawer-languages p { margin: 0 16px 8px; font-size: 13px; color: var(--muted); }
  .preview-mobile { display: block; position: relative; }
  .preview-mobile > summary { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-pill); list-style: none; cursor: pointer; }
  .preview-mobile > summary::-webkit-details-marker { display: none; }
  .preview-mobile nav { position: absolute; right: 0; top: 56px; width: min(280px, calc(100vw - 32px)); padding: 12px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card); max-height: 70dvh; overflow-y: auto; }
  .preview-mobile nav a { display: block; min-height: 44px; padding: 10px 12px; text-decoration: none; }
}
@media (max-width: 960px) {
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .copy { order: 1; height: auto; margin: 0; padding: 44px 24px 28px; }
  .stage { order: 2; position: relative; width: 100%; height: 440px; overflow: hidden; }
  .collage { left: -24px; top: 12px; transform: scale(.56); }
  .hero h1 { font-size: clamp(26px, 7vw, 30px); }
  .lede { font-size: 16px; }
  .tray { padding: 16px 24px 40px; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 768px) {
  h1, .type-display { font-size: clamp(24px, 6vw, 30px); }
  .grid--two, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .board { padding: 32px 24px; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .topbar__inner { padding-inline: var(--gutter); gap: 8px; }
  .header-tools { gap: 8px; margin-left: auto; }
  .brand { gap: 7px; font-size: 15px; }
  .brand img { width: 26px; height: 26px; }
  .lang { min-height: 44px; padding-inline: 12px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang > .globe { display: none; }
  .copy { padding-inline: var(--gutter); padding-top: 36px; }
  .eyebrow { gap: 8px; font-size: 11px; }
  .hero h1 { letter-spacing: -.015em; }
  .hero .cta { margin-top: 24px; gap: 10px; }
  .hero .btn { padding-inline: 20px; font-size: 15px; }
  .lede { margin-top: 24px; }
  .platforms { margin-top: 24px; }
  .platforms ul { flex-direction: row; flex-wrap: wrap; }
  .next { padding-inline: 16px; }
  .tray { padding-inline: 24px; }
  .stage { height: 390px; }
  .collage { transform: scale(.49); }
  .tilt, [data-tilt] { transform: none; }
  .card { padding: 24px; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .eyebrow { flex-wrap: wrap; border: 0; padding-inline: 0; }
  .brand { font-size: 14px; }
  .brand img { width: 24px; height: 24px; }
  .stage { height: 350px; }
  .collage { transform: scale(.43); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.reveal-pending { opacity: 1; transform: none; }
}