@import url('/assets/css/fonts.css');

/* ══════════════════════════════════════════════════════════════════════════
   WANGPAILI — "DISSOLVE"
   Art direction: industrial permanence (hard grids, machined edges, mono
   data) held against dissolution (erosion masks, drifting light, threads).
   Palette derives from the brand mark: shield blue #0064B1, gold #FFC761.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ink — the page is a dark room with water in it */
  --ink-950: #04090f;
  --ink-900: #07131f;
  --ink-850: #0a1a2a;
  --ink-800: #0d2135;
  --ink-700: #12293f;
  --ink-600: #1a3550;

  /* brand */
  --brand: #0064b1;
  --brand-lit: #1e8ae6;
  --brand-deep: #003f72;
  --gold: #ffc761;
  --gold-hi: #ffe7c0;
  --gold-deep: #e0a53c;
  --aqua: #35d6f0;
  --aqua-deep: #0e7490;

  /* text */
  --tx: #e9f1f9;
  --tx-dim: rgba(233, 241, 249, .66);
  --tx-mute: rgba(233, 241, 249, .42);
  --tx-faint: rgba(233, 241, 249, .22);
  --tx-ink: #06121e;

  /* lines & surfaces */
  --line: rgba(150, 200, 240, .13);
  --line-soft: rgba(150, 200, 240, .075);
  --line-lit: rgba(255, 199, 97, .38);
  --glass: rgba(12, 30, 48, .58);

  /* type */
  --f-display: 'Bricolage Grotesque', 'Satoshi', system-ui, sans-serif;
  --f-body: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --f-cjk: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Noto Sans SC', sans-serif;

  /* rhythm */
  --wrap: 1320px;
  --wrap-narrow: 900px;
  --gut: clamp(20px, 4.2vw, 52px);
  --sec-y: clamp(76px, 11vh, 150px);
  --r-sm: 4px;
  --r: 10px;
  --r-lg: 20px;

  /* motion */
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-inout: cubic-bezier(.65, 0, .35, 1);
  --e-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .22s;
  --t: .45s;
  --t-slow: .9s;
}

/* language-specific families --------------------------------------------
   Each CJK language needs its OWN fallback chain. Sharing one list meant a
   Chinese page fell through PingFang SC (macOS only) straight into Yu Gothic UI
   — a Japanese face — so Chinese text rendered in Japanese glyph forms, and
   simplified-only characters dropped further into Malgun Gothic (Korean).
   Regional font first, always. */
html[lang^="zh"] {
  --f-cjk: 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Hiragino Sans GB',
           'Source Han Sans SC', 'Noto Sans SC', sans-serif;
}
html[lang="ja"] {
  --f-cjk: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic',
           'Meiryo', 'Noto Sans JP', sans-serif;
}
html[lang="ko"] {
  --f-cjk: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
}
html[lang^="zh"], html[lang="ja"], html[lang="ko"] {
  --f-body: 'Satoshi', var(--f-cjk);
  --f-display: 'Bricolage Grotesque', var(--f-cjk);
  --f-mono: 'JetBrains Mono', var(--f-cjk);
}
/* Satoshi leads so Latin runs (part codes, temperatures, WANGPAILI) keep the
   site's own voice; Arabic glyphs fall through to Plex. */
html[lang="ar"] {
  --f-body: 'Satoshi', 'IBM Plex Sans Arabic', 'Noto Sans Arabic', system-ui, sans-serif;
  --f-display: 'Satoshi', 'IBM Plex Sans Arabic', 'Noto Sans Arabic', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;
}

/* ── reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* Any element with an author `display` rule (the drawer, filtered cards) would
   otherwise ignore the hidden attribute entirely. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink-950);
  color: var(--tx);
  font-family: var(--f-body);
  font-size: clamp(15.5px, .35vw + 14.4px, 17.5px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv01';
}
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--gold); color: var(--tx-ink); }

/* ── page grain + caustic wash (fixed, behind everything) ──────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    radial-gradient(120vw 70vh at 78% -10%, rgba(0, 100, 177, .20), transparent 62%),
    radial-gradient(80vw 60vh at 8% 108%, rgba(14, 116, 144, .16), transparent 60%);
}
body::after {
  content: '';
  position: fixed; inset: -50%;
  z-index: 9999;
  pointer-events: none;
  opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) }
  20% { transform: translate(-3%, 2%) }
  40% { transform: translate(2%, -3%) }
  60% { transform: translate(-2%, -2%) }
  80% { transform: translate(3%, 1%) }
}

/* ── layout primitives ─────────────────────────────────────────────────── */
.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; position: relative; z-index: 1; }
.wrap--narrow { max-width: var(--wrap-narrow); }
/* `clip` (not hidden) so sections still contain the oversized watermark glyph
   without turning into scroll containers or breaking position: sticky. */
.sec { padding-block: var(--sec-y); position: relative; overflow: clip; }
.sec--tight { padding-block: clamp(52px, 7vh, 92px); }
.sec--top0 { padding-top: 0; }
.sec--bot0 { padding-bottom: 0; }

