/* Balmair prototype, Glacier edition. Bright, technical, precise:
   ice-white ground, polar-night ink, one glacier accent, Inter + Geist Mono.
   Motion lives in motion.js; everything here degrades to a still page. */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-ExtraBold.woff2") format("woff2");
  font-weight: 800; 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;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #0A1B24;
  --ink-2: #3D5661;
  --muted: #5A7480;
  --ground: #F3F8FA;
  --snow: #FFFFFF;
  --panel: #E9F2F6;
  --accent: #0B7FA6;
  --accent-deep: #075E7D;
  --accent-soft: rgba(11, 127, 166, 0.08);
  --accent-line: rgba(11, 127, 166, 0.32);
  --line: rgba(10, 27, 36, 0.10);
  --line-strong: rgba(10, 27, 36, 0.19);
  --on-dark: #F3F8FA;
  --on-dark-dim: rgba(243, 248, 250, 0.72);
  --on-dark-faint: rgba(243, 248, 250, 0.56);
  --dark-line: rgba(243, 248, 250, 0.14);
  --warn: #B45309;
  --bad: #B42318;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 18px;
  --shadow: 0 1px 2px rgba(10, 27, 36, 0.05), 0 16px 40px rgba(10, 27, 36, 0.08);
  --shadow-lift: 0 2px 4px rgba(10, 27, 36, 0.06), 0 22px 54px rgba(10, 27, 36, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
body {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
p { margin: 0 0 14px; }
strong { font-weight: 600; }
::selection { background: rgba(11, 127, 166, 0.22); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
section[id] { scroll-margin-top: 96px; }

/* ---------- motion primitives ---------- */
.mw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.mwi { display: inline-block; transform: translateY(115%); transition: transform 0.85s var(--ease); }
.in-words .mwi { transform: none; }
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal { transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 200ms ease;
}
.nav.scrolled { box-shadow: 0 1px 2px rgba(10, 27, 36, 0.05), 0 10px 30px rgba(10, 27, 36, 0.06); }
.nav .wrap { max-width: 1320px; }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 66px; position: relative; }
.wordmark {
  font-weight: 800; font-size: 18px; letter-spacing: 0.12em; color: var(--ink);
  text-transform: lowercase;
}
.wordmark .dot { color: var(--accent); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a:not(.btn) {
  color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 2px;
  transition: color 140ms ease, background-size 200ms var(--ease);
  padding: 4px 0;
}
.nav-links a:not(.btn):hover { color: var(--ink); background-size: 100% 2px; }
.nav-cta { margin-left: 6px; }
.lang { font-size: 13px; color: var(--ink-2); letter-spacing: 0.04em; margin-left: 8px; white-space: nowrap; }
.lang a { color: var(--ink-2); font-weight: 600; padding: 9px 2px; }
.lang a.on, .lang a:hover { color: var(--accent-deep); }
.nav-toggle {
  display: none; margin-left: 8px; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-strong); 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(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; height: auto; padding: 11px 24px; border-radius: var(--r-s);
  font-size: 16px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  line-height: 1.65;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform 140ms var(--ease), background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.nav-cta-drawer { display: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(7, 94, 125, 0.25), 0 8px 20px rgba(11, 127, 166, 0.22);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 1px 2px rgba(7, 94, 125, 0.3), 0 12px 26px rgba(11, 127, 166, 0.28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.final .btn-ghost { color: var(--on-dark); border-color: var(--dark-line); }
.final .btn-ghost:hover { border-color: var(--on-dark-dim); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(11, 127, 166, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 127, 166, 0.065) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(130% 110% at 72% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(130% 110% at 72% 0%, #000 25%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(48px, 6vw, 84px); padding: clamp(64px, 8vw, 128px) 28px clamp(72px, 9vw, 148px);
}
.hero-copy { max-width: 1020px; display: flex; flex-direction: column; align-items: center; }
.hero .sub { margin-left: auto; margin-right: auto; }
.hero .cta-row { justify-content: center; }
.hero .eyebrow { justify-content: center; }
.hero-note { margin-left: auto; margin-right: auto; }
.hero-visual { width: 100%; max-width: 1120px; }
.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(--accent-deep); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
h1 {
  font-size: clamp(48px, 8.2vw, 132px); line-height: 0.99; letter-spacing: -0.036em;
  font-weight: 800; margin: 0 0 26px;
}
.hero--tool h1 { font-size: clamp(34px, 3.6vw, 56px); }
h1 .accent { color: var(--accent); }
.hero .sub { font-size: 18px; line-height: 1.62; color: var(--ink-2); max-width: 52ch; margin-bottom: 36px; font-weight: 400; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* hero entrance, pure CSS, staggered */
.hero .eyebrow, .hero .sub, .hero .cta-row, .hero .hero-note, .hero .hero-visual, .hero .hero-side {
  animation: rise 0.75s var(--ease) both;
}
.hero .sub { animation-delay: 0.14s; }
.hero .cta-row { animation-delay: 0.21s; }
.hero .hero-note { animation-delay: 0.28s; }
.hero .hero-visual, .hero .hero-side { animation-delay: 0.18s; }

/* hero visual stage: photo card on a glacier plate with a mono spec bar */
.hero-visual { position: relative; margin: 0; }
.stage {
  position: relative;
  background: linear-gradient(180deg, var(--snow), #EFF7FA);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(10, 27, 36, 0.05), 0 28px 64px rgba(10, 27, 36, 0.14);
}
.stage img { width: 100%; border-radius: 10px; }
.stage-bar {
  display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; justify-content: center;
  padding: 15px 6px 4px;
}
.stage-bar span {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 9px;
}
.stage-bar span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-visual figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }

/* tool-page hero: copy left, data panel right */
.hero--tool .hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; text-align: left; gap: clamp(40px, 5vw, 72px); padding: clamp(56px, 7vw, 104px) 28px; align-items: center; }
.hero-side {
  background: var(--snow); border: 1px solid var(--line);
  border-radius: var(--r-m); padding: 8px 26px; box-shadow: var(--shadow);
}
.hero-side .row { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.hero-side .row:last-child { border-bottom: none; }
.hero-side .v {
  font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--accent-deep); min-width: 4.6em; white-space: nowrap; flex: 0 0 auto;
}
.hero-side .k { font-size: 13px; color: var(--ink-2); line-height: 1.45; min-width: 0; }

/* ---------- sections ---------- */
section { padding: clamp(84px, 8vw, 120px) 0; }
section.tight { padding: clamp(76px, 9vw, 140px) 0; }
h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.026em; font-weight: 800; margin: 0 0 22px; max-width: 21ch; }
h3, h4 { font-weight: 600; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 58ch; margin-bottom: 48px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 104px); align-items: center; }
.split.flip > .media { order: -1; }
.media img { width: 100%; border-radius: var(--r-m); box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--panel); min-height: 280px; transition: transform 0.6s var(--ease), box-shadow 0.3s ease; }
.media:hover img { transform: scale(1.025); box-shadow: var(--shadow-lift); }
.media figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }
.kicker { font-size: 16px; color: var(--ink-2); }
.fact {
  border-left: 3px solid var(--accent); background: var(--snow);
  border-radius: 0 var(--r-s) var(--r-s) 0; padding: 15px 19px; margin: 18px 0;
  font-size: 16px; color: var(--ink-2); box-shadow: var(--shadow);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact strong { color: var(--ink); }
.src { font-size: 13px; color: var(--muted); }

/* ---------- decibel instrument (signature): one panel ---------- */
.db-band { background: var(--ground); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.db-panel {
  background: var(--snow); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow); padding: clamp(26px, 3.2vw, 40px);
}
.db-grid { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
.db-readout {
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--on-dark); border-radius: var(--r-m);
  padding: 24px 26px 26px; box-shadow: var(--shadow-lift);
  border: 1px solid rgba(243, 248, 250, 0.06);
}
.db-tag {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-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(--on-dark-dim); letter-spacing: 0.02em; }
.db-readout .db-state {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid rgba(243, 248, 250, 0.12);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243, 248, 250, 0.72);
}
.db-readout .db-state::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 8px; background: var(--accent);
}
.db-readout.warn .db-state { color: #F2CB9B; border-top-color: rgba(217, 146, 59, 0.45); }
.db-readout.warn .db-state::before { background: #D9923B; }
.db-readout.over .db-state { color: #F2B8B2; border-top-color: rgba(232, 106, 94, 0.5); }
.db-readout.over .db-state::before { background: #E86A5E; }
.db-readout .verdict {
  margin-top: 10px; min-height: 4.65em;
  font-size: 14px; line-height: 1.55; color: var(--on-dark-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(--ink-2); margin: 18px 0 10px;
}
.db-controls .db-label { margin-top: 4px; }
/* desktop: pin the row height so verdict line-count changes never reflow the
   scale below, and bottom-align the values row with the tile's lower edge */
@media (min-width: 941px) {
  .db-grid { align-items: stretch; }
  .db-readout { min-height: 298px; }
  html[lang="de"] .db-readout { min-height: 341px; }
  .db-controls { display: flex; flex-direction: column; }
  .db-controls .range-row + .db-label { margin-top: auto; }
}
.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line-strong); background: var(--snow); border-radius: 999px;
  padding: 9px 15px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  font-family: inherit;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms var(--ease);
}
.chip:hover { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-deep); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(11, 127, 166, 0.25); }
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: 6px; border-radius: 4px;
  background: linear-gradient(to right, var(--accent) calc(var(--f, 22%)), rgba(10, 27, 36, 0.14) calc(var(--f, 22%)));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--snow); border: 3px solid var(--accent); margin-top: -9px;
  box-shadow: 0 2px 10px rgba(7, 94, 125, 0.35);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 4px; background: rgba(10, 27, 36, 0.14); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--snow); border: 3px solid var(--accent);
  box-shadow: 0 2px 10px rgba(7, 94, 125, 0.35);
}
.range-row { display: flex; align-items: center; gap: 16px; }
.range-val { font-weight: 600; 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(--ink-2); 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(--ink-2); }
.db-values .v b { font-weight: 600; color: var(--ink); }
.db-values .v.on i { background: var(--accent); border-color: var(--accent); }
.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(--muted); max-width: 56ch;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
}

/* the drawn scale: framed instrument field, dashed limit lines,
   gridlines every 10 dB, mono axis, limit legend below 1100px */
.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(--ink-2);
  margin-bottom: 14px;
}
.db-scale-head b { font-weight: 500; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.db-field {
  position: relative; height: 120px;
  background: var(--ground); border: 1px solid var(--line); border-radius: 10px;
}
.db-gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(10, 27, 36, 0.06); }
.db-limit { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed rgba(10, 27, 36, 0.32); }
.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(--ink-2);
}
.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(--ink-2);
}
.db-legend i { width: 0; height: 14px; border-left: 2px dashed rgba(10, 27, 36, 0.32); }
sub { font-size: 12px; }
.db-track {
  position: absolute; left: 0; right: 0; top: 58px; height: 6px;
  background: rgba(10, 27, 36, 0.18);
}
.db-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent); opacity: 0.35; 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(--snow); border: 2px solid var(--ink-2);
  transition: left 130ms ease;
}
.db-dot.on { width: 22px; height: 22px; background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(11, 127, 166, 0.18); z-index: 1; }
.db-dot.on.warn { background: var(--warn); border-color: var(--warn); box-shadow: 0 0 0 5px rgba(180, 83, 9, 0.15); }
.db-dot.on.warn i { color: var(--warn); }
.db-dot.on.over { background: var(--bad); border-color: var(--bad); box-shadow: 0 0 0 5px rgba(180, 35, 24, 0.15); }
.db-dot.on.over i { color: var(--bad); }
.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(--ink-2);
  background: var(--ground); padding: 0 5px; border-radius: 4px;
}
/* the selected dot's label sits inside its halo ring: no background box,
   or it crops the halo into a square */
