/* 样式基于 01.WebSite/test/index2.html；首屏部分保持原样，仅按 ELETKER 文案调整字号与位置。 */
/* ELETKER type, after ui-ux-pro-max-skill.com: Space Grotesk for display,
   DM Sans for text, the system monospace for data. Both fonts are SIL OFL 1.1
   (free, commercial use allowed), self-hosted so they load in mainland China;
   licence texts sit beside the files in public/fonts/. Latin only — Chinese
   falls through to PingFang / Microsoft YaHei / Noto Sans CJK. */
@font-face{
  font-family:'DM Sans';
  src:url('public/fonts/dm-sans-latin.woff') format('woff');
  font-weight:300 700; font-style:normal; font-display:swap;
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Space Grotesk';
  src:url('public/fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight:300 700; font-style:normal; font-display:swap;
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── design unit: 1u === 1px on the 1600 × 880 reference frame ───────── */
:root{
  --u: min(calc((100vw - 64px) / 1508), calc(1520px / 1508));

  /* ELETKER slate system, after ui-ux-pro-max-skill.com: Tailwind's dark
     slate, a blue signal colour and an orange hardware colour, which also
     meet in the blue → orange headline gradient */
  --bg-0:           #0f172a;
  --bg-1:           #101828;
  --surface:        #1e2939;
  --surface-2:      #364153;
  --line:           rgba(255,255,255,.10);
  --accent:         #50a2ff;
  --accent-strong:  #155dfc;
  --hw:             #ff6900;
  --grad:           linear-gradient(90deg, #155dfc 0%, #ff6900 100%);
  --cjk:            'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Noto Sans CJK SC','Source Han Sans SC';
  --font-body:      'DM Sans', -apple-system, 'Segoe UI', var(--cjk), sans-serif;
  --font-display:   'Space Grotesk', 'DM Sans', -apple-system, 'Segoe UI', var(--cjk), sans-serif;
  --font-mono:      ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', var(--cjk), monospace;
  --fg-rgb:         241,245,249;      /* light-on-dark tints: lines, glass edges, faint text */
  --accent-rgb:     80,162,255;
  --hw-rgb:         255,105,0;
  --glass-rgb:      30,41,57;         /* panel glass */
  --glass2-rgb:     16,24,40;         /* deeper glass: readouts, status bar */
  --shadow-rgb:     2,6,23;
  color-scheme:     dark;
  --mint:           var(--accent);     /* older names, kept as aliases */
  --gold:           var(--hw);

  --ink:            #f1f5f9;
  --ink-soft:       #d1d5dc;
  --ink-faint:      #99a1af;
  --rule:           rgba(255,255,255,.07);

  --card:           var(--surface);
  --card-ink:       var(--ink);
  --card-label:     var(--ink-faint);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ── type scale (fixed px, after ui-ux-pro-max-skill.com / Tailwind) ──
   Text no longer grows with the window: one size per role, stepping
   down at 1279px and again on phones. Decorative wordmarks and big
   chapter numbers still scale with the stage. */
:root{
  --fs-2xs:11px; --fs-xs:12px; --fs-sm:14px; --fs-base:16px; --fs-lg:18px; --fs-xl:20px;
  --fs-2xl:24px; --fs-3xl:30px; --fs-4xl:36px; --fs-5xl:48px; --fs-6xl:60px;
  --fs-nav:13px;
}
@media (max-width:1279px){ :root{ --fs-nav:12px; } }
@media (max-width:1279px){ :root{ --fs-base:15px; --fs-lg:17px; --fs-xl:18px; --fs-2xl:22px; --fs-3xl:26px; --fs-4xl:30px; --fs-5xl:40px; --fs-6xl:48px; } }
@media (max-width:900px){ :root{ --fs-sm:13px; --fs-base:14px; --fs-lg:15px; --fs-xl:16px; --fs-2xl:17px; --fs-3xl:20px; --fs-4xl:24px; --fs-5xl:28px; --fs-6xl:32px; } }

/* ── light theme, after ui-ux-pro-max-skill.com's light mode ─────────── */
html[data-theme="light"]{
  --bg-0:           #f8fafc;
  --bg-1:           #f1f5f9;
  --surface:        #ffffff;
  --surface-2:      #f3f4f6;
  --line:           rgba(15,23,42,.10);
  --accent:         #155dfc;
  --accent-strong:  #155dfc;
  --hw:             #c2410c;          /* a deeper orange, readable on white */
  --ink:            #101828;
  --ink-soft:       #4a5565;
  --ink-faint:      #6a7282;
  --rule:           rgba(15,23,42,.07);
  --fg-rgb:         15,23,42;
  --accent-rgb:     21,93,252;
  --hw-rgb:         194,65,12;
  --glass-rgb:      255,255,255;
  --glass2-rgb:     255,255,255;
  --shadow-rgb:     15,23,42;
  color-scheme:     light;
}
/* on a light page the soft dark halos under text only smudge it */
html[data-theme="light"] .story .beat :is(.beat-title, .beat-lede, .story-title, .story-lede, .kicker, .pstats dd, .pstats dt, .step h3, .step p),
html[data-theme="light"] .hq-readout{ --hq:rgba(21,93,252,.7); }
html, body, .hero{ transition:background-color .5s ease; }

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }

html{ background:var(--bg-0); scroll-behavior:smooth; }
body{
  font-family:var(--font-body);
  font-weight:400;
  color:var(--ink);
  background:var(--bg-0);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ── hero shell ──────────────────────────────────────────────────────── */
.hero{
  position:relative;
  width:100%;
  height:100svh;
  min-height:calc(880 * var(--u));
  overflow:hidden;
  isolation:isolate;
  /* graphite: near-black base, a faint mint glow where the planet rises —
     all the modelling comes from the light pool the root sits in */
  background:
    radial-gradient(64% 52% at 44% 96%, rgba(var(--accent-rgb),.055) 0%, rgba(var(--accent-rgb),0) 70%),
    radial-gradient(70% 60% at 92% 8%,  rgba(var(--glass-rgb),.55) 0%, rgba(var(--glass-rgb),0) 68%),
    var(--bg-0);
}
/* The floor of light the root stands in. Sampled off the reference: the
   background climbs from 73 luma at the nav to ~128 at y 850, brightest
   around the middle of the bottom edge. */
.hero::after{
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(72% 44% at 50% 117%, rgba(var(--fg-rgb),.50) 0%, rgba(var(--fg-rgb),.21) 42%, rgba(var(--fg-rgb),.04) 72%, rgba(var(--fg-rgb),0) 88%),
    linear-gradient(180deg, rgba(var(--fg-rgb),0) 54%, rgba(var(--fg-rgb),.03) 78%, rgba(var(--fg-rgb),.085) 100%);
  pointer-events:none; z-index:0;
}

/* The whole composition lives on a centred 1600 × 880 stage.
   Centred with margins rather than a transform on purpose: a transform would
   open a stacking context and trap every child below #scene. */
.stage{
  position:absolute; left:50%; top:0;
  margin-left:calc(-800 * var(--u));
  width:calc(1600 * var(--u));
  height:calc(880 * var(--u));
}

/* ── ghost wordmark (z 1) ────────────────────────────────────────────── */
.ghost{
  position:absolute; z-index:1;
  left:calc(6 * var(--u)); bottom:calc(-64 * var(--u));
  font-size:calc(222 * var(--u));
  line-height:.78;
  font-weight:400;
  letter-spacing:calc(22 * var(--u));
  color:rgba(var(--fg-rgb),.055);
  white-space:nowrap; user-select:none; pointer-events:none;
}

/* ── three.js canvas (z 3 — above card 1, below everything else) ─────── */
/* ELETKER: fixed to the viewport, so the same living scene is the whole
   site's background. It stays inside .hero's stacking context — the moss
   still drapes over the first card — and the sections that follow paint
   over it with transparent stages. */
#scene{
  position:fixed; inset:0; z-index:3;
  width:100%; height:100%;
  pointer-events:none;
  opacity:0; transition:opacity .7s var(--ease);
}
.is-ready #scene{ opacity:1; }

/* ── nav: a floating dock (z 5) ──────────────────────────────────────
   A centred capsule of pills that magnify as the pointer nears them, over
   a rim highlight that tracks where the pointer is — the dock idiom from
   ascii-page-transition, in this page's palette and unit system.
   The wrapper does the centring so the capsule itself is free to carry the
   pointer-parallax transform; putting both on one element means whichever
   is written last wins and the dock jumps out of centre. */
/* The top bar: brand on the left, the menu capsule in the centre, the
   language switch on the right. Three grid columns with equal outer tracks
   keep the capsule on the page's centre line whatever the sides measure. */
.dock-wrap{
  position:fixed; z-index:50;
  top:calc(18 * var(--u)); left:0; right:0;
  /* The ends line up with the content area: the hero stage and the section
     frames are 1600 units wide, centred, with content inset 46 units — so
     the edge is half the screen minus 754 units (this also follows the frame
     once the unit stops growing above 1900px). */
  padding:0 calc(50% - 754 * var(--u));
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:start;
  gap:12px;
  pointer-events:none;
}
.dock-wrap > .dock{ grid-column:2; }
/* brand and language switch wear the capsule's glass */
.topbar-brand, .lang-btn{
  pointer-events:auto; position:relative;
  display:inline-flex; align-items:center;
  height:calc(46 * var(--u));
  border-radius:calc(14 * var(--u));
  border:1px solid rgba(var(--fg-rgb),.11);
  background:linear-gradient(180deg, rgba(var(--fg-rgb),.055), rgba(var(--fg-rgb),0) 42%), rgba(var(--glass2-rgb),.74);
  box-shadow:0 calc(8 * var(--u)) calc(22 * var(--u)) rgba(var(--shadow-rgb),.30), inset 0 1px rgba(var(--fg-rgb),.06);
  color:var(--ink); text-decoration:none; font-family:inherit;
  transition:border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.topbar-brand{ grid-column:1; justify-self:start; gap:calc(12 * var(--u)); padding:calc(5 * var(--u)) calc(20 * var(--u)) calc(5 * var(--u)) calc(5 * var(--u)); }
.brand-tile{ display:grid; place-items:center; flex:none; width:calc(36 * var(--u)); height:calc(36 * var(--u));
  border-radius:calc(10 * var(--u)); background:#eef1e7; overflow:hidden; }
.brand-tile img{ width:66%; height:66%; display:block; object-fit:contain; }
/* Chinese shows the full company name, set plainly; English shows the
   ELETKER wordmark, tracked wide */
.brand-name{ font-size:calc(15 * var(--u)); font-weight:500; letter-spacing:.08em; line-height:1; white-space:nowrap; }
:lang(en) .brand-name{ font-weight:600; letter-spacing:.3em; margin-right:-.3em; }
.topbar-end{ grid-column:3; justify-self:end; pointer-events:auto; display:flex; gap:8px; }
.theme-btn{ padding:0; width:calc(46 * var(--u)); justify-content:center; }
.theme-btn .glyph{ width:calc(16 * var(--u)); height:calc(16 * var(--u)); }
.theme-btn .glyph .ic-moon{ display:none; }
html[data-theme="light"] .theme-btn .glyph .ic-sun{ display:none; }
html[data-theme="light"] .theme-btn .glyph .ic-moon{ display:block; }
.lang-btn{ gap:8px; padding:0 calc(18 * var(--u)); cursor:pointer; color:var(--ink-soft);
  font-size:var(--fs-xs); font-weight:500; letter-spacing:.06em; white-space:nowrap; }
.lang-btn .glyph{ width:calc(15 * var(--u)); height:calc(15 * var(--u)); flex:none; opacity:.75; }
.lang-btn .glyph svg{ display:block; width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.25; stroke-linecap:round; stroke-linejoin:round; }
.topbar-brand:hover, .lang-btn:hover, .topbar-brand:focus-visible, .lang-btn:focus-visible{ border-color:rgba(var(--fg-rgb),.24); color:var(--ink); }
.lang-btn:hover .glyph{ opacity:1; }
.dock{
  pointer-events:auto;
  display:flex; align-items:flex-start; gap:2.5px;
  height:calc(46 * var(--u));
  padding:4px;
  border-radius:12px;
  border:1px solid rgba(var(--fg-rgb),.11);
  /* No backdrop-filter. It sits over a canvas that repaints every frame,
     so the backdrop has to be re-sampled and re-blurred every frame too —
     measured at ~20 fps off the whole page, and the radius made no
     difference because the cost is the extra pass, not the blur. A
     translucent panel with a lit top edge reads the same at this size. */
  background:
    linear-gradient(180deg, rgba(var(--fg-rgb),.055), rgba(var(--fg-rgb),0) 42%),
    rgba(var(--glass2-rgb),.74);
  box-shadow:0 calc(8 * var(--u)) calc(22 * var(--u)) rgba(var(--shadow-rgb),.30),
             inset 0 1px rgba(var(--fg-rgb),.06);
  isolation:isolate;
}
/* Anchored at the top so growth runs downward, out of the headline's way —
   a dock that grew from its centre would push into the nav's own row. */
.dock-item{
  position:relative; z-index:6;
  display:inline-flex; align-items:center; justify-content:center;
  flex:none;
  height:calc(36 * var(--u));
  gap:8px;
  padding:0 calc(13 * var(--u));
  transform-origin:50% 0;
  border:1px solid transparent;
  border-radius:8px;
  background:rgba(var(--fg-rgb),.04);
  color:var(--ink-faint);
  text-decoration:none; cursor:pointer;
  font-family:inherit;
  font-size:var(--fs-nav); font-weight:500;
  letter-spacing:.06em; text-transform:uppercase;
  white-space:nowrap;
  will-change:width,height,transform;
  transition:color .18s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
/* A magnified pill hangs below the capsule, so it needs to be its own
   opaque tile — a translucent white wash at that size reads as a milky
   rectangle stuck to the bar rather than as a key lifting off it. */
.dock-item[data-near="true"]{
  z-index:7;
  color:var(--ink);
  border-color:rgba(var(--fg-rgb),.19);
  background:rgba(var(--glass-rgb),.94);
  box-shadow:0 calc(7 * var(--u)) calc(16 * var(--u)) rgba(var(--shadow-rgb),.30);
}
.dock-item .glyph{
  width:calc(14 * var(--u)); height:calc(14 * var(--u)); flex:none;
  opacity:.66; transition:opacity .18s var(--ease);
}
.dock-item .glyph svg{
  display:block; width:100%; height:100%;
  fill:none; stroke:currentColor; stroke-width:1.25;
  stroke-linecap:round; stroke-linejoin:round;
}
.dock-item[data-near="true"] .glyph{ opacity:1; }

/* the current section: mint outline on dark glass */
.dock-item.is-active{
  background:rgba(var(--accent-rgb),.10); border-color:rgba(var(--accent-rgb),.55); color:var(--mint);
  box-shadow:0 0 calc(14 * var(--u)) rgba(var(--accent-rgb),.16), inset 0 0 0 1px rgba(var(--accent-rgb),.12);
}
.dock-item.is-active .glyph{ opacity:.8; }
.dock-item--enter{ color:var(--ink); background:rgba(var(--fg-rgb),.075); }

/* ── specular rim ────────────────────────────────────────────────────
   A conic gradient masked down to the border, whose start angle points at
   the pointer and whose opacity falls off with distance. It is the reason
   the glass reads as a lit edge rather than as a flat translucent box. */
[data-spec]{ --spec-angle:2.4rad; --spec-bright:0; }
[data-spec]::after{
  content:''; position:absolute; inset:-1px; z-index:5;
  padding:1px; border-radius:inherit; pointer-events:none;
  opacity:var(--spec-bright);
  background:conic-gradient(from var(--spec-angle) at 50% 50%,
    rgba(var(--fg-rgb),0) 0deg, rgba(var(--fg-rgb),.08) 14deg, rgba(var(--fg-rgb),.95) 28deg,
    rgba(var(--fg-rgb),.16) 46deg, rgba(var(--fg-rgb),0) 68deg, rgba(var(--fg-rgb),0) 180deg,
    rgba(var(--fg-rgb),.08) 194deg, rgba(var(--fg-rgb),.95) 208deg, rgba(var(--fg-rgb),.16) 226deg,
    rgba(var(--fg-rgb),0) 248deg, rgba(var(--fg-rgb),0) 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
}
.dock{ position:relative; }

/* ── hero copy (z 4) ─────────────────────────────────────────────────── */
.headline{
  position:absolute; z-index:4;
  left:calc(46 * var(--u)); top:calc(202 * var(--u));
  font-size:calc(50 * var(--u)); line-height:calc(64 * var(--u));
  font-weight:300; letter-spacing:calc(1 * var(--u));
  color:var(--ink);
}
/* No overflow clip: cropping a 63u face to wipe it in cuts the descenders
   of "Step" and "living" at the moment they land. The padding stays even
   though the clip is gone — it set the two lines' metrics, and removing it
   would shift line two. */
.headline span{ display:block; padding-bottom:.04em; }
.headline span i{ display:inline-block; font-style:normal; }
:lang(en) .headline{ width:calc(452 * var(--u)); font-size:calc(42 * var(--u)); line-height:calc(48 * var(--u)); letter-spacing:calc(-0.4 * var(--u)); }
:lang(en) .lede{ top:calc(220 * var(--u)); font-size:calc(15 * var(--u)); line-height:calc(20 * var(--u)); width:calc(232 * var(--u)); }

.lede{
  position:absolute; z-index:4;
  /* sits a little lower than the headline's first line, so the two read apart */
  left:calc(520 * var(--u)); top:calc(236 * var(--u));
  width:calc(208 * var(--u));
  font-size:calc(16.5 * var(--u)); line-height:calc(22 * var(--u));
  font-weight:300; color:var(--ink-soft);
}

/* ── liquid-metal controls ──────────────────────────────────────────
   The original five-pass WebGL2 renderer now mounts directly in this
   document. Its canvas, sizing, glass plate, shader constants and input
   model are unchanged; only the iframe boundary has been removed. */
.pill-clip{
  position:absolute; z-index:4;
  left:calc(644 * var(--u)); top:calc(376 * var(--u));
  width:calc(410 * var(--u)); height:calc(270 * var(--u));
  margin:calc(-135 * var(--u)) 0 0 calc(-205 * var(--u));
  clip-path:inset(calc(72 * var(--u)) calc(60 * var(--u))
                  calc(26 * var(--u)) calc(60 * var(--u)) round calc(62 * var(--u)));
}
.pill{
  position:absolute; inset:0; --mr:calc(150 * var(--u));
  display:grid; place-items:center;
}

.liquid-stage{
  --lu:calc(var(--h) / 516);
  --bh:var(--h);
  --pad:calc(900 * var(--lu));
  position:relative;
  width:max-content; height:max-content;
  padding:var(--pad);
  display:grid; place-items:center;
  touch-action:manipulation;
  font-family:var(--font-body);
  font-optical-sizing:auto;
  -webkit-font-smoothing:antialiased;
}
.liquid-stage--explore{ --h:calc(60.156 * var(--u)); }
.liquid-stage--play{ --h:calc(88.2288 * var(--u)); }

.liquid-plate{
  position:absolute;
  inset:var(--pad);
  border-radius:999px;
  background:
    linear-gradient(180deg, rgba(var(--fg-rgb),.085), rgba(var(--fg-rgb),.014) 44%, rgba(var(--fg-rgb),0) 64%),
    rgba(var(--glass2-rgb),.42);
  box-shadow:
    0 calc(var(--h) * 0.08) calc(var(--h) * 0.18) rgba(0,0,0,.38),
    0 calc(var(--h) * 0.24) calc(var(--h) * 0.50) rgba(0,0,0,.28),
    0 calc(var(--h) * 0.48) calc(var(--h) * 0.96) rgba(0,0,0,.16),
    inset 0 1px 0 rgba(var(--fg-rgb),.13),
    inset 0 calc(var(--h) * -0.02) calc(var(--h) * 0.05) rgba(var(--fg-rgb),.05);
  transition:box-shadow .38s cubic-bezier(.22,.61,.36,1),
             background .38s cubic-bezier(.22,.61,.36,1);
}
.liquid-stage.hot .liquid-plate{
  background:
    linear-gradient(180deg, rgba(var(--fg-rgb),.105), rgba(var(--fg-rgb),.02) 44%, rgba(var(--fg-rgb),0) 64%),
    rgba(var(--shadow-rgb),.50);
  box-shadow:
    0 calc(var(--h) * 0.10) calc(var(--h) * 0.22) rgba(0,0,0,.44),
    0 calc(var(--h) * 0.32) calc(var(--h) * 0.66) rgba(0,0,0,.34),
    0 calc(var(--h) * 0.66) calc(var(--h) * 1.32) rgba(0,0,0,.20),
    inset 0 1px 0 rgba(var(--fg-rgb),.17),
    inset 0 calc(var(--h) * -0.02) calc(var(--h) * 0.05) rgba(var(--fg-rgb),.06);
}
.liquid-fx{ position:absolute; inset:0; width:100%; height:100%; display:block; }

.liquid-button{
  position:relative;
  height:var(--bh);
  border:0; background:none;
  border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  font-family:inherit; font-weight:500; line-height:1; letter-spacing:0;
  cursor:pointer; -webkit-tap-highlight-color:transparent; outline:none;
}
.liquid-button:focus-visible{
  outline:calc(4 * var(--lu)) solid rgba(var(--fg-rgb),.55);
  outline-offset:calc(10 * var(--lu));
}
.liquid-button .ico{ display:block; flex:none; overflow:visible; }
.liquid-button .lbl{ display:block; transform:translateY(calc(2 * var(--lu))); }
.liquid-button--explore{
  padding:0 calc(224 * var(--lu)) 0 calc(95 * var(--lu));
  gap:calc(112 * var(--lu));
  font-size:calc(140 * var(--lu));
}
.liquid-button--explore .ico{
  width:calc(150 * var(--lu)); height:calc(150 * var(--lu));
}
.liquid-button--play{
  width:var(--bh); height:var(--bh); padding:0;
}
.liquid-button--play .ico{
  width:calc(176 * var(--lu)); height:calc(176 * var(--lu));
  margin-left:calc(14 * var(--lu));
}
.liquid-button--play .lbl{ display:none; }
.liquid-stage.press .liquid-plate{
  background:
    linear-gradient(180deg, rgba(var(--fg-rgb),.07), rgba(var(--fg-rgb),.01) 44%, rgba(var(--fg-rgb),0) 64%),
    rgba(var(--shadow-rgb),.55);
  box-shadow:
    0 calc(var(--h) * 0.04) calc(var(--h) * 0.11) rgba(0,0,0,.46),
    0 calc(var(--h) * 0.13) calc(var(--h) * 0.32) rgba(0,0,0,.36),
    0 calc(var(--h) * 0.27) calc(var(--h) * 0.62) rgba(0,0,0,.22),
    inset 0 1px 0 rgba(var(--fg-rgb),.10);
  transition-duration:.10s;
}

/* ── play button (z 4) ─────────────────────────────────────────────── */
.play-wrap{
  position:absolute; z-index:4; pointer-events:none;
  left:calc(187 * var(--u)); top:calc(431 * var(--u));
  width:calc(170 * var(--u)); height:calc(170 * var(--u));
}
.play-wrap > *{ pointer-events:auto; }
.play-clip{
  position:absolute; left:50%; top:50%;
  width:calc(396 * var(--u)); height:calc(396 * var(--u));
  margin:calc(-198 * var(--u)) 0 0 calc(-198 * var(--u));
  clip-path:inset(calc(131 * var(--u)) calc(106 * var(--u))
                  calc(73 * var(--u)) calc(106 * var(--u)) round calc(92 * var(--u)));
}
.play-glass{ position:absolute; inset:0; display:grid; place-items:center; }
.play-ring{
  position:absolute; inset:0; pointer-events:none;
  border:1px solid rgba(var(--fg-rgb),.17); border-radius:50%;
}
.play-ring::after{
  content:''; position:absolute; inset:calc(-1 * var(--u));
  border:1px solid rgba(var(--fg-rgb),.32); border-radius:50%;
  opacity:0; transform:scale(.86);
  transition:opacity .7s var(--ease), transform .9s var(--ease-out);
}
.play-clip:hover ~ .play-ring::after,
.play-clip:focus-within ~ .play-ring::after{ opacity:1; transform:scale(1.06); }

/* ── stats (z 4) ─────────────────────────────────────────────────────── */
.stat{ position:absolute; z-index:4; display:flex; align-items:flex-start; gap:calc(9 * var(--u)); }
.stat--a{ left:calc(1250 * var(--u)); top:calc(216 * var(--u)); }
.stat--b{ left:calc(1346 * var(--u)); top:calc(326 * var(--u)); }
.stat .mark{ width:calc(32 * var(--u)); height:calc(32 * var(--u)); flex:none; margin-top:calc(2 * var(--u)); color:rgba(var(--fg-rgb),.34); }
.stat .mark svg{ width:100%; height:100%; display:block; }
.stat dt{ font-size:calc(13.5 * var(--u)); font-weight:400; color:var(--ink-soft); line-height:calc(19 * var(--u)); }
.stat dd{ font-size:calc(13.5 * var(--u)); font-weight:600; color:var(--ink); line-height:calc(21 * var(--u)); }

/* ── cards ───────────────────────────────────────────────────────────── */
.card{
  position:absolute;
  background:var(--card); border-radius:calc(46 * var(--u));
  box-shadow:0 calc(30 * var(--u)) calc(70 * var(--u)) rgba(var(--shadow-rgb),.30);
  transition:box-shadow .8s var(--ease);
}
/* ELETKER: the planet turns behind the cards, so both sit above #scene (z 3) */
.card--about{
  z-index:4;
  left:calc(890 * var(--u)); top:calc(200 * var(--u));
  width:calc(330 * var(--u)); height:calc(305 * var(--u));
}
.card--stove{
  z-index:4; will-change:transform;
  left:calc(1237 * var(--u)); top:calc(482 * var(--u));
  width:calc(328 * var(--u)); height:calc(310 * var(--u));
}
.card .label{
  position:absolute; left:calc(38 * var(--u));
  font-size:calc(15.5 * var(--u)); font-weight:300; color:var(--card-label);
}
.card h2{
  position:absolute; left:calc(38 * var(--u));
  font-size:calc(26.2 * var(--u)); line-height:calc(27 * var(--u));
  font-weight:400; letter-spacing:calc(-0.5 * var(--u)); color:var(--card-ink);
}
.card--about .label{ top:calc(152 * var(--u)); }
.card--about h2{ top:calc(177 * var(--u)); width:calc(262 * var(--u)); }
.card.card--stove .label{ top:calc(38 * var(--u)); }
/* the slogan fills the space above the photo: larger, airier, two lines */
.card.card--stove h2{ top:calc(34 * var(--u)); width:calc(270 * var(--u)); font-size:calc(27 * var(--u)); line-height:calc(40 * var(--u)); letter-spacing:calc(1.2 * var(--u)); font-weight:400; }
:lang(en) .card.card--stove h2{ font-size:calc(18 * var(--u)); line-height:calc(21 * var(--u)); }
:lang(en) .card h2{ font-size:calc(21 * var(--u)); line-height:calc(24 * var(--u)); }
.card--stove .label{ top:calc(45 * var(--u)); }
.card--stove h2{ top:calc(70 * var(--u)); }
/* Both cards carry a plate. The Field Note reads downward — label, title,
   then the photograph — so its window sits at the foot of the card; the
   Ethos card reads the other way up, so its window is at the head and the
   copy sits under it. Same frame, mirrored. */
.card figure{
  position:absolute; left:calc(14 * var(--u)); right:calc(14 * var(--u));
  border-radius:calc(34 * var(--u)); overflow:hidden;
  isolation:isolate; background:#263025;
}
.card--stove figure{ bottom:calc(14 * var(--u)); height:calc(158 * var(--u)); }
.card--about figure{ top:calc(14 * var(--u)); height:calc(122 * var(--u)); }
/* The plate is its own depth plane. It travels against the card and the
   moss, so the landscape feels like a small window rather than a
   photograph glued to the surface. */
.portal-media{
  position:absolute; inset:calc(-9 * var(--u)); z-index:1; display:block;
  will-change:transform,clip-path;
  transform:
    perspective(900px)
    translate3d(calc(var(--px,0) * -11px),calc(var(--py,0) * -7px),0)
    rotateY(calc(var(--px,0) * -1.4deg))
    rotateX(calc(var(--py,0) * .9deg));
  transform-origin:50% 50%;
}
.portal-media img{
  width:100%; height:100%; object-fit:cover; display:block;
  transform:scale(1.08);
  filter:saturate(.92) contrast(1.03);
  transition:transform 1.25s var(--ease-out),filter .8s var(--ease);
}
.card:hover .portal-media img{ transform:scale(1.13); filter:saturate(1.04) contrast(1.04); }
.pixel-reveal{
  position:absolute; inset:0; z-index:3; width:100%; height:100%;
  pointer-events:none; opacity:0; mix-blend-mode:screen;
}
/* The white scan rides the clip edge, so its centre has to travel the
   media element's box, not the figure's — .portal-media is overscanned by
   9u on every side to give the parallax rotation somewhere to go. Offsetting
   by that 9u in calc() rather than by a translate percentage keeps the
   glow on the edge at every breakpoint, whatever size the plate is. */
.card figure::after{
  content:''; position:absolute; z-index:2;
  filter:blur(calc(2 * var(--u))); opacity:0; pointer-events:none;
  top:0; bottom:0; width:26%; left:calc(-13% - 9 * var(--u));
  background:linear-gradient(90deg,transparent,rgba(var(--fg-rgb),.2) 42%,rgba(var(--fg-rgb),.72) 54%,transparent);
}

.knob-float{
  position:absolute; z-index:4; pointer-events:none;
  left:calc(1142 * var(--u)); top:calc(427 * var(--u));
  width:calc(58 * var(--u)); height:calc(58 * var(--u));
}
.knob-float > *{ pointer-events:auto; }
.knob--about{ left:0; top:0; }
.card .knob, .knob--about{
  position:absolute; z-index:4; right:calc(20 * var(--u)); bottom:calc(20 * var(--u));
  width:calc(58 * var(--u)); height:calc(58 * var(--u));
  border:0; border-radius:50%; cursor:pointer;
  background:#fbfcf8; display:grid; place-items:center;
  box-shadow:0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(var(--shadow-rgb),.18);
  transition:transform .5s var(--ease-out), background .4s var(--ease);
}
.knob--about{ right:auto; bottom:auto; width:calc(58 * var(--u)); height:calc(58 * var(--u)); }
.card--stove .knob{ width:calc(54 * var(--u)); height:calc(54 * var(--u)); right:calc(26 * var(--u)); bottom:calc(26 * var(--u)); }
.card .knob svg, .knob--about svg{ width:calc(19 * var(--u)); height:calc(19 * var(--u)); display:block; color:#3f453a; }
.card .knob:hover, .knob--about:hover{ transform:scale(1.1) rotate(8deg); background:#fff; }
.card:hover{ box-shadow:0 calc(38 * var(--u)) calc(84 * var(--u)) rgba(var(--shadow-rgb),.36); }


/* ── entrance: everything is wiped in behind a mask ───────────────────
   Transform is reserved for the pointer parallax, so the reveal is done
   with clip-path. Once the intro has run, .intro-done drops the clip
   entirely — a live clip-path would open a stacking context on the About
   card and trap its knob under the moss. */
.js .mask{ clip-path:inset(100% 0 0 0 round var(--mr,0px)); }
.is-ready .mask{
  clip-path:inset(0 0 0 0 round var(--mr,0px));
  transition:clip-path 1.05s var(--ease-out) var(--d,0ms);
}
.js .mask-circle{ clip-path:circle(0% at 50% 50%); }
.is-ready .mask-circle{
  clip-path:circle(76% at 50% 50%);
  transition:clip-path 1.1s var(--ease-out) var(--d,0ms);
}
.js .fade{ opacity:0; }
.is-ready .fade{ opacity:1; transition:opacity 1.3s var(--ease) var(--d,0ms); }

.intro-done .mask, .intro-done .mask-circle{ clip-path:none; transition:none; }

.card{ --mr:calc(46 * var(--u)); }

/* the dock drops in tile by tile; the capsule itself only fades, because
   a clip on it would cut the pills off as they magnify past its edge */
.js .dock{ opacity:0; }
.is-ready .dock{ opacity:1; transition:opacity .8s var(--ease) 80ms; }
.js .dock-item{ clip-path:inset(0 0 105% 0); }
.is-ready .dock-item{
  clip-path:inset(0 0 -30% 0);
  transition:clip-path .9s var(--ease-out) var(--d,0ms),
             color .18s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.intro-done .dock-item{ clip-path:none; }
/* the bar's two ends slide in from their own edges */
.js .topbar-brand{ opacity:0; transform:translateX(calc(-18 * var(--u))); }
.js .lang-btn{ opacity:0; transform:translateX(calc(18 * var(--u))); }
.is-ready .topbar-brand, .is-ready .lang-btn{ opacity:1; transform:none;
  transition:opacity .8s var(--ease) 120ms, transform 1s var(--ease-out) 120ms, border-color .2s var(--ease), color .2s var(--ease); }

/* A short rise under a fade rather than a full-height wipe: with nothing
   cropping it, a 105% travel would start line one sitting on top of line
   two. .headline itself carries the pointer parallax, so the transform has
   to go on the inner <i>. */
.js .headline span i{ opacity:0; transform:translateY(calc(16 * var(--u))); }
.is-ready .headline span i{
  opacity:1; transform:none;
  transition:opacity 1.05s var(--ease) var(--d,0ms),
             transform 1.25s var(--ease-out) var(--d,0ms);
}

/* Each plate resolves like a low-bandwidth botanical transmission: a
   stepped clip exposes the photograph while sampled pixel-dots gather along
   the advancing edge (the dots themselves are painted by canvas).
   Both plates scan across, the Ethos one a beat ahead of the Field Note. */
.js .portal-media{ clip-path:inset(0 100% 0 0 round calc(25 * var(--u))); }
.is-ready .card--about .portal-media{ animation:portal-cut 1.45s steps(12,end) .92s both; }
.is-ready .card--stove .portal-media{ animation:portal-cut 1.45s steps(12,end) 1.08s both; }
.is-ready .card--about figure::after{ animation:portal-scan 1.45s steps(12,end) .92s both; }
.is-ready .card--stove figure::after{ animation:portal-scan 1.45s steps(12,end) 1.08s both; }
.intro-done .portal-media{ clip-path:none; animation:none; }
@keyframes portal-cut{
  from{ clip-path:inset(0 100% 0 0 round calc(25 * var(--u))); }
  to{ clip-path:inset(0 0 0 0 round calc(25 * var(--u))); }
}
/* The glow travels by animating its own offset, not by a translate
   percentage. A translate is a percentage of the glow's width, so the
   distance it covers depends on the plate's proportions — it overshot by
   a quarter of the card here and rode ahead of the edge the whole way.
   In calc() the travel is exactly the media box: 100% of the plate plus
   the 9u of overscan at each end, at every breakpoint. */
@keyframes portal-scan{
  0%{ left:calc(-13% - 9 * var(--u)); opacity:0; }
  10%{ opacity:.75; }
  88%{ opacity:.55; }
  100%{ left:calc(87% + 9 * var(--u)); opacity:0; }
}

/* No clip on the canvas: the root draws itself in behind the survey pulse,
   and a CSS wipe on top of that would be two reveals fighting each other.
   The fade is only here to cover the first compiled frame. */
.is-ready #scene{ transition:opacity .45s var(--ease); }

/* ── pointer parallax ────────────────────────────────────────────────
   --px / --py are written on .hero once per frame (-1…1). Each layer
   declares how far it rides (--pd, px at full deflection) and how much
   it turns (--pr, degrees), which is what gives the plane its depth. */
.par{
  transform:
    perspective(1400px)
    translate3d(calc(var(--px,0) * var(--pd,0) * -1px),
                calc(var(--py,0) * var(--pd,0) * -0.62px),
                0)
    rotateY(calc(var(--px,0) * var(--pr,0) * 1deg))
    rotateX(calc(var(--py,0) * var(--pr,0) * -0.7deg));
}
/* the floating knob turns about the About card's centre, not its own,
   so it stays glued to the corner it belongs to */
.knob-float{ transform-origin:calc(-87 * var(--u)) calc(-74.5 * var(--u)); }
.card--about{ transform-origin:50% 50%; }

/* ── keyboard focus ──────────────────────────────────────────────────── */
a:focus-visible, button:focus-visible{
  outline:2px solid rgba(var(--fg-rgb),.85);
  outline-offset:calc(4 * var(--u));
  border-radius:4px;
}
.card .knob:focus-visible, .knob--about:focus-visible, .play:focus-visible{ outline-color:rgba(var(--glass-rgb),.9); }

@media (prefers-reduced-motion:reduce){
  .mask,.mask-circle,.fade,#scene,
  .dock,.dock-item,
  .headline span i{ opacity:1 !important; clip-path:none !important; transform:none !important; transition:none !important; }
  .par{ transform:none !important; }
  .portal-media{ clip-path:none !important; animation:none !important; transform:none !important; }
  .pixel-reveal,.card figure::after{ display:none !important; }
  .portal-media img{ transform:none !important; transition:none !important; }
  #scene{ transition:none; }
}

/* ── narrow screens: one column, the moss becomes a band between the
      copy and the cards (760 design units wide) ───────────────────────── */
@media (max-width:900px){
  :root{ --u: calc(100vw / 760); }
  .hero{ height:auto; min-height:100svh; }
  .stage{
    position:relative; left:auto; top:auto; margin:0;
    width:100%; height:calc(1625 * var(--u));
  }
  .hero::after{
    background:
      radial-gradient(90% 30% at 50% 74%, rgba(var(--fg-rgb),.40) 0%, rgba(var(--fg-rgb),.14) 46%, rgba(var(--fg-rgb),0) 82%),
      linear-gradient(180deg, rgba(var(--fg-rgb),0) 62%, rgba(var(--fg-rgb),.05) 100%);
  }

  /* one column: the labels come off and the dock keeps only its glyphs,
     because at this scale the type would be four pixels tall */
  /* Floored with max(), not left on the design unit alone: this breakpoint
     runs from 900px down to 320px, so a pure --u dock is a 24px bar with
     12px targets on a phone. The floor only bites at the small end. */
  /* One row on every phone: brand tile, six menu glyphs, language glyph.
     --s is the key size: 44px where there is room, shrinking with the
     viewport so the row still fits a 360px screen (≈37px there). */
  /* row width = 7 keys (brand, five menu items, language) + 64px of padding, gaps and borders */
  .dock-wrap{ --s:min(42px, calc((100vw - 78px) / 8)); top:max(6px, calc(12 * var(--u))); padding:0 8px; gap:4px;
    display:flex; justify-content:space-between; align-items:center; }   /* logo, five menu items, theme and language: one row, evenly spaced */
  .dock{
    height:calc(var(--s) + 8px);
    padding:4px; gap:2px;
    border-radius:calc(var(--s) * .36);
  }
  .dock-item{
    height:var(--s); width:var(--s);
    padding:0; border-radius:calc(var(--s) * .28);
  }
  .dock-item span:not(.glyph){ display:none; }
  .topbar-brand, .lang-btn{ height:calc(var(--s) + 8px); border-radius:calc(var(--s) * .36); }
  .topbar-brand{ padding:4px; gap:0; }
  .brand-tile{ width:var(--s); height:var(--s); border-radius:calc(var(--s) * .28); }
  .brand-name, .lang-label{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .lang-btn{ width:calc(var(--s) + 10px); padding:0; justify-content:center; }
  .topbar-end{ gap:6px; }
  .lang-btn .glyph{ width:max(18px, calc(var(--s) * .44)); height:max(18px, calc(var(--s) * .44)); opacity:.85; }
  .dock-item .glyph{ width:max(19px, calc(20 * var(--u))); height:max(19px, calc(20 * var(--u))); }
  .knob-float{ left:calc(644 * var(--u)); top:calc(1218 * var(--u)); transform-origin:calc(-264 * var(--u)) calc(-43 * var(--u)); }
  .headline{ left:calc(34 * var(--u)); top:calc(128 * var(--u)); font-size:calc(62 * var(--u)); line-height:calc(70 * var(--u)); }
  :lang(en) .headline{ width:calc(692 * var(--u)); font-size:calc(46 * var(--u)); line-height:calc(50 * var(--u)); }
  :lang(en) .lede{ width:calc(560 * var(--u)); font-size:calc(17 * var(--u)); line-height:calc(23 * var(--u)); }
  .card--about h2{ width:calc(380 * var(--u)); }
  .card.card--stove .label{ top:calc(45 * var(--u)); }
  .card.card--stove h2{ top:calc(45 * var(--u)); width:calc(300 * var(--u)); font-size:calc(26 * var(--u)); line-height:calc(31 * var(--u)); }
  :lang(en) .card.card--stove h2{ font-size:calc(22 * var(--u)); line-height:calc(26 * var(--u)); }
  /* the dock floats over the page now, so the one-column stage starts below it */
  .stage{ margin-top:56px; }
  /* the stage scales by design units; on small phones floor the reading sizes */
  .stage .lede, :lang(en) .stage .lede{ width:calc(692 * var(--u)); font-size:max(13px, calc(19 * var(--u))); line-height:1.5; }
  .stage .pill-clip{ top:calc(500 * var(--u)); }
  .stage .stat--a, .stage .stat--b{ top:calc(600 * var(--u)); }
  .stat dt, .stat dd{ font-size:max(11px, calc(16 * var(--u))); line-height:1.45; }
  .card .label{ font-size:max(11px, calc(15.5 * var(--u))); }
  .card.card--about h2, .card.card--stove h2, :lang(en) .card.card--stove h2, :lang(en) .card h2{ font-size:max(14px, calc(26 * var(--u))); line-height:1.25; }
  .card.card--stove h2{ width:calc(330 * var(--u)); }
  :lang(en) .card h2{ font-size:calc(26 * var(--u)); line-height:calc(29 * var(--u)); }
  .lede{ left:calc(34 * var(--u)); top:calc(288 * var(--u)); width:calc(400 * var(--u)); font-size:calc(19 * var(--u)); line-height:calc(27 * var(--u)); }
  /* one column: the frame keeps its aspect, re-anchored to the left rail */
  .pill-clip{
    left:calc(34 * var(--u)); top:calc(430 * var(--u));
    width:calc(506 * var(--u)); height:calc(334 * var(--u));
    margin:calc(-167 * var(--u)) 0 0 calc(-79 * var(--u));
    clip-path:inset(calc(93 * var(--u)) calc(74 * var(--u)) calc(1 * var(--u)) calc(74 * var(--u)) round calc(76 * var(--u)));
  }
  .liquid-stage--explore{ --h:calc(74.4152 * var(--u)); }
  .play-wrap{ display:none; }

  .stat{ gap:calc(11 * var(--u)); }
  .stat .mark{ width:calc(36 * var(--u)); height:calc(36 * var(--u)); }
  .stat dt{ font-size:calc(16 * var(--u)); line-height:calc(22 * var(--u)); }
  .stat dd{ font-size:calc(16.5 * var(--u)); line-height:calc(24 * var(--u)); }
  .stat--a{ left:calc(34 * var(--u));  top:calc(540 * var(--u)); }
  .stat--b{ left:calc(396 * var(--u)); top:calc(540 * var(--u)); }

  .card{ border-radius:calc(40 * var(--u)); }
  .card--about{ left:calc(34 * var(--u)); top:calc(1050 * var(--u)); width:calc(692 * var(--u)); height:calc(250 * var(--u)); }
  .card--about .label{ top:calc(96 * var(--u)); }
  .card--about h2{ top:calc(124 * var(--u)); width:calc(400 * var(--u)); font-size:calc(32 * var(--u)); line-height:calc(36 * var(--u)); }
  .card--stove{ left:calc(34 * var(--u)); top:calc(1324 * var(--u)); width:calc(692 * var(--u)); height:calc(268 * var(--u)); }
  .card--stove h2{ font-size:calc(32 * var(--u)); }
  /* one column: both plates become a thumbnail on the card's outer edge,
     the Ethos one still anchored to the top */
  .card--stove figure{ left:auto; right:calc(16 * var(--u)); bottom:calc(16 * var(--u)); width:calc(300 * var(--u)); height:calc(150 * var(--u)); }
  .card--about figure{ left:auto; right:calc(16 * var(--u)); top:calc(16 * var(--u)); width:calc(224 * var(--u)); height:calc(218 * var(--u)); }
  .card .knob{ right:calc(24 * var(--u)); bottom:calc(24 * var(--u)); }
  .card--stove .knob{ right:calc(30 * var(--u)); bottom:calc(30 * var(--u)); }

  .ghost{ font-size:calc(118 * var(--u)); letter-spacing:calc(9 * var(--u)); bottom:calc(660 * var(--u)); left:calc(-4 * var(--u)); }
}



/* ── page furniture kept from the earlier sections ───────────────────── */
.skip-link{ position:fixed; left:16px; top:-80px; z-index:100; padding:12px 20px; background:var(--card); color:var(--card-ink); border-radius:10px; }
.skip-link:focus{ top:12px; }
.text-link{ display:inline-flex; align-items:center; gap:10px; padding:6px 0; border:0; background:none; cursor:pointer; font:inherit; font-size:14px; text-decoration:none; }
.text-link svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.eyebrow{ font-size:13px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-faint); margin-bottom:14px; }

/* the submit button is the hero's liquid metal at form size; the clip keeps
   its bloom canvas from catching clicks meant for its neighbours */
.submit-clip{ position:relative; display:inline-grid; place-items:center; clip-path:inset(-34px -46px round 60px); }
.liquid-stage--submit{ --h:52px; --pad:calc(300 * var(--lu)); margin:calc(-1 * var(--pad)); pointer-events:none; }
.liquid-stage--submit .liquid-button{ pointer-events:auto; }
.liquid-button--submit{ padding:0 calc(230 * var(--lu)); font-size:calc(150 * var(--lu)); }
.liquid-button--submit:disabled{ opacity:.6; cursor:wait; }
/* no WebGL2: the liquid buttons keep their glass plate and a lit edge */
.liquid-off .liquid-plate{ background:linear-gradient(180deg, rgba(var(--fg-rgb),.16), rgba(var(--fg-rgb),.03) 50%), rgba(var(--glass2-rgb),.62); box-shadow:inset 0 0 0 1px rgba(var(--fg-rgb),.32), 0 10px 24px rgba(0,0,0,.3); }

/* product dialog: a paper card over a dimmed page */
dialog{ width:min(640px, calc(100% - 32px)); max-height:calc(100dvh - 40px); margin:auto; border:0; border-radius:34px; padding:40px; background:var(--card); color:#555a50;
  box-shadow:0 40px 90px rgba(var(--shadow-rgb),.5); }
dialog::backdrop{ background:rgba(var(--shadow-rgb),.6); }
dialog .eyebrow{ color:var(--card-label); }
dialog h2{ font-size:28px; font-weight:400; color:var(--card-ink); margin-bottom:18px; padding-right:24px; }
dialog ul{ padding-left:20px; margin:16px 0; line-height:1.9; }
dialog .form-note{ font-size:12px; color:var(--card-label); }
dialog .text-link{ margin-top:22px; color:var(--card-ink); border-bottom:1px solid rgba(var(--fg-rgb),.3); }
.dialog-close{ position:absolute; top:14px; right:14px; width:42px; height:42px; border:0; border-radius:50%; background:var(--surface-2); color:var(--ink); font-size:26px; line-height:1; cursor:pointer; box-shadow:0 6px 16px rgba(var(--shadow-rgb),.14); }
@media (max-width:700px){ dialog{ padding:30px 24px; } }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

/* ══════════════════════════════════════════════════════════════════════
   首屏之后 · 滚动叙事（story.js）
   设计单位与首屏相同：舞台内的 .frame 为 1600 × 880u，栏线位于 405 / 748 / 1091。
   1. 共用材质（不分模式）  2. 无脚本 / 减少动态效果时的纵向排列
   3. 桌面吸顶叙事坐标      4. 窄屏吸顶叙事
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1 · shared material ─────────────────────────────────────────────── */
.story{
  /* the frame always fits the viewport, whichever side is short */
  --u: min(calc((100vw - 64px) / 1508), calc(100svh / 900), calc(1520px / 1508));
  --acc:var(--mint); --acc-soft:rgba(var(--accent-rgb),.55);
  position:relative;
}
.story-stage{ position:relative; isolation:isolate; overflow:hidden; background:transparent; }
/* one backdrop for the whole page — the hero's own colour and floor light,
   fixed to the window, under the shared three.js scene */
body::before{
  content:''; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(72% 44% at 50% 117%, rgba(var(--accent-rgb),.10) 0%, rgba(var(--accent-rgb),.04) 42%, rgba(var(--accent-rgb),0) 80%),
    radial-gradient(64% 52% at 44% 96%, rgba(var(--accent-rgb),.055) 0%, rgba(var(--accent-rgb),0) 70%),
    radial-gradient(70% 60% at 92% 8%,  rgba(var(--glass-rgb),.55) 0%, rgba(var(--glass-rgb),0) 68%),
    var(--bg-0);
}
/* copy sits over the living scene: a soft shade under the text keeps it legible */
.frame{ position:relative; z-index:1; }
.ghost--story{ font-size:calc(176 * var(--u)); letter-spacing:calc(18 * var(--u)); }

.kicker{ display:flex; align-items:center; gap:12px; font-size:var(--fs-xs); letter-spacing:.24em; color:var(--ink-faint); }
.kicker-num{ color:var(--acc); letter-spacing:.14em; }
.story-title{ font-size:var(--fs-5xl); line-height:1.28; font-weight:300; letter-spacing:calc(1 * var(--u)); color:var(--ink); }
.story-lede{ font-size:var(--fs-base); line-height:1.55; font-weight:400; color:var(--ink-soft); }
.beat-num{ display:block; font-size:calc(190 * var(--u)); line-height:.8; font-weight:200; letter-spacing:-.02em; color:transparent; -webkit-text-stroke:1px rgba(var(--fg-rgb),.28); }
.beat-link{ display:inline-flex; align-items:center; gap:16px; color:var(--ink); text-decoration:none; }
.beat-title{ font-size:var(--fs-5xl); line-height:1.2; font-weight:300; letter-spacing:calc(.5 * var(--u)); color:var(--ink); }
.beat-lede{ font-size:var(--fs-base); line-height:1.65; font-weight:400; color:var(--ink-soft); }

/* the hero's round white knob */
.nob{ flex:none; display:grid; place-items:center; width:max(40px, calc(58 * var(--u))); height:max(40px, calc(58 * var(--u))); border-radius:50%; border:0; cursor:pointer;
  background:var(--surface-2); color:var(--mint); box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.35), 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(0,0,0,.3);
  transition:transform .5s var(--ease-out), background .3s var(--ease); }
.nob svg{ width:max(15px, calc(19 * var(--u))); height:max(15px, calc(19 * var(--u))); fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.beat-link:hover .nob, .nob:hover{ transform:scale(1.1) rotate(8deg); background:var(--accent); color:var(--bg-0); }

/* the hero's paper card, with a photo window ("win") */
.sheet{ position:relative; background:var(--card); color:var(--card-ink); border-radius:40px;
  box-shadow:0 calc(30 * var(--u)) calc(70 * var(--u)) rgba(var(--shadow-rgb),.30); transition:box-shadow .8s var(--ease); }
.sheet:hover{ box-shadow:0 calc(38 * var(--u)) calc(84 * var(--u)) rgba(var(--shadow-rgb),.36); }
.sheet-label{ font-size:var(--fs-sm); font-weight:400; color:var(--card-label); }
.sheet-title{ font-size:var(--fs-2xl); line-height:1.3; font-weight:400; letter-spacing:calc(-.3 * var(--u)); color:var(--card-ink); }
.sheet-title span{ display:block; }
.win{ position:relative; overflow:hidden; isolation:isolate; border-radius:28px; margin:0; }
.win--light{ background:var(--surface-2); }
.win--dark{ background:var(--bg-1); }
.win--wire{ background:var(--surface); }
.win-media{ position:absolute; inset:calc(-9 * var(--u)); z-index:1; display:block;
  transform:perspective(900px) translate3d(calc(var(--px,0) * -10px), calc(var(--py,0) * -6px), 0) rotateY(calc(var(--px,0) * -1.4deg)) rotateX(calc(var(--py,0) * .9deg)); }
.win-media img{ position:absolute; inset:0; width:100%; height:100%; display:block; transition:transform 1.25s var(--ease-out), opacity .9s var(--ease); }
.win--light .win-media{ background:var(--surface-2); }
.win--light .win-media img{ object-fit:contain; padding:32px; mix-blend-mode:multiply; }
.win--dark .win-media img{ object-fit:contain; }
.sheet:hover .win-media img{ transform:scale(1.04); }
/* the gateway turns to show its terminal side as the chapter plays */
.pixel-reveal{ position:absolute; inset:0; z-index:3; width:100%; height:100%; pointer-events:none; opacity:0; }
.tx::after{ content:''; position:absolute; z-index:2; top:0; bottom:0; width:24%; left:-12%; opacity:0; pointer-events:none; filter:blur(2px);
  background:linear-gradient(90deg, transparent, rgba(var(--accent-rgb),.18) 42%, rgba(var(--fg-rgb),.7) 54%, transparent); }
.win--light.tx::after{ background:linear-gradient(90deg, transparent, rgba(var(--accent-rgb),.14) 42%, rgba(var(--accent-rgb),.45) 54%, transparent); }
.story.on .tx .win-media{ clip-path:inset(0 100% 0 0); }
.story.on .tx.tx-run .win-media{ animation:tx-cut 1.45s steps(12, end) var(--txd, 0ms) both; }
.story.on .tx.tx-run::after{ animation:tx-scan 1.45s steps(12, end) var(--txd, 0ms) both; }
.story.on .tx[data-tx="done"] .win-media{ clip-path:none; animation:none; }
@keyframes tx-cut{ from{ clip-path:inset(0 100% 0 0); } to{ clip-path:inset(0 0 0 0); } }
@keyframes tx-scan{ 0%{ left:-12%; opacity:0; } 10%{ opacity:.8; } 88%{ opacity:.6; } 100%{ left:88%; opacity:0; } }

/* hero-style stat with a dotted mark */
.pstats{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:20px 24px; }
.pstats > div{ display:grid; grid-template-columns:calc(32 * var(--u)) 1fr; column-gap:12px; align-items:start; }
.pstats .mark{ grid-row:span 2; width:calc(32 * var(--u)); height:calc(32 * var(--u)); min-width:22px; min-height:22px; margin-top:2px; color:rgba(var(--fg-rgb),.34);
  background:currentColor; -webkit-mask:var(--m) center / contain no-repeat; mask:var(--m) center / contain no-repeat; }
.m-dots{ --m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round'%3E%3Ccircle cx='15' cy='15' r='10.5' stroke-dasharray='0.6 3.6'/%3E%3Ccircle cx='15' cy='15' r='5.6' stroke-dasharray='0.6 3.2'/%3E%3Ccircle cx='15' cy='15' r='1.1' fill='%23000' stroke='none'/%3E%3C/svg%3E"); }
.m-sun{ --m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M15 3.5v5M15 21.5v5M3.5 15h5M21.5 15h5M6.9 6.9l3.5 3.5M19.6 19.6l3.5 3.5M23.1 6.9l-3.5 3.5M10.4 19.6l-3.5 3.5'/%3E%3Ccircle cx='15' cy='15' r='3.6'/%3E%3C/svg%3E"); }
.m-wave{ --m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M3 15h4l2.5-7 4 14 4-14 4 14 2.5-7h3'/%3E%3C/svg%3E"); }
.m-cross{ --m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' fill='none' stroke='%23000' stroke-width='1.2' stroke-linecap='round'%3E%3Ccircle cx='15' cy='15' r='9.5' stroke-dasharray='0.6 3.4'/%3E%3Cpath d='M15 2.5v7M15 20.5v7M2.5 15h7M20.5 15h7'/%3E%3C/svg%3E"); }
.pstats dt{ font-size:var(--fs-xs); line-height:1.4; font-weight:400; color:var(--ink-soft); }
.pstats dd{ font-size:var(--fs-sm); line-height:1.4; font-weight:600; color:var(--ink); }

.story .text-link{ display:inline-flex; align-items:center; gap:10px; padding:6px 0; border:0; background:none; cursor:pointer; color:var(--ink); font:inherit;
  font-size:var(--fs-sm); letter-spacing:.06em; text-decoration:none; border-bottom:1px solid rgba(var(--fg-rgb),.28); }
.story .text-link:hover{ border-bottom-color:rgba(var(--fg-rgb),.8); }
.story .text-link svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }

/* line drawings (capabilities): every group reads its beat's --t */
.wire{ position:absolute; left:50%; top:50%; width:auto; height:86%; aspect-ratio:1; transform:translate(-50%, -50%) perspective(900px) translate3d(calc(var(--px,0) * -8px), calc(var(--py,0) * -5px), 0) rotateY(calc(var(--px,0) * -2deg)); overflow:visible; }
.wire g{ fill:none; stroke:rgba(var(--fg-rgb),.8); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.wire .faint{ stroke:rgba(var(--fg-rgb),.09); }
.wire .draw{ --w:clamp(0, (var(--t,1) - var(--a)) / (var(--b) - var(--a)), 1); }
.wire .draw > *{ stroke-dasharray:1 1; stroke-dashoffset:calc(1 - var(--w)); }
.wire .net{ stroke:var(--acc); }
.wire .dash{ stroke-width:1.1; stroke:var(--acc-soft); }
.wire .pop > *{ fill:var(--surface); transform-box:fill-box; transform-origin:center; transform:scale(clamp(0, (var(--t,1) - var(--a)) * 5, 1)); }
.wire .pop.hot > *{ fill:var(--acc); stroke:var(--acc); }
.wire .pins{ opacity:clamp(0, (var(--t,1) - var(--a)) * 4, 1); stroke:rgba(var(--fg-rgb),.45); }
.vis-iot .waves circle{ stroke:var(--acc-soft); transform-box:fill-box; transform-origin:center; opacity:0; animation:story-wave 3.2s cubic-bezier(.2,.6,.3,1) infinite; animation-delay:calc(var(--k) * -3.2s); }
@keyframes story-wave{ 0%{ transform:scale(.6); opacity:.9; } 100%{ transform:scale(5.4); opacity:0; } }
.vis-ind .sync path{ stroke-dasharray:1 1; stroke-dashoffset:calc(1 - clamp(0, var(--t,1) * 2.2, 1)); }
.vis-ind .sync .drift{ stroke:var(--acc); transform:translateX(calc((1 - clamp(0, (var(--t,1) - .3) * 2.4, 1)) * 40px)); }
.vis-ind .target{ --w:clamp(0, (var(--t,1) - var(--a)) * 2.5, 1); opacity:var(--w); }
.vis-ind .ring{ transform-box:fill-box; transform-origin:center; transform:scale(calc(1.7 - .7 * var(--w))); }
.vis-ind .r3{ stroke:var(--acc); }
.vis-sw .layer{ --w:clamp(0, var(--t,1) * 2.2, 1); }
.vis-sw .layer path{ fill:rgba(var(--fg-rgb),.05); }
.vis-sw .l1{ transform:translateY(calc(var(--w) * -92px)); stroke:var(--acc); }
.vis-sw .l2{ transform:translateY(calc(var(--w) * -46px)); }
.vis-sw .l1 path{ fill:rgba(var(--accent-rgb),.12); }
.vis-sw .bars{ --w:clamp(0, (var(--t,1) - var(--a)) * 2.6, 1); stroke:none; }
.vis-sw .bars rect{ fill:var(--acc-soft); transform-box:fill-box; transform-origin:50% 100%; transform:scaleY(calc(var(--h) * var(--w))); }

/* products intro: a filmstrip of every device, in hero-card miniature */
.filmstrip{ list-style:none; display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:12px; }
.filmstrip button{ display:block; width:100%; padding:8px 8px 12px; border:0; border-radius:24px; cursor:pointer;
  background:var(--card); color:var(--card-ink); text-align:left; font:inherit; box-shadow:0 calc(18 * var(--u)) calc(40 * var(--u)) rgba(var(--shadow-rgb),.28);
  transition:transform .6s var(--ease-out), box-shadow .6s var(--ease); }
.filmstrip button:hover{ transform:translateY(calc(-6 * var(--u))); box-shadow:0 calc(26 * var(--u)) calc(52 * var(--u)) rgba(var(--shadow-rgb),.34); }
.thumb{ position:relative; display:block; aspect-ratio:1 / .86; border-radius:20px; overflow:hidden; isolation:isolate; }
.thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.thumb.win--light img{ padding:8px; mix-blend-mode:multiply; }
.thumb.win--dark img{ object-fit:cover; }
.filmstrip button > span:last-child{ display:block; margin-top:8px; padding:0 calc(4 * var(--u)); font-size:var(--fs-xs); line-height:1.35; color:var(--card-ink); }

/* process timeline */
.step-node{ display:block; width:calc(14 * var(--u)); height:calc(14 * var(--u)); min-width:10px; min-height:10px; border-radius:50%; border:1px solid rgba(var(--fg-rgb),.4); background:var(--bg-1);
  transition:background .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease); }
.step h3{ font-size:var(--fs-3xl); font-weight:300; line-height:1.3; color:var(--ink); }
.step p{ font-size:var(--fs-base); line-height:1.65; color:var(--ink-soft); }
.step .beat-num{ font-size:calc(96 * var(--u)); }

/* contact form on paper */
.contact-sheet{ padding:36px; }
.contact-sheet label{ display:block; font-size:var(--fs-sm); color:var(--card-label); }
.contact-sheet .required{ color:var(--gold); }
.contact-sheet input, .contact-sheet textarea{ display:block; width:100%; margin-top:8px; min-height:46px; padding:12px 16px; border-radius:16px;
  border:1px solid var(--line); background:rgba(var(--fg-rgb),.045); color:var(--card-ink); font:inherit; font-size:var(--fs-sm); }
.contact-sheet textarea{ resize:vertical; min-height:120px; }
.contact-sheet input::placeholder, .contact-sheet textarea::placeholder{ color:rgba(var(--fg-rgb),.38); opacity:1; }
.contact-sheet input:focus-visible, .contact-sheet textarea:focus-visible{ outline:2px solid var(--mint); outline-offset:2px; }
.contact-sheet .form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px 20px; }
.contact-sheet .requirement-label{ grid-column:2; grid-row:1 / 5; display:flex; flex-direction:column; }
.contact-sheet .requirement-label textarea{ flex:1; }
.contact-sheet .form-actions{ display:flex; align-items:center; flex-wrap:wrap; gap:28px; margin-top:24px; }
.contact-sheet .text-link{ color:var(--card-ink); border-bottom-color:rgba(var(--fg-rgb),.3); }
.contact-sheet .text-link:hover{ border-bottom-color:rgba(var(--shadow-rgb),.8); }
.contact-sheet .form-note{ font-size:12px; color:var(--card-label); margin-top:18px; }
.contact-sheet #form-status{ font-size:14px; color:var(--card-ink); margin-top:8px; overflow-wrap:anywhere; }
.contact-sheet a:focus-visible, .contact-sheet button:focus-visible{ outline-color:var(--mint); }
.site-footer{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; padding-top:20px; border-top:1px solid var(--rule); color:var(--ink-faint); }
.site-footer nav{ display:flex; gap:28px; font-size:13px; }
.site-footer a{ color:var(--ink-soft); text-decoration:none; }
.site-footer nav a:hover{ color:var(--ink); }
.site-footer small{ font-size:12px; }
.brand{ display:inline-flex; align-items:center; gap:10px; color:var(--ink); font-weight:500; letter-spacing:.2em; text-decoration:none; }
.brand img{ border-radius:6px; background:#eef1e7; padding:3px; }

/* rails: one bar per chapter along the foot of the frame */
.story-rail{ display:none; }

/* ── 2 · plain stacked layout (no JS, reduced motion) ────────────────── */
.story:not(.on) .frame{ width:min(1200px, calc(100% - 48px)); margin:0 auto; padding:clamp(90px, 10vw, 140px) 0 60px; display:grid; gap:clamp(48px, 6vw, 90px); }
.story:not(.on) .ghost{ display:none; }
.story:not(.on) .beat{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:18px 48px; align-content:start; }
.story:not(.on) .beat > :not(.sheet){ grid-column:1; }
.story:not(.on) .beat > .text-link{ justify-self:start; }
.story:not(.on) .beat > .sheet{ grid-column:2; grid-row:1 / span 8; }
.story:not(.on) header.beat, .story:not(.on) .step, .story:not(.on) .contact-head{ display:block; }
.story:not(.on) header.beat > * + *, .story:not(.on) .step > * + *{ margin-top:16px; }
.story:not(.on) .beat-num{ font-size:72px; }
.story:not(.on) .sheet{ padding:14px 14px 30px; }
.story:not(.on) .win{ aspect-ratio:4 / 3; }
.story:not(.on) .sheet-label{ margin:22px 24px 6px; }
.story:not(.on) .sheet-title{ margin:0 24px; }
.story:not(.on) .nob--sheet{ position:absolute; right:22px; bottom:22px; }
.story:not(.on) .filmstrip{ grid-template-columns:repeat(3, minmax(0,1fr)); margin-top:28px; }
.story:not(.on) .steps-line{ list-style:none; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:24px; }
.story:not(.on) .timeline{ display:none; }
.story:not(.on) .contact-sheet{ grid-column:auto; }
.story:not(.on) .contact-sheet.beat{ display:block; }
.story--contact:not(.on) .frame{ grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); }
.story--contact:not(.on) .site-footer{ grid-column:1 / -1; }
@media (max-width:900px){
  .story:not(.on) .beat, .story--contact:not(.on) .frame{ grid-template-columns:1fr; }
  .story:not(.on) .beat > .sheet{ grid-column:1; grid-row:auto; }
  .story:not(.on) .steps-line, .story:not(.on) .filmstrip{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .contact-sheet .form-grid{ grid-template-columns:1fr; }
  .contact-sheet .requirement-label{ grid-column:auto; grid-row:auto; }
}

/* ── 3 · pinned stories ──────────────────────────────────────────────── */
.story.on .story-track{ height:calc((var(--steps) * var(--pace, 1) + 1) * 100svh); }
/* products: about half a screen of scrolling per chapter */
.story--prods{ --pace:.5; }
.story.on .story-stage{ position:sticky; top:0; height:100svh; }
.story.on .frame{ position:absolute; left:50%; top:0; width:calc(1600 * var(--u)); height:calc(880 * var(--u)); margin:0 0 0 calc(-800 * var(--u)); }
/* products & solutions: anchored to the top, pulled up so its first line
   (the kicker, y 150 of the frame) sits 112px from the top of the window */
@media (min-width:901px){ .story--prods.on .frame{ top:calc(112px - 150 * var(--u)); } }
.story.on .beat{ position:absolute; inset:0; pointer-events:none; }
.story.on .beat[data-state="active"]{ pointer-events:auto; }
.story.on .beat > *{ position:absolute; }

/* chapter text arrives line by line behind a mask and leaves upward,
   the same wipe the hero uses for its entrance */
.story.on .beat :is(.kicker, .beat-num, .beat-link, .prod-name, .beat-lede, .pstats > div, .text-link, h3, p){
  opacity:0; transform:translateY(calc(40 * var(--u))); clip-path:inset(0 0 100% 0);
  transition:opacity .7s var(--ease), transform 1.05s var(--ease-out), clip-path 1.05s var(--ease-out); }
.story.on .beat[data-state="active"] :is(.kicker, .beat-num, .beat-link, .prod-name, .beat-lede, .pstats > div, .text-link, h3, p){ opacity:1; transform:none; clip-path:inset(-10% -5% -30% -5%); }
.story.on .beat[data-state="after"] :is(.kicker, .beat-num, .beat-link, .prod-name, .beat-lede, .pstats > div, .text-link, h3, p){ transform:translateY(calc(-40 * var(--u))); clip-path:inset(100% 0 0 0); transition-delay:0s !important; }
.story.on .beat .beat-num{ transition-delay:.04s; } .story.on .beat :is(.beat-link, .prod-name){ transition-delay:.08s; }
.story.on .beat .beat-lede{ transition-delay:.16s; } .story.on .beat .text-link{ transition-delay:.4s; }
.story.on .beat .pstats > div:nth-child(1){ transition-delay:.22s; } .story.on .beat .pstats > div:nth-child(2){ transition-delay:.27s; }
.story.on .beat .pstats > div:nth-child(3){ transition-delay:.32s; } .story.on .beat .pstats > div:nth-child(4){ transition-delay:.37s; }
.story.on .beat .pstats > div:nth-child(5){ transition-delay:.42s; } .story.on .beat .pstats > div:nth-child(6){ transition-delay:.47s; }
.story.on .beat .sheet :is(h3, p), .story.on .beat .beat-link h3{ opacity:1; transform:none; clip-path:none; transition:none; }
.story.on .beat .pstats{ position:absolute; }
.story.on .beat .pstats > div{ position:relative; }
.story.on .beat > .sheet{ opacity:0; transform:translateY(calc(70 * var(--u))) scale(.97); transition:opacity .9s var(--ease), transform 1.2s var(--ease-out); }
.story.on .beat[data-state="active"] > .sheet{ opacity:1; transform:none; transition-delay:.06s; }
.story.on .beat[data-state="after"] > .sheet{ opacity:0; transform:translateY(calc(-70 * var(--u))) scale(1.02); transition-delay:0s; }
.story.on .sheet > *{ position:absolute; }

.story.on .story-rail{ display:flex; gap:16px; position:absolute; z-index:5; left:calc(46 * var(--u)); top:calc(812 * var(--u)); }
.story.on .story-rail span{ display:flex; align-items:center; gap:8px; cursor:pointer; padding:6px 0; }
.story.on .story-rail b{ font-size:var(--fs-xs); font-weight:400; letter-spacing:.14em; color:var(--ink-faint); transition:color .4s var(--ease); }
.story.on .story-rail span.is-on b{ color:var(--ink); }
.story.on .story-rail i{ position:relative; display:block; width:calc(56 * var(--u)); height:2px; background:rgba(var(--fg-rgb),.14); border-radius:2px; overflow:hidden; }
.story.on .story-rail i::after{ content:''; position:absolute; inset:0; background:var(--acc); transform-origin:0 50%; transform:scaleX(var(--f, 0)); }

@media (min-width:901px){

  /* products */
  .story--prods.on .prods-intro{ transition:opacity .8s var(--ease), transform 1s var(--ease-out), filter .8s var(--ease); }
  .story--prods.on .prods-intro[data-state="after"]{ opacity:0; transform:translateY(calc(-70 * var(--u))); filter:blur(6px); }
  .story--prods.on .prods-intro .kicker{ left:calc(46 * var(--u)); top:calc(150 * var(--u)); }
  .story--prods.on .prods-intro .story-title{ left:calc(46 * var(--u)); top:calc(186 * var(--u)); width:calc(680 * var(--u)); }
  .story--prods.on .prods-intro .story-lede{ left:calc(748 * var(--u)); top:calc(192 * var(--u)); width:calc(310 * var(--u)); }
  .story--prods.on .prods-cta{ left:calc(1091 * var(--u)); top:calc(196 * var(--u)); }
  .story--prods.on .filmstrip{ left:calc(46 * var(--u)); right:calc(46 * var(--u)); top:calc(420 * var(--u)); }
  .story--prods.on .filmstrip li{ opacity:0; transform:translateY(calc(60 * var(--u)));
    transition:opacity .6s var(--ease), transform .8s var(--ease-out); }
  /* the strip plays in on its own once the intro is on stage, one thumbnail after another */
  .story--prods.on .prods-intro[data-state="active"] .filmstrip li{ opacity:1; transform:none; transition-delay:calc(.3s + var(--i) * .09s); }
  .story--prods.on .prod .kicker{ left:calc(46 * var(--u)); top:calc(132 * var(--u)); }
  .story--prods.on .prod .prod-name{ left:calc(46 * var(--u)); top:calc(166 * var(--u)); width:calc(640 * var(--u)); }
  :lang(en) .story--prods.on .prod .prod-name{ font-size:var(--fs-4xl); }
  .story--prods.on .prod .beat-lede{ left:calc(46 * var(--u)); top:calc(310 * var(--u)); width:calc(560 * var(--u)); }
  :lang(en) .story--prods.on .prod .beat-lede{ font-size:var(--fs-sm); }
  .story--prods.on .prod .pstats{ left:calc(46 * var(--u)); top:calc(500 * var(--u)); width:calc(620 * var(--u)); }
  .story--prods.on .prod .text-link{ left:calc(46 * var(--u)); top:calc(690 * var(--u)); }
  .story--prods.on .prod-sheet{ left:calc(748 * var(--u)); top:calc(104 * var(--u)); width:calc(807 * var(--u)); height:calc(680 * var(--u)); }
  .story--prods.on .prod-sheet .win{ left:calc(14 * var(--u)); right:calc(14 * var(--u)); top:calc(14 * var(--u)); height:calc(536 * var(--u)); }
  .story--prods.on .prod-sheet .sheet-label{ left:calc(38 * var(--u)); top:calc(574 * var(--u)); }
  .story--prods.on .prod-sheet .sheet-title{ left:calc(38 * var(--u)); top:calc(604 * var(--u)); width:calc(720 * var(--u)); font-size:var(--fs-xl); }


  /* contact: the hero's composition — headline left, paper card right */
  .story--contact.on .contact-head :is(.kicker, h2, p){ transition-delay:.05s; }
  .story--contact.on .contact-head .kicker{ left:calc(46 * var(--u)); top:calc(170 * var(--u)); }
  .story--contact.on .contact-head h2{ left:calc(46 * var(--u)); top:calc(206 * var(--u)); width:calc(640 * var(--u)); }
  .story--contact.on .contact-head p{ left:calc(46 * var(--u)); top:calc(370 * var(--u)); width:calc(360 * var(--u)); }
  .story--contact.on .contact-sheet{ position:absolute; inset:auto; left:calc(748 * var(--u)); top:calc(120 * var(--u)); width:calc(807 * var(--u));
    opacity:0; transform:translateY(calc(70 * var(--u))) scale(.97); transition:opacity .9s var(--ease), transform 1.2s var(--ease-out); }
  .story--contact.on .contact-sheet[data-state="active"]{ opacity:1; transform:none; transition-delay:.12s; }
  .story--contact.on .contact-sheet > *, .story--contact.on .contact-sheet :is(p, h3){ position:static; opacity:1; transform:none; clip-path:none; transition:none; }
  .story--contact.on .contact-sheet .form-note{ margin-top:18px; }
  .story--contact.on .site-footer{ position:absolute; left:calc(46 * var(--u)); right:calc(46 * var(--u)); top:calc(812 * var(--u)); }
}

/* ── 4 · pinned stories on narrow screens: every beat is a column ────── */
@media (max-width:900px){
  .story{ --u:calc(100vw / 760); }
  .story.on .frame{ left:0; top:0; margin:0; width:100%; height:100%; }
  .ghost--story{ font-size:calc(150 * var(--u)); letter-spacing:calc(8 * var(--u)); }
  .story.on .beat{ display:flex; flex-direction:column; gap:12px; padding:max(92px, 13svh) 24px 64px; }
  .story.on .beat > *{ position:relative; flex:none; }
  .story.on .beat-num{ font-size:clamp(54px, 15vw, 96px); }
  .story.on .beat > .sheet{ order:-1; flex:none; height:min(36svh, 340px); margin-bottom:8px; }
  .story.on .sheet .win{ left:10px; right:10px; top:10px; bottom:58px; border-radius:24px; }
  .story.on .sheet .sheet-label{ left:22px; bottom:34px; }
  .story.on .sheet .sheet-title{ left:22px; right:70px; bottom:12px; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .story.on .sheet .sheet-title span{ display:inline; }
  .story.on .sheet .sheet-title span + span::before{ content:' · '; }
  .story.on .nob--sheet{ right:12px; bottom:12px; width:40px; height:40px; }
  .story.on .beat-lede{ display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; }
  .story.on .beat .pstats{ position:relative; gap:10px 14px; }
  .story.on .beat .text-link{ align-self:flex-start; }
  .story .ghost{ bottom:-14px; left:-4px; }
  .story.on .pstats .mark{ min-width:18px; min-height:18px; }
  .story.on .pstats dt{ font-size:11.5px; } .story.on .pstats dd{ font-size:12.5px; }
  .story.on .story-rail{ left:24px; right:24px; top:auto; bottom:22px; justify-content:center; flex-wrap:wrap; gap:8px 12px; }
  .story.on .story-rail i{ width:22px; }


  .story--prods.on .prods-intro{ transition:opacity .8s var(--ease), transform 1s var(--ease-out); }
  .story--prods.on .prods-intro[data-state="after"]{ opacity:0; transform:translateY(-40px); }
  .story--prods.on .filmstrip{ grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; margin-top:6px; }
  .story--prods.on .filmstrip button{ padding:5px 5px 8px; border-radius:14px; }
  .story--prods.on .thumb{ border-radius:10px; }
  .story--prods.on .filmstrip button > span:last-child{ font-size:10px; margin-top:5px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .story--prods.on .filmstrip li{ opacity:0; transform:translateY(24px); transition:opacity .6s var(--ease), transform .8s var(--ease-out); }
  .story--prods.on .prods-intro[data-state="active"] .filmstrip li{ opacity:1; transform:none; transition-delay:calc(.25s + var(--i) * .08s); }
  .story--prods.on .prod .beat-title{ font-size:clamp(22px, 6.4vw, 34px); }


  /* the form needs the keyboard and room to scroll: contact is not pinned here */
  .story--contact.on .story-track{ height:auto; }
  .story--contact.on .story-stage{ position:relative; height:auto; }
  .story--contact.on .frame{ position:relative; display:flex; flex-direction:column; gap:28px; padding:110px 20px 40px; }
  .story--contact.on .ghost{ display:none; }
  .story--contact.on .beat{ position:relative; inset:auto; padding:0; }
  .story--contact.on .beat :is(.kicker, h2, p){ opacity:1; transform:none; clip-path:none; }
  .story--contact.on .contact-sheet{ display:block; padding:22px; }
  .story--contact.on .contact-sheet > *{ position:static; }
  .story--contact.on .site-footer{ position:relative; }
}
@media (max-width:900px) and (max-height:700px){
  .story.on .beat{ gap:8px; padding-top:84px; padding-bottom:56px; }
  .story.on .beat > .sheet{ height:min(26svh, 220px); }
  /* the full list is one tap away in the specification dialog */
  .story.on .beat .pstats > div:nth-child(n+3){ display:none; }
  .story.on .story-rail{ bottom:12px; }
  .story.on .beat-lede{ -webkit-line-clamp:3; }
  .story.on .beat-num{ display:none; }
}
@media print{
  .story-track, .story-stage{ height:auto !important; position:static !important; }
  .story-rail, .pixel-reveal{ display:none !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   第二屏 · 核心能力：四项一屏看全（不吸顶、不分步）
   同一舞台单位与栏线；进入视口时卡片依次擦出，线稿绘制一次。
   ══════════════════════════════════════════════════════════════════════ */
@property --t{ syntax:'<number>'; inherits:true; initial-value:1; }
.panel{ --u:min(calc((100vw - 64px) / 1508), calc(1520px / 1508)); --acc:var(--mint); --acc-soft:rgba(var(--accent-rgb),.55);
  position:relative; min-height:100svh; display:grid; align-items:center; overflow:hidden; }
.panel .frame{ position:relative; width:calc(1600 * var(--u)); margin:0 auto; padding:calc(100 * var(--u)) calc(46 * var(--u)) calc(56 * var(--u)); }
.caps-head{ display:grid; grid-template-columns:calc(1045 * var(--u)) 1fr; align-items:end; margin-bottom:24px; }
.caps-head .kicker{ margin-bottom:16px; }
.caps-head .story-lede{ max-width:calc(440 * var(--u)); }
.caps-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; }
/* glass cards: the dock's material, so the cards sit in the scene rather than on it */
.cap-card{ position:relative; display:flex; flex-direction:column; padding:12px 12px 20px;
  border-radius:28px; color:var(--ink);
  /* dark moss panels: deeper than the page, with a glowing green rim and top edge so they lift by contrast, never by turning pale */
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb),0) 6%, rgba(var(--accent-rgb),.9) 50%, rgba(var(--accent-rgb),0) 94%) top / 100% 1px no-repeat,
    radial-gradient(120% 70% at 50% 0%, rgba(var(--accent-rgb),.16), rgba(var(--accent-rgb),0) 60%),
    linear-gradient(180deg, rgba(var(--glass-rgb),.94), rgba(var(--glass2-rgb),.96));
  border:1px solid rgba(var(--accent-rgb),.26);
  box-shadow:0 calc(28 * var(--u)) calc(64 * var(--u)) rgba(var(--shadow-rgb),.55), 0 0 0 1px rgba(0,0,0,.25), 0 0 calc(40 * var(--u)) rgba(var(--accent-rgb),.08), inset 0 1px rgba(var(--fg-rgb),.08);
  transition:border-color .5s var(--ease), background .5s var(--ease), transform .8s var(--ease-out), box-shadow .8s var(--ease); }
.cap-card:hover{ border-color:rgba(var(--accent-rgb),.55); transform:translateY(calc(-6 * var(--u)));
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb),0) 3%, rgba(var(--accent-rgb),1) 50%, rgba(var(--accent-rgb),0) 97%) top / 100% 1px no-repeat,
    radial-gradient(120% 70% at 50% 0%, rgba(var(--accent-rgb),.24), rgba(var(--accent-rgb),0) 62%),
    linear-gradient(180deg, rgba(var(--glass-rgb),.95), rgba(var(--glass2-rgb),.97));
  box-shadow:0 calc(34 * var(--u)) calc(74 * var(--u)) rgba(var(--shadow-rgb),.6), 0 0 0 1px rgba(0,0,0,.25), 0 0 calc(56 * var(--u)) rgba(var(--accent-rgb),.16), inset 0 1px rgba(var(--fg-rgb),.1); }
.cap-vis{ position:relative; height:calc(186 * var(--u)); flex:none; border-radius:20px; overflow:hidden;
  background:radial-gradient(80% 90% at 50% 60%, rgba(var(--accent-rgb),.1), rgba(var(--accent-rgb),0) 70%), rgba(var(--glass2-rgb),.6);
  border:1px solid rgba(var(--accent-rgb),.12); box-shadow:inset 0 2px 10px rgba(0,0,0,.35); }
.cap-vis .cv{ position:absolute; inset:calc(8 * var(--u)); width:calc(100% - 16 * var(--u)); height:calc(100% - 16 * var(--u)); overflow:visible; }
.cap-card > :not(.cap-vis){ margin-inline:calc(22 * var(--u)); }
.cap-num{ margin-top:12px; font-size:var(--fs-xs); letter-spacing:.2em; color:var(--acc); }
.cap-link{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; color:var(--ink); text-decoration:none; }
.cap-link h3{ font-size:var(--fs-2xl); line-height:1.25; font-weight:300; letter-spacing:calc(.2 * var(--u)); }
.cap-link .nob{ width:max(34px, calc(44 * var(--u))); height:max(34px, calc(44 * var(--u))); background:rgba(var(--fg-rgb),.12); color:var(--ink); box-shadow:inset 0 0 0 1px rgba(var(--fg-rgb),.26); }
.cap-link:hover .nob{ background:var(--mint); color:var(--bg-0); box-shadow:0 0 calc(18 * var(--u)) rgba(var(--accent-rgb),.35); }
.cap-desc{ margin-top:12px; font-size:var(--fs-sm); line-height:1.65; color:rgba(var(--fg-rgb),.74); }
.cap-desc + .cap-desc{ margin-top:4px; }
.cap-related{ margin-top:auto; padding-top:12px; display:flex; flex-wrap:wrap; gap:4px 8px; }
.cap-related .sheet-label{ flex-basis:100%; margin-bottom:1.5px; color:rgba(var(--fg-rgb),.55); }
.cap-rel{ border:1px solid rgba(var(--fg-rgb),.24); cursor:pointer; font:inherit; font-size:var(--fs-xs); line-height:1.3; color:var(--ink-soft);
  padding:4px 8px; border-radius:999px; background:rgba(var(--fg-rgb),.05); text-align:left; transition:background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.cap-rel:hover{ background:rgba(var(--accent-rgb),.14); border-color:rgba(var(--accent-rgb),.45); color:var(--ink); }
.cap-rel:focus-visible, .cap-link:focus-visible{ outline:2px solid rgba(var(--fg-rgb),.85); outline-offset:3px; }

/* English runs longer: a shorter diagram window and slightly tighter text keep the row on one screen */
:lang(en) .cap-vis{ height:calc(142 * var(--u)); }
:lang(en) .cap-link h3{ font-size:var(--fs-xl); }
:lang(en) .cap-desc{ font-size:var(--fs-sm); line-height:1.5; }
:lang(en) .cap-rel{ font-size:var(--fs-xs); }

/* the illustrations: the 3D scene's wireframe language — pale lines, green data in motion */
.cv g, .cv path, .cv rect, .cv circle{ fill:none; stroke-linecap:round; stroke-linejoin:round; }
.cv g{ stroke:rgba(var(--fg-rgb),.78); stroke-width:1.4; }
.cv .fa{ stroke:rgba(var(--fg-rgb),.05); stroke-width:1; }
.cv .d{ --w:clamp(0, (var(--t,1) - var(--a)) / (var(--b) - var(--a)), 1); }
.cv .d > *{ stroke-dasharray:1 1; stroke-dashoffset:calc(1 - var(--w)); }
.cv .d.acc{ stroke:var(--acc); stroke-width:1.8; }
.cv .pop > *{ fill:var(--surface); transform-box:fill-box; transform-origin:center; transform:scale(clamp(0, (var(--t,1) - var(--a)) * 5, 1)); }
.cv .pop .hot, .cv .pop.hot > *{ fill:var(--acc); stroke:var(--acc); }
.cv .flow{ stroke:var(--acc); stroke-width:1.5; stroke-dasharray:2 7; opacity:calc(var(--t,1) * .95); animation:cv-flow 1.4s linear infinite; }
@keyframes cv-flow{ to{ stroke-dashoffset:-18; } }
.cv .tip{ stroke:var(--acc); stroke-width:1.5; opacity:var(--t,1); }
.cv .lb{ stroke:none; fill:rgba(var(--fg-rgb),.5); font-family:inherit; font-size:9.5px; font-weight:400; letter-spacing:.14em; text-anchor:middle; opacity:clamp(0, var(--t,1) * 2 - 1, 1); }
/* 01 · the NPU cells fire while the model runs */
.cv-ai .npu rect{ stroke:rgba(var(--accent-rgb),.5); fill:rgba(var(--accent-rgb),.08); opacity:var(--t,1); animation:cv-npu 2.4s ease-in-out infinite; animation-delay:calc(var(--k) * -2.4s); }
@keyframes cv-npu{ 0%, 60%, 100%{ fill:rgba(var(--accent-rgb),.06); } 25%{ fill:rgba(var(--accent-rgb),.62); } }
/* 02 · the gateway keeps broadcasting */
.cv .pulse circle{ stroke:var(--acc-soft); transform-box:fill-box; transform-origin:center; opacity:0; animation:cv-pulse 2.8s cubic-bezier(.2,.6,.3,1) infinite; animation-delay:calc(var(--k) * -2.8s); }
@keyframes cv-pulse{ 0%{ transform:scale(.6); opacity:.9; } 100%{ transform:scale(3.4); opacity:0; } }
/* 03 · the second clock slides into phase, the RTK rings close on the fix, the attitude marker rocks */
.cv .pins{ stroke:rgba(var(--fg-rgb),.45); opacity:clamp(0, (var(--t,1) - var(--a)) * 4, 1); }
.cv-board .layers path{ stroke:var(--acc-soft); opacity:clamp(0, var(--t,1) * 2.2 - var(--k) * .25 - .9, 1); }
.cv-net .sync path, .cv-ind .sync path{ stroke-width:1.4; }
.cv-ind .sync .dash-v, .cv-net .sync .dash-v{ stroke:rgba(var(--fg-rgb),.22); stroke-dasharray:2 4; opacity:var(--t,1); }
.cv-ind .sync .d1, .cv-net .sync .d1{ stroke-dasharray:1 1; stroke-dashoffset:calc(1 - clamp(0, var(--t,1) * 2, 1)); }
.cv-ind .sync .drift, .cv-net .sync .drift{ stroke:var(--acc); stroke-dasharray:1 1; stroke-dashoffset:calc(1 - clamp(0, var(--t,1) * 2, 1));
  transform:translateX(calc((1 - clamp(0, (var(--t,1) - .35) * 2.2, 1)) * 22px)); }
.cv-ind .target, .cv-net .target{ --w:clamp(0, (var(--t,1) - var(--a)) * 2.4, 1); opacity:var(--w); }
.cv-ind .ring, .cv-net .ring{ transform-box:fill-box; transform-origin:center; transform:scale(calc(1.8 - .8 * var(--w))); }
.cv-ind .r3, .cv-net .r3{ stroke:var(--acc); }
.cv-ind .gizmo{ transform-box:view-box; transform-origin:70px 168px; animation:cv-rock 5s ease-in-out infinite; opacity:var(--t,1); }
.cv-ind .gizmo .ax{ stroke:rgba(var(--fg-rgb),.7); }
.cv-ind .gizmo .plate{ stroke:var(--acc); fill:rgba(var(--accent-rgb),.09); }
@keyframes cv-rock{ 0%, 100%{ transform:rotate(-5deg); } 50%{ transform:rotate(5deg); } }
/* 04 · the layers stack up, the dashboard fills, the remote link turns */
.cv-sw .lyr{ --w:clamp(0, var(--t,1) * 2.4 - var(--k) * .35, 1); opacity:var(--w); transform:translateY(calc((1 - var(--w)) * 16px)); }
.cv-sw .lyr rect{ fill:rgba(var(--fg-rgb),.04); stroke:rgba(var(--fg-rgb),.5); }
.cv-sw .lyr.top rect{ stroke:var(--acc); fill:rgba(var(--accent-rgb),.1); }
.cv-sw .lyr text{ stroke:none; fill:rgba(var(--fg-rgb),.72); font-size:9.5px; letter-spacing:.14em; text-anchor:middle; font-family:inherit; }
.cv-sw .gear{ stroke:var(--acc); transform-box:fill-box; transform-origin:center; animation:cv-spin 6s linear infinite; opacity:var(--t,1); }
@keyframes cv-spin{ to{ transform:rotate(360deg); } }
.cv-sw .bars{ --w:clamp(0, (var(--t,1) - var(--a)) * 2.6, 1); stroke:none; }
.cv-sw .bars rect{ fill:rgba(var(--accent-rgb),.55); transform-box:fill-box; transform-origin:50% 100%; transform:scaleY(calc(var(--h) * var(--w))); }
.cap-card:hover .cv .flow{ animation-duration:.8s; }
@media (prefers-reduced-motion:reduce){ .cv *, .cv{ animation:none !important; } }

/* entrance: the hero's mask wipe, card by card; the drawings run once */
.js .panel .caps-head > *{ opacity:0; transform:translateY(calc(30 * var(--u))); }
.js .panel.in .caps-head > *{ opacity:1; transform:none; transition:opacity 1s var(--ease), transform 1.2s var(--ease-out); }
.js .panel.in .caps-head > :nth-child(2){ transition-delay:.12s; }
.js .panel .cap-card{ clip-path:inset(100% 0 0 0 round calc(34 * var(--u))); --t:0; }
.js .panel.in .cap-card{ clip-path:inset(0 0 0 0 round calc(34 * var(--u))); --t:1;
  transition:clip-path 1.05s var(--ease-out) calc(.18s + var(--i) * .1s), --t 2.2s var(--ease) calc(.5s + var(--i) * .1s), box-shadow .8s var(--ease), transform .8s var(--ease-out), border-color .5s var(--ease), background .5s var(--ease); }
.js .panel.in.done .cap-card{ clip-path:none; }

@media (max-width:1100px){
  .caps-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .caps-head{ grid-template-columns:1fr; gap:16px; }
}
@media (max-width:900px){
  .panel{ --u:calc(100vw / 760); min-height:0; }
  .panel .frame{ width:100%; padding:104px 18px 56px; }
  .panel .ghost{ bottom:-14px; left:-4px; }
  .caps-head{ margin-bottom:22px; }
  .caps-grid{ gap:10px; }
  .cap-card{ border-radius:22px; padding:8px 8px 14px; }
  .js .panel .cap-card, .js .panel.in .cap-card{ clip-path:none; }
  .js .panel .cap-card{ opacity:0; transform:translateY(20px); }
  .js .panel.in .cap-card{ opacity:1; transform:none; transition:opacity .8s var(--ease) calc(var(--i) * .08s), transform 1s var(--ease-out) calc(var(--i) * .08s), --t 2s var(--ease) calc(.3s + var(--i) * .08s); }
  .cap-vis{ height:auto; aspect-ratio:16 / 9; border-radius:14px; }
  .cap-vis .cv{ inset:4px; width:calc(100% - 8px); height:calc(100% - 8px); }
  .cap-card > :not(.cap-vis){ margin-inline:6px; }
  .cap-num{ margin-top:10px; font-size:11px; }
  .cap-link{ margin-top:4px; }
  .cap-link h3{ font-size:15px; }
  .cap-link .nob{ width:30px; height:30px; }
  .cap-link .nob svg{ width:13px; height:13px; }
  .cap-desc{ font-size:12.5px; line-height:1.55; margin-top:6px; }
  .cap-related{ padding-top:10px; gap:4px; }
  .cap-related .sheet-label{ font-size:11px; }
  .cap-rel{ font-size:11px; padding:5px 8px; }
}
@media (prefers-reduced-motion:reduce){
  .js .panel .caps-head > *, .js .panel .cap-card{ opacity:1 !important; transform:none !important; clip-path:none !important; --t:1 !important; transition:none !important; }
}
@media print{ .js .panel .caps-head > *, .js .panel .cap-card{ opacity:1 !important; transform:none !important; clip-path:none !important; --t:1; } }

/* products: the devices sit straight on the scene — cut-out photos, no paper card, no window fill */
.win--clear, .win--clear .win-media{ background:transparent; }
.win--clear{ overflow:visible; }
.win--clear .win-media img{ object-fit:contain; padding:24px;
  filter:drop-shadow(0 calc(26 * var(--u)) calc(34 * var(--u)) rgba(var(--shadow-rgb),.5)) drop-shadow(0 calc(4 * var(--u)) calc(8 * var(--u)) rgba(var(--shadow-rgb),.3)); }
.story--prods .prod-sheet, .story--prods .prod-sheet:hover{ background:transparent; box-shadow:none; }
.story--prods .prod-sheet .sheet-label{ color:rgba(var(--fg-rgb),.55); }
.story--prods .prod-sheet .sheet-title{ color:var(--ink); }
.filmstrip button{ color:var(--ink); background:linear-gradient(180deg, rgba(var(--glass-rgb),.82), rgba(var(--glass2-rgb),.88)); border:1px solid rgba(var(--accent-rgb),.2);
  box-shadow:0 calc(18 * var(--u)) calc(40 * var(--u)) rgba(var(--shadow-rgb),.4), inset 0 1px rgba(var(--fg-rgb),.06); }
.filmstrip button:hover{ border-color:rgba(var(--accent-rgb),.5); }
.filmstrip button > span:last-child{ color:var(--ink-soft); }
.thumb.win--clear img{ padding:12px; filter:drop-shadow(0 calc(8 * var(--u)) calc(10 * var(--u)) rgba(var(--shadow-rgb),.5)); }

/* system solutions: a plain panel, two wide cards in the capabilities' material */
.sols-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:20px; }
/* the frame matches the screenshots (1600 × 900): the whole dashboard shows, nothing cropped */
.sol-card .cap-vis, :lang(en) .sol-card .cap-vis{ height:auto; aspect-ratio:16 / 9; }
.sol-shot img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; object-position:50% 50%; transition:transform 1.2s var(--ease-out); }
.sol-card:hover .sol-shot img{ transform:scale(1.03); }
.sol-kind{ margin-left:.9em; color:rgba(var(--fg-rgb),.55); letter-spacing:.14em; }
.sol-tags{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; padding-top:12px; }
.sol-tags li{ border:1px solid rgba(var(--accent-rgb),.26); border-radius:999px; padding:4px 12px;
  font-size:var(--fs-xs); line-height:1.3; color:var(--ink-soft); background:rgba(var(--accent-rgb),.05); }
@media (max-width:900px){
  .sols-grid{ grid-template-columns:1fr; gap:16px; }
  .sol-tags{ gap:6px; padding-top:12px; }
  .sol-tags li{ padding:4px 10px; }
}

/* ══════════════════════════════════════════════════════════════════════
   交付流程：普通版块（不吸顶、不滚动叙事）。进入视口后 01 → 04 自动依次出现：
   时间线从左向右画出，每到一个节点，该步骤的编号、圆点、标题与说明随之亮起。
   ══════════════════════════════════════════════════════════════════════ */
.panel--process .process-head{ margin-bottom:56px; }
.process-flow{ position:relative; }
/* the four columns start on the hero's column guides (x 46 / 405 / 748 / 1091) */
.panel--process .steps-line{ list-style:none; position:relative; z-index:1;
  display:grid; grid-template-columns:calc(359 * var(--u)) calc(343 * var(--u)) calc(343 * var(--u)) minmax(0,1fr); }
.panel--process .step{ padding-right:36px; }
.panel--process .step .beat-num{ font-size:calc(96 * var(--u)); margin-bottom:20px; }
.panel--process .step-node{ position:relative; margin-bottom:24px; }
.panel--process .step h3{ margin-bottom:12px; }
/* the line runs through the node centres: number height (96 × .8) + its gap + half a node */
.panel--process .timeline{ position:absolute; left:0; right:0; height:1px; top:calc((76.8 + 22 + 7) * var(--u)); }
.panel--process .timeline i{ position:absolute; inset:0; }
.panel--process .tl-base{ background:rgba(var(--fg-rgb),.14); }
.panel--process .tl-fill{ background:var(--acc); transform-origin:0 50%; }
/* lit nodes: the final state, and the state without scripts */
.panel--process .step-node,
.js .panel--process.play .step-node{ background:var(--acc); border-color:var(--acc); box-shadow:0 0 0 calc(6 * var(--u)) rgba(var(--accent-rgb),.14); }

/* the sequence: the line draws in 2.4 s (linear, so it meets each node on time);
   step i appears as the line reaches it, about every .55 s */
.js .panel--process .tl-fill{ transform:scaleX(0); }
.js .panel--process.play .tl-fill{ transform:scaleX(1); transition:transform 2.4s linear .2s; }
.js .panel--process .step-node{ background:var(--bg-1); border-color:rgba(var(--fg-rgb),.4); box-shadow:none; }
.js .panel--process.play .step-node{ transition:background .5s var(--ease), border-color .5s var(--ease), box-shadow .7s var(--ease);
  transition-delay:calc(var(--i) * .55s + .25s); }
.js .panel--process .step > :not(.step-node){ opacity:0; transform:translateY(calc(26 * var(--u))); }
.js .panel--process.play .step > :not(.step-node){ opacity:1; transform:none;
  transition:opacity .8s var(--ease), transform 1s var(--ease-out);
  transition-delay:calc(var(--i) * .55s + .2s + var(--k, 0s)); }
.panel--process .step h3{ --k:.08s; } .panel--process .step p{ --k:.16s; }

@media (max-width:900px){
  .panel--process .process-head{ margin-bottom:30px; }
  /* one column: a vertical line on the left, drawn top to bottom */
  .panel--process .steps-line{ grid-template-columns:1fr; gap:26px; padding-left:34px; }
  .panel--process .step{ position:relative; padding-right:0; }
  .panel--process .step .beat-num{ display:none; }
  .panel--process .step-node{ position:absolute; left:-34px; top:7px; margin:0; }
  .panel--process .step h3{ font-size:19px; margin-bottom:4px; }
  .panel--process .step p{ font-size:13.5px; }
  .panel--process .timeline{ left:5px; right:auto; top:12px; bottom:12px; width:1px; height:auto; }
  .panel--process .tl-fill{ transform-origin:50% 0; }
  .js .panel--process .tl-fill{ transform:scaleY(0); }
  .js .panel--process.play .tl-fill{ transform:scaleY(1); }
}
@media (prefers-reduced-motion:reduce){
  .js .panel--process .tl-fill, .js .panel--process .step > *{ opacity:1 !important; transform:none !important; transition:none !important; }
  .js .panel--process .step-node{ background:var(--acc) !important; border-color:var(--acc) !important; transition:none !important; }
}
@media print{
  .js .panel--process .tl-fill, .js .panel--process .step > *{ opacity:1 !important; transform:none !important; }
}

/* product rail: each progress bar carries its product's name underneath.
   The bar is at least as wide as its name (grid column = max(bar, name)),
   and a long name wraps at 150 units, so the text never runs past its bar. */
.story.on .story-rail{ top:calc(792 * var(--u)); align-items:flex-start; gap:20px; }
.story.on .story-rail span{ display:grid; grid-template-columns:auto auto; column-gap:8px; row-gap:7px; align-items:center; }
.story.on .story-rail span > i{ grid-column:2; grid-row:1; width:auto; min-width:calc(56 * var(--u)); }
.story.on .story-rail .rail-name{ grid-column:2; grid-row:2; width:max-content; max-width:calc(150 * var(--u));
  font-style:normal; font-size:var(--fs-2xs); line-height:1.35; letter-spacing:.02em;
  color:var(--ink-faint); transition:color .4s var(--ease); }
.story.on .story-rail span.is-on .rail-name{ color:var(--ink); }
@media (max-width:900px){
  /* phones keep the compact centred rail; the names would crowd it */
  .story.on .story-rail .rail-name{ display:none; }
  .story.on .story-rail span{ display:flex; }
  /* the desktop name-rail rules come later in the file; restore the compact phone rail */
  .story.on .story-rail{ top:auto; bottom:22px; left:16px; right:52px; gap:8px 10px; align-items:center; }   /* right: clear of the floating buttons */
  .story.on .story-rail span > i{ min-width:0; width:22px; }
}

/* contact: person and address under the lede */
.contact-info{ display:grid; gap:12px; margin-top:24px; }
.contact-info > div{ display:grid; grid-template-columns:calc(70 * var(--u)) 1fr; column-gap:12px; align-items:baseline; }
.contact-info dt{ font-size:var(--fs-xs); letter-spacing:.14em; color:var(--ink-faint); }
:lang(en) .contact-info dt{ letter-spacing:.06em; }
.contact-info dd{ font-size:var(--fs-base); line-height:1.6; color:var(--ink); }
.contact-info a{ color:inherit; text-decoration:none; border-bottom:1px solid rgba(var(--accent-rgb),.45); transition:border-color .2s var(--ease); }
.contact-info a:hover{ border-color:var(--acc, var(--mint)); }
.story--contact.on .contact-head .contact-info{ left:calc(46 * var(--u)); top:calc(436 * var(--u)); width:calc(600 * var(--u)); margin:0; pointer-events:auto;
  opacity:0; transform:translateY(calc(30 * var(--u))); transition:opacity .8s var(--ease) .2s, transform 1.05s var(--ease-out) .2s; }
.story--contact.on .contact-head[data-state="active"] .contact-info{ opacity:1; transform:none; }
@media (max-width:900px){
  .story--contact.on .contact-head .contact-info{ opacity:1; transform:none; margin-top:10px; }
  .contact-info > div{ grid-template-columns:56px 1fr; }
}

/* hero contact card (was "About Us"): a smaller photo window, then the
   contact person and the address; the address stops short of the corner
   knob so the two never overlap */
.card.card--about figure{ height:calc(98 * var(--u)); }
.card.card--about .label{ top:calc(130 * var(--u)); }
.card.card--about p.card-contact{ top:calc(158 * var(--u)); width:calc(262 * var(--u)); font-size:calc(17 * var(--u)); line-height:calc(24 * var(--u)); letter-spacing:0; }
.card-contact a{ color:inherit; text-decoration:none; }
.card-contact a:hover{ text-decoration:underline; text-underline-offset:.18em; text-decoration-thickness:1px; }
.card-addr{ position:absolute; left:calc(38 * var(--u)); top:calc(194 * var(--u)); width:calc(205 * var(--u));
  font-size:calc(14 * var(--u)); line-height:calc(21 * var(--u)); color:#5b6155; }
:lang(en) .card-addr{ font-size:calc(12.5 * var(--u)); line-height:calc(17 * var(--u)); }
:lang(en) .card.card--about p.card-contact{ font-size:calc(15 * var(--u)); white-space:nowrap; }
/* the slogan's larger, tracked setting is for Chinese; English keeps a plain three-line setting */
:lang(en) .card.card--stove h2{ letter-spacing:0; font-size:calc(18 * var(--u)); line-height:calc(23 * var(--u)); }
/* English runs the products title as one sentence instead of breaking after "devices" */
:lang(en) #products-title br{ display:none; }
@media (max-width:900px){
  .card.card--about .label{ top:calc(40 * var(--u)); }
  .card.card--about p.card-contact{ top:calc(76 * var(--u)); width:calc(410 * var(--u)); font-size:max(14px, calc(24 * var(--u))); line-height:1.3; }
  .card-addr, :lang(en) .card-addr{ top:calc(128 * var(--u)); width:calc(410 * var(--u)); font-size:max(12px, calc(20 * var(--u))); line-height:1.5; }
  .card.card--about figure{ height:calc(218 * var(--u)); }
  .card.card--stove h2{ font-size:max(17px, calc(32 * var(--u))); line-height:1.45; }
  :lang(en) .card.card--stove h2{ font-size:max(14px, calc(24 * var(--u))); line-height:1.35; }
}

/* slogan: two staggered lines, the second set in from the first */
.slogan .sl-1, .slogan .sl-2{ display:block; }
.slogan .sl-2{ padding-left:2.2em; }
:lang(en) .slogan .sl-2{ padding-left:1.4em; }

/* bottom-right quick buttons, in the top bar's glass; right edge on the content edge */
/* a row along the bottom edge: content runs nearly to the foot of every
   screen, and a low row stays clear of it where a tall stack would not */
.quick-nav{ position:fixed; z-index:50; right:calc(50% - 754 * var(--u)); bottom:max(10px, calc(14 * var(--u)));
  display:flex; flex-direction:row; gap:8px; }
.qn-btn{ position:relative; display:grid; place-items:center; cursor:pointer; padding:0;
  width:max(36px, calc(40 * var(--u))); height:max(36px, calc(40 * var(--u)));
  border-radius:12px; border:1px solid rgba(var(--fg-rgb),.11); color:var(--ink-soft);
  background:linear-gradient(180deg, rgba(var(--fg-rgb),.055), rgba(var(--fg-rgb),0) 42%), rgba(var(--glass2-rgb),.74);
  box-shadow:0 calc(8 * var(--u)) calc(22 * var(--u)) rgba(var(--shadow-rgb),.30), inset 0 1px rgba(var(--fg-rgb),.06);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  transition:border-color .2s var(--ease), color .2s var(--ease), opacity .3s var(--ease), transform .25s var(--ease-out); }
.qn-btn svg{ width:max(16px, calc(17 * var(--u))); height:max(16px, calc(17 * var(--u))); fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.qn-btn:hover:not(:disabled), .qn-btn:focus-visible{ border-color:rgba(var(--fg-rgb),.26); color:var(--ink); transform:translateY(-1px); }
.qn-btn:disabled{ opacity:.32; cursor:default; }
/* label slides out to the left on hover / keyboard focus */
.qn-tip{ position:absolute; bottom:calc(100% + 8px); right:0; transform:translateY(4px); white-space:nowrap; pointer-events:none;
  padding:5px 10px; border-radius:8px; font-size:12px; letter-spacing:.04em; color:var(--ink);
  background:rgba(var(--glass2-rgb),.9); border:1px solid rgba(var(--fg-rgb),.1); opacity:0; transition:opacity .18s var(--ease), transform .18s var(--ease); }
.qn-btn:hover:not(:disabled) .qn-tip, .qn-btn:focus-visible .qn-tip{ opacity:1; transform:none; }
/* "back to top" and "previous" only matter once the page has been scrolled */
.js .quick-nav .qn-btn[data-qn="top"], .js .quick-nav .qn-btn[data-qn="prev"]{ opacity:0; pointer-events:none; transform:translateY(8px); }
.js .quick-nav.qn-on .qn-btn[data-qn="top"], .js .quick-nav.qn-on .qn-btn[data-qn="prev"]{ opacity:1; pointer-events:auto; transform:none; }
.js .quick-nav.qn-on .qn-btn:disabled{ opacity:.32; }
@media (max-width:900px){
  /* phones: a slim stack hugging the right edge covers less text than a row */
  .quick-nav{ right:6px; bottom:calc(12px + env(safe-area-inset-bottom)); flex-direction:column; gap:6px; }
  .qn-btn{ width:36px; height:36px; border-radius:11px; }
  .qn-btn svg{ width:16px; height:16px; }
  .qn-tip{ display:none; }
}
@media print{ .quick-nav{ display:none; } }

/* ELETKER: the planet can be turned by dragging it */
html.globe-hover, html.globe-hover body{ cursor:grab; }
html.globe-grabbing, html.globe-grabbing *{ cursor:grabbing !important; user-select:none; -webkit-user-select:none; }

/* ── ELETKER: hero contact as a satellite readout ──────────────────────
   No card: corner brackets, faint scanlines and a mono tag line, tied to
   Shenzhen on the globe by a leader line that scene.js redraws each frame. */
.hq-readout{
  --hq:rgba(var(--accent-rgb),.72); --b:calc(16 * var(--u));
  position:absolute; z-index:4;
  left:calc(900 * var(--u)); top:calc(214 * var(--u)); width:calc(300 * var(--u));
  padding:calc(18 * var(--u)) calc(24 * var(--u)) calc(22 * var(--u));
  color:var(--ink);
  background:
    linear-gradient(var(--hq),var(--hq)) left top / var(--b) 1px no-repeat,
    linear-gradient(var(--hq),var(--hq)) left top / 1px var(--b) no-repeat,
    linear-gradient(var(--hq),var(--hq)) right top / var(--b) 1px no-repeat,
    linear-gradient(var(--hq),var(--hq)) right top / 1px var(--b) no-repeat,
    linear-gradient(var(--hq),var(--hq)) left bottom / var(--b) 1px no-repeat,
    linear-gradient(var(--hq),var(--hq)) left bottom / 1px var(--b) no-repeat,
    linear-gradient(var(--hq),var(--hq)) right bottom / var(--b) 1px no-repeat,
    linear-gradient(var(--hq),var(--hq)) right bottom / 1px var(--b) no-repeat,
    repeating-linear-gradient(180deg, rgba(var(--accent-rgb),.035) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, rgba(var(--glass2-rgb),.62), rgba(var(--glass2-rgb),.30));
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
}
.hq-readout .hq-tag{
  display:flex; align-items:center; gap:calc(8 * var(--u));
  font-family:var(--font-mono);
  font-size:calc(11 * var(--u)); letter-spacing:.14em; color:var(--accent);
}
.hq-readout .hq-coord{ margin-left:auto; color:var(--ink-faint); letter-spacing:.06em; }
.hq-blip{ width:calc(6 * var(--u)); height:calc(6 * var(--u)); border-radius:50%; background:var(--accent);
  box-shadow:0 0 calc(8 * var(--u)) var(--accent); animation:hq-blink 1.6s steps(2,end) infinite; }
@keyframes hq-blink{ 50%{ opacity:.25; } }
.hq-readout .label{
  margin-top:calc(16 * var(--u));
  font-family:var(--font-mono);
  font-size:calc(11.5 * var(--u)); letter-spacing:.2em; color:var(--ink-faint);
}
.hq-readout .label::before{ content:'// '; color:rgba(var(--accent-rgb),.6); }
.hq-readout p.card-contact{
  margin-top:calc(6 * var(--u));
  font-size:calc(21 * var(--u)); line-height:1.3; font-weight:400; letter-spacing:.02em;
  font-variant-numeric:tabular-nums; color:var(--ink);
}
.hq-readout .card-addr{
  position:static; width:auto;
  margin-top:calc(12 * var(--u)); padding-top:calc(12 * var(--u));
  border-top:1px dashed rgba(var(--accent-rgb),.24);
  font-size:calc(13.5 * var(--u)); line-height:calc(21 * var(--u)); color:var(--ink-soft);
  padding-right:calc(34 * var(--u));      /* clear of the arrow in the corner */
}
:lang(en) .hq-readout p.card-contact{ font-size:calc(15.5 * var(--u)); white-space:nowrap; letter-spacing:0; }
:lang(en) .hq-readout .card-addr{ font-size:calc(12.5 * var(--u)); line-height:calc(18 * var(--u)); }
.hq-go{
  position:absolute; bottom:calc(16 * var(--u)); right:calc(16 * var(--u));
  width:calc(32 * var(--u)); height:calc(32 * var(--u)); display:grid; place-items:center;
  border:1px solid rgba(var(--accent-rgb),.38); border-radius:calc(4 * var(--u)); color:var(--accent);
  transition:background .3s var(--ease), transform .4s var(--ease-out);
}
.hq-go svg{ width:calc(15 * var(--u)); height:calc(15 * var(--u)); }
.hq-go:hover{ background:rgba(var(--accent-rgb),.12); transform:translateX(calc(3 * var(--u))); }
/* the slogan: the same readout panel, in the old slogan card's place */
.hq-readout.hq-readout--slogan{
  left:calc(1237 * var(--u)); top:calc(500 * var(--u)); width:calc(328 * var(--u));
  padding-bottom:calc(26 * var(--u));
}
.hq-readout--slogan p.slogan{
  margin-top:calc(18 * var(--u)); padding-bottom:calc(18 * var(--u));
  border-bottom:1px dashed rgba(var(--accent-rgb),.24);
  font-size:calc(26 * var(--u)); line-height:calc(40 * var(--u)); font-weight:300; letter-spacing:calc(1.2 * var(--u)); color:var(--ink);
}
:lang(en) .hq-readout--slogan p.slogan{ font-size:calc(18 * var(--u)); line-height:calc(26 * var(--u)); letter-spacing:0; }
.hq-readout--slogan .hq-go{ bottom:calc(14 * var(--u)); }
.hq-readout--slogan::after{                         /* a signal meter under the rule, beside the arrow */
  content:''; position:absolute; left:calc(24 * var(--u)); bottom:calc(26 * var(--u));
  width:calc(120 * var(--u)); height:calc(6 * var(--u));
  background:repeating-linear-gradient(90deg, rgba(var(--accent-rgb),.55) 0 calc(4 * var(--u)), transparent calc(4 * var(--u)) calc(7 * var(--u)));
  -webkit-mask:linear-gradient(90deg,#000 70%,rgba(0,0,0,.15) 70%); mask:linear-gradient(90deg,#000 70%,rgba(0,0,0,.15) 70%);
}
.hq-readout--slogan p.slogan{ margin-bottom:calc(22 * var(--u)); }

@media (max-width:900px){
  .hq-readout{ left:calc(34 * var(--u)); top:calc(1050 * var(--u)); width:calc(692 * var(--u)); padding:calc(24 * var(--u)) calc(30 * var(--u)); }
  .hq-readout .hq-tag{ font-size:max(10px, calc(18 * var(--u))); }
  .hq-readout .label{ font-size:max(10px, calc(18 * var(--u))); }
  .hq-readout p.card-contact, :lang(en) .hq-readout p.card-contact{ font-size:max(15px, calc(30 * var(--u))); }
  .hq-readout .card-addr, :lang(en) .hq-readout .card-addr{ font-size:max(12px, calc(21 * var(--u))); line-height:1.5; }
  .hq-go{ width:calc(52 * var(--u)); height:calc(52 * var(--u)); bottom:calc(22 * var(--u)); right:calc(22 * var(--u)); }
  .hq-readout .card-addr{ padding-right:calc(70 * var(--u)); }
  .hq-go svg{ width:calc(22 * var(--u)); height:calc(22 * var(--u)); }
  .hq-readout.hq-readout--slogan{ left:calc(34 * var(--u)); top:calc(1340 * var(--u)); width:calc(692 * var(--u)); padding-bottom:calc(30 * var(--u)); }
  .hq-readout--slogan p.slogan{ font-size:max(17px, calc(32 * var(--u))); line-height:1.45; }
  :lang(en) .hq-readout--slogan p.slogan{ font-size:max(14px, calc(24 * var(--u))); line-height:1.35; }
  .hq-readout--slogan::after{ bottom:calc(38 * var(--u)); width:calc(200 * var(--u)); height:calc(9 * var(--u)); }
}

/* ── ELETKER: the six product thumbnails float free ────────────────────
   No card, no frame: each device hovers over a soft ground shadow and
   bobs gently, out of step with its neighbours; hovering lifts it higher. */
.filmstrip button, .filmstrip button:hover{ background:transparent; border:0; box-shadow:none; transform:none; padding:0; }
.thumb, .story--prods.on .thumb{ overflow:visible; border-radius:0; background:transparent; }
.thumb.win--clear img{
  padding:8px;
  filter:drop-shadow(0 calc(14 * var(--u)) calc(14 * var(--u)) rgba(var(--shadow-rgb),.45));
  animation:thumb-float 5.2s ease-in-out infinite; animation-delay:calc(var(--i, 0) * -.85s);
  transition:transform .6s var(--ease-out), filter .6s var(--ease);
}
.thumb::after{                                       /* the ground shadow, breathing with the float */
  content:''; position:absolute; left:22%; right:22%; bottom:calc(-2 * var(--u)); height:calc(14 * var(--u));
  background:radial-gradient(closest-side, rgba(var(--shadow-rgb),.55), transparent); z-index:-1;
  animation:thumb-shadow 5.2s ease-in-out infinite; animation-delay:calc(var(--i, 0) * -.85s);
}
@keyframes thumb-float{ 0%,100%{ translate:0 0; } 50%{ translate:0 calc(-10 * var(--u)); } }
@keyframes thumb-shadow{ 0%,100%{ transform:scaleX(1); opacity:1; } 50%{ transform:scaleX(.78); opacity:.6; } }
.filmstrip button:hover .thumb img{ transform:translateY(calc(-10 * var(--u))) scale(1.06);
  filter:drop-shadow(0 calc(24 * var(--u)) calc(20 * var(--u)) rgba(var(--shadow-rgb),.5)) drop-shadow(0 0 calc(16 * var(--u)) rgba(var(--accent-rgb),.18)); }
.filmstrip button > span:last-child{ text-align:center; margin-top:12px; color:var(--ink-soft); transition:color .4s var(--ease); }
.filmstrip button:hover > span:last-child{ color:var(--ink); }
@media (max-width:900px){
  .story--prods.on .filmstrip button{ padding:0; }
  .story--prods.on .filmstrip button > span:last-child{ margin-top:6px; }
}
@media (prefers-reduced-motion:reduce){
  .thumb.win--clear img, .thumb::after{ animation:none; }
}

/* ── ELETKER: the play button runs an automatic tour of the site ───── */
.liquid-button--play .ico-pause{ display:none; }
.touring .liquid-button--play .ico-play{ display:none; }
.touring .liquid-button--play .ico-pause{ display:inline; }
.tour-hud{
  position:fixed; z-index:60; left:50%; bottom:max(14px, calc(18 * var(--u))); transform:translateX(-50%);
  display:flex; align-items:center; gap:12px; padding:9px 10px 9px 10px; overflow:hidden;
  border-radius:12px; border:1px solid rgba(var(--accent-rgb),.28);
  background:rgba(var(--glass2-rgb),.72); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  box-shadow:0 12px 30px rgba(var(--shadow-rgb),.4);
  font-size:13px; color:var(--ink); white-space:nowrap;
  animation:tour-in .45s var(--ease-out) both;
}
.tour-hud[hidden]{ display:none; }
@keyframes tour-in{ from{ opacity:0; transform:translate(-50%, 12px); } }
.tour-speed{ display:flex; align-items:center; gap:4px; padding-right:12px; margin-right:2px; border-right:1px solid rgba(var(--accent-rgb),.2); }
.tour-spd{ width:24px; height:24px; display:grid; place-items:center; padding:0; border-radius:6px; cursor:pointer;
  border:1px solid rgba(var(--accent-rgb),.32); background:transparent; color:var(--accent); font:inherit; font-size:15px; line-height:1; transition:background .3s var(--ease); }
.tour-spd:hover{ background:rgba(var(--accent-rgb),.14); }
.tour-k{ font-size:12px; color:var(--ink-faint); margin-right:4px; }
.tour-hold{ min-width:40px; text-align:center; font-weight:500; font-variant-numeric:tabular-nums; color:var(--ink); }
.tour-rate{ min-width:40px; text-align:center; font-weight:500; font-variant-numeric:tabular-nums; color:var(--ink); }
.tour-dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 8px var(--accent); animation:hq-blink 1.2s steps(2,end) infinite; }
.tour-tip{ color:var(--ink-faint); font-size:12px; }
.tour-stop{ border:1px solid rgba(var(--accent-rgb),.4); background:transparent; color:var(--accent); font:inherit; font-size:12px;
  padding:5px 12px; border-radius:8px; cursor:pointer; transition:background .3s var(--ease); }
.tour-stop:hover{ background:rgba(var(--accent-rgb),.14); }
.tour-bar{ position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--accent); transform-origin:0 50%; transform:scaleX(0); opacity:.8; }
@media (max-width:900px){ .tour-tip, .tour-k{ display:none; } }
@media (max-width:1180px){ .tour-tip{ display:none; } }

/* graphite: raised surfaces carry a mint hairline instead of a paper fill */
.sheet, dialog, .contact-sheet{ box-shadow:inset 0 0 0 1px var(--line), 0 calc(24 * var(--u)) calc(60 * var(--u)) rgba(0,0,0,.45); }

/* gold marks the hardware facts: chapter and step numbers, spec values */
.cap-num{ color:var(--gold); }
.beat-num{ -webkit-text-stroke-color:rgba(var(--hw-rgb),.55); }
.pstats dd{ color:var(--gold); }
.hq-readout .hq-coord{ color:rgba(var(--hw-rgb),.85); }

/* the signature: the hero headline in the blue → orange gradient */
.headline span i{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }
.headline span i{ background-size:100% 100%; background-repeat:no-repeat; padding-right:.06em; }   /* each line carries the whole gradient; nothing outside it goes transparent */

/* the brushed-metal buttons are dark objects in either theme */
html[data-theme="light"] :is(.liquid-stage, .liquid-button, .play-wrap){
  --fg-rgb:241,245,249; --glass-rgb:30,41,57; --glass2-rgb:16,24,40; --shadow-rgb:2,6,23; --ink:#f1f5f9;
}

/* ── capability cards, compact: about two-thirds of their former height ── */
.cap-card{ padding:8px 8px 16px; border-radius:20px; }
.js .panel .cap-card{ clip-path:inset(100% 0 0 0 round calc(24 * var(--u))); }
.js .panel.in .cap-card{ clip-path:inset(0 0 0 0 round calc(24 * var(--u))); }
.cap-vis, :lang(en) .cap-vis{ height:calc(96 * var(--u)); border-radius:12px; }
.cap-card > :not(.cap-vis){ margin-inline:calc(16 * var(--u)); }
.cap-num{ margin-top:8px; font-size:var(--fs-xs); }
.cap-link{ margin-top:4px; }
.cap-link h3{ font-size:var(--fs-lg); }
:lang(en) .cap-link h3{ font-size:var(--fs-base); }
.cap-link .nob{ width:max(30px, calc(34 * var(--u))); height:max(30px, calc(34 * var(--u))); }
.cap-desc{ margin-top:4px; font-size:var(--fs-xs); line-height:1.55; }
.cap-desc + .cap-desc{ margin-top:4px; }
:lang(en) .cap-desc{ font-size:var(--fs-xs); line-height:1.5; }
.cap-related{ padding-top:8px; gap:4px 4px; }
.cap-related .sheet-label{ margin-bottom:0; font-size:var(--fs-xs); }
.cap-rel{ font-size:var(--fs-xs); padding:4px 8px; }

/* ── ELETKER type system: one role per style ────────────────────────────
   display  Space Grotesk 600 — headline, section and chapter titles
            Space Grotesk 500 — card, step and panel titles, slogan
   numbers  Space Grotesk, tabular — chapter numbers, specs, speeds
   text     DM Sans 400 — body, ledes, descriptions; 500 for labels, buttons, nav
   data     system monospace — coordinates, readout tags, technical labels   */
.headline, .story-title, .beat-title, .prod-name{
  font-family:var(--font-display); font-weight:600; letter-spacing:-.01em;
}
.step h3, .cap-link h3, .hq-readout--slogan p.slogan, .hq-readout p.card-contact, .sheet-title{
  font-family:var(--font-display); font-weight:500; letter-spacing:-.005em;
}
.beat-num{ font-family:var(--font-display); font-weight:300; }
.ghost{ font-family:var(--font-display); font-weight:500; }
.cap-num, .pstats dd, .story-rail b, .tour-rate, .tour-hold, .hq-coord{
  font-family:var(--font-display); font-variant-numeric:tabular-nums;
}
.pstats dd{ font-weight:600; }
.lede, .story-lede, .beat-lede, .cap-desc, .step p{ font-family:var(--font-body); font-weight:400; }
.kicker, .label, .sheet-label, .dock-item, .lang-btn, .tour-hud{ font-family:var(--font-body); font-weight:500; }
.hq-tag, .hq-readout .label, .tour-tip{ font-family:var(--font-mono); }

/* contact form: the spam trap stays out of sight; the mail fallback link */
.hp-field{ position:absolute !important; left:-9999px; width:1px; height:1px; opacity:0; pointer-events:none; }
.contact-sheet .form-fallback{ margin-top:6px; font-size:14px; }
.contact-sheet .form-fallback a{ color:var(--accent); text-decoration:underline; text-underline-offset:3px; }

/* ── submission pop-up ─────────────────────────────────────────────────
   Centred card on the page's surface colour. Blue tick when sent (closes
   itself after six seconds), orange mark when not (stays, with a mail link),
   a spinner while sending. */
.form-toast{
  position:fixed; z-index:80; left:50%; top:50%;
  width:min(420px, calc(100vw - 32px));
  display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:start;
  padding:20px 18px 20px 20px; border-radius:16px;
  background:var(--surface); color:var(--ink);
  box-shadow:inset 0 0 0 1px var(--line), 0 24px 60px rgba(var(--shadow-rgb),.45);
  opacity:0; transform:translate(-50%, -46%) scale(.97);
  transition:opacity .3s var(--ease), transform .45s var(--ease-out);
}
.form-toast.is-on{ opacity:1; transform:translate(-50%, -50%) scale(1); }
.form-toast[hidden]{ display:none; }
.ft-icon{ width:38px; height:38px; border-radius:50%; display:grid; place-items:center; flex:none; }
.ft-i{ display:none; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.form-toast[data-kind="ok"] .ft-icon{ background:rgba(var(--accent-rgb),.16); color:var(--accent); }
.form-toast[data-kind="ok"] .ft-i--ok{ display:block; }
.form-toast[data-kind="err"] .ft-icon{ background:rgba(var(--hw-rgb),.16); color:var(--hw); }
.form-toast[data-kind="err"] .ft-i--err{ display:block; }
.form-toast[data-kind="busy"] .ft-icon{ background:rgba(var(--fg-rgb),.08); }
.form-toast[data-kind="busy"] .ft-i--busy{ display:block; border-radius:50%; border:2px solid rgba(var(--fg-rgb),.18); border-top-color:var(--accent); animation:ft-spin .8s linear infinite; }
@keyframes ft-spin{ to{ transform:rotate(360deg); } }
.ft-title{ display:block; font-family:var(--font-display); font-weight:600; font-size:17px; line-height:1.35; padding-top:8px; }
.ft-msg{ margin-top:4px; font-size:14px; line-height:1.55; color:var(--ink-soft); }
.ft-msg:empty{ display:none; }
.ft-mail{ display:inline-block; margin-top:10px; font-size:14px; color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.ft-close{ width:30px; height:30px; border:0; border-radius:8px; background:transparent; color:var(--ink-faint); font-size:20px; line-height:1; cursor:pointer; }
.ft-close:hover{ background:rgba(var(--fg-rgb),.08); color:var(--ink); }
.form-toast[data-kind="busy"] .ft-close{ visibility:hidden; }
@media (prefers-reduced-motion:reduce){ .form-toast{ transition:none; } }
.ft-mail[hidden]{ display:none; }

/* ── capability cards: flat cards, as on ui-ux-pro-max-skill.com ─────────
   Light theme: pure white with a thin grey border and grey pill tags.
   Dark theme: the same flat card in slate (#1e2939 on the #0f172a page),
   with a #364153 border — no glow, no gradient. Colours come from the
   --cc-* tokens below; the solution cards keep their glass style. */
.caps-grid .cap-card{
  --cc-bg:#1e2939; --cc-line:#364153; --cc-line-hi:#4a5565; --cc-vis:#101828; --cc-vis-line:#2b3647;
  --cc-title:#f1f5f9; --cc-text:#d1d5dc; --cc-faint:#99a1af; --cc-acc:#50a2ff; --cc-acc-rgb:80,162,255;
  --cc-pill:#283445; --cc-pill-hi:rgba(80,162,255,.14); --cc-pill-line-hi:rgba(80,162,255,.45); --cc-pill-text-hi:#f1f5f9;
  --cc-nob:#283445; --cc-on-acc:#0f172a; --cc-shadow:0 1px 3px rgba(2,6,23,.3); --cc-shadow-hi:0 12px 28px rgba(2,6,23,.45);
  --ink:var(--cc-title); --ink-soft:var(--cc-text); --ink-faint:var(--cc-faint); --fg-rgb:241,245,249;
  --accent:var(--cc-acc); --accent-rgb:var(--cc-acc-rgb); --mint:var(--cc-acc); --acc:var(--cc-acc); --acc-soft:rgba(var(--cc-acc-rgb),.55);
  --surface:var(--cc-bg); --surface-2:var(--cc-pill); --bg-0:var(--cc-on-acc);
  color:var(--cc-title); background:var(--cc-bg); border:1px solid var(--cc-line); border-radius:16px;
  box-shadow:var(--cc-shadow);
  padding:12px 12px 20px;
}
html[data-theme="light"] .caps-grid .cap-card{
  --cc-bg:#fff; --cc-line:#e5e7eb; --cc-line-hi:#d1d5dc; --cc-vis:#f8fafc; --cc-vis-line:#eef0f3;
  --cc-title:#101828; --cc-text:#4a5565; --cc-faint:#6a7282; --cc-acc:#155dfc; --cc-acc-rgb:21,93,252;
  --cc-pill:#f3f4f6; --cc-pill-hi:#eff6ff; --cc-pill-line-hi:#bedbff; --cc-pill-text-hi:#155dfc;
  --cc-nob:#f3f4f6; --cc-on-acc:#fff; --cc-shadow:0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04); --cc-shadow-hi:0 12px 28px rgba(16,24,40,.08), 0 2px 6px rgba(16,24,40,.05);
  --fg-rgb:16,24,40;
}
.caps-grid .cap-card:hover{ background:var(--cc-bg); border-color:var(--cc-line-hi); transform:translateY(-4px); box-shadow:var(--cc-shadow-hi); }
.js .panel .caps-grid .cap-card{ clip-path:inset(100% 0 0 0 round 16px); }
.js .panel.in .caps-grid .cap-card{ clip-path:inset(0 0 0 0 round 16px); }
.js .panel.in.done .caps-grid .cap-card{ clip-path:none; }
.caps-grid .cap-vis{ background:var(--cc-vis); border:1px solid var(--cc-vis-line); box-shadow:none; border-radius:10px; }
.caps-grid .cap-num{ color:var(--cc-acc); }
.caps-grid .cap-link h3{ color:var(--cc-title); font-family:var(--font-display); font-weight:600; letter-spacing:0; }
.caps-grid .cap-desc{ color:var(--cc-text); }
.caps-grid .cap-related{ border-top:1px solid var(--cc-line); margin-top:auto; padding-top:12px; }
.caps-grid .cap-related .sheet-label{ color:var(--cc-faint); }
.caps-grid .cap-link .nob{ background:var(--cc-nob); color:var(--cc-title); box-shadow:inset 0 0 0 1px var(--cc-line); }
.caps-grid .cap-link:hover .nob{ background:var(--cc-acc); color:var(--cc-on-acc); box-shadow:none; }
.caps-grid .cap-rel{ background:var(--cc-pill); border:1px solid var(--cc-line); color:var(--cc-text); border-radius:999px; }
.caps-grid .cap-rel:hover{ background:var(--cc-pill-hi); border-color:var(--cc-pill-line-hi); color:var(--cc-pill-text-hi); }
.caps-grid .cap-rel:focus-visible, .caps-grid .cap-link:focus-visible{ outline:2px solid var(--cc-acc); outline-offset:3px; }
@media (max-width:760px){ .caps-grid .cap-card{ border-radius:14px; padding:8px 8px 14px; } }

/* ── 8px grid: capability cards and the contact form ─────────
   Sizes follow ui-ux-pro-max-skill.com: fixed px from the type scale,
   spacing in steps of 8 (4 for hairline gaps), 12px card corners. */
@media (min-width:901px){
  .caps-head{ margin-bottom:32px; }
  .caps-grid{ gap:24px; }
  .caps-grid .cap-card{ padding:16px 16px 24px; border-radius:12px; }
  .js .panel .caps-grid .cap-card{ clip-path:inset(100% 0 0 0 round 12px); }
  .js .panel.in .caps-grid .cap-card{ clip-path:inset(0 0 0 0 round 12px); }
  .caps-grid .cap-card > :not(.cap-vis){ margin-inline:8px; }
  .caps-grid .cap-vis{ height:96px; border-radius:8px; }
  .caps-grid .cap-num{ margin-top:16px; font-size:var(--fs-xs); }
  .caps-grid .cap-link{ margin-top:8px; gap:16px; }
  .caps-grid .cap-link h3{ font-size:var(--fs-xl); line-height:1.4; }
  .caps-grid .cap-link .nob{ width:32px; height:32px; }
  .caps-grid .cap-desc{ margin-top:8px; font-size:var(--fs-sm); line-height:1.6; }
  .caps-grid .cap-desc + .cap-desc{ margin-top:8px; }
  .caps-grid .cap-related{ padding-top:16px; margin-top:auto; gap:8px; }
  .caps-grid .cap-related .sheet-label{ font-size:var(--fs-xs); margin-bottom:0; }
  .caps-grid .cap-rel{ font-size:var(--fs-xs); padding:4px 12px; }
  :lang(en) .caps-grid .cap-link h3{ font-size:var(--fs-lg); }

  .contact-sheet{ padding:32px; border-radius:16px; }
  .contact-sheet .form-grid{ gap:16px 24px; }
  .contact-sheet input, .contact-sheet textarea{ border-radius:8px; }
  .contact-sheet .form-actions{ margin-top:24px; gap:24px; }
}
/* between tablet and laptop the story frame is short: a tighter form */
@media (min-width:901px) and (max-width:1279px){
  .contact-sheet{ padding:24px; }
  .contact-sheet .form-grid{ gap:8px 16px; }
  .contact-sheet input, .contact-sheet textarea{ margin-top:4px; min-height:40px; padding:8px 12px; }
  .contact-sheet textarea{ min-height:96px; }
  .contact-sheet .form-actions{ margin-top:16px; }
  .caps-grid{ gap:16px; }
  .caps-grid .cap-card{ padding:12px 12px 16px; }
  .caps-grid .cap-card > :not(.cap-vis){ margin-inline:4px; }
}

/* ── products intro: each device in its own card ─────────────────────────
   Same card as the capability cards: slate in the dark theme, white in the
   light theme, thin border, 12px corners, faint shadow, lift on hover. The
   device keeps floating inside the card. */
.filmstrip button{
  --fc-bg:#1e2939; --fc-line:#364153; --fc-line-hi:#4a5565; --fc-stage:#101828; --fc-text:#d1d5dc; --fc-title:#f1f5f9;
  --fc-shadow:0 1px 3px rgba(2,6,23,.3); --fc-shadow-hi:0 12px 28px rgba(2,6,23,.45);
}
html[data-theme="light"] .filmstrip button{
  --fc-bg:#fff; --fc-line:#e5e7eb; --fc-line-hi:#d1d5dc; --fc-stage:#f8fafc; --fc-text:#4a5565; --fc-title:#101828;
  --fc-shadow:0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04); --fc-shadow-hi:0 12px 28px rgba(16,24,40,.08), 0 2px 6px rgba(16,24,40,.05);
}
.filmstrip button, .filmstrip button:hover{
  display:flex; flex-direction:column; height:100%;
  background:var(--fc-bg); border:1px solid var(--fc-line); border-radius:12px; padding:12px 12px 16px;
  box-shadow:var(--fc-shadow);
  transition:transform .5s var(--ease-out), border-color .3s var(--ease), box-shadow .5s var(--ease);
}
.filmstrip button:hover{ transform:translateY(-4px); border-color:var(--fc-line-hi); box-shadow:var(--fc-shadow-hi); }
.filmstrip li{ height:100%; }
.filmstrip button .thumb{ background:var(--fc-stage); border-radius:8px; overflow:visible; }
.filmstrip button > span:last-child{ flex:1; display:flex; align-items:center; justify-content:center; min-height:2.7em;
  margin-top:12px; padding:0 4px; text-align:center; color:var(--fc-text); }
.filmstrip button:hover > span:last-child{ color:var(--fc-title); }
.filmstrip button:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
@media (max-width:900px){
  .story--prods.on .filmstrip button, .story--prods.on .filmstrip button:hover{ padding:6px 6px 8px; border-radius:10px; }
  .story--prods.on .filmstrip button .thumb{ border-radius:6px; }
  .story--prods.on .filmstrip button > span:last-child{ margin-top:6px; min-height:0; display:-webkit-box; }
}

/* the hero contact line and slogan are paragraphs (not headings) so the page
   outline starts at the h1; these keep the weight and spacing h2 gave them */
p.card-contact, p.slogan{ font-weight:500; }
.contact-address{ font-style:normal; display:contents; }
/* the beat layout positions direct children; the list sits one level down */
.story.on .beat > .contact-address > *{ position:absolute; }
.story:not(.on) .beat > .contact-address > *{ grid-column:1; }
@media (max-width:900px){ .story.on .beat > .contact-address > *{ position:relative; flex:none; } }

/* ── phones, English: the headline wraps to three lines and the address to
   three or four, so the column below the headline moves down to make room ── */
@media (max-width:900px){
  :lang(en) .stage{
    --enx:calc(90px - 56 * var(--u));                 /* room for the 3rd headline line */
    --eny:clamp(24px, calc(229px - 391 * var(--u)), 70px);   /* the address runs longer on narrow phones */
    height:calc(1625 * var(--u) + var(--enx) + var(--eny));
  }
  :lang(en) .stage .lede{ top:calc(300 * var(--u)); }
  :lang(en) .stage :is(.pill-clip, .stat, .knob-float, .hq-readout){ translate:0 var(--enx); }
  :lang(en) .stage .hq-readout.hq-readout--slogan{ translate:0 calc(var(--enx) + var(--eny)); }   /* the longer address */
}

/* ── phones: products progress rail and intro fit the screen ─────────────
   The rail is one row of six equal segments (it used to wrap, leaving 06
   alone on a second line). It hides on the intro, where the six product
   cards already are the index, so the cards never sit under it. */
@media (max-width:900px){
  .story.on .story-rail{ flex-wrap:nowrap; justify-content:space-between; gap:6px; left:16px; right:56px; }
  .story.on .story-rail span{ flex:1 1 0; min-width:0; gap:4px; }
  .story.on .story-rail span > i{ flex:1 1 auto; width:auto; min-width:6px; }
  .story.on .story-rail b{ letter-spacing:.04em; }
  .story--prods.on .story-rail{ transition:opacity .4s var(--ease); }
  .story--prods.on:has(.prods-intro[data-state="active"]) .story-rail{ opacity:0; pointer-events:none; }
  /* product views: the photo panel gives a little height back to the specs */
  .story--prods.on .prod > .sheet{ height:min(30svh, 280px); }
}
/* short phones: a more compact intro so all six cards are on screen */
@media (max-width:900px) and (max-height:760px){
  .story--prods.on .prods-intro{ padding-top:76px; gap:8px; }
  .story--prods.on .prods-intro .story-lede{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
  .story--prods.on .filmstrip{ margin-top:2px; }
  .story--prods.on .filmstrip .thumb{ aspect-ratio:auto; height:clamp(40px, 9svh, 72px); }
  .story--prods.on .filmstrip button > span:last-child{ -webkit-line-clamp:1; min-height:0; }
  .story--prods.on .prod > .sheet{ height:min(30svh, 240px); }
}
/* phones: the product photo fills its panel instead of floating in padding */
@media (max-width:900px){ .story--prods.on .prod .win img{ padding:6px; } }

/* ── custom mainboard: its spec values are long lists (chip vendors,
   systems, interfaces), so the list gets more width on desktop and a
   single column on phones ── */
@media (min-width:901px){
  .story--prods.on #product-testboard .pstats{ width:calc(700 * var(--u)); }
}
/* the values wrap to two lines: tighter rows, and the link sits a little lower */
@media (min-width:901px){
  .story--prods.on #product-testboard .pstats{ row-gap:10px; }
  .story--prods.on #product-testboard .text-link{ top:calc(740 * var(--u)); }
}
@media (max-width:900px) and (max-height:760px){
  .story--prods.on #product-testboard .pstats{ grid-template-columns:1fr; }
  .story--prods.on #product-testboard .beat-lede{ -webkit-line-clamp:2; }
  .story--prods.on #product-testboard > .sheet{ height:min(28svh, 230px); }
}
/* tall phones show all six specs: the mainboard photo panel gives up some height */
@media (max-width:900px) and (min-height:761px){
  .story--prods.on #product-testboard > .sheet{ height:min(24svh, 220px); }
}

/* ── product thumbnails: never collapse ──────────────────────────────────
   Browsers without aspect-ratio (iOS 14 and older WebViews) would give the
   thumbnail box no height, hiding the device; the padding box stands in. */
@supports not (aspect-ratio:1 / 1){
  .thumb{ height:0; padding-bottom:86%; }
  .sol-card .cap-vis, :lang(en) .sol-card .cap-vis{ height:0; padding-bottom:56.25%; }
}

/* the capability cards' compact illustration height (incl. :lang(en)) must not
   reach the solution cards, whose frames follow the screenshots' 16:9 */
.sol-card .cap-vis, :lang(en) .sol-card .cap-vis{ height:auto; }
@supports not (aspect-ratio:1 / 1){ .sol-card .cap-vis, :lang(en) .sol-card .cap-vis{ height:0; } }