/* alternating surface, with an eroded rather than hard top edge */
.sec--raised { background: linear-gradient(180deg, var(--ink-900), var(--ink-950) 92%); }
.sec--raised::before {
  content: '';
  position: absolute; inset-inline: 0; top: 0; height: 96px;
  background: linear-gradient(180deg, var(--ink-950), transparent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='96' preserveAspectRatio='none'%3E%3Cfilter id='e'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .06' numOctaves='4' seed='7'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='600' height='96' filter='url(%23e)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='96' preserveAspectRatio='none'%3E%3Cfilter id='e'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .06' numOctaves='4' seed='7'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0'/%3E%3C/filter%3E%3Crect width='600' height='96' filter='url(%23e)'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  pointer-events: none;
}

.grid { display: grid; gap: clamp(18px, 2.2vw, 34px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(30px, 5vw, 90px); align-items: start; }

@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .g2, .g3, .g4, .split { grid-template-columns: 1fr; } }

/* ── typography ────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--f-mono);
  font-size: clamp(10.5px, .62vw, 12px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; flex: none;
  background: linear-gradient(90deg, var(--gold), transparent);
}
html[dir="rtl"] .eyebrow::before { background: linear-gradient(270deg, var(--gold), transparent); }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: clamp(12px, .8vw, 14px); }

.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: -.032em;
  line-height: .95;
  text-wrap: balance;
}
html[lang="zh-CN"] .display, html[lang="ja"] .display, html[lang="ko"] .display,
html[lang="ar"] .display { font-stretch: normal; letter-spacing: -.01em; line-height: 1.18; }
/* CJK: break at punctuation rather than between the two halves of a word.
   keep-all does the work; `anywhere` is the escape hatch for a line that would
   otherwise overflow its column. */
html[lang="zh-CN"] .display, html[lang="ja"] .display, html[lang="ko"] .display {
  word-break: keep-all; overflow-wrap: anywhere; line-break: strict;
}

.d-xl { font-size: clamp(42px, 8.4vw, 122px); }
.d-lg { font-size: clamp(33px, 5.1vw, 72px); }
.d-md { font-size: clamp(25px, 3.1vw, 42px); }
.d-sm { font-size: clamp(19px, 1.7vw, 26px); letter-spacing: -.018em; line-height: 1.16; }

.lede { font-size: clamp(16.5px, 1.05vw, 20px); line-height: 1.6; color: var(--tx-dim); max-width: 62ch; text-wrap: pretty; }
/* a CJK character is twice as wide, so 62ch would run to a punishing measure */
html[lang="zh-CN"] .lede, html[lang="ja"] .lede, html[lang="ko"] .lede {
  max-width: 34em; line-height: 1.78; line-break: strict;
}
html[lang="ar"] .lede { max-width: 52ch; line-height: 1.8; }
.body-dim { color: var(--tx-dim); }
.mono { font-family: var(--f-mono); font-size: .82em; letter-spacing: .04em; }

/* Latin technical strings — part codes, temperatures, standards — must not be
   reordered by the bidi algorithm when the page direction is RTL.
   "0 RESIDUE" was rendering as "RESIDUE 0". */
.mono, .plate-k, .prod-code, .tag, .marquee-item, .card-n, .app-n, .news-date,
.stat b, .window-scale, .spec dd, .cert b, .tl b, .article-meta, .crumbs {
  unicode-bidi: isolate;
}
html[dir="rtl"] .plate-k, html[dir="rtl"] .marquee-item, html[dir="rtl"] .prod-code,
html[dir="rtl"] .card-n, html[dir="rtl"] .app-n, html[dir="rtl"] .window-scale {
  direction: ltr; text-align: right;
}
.gold { color: var(--gold); }
.aqua { color: var(--aqua); }

/* gold gradient text, lifted straight from the logo's shading */
.grad-gold {
  background: linear-gradient(103deg, #ffbc4e 6%, #fff7eb 29%, #ffcc6e 40%, #ffc862 60%, #fffffe 78%, #fec15f 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.sec-head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 68px); }
.sec-head .lede { margin-top: 20px; }
.sec-head--wide { max-width: 940px; }

/* a divider that erodes at both ends, with a slow gold glint travelling it */
.rule { position: relative; height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent); }
.rule::after {
  content: ''; position: absolute; top: -1px; left: 0; width: 22%; height: 3px;
  background: radial-gradient(closest-side, rgba(255,199,97,.75), transparent);
  animation: glint 9s var(--e-inout) infinite;
}
@keyframes glint { 0% { left: -22% } 55%, 100% { left: 100% } }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  --bg: transparent; --bd: var(--line); --fg: var(--tx);
  position: relative; display: inline-flex; align-items: center; gap: 11px;
  padding: 15px 27px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg); background: var(--bg);
  border: 1px solid var(--bd); border-radius: 100px;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color var(--t-fast) var(--e-out), border-color var(--t-fast), transform var(--t-fast) var(--e-out);
}
html[lang="ar"] .btn, html[lang="zh-CN"] .btn, html[lang="ja"] .btn, html[lang="ko"] .btn {
  font-family: var(--f-body); text-transform: none; letter-spacing: .02em; font-size: 14px; font-weight: 500;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--gold);
  transform: scaleX(0); transform-origin: var(--btn-origin, left);
  transition: transform .5s var(--e-out);
}
.btn:hover { color: var(--tx-ink); border-color: var(--gold); }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(1px); }
.btn .arw { transition: transform var(--t) var(--e-out); }
.btn:hover .arw { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arw { transform: translateX(-4px); }
html[dir="rtl"] .btn .arw { scale: -1 1; }

.btn--gold { --bg: var(--gold); --bd: var(--gold); --fg: var(--tx-ink); font-weight: 600; }
.btn--gold::before { background: var(--gold-hi); }
.btn--gold:hover { color: var(--tx-ink); }
.btn--solid { --bg: var(--brand); --bd: var(--brand); }
.btn--sm { padding: 10px 18px; font-size: 11.5px; }

.link-u {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--aqua); font-family: var(--f-mono); font-size: 13px; letter-spacing: .05em;
  padding: 5px 0 8px;
  background-image: linear-gradient(var(--aqua), var(--aqua));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: left bottom;
  transition: background-size var(--t) var(--e-out);
}
html[dir="rtl"] .link-u { background-position: right bottom; }
.link-u:hover { background-size: 100% 1px; }