.db-dot.on i { color: var(--accent-deep); 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(--ink-2); 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%); }

@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: 640px) {
  .db-axis span:not(:first-child):not(:last-child) { display: none; }
  .db-gridline { display: none; }
  .chip { min-height: 44px; padding: 12px 16px; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 16px; }
.stat {
  background: var(--snow); border-radius: var(--r-m); padding: 34px 30px 28px;
  border: 1px solid var(--line); border-top: 2px solid var(--accent);
  box-shadow: var(--shadow);
  transition: transform 160ms var(--ease), box-shadow 160ms ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.stat .n {
  font-family: var(--mono); font-size: clamp(28px, 2.6vw, 36px); font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.1; color: var(--ink);
  font-variant-numeric: tabular-nums; overflow-wrap: normal; word-break: keep-all;
}
.stat .l { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

/* ---------- forms / tools ---------- */
.tool { background: var(--snow); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 38px; }
.tool--narrow { max-width: 820px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 28px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field select, .field input[type="number"], .field input[type="text"] {
  width: 100%; height: 46px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--snow);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field select:focus, .field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11, 127, 166, 0.14); outline: none; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233D5661' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px;
}
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.result { border-radius: var(--r-m); padding: 22px 26px; margin-top: 26px; font-size: 15px; display: none; }
.result.show { display: block; animation: rise 0.45s var(--ease); }
.result.good { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.result.good h3 { color: var(--accent-deep); }
.result.warn { background: rgba(180, 83, 9, 0.07); border: 1px solid rgba(180, 83, 9, 0.35); }
.result.warn h3 { color: var(--warn); }
.result.bad { background: rgba(180, 35, 24, 0.06); border: 1px solid rgba(180, 35, 24, 0.3); }
.result.bad h3 { color: var(--bad); }
.result h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.result ul { margin: 8px 0 0; padding-left: 20px; }
.result li { margin-bottom: 6px; }
.guidance { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--snow); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: 26px; box-shadow: var(--shadow);
  transition: transform 160ms var(--ease), box-shadow 160ms ease, border-color 160ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--accent-line); }
.card--featured { border-top: 2px solid var(--accent); }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.012em; }
.card p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- final band + footer ---------- */
.final { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); text-align: center; padding: clamp(80px, 9vw, 130px) 0; }
.final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(243, 248, 250, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 248, 250, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(110% 120% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(110% 120% at 50% 0%, #000 20%, transparent 75%);
}
.final .wrap { position: relative; }
.final h2 { margin: 0 auto 18px; max-width: 16ch; color: var(--on-dark); font-size: clamp(44px, 5.6vw, 92px); }
.final .sub { color: var(--on-dark-dim); max-width: 52ch; margin: 0 auto 40px; font-size: 18px; }
.final .cta-row { justify-content: center; }
footer { background: var(--ink); color: var(--on-dark-faint); border-top: 1px solid var(--dark-line); padding: 36px 0 44px; font-size: 13px; }
footer .cols { display: flex; gap: 32px; flex-wrap: wrap; justify-content: flex-start; align-items: center; }
footer .cols > div:first-child { margin-right: 16px; }
footer .wordmark { color: var(--on-dark-dim); }
footer a { color: var(--on-dark-dim); display: inline-block; padding: 8px 0; }
footer a:hover { color: var(--on-dark); }
footer .legal { margin-top: 22px; max-width: 75ch; line-height: 1.6; }

/* ---------- spec ticker ---------- */
@keyframes tick { to { transform: translateX(-50%); } }
.ticker {
  background: var(--snow); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 15px 0; position: relative;
}
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; flex: 0 0 auto; }
.ticker-set span {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
.ticker-set span::after { content: "\00B7"; color: var(--accent); margin: 0 24px; font-weight: 700; }

/* ---------- cursor chill (hero only, fine pointers) ---------- */
.chill {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 127, 166, 0.07), transparent 65%);
  pointer-events: none; z-index: 1; opacity: 0; transition: opacity 450ms ease;
  will-change: transform; top: 0; left: 0;
}

