/* HeroX KE-1 — site styles
   Palette taken from the HeroX logo: navy outline, silver letters, electric blue X. */
:root {
  color-scheme: dark;
  --bg: #0e1013;
  --bg2: #14171b;
  --panel: rgba(16, 19, 24, .80);
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --text: #eef1f5;
  --mut: #9aa3af;
  --dim: #5f6873;
  --blue: #2f7bf5;
  --blue2: #73aaff;
  --navy: #0a1f4f;
  --silver: #c9ced6;
  --display: "Unbounded", "Inter", "Noto Sans SC", system-ui, sans-serif;
  --body: "Inter", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --pad: max(28px, 6vw);
}
html[lang="zh"] { --body: "Noto Sans SC", "Inter", system-ui, sans-serif; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }  /* in-page scrolling is eased in JS (app.js §4b), not via scroll-behavior */
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

/* ---------- stage & overlays ---------- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; height: 100lvh; display: block; z-index: 0; touch-action: pan-y; outline: none; }
.fallback { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 70% 50%; z-index: 0; opacity: .9; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 62% 46%, transparent 45%, rgba(4, 5, 7, .62) 100%); }
.leftfade { position: fixed; top: 0; bottom: 0; left: 0; width: 58vw; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,16,19,.92) 0%, rgba(14,16,19,.62) 42%, rgba(14,16,19,0) 100%);
  will-change: opacity; }
.traces { fill: none; stroke: rgba(115, 170, 255, .2); stroke-width: 1.2; }
.traces circle, .traces rect { stroke: rgba(115, 170, 255, .32); }
.traces-top { position: fixed; top: 0; right: 0; width: min(640px, 70vw); z-index: 1; pointer-events: none; }

#leaders { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
#leaders line { stroke: rgba(115, 170, 255, .55); stroke-width: 1; }
#leaders circle { fill: var(--blue); stroke: rgba(255,255,255,.85); stroke-width: 1.2; }
#callouts { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.co { position: absolute; left: 0; top: 0; font-size: 12px; line-height: 1; white-space: nowrap; color: var(--text);
  padding: 7px 10px 7px 9px; background: rgba(10, 12, 16, .76); border: 1px solid var(--line2); border-left: 2px solid var(--blue);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); letter-spacing: .02em; opacity: 0; will-change: transform, opacity; }
.tip { position: fixed; left: 0; top: 0; will-change: transform; z-index: 6; pointer-events: none; font-size: 12px; padding: 8px 11px; background: rgba(10,12,16,.9);
  border: 1px solid var(--line2); border-left: 2px solid var(--blue); white-space: nowrap; }
.tip b { display: block; font-weight: 500; }
.tip small { color: var(--mut); letter-spacing: .04em; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px; transition: opacity .7s ease, visibility .7s; }
.loader-logo { width: min(420px, 70vw); filter: drop-shadow(0 0 30px rgba(47,123,245,.25)); }
.loader-bar { width: min(280px, 60vw); height: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--blue2)); transition: width .2s; }
.loader p { margin: 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); }
.loader p b { color: var(--text); font-weight: 500; }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }

/* ---------- header ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; height: calc(68px + env(safe-area-inset-top, 0px)); z-index: 20; display: flex; align-items: center; gap: 28px;
  padding: env(safe-area-inset-top, 0px) var(--pad) 0; background: linear-gradient(rgba(14,16,19,.9), rgba(14,16,19,0)); transition: background .3s; }
.top.solid { background: rgba(14,16,19,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand img { height: 32px; width: auto; }
.brand-parent { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-left: -14px; padding-top: 6px; }
.nav { display: flex; gap: 22px; font-size: 13px; }
.nav a { color: var(--mut); transition: color .2s; position: relative; padding: 6px 0; }
.nav a:hover, .nav a.on { color: var(--text); }
.nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--blue); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.lang { background: none; border: 0; font-size: 12px; letter-spacing: .08em; color: var(--dim); padding: 6px 4px; }
.lang i { font-style: normal; margin: 0 6px; opacity: .5; }
html[lang="en"] .lang [data-l="en"], html[lang="zh"] .lang [data-l="zh"] { color: var(--text); }
.burger { display: none; width: 36px; height: 36px; background: none; border: 0; position: relative; }
.burger i { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--text); transition: transform .3s; }
.burger i:first-child { top: 14px; } .burger i:last-child { top: 21px; }
.menu-open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 19; background: rgba(10,12,15,.97); display: flex; flex-direction: column;
  justify-content: center; gap: 6px; padding: 0 28px; }
.menu a { font: 300 28px/1.5 var(--display); color: var(--text); }
html[lang="zh"] .menu a { font-family: var(--body); font-weight: 400; }

/* ---------- buttons ---------- */
.btn-bracket { --c: var(--blue2); position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0;
  padding: 13px 24px; font-size: 13px; letter-spacing: .06em; color: #fff; background-color: rgba(47,123,245,.14);
  background-image:
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c));
  background-repeat: no-repeat;
  background-size: 10px 1px, 1px 10px, 10px 1px, 1px 10px, 10px 1px, 1px 10px, 10px 1px, 1px 10px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  transition: background-color .25s, background-size .25s; }