/* ── header ────────────────────────────────────────────────────────────── */
.topbar {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  transition: background var(--t), backdrop-filter var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.topbar.is-stuck {
  background: rgba(4, 9, 15, .78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}
.topbar.is-hidden { transform: translateY(-100%); transition: transform .4s var(--e-out); }
.topbar-in {
  width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 38px; height: auto; }
.brand-tx { display: flex; flex-direction: column; line-height: 1; }
.brand-tx b { font-family: var(--f-display); font-weight: 700; font-stretch: 82%; font-size: 17px; letter-spacing: .01em; }
.brand-tx span { font-family: var(--f-mono); font-size: 9px; letter-spacing: .16em; color: var(--tx-mute); text-transform: uppercase; margin-top: 3px; }
html[lang="ar"] .brand-tx span { letter-spacing: 0; text-transform: none; font-size: 10px; }

.nav { display: flex; gap: clamp(4px, 1.2vw, 16px); margin-inline-start: auto; }
.nav a {
  position: relative; padding: 9px 12px; font-size: 14.5px; color: var(--tx-dim);
  transition: color var(--t-fast);
}
.nav a::after {
  content: ''; position: absolute; inset-inline: 12px; bottom: 2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: inherit;
  transition: transform .35s var(--e-out);
}
.nav a:hover { color: var(--tx); }
.nav a:hover::after, .nav a.is-cur::after { transform: scaleX(1); }
.nav a.is-cur { color: var(--tx); }

.topbar-act { display: flex; align-items: center; gap: 10px; flex: none; }

/* language switcher */
.langsel { position: relative; }
.langsel-btn {
  display: flex; align-items: center; gap: 8px; padding: 9px 13px;
  border: 1px solid var(--line); border-radius: 100px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--tx-dim);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.langsel-btn:hover, .langsel[open] .langsel-btn { border-color: var(--line-lit); color: var(--tx); }
.langsel-btn svg { transition: transform var(--t-fast); }
.langsel[open] .langsel-btn svg { transform: rotate(180deg); }
.langsel-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 178px;
  background: rgba(9, 24, 39, .96); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 7px; z-index: 10;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  animation: pop .24s var(--e-out);
}
@keyframes pop { from { opacity: 0; transform: translateY(-7px) } }
.langsel-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 13px; border-radius: 6px; font-size: 14.5px; color: var(--tx-dim);
  transition: background var(--t-fast), color var(--t-fast);
}
.langsel-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--tx); }
.langsel-menu a.is-cur { color: var(--gold); }
.langsel-menu a i { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; opacity: .5; font-style: normal; }
.langsel > summary { list-style: none; }
.langsel > summary::-webkit-details-marker { display: none; }

.burger { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 100px; }
.burger span { display: block; width: 17px; height: 1.5px; background: var(--tx); transition: transform var(--t) var(--e-out), opacity var(--t-fast); }
.burger span + span { margin-top: 4.5px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(4, 9, 15, .97); backdrop-filter: blur(24px);
  padding: 110px var(--gut) 40px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-14px);
  transition: opacity var(--t) var(--e-out), transform var(--t) var(--e-out), visibility var(--t);
  overflow-y: auto;
}
body.nav-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer a {
  font-family: var(--f-display); font-weight: 600; font-stretch: 86%;
  font-size: clamp(28px, 7vw, 42px); letter-spacing: -.02em;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: baseline; gap: 14px;
  opacity: 0; transform: translateY(14px);
}
body.nav-open .drawer a { animation: drawerIn .55s var(--e-out) forwards; }
.drawer a i { font-family: var(--f-mono); font-size: 11px; color: var(--gold); font-style: normal; opacity: .7; }
@keyframes drawerIn { to { opacity: 1; transform: none } }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .topbar-in { height: 68px; }
}
@media (max-width: 560px) { .brand-tx span { display: none; } }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; }
.hero-scroll { height: 320vh; }                 /* scrub runway */
.hero-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden;
  display: grid; place-items: center;
}
/* The frame canvas is scaled up slightly to hide edge softness; clip here,
   because a sticky ancestor's overflow does not contain a transformed child
   and the page would gain 29px of horizontal scroll. */