/* ---------- closing band facts ---------- */
.final .facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-dim);
  margin: -14px 0 30px;
}
.final .facts span::before { content: "\00B7"; color: var(--accent); margin-right: 12px; }
.final .facts span:first-child::before { content: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-inner, .split, .db-grid, .split.flip, .hero--tool .hero-inner { grid-template-columns: 1fr; }
  .split.flip > .media { order: 0; }
  .stats, .cards, .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: auto; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--snow); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px; box-shadow: var(--shadow-lift);
  }
  .nav.open .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; background: none; }
  .nav.open .nav-links a:last-child { border-bottom: none; }
  .nav.open .nav-links .nav-cta-drawer {
    display: inline-flex; margin-top: 14px; padding: 10px 22px;
    border-bottom: 1px solid transparent; font-size: 15px; align-self: flex-start;
    background: var(--accent); color: #fff;
  }
  .db-field { height: 96px; }
  .db-track { top: 48px; }
  .hero-inner { padding: 48px 24px 56px; }
  .hero--tool .hero-inner { padding: 44px 24px 52px; }
  section { padding: 60px 0; }
  h1 { font-size: clamp(36px, 9.2vw, 48px); }
  .db-dot i { display: none; }
  footer .cols { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 640px) {
  .db-field { height: 64px; }
  .db-track { top: 29px; }
}
@media (max-width: 560px) {
  .nav-cta { display: inline-flex; min-height: 44px; padding: 9px 14px; font-size: 13px; margin-left: auto; }
  .nav .nav-cta { white-space: nowrap; }
  .lang { display: none; }
  .btn { white-space: normal; text-align: center; }
  .tool { padding: 26px 20px; }
  .hero-specs { flex-direction: column; gap: 8px; }
  .hero-specs span::after { content: none; }
  .fcols { gap: 28px 40px; }
  .fcol--brand { flex-basis: 100%; }
}

