/* Balmair cinema edition. The page is a quiet night, told in chapters:
   polar-night ground, ice type, one glacier accent, film grain you feel
   rather than see. All motion is user-driven or one-shot. */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
}

:root {
  --night: #050E14;
  --ink: #0A1B24;
  --panel: #0E2430;
  --ice: #F3F8FA;
  --ice-dim: rgba(243, 248, 250, 0.66);
  --ice-faint: rgba(243, 248, 250, 0.42);
  --hairline: rgba(243, 248, 250, 0.13);
  --hairline-soft: rgba(243, 248, 250, 0.07);
  --accent: #0B7FA6;
  --accent-ice: #7FC8E0;
  --accent-deep: #075E7D;
  --warn: #D9923B;
  --warn-soft: #F2CB9B;
  --bad: #E86A5E;
  --bad-soft: #F2B8B2;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.65;
  color: var(--ice); background: var(--night);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ice); text-decoration: none; }
p { margin: 0 0 16px; }
::selection { background: rgba(11, 127, 166, 0.35); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
section[id] { scroll-margin-top: 80px; }

/* film grain, felt not seen */
.grain {
  position: fixed; inset: -50%; z-index: 3; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.032;
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center;
  background: var(--night);
}
html.js .loader.on { display: flex; }
.loader .li { width: 320px; opacity: 0; transform: translateY(14px); animation: lin 0.6s var(--ease) 0.05s forwards; }
@keyframes lin { to { opacity: 1; transform: none; } }
.loader.off { animation: lfade 0.4s ease 0.75s forwards; }
@keyframes lrise { to { transform: none; } }
@keyframes lfade { to { opacity: 0; visibility: hidden; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transition: background 250ms ease, box-shadow 250ms ease;
}
.nav.scrolled { background: rgba(5, 14, 20, 0.97); box-shadow: 0 1px 0 var(--hairline-soft); }
.nav-inner { display: flex; align-items: center; gap: 26px; height: 72px; }
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { display: block; height: 27px; width: auto; }
footer .wordmark img { height: 23px; }
.wordmark .dot { color: var(--accent-ice); }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a:not(.btn) {
  color: var(--ice-dim); font-size: 14px; font-weight: 600; white-space: nowrap;
  background: linear-gradient(var(--accent-ice), var(--accent-ice)) no-repeat 0 100% / 0 1px;
  transition: color 140ms ease, background-size 220ms var(--ease);
  padding: 4px 0;
}
.nav-links a:not(.btn):hover { color: var(--ice); background-size: 100% 1px; }
.lang { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ice-faint); white-space: nowrap; }
.lang a { color: var(--ice-faint); padding: 8px 2px; }
.lang a.on, .lang a:hover { color: var(--accent-ice); }
.lang span { color: var(--ice-faint); padding: 8px 2px; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: 1px solid var(--hairline); border-radius: var(--r-s);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ice); transition: transform 200ms var(--ease), opacity 150ms ease; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav.open { background: var(--night); }
.nav.open .nav-links {
  display: flex; flex-direction: column; align-items: stretch;
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--night); padding: 20px 32px 40px; gap: 0; overflow: auto;
}
.nav.open .nav-links > a:not(.btn) {
  display: block; font-size: 22px; font-weight: 700; color: var(--ice);
  padding: 18px 0; border-bottom: 1px solid var(--hairline-soft); background: none;
}
.nav.open .lang { display: flex; align-items: center; gap: 4px; margin-top: 24px; font-size: 15px; }
.nav.open .lang a, .nav.open .lang span { font-size: 15px; padding: 10px 4px; border: none; }
.nav.open .nav-cta { margin-top: 26px; align-self: flex-start; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: var(--r-s);
  font-size: 16px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.5;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-ice); outline-offset: 2px;
}
.btn-ice { background: var(--ice); color: var(--ink); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 14px 34px rgba(0, 0, 0, 0.4); }
.btn-ice:hover { background: #DCEBF2; }
.btn-ghost { background: transparent; color: var(--ice); border-color: var(--hairline); }
.btn-ghost:hover { background: rgba(11, 127, 166, 0.10); border-color: rgba(127, 200, 224, 0.40); color: var(--ice); }
.nav .btn { min-height: 44px; padding: 10px 20px; font-size: 14px; }

/* ---------- chapter rail ---------- */
.rail {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%);
  z-index: 30; display: none; flex-direction: column; gap: 14px; align-items: flex-start;
}
@media (min-width: 1180px) { html.js .rail { display: flex; } }
.rail a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: rgba(243, 248, 250, 0.6); transition: color 160ms ease;
  display: flex; align-items: center; gap: 10px;
}
.rail a::before { content: ""; width: 14px; height: 1px; background: var(--ice-faint); transition: width 200ms var(--ease), background 160ms ease; }
.rail a.on { color: var(--accent-ice); }
.rail a.on::before { width: 26px; background: var(--accent-ice); }
.rail a span { opacity: 0; transform: translateX(-4px); transition: opacity 180ms ease, transform 180ms var(--ease); }
.rail a:hover span { opacity: 1; transform: none; }