.hero-media { position: absolute; inset: 0; overflow: clip; }
.hero-media canvas, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
}
/* Three layers: a soft vignette, a top/bottom fade for the chrome, and — the
   important one — a scrim down the side the headline sits on. Without it the
   white type lands on the white label and becomes unreadable. */
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 8, 14, .92) 0%, rgba(3, 8, 14, .78) 26%, rgba(3, 8, 14, .28) 52%, transparent 72%),
    radial-gradient(75% 60% at 55% 46%, transparent 26%, rgba(4, 9, 15, .5) 100%),
    linear-gradient(180deg, rgba(4, 9, 15, .8) 0%, transparent 24%, transparent 54%, rgba(4, 9, 15, .94) 100%);
}
html[dir="rtl"] .hero-veil {
  background:
    linear-gradient(270deg, rgba(3, 8, 14, .92) 0%, rgba(3, 8, 14, .78) 26%, rgba(3, 8, 14, .28) 52%, transparent 72%),
    radial-gradient(75% 60% at 45% 46%, transparent 26%, rgba(4, 9, 15, .5) 100%),
    linear-gradient(180deg, rgba(4, 9, 15, .8) 0%, transparent 24%, transparent 54%, rgba(4, 9, 15, .94) 100%);
}
@media (max-width: 860px) {
  /* no room for a side scrim on a phone — darken the whole plate instead */
  .hero-veil, html[dir="rtl"] .hero-veil {
    background:
      linear-gradient(180deg, rgba(4, 9, 15, .84) 0%, rgba(4, 9, 15, .62) 34%, rgba(4, 9, 15, .72) 66%, rgba(4, 9, 15, .95) 100%);
  }
}
.hero-title, .hero-lede { text-shadow: 0 2px 26px rgba(2, 7, 12, .75), 0 1px 3px rgba(2, 7, 12, .5); }
.hero-fx { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .55; }

.hero-copy {
  position: relative; z-index: 2;
  width: min(100% - var(--gut) * 2, var(--wrap));
  margin-inline: auto;
  display: grid; align-content: center; gap: 26px;
  padding-block: 90px;
}
.hero-title { max-width: 15ch; }
.hero-title .ln { display: block; overflow: hidden; }
.hero-title .ln > span { display: block; }
.hero-lede { max-width: 50ch; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 8px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; align-self: start;
  padding: 8px 15px 8px 9px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--glass); backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--tx-dim);
}
html[lang="ar"] .hero-badge { letter-spacing: 0; font-family: var(--f-body); font-size: 13px; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(53, 214, 240, .16); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(53, 214, 240, 0) } }

/* four-step scrub readout pinned to the hero floor */
.hero-steps {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 3;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, transparent, rgba(4, 9, 15, .55));
}
.hero-steps-in {
  width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-step {
  padding: 17px 4px 20px; position: relative;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--tx-faint); transition: color .5s var(--e-out);
}
html[lang="ar"] .hero-step, html[lang="zh-CN"] .hero-step, html[lang="ja"] .hero-step, html[lang="ko"] .hero-step {
  font-family: var(--f-body); letter-spacing: .04em; text-transform: none; font-size: 13px;
}
.hero-step::before {
  content: ''; position: absolute; inset-inline: 0; top: -1px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: inherit;
  transition: transform .6s var(--e-out);
}
.hero-step.is-on { color: var(--tx); }
.hero-step.is-on::before { transform: scaleX(1); }
.hero-step i { font-style: normal; color: var(--gold); margin-inline-end: 9px; opacity: .55; }

.hero-scrollcue {
  position: absolute; inset-inline-end: var(--gut); bottom: 88px; z-index: 3;
  writing-mode: vertical-rl; font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--tx-mute);
  display: flex; align-items: center; gap: 14px;
}
.hero-scrollcue::after { content: ''; width: 1px; height: 54px; background: linear-gradient(var(--tx-faint), transparent); }

/* Motion that runs longer than five seconds needs a way to stop it. */
.hero-toggle {
  position: absolute; inset-inline-end: var(--gut); bottom: 22px; z-index: 4;
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--glass); backdrop-filter: blur(10px);
  color: var(--tx-dim);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.hero-toggle:hover { color: var(--gold); border-color: var(--line-lit); }
.hero-toggle svg { fill: currentColor; }
.hero-toggle .i-play { display: none; }
.hero-toggle.is-paused .i-pause { display: none; }
.hero-toggle.is-paused .i-play { display: block; }
@media (max-width: 860px) { .hero-toggle { bottom: 80px; width: 42px; height: 42px; } }

@media (max-width: 860px) { .hero-scrollcue { display: none; } .hero-steps-in { grid-template-columns: repeat(2, 1fr); } }

/* ── stats ─────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft); }
.stat { background: var(--ink-950); padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 30px); }
.stat b {
  display: block; font-family: var(--f-display); font-weight: 700; font-stretch: 80%;
  font-size: clamp(36px, 4.4vw, 62px); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 12px; font-size: 13.5px; color: var(--tx-mute); line-height: 1.35; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ── cards ─────────────────────────────────────────────────────────────── */
.card {
  position: relative; background: var(--ink-850);
  border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: clamp(24px, 2.4vw, 36px);
  overflow: hidden; isolation: isolate;
  transition: border-color var(--t) var(--e-out), transform var(--t) var(--e-out), background var(--t);
}
.card::before {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform .6s var(--e-out);
}
.card:hover { border-color: var(--line); transform: translateY(-4px); background: var(--ink-800); }
.card:hover::before { transform: scaleX(1); }
.card-n { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; color: var(--gold); opacity: .7; }
.card h3 { margin: 18px 0 12px; }
.card p { color: var(--tx-dim); font-size: 15.5px; }

/* machined "spec plate" — notched corner, mono label */
.plate {
  position: relative; background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--line-soft);
  padding: clamp(22px, 2.2vw, 32px);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: border-color var(--t);
}
html[dir="rtl"] .plate { clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.plate:hover { border-color: var(--line-lit); }
.plate-k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--tx-mute); }
.plate h3 { margin: 14px 0 10px; }