/* ============================================================
   Cinema edition (15 Aug 2026): Chronoptics-grade dark chapters
   on the Glacier belly. Dark hero photo + dark outdoor chapter +
   dark closing band; thin display type on dark, white action
   colour on dark, glacier accent stays on the light belly.
   ============================================================ */
:root { --accent-ice: #8FD6F0; }

/* ---------- overlay nav over the dark hero ---------- */
.nav--over {
  position: fixed; left: 0; right: 0;
  background: transparent; border-bottom-color: transparent;
}
.nav--over:not(.scrolled):not(.open) {
  background: linear-gradient(rgba(10, 27, 36, 0.45), rgba(10, 27, 36, 0.14));
}
.nav--over .wordmark { color: var(--on-dark); }
.nav--over .nav-links a:not(.btn) {
  color: var(--on-dark-dim);
  background: linear-gradient(var(--on-dark), var(--on-dark)) no-repeat 0 100% / 0 2px;
}
.nav--over .nav-links a:not(.btn):hover { color: var(--on-dark); }
.nav--over .lang { color: var(--on-dark-faint); }
.nav--over .lang a { color: var(--on-dark-dim); }
.nav--over .lang a.on, .nav--over .lang a:hover { color: var(--on-dark); }
.nav--over .nav-toggle { border-color: rgba(243, 248, 250, 0.34); }
.nav--over .nav-toggle span { background: var(--on-dark); }
.nav--over.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.nav--over.scrolled .wordmark { color: var(--ink); }
.nav--over.scrolled .nav-links a:not(.btn) {
  color: var(--ink-2);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 2px;
}
.nav--over.scrolled .nav-links a:not(.btn):hover { color: var(--ink); }
.nav--over.scrolled .lang { color: var(--ink-2); }
.nav--over.scrolled .lang a { color: var(--ink-2); }
.nav--over.scrolled .lang a.on, .nav--over.scrolled .lang a:hover { color: var(--accent-deep); }
.nav--over.scrolled .nav-toggle { border-color: var(--line-strong); }
.nav--over.scrolled .nav-toggle span { background: var(--ink); }
.nav--over .nav-cta-drawer { color: #fff; }
.nav--over:not(.scrolled) .nav-cta {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 2px rgba(4, 12, 17, 0.3), 0 10px 28px rgba(4, 12, 17, 0.38);
}
.nav--over:not(.scrolled) .nav-cta:hover { background: #E3EEF4; }

/* ---------- cinematic hero: full-bleed night study ---------- */
.hero--cinema {
  min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--ink); border-bottom: none;
}
.hero--cinema::before { content: none; }
.hero-bg { position: absolute; inset: 0; margin: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 0% 42%;
  animation: heroSettle 1.6s var(--ease) both;
}
@keyframes heroSettle { from { opacity: 0.35; } to { opacity: 1; } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 52% at 22% 76%, rgba(10, 27, 36, 0.6) 0%, rgba(10, 27, 36, 0.28) 55%, transparent 78%),
    linear-gradient(90deg, rgba(10, 27, 36, 0.72) 0%, rgba(10, 27, 36, 0.42) 34%, rgba(10, 27, 36, 0.1) 58%, transparent 75%),
    linear-gradient(0deg, rgba(10, 27, 36, 0.9) 0%, rgba(10, 27, 36, 0.46) 34%, rgba(10, 27, 36, 0.1) 58%, rgba(10, 27, 36, 0.3) 100%);
}
.hero--cinema .hero-inner {
  position: relative; z-index: 2; display: block; text-align: left;
  width: 100%;
  padding-top: 0; padding-bottom: clamp(64px, 10vh, 118px);
}
.hero--cinema .hero-copy { max-width: 600px; display: block; }
.hero--cinema h1 {
  font-weight: 800; font-size: clamp(42px, 5.2vw, 84px); line-height: 1.05;
  letter-spacing: -0.028em; color: var(--on-dark); margin-bottom: 24px;
}
.hero--cinema h1 .accent { color: var(--on-dark); }
[lang="de"] .hero--cinema h1 { font-size: clamp(38px, 4.8vw, 78px); }
.hero--cinema .sub {
  color: var(--on-dark-dim); font-size: 18px; line-height: 1.62;
  max-width: 46ch; margin: 0 0 34px;
}
.hero--cinema .eyebrow { justify-content: flex-start; }
.hero--cinema .cta-row { justify-content: flex-start; }
.hero--cinema .hero-note { color: var(--on-dark-faint); margin: 18px 0 0; max-width: 46ch; }
.hero-specs {
  display: flex; flex-wrap: wrap; gap: 8px 0; margin: 34px 0 0;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-dim);
}
.hero-specs span + span::before { content: "\00B7"; color: var(--on-dark-dim); margin: 0 20px; }
.hero-specs .unit { font-style: normal; text-transform: none; letter-spacing: 0.08em; }
.facts .unit { font-style: normal; text-transform: none; letter-spacing: 0.08em; }
.hero-specs span:last-child::after { content: none; }
.hero-cap { font-size: 12px; color: var(--on-dark-faint); margin: 14px 0 0; }
.hero--cinema .hero-specs, .hero--cinema .hero-cap {
  animation: rise 0.75s var(--ease) both; animation-delay: 0.34s;
}

