:root {
  --bg: #ffffff;
  --bg-panel: #f5f6f8;
  --bg-panel-2: #eceef2;
  --border: #e4e6eb;
  --border-faint: rgb(228 230 235 / 0.7);
  --accent: #8048f2;
  --accent-dark: #5a2ccf;
  --accent-soft: rgb(128 72 242 / 0.12);
  --accent-softer: rgb(128 72 242 / 0.07);
  --text: #1a1a1f;
  --text-muted: #6b6b78;
  --on-accent: #ffffff;
  --success: #16a36a;
  --success-ink: #087748;
  --success-soft: rgb(22 163 106 / 0.12);
  --warn: #d98a0b;
  --warn-ink: #855205;
  --warn-soft: rgb(217 138 11 / 0.12);
  --error: #e0414e;
  --error-ink: #b52733;
  --error-soft: rgb(224 65 78 / 0.1);
  --transparent: transparent;
  --veil: rgb(26 26 31 / 0.22);
  --grad-accent: linear-gradient(100deg, var(--accent-dark) 0%, var(--accent) 100%);
  --shadow-hair: 0 0 0 1px rgb(26 26 31 / 0.05);
  --shadow-sheet: 0 0 0 1px rgb(26 26 31 / 0.04), 0 2px 4px rgb(26 26 31 / 0.03), 0 24px 48px -18px rgb(44 32 92 / 0.12), 0 64px 120px -40px rgb(44 32 92 / 0.18);
  --shadow-float: 0 0 0 1px rgb(26 26 31 / 0.05), 0 4px 10px -2px rgb(44 32 92 / 0.08), 0 22px 44px -14px rgb(44 32 92 / 0.22);
  --shadow-seg: 0 0 0 1px rgb(26 26 31 / 0.04), 0 10px 28px -12px rgb(44 32 92 / 0.16);
  --shadow-cta: 0 12px 26px -12px rgb(90 44 207 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.18);
  --shadow-hover: inset 0 0 0 1px var(--accent-soft), 0 6px 18px -10px rgb(44 32 92 / 0.25);
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-card: 24px;
  --r-panel: 40px;
  --r-pill: 999px;
  --r-circle: 50%;
  --font-display: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "PingFang TC", "Hiragino Kaku Gothic ProN", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --size-body: 16px;
  --size-small: 14px;
  --size-caption: 12px;
  --size-h1: clamp(34px, 3.2vw, 48px);
  --size-h2: clamp(26px, 2.4vw, 36px);
  --size-h3: 22px;
  --tracking-title: -0.02em;
  --tracking-brand: -0.01em;
  --nav-h: 76px;
  --gutter: max(40px, calc((100vw - 1240px) / 2));
  --wrap-gutter: 40px;
  --reading-width: 820px;
  --content-width: 1240px;
  --row-h: 40px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 120px;
  --duration-fast: 0.2s;
  --duration-reveal: 0.6s;
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main, section, article, aside, nav, header, footer, div { min-width: 0; }
img { max-width: 100%; }
svg { display: block; flex-shrink: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: var(--accent-soft); }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-normal);
  line-height: 1.25;
  letter-spacing: var(--tracking-title);
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--size-h1); line-height: 1.16; }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
p { margin-top: 0; }
strong { font-weight: var(--weight-strong); }
code, pre { font-family: var(--font-mono); }
code { overflow-wrap: anywhere; }
pre {
  max-width: 100%;
  margin: var(--space-5) 0;
  padding: var(--space-5);
  overflow-x: auto;
  background: var(--bg-panel);
  color: var(--text);
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.9;
  tab-size: 2;
}
pre code { overflow-wrap: normal; white-space: pre; }
blockquote { margin-inline: 0; }
.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + var(--wrap-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--wrap-gutter);
}
.reading { max-width: calc(var(--reading-width) + var(--wrap-gutter) * 2); }
.section { padding-top: var(--space-9); padding-bottom: var(--space-9); }
.section-heading { margin-top: 0; margin-bottom: var(--space-6); }
.prose { overflow-wrap: break-word; }
.prose h2 { margin-top: var(--space-8); margin-bottom: var(--space-5); }
.prose h3 { margin-top: var(--space-7); margin-bottom: var(--space-4); }
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-5); line-height: 1.85; }
.prose a:not(.btn):not(.store-button) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose :not(pre) > code, .kw-chip {
  padding: 2px 7px;
  border-radius: var(--r-xs);
  background: var(--bg-panel);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px var(--border);
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-weight: var(--weight-medium);
}
.nowrap { white-space: nowrap; }
.muted { color: var(--text-muted); }
.grad-word {
  background: var(--grad-accent);
  color: var(--transparent);
  -webkit-background-clip: text;
  background-clip: text;
}
.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: absolute;
  z-index: 100;
  top: 8px;
  left: 16px;
  padding: 12px 20px;
  background: var(--bg);
  color: var(--accent-dark);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-float);
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  width: auto;
  height: auto;
  padding: 12px 20px;
  overflow: visible;
  clip-path: none;
}
.cta-row { margin-top: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.btn {
  min-height: 52px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: var(--r-pill);
  padding: 12px 24px;
  font-size: var(--size-body);
  font-weight: var(--weight-medium);
  line-height: 1.5;
  text-align: center;
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active, .btn.is-active { transform: translateY(1px); }
.btn-primary { background: var(--grad-accent); color: var(--on-accent); box-shadow: var(--shadow-cta); }
.btn-ghost { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-ghost:hover, .btn-ghost.is-hover { box-shadow: var(--shadow-hover); }
.btn-ghost .arrow { color: var(--accent-dark); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--bg-panel-2);
  color: var(--text-muted);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
.btn.is-focus { outline: 3px solid var(--accent); outline-offset: 4px; }
.text-link { color: var(--accent-dark); font-weight: var(--weight-medium); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card {
  padding: var(--space-6);
  border-radius: var(--r-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-sheet);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.panel {
  padding: var(--space-8);
  border-radius: var(--r-panel);
  background: var(--bg-panel);
  color: var(--text);
}
.card-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.decor-section, .opening { overflow-x: clip; }
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal:not(.shown) { opacity: 0; transform: translateY(18px); }
.reveal-ready .reveal { transition: opacity var(--duration-reveal) var(--ease), transform var(--duration-reveal) var(--ease); }

/* 头部具有独立宽版心，不复用正文 wrap。 */
#site-header { position: relative; z-index: 80; background: var(--bg); color: var(--text); }
.masthead {
  min-height: var(--nav-h);
  width: 100%;
  max-width: min(100%, calc(1280px + var(--wrap-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--wrap-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 80;
  background: var(--bg);
  color: var(--text);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: block; width: 34px; height: 34px; border-radius: var(--r-circle); flex-shrink: 0; }
.brand-placeholder {
  border-radius: var(--r-sm);
  background: var(--bg-panel);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border), inset 0 0 0 5px var(--bg), inset 0 0 0 6px var(--accent-soft);
}
.brand-name { font-family: var(--font-display); font-size: 16px; font-weight: var(--weight-medium); letter-spacing: var(--tracking-brand); }
.menu { min-width: 0; margin-left: auto; }
.menu-list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.menu-list a { display: block; padding-block: 12px; font-size: 14.5px; color: var(--text-muted); white-space: nowrap; }
.menu-list a:hover { color: var(--text); }
.menu-list a[aria-current="page"] { color: var(--text); font-weight: var(--weight-strong); }
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.language-box { position: relative; }
.lang-switch {
  min-height: 44px;
  padding: 8px 0 8px 28px;
  border: 0;
  border-left: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  list-style: none;
}
.lang-switch::-webkit-details-marker { display: none; }
.lang-switch .chevron { color: var(--text-muted); font-size: 12px; }
.lang-short { display: none; }
.language-list {
  position: absolute;
  z-index: 90;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-float);
}
.language-list a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: var(--r-sm); }
.language-list a:hover, .language-list a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-dark); }
.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
}
.menu-toggle svg { width: 24px; height: 24px; }
.nav-veil { position: fixed; inset: var(--nav-h) 0 0; z-index: 60; border: 0; background: var(--veil); color: var(--text); }
.mobile-drawer {
  position: absolute;
  z-index: 85;
  top: 100%;
  left: 0;
  right: 0;
  padding: 16px var(--wrap-gutter) 24px;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-float);
}
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer a { width: 100%; min-height: 46px; display: flex; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--border); }
.mobile-drawer a[aria-current] { color: var(--accent-dark); font-weight: var(--weight-strong); }
.drawer-language-label { margin: 24px 8px 8px; font-size: var(--size-small); color: var(--text-muted); }