.btn-bracket:hover { background-color: rgba(47,123,245,.32);
  background-size: 16px 1px, 1px 16px, 16px 1px, 1px 16px, 16px 1px, 1px 16px, 16px 1px, 1px 16px; }
.btn-bracket.sm { padding: 8px 14px; font-size: 12px; }
.btn-link { font-size: 13px; color: var(--mut); letter-spacing: .04em; border-bottom: 1px solid var(--line2); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.btn-link:hover { color: #fff; border-color: var(--blue2); }
/* WhatsApp chat button: same height as .btn-bracket, WhatsApp green only on the glyph and the edge */
.btn-wa { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; font-size: 13px; letter-spacing: .04em; color: #fff; white-space: nowrap;
  border: 1px solid rgba(37, 211, 102, .45); background: rgba(37, 211, 102, .07); transition: background-color .25s, border-color .25s; }
.btn-wa svg { width: 18px; height: 18px; flex: none; fill: #25d366; }
.btn-wa:hover { background: rgba(37, 211, 102, .16); border-color: #25d366; }
.btn-wa:focus-visible { outline: 2px solid var(--blue2); outline-offset: 2px; }

/* ---------- right index & HUD ---------- */
.index { position: fixed; right: calc(22px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); z-index: 10; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.index a { display: block; width: 16px; height: 2px; background: rgba(255,255,255,.2); position: relative; transition: width .3s, background .3s; }
.index a.on { width: 30px; background: var(--blue); }
.index a::before { content: attr(data-name); position: absolute; right: 40px; top: 50%; transform: translateY(-50%); font-size: 11px;
  letter-spacing: .08em; color: var(--mut); white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.index a:hover::before, .index a.on::before { opacity: 1; }
.index a::after { content: ""; position: absolute; inset: -8px -6px; }
.hud { position: fixed; left: var(--pad); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 10; display: flex; gap: 26px; font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--dim); pointer-events: none; }
.hud em { font-style: normal; margin-right: 6px; }
.hud b { color: var(--text); font-weight: 500; letter-spacing: .1em; }
.progress { position: fixed; left: 0; right: 0; bottom: 0; height: calc(2px + env(safe-area-inset-bottom, 0px)); z-index: 10; background: rgba(255,255,255,.04); }
.progress i { height: 2px !important; }
.progress i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; will-change: transform; background: linear-gradient(90deg, var(--navy), var(--blue)); }

/* ---------- scenes ---------- */
main { position: relative; z-index: 2; }
.scene { position: relative; min-height: 150vh; pointer-events: none; }
.scene.tall { min-height: 220vh; }
.scene .copy { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 70px 0 70px var(--pad); width: min(560px, 46vw); pointer-events: auto; }
.scene.hero { min-height: 100vh; }
.scene.hero .copy { position: relative; }

.kicker { margin: 0 0 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mut); }
.kicker b { color: var(--blue2); font-weight: 500; }

/* hero */
.hero-title { margin: 0; display: grid; gap: 0; }
.hero-logo { width: min(400px, 34vw); margin: 0 0 6px -10px; filter: drop-shadow(0 6px 30px rgba(47,123,245,.18)); }
.hero-title .model { font: 300 clamp(58px, 7.6vw, 118px)/.95 var(--display); letter-spacing: .01em; color: #f5f7fa; }
.hero-title .sub { font: 500 13px/1.4 var(--body); letter-spacing: .32em; text-transform: uppercase; color: var(--blue2); margin-top: 10px; }
html[lang="zh"] .hero-title .sub { letter-spacing: .5em; font-size: 15px; }
.lead { margin: 22px 0 0; max-width: 440px; color: var(--mut); font-size: 15px; line-height: 1.75; }
.ctas { display: flex; align-items: center; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.ctas.center { justify-content: center; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 10px 26px; margin: 38px 0 0; justify-content: start; }
.hero-stats div { border-left: 1px solid var(--line2); padding-left: 12px; }
.hero-stats dt { font: 300 19px/1.2 var(--display); color: var(--text); white-space: nowrap; }
.hero-stats dd { margin: 4px 0 0; font-size: 11px; color: var(--dim); letter-spacing: .04em; }
.hint { margin: 34px 0 0; font-size: 12px; color: var(--dim); letter-spacing: .06em; }
.hint .arrow { display: inline-block; font-style: normal; color: var(--blue2); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
.brand-line { position: absolute; left: var(--pad); top: 92px; margin: 0; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

/* statements */
.label { margin: 0 0 18px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.label::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--blue); vertical-align: middle; margin-right: 10px; }
.say { margin: 0; font: 300 clamp(26px, 2.7vw, 40px)/1.28 var(--display); letter-spacing: -.005em; color: var(--text); }
html[lang="zh"] .say { font-family: var(--body); font-weight: 400; letter-spacing: .02em; line-height: 1.45; }
.say .w { color: rgba(238,241,245,.18); transition: color .35s ease; }
.say .w.on { color: var(--text); }
.note { margin: 24px 0 0; max-width: 420px; color: var(--mut); font-size: 14.5px; }

.parts-list { margin-top: 28px; max-width: 460px; }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 8px; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.pl-head em { font-style: normal; letter-spacing: .04em; text-transform: none; color: var(--dim); }
#partsList { list-style: none; margin: 0; padding: 0; max-height: 36vh; overflow: auto; border-top: 1px solid var(--line); scrollbar-width: thin; }
#partsList li { display: grid; grid-template-columns: 22px 118px 1fr; gap: 8px; padding: 6px 0; font-size: 12.5px; color: var(--mut);
  border-bottom: 1px solid var(--line); cursor: pointer; transition: color .2s, background .2s; }
#partsList li i { width: 10px; height: 10px; margin-top: 4px; border-radius: 2px; }
#partsList li span { color: var(--dim); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
#partsList li:hover, #partsList li.on { color: #fff; background: linear-gradient(90deg, rgba(47,123,245,.16), transparent); }
#partsList li:hover span, #partsList li.on span { color: var(--blue2); }

/* modules */
.module h2 { margin: 0 0 16px; font: 300 clamp(32px, 3.5vw, 50px)/1.05 var(--display); color: #f5f7fa; }
html[lang="zh"] .module h2, html[lang="zh"] .panel h2, html[lang="zh"] .cta h2 { font-family: var(--body); font-weight: 500; letter-spacing: .04em; }
.desc { margin: 0; color: var(--mut); font-size: 15px; line-height: 1.75; max-width: 450px; }
.desc.big { font-size: 16.5px; max-width: 760px; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 0; max-width: 460px; }
.kv div { border-top: 1px solid var(--line2); padding-top: 12px; }
.kv dt { font: 300 26px/1.1 var(--display); color: var(--text); white-space: nowrap; }
.kv dt small { font: 400 12px var(--body); color: var(--mut); margin-left: 3px; }
.kv dd { margin: 6px 0 0; font-size: 11px; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
html[lang="zh"] .kv dd { letter-spacing: .04em; font-size: 12px; }
.tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 12px; padding: 6px 11px; border: 1px solid var(--line2); color: var(--mut); }
.dashes { display: flex; gap: 6px; margin-top: 30px; }
.dashes i { width: 22px; height: 2px; background: rgba(255,255,255,.16); }
.dashes i.on { background: var(--blue); }
.dashes i.done { background: rgba(115,170,255,.45); }

.switch { display: flex; gap: 8px; margin: 24px 0 10px; flex-wrap: wrap; }
.switch button { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px;
  font-size: 13px; color: var(--mut); background: rgba(255,255,255,.03); border: 1px solid var(--line2); transition: color .2s, border-color .2s; }
.switch button i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--mut); }
.switch button.on { color: #fff; border-color: var(--blue); background: rgba(47,123,245,.12); }
.switch button.on i { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,123,245,.18); }
.switch button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--blue2);
  transform: scaleX(0); transform-origin: 0 50%; }
.switch.auto button.on::after { animation: fill var(--cycle, 3.2s) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pay-detail { margin: 0; min-height: 2.8em; font-size: 12.5px; color: var(--dim); max-width: 440px; }

/* panels: specs / about / contact */
.panel-scene { min-height: auto; padding: 24vh var(--pad) 12vh; display: flex; flex-direction: column; align-items: center; pointer-events: auto; }
.panel { width: min(1180px, 100%); background: var(--panel); border: 1px solid var(--line); padding: 46px 48px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: relative; }
.panel::before { content: ""; position: absolute; left: -1px; top: -1px; width: 40px; height: 2px; background: var(--blue); }
.panel h2, .cta h2 { margin: 0 0 18px; font: 300 clamp(30px, 3.2vw, 46px)/1.1 var(--display); color: #f5f7fa; }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; margin-top: 30px; }
.spec-grid h4 { margin: 0 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue2); }
.spec-grid dl { margin: 0; }
.spec-grid .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-grid dt { font-size: 12.5px; color: var(--mut); }
.spec-grid dd { margin: 0; font-size: 14px; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.spec-grid dd sup { font-size: 9px; letter-spacing: .1em; color: var(--blue2); margin-left: 5px; vertical-align: 2px; }
.spec-grid dd.tbd { color: var(--dim); font-size: 12px; letter-spacing: .06em; border-bottom: 1px dashed var(--line2); }
.fine { margin: 26px 0 0; font-size: 12px; color: var(--dim); }

.sites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.site { border: 1px solid var(--line); padding: 20px 18px; position: relative; background: rgba(255,255,255,.015); }
.site b { display: block; font: 400 18px/1.2 var(--display); margin: 14px 0 6px; }
html[lang="zh"] .site b { font-family: var(--body); font-weight: 500; }
.site p { margin: 0; font-size: 13px; color: var(--mut); }
.pin { position: relative; display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(47,123,245,.6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(3.6); opacity: 0; } }

.cta { padding-top: 46vh; }
.cta-head { text-align: center; max-width: 620px; }
.cta-head .desc { margin: 0 auto; }
.form { margin-top: 64px; max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form label { display: grid; gap: 7px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
html[lang="zh"] .form label { letter-spacing: .06em; font-size: 12px; }
.form input, .form textarea { width: 100%; font: 400 14px var(--body); color: var(--text); background: rgba(255,255,255,.04);
  border: 1px solid var(--line2); padding: 12px 13px; outline: none; transition: border-color .2s, background .2s; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--blue); background: rgba(47,123,245,.06); }
.form .full { grid-column: 1 / -1; }
.form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form legend { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin-bottom: 8px; padding: 0; }
.chip { display: inline-flex !important; position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px !important; height: 1px; padding: 0 !important; opacity: 0; pointer-events: none; }
.chip span { padding: 8px 13px; border: 1px solid var(--line2); font-size: 13px; letter-spacing: .02em; text-transform: none; color: var(--mut); cursor: pointer; transition: all .2s; }
.chip input:checked + span { border-color: var(--blue); color: #fff; background: rgba(47,123,245,.14); }
.chip input:focus-visible + span { outline: 2px solid var(--blue2); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-result { border: 1px solid var(--line2); background: rgba(47,123,245,.06); padding: 16px 18px; display: grid; gap: 10px; min-width: 0; }
.form-result p { margin: 0; font-size: 13.5px; color: var(--mut); }
.form-result .mail { color: var(--blue2); font-weight: 500; user-select: all; }
.form-result pre { margin: 0; max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); background: rgba(0,0,0,.25); padding: 12px; border: 1px solid var(--line); }
.form-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* footer */
.foot { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); padding: 0 var(--pad) 34px; text-align: center; }
.traces-foot { display: block; width: 100%; height: 90px; margin-bottom: 10px; }
.foot-stats { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; font-size: 13px; color: var(--mut); }
.foot-stats b { color: var(--text); font-weight: 500; }
.foot-stats .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-right: 4px; box-shadow: 0 0 10px var(--blue); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 12.5px; color: var(--dim); margin-bottom: 16px; }
.foot-links a:hover { color: var(--text); }
.legal { margin: 0; font-size: 11.5px; color: var(--dim); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 16px; font-size: 12.5px; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .nav, .top-right .btn-bracket, .brand-parent { display: none; }
  .burger { display: block; }
  .top { height: calc(58px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
  .brand img { height: 26px; }
  .index, .leftfade, .traces-top { display: none; }
  .panel-scene { padding: 16vh 16px 10vh; }
  .panel { padding: 26px 20px; }
  .spec-grid, .sites { grid-template-columns: 1fr; gap: 22px; }
  .form { grid-template-columns: 1fr; padding: 22px 18px; }
  .hud { left: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); gap: 14px; font-size: 9.5px; }
  .co { font-size: 10.5px; padding: 5px 7px; }
}
/* stacked phone layout: portrait tablets/phones and very narrow windows */
@media (max-width: 600px), (max-width: 920px) and (orientation: portrait) {
  .scene .copy { width: auto; justify-content: flex-end; padding: 58px 16px 64px;
    background: linear-gradient(180deg, rgba(14,16,19,0) 40%, rgba(14,16,19,.82) 64%, rgba(14,16,19,.96) 100%); }
  .scene.hero .copy { justify-content: flex-end; }
  .hero-logo { width: min(190px, 50vw); margin-bottom: 2px; }
  .scene.hero .copy { padding-bottom: 56px; }
  .hero .lead { font-size: 13.5px; line-height: 1.6; margin-top: 12px; }
  .hero .kicker { margin-bottom: 8px; font-size: 10px; }
  .hero-stats dt { font-size: 16px; }
  .hero-stats dd { font-size: 10px; }
  .hero-title .model { font-size: clamp(52px, 15vw, 80px); }
  .hero-stats { grid-template-columns: repeat(4, auto); gap: 8px 14px; margin-top: 18px; }
  .hero-stats div { padding-left: 8px; }
  .lead, .desc { font-size: 14px; }
  .ctas { margin-top: 20px; gap: 18px; }
  .hint { margin-top: 18px; }
  .brand-line { top: 70px; left: 16px; }
  .say { font-size: clamp(22px, 6.4vw, 30px); }
  .kv { gap: 12px; margin-top: 18px; }
  .kv dt { font-size: 20px; }
  .module h2 { font-size: clamp(28px, 8vw, 38px); margin-bottom: 10px; }
  .tags { margin-top: 14px; }
  .dashes { margin-top: 18px; }
  #partsList { max-height: 24vh; }
  #partsList li { grid-template-columns: 18px 104px 1fr; font-size: 12px; }
  .cta { padding-top: 40vh; }
}
/* small landscape screens (e.g. tablets on their side): keep text left, model right */
@media (min-width: 601px) and (max-width: 920px) and (orientation: landscape) {
  .leftfade { display: block; width: 70vw; }
  .scene .copy { width: 54vw; padding: 70px 0 44px max(16px, env(safe-area-inset-left, 0px)); }
  .hero-logo { width: min(230px, 30vw); }
  .hero-title .model { font-size: clamp(44px, 8vw, 72px); }
  .hero-title .sub { font-size: 11px; margin-top: 6px; }
  .lead, .desc { font-size: 13px; line-height: 1.6; margin-top: 12px; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 8px 18px; margin-top: 18px; }
  .hero-stats dt { font-size: 16px; }
  .ctas { margin-top: 16px; }
  .hint, .brand-line { display: none; }
  .say { font-size: clamp(20px, 3.4vw, 28px); }
  .module h2 { font-size: clamp(26px, 4.4vw, 36px); margin-bottom: 10px; }
  .kv { margin-top: 16px; gap: 12px; }
  .kv dt { font-size: 19px; }
  .tags { margin-top: 12px; }
  .dashes { margin-top: 14px; }
}
@media (max-width: 380px) {
  .hero-stats { gap: 8px 16px; }
  .kv dt { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hint .arrow, .pin::after { animation: none; }
}
.hud { transition: opacity .4s; }
.hud-off .hud { opacity: 0; }

/* ---------- v2: integration bullets, missions, performance tiles, IR overlay ---------- */
.bullets { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; max-width: 440px; }
.bullets li { position: relative; padding: 0 0 10px 26px; font-size: 14px; color: var(--mut); border-bottom: 1px solid var(--line); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 2px; background: var(--blue); box-shadow: 0 0 8px rgba(47,123,245,.7); }

.missions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.mission { border: 1px solid var(--line); background: rgba(255,255,255,.015); padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mission .mn { font: 300 13px/1 var(--display); color: var(--blue2); letter-spacing: .12em; }
.mission h3 { margin: 0; font: 400 19px/1.25 var(--display); color: var(--text); text-wrap: balance; }
html[lang="zh"] .mission h3 { font-family: var(--body); font-weight: 500; }
.mission p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--mut); }
.mission ul { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); }
.mission li { font-size: 11.5px; padding: 4px 9px; border: 1px solid var(--line2); color: var(--mut); }

.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin-top: 30px; background: var(--line); border: 1px solid var(--line); }
.tile { background: rgba(14,16,19,.92); padding: 22px 18px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tile b { font: 300 clamp(26px, 2.6vw, 36px)/1 var(--display); color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile b small { font: 400 13px var(--body); color: var(--blue2); margin-left: 5px; }
.tile span { font-size: 12px; color: var(--dim); letter-spacing: .03em; }

.ir-overlay { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
              radial-gradient(120% 90% at 62% 46%, rgba(255,120,40,.06), rgba(40,0,60,.35) 100%); }
.ir-overlay span { position: absolute; right: calc(70px + env(safe-area-inset-right, 0px)); top: calc(88px + env(safe-area-inset-top, 0px));
  font: 500 11px/1 var(--body); letter-spacing: .22em; color: #ffb35c; padding: 6px 10px; border: 1px solid rgba(255,179,92,.5); }
.ir-overlay i { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 calc(-32px + 12vw);
  border: 1px solid rgba(255,179,92,.55); }
.ir-overlay i::before, .ir-overlay i::after { content: ""; position: absolute; background: rgba(255,179,92,.7); }
.ir-overlay i::before { left: 50%; top: -14px; bottom: -14px; width: 1px; }
.ir-overlay i::after { top: 50%; left: -14px; right: -14px; height: 1px; }

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .missions { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: 16px 14px; }
  .bullets { margin-top: 18px; }
  .ir-overlay span { right: 16px; top: calc(70px + env(safe-area-inset-top, 0px)); }
  .ir-overlay i { display: none; }
}

/* ---------- low-power tier: app.js adds body.lowfx only when frames stay slow on this device ---------- */
.lowfx .panel, .lowfx .co, .lowfx .top.solid { backdrop-filter: none; -webkit-backdrop-filter: none; }
.lowfx .panel { background: rgba(16, 19, 24, .93); }
.lowfx .co { background: rgba(10, 12, 16, .9); }
.lowfx .top.solid { background: rgba(14, 16, 19, .96); }