/* ── product cards ─────────────────────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(16px, 1.6vw, 26px); }
.prod {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line-soft); border-radius: var(--r);
  background: var(--ink-900); overflow: hidden; isolation: isolate;
  transition: border-color var(--t), transform var(--t) var(--e-out);
}
.prod:hover { border-color: var(--line); transform: translateY(-5px); }
.prod-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-800); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--e-out), filter .6s; filter: saturate(.85) contrast(1.05); }
.prod:hover .prod-img img { transform: scale(1.07); filter: saturate(1) contrast(1.05); }
.prod-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(7, 19, 31, .92));
}
/* Signature interaction: hovering a product erodes a caustic gold shimmer
   across the image through a turbulence mask — the brand idea (dissolving)
   expressed as a micro-interaction rather than a decoration. */
.prod-img::before {
  content: ''; position: absolute; inset: -20%; z-index: 1;
  background:
    radial-gradient(60% 80% at 30% 20%, rgba(255, 199, 97, .55), transparent 60%),
    radial-gradient(70% 70% at 75% 70%, rgba(53, 214, 240, .45), transparent 62%);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.028' numOctaves='4' seed='11'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.6 0 0 0 -.42'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23d)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.028' numOctaves='4' seed='11'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.6 0 0 0 -.42'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23d)'/%3E%3C/svg%3E");
  -webkit-mask-size: 190% 190%; mask-size: 190% 190%;
  opacity: 0; mix-blend-mode: screen;
  transition: opacity .55s var(--e-out);
  pointer-events: none;
}
.prod:hover .prod-img::before { opacity: .85; animation: drift 9s linear infinite; }
@keyframes drift {
  from { -webkit-mask-position: 0% 0%; mask-position: 0% 0% }
  to { -webkit-mask-position: 100% 100%; mask-position: 100% 100% }
}
.prod-code {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px; z-index: 2;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  padding: 5px 10px; border-radius: 3px;
  background: rgba(4, 9, 15, .66); backdrop-filter: blur(6px);
  border: 1px solid var(--line); color: var(--gold);
}
.prod-body { padding: 22px clamp(20px, 2vw, 26px) 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.prod-body h3 { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.22; letter-spacing: -.015em; font-weight: 700; }
/* the whole card is the hit area, so the link box itself needs no min height */
.prod-body h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.prod { position: relative; }
.prod-tag { color: var(--tx-mute); font-size: 14.5px; line-height: 1.45; flex: 1; }
.prod-meta { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding-top: 15px; border-top: 1px solid var(--line-soft); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--tx-faint); }
.prod-meta .temp { color: var(--aqua); }
.prod-go { margin-inline-start: auto; transition: transform var(--t) var(--e-out); }
.prod:hover .prod-go { transform: translateX(4px); }
html[dir="rtl"] .prod-go { scale: -1 1; }
html[dir="rtl"] .prod:hover .prod-go { transform: translateX(-4px); }
.prod::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 0 var(--gold); transition: box-shadow var(--t); }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: clamp(26px, 3vw, 42px); }
.filters button {
  padding: 9px 18px; border: 1px solid var(--line-soft); border-radius: 100px;
  font-size: 13.5px; color: var(--tx-mute);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.filters button:hover { color: var(--tx); border-color: var(--line); }
.filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--tx-ink); font-weight: 600; }

/* ── spec table ────────────────────────────────────────────────────────── */
.spec { border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 18px; padding: 15px 2px; border-bottom: 1px solid var(--line-soft); }
.spec dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-mute); padding-top: 3px; }
html[lang="ar"] .spec dt, html[lang="zh-CN"] .spec dt, html[lang="ja"] .spec dt, html[lang="ko"] .spec dt {
  font-family: var(--f-body); letter-spacing: .02em; text-transform: none; font-size: 13.5px;
}
.spec dd { margin: 0; font-size: 15.5px; color: var(--tx); }
@media (max-width: 620px) { .spec div { grid-template-columns: 1fr; gap: 5px; } }

/* comparison table */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r); }
.cmp { min-width: 660px; font-size: 15px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: start; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.cmp thead th { background: var(--ink-850); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-dim); font-weight: 400; }
html[lang="ar"] .cmp thead th { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: 14px; }
.cmp tbody th { color: var(--tx-mute); font-weight: 400; font-size: 14px; width: 24%; }
.cmp td:last-child { color: var(--gold-hi); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: rgba(255, 255, 255, .022); }

/* ── mechanism / process steps ─────────────────────────────────────────── */
.steps { counter-reset: s; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.steps.g4 { grid-template-columns: repeat(4, 1fr); }
.steps.g3 { grid-template-columns: repeat(3, 1fr); }
.step { background: var(--ink-900); padding: clamp(24px, 2.4vw, 34px); position: relative; transition: background var(--t); }
.step:hover { background: var(--ink-850); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--gold); opacity: .65;
}
.step h3 { margin: 16px 0 11px; font-size: clamp(17px, 1.3vw, 21px); letter-spacing: -.012em; }
.step p { color: var(--tx-dim); font-size: 15px; }

/* The ordering journey doubles as a route back to the enquiry form. */
.steps--link .step { display: block; text-decoration: none; }
.step-go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--gold);
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--t) var(--e-out), transform var(--t) var(--e-out);
}
html[lang="ar"] .step-go, html[lang="zh-CN"] .step-go, html[lang="ja"] .step-go, html[lang="ko"] .step-go {
  font-family: var(--f-body); letter-spacing: .02em; font-size: 13px;
}
.steps--link .step:hover .step-go, .steps--link .step:focus-visible .step-go { opacity: 1; transform: none; }
.steps--link .step::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: inherit;
  transition: transform .45s var(--e-out);
}
.steps--link .step:hover::after, .steps--link .step:focus-visible::after { transform: scaleX(1); }
@media (max-width: 980px) { .steps.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps.g4, .steps.g3 { grid-template-columns: 1fr; } }