/* 页脚 */
.site-footer { margin-top: var(--space-8); padding-top: var(--space-8); padding-bottom: 108px; background: var(--bg-panel); color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.25fr 0.8fr 1.2fr 0.65fr; gap: 40px; }
.footer-brand p { max-width: 28em; margin-top: 20px; color: var(--text-muted); font-size: var(--size-small); line-height: 1.85; }
.footer-heading { margin: 0 0 18px; font-size: var(--size-small); font-weight: var(--weight-strong); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding-block: 6px; color: var(--text-muted); font-size: var(--size-small); overflow-wrap: break-word; }
.footer-links a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--size-caption); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* 已确认的首屏排版与规则表单道具。 */
.opening {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 56px;
  padding-top: 20px;
  padding-left: var(--gutter);
  height: calc(100vh - var(--nav-h) - 44px);
  min-height: 740px;
}
.opening-copy { align-self: center; margin-bottom: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: var(--r-pill); background: var(--bg); color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--border); font-size: 13px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: var(--r-circle); background: var(--grad-accent); color: var(--accent-dark); box-shadow: 0 0 0 4px var(--accent-soft); flex-shrink: 0; }
.headline { margin: 26px 0 0; font-size: clamp(34px, 3.2vw, 46px); line-height: 1.16; }
.headline-line { display: block; white-space: nowrap; }
.lede { margin: 22px 0 0; max-width: 31em; font-size: 16.5px; line-height: 1.8; color: var(--text-muted); }
.lede strong { color: var(--text); }
.device-strip { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); max-width: 520px; }
.device-line, .device-list { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.device-list { list-style: none; margin: 0; padding: 0; }
.device-list a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; font-size: 14px; }
.device-list svg { width: 20px; height: 20px; color: var(--text-muted); }
.device-sep { width: 1px; height: 18px; background: var(--border); color: var(--text); }
.store-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); font-family: var(--font-mono); font-size: 12.5px; }
.device-note { margin: 12px 0 0; font-size: 12.5px; color: var(--text-muted); }
.stage { position: relative; height: 720px; align-self: start; }
.stage-plate { position: absolute; inset: 0 0 60px 0; background: var(--bg-panel); color: var(--text); border-radius: var(--r-panel) 0 0 var(--r-panel); }
.rig { position: absolute; left: 48px; top: 32px; width: 652px; margin: 0; }
.sheet { position: relative; background: var(--bg); color: var(--text); border-radius: var(--r-card); box-shadow: var(--shadow-sheet); overflow: hidden; }
.sheet-head { height: 52px; padding-inline: 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.file-tag { font-family: var(--font-mono); font-size: 13.5px; font-weight: var(--weight-medium); }
.sheet-hint { font-size: 12px; color: var(--text-muted); padding: 3px 10px; border-radius: var(--r-pill); background: var(--bg-panel); }
.sheet-body { padding: 18px 24px 0; }
.group { position: relative; padding-left: 16px; }
.group::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: var(--r-xs); background: var(--grad-accent); }
.group-rule { margin-top: 14px; }
.group-rule::before { background: var(--accent-soft); }
.group-label { min-height: 30px; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 13px; font-weight: var(--weight-strong); color: var(--accent-dark); }
.group-label small { font-size: 12px; font-weight: var(--weight-normal); color: var(--text-muted); }
.kv { height: 32px; display: flex; align-items: center; font-family: var(--font-mono); font-size: 13px; }
.kv .eq { color: var(--text-muted); padding-inline: 0.5em; }
.kv .val { color: var(--accent-dark); }
.rule-grid { display: grid; grid-template-columns: 172px minmax(0, 1fr) 104px; align-items: center; column-gap: 12px; padding-inline: 12px; }
.rule-head { height: 28px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: var(--weight-medium); color: var(--text-muted); }
.rule-rows { position: relative; }
.rule-row { position: relative; z-index: 1; height: var(--row-h); border-bottom: 1px solid var(--border-faint); }
.rule-row:last-child { border-bottom: 0; }
.rule-type, .rule-match { font-family: var(--font-mono); font-size: 13px; }
.rule-type { font-weight: var(--weight-medium); }
.rule-match { color: var(--text-muted); }
.rule-match.is-rest { font-family: var(--font-body); font-size: 12.5px; }
.policy { justify-self: start; font-family: var(--font-mono); font-size: 11.5px; font-weight: var(--weight-strong); padding: 3px 10px; border-radius: var(--r-pill); }
.policy-proxy { background: var(--accent-soft); color: var(--accent-dark); }
.policy-direct { background: var(--bg-panel-2); color: var(--text); }
.policy-reject { background: var(--error-soft); color: var(--error-ink); }
.sweep { position: absolute; z-index: 0; inset: 0 0 auto; height: var(--row-h); border-radius: var(--r-sm); background: var(--accent-softer); color: var(--accent-dark); box-shadow: inset 3px 0 0 var(--accent); transform: translateY(calc(var(--row-h) * 2)); }
.sheet-foot { height: 40px; padding-inline: 24px; display: flex; align-items: center; justify-content: flex-end; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.hit-note { position: absolute; z-index: 3; left: 352px; top: 118px; height: 46px; padding-inline: 16px; display: flex; align-items: center; gap: 8px; background: var(--bg); color: var(--text); border-radius: var(--r-md); box-shadow: var(--shadow-float); white-space: nowrap; }
.hit-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--accent); color: var(--accent-dark); box-shadow: 0 0 0 3px var(--accent-soft); }
.hit-host { font-family: var(--font-mono); font-size: 13px; font-weight: var(--weight-medium); }
.hit-arrow, .hit-word { font-size: 12.5px; color: var(--text-muted); }
.hit-key { font-family: var(--font-mono); font-size: 11.5px; font-weight: var(--weight-strong); padding: 2px 8px; border-radius: var(--r-xs); background: var(--bg-panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.hit-link { position: absolute; z-index: 2; left: 652px; top: 0; width: 80px; height: 400px; overflow: visible; pointer-events: none; }
.hit-link path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 5; stroke-linecap: round; }
.hit-link circle { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.verify { position: absolute; z-index: 3; left: -36px; top: 516px; width: 316px; padding: 14px 18px; background: var(--bg); color: var(--text); border-radius: var(--r-card); box-shadow: var(--shadow-float); }
.verify-head { display: flex; align-items: center; gap: 12px; }
.app-glyph { width: 44px; height: 44px; border-radius: var(--r-circle); flex-shrink: 0; }
.app-glyph-placeholder { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--border), inset 0 0 0 7px var(--bg), inset 0 0 0 8.5px var(--accent-soft); }
.verify-title { display: flex; align-items: center; gap: 8px; }
.verify-name { font-size: 15px; font-weight: var(--weight-strong); letter-spacing: var(--tracking-brand); }
.id-chip { font-family: var(--font-mono); font-size: 11px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); }
.verify-dev { margin: 1px 0 0; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.verify-label { margin: 12px 0 6px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-muted); }
.verify-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.verify-checks { list-style: none; padding: 0; margin: 0; }
.verify-checks li { min-height: 22px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.check-text { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: var(--r-circle); background: var(--success-soft); color: var(--success-ink); flex-shrink: 0; font-size: 11px; }
@media (min-width: 1381px) and (min-height: 975px) {
  .opening { align-content: center; }
  .opening-copy { align-self: center; }
  .stage { align-self: center; }
}
@media (max-width: 1380px) {
  .rig { transform: scale(0.9); transform-origin: 0 0; }
  .stage { height: 660px; }
  .stage-plate { bottom: 70px; }
}
@media (max-width: 1120px) {
  .menu { display: none; }
  .header-tools { margin-left: auto; }
  .menu-toggle { display: grid; place-items: center; }
}
@media (min-width: 1121px) {
  .mobile-drawer, .nav-veil { display: none !important; }
}
@media (max-width: 1120px) {
  .opening { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; padding: 32px var(--gutter) 0; row-gap: 48px; }
  .opening-copy { margin-bottom: 0; }
  .stage { margin-right: calc(var(--gutter) * -1); height: 620px; }
  .rig { transform: scale(0.82); left: 64px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --gutter: 24px; --wrap-gutter: 24px; --size-h1: clamp(24px, 4vw, 30px); --size-h2: 26px; --space-9: 64px; --space-10: 80px; }
  .headline { font-size: clamp(24px, 4vw, 30px); }
  .card-pair { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 32px 24px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --wrap-gutter: 20px; }
  .masthead { gap: 10px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 13px; }
  .brand-mark { width: 30px; height: 30px; }
  .header-tools { gap: 4px; margin-left: auto; }
  .lang-switch { padding-left: 10px; font-size: 13px; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .headline-line { white-space: normal; }
  .lede { font-size: 15px; }
  .opening { padding-top: 20px; row-gap: 36px; }
  .opening-copy .eyebrow { margin-top: 0; }
  .opening-copy .cta-row { margin-top: 26px; }
  .stage { height: 420px; }
  .rig { transform: scale(0.52); left: 40px; }
  .stage-plate { bottom: 25px; }
  .device-strip { margin-top: 28px; }
  .device-list { gap: 8px 14px; }
  .device-list a { font-size: 12px; }
  .device-list svg { width: 17px; height: 17px; }
  .device-sep { display: none; }
  .card { padding: 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 2px 18px; }
  .footer-brand .brand-name { font-size: 16px; }
  .tilt, [data-tilt] { transform: none !important; }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; --wrap-gutter: 16px; }
  .brand-name { font-size: 12px; }
  .brand { gap: 6px; }
  .rig { transform: scale(0.43); left: 28px; }
  .stage { height: 350px; }
  .btn { padding-inline: 20px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready .reveal:not(.shown) { opacity: 1; transform: none; }
  .reveal-ready .reveal, .btn, .dl-fab { transition: none; }
  .btn:hover, .dl-fab:hover { transform: none; }
  .sweep { animation: none; transform: translateY(calc(var(--row-h) * 2)); }
}