/* ---------- reveals ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js [data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
html.js [data-stagger].in > * { opacity: 1; transform: none; }
html.js [data-stagger].in > *:nth-child(2) { transition-delay: 90ms; }
html.js [data-stagger].in > *:nth-child(3) { transition-delay: 180ms; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice-dim);
  margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--accent-ice); }
.chapter-no {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--accent-ice); margin-bottom: 26px; display: block;
}
h1 {
  font-size: clamp(58px, 8.4vw, 126px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 0.98; margin: 0 0 38px;
}
h1 .accent, h2 .accent { color: var(--accent-ice); }
h1 .l2 { display: block; }
h2 {
  font-size: clamp(40px, 5vw, 72px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.04; margin: 0 0 34px; max-width: 20ch;
}
.sub { font-size: clamp(17px, 1.4vw, 20px); color: var(--ice-dim); max-width: 56ch; margin-bottom: 22px; }
.lede { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.6; max-width: 46ch; color: var(--ice); font-weight: 500; margin-bottom: 26px; }
html.js .fill-text .w { opacity: 0.24; transition: opacity 90ms linear; }
html.js .fill-text .w.lit { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding-top: 96px; }
.hero-bg { position: absolute; inset: 0; margin: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 14, 20, 0.62) 0%, rgba(5, 14, 20, 0.18) 34%, rgba(5, 14, 20, 0.55) 68%, rgba(5, 14, 20, 0.94) 100%),
    radial-gradient(90% 70% at 24% 78%, rgba(5, 14, 20, 0.66) 0%, transparent 70%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(56px, 8vh, 96px); width: 100%; }
.hero-specs { display: flex; gap: 30px; flex-wrap: wrap; margin: 46px 0 0; padding: 0; }
.hero-specs span {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ice-dim); display: inline-flex; align-items: center; gap: 10px;
}
.hero-specs span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-ice); }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 44px; }
.hero-cap { position: absolute; right: 32px; bottom: 18px; z-index: 2; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: rgba(243, 248, 250, 0.58); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ice-faint);
  display: none;
}
@media (min-width: 1280px) { .scroll-cue { display: block; } }
.hero-meter {
  position: absolute; right: 32px; top: 96px; z-index: 2;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--ice-dim); text-align: right; display: none;
}
@media (min-width: 1100px) { .hero-meter { display: block; } }
.hero-meter b { display: block; font-size: 44px; font-weight: 500; letter-spacing: -0.02em; color: var(--ice); font-variant-numeric: tabular-nums; }
.hero-meter-m {
  display: none; margin: 30px 0 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ice-dim);
}
.hero-meter-m b { display: block; font-size: 40px; font-weight: 500; letter-spacing: -0.02em; color: var(--ice); font-variant-numeric: tabular-nums; }
.hero-meter-m small { font-size: 11px; color: var(--ice-faint); letter-spacing: 0.14em; }
@media (max-width: 1099px) { .hero-meter-m { display: block; } }
.hero-meter small { font-size: 11px; color: var(--ice-faint); letter-spacing: 0.14em; }

/* ---------- ticker ---------- */
.ticker { border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); overflow: hidden; background: var(--night); }
.ticker-track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker-set { display: flex; }
.ticker-set span {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ice-faint); padding: 16px 0 16px 56px; white-space: nowrap; position: relative;
}
.ticker-set span::before { content: "\00B7"; color: var(--accent-ice); position: absolute; left: 24px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- chapters ---------- */
.chapter { position: relative; padding: clamp(150px, 19vh, 260px) 0; }
.chapter--flush { padding: 0; }

/* full-bleed image scenes */
.scene { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.scene .scene-bg { position: absolute; inset: 0; margin: 0; }
.scene .scene-bg img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.scene .scene-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(5, 14, 20, 0.9) 0%, rgba(5, 14, 20, 0.74) 42%, rgba(5, 14, 20, 0.1) 72%),
    linear-gradient(180deg, rgba(5, 14, 20, 0.7) 0%, rgba(5, 14, 20, 0.42) 40%, rgba(5, 14, 20, 0.88) 100%);
}
.scene .wrap { position: relative; z-index: 2; padding-top: 110px; padding-bottom: clamp(84px, 12vh, 150px); width: 100%; }
.scene .kicker { font-size: clamp(16px, 1.35vw, 20px); color: var(--ice-dim); max-width: 52ch; }
.scene-cap { position: absolute; right: 32px; bottom: 16px; z-index: 2; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: rgba(243, 248, 250, 0.58); }