/* ---------- dark-surface primitives ---------- */
.eyebrow--dim { color: var(--on-dark-dim); }
.eyebrow--dim::before { background: var(--on-dark-dim); }
.btn-white {
  background: #fff; color: var(--ink);
  box-shadow: 0 1px 2px rgba(4, 12, 17, 0.3), 0 10px 28px rgba(4, 12, 17, 0.38);
}
.btn-white:hover { background: #E3EEF4; box-shadow: 0 2px 4px rgba(4, 12, 17, 0.3), 0 14px 34px rgba(4, 12, 17, 0.42); }
.btn-ghost--dark { color: var(--on-dark); border-color: rgba(243, 248, 250, 0.34); background: transparent; }
.btn-ghost--dark:hover { border-color: var(--on-dark); color: var(--on-dark); }

/* ---------- dark chapter band (outdoor unit at dusk) ---------- */
.chapter {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding: clamp(100px, 13vw, 170px) 0;
}
.chapter-bg { position: absolute; inset: 0; margin: 0; }
.chapter-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; }
.chapter-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 27, 36, 0.95) 0%, rgba(10, 27, 36, 0.84) 36%, rgba(10, 27, 36, 0.5) 58%, rgba(10, 27, 36, 0.22) 80%, rgba(10, 27, 36, 0.34) 100%),
    linear-gradient(0deg, rgba(10, 27, 36, 0.5) 0%, rgba(10, 27, 36, 0.1) 40%, rgba(10, 27, 36, 0.28) 100%);
}
.chapter-inner { position: relative; z-index: 2; max-width: 620px; }
.chapter h2 {
  color: var(--on-dark); letter-spacing: -0.028em;
  max-width: 16ch;
}
.chapter .kicker { color: var(--on-dark-dim); font-size: 17px; max-width: 46ch; }
.chapter .hero-cap { color: var(--on-dark-faint); }
.fact--dark {
  background: rgba(10, 27, 36, 0.66); border: 1px solid var(--dark-line);
  border-left: 3px solid var(--on-dark-dim); box-shadow: none;
  color: var(--on-dark-dim);
}
.fact--dark strong { color: var(--on-dark); }