/* ── marquee ───────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line-soft); padding-block: 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%) } }
html[dir="rtl"] .marquee-track { animation-direction: reverse; }
.marquee-item { display: flex; align-items: center; gap: 14px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-mute); white-space: nowrap; }
html[lang="ar"] .marquee-item { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: 15px; }
.marquee-item::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: .5; }

/* ── application list ──────────────────────────────────────────────────── */
.apps-list { border-top: 1px solid var(--line-soft); }
.app-row {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1.25fr) auto;
  gap: clamp(14px, 2.4vw, 40px); align-items: baseline;
  padding: clamp(22px, 2.4vw, 32px) 4px;
  border-bottom: 1px solid var(--line-soft);
  position: relative; transition: padding-inline var(--t) var(--e-out);
}
.app-row::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 100, 177, .16), transparent 70%);
  opacity: 0; transition: opacity var(--t);
}
html[dir="rtl"] .app-row::before { background: linear-gradient(270deg, rgba(0, 100, 177, .16), transparent 70%); }
.app-row:hover { padding-inline-start: 18px; }
.app-row:hover::before { opacity: 1; }
.app-n { font-family: var(--f-mono); font-size: 11.5px; color: var(--gold); opacity: .6; }
.app-row h3 { font-size: clamp(19px, 1.9vw, 27px); letter-spacing: -.02em; line-height: 1.16; }
.app-row p { color: var(--tx-dim); font-size: 15px; }
.app-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; padding: 4px 9px;
  border: 1px solid var(--line-soft); border-radius: 3px; color: var(--tx-faint);
  white-space: nowrap; max-width: 100%; overflow-wrap: anywhere; }
/* long localised product names must wrap rather than push the page sideways */
@media (max-width: 620px) { .tag { white-space: normal; } }
a.tag { transition: color var(--t-fast), border-color var(--t-fast); }
a.tag:hover { color: var(--gold); border-color: var(--line-lit); }
@media (max-width: 940px) {
  .app-row { grid-template-columns: 42px 1fr; }
  .app-row p { grid-column: 2; }
  .app-tags { grid-column: 2; justify-content: flex-start; margin-top: 6px; }
}

/* ── figures ───────────────────────────────────────────────────────────── */
.fig { position: relative; overflow: hidden; border-radius: var(--r); background: var(--ink-850); }
.fig img { width: 100%; height: 100%; object-fit: cover; }
.fig--tall { aspect-ratio: 3 / 4; }
.fig--wide { aspect-ratio: 16 / 9; }
.fig--sq { aspect-ratio: 1; }
.fig figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 40px 22px 18px;
  background: linear-gradient(transparent, rgba(4, 9, 15, .9));
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx-dim);
}
html[lang="ar"] .fig figcaption { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: 13px; }

/* lazy image fade-in over the LQIP */
.lz { opacity: 0; transition: opacity .7s var(--e-out); }
.lz.is-in { opacity: 1; }

/* giant background glyph */
.watermark {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--f-cjk); font-weight: 700;
  font-size: clamp(200px, 34vw, 560px); line-height: .8;
  color: rgba(150, 200, 240, .028);
  inset-inline-end: -.08em; top: -.14em;
}

/* ── news ──────────────────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(18px, 2vw, 30px); }
.news-card { display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; background: var(--ink-900); transition: border-color var(--t), transform var(--t) var(--e-out); }
.news-card:hover { border-color: var(--line); transform: translateY(-4px); }
.news-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-800); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--e-out); }
.news-card:hover .news-cover img { transform: scale(1.06); }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.news-date { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--gold); opacity: .75; }
.news-body h3 { font-size: 18.5px; line-height: 1.28; letter-spacing: -.012em; }
.news-body h3 a::after { content: ''; position: absolute; inset: 0; }
.news-card { position: relative; }
.news-excerpt { color: var(--tx-mute); font-size: 14.5px; line-height: 1.55; flex: 1; }
.news-more { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--aqua); }

.article { width: min(100% - var(--gut) * 2, 780px); margin-inline: auto; padding-top: clamp(120px, 16vh, 190px); }
.article-title { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.028em; margin: 20px 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--tx-mute); padding-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.article-cover { margin: 34px 0; border-radius: var(--r); overflow: hidden; }
.article-body { font-size: 17.5px; line-height: 1.78; color: var(--tx-dim); }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 { font-family: var(--f-display); font-weight: 700; font-stretch: 88%; font-size: 1.55em; line-height: 1.2; letter-spacing: -.02em; color: var(--tx); margin-top: 1.8em; }
.article-body h3 { font-size: 1.22em; color: var(--tx); margin-top: 1.6em; }
.article-body a { color: var(--aqua); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body strong { color: var(--tx); }
.article-body ul { list-style: disc; padding-inline-start: 1.3em; }
.article-body li + li { margin-top: .5em; }
.article-body blockquote { border-inline-start: 2px solid var(--gold); padding: 4px 0 4px 22px; color: var(--tx-mute); font-style: italic; }
html[dir="rtl"] .article-body blockquote { padding: 4px 22px 4px 0; }
.article-body img { border-radius: var(--r); margin-block: 1.6em; }

.crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--tx-mute); }
.crumbs a:hover { color: var(--gold); }
.crumbs i { opacity: .4; font-style: normal; }

.pager { display: flex; gap: 7px; justify-content: center; margin-top: 52px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 6px; font-family: var(--f-mono); font-size: 13px; color: var(--tx-mute); transition: all var(--t-fast); }
.pager a:hover { border-color: var(--gold); color: var(--gold); }
.pager .is-cur { background: var(--gold); border-color: var(--gold); color: var(--tx-ink); }

/* ── page hero (inner pages) ───────────────────────────────────────────── */
.page-hero { position: relative; padding-top: clamp(140px, 20vh, 220px); padding-bottom: clamp(46px, 7vh, 86px); overflow: hidden; }
.page-hero .lede { margin-top: 24px; }
.page-hero-bg { position: absolute; inset: 0; z-index: -1; opacity: .3; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,9,15,.9), var(--ink-950) 88%); }