.fact {
  display: inline-block; margin-top: 26px; padding: 14px 20px;
  border: 1px solid var(--hairline); border-left: 2px solid var(--accent-ice); border-radius: 0 var(--r-s) var(--r-s) 0;
  font-size: 16px; color: var(--ice-dim); max-width: 62ch;
}
.fact strong { color: var(--ice); font-weight: 600; }

/* ---------- the instrument, night finish ---------- */
.db-panel {
  background: var(--ink); border: 1px solid var(--hairline-soft); border-radius: var(--r-l);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 0, 0, 0.5);
  padding: clamp(30px, 3.6vw, 48px); margin-top: 80px;
}
.db-grid { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
@media (min-width: 941px) {
  .db-grid { align-items: stretch; }
  .db-readout { min-height: 298px; }
  .db-controls { display: flex; flex-direction: column; }
  .db-controls .range-row + .db-label { margin-top: auto; }
}
.db-readout {
  display: flex; flex-direction: column;
  background: var(--night); color: var(--ice); border-radius: var(--r-m);
  padding: 24px 26px 26px; border: 1px solid var(--hairline-soft);
}
.db-tag {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice-dim); margin-bottom: 14px;
}
.db-readout .n { font-family: var(--mono); font-size: clamp(48px, 4.6vw, 64px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.db-readout .n small { font-size: 18px; font-weight: 500; color: var(--ice-dim); letter-spacing: 0.02em; }
.db-readout .db-state {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ice-dim);
}
.db-readout .db-state::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 8px; background: var(--accent-ice);
}
.db-readout.warn .db-state { color: var(--warn-soft); border-top-color: rgba(217, 146, 59, 0.45); }
.db-readout.warn .db-state::before { background: var(--warn); }
.db-readout.over .db-state { color: var(--bad-soft); border-top-color: rgba(232, 106, 94, 0.5); }
.db-readout.over .db-state::before { background: var(--bad); }
.db-readout .verdict { margin-top: 10px; min-height: 4.65em; font-size: 14px; line-height: 1.55; color: var(--ice-dim); }
.db-controls label, .db-label {
  display: block; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice-dim); margin: 18px 0 10px;
}
.db-controls .db-label { margin-top: 4px; }
.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--hairline); background: transparent; border-radius: 999px;
  padding: 9px 15px; font-size: 13px; font-weight: 600; color: var(--ice-dim); cursor: pointer;
  font-family: inherit; transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.chip:hover { border-color: var(--accent-ice); color: var(--accent-ice); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(to right, var(--accent-ice) calc(var(--f, 22%)), rgba(243, 248, 250, 0.18) calc(var(--f, 22%)));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--night); border: 3px solid var(--accent-ice); margin-top: -9px;
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(243, 248, 250, 0.18); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent-ice); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--night); border: 3px solid var(--accent-ice); }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-val { font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 4.5em; text-align: right; }
.db-values { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--ice-dim); font-variant-numeric: tabular-nums; }
.db-values .v { display: inline-flex; align-items: center; gap: 7px; }
.db-values .v i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ice-faint); }
.db-values .v b { font-weight: 600; color: var(--ice); }
.db-values .v.on i { background: var(--accent-ice); border-color: var(--accent-ice); }
.db-values .v.on.warn i { background: var(--warn); border-color: var(--warn); }
.db-values .v.on.bad i { background: var(--bad); border-color: var(--bad); }
.db-note { font-size: 13px; color: var(--ice-faint); max-width: 56ch; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hairline-soft); }