/* ---------- dark spec ticker bridging hero to belly ---------- */
.ticker { background: var(--ink); border-bottom: 1px solid var(--dark-line); }
.ticker-set span { color: var(--on-dark-dim); }
.ticker-set span::after { color: var(--on-dark-faint); }

/* ---------- closing band: white action ---------- */
.final h2 { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -0.028em; }
.final-alt { margin: 22px 0 0; font-size: 14px; }
.final-alt a { color: var(--on-dark-dim); text-decoration: underline; text-underline-offset: 3px; }
.final-alt a:hover { color: var(--on-dark); }

/* ---------- footer columns ---------- */
.fcols { display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-start; }
.fcol { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.fcol--brand { margin-right: auto; }
.fhead {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-faint); margin-bottom: 10px;
}
footer .fcol a { padding: 4px 0; }

/* ---------- cinema responsive ---------- */
@media (max-width: 940px) {
  .hero--cinema { min-height: 92svh; }
  .hero--cinema .hero-inner { padding: 0 24px 56px; }
  .hero-bg img { object-position: 72% 38%; }
  .hero-scrim {
    background:
      linear-gradient(rgba(10, 27, 36, 0.42), rgba(10, 27, 36, 0.42)),
      linear-gradient(90deg, rgba(10, 27, 36, 0.55) 0%, rgba(10, 27, 36, 0.22) 60%, transparent 100%),
      linear-gradient(0deg, rgba(10, 27, 36, 0.9) 0%, rgba(10, 27, 36, 0.5) 40%, rgba(10, 27, 36, 0.14) 66%, rgba(10, 27, 36, 0.34) 100%);
  }
  .hero--cinema h1 { font-size: clamp(38px, 10.5vw, 64px); }
  .hero-specs { gap: 6px 0; }
  .hero-specs span::after { margin: 0 14px; }
  .chapter { padding: 88px 0; }
  .chapter-bg img { object-position: 78% 50%; }
  .chapter-scrim {
    background: linear-gradient(90deg, rgba(10, 27, 36, 0.94) 0%, rgba(10, 27, 36, 0.72) 52%, rgba(10, 27, 36, 0.34) 100%);
  }
  .nav--over.open { background: rgba(255, 255, 255, 0.98); border-bottom: 1px solid var(--line); }
  .nav--over.open .wordmark { color: var(--ink); }
  .nav--over.open .lang { color: var(--ink-2); }
  .nav--over.open .lang a { color: var(--ink-2); }
  .nav--over.open .lang a.on { color: var(--accent-deep); }
  .nav--over.open .nav-toggle { border-color: var(--line-strong); }
  .nav--over.open .nav-toggle span { background: var(--ink); }
  .nav--over.open .nav-links a:not(.btn) { color: var(--ink-2); }
  .nav--over.open .nav-links a:not(.btn):hover { color: var(--ink); }
  .hero--cinema .hero-inner { padding-top: 108px; }
}

/* Token rule: glacier teal #0B7FA6 is pinned to LIGHT surfaces only
   (buttons, chips, slider, links on the belly). Dark surfaces take
   white actions and dim-white markers. Do not put teal on dark. */
.hero--cinema :focus-visible, .chapter :focus-visible, .final :focus-visible,
.nav--over:not(.scrolled):not(.open) :focus-visible { outline-color: #fff; }

@media (max-width: 560px) {
  .hero-specs span + span::before { content: none; }
}

/* instrument panel on phones */
@media (max-width: 560px) {
  .db-panel { padding: 22px 18px; }
  .db-grid { gap: 26px; }
}