/* ── forms ─────────────────────────────────────────────────────────────── */
/* jumped to from the ordering steps — clear the sticky header, then flash */
.form { display: grid; gap: 18px; scroll-margin-top: 110px; border-radius: var(--r); }
.form:target, .form.is-flash { animation: formFlash 1.5s var(--e-out); }
@keyframes formFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 199, 97, 0) }
  22% { box-shadow: 0 0 0 10px rgba(255, 199, 97, .1), 0 0 40px rgba(255, 199, 97, .18) }
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--tx-mute); }
html[lang="ar"] .field label, html[lang="zh-CN"] .field label, html[lang="ja"] .field label, html[lang="ko"] .field label {
  font-family: var(--f-body); letter-spacing: .02em; text-transform: none; font-size: 13px;
}
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(255, 255, 255, .028);
  border: 1px solid var(--line-soft); border-radius: 6px;
  font-size: 15.5px; color: var(--tx);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2394a8bd' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 42px; }
html[dir="rtl"] .field select { background-position: left 16px center; padding-inline-end: 16px; padding-inline-start: 42px; }
.field option { background: var(--ink-800); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: rgba(255, 255, 255, .05); outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--tx-faint); }
.field.has-error input, .field.has-error textarea { border-color: #e0645c; }
.field-err { font-size: 12.5px; color: #ff9b93; }
/* Off-screen by clipping, never by a huge negative offset: under RTL a
   -9999px inset makes the document ten thousand pixels wide. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; border: 0; padding: 0;
  font-size: 0; clip-path: inset(50%); opacity: 0; pointer-events: none; }

.form-note { font-size: 13px; color: var(--tx-faint); }
.form-msg { padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-850); }
.form-msg.ok { border-color: rgba(53, 214, 240, .4); }
.form-msg.bad { border-color: rgba(224, 100, 92, .5); }
.form-msg h3 { margin-bottom: 7px; font-size: 18px; }
.form-msg p { color: var(--tx-dim); font-size: 15px; }

/* ── contact tiles ─────────────────────────────────────────────────────── */
.ct-list { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.ct { background: var(--ink-900); padding: 22px 24px; display: grid; gap: 6px; transition: background var(--t); }
.ct:hover { background: var(--ink-850); }
.ct dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--tx-mute); }
html[lang="ar"] .ct dt { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.ct dd { margin: 0; font-size: 16px; }
.ct dd a { display: inline-block; padding-block: 4px; }
.ct dd a:hover { color: var(--gold); }

/* ── footer ────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line-soft); padding-top: clamp(56px, 7vw, 86px); margin-top: clamp(60px, 9vh, 120px); position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.footer-brand { max-width: 34ch; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { color: var(--tx-mute); font-size: 14.5px; }
.footer .foot-h { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--tx-mute); margin-bottom: 14px; font-weight: 400; }
html[lang="ar"] .footer .foot-h { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: 13px; }
.footer li + li { margin-top: 4px; }
.footer li a { display: inline-block; padding-block: 5px; font-size: 14.5px; color: var(--tx-dim); transition: color var(--t-fast); }
.footer li a:hover { color: var(--gold); }
.footer-bot {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  margin-top: clamp(44px, 6vw, 70px); padding-block: 26px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--tx-faint);
}
.footer-bot a:hover { color: var(--gold); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

.totop { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
html[lang="ar"] .totop { font-family: var(--f-body); letter-spacing: 0; text-transform: none; font-size: 13px; }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; border-block: 1px solid var(--line-soft); padding-block: clamp(60px, 9vw, 118px); }
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 130% at 50% 118%, rgba(0, 100, 177, .34), transparent 68%),
    radial-gradient(46% 90% at 88% -10%, rgba(255, 199, 97, .13), transparent 70%);
}
.cta-band .wrap { text-align: center; display: grid; justify-items: center; gap: 22px; }
.cta-band .lede { margin-inline: auto; }

/* ── reveal animations ─────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--e-out), transform .85s var(--e-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.05s var(--e-out); }
html[dir="rtl"] [data-reveal="clip"] { clip-path: inset(0 0 0 100%); }
[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
[data-reveal] [data-stagger] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--e-out), transform .7s var(--e-out); }
[data-reveal].is-in [data-stagger] { opacity: 1; transform: none; }

/* per-line masked headline reveal */
.ln { overflow: hidden; display: block; }
.ln > span { display: block; transform: translateY(105%); transition: transform 1.05s var(--e-out); }
.is-in .ln > span, .ln.is-in > span { transform: none; }

/* ── temperature window widget (technology page) ───────────────────────── */
.window {
  border: 1px solid var(--line-soft); border-radius: var(--r);
  background: linear-gradient(160deg, var(--ink-850), var(--ink-900));
  padding: clamp(24px, 3vw, 40px);
}
.window-vis { position: relative; height: 190px; border-radius: 8px; overflow: hidden; background: var(--ink-950); border: 1px solid var(--line-soft); }
.window-vis canvas { width: 100%; height: 100%; }
.window-scale { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--tx-faint); }
.window-ctl { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.window-ctl input[type="range"] { flex: 1; appearance: none; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--gold), #ff7a45);
  /* thin visual rail, comfortable hit area */
  padding-block: 14px; background-clip: content-box; box-sizing: content-box; cursor: pointer; }
html[dir="rtl"] .window-ctl input[type="range"] { background: linear-gradient(270deg, var(--aqua), var(--gold), #ff7a45); }
.window-ctl input[type="range"]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--tx); border: 3px solid var(--ink-950); box-shadow: 0 0 0 1px var(--line); cursor: grab; }
.window-ctl input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--tx); border: 3px solid var(--ink-950); cursor: grab; }
.window-read { min-width: 148px; text-align: end; }
.window-read b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.window-read span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--tx-mute); }
@media (max-width: 620px) { .window-ctl { flex-direction: column; align-items: stretch; gap: 14px; } .window-read { text-align: start; } }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0;
  font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -.014em; font-weight: 500;
  position: relative; transition: color var(--t-fast);
}
html[dir="rtl"] .faq summary { padding: 24px 0 24px 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; inset-inline-end: 8px; top: 50%; width: 13px; height: 13px;
  margin-top: -6px;
  background:
    linear-gradient(var(--gold), var(--gold)) center/100% 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center/1.5px 100% no-repeat;
  transition: transform var(--t) var(--e-out);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--gold); }