.db-scale { margin-top: 30px; }
.db-scale-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice-dim); margin-bottom: 14px;
}
.db-scale-head b { font-weight: 500; color: var(--accent-ice); font-variant-numeric: tabular-nums; }
.db-field { position: relative; height: 120px; background: rgba(243, 248, 250, 0.035); border: 1px solid var(--hairline-soft); border-radius: 10px; }
.db-gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(243, 248, 250, 0.05); }
.db-limit { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed rgba(243, 248, 250, 0.3); }
.db-limit span { position: absolute; top: 10px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap; color: var(--ice-dim); }
.db-limit .out-l { right: 12px; }
.db-limit .out-r { left: 12px; }
.db-legend { display: none; }
.db-legend span { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--ice-dim); }
.db-legend i { width: 0; height: 14px; border-left: 2px dashed rgba(243, 248, 250, 0.3); }
.db-track { position: absolute; left: 0; right: 0; top: 58px; height: 6px; background: rgba(243, 248, 250, 0.14); }
.db-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-ice); opacity: 0.4; transition: width 130ms ease; }
.db-field.warn .db-fill { background: var(--warn); }
.db-field.bad .db-fill { background: var(--bad); }
.db-dot {
  position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--ink); border: 2px solid var(--ice-dim);
  transition: left 130ms ease;
}
.db-dot.on { width: 22px; height: 22px; background: var(--accent-ice); border-color: var(--accent-ice); box-shadow: 0 0 0 5px rgba(127, 200, 224, 0.16); z-index: 1; }
.db-dot.on.warn { background: var(--warn); border-color: var(--warn); box-shadow: 0 0 0 5px rgba(217, 146, 59, 0.16); }
.db-dot.on.warn i { color: var(--warn-soft); }
.db-dot.on.over { background: var(--bad); border-color: var(--bad); box-shadow: 0 0 0 5px rgba(232, 106, 94, 0.16); }
.db-dot.on.over i { color: var(--bad-soft); }
.db-dot i {
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ice-dim);
  padding: 0 5px; border-radius: 4px;
}
.db-dot.on i { color: var(--accent-ice); top: 17px; background: transparent; }
.db-dot.low i { top: 33px; }
.db-axis { position: relative; height: 16px; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ice-faint); font-variant-numeric: tabular-nums; }
.db-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.db-axis span:first-child { transform: none; }
.db-axis span:last-child { transform: translateX(-100%); }

/* ---------- promises ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline-soft); border: 1px solid var(--hairline-soft); border-radius: var(--r-l); overflow: hidden; margin-top: 80px; }
.stat { background: var(--night); padding: 52px 42px 46px; }
.stat .n { font-size: clamp(30px, 2.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 12px; }
.stat .n .unit { font-style: normal; font-size: 0.55em; font-weight: 600; color: var(--ice-dim); }
.stat .l { font-size: 14px; line-height: 1.6; color: var(--ice-dim); }

/* ---------- configurator ---------- */
.tool {
  background: var(--ink); border: 1px solid var(--hairline-soft); border-radius: var(--r-l);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 0, 0, 0.5);
  padding: clamp(30px, 3.6vw, 48px); margin: 80px auto 0; max-width: 880px;
}
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.field label { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice-dim); margin-bottom: 9px; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-s);
  border: 1px solid var(--hairline); background: var(--night); color: var(--ice);
  font-family: inherit; font-size: 16px;
}
.field .hint { font-size: 13px; color: var(--ice-faint); margin-top: 7px; }
.result { display: none; margin-top: 24px; padding: 20px 22px; border-radius: var(--r-s); border: 1px solid var(--hairline); }
.result.show { display: block; }
.result.good { border-left: 2px solid var(--accent-ice); }
.result.warn { border-left: 2px solid var(--warn); }
.result h3 { margin: 0 0 8px; font-size: 18px; }
.result p { margin: 0; font-size: 14px; color: var(--ice-dim); }
.guidance { font-size: 13px; color: var(--ice-faint); margin: 18px 0 0; }