.faq-a { padding: 0 clamp(0px, 6vw, 90px) 26px 0; color: var(--tx-dim); font-size: 16px; max-width: 76ch; }
html[dir="rtl"] .faq-a { padding: 0 0 26px clamp(0px, 6vw, 90px); }

/* ── timeline ──────────────────────────────────────────────────────────── */
.tl { position: relative; padding-inline-start: 30px; }
.tl::before { content: ''; position: absolute; inset-block: 8px 8px; inset-inline-start: 0; width: 1px; background: linear-gradient(var(--gold), var(--line-soft) 60%, transparent); }
.tl li { position: relative; padding-bottom: 34px; }
.tl li::before { content: ''; position: absolute; inset-inline-start: -34px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-950); border: 1.5px solid var(--gold); }
.tl b { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--gold); display: block; margin-bottom: 8px; }
.tl p { color: var(--tx-dim); font-size: 15.5px; }

/* ── cert chips ────────────────────────────────────────────────────────── */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cert { border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 20px 22px; display: grid; gap: 7px; transition: border-color var(--t), background var(--t); }
.cert:hover { border-color: var(--line-lit); background: rgba(255, 199, 97, .035); }
.cert b { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; color: var(--gold); }
.cert span { font-size: 13.5px; color: var(--tx-mute); line-height: 1.4; }

/* ── utility ───────────────────────────────────────────────────────────── */
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); z-index: 999; }
.skip:focus {
  width: auto; height: auto; clip-path: none; overflow: visible;
  inset-inline-start: 12px; top: 12px; padding: 13px 20px;
  background: var(--gold); color: var(--tx-ink); border-radius: 6px; font-weight: 600;
}
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* header CTA is dropped once the nav collapses to the burger */
.hide-sm { display: inline-flex; }
@media (max-width: 1080px) { .hide-sm { display: none; } }
.stack { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.row { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.mt-l { margin-top: clamp(32px, 4vw, 56px); }
.mt-xl { margin-top: clamp(46px, 6vw, 84px); }
.center { text-align: center; }

/* ── cross-document view transitions ──────────────────────────────────────
   Browsers that support it get a soft cross-fade between pages instead of a
   white flash; everywhere else this block is simply ignored. */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
.footer { view-transition-name: footer; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vtOut .28s var(--e-inout) both; }
  ::view-transition-new(root) { animation: vtIn .42s var(--e-out) both; }
}
@keyframes vtOut { to { opacity: 0; transform: scale(.995) } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px) } }

/* ── scroll progress rail ─────────────────────────────────────────────────
   Driven by a scroll-linked animation, so there is no scroll listener and no
   layout thrash. Falls back to an invisible 0-width bar.  */
.progress {
  position: fixed; inset-inline: 0; top: 0; height: 2px; z-index: 210;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--brand-lit), var(--gold) 70%, var(--gold-hi));
  transform: scaleX(0);
  pointer-events: none;
}
html[dir="rtl"] .progress { transform-origin: right center; }
@supports (animation-timeline: scroll()) {
  .progress {
    animation: progressGrow linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes progressGrow { from { transform: scaleX(0) } to { transform: scaleX(1) } }

/* ── first-paint settle ───────────────────────────────────────────────────
   A single short fade so the page arrives rather than snapping in. Kept under
   half a second so it never reads as a loading delay. */
@media (prefers-reduced-motion: no-preference) {
  body { animation: pageIn .5s var(--e-out) both; }
}
@keyframes pageIn { from { opacity: 0 } }

/* ── motion / data preferences ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .ln > span { transform: none !important; }
  body::after { animation: none; }
  .hero-scroll { height: auto; }
  .hero-stage { position: static; height: auto; min-height: 88vh; }
}

@media print {
  body { background: #fff; color: #000; }
  .topbar, .drawer, .hero-media, .hero-fx, .cta-band, .footer { display: none !important; }
}