/* ---------- close ---------- */
.final { padding: clamp(120px, 16vh, 200px) 0 90px; text-align: center; }
.final h2 { margin-left: auto; margin-right: auto; }
.final .sub { margin: 0 auto; }
.final .cta-row { justify-content: center; }
.final .facts { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.final .facts span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ice-faint); }
footer { border-top: 1px solid var(--hairline-soft); padding: 40px 0 46px; }
footer .cols { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
footer .cols a { color: var(--ice-dim); font-size: 14px; padding: 11px 0; }
footer .cols a:hover { color: var(--ice); }
.legal { font-size: 12px; color: rgba(243, 248, 250, 0.58); max-width: 92ch; margin-top: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .db-limit span { display: none; }
  .db-field { height: 116px; }
  .db-track { top: 48px; }
  .db-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
}
@media (max-width: 940px) {
  .hero { min-height: auto; padding-top: 108px; }
  .hero-scrim {
    background:
      linear-gradient(to top, rgba(5, 14, 20, 0.94) 0%, rgba(5, 14, 20, 0.82) 55%, rgba(5, 14, 20, 0.32) 100%);
  }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav .nav-cta { display: none; }
  .nav.open .nav-links { display: flex; }
  .nav.open .nav-cta { display: inline-flex; }
  .db-grid { grid-template-columns: 1fr; gap: 26px; }
  .db-readout { min-height: 0; }
  .db-dot i { display: none; }
  .db-dot.on i, #dot50 i { display: block; }
  .db-field { height: 96px; }
  .db-track { top: 48px; }
  .stats { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .hero-cap, .scene-cap { left: 22px; right: 22px; bottom: 12px; text-align: left; }
  .scene .wrap { padding-bottom: 110px; }
  .hero .wrap { padding-bottom: 84px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .db-axis span:not(:first-child):not(:last-child) { display: none; }
  .db-gridline { display: none; }
  .chip { min-height: 44px; padding: 12px 16px; }
  .db-field { height: 64px; }
  .db-track { top: 29px; }
  .btn { white-space: normal; text-align: center; }
  .hero-meter { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal, html.js [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  html.js .fill-text .w { opacity: 1 !important; }
  html.js .loader { display: none !important; }
  .scene .scene-bg img { transform: none !important; }
}

/* ---------- models page ---------- */
.page-hero { position: relative; padding: 220px 0 130px; }
.page-hero h1 { font-size: clamp(48px, 6.4vw, 96px); }
.models-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 80px; }
.model {
  background: var(--ink); border: 1px solid var(--hairline-soft); border-radius: var(--r-l);
  padding: 42px 40px 38px; display: flex; flex-direction: column;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.model:hover { border-color: rgba(127, 200, 224, 0.4); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.model--lead { grid-column: 1 / -1; background: linear-gradient(120deg, var(--ink) 55%, var(--panel)); }
.model .m-class { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ice); margin-bottom: 14px; }
.model h3 { margin: 0 0 6px; font-size: clamp(24px, 2.2vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.model .m-for { color: var(--ice-dim); font-size: 16px; margin-bottom: 28px; }
.model .m-specs { list-style: none; margin: 0 0 30px; padding: 0; border-top: 1px solid var(--hairline-soft); }
.model .m-specs li {
  display: flex; justify-content: space-between; gap: 18px; padding: 13px 0;
  border-bottom: 1px solid var(--hairline-soft); font-size: 14px; color: var(--ice-dim);
}
.model .m-specs li b { color: var(--ice); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.model .m-price { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.model .m-price .p { font-size: 22px; font-weight: 800; }
.model .m-price .p small { font-size: 12px; font-weight: 500; color: var(--ice-faint); display: block; letter-spacing: 0.06em; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline-soft); border: 1px solid var(--hairline-soft); border-radius: var(--r-l); overflow: hidden; margin-top: 88px; }
.why > div { background: var(--night); padding: 36px 30px; }
.why h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
@media (min-width: 941px) { .why h3 { min-height: 56px; } }
.why p { margin: 0; font-size: 14px; color: var(--ice-dim); }
.wall-band { display: grid; grid-template-columns: 1.05fr 1fr; gap: 68px; align-items: center; margin-top: 80px; }
.wall-band figure { margin: 0; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--hairline-soft); }
.wall-caps { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.wall-caps span {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--ice-dim);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 14px;
}
@media (max-width: 940px) {
  .models-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .wall-band { grid-template-columns: 1fr; gap: 26px; }
  .page-hero { padding: 140px 0 60px; }
}
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* model card figures */
.model .m-figure {
  margin: 0 0 28px; border-radius: var(--r-m); overflow: hidden;
  border: 1px solid var(--hairline-soft);
}
.model .m-figure img { width: 100%; height: auto; }
.model--lead .m-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.model--lead .m-figure { margin: 0; }
@media (max-width: 940px) {
  .model--lead .m-body { grid-template-columns: 1fr; gap: 26px; }
  .model--lead .m-figure { margin: 0 0 4px; }
}
.range-cap { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: rgba(243, 248, 250, 0.58); margin-top: 20px; }

/* models page hero grid */
.ph-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.ph-figure { margin: 0; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--hairline-soft); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 0, 0, 0.5); }
.ph-figure img { width: 100%; height: auto; }
@media (max-width: 940px) {
  .ph-grid { grid-template-columns: 1fr; gap: 34px; }
}
