/* ==========================================================================
   winkler-ki.de — design system
   One stylesheet for every page. Sections:
   01 fonts · 02 tokens · 03 base · 04 layout · 05 type · 06 buttons & chips
   07 header & menus · 08 drawer · 09 hero · 10 media · 11 cards & grids
   12 lists (kv, rows, timeline, checks, faq) · 13 screens (UI mock-ups)
   14 feature / pair / stats / cta · 15 people & quotes · 16 forms
   17 footer · 18 prose (legal) · 19 motion · 20 print
   Motion rules: transform/opacity only, custom curves, UI under 300ms,
   hover only where a pointer can hover, reduced motion keeps opacity only.
   ========================================================================== */

/* ---- 01 fonts (self-hosted, no third-party requests) -------------------- */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---- 02 tokens ---------------------------------------------------------- */
:root {
  --font-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 4.5vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 68px;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms;
  --dur-fast: 180ms;
  --dur: 240ms;
  --dur-enter: 600ms;

  /* "screen" surfaces: pictures and UI mock-ups stay dark in both themes */
  --screen-bg: #010814;
  --screen-surface: #071329;
  --screen-surface-2: #0b1b38;
  --screen-line: rgba(92, 160, 245, 0.22);
  --screen-line-strong: rgba(92, 160, 245, 0.42);
  --screen-ink: #eef4fc;
  --screen-muted: #93a6c2;
  --screen-accent: #3d95ff;

  --btn-bg: #0b6be6;          /* white text on it: 4.9:1 */
  --btn-ink: #ffffff;
  --ok: #34d17c;
  --warn: #f5b83d;
  --crit: #ff6b6b;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #010814;
  --bg-soft: #030d1e;
  --surface: #06111f;
  --surface-2: #0a1930;
  --surface-raised: #0a172c;
  --line: #13233d;
  --line-strong: #223a60;
  --ink: #f1f5fb;
  --ink-muted: #a3b3ca;
  --ink-dim: #7286a4;
  --accent: #1078f8;
  --accent-vivid: #2f8dff;
  --accent-text: #62aaff;
  --accent-soft: rgba(16, 120, 248, 0.12);
  --accent-line: rgba(64, 148, 255, 0.34);
  --focus: #7db9ff;
  --glow: 0 30px 90px -40px rgba(16, 120, 248, 0.55);
  --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(92, 160, 245, 0.08);
  --grid-line: rgba(92, 160, 245, 0.07);
  --invalid: #ff6b6b;         /* 6.3:1 on the field fill */
  --field-line: #56709a;      /* field outline: 3.5:1 on the fill */
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-soft: #eaf0f8;
  --surface: #ffffff;
  --surface-2: #f0f4fa;
  --surface-raised: #ffffff;
  --line: #dbe3ef;
  --line-strong: #b9c7dc;
  --ink: #06122b;
  --ink-muted: #44536d;
  --ink-dim: #5d6d88;
  --accent: #0b63e5;
  --accent-vivid: #0b63e5;
  --accent-text: #0a57cc;
  --accent-soft: rgba(11, 99, 229, 0.08);
  --accent-line: rgba(11, 99, 229, 0.3);
  --focus: #0b63e5;
  --glow: 0 30px 70px -40px rgba(11, 99, 229, 0.45);
  --shadow-pop: 0 24px 50px -24px rgba(6, 18, 43, 0.28), 0 0 0 1px rgba(6, 18, 43, 0.04);
  --grid-line: rgba(11, 99, 229, 0.07);
  --invalid: #c62828;
  --field-line: #76869f;
}
/* light theme: hairlines on a soft band need a little more weight to stay visible */
:root[data-theme="light"] .section--soft, :root[data-theme="light"] .site-footer { --line: #cdd8e7; }

/* ---- 03 base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + 20px + env(safe-area-inset-top, 0px));
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
main { flex: 1 0 auto; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong, b { font-weight: 600; color: var(--ink); }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus-visible { outline: none; } /* focus moved by script to a heading or message, not a control */
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--ink); }

/* controls never select their label on long-press; content always stays selectable */
button, .btn, .nav-link, .chip-check, summary { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
a { touch-action: manipulation; }
a[href^="mailto:"] { white-space: nowrap; } /* an address is never split at its hyphen */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* ---- 04 layout ---------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
@supports (padding: max(0px)) {
  .wrap { padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
}

.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--bg-soft); }
/* two plain sections in a row share one gap; after a soft band the full padding stays */
.section:not(.section--soft) + .section:not(.section--soft):not(.section--line) { padding-top: 0; }
.section--line { border-top: 1px solid var(--line); }

.section-head {
  display: grid; gap: 20px 64px; align-items: end;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: clamp(36px, 5vw, 64px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
@media (min-width: 900px) and (max-width: 1049px) { .section-head { column-gap: 40px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.section-head--stack { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.section-head .lede { padding-bottom: 6px; }

.stack > * + * { margin-top: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster, 12px); align-items: center; }
.center { text-align: center; margin-inline: auto; }

/* ---- 05 type ------------------------------------------------------------ */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.028em; line-height: 1.06; text-wrap: balance; color: var(--ink); }
h1, .h1 { font-size: clamp(2.5rem, 5.2vw + 0.9rem, 4.5rem); letter-spacing: -0.035em; line-height: 1.02; }
h2, .h2 { font-size: clamp(1.9rem, 2.8vw + 0.95rem, 3.1rem); }
@media (max-width: 365px) { h2, .h2 { font-size: clamp(1.65rem, 8.3vw, 1.9rem); } }
@media (max-width: 359px) { br.br-wide { display: none; } } /* a line break that only makes sense on wider screens */
h3, .h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; }
h4, .h4 { font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }

/* emphasis inside headings is the brand blue, never italic */
h1 em, h2 em, h3 em, .quote em, .accent { font-style: normal; color: var(--accent-vivid); }

p { text-wrap: pretty; }
p, li, dd, .meta-cell .v, .row-d, .kv-v { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
.row-d { text-wrap: pretty; }
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 12 5 5; }

.lede { font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.25rem); line-height: 1.6; color: var(--ink-muted); max-width: 62ch; }
.muted { color: var(--ink-muted); }
.dim { color: var(--ink-dim); }
.small { font-size: 0.9375rem; }
.mono { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

.kicker {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-text);
}
.kicker::before { content: ""; flex: none; width: 22px; height: 1px; background: currentColor; opacity: 0.7; transform: translateY(-0.32em); }
.kicker-n { color: var(--ink-dim); letter-spacing: 0.1em; }
@media (max-width: 520px) { .kicker { letter-spacing: 0.11em; gap: 8px; } .kicker::before { width: 16px; } }
.kicker--plain::before { display: none; }

.text-link {
  color: var(--accent-text); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  padding-block: 10px; margin-block: -10px; /* 44px tap area without moving the layout */
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-fast) ease;
}
.text-link .icon { width: 1.05em; height: 1.05em; transition: transform var(--dur-fast) var(--ease-out); }
.prose a, .link { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 75%, transparent); text-underline-offset: 3px; transition: text-decoration-color var(--dur-fast) ease; }

/* ---- 06 buttons & chips ------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r);
  font-weight: 600; font-size: 0.975rem; line-height: 1.15; letter-spacing: -0.005em;
  text-align: center; white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, color var(--dur-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur-fast) var(--ease-out); }
.btn-primary {
  background: var(--btn-bg); color: var(--btn-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 30px -14px rgba(16, 120, 248, 0.9);
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: default; pointer-events: none; }
@media (max-width: 420px) { .btn { white-space: normal; } }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid transparent; border-radius: var(--r); background: transparent; color: var(--ink-muted);
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.icon-btn:active { transform: scale(0.94); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; line-height: 1.3; color: var(--ink-muted);
  white-space: nowrap; max-width: 100%;
}
@media (max-width: 359px) { .chip { white-space: normal; border-radius: 10px; } }
.chip--accent { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text);
}

/* ---- 07 header & menus -------------------------------------------------- */
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.site-header[data-scrolled] { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; min-height: 44px; color: var(--ink); }
.brand-mark { width: auto; height: 28px; }
.brand-text { font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; white-space: nowrap; }
.brand-text .tld { color: var(--ink-dim); font-weight: 500; }

.main-nav { display: none; align-items: center; gap: 2px; margin-inline: auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 13px; border: 0; border-radius: 10px; background: none;
  color: var(--ink-muted); font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav-link[aria-current], .menu[data-current] > .menu-btn { color: var(--ink); }
.nav-link[aria-current] { background: var(--accent-soft); }
.icon-chevron { width: 0.95em; height: 0.95em; opacity: 0.7; transition: transform var(--dur-fast) var(--ease-out); }
.menu-btn[aria-expanded="true"] { color: var(--ink); }
.menu-btn[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-cta { display: none; }
@media (min-width: 32.5em) { .header-cta { display: inline-flex; margin-left: 6px; } }
@media (min-width: 66.25em) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .header-actions { margin-left: 0; }
}

/* theme toggle: the two icons cross-fade; a little blur hides the swap */
.theme-toggle { position: relative; }
.theme-toggle .icon { position: absolute; transition: opacity 200ms ease, transform 200ms var(--ease-out), filter 200ms ease; }
:root[data-theme="dark"] .theme-toggle .icon-moon,
:root[data-theme="light"] .theme-toggle .icon-sun { opacity: 0; transform: scale(0.6) rotate(-30deg); filter: blur(3px); }

/* dropdown menu — scales from its trigger, closes faster than it opens */
.menu { position: relative; }
.menu-panel {
  position: absolute; top: calc(100% + 10px); left: -8px; z-index: 70;
  min-width: 300px; padding: 8px;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: var(--surface-raised); box-shadow: var(--shadow-pop);
  transform-origin: 28px 0;
  opacity: 0; transform: scale(0.97) translateY(-4px); visibility: hidden; pointer-events: none;
  transition: opacity 120ms var(--ease-out), transform 120ms var(--ease-out), visibility 0s linear 120ms;
}
.menu[data-open] .menu-panel {
  opacity: 1; transform: none; visibility: visible; pointer-events: auto;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s;
}
.menu[data-instant] .menu-panel { transition: none; }
.menu-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; } /* list navigation: the highlight follows the pointer at once */
.menu-item-t { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.menu-item-d { font-size: 0.84rem; color: var(--ink-muted); line-height: 1.35; }
.menu-item[aria-current] { background: var(--accent-soft); }
.menu-item[aria-current] .menu-item-t { color: var(--accent-text); }

/* ---- 08 drawer (mobile navigation, native <dialog>) --------------------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(88vw, 380px); height: 100vh; height: 100dvh; max-width: none; max-height: none;
  padding: 0; border: 0; border-left: 1px solid var(--line-strong);
  background: var(--surface-raised); color: var(--ink);
  flex-direction: column; overscroll-behavior: contain;
  padding-right: env(safe-area-inset-right, 0px);
  transform: translateX(100%);
  transition: transform 260ms var(--ease-drawer), display 260ms allow-discrete, overlay 260ms allow-discrete;
}
.drawer[open] { display: flex; transform: none; transition-duration: 420ms; }
@starting-style { .drawer[open] { transform: translateX(100%); } }
.drawer[data-closing] { transform: translateX(100%); transition-duration: 260ms; }
.drawer::backdrop { background: rgba(1, 6, 16, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity 260ms ease, display 260ms allow-discrete, overlay 260ms allow-discrete; }
.drawer[open]::backdrop { opacity: 1; transition-duration: 420ms; }
@starting-style { .drawer[open]::backdrop { opacity: 0; } }
.drawer[data-closing]::backdrop { opacity: 0; transition-duration: 260ms; }

.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px 22px; border-bottom: 1px solid var(--line); }
.drawer-nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 12px 16px; }
.drawer-label { padding: 18px 10px 6px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.drawer-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 10px; border-radius: 10px; font-size: 1.0625rem; font-weight: 500; color: var(--ink); transition: background-color var(--dur-fast) ease; }
.drawer-nav a[aria-current] { color: var(--accent-text); background: var(--accent-soft); }
.drawer-foot { padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
html:has(.drawer[open]) { overflow: hidden; }

/* ---- 09 hero ------------------------------------------------------------ */
.hero { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px); overflow: clip; }
.hero-bg, .page-hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 60% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 85% 75% at 60% 20%, #000 20%, transparent 75%);
}
.hero-bg::after, .page-hero-bg::after {
  content: ""; position: absolute; top: -20%; right: -10%; width: 70%; height: 90%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%);
  filter: blur(20px);
}
.hero-grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.hero h1 { font-size: clamp(2.5rem, 4.1vw + 0.75rem, 3.75rem); margin-bottom: 26px; }
.hero h1 em { display: block; }
.hero .lede { margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .hero-ctas .btn { flex: 1 1 100%; } }

.page-hero { position: relative; padding-block: clamp(44px, 6vw, 92px) clamp(48px, 6vw, 88px); overflow: clip; }
.page-hero h1 { font-size: clamp(1.95rem, 3.9vw + 0.95rem, 3.9rem); margin-bottom: 24px; }
.page-hero .lede { margin-bottom: 30px; }
.page-hero .lede:last-child { margin-bottom: 0; } /* a hero without buttons ends with its text */
.page-hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .page-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
@media (max-width: 365px) { .page-hero h1 { font-size: clamp(1.8rem, 9.6vw, 1.95rem); } }
@media (min-width: 980px) and (max-width: 1279px) { .page-hero-grid h1 { font-size: clamp(2.6rem, 5.2vw - 0.5rem, 3.9rem); } }
.page-hero--narrow .page-hero-text { max-width: 880px; }
.hero-note { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--ink-dim); }
.hero-ctas + .hero-note { margin-top: 18px; }

/* four value statements under the home hero */
.facts-strip {
  display: grid; grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(44px, 6vw, 80px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.facts-strip > * { padding: 24px 24px 26px; border-top: 1px solid var(--line); }
.facts-strip > *:first-child { border-top: 0; }
@media (min-width: 640px) {
  .facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-strip > * { border-top: 0; border-left: 1px solid var(--line); }
  .facts-strip > *:nth-child(odd) { border-left: 0; }
  .facts-strip > *:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1060px) {
  .facts-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts-strip > *:nth-child(n) { border-top: 0; border-left: 1px solid var(--line); }
  .facts-strip > *:first-child { border-left: 0; }
}
.fact-k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.fact-v { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.fact-s { font-size: 0.925rem; line-height: 1.55; color: var(--ink-muted); }

/* ---- 10 media ----------------------------------------------------------- */
.media-frame {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--screen-line);
  background: var(--screen-bg);
  box-shadow: var(--glow), 0 0 0 6px color-mix(in srgb, var(--accent) 5%, transparent);
}
.media-frame img { width: 100%; height: auto; }
a.media-frame { transition: transform var(--dur) var(--ease-out), border-color var(--dur) ease, box-shadow var(--dur) ease; }
/* width:100% matters: a grid item with auto margins shrinks to its content, and an unloaded picture has none */
.media-frame--portrait { width: 100%; max-width: 520px; margin-inline: auto; }
/* animated pictures (src/art/*.svg): the base styles are the finished picture, motion only with .is-live */
.art { display: block; width: 100%; height: auto; }
.art[data-paused], .art[data-paused] * { animation-play-state: paused !important; }
/* until its motion starts, an animated picture is not shown: otherwise the finished picture would flash
   for a frame and then build itself up again (site.js starts it after the first paint) */
@media (prefers-reduced-motion: no-preference) { .io .art:not(.is-live) { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .art, .art * { animation: none !important; } }
.media-caption { margin-top: 14px; font-size: 0.875rem; color: var(--ink-dim); text-align: center; }

/* ---- 11 cards & grids --------------------------------------------------- */
.grid { display: grid; gap: clamp(14px, 1.6vw, 20px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 999px) { .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.grid--loose { gap: clamp(20px, 2.4vw, 32px); }

.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.card > p, .card li { font-size: 0.975rem; line-height: 1.6; color: var(--ink-muted); }
.card-num { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--accent-text); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
.card-icon .icon { width: 21px; height: 21px; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.card-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--ink-dim); }
.card--accent { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 60%), var(--surface); }
.card--flat { background: transparent; }

/* a whole card that is a link */
a.card { transition: transform var(--dur-press) var(--ease-out), border-color var(--dur-fast) ease, background-color var(--dur-fast) ease; }
a.card:active { transform: scale(0.985); }

/* ---- 12 lists ----------------------------------------------------------- */
/* key / value rows */
/* side by side only where the list itself is wide enough (it may sit in a half-width column) */
.kv { border-top: 1px solid var(--line); container-type: inline-size; }
.kv-row { display: grid; gap: 6px 32px; grid-template-columns: minmax(0, 1fr); padding: 20px 0; border-bottom: 1px solid var(--line); }
@container (min-width: 540px) { .kv-row { grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr); align-items: baseline; } }
.kv-k { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.kv-v { color: var(--ink); line-height: 1.6; }
.kv--compact .kv-row { padding: 14px 0; }
.kv--compact .kv-v { font-size: 0.975rem; }

/* numbered rows (roadmap, bullets, steps) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; gap: 8px 28px; grid-template-columns: 56px minmax(0, 1fr); padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (max-width: 560px) { .row { grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; } }
.row-n { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--accent-text); }
.row-t { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }
.row-d { margin-top: 6px; color: var(--ink-muted); font-size: 0.975rem; line-height: 1.6; }
.row-meta { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); }
.row .chips { margin-top: 12px; }
/* wide variant: number | title | description | tags */
@media (min-width: 1100px) {
  .rows--wide .row { grid-template-columns: 56px minmax(0, 0.7fr) minmax(0, 1.05fr) minmax(0, 0.7fr); align-items: baseline; }
  .rows--wide .row-d { margin-top: 0; }
  .rows--wide .row > .row-d:last-child { grid-column: 3 / -1; } /* no tag column: the text may use it */
  .rows--wide .row .chips { margin-top: 0; justify-content: flex-end; }
}
@media (max-width: 1099px) { .rows--wide .row > *:nth-child(n + 3) { grid-column: 2; } }
a.row { position: relative; isolation: isolate; }
a.row::before { content: ""; position: absolute; inset: 0 -14px; z-index: -1; border-radius: 12px; background: transparent; transition: background-color var(--dur-fast) ease; }
@media (max-width: 560px) { a.row::before { inset: 0 -10px; } }

/* timeline — a line with glowing nodes, like the connectors in the brand pictures */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--accent-line), var(--line)); }
.tl-row { position: relative; display: grid; gap: 6px 32px; grid-template-columns: minmax(0, 1fr); padding: 0 0 34px 34px; }
.tl-row:last-child { padding-bottom: 0; }
.tl-row::before { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-vivid); box-shadow: 0 0 0 4px var(--accent-soft); }
@media (min-width: 760px) { .tl-row { grid-template-columns: 150px minmax(0, 1fr); align-items: baseline; } }
.tl-date { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--accent-text); }
.tl-t { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.tl-s { margin-top: 4px; color: var(--ink-muted); font-size: 0.975rem; }
.section--soft .tl-row::before { background: var(--bg-soft); }

/* numbered checklist grid */
.checks { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-weight: 500; }
.check-n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-text); letter-spacing: 0.08em; flex: none; }

/* simple bullet list with check marks */
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-muted); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid var(--accent-vivid); border-bottom: 2px solid var(--accent-vivid); transform: rotate(-45deg) scale(0.8); transform-origin: left bottom; }

/* FAQ — native <details>; height animates where the browser supports it */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px; gap: 12px; align-items: center; padding: 22px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq-n { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.1em; color: var(--accent-text); }
.faq summary .icon { width: 22px; height: 22px; color: var(--ink-dim); transition: transform var(--dur) var(--ease-out), color var(--dur-fast) ease; }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--accent-text); }
.faq-a { padding: 0 40px 26px 56px; color: var(--ink-muted); max-width: 78ch; }
@media (max-width: 560px) { .faq summary { grid-template-columns: 30px minmax(0, 1fr) 24px; font-size: 1.02rem; } .faq-a { padding: 0 0 24px 42px; } }
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size 280ms var(--ease-out), opacity 200ms ease, content-visibility 280ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; opacity: 1; }
}

/* ---- 13 screens: UI mock-ups in the look of the brand pictures ---------- */
.screen {
  overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--screen-line); background: var(--screen-bg); color: var(--screen-ink);
  box-shadow: var(--glow);
  font-size: 0.9rem; line-height: 1.5;
}
.screen-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--screen-line); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--screen-muted); }
.screen-dots { display: inline-flex; gap: 6px; flex: none; }
.screen-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(147, 166, 194, 0.35); }
.screen-dots i:first-child { background: var(--screen-accent); }
.screen-bar > span:last-child { margin-left: auto; text-align: right; }
.screen-bar > .screen-dots + span:last-child { margin-left: 0; text-align: left; } /* a lone title sits next to the dots */
@media (max-width: 374px) { .screen-bar { font-size: 0.66rem; letter-spacing: 0.02em; } }
/* everything inside a screen answers to the width of the screen, not of the window:
   a screen is full width on a phone and half width on a desktop */
.screen-body { padding: 18px; container-type: inline-size; }
.screen strong { color: var(--screen-ink); }
.screen-title { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.015em; margin-bottom: 14px; }
.screen-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--screen-muted); margin-bottom: 6px; }
.screen-label--asis { text-transform: none; letter-spacing: 0.04em; }
.screen-rule { height: 1px; background: var(--screen-line); margin: 12px 0; border: 0; }
.screen-panel { padding: 12px 14px; border: 1px solid var(--screen-line); border-radius: 10px; background: var(--screen-surface); }

.ui-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ui-kpis--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ui-kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (min-width: 480px) { .ui-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* labels on top, values on one line across the row even when one label needs two lines */
.ui-kpi { display: flex; flex-direction: column; padding: 11px 12px; border: 1px solid var(--screen-line); border-radius: 10px; background: var(--screen-surface); min-width: 0; }
.ui-kpi .k { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--screen-muted); margin-bottom: 5px; }
.ui-kpi .v { margin-top: auto; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
@container (max-width: 340px) { .ui-kpis { gap: 8px; } .ui-kpi { padding-inline: 8px; } .ui-kpi .k { letter-spacing: 0.02em; } }
@container (max-width: 290px) { .ui-kpi .k { letter-spacing: 0; font-size: 0.58rem; } }
/* opt-in: three tiles become three rows (label left, value right) before a long label or amount has to break */
@container (max-width: 449px) {
  .ui-kpis--stack { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ui-kpis--stack > .ui-kpi { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .ui-kpis--stack > .ui-kpi > .k { margin-bottom: 0; }
  .ui-kpis--stack > .ui-kpi > .v { margin-top: 0; }
}

.ui-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--screen-line); }
.ui-row:last-child { border-bottom: 0; }
.ui-row > span:first-child { min-width: 0; }
.ui-mono { font-family: var(--font-mono); font-size: 0.72rem; color: var(--screen-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; white-space: nowrap; color: #9cc8ff; background: rgba(61, 149, 255, 0.16); border: 1px solid rgba(61, 149, 255, 0.3); }
.ui-tag.ok { color: #7fe3ab; background: rgba(52, 209, 124, 0.13); border-color: rgba(52, 209, 124, 0.3); }
.ui-tag.warn { color: #f8cf7a; background: rgba(245, 184, 61, 0.13); border-color: rgba(245, 184, 61, 0.3); }
.ui-tag.err { color: #ff9c9c; background: rgba(255, 107, 107, 0.13); border-color: rgba(255, 107, 107, 0.32); }
.ui-ok { color: #7fe3ab; } .ui-warn { color: #f8cf7a; } .ui-err { color: #ff9c9c; } .ui-accent { color: #7db9ff; } .ui-muted { color: var(--screen-muted); }
@container (max-width: 480px) {
  .ui-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .ui-row > .ui-mono:not(:last-child) { grid-area: 2 / 1; white-space: normal; }
  .ui-row > .ui-tag { grid-area: 1 / 2 / span 2; }
  /* opt-in for long values or long tags: label on its own line, value and tag share the next one */
  .ui-row--wrap { display: flex; flex-wrap: wrap; gap: 3px 14px; }
  .ui-row--wrap > :first-child { flex: 0 0 100%; }
  .ui-row--wrap > .ui-mono { flex: 1 1 auto; }
  .ui-row--wrap > .ui-tag { margin-left: auto; }
}

.ui-bar { height: 6px; border-radius: 99px; background: rgba(147, 166, 194, 0.18); overflow: hidden; }
.ui-bar-fill { height: 100%; width: var(--pct, 50%); border-radius: inherit; background: rgba(238, 244, 252, 0.72); }
.ui-bar-fill.accent { background: linear-gradient(90deg, #1078f8, #5aa9ff); }
.ui-bars { display: flex; align-items: flex-end; gap: 6px; height: 88px; padding: 8px 0; border-bottom: 1px solid var(--screen-line); }
.ui-bars > i { flex: 1; height: var(--h, 50%); border-radius: 3px 3px 0 0; background: rgba(238, 244, 252, 0.6); }
.ui-bars > i.accent { background: linear-gradient(180deg, #5aa9ff, #1078f8); }
.ui-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--screen-muted); }
/* a two-column block inside a screen splits by the width of the screen */
.screen-body .grid-2 { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 440px) { .screen-body .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ui-table { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 18px; align-items: baseline; }

/* terminal-style lines */
.term { font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.75; }
.term .l { display: block; white-space: pre-wrap; word-break: break-word; }
.term .k { color: var(--screen-muted); } .term .v { color: var(--screen-ink); } .term .ok { color: #7fe3ab; } .term .a { color: #7db9ff; } .term .w { color: #f8cf7a; }

/* ---- 14 feature / pair / stats / cta ------------------------------------ */
.feature { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feature--media-narrow { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .feature--media-narrow.feature--flip { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .feature--flip > :first-child { order: 2; }
}
.feature--top { align-items: start; } /* text next to a list: both start on the same line */
.feature + .feature { margin-top: clamp(56px, 8vw, 112px); }
.feature-text h2, .feature-text h3 { margin-bottom: 18px; }
.feature-text h3 { font-size: clamp(1.45rem, 1.4vw + 1rem, 2rem); letter-spacing: -0.025em; line-height: 1.12; }
.feature-text > p:not(.kicker) { color: var(--ink-muted); max-width: 58ch; }
.feature-text > p:not(.kicker) + p { margin-top: 14px; }
.feature-text .ticks, .feature-text .chips { margin-top: 22px; }
.feature-text .hero-ctas, .feature-text .text-link { margin-top: 28px; }

/* before / after pair */
.pairs { display: grid; gap: clamp(14px, 1.6vw, 20px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pair { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.pair-before { padding: 22px 26px; border-bottom: 1px dashed var(--line-strong); background: var(--surface-2); }
.pair-after { padding: 24px 26px 26px; }
.pair-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 8px; }
.pair-after .pair-label { color: var(--accent-text); }
.pair-quote { color: var(--ink-muted); font-size: 1.02rem; line-height: 1.45; }
.pair-head { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }
.pair-body { color: var(--ink-muted); font-size: 0.975rem; }

/* big numbers */
.stats { display: grid; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } }
.stat { padding: clamp(20px, 2.4vw, 30px); box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.stat-v { font-weight: 700; font-size: clamp(1.6rem, 2vw + 1rem, 2.5rem); letter-spacing: -0.035em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-v em, .stat-v .accent { font-style: normal; color: var(--accent-vivid); }
.stat-k { margin-top: 8px; font-size: 0.9rem; color: var(--ink-muted); line-height: 1.45; }
/* metrics inside a card: quieter than the page-level numbers, and a value such as "1 Tag statt 2 Wochen" fits a phone column */
@media (max-width: 379px) { .stat { padding-inline: 14px; } .stat-v { font-size: clamp(1.3rem, 6.8vw, 1.6rem); } }
.stats--compact .stat { padding: clamp(14px, 1.6vw, 20px) clamp(12px, 3.6vw, 22px); }
.stats--compact .stat-v { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.5rem); letter-spacing: -0.025em; line-height: 1.15; }
.stats--compact .stat-k { margin-top: 6px; font-size: 0.8125rem; }

/* meta cells (project facts under a hero) */
.meta-grid { display: grid; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .meta-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.meta-cell { padding: 18px 20px 4px 0; }
@media (max-width: 374px) { .meta-grid { grid-template-columns: minmax(0, 1fr); } }
.meta-cell .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px; }
.meta-cell .v { font-weight: 600; line-height: 1.35; }

/* closing call to action */
.cta {
  position: relative; overflow: hidden;
  display: grid; gap: 28px 48px; align-items: center; grid-template-columns: minmax(0, 1fr);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--accent-line); border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--surface);
}
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr) auto; } }
.cta h2 { font-size: clamp(1.8rem, 2.4vw + 1rem, 2.9rem); margin-bottom: 16px; }
.cta p:not(.kicker) { color: var(--ink-muted); max-width: 56ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 560px) and (max-width: 899px) { .cta-actions { flex-direction: row; flex-wrap: wrap; } }

/* previous / next */
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; border-top: 1px solid var(--line); }
.pager a:last-child { margin-left: auto; } /* stays on the right when the two links stack */
.pager a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--ink-muted); transition: color var(--dur-fast) ease; }
.pager .icon { transition: transform var(--dur-fast) var(--ease-out); }

/* ---- 15 people & quotes ------------------------------------------------- */
.quote { font-weight: 600; font-size: clamp(1.5rem, 1.8vw + 1rem, 2.25rem); letter-spacing: -0.03em; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.people { display: grid; gap: 18px; margin-top: 36px; }
.person { display: flex; align-items: center; gap: 16px; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-text); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }
.person-n { font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.person-r { font-size: 0.9rem; color: var(--ink-muted); }

/* ---- 16 forms ----------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(36px, 5vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.contact-grid h2 { margin-bottom: 20px; }

.channels { margin-top: 34px; border-top: 1px solid var(--line); }
.channel { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 58px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.channel-k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.channel-v { color: var(--ink-muted); min-width: 0; }
.channel .icon { color: var(--accent-text); transition: transform var(--dur-fast) var(--ease-out); }
a.channel { transition: background-color var(--dur-fast) ease; }
@media (max-width: 480px) { .channel { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; } }
@media (max-width: 400px) { .channel { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; } .channel-k { grid-column: 1 / -1; } }

.form-card { position: relative; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line-strong); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--glow); container-type: inline-size; }
.field { display: grid; gap: 8px; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 440px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* two fields side by side where the card has room */
.label, .field > label, fieldset.field > legend { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.label .req, .field label .req, fieldset.field > legend .req { color: var(--ink-dim); letter-spacing: 0.04em; }
fieldset.field { border: 0; padding: 0; margin-inline: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 10px; }

.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--field-line); border-radius: var(--r); background: var(--surface-2); color: var(--ink);
  font-size: 1rem; /* 16px: iOS does not zoom into the field */
  line-height: 1.4;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f84a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field ::placeholder { color: var(--ink-dim); opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--accent-vivid); border-radius: var(--r); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--invalid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--invalid) 20%, transparent); }
.field [aria-invalid="true"]:focus-visible { outline-color: var(--invalid); }
.field > .form-alert { margin: 10px 0 0; } /* a field error sits directly under its field */

/* multi-select topics: real checkboxes that look like chips */
.chip-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; display: inline-flex; cursor: pointer; }
.chip-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-check > span {
  display: inline-flex; align-items: center; gap: 0; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-muted);
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.chip-check > span::before { content: ""; width: 0; height: 7px; margin-right: 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: 0; transform: rotate(-45deg) translateY(-2px); transition: width var(--dur-fast) var(--ease-out), margin-right var(--dur-fast) var(--ease-out), opacity var(--dur-fast) ease; }
.chip-check input:checked + span { background: var(--accent-soft); border-color: var(--accent-vivid); color: var(--ink); }
.chip-check input:checked + span::before { width: 12px; margin-right: 8px; opacity: 1; }
.chip-check:active > span { transform: scale(0.96); }
.chip-check input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.form-privacy { font-size: 0.82rem; line-height: 1.55; color: var(--ink-muted); margin-bottom: 18px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
@media (max-width: 480px) { .form-foot .btn { flex: 1 1 100%; } }
code { white-space: nowrap; font-family: var(--font-mono); font-size: 0.85em; padding: 0.1em 0.4em; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); }
.form-note { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--ink-dim); }
.form-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--crit) 55%, transparent); border-radius: var(--r); background: color-mix(in srgb, var(--crit) 10%, transparent); color: var(--ink); font-size: 0.92rem; line-height: 1.5; }
.form-alert .icon { color: var(--crit); margin-top: 1px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* submit button: label and "sending" swap with a short blur cross-fade */
.btn-swap { display: inline-grid; }
.btn-swap > * { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: opacity 180ms ease, filter 180ms ease, transform 180ms var(--ease-out); }
.btn-swap > [data-busy] { opacity: 0; filter: blur(3px); transform: translateY(4px); }
.btn[aria-busy="true"] .btn-swap > [data-idle] { opacity: 0; filter: blur(3px); transform: translateY(-4px); }
.btn[aria-busy="true"] .btn-swap > [data-busy] { opacity: 1; filter: none; transform: none; }
.btn[aria-busy="true"] { pointer-events: none; }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; }
.btn[aria-busy="true"] .spinner { animation: spin 600ms linear infinite; } /* turns only while it can be seen */
@keyframes spin { to { transform: rotate(360deg); } }

/* success state replaces the form */
.form-done h3 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 14px; }
.form-done p { color: var(--ink-muted); margin-bottom: 24px; }
.form-done-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); color: var(--ok); }
.form-done-mark .icon { width: 24px; height: 24px; stroke-width: 2.2; stroke-dasharray: 22; stroke-dashoffset: 0; }

/* ---- 17 footer ---------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding-block: clamp(44px, 6vw, 72px) calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; gap: 36px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }
.footer-tag { margin-top: 16px; max-width: 40ch; font-size: 0.95rem; color: var(--ink-muted); }
.footer-col h2 { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 12px; }
.footer-col a { display: flex; align-items: center; min-height: 36px; padding-block: 4px; font-size: 0.95rem; line-height: 1.35; color: var(--ink-muted); transition: color var(--dur-fast) ease; }
.footer-col a[aria-current] { color: var(--ink); }
@media (pointer: coarse) { .footer-col a, .chip-check > span { min-height: 44px; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(32px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-dim); }

/* ---- 18 prose (legal pages) --------------------------------------------- */
.prose { max-width: 76ch; color: var(--ink-muted); }
.prose h1 { font-size: clamp(2.1rem, 3vw + 1rem, 3.2rem); margin-bottom: 14px; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; margin: 2.4em 0 0.6em; }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 0.5em; }
.prose h4 { margin: 1.4em 0 0.4em; }
.prose p, .prose ul, .prose ol, .prose address, .prose dl, .prose table { margin-bottom: 1em; }
.prose address { font-style: normal; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--accent-text); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.prose .meta, .prose-meta { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-dim); margin-bottom: 2.4em; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* legal pages: a label column and a text column */
.legal { padding-block: clamp(44px, 6vw, 88px) var(--section-y); }
.legal-head { max-width: 980px; padding-bottom: clamp(28px, 4vw, 48px); margin-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.legal-head > * { max-width: 76ch; }
.legal-head h1 { font-size: clamp(2.3rem, 4vw + 1rem, 4rem); margin-bottom: 18px; }
.legal-grid { display: grid; gap: 6px 56px; grid-template-columns: minmax(0, 1fr); max-width: 980px; color: var(--ink-muted); }
@media (min-width: 820px) { .legal-grid { grid-template-columns: 14.5rem minmax(0, 1fr); gap: 34px 56px; } } /* rem: the label column grows with the reader's font size */
.legal-grid > h2 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.6; color: var(--accent-text); padding-top: 4px; hyphens: manual; }
@media (max-width: 819px) { .legal-grid > h2 { margin-top: 26px; } .legal-grid > h2:first-child { margin-top: 0; } }
.legal-grid > div > * + * { margin-top: 0.9em; }
.legal-grid h3 { font-size: 1.1rem; margin-top: 1.6em; color: var(--ink); }
.legal-grid ul { list-style: disc; padding-left: 1.3em; }
.legal-grid ol { list-style: decimal; padding-left: 1.4em; }
.legal-grid li + li { margin-top: 0.35em; }
.legal-grid li::marker { color: var(--accent-text); }
.legal-grid a { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 75%, transparent); text-underline-offset: 3px; transition: text-decoration-color var(--dur-fast) ease; }
.legal-grid .legal-stand { margin-top: 1.5rem; }
.legal-grid em { font-style: normal; color: var(--ink); } /* no italic face is shipped */
/* closing links of a legal page */
.legal-links { display: flex; flex-wrap: wrap; gap: 20px 32px; max-width: 980px; margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }

/* ---- 19 motion ---------------------------------------------------------- */
/* Hover lives only where a pointer can really hover (touch fakes it and gets stuck). */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #0f74f2; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 14px 36px -12px rgba(16, 120, 248, 1); }
  .btn-ghost:hover { border-color: var(--accent-vivid); background: var(--accent-soft); }
  .btn:hover .icon, .text-link:hover .icon, a.channel:hover .icon, .pager a:last-child:hover .icon { transform: translateX(3px); }
  .pager a:first-child:hover .icon { transform: translateX(-3px); }
  .pager a:hover { color: var(--ink); }
  .icon-btn:hover { background: var(--accent-soft); color: var(--ink); }
  .nav-link:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .menu-item:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .drawer-nav a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .text-link:hover { text-decoration-color: currentColor; }
  .prose a:hover, .link:hover, .legal-grid a:hover { text-decoration-color: currentColor; }
  .footer-col a:hover { color: var(--ink); }
  a.media-frame:hover { transform: translateY(-3px); border-color: var(--screen-line-strong); }
  a.card:hover { border-color: var(--accent-line); background: var(--surface-2); }
  a.row:hover::before, a.channel:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
  .chip-check:hover > span { border-color: var(--accent-vivid); color: var(--ink); }
  .faq summary:hover .icon { color: var(--accent-text); }
}

/* press beats hover (with a mouse :active always comes with :hover); the tint comes in at once and fades out */
a.media-frame:active { transform: scale(0.99); }
a.row:active::before, .drawer-nav a:active, a.channel:active, .nav-link:active, .menu-item:active { background: var(--accent-soft); transition-duration: 0s; }
/* plain links answer a press too: the native tap highlight is switched off */
.text-link:active, .pager a:active, .footer-col a:active, .legal-grid a:active, .prose a:active, .link:active, .brand:active, .faq summary:active { opacity: 0.6; }

/* a theme switch is one cut: surfaces with a colour transition must not lag behind those without */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
.theme-switching .theme-toggle .icon { transition: opacity 200ms ease, transform 200ms var(--ease-out), filter 200ms ease !important; }

@media (prefers-reduced-motion: no-preference) {
  html.smooth { scroll-behavior: smooth; } /* set by site.js after load: arriving at #kontakt jumps at once */

  /* page-load entrance of a hero: lead first, support follows, decoration only fades */
  .js [data-enter] { animation: enter-rise var(--dur-enter) var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 1ms); }
  .js [data-enter="fade"] { animation-name: enter-fade; animation-duration: 420ms; }
  .js [data-enter="media"] { animation-name: enter-media; animation-duration: 820ms; }

  /* on-scroll reveal: a section head, then its grid as one wave */
  /* one-shot animations, not transitions: afterwards every element keeps its own hover and press transitions */
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 0; }
  .js [data-reveal].is-in { opacity: 1; animation: enter-rise 640ms var(--ease-out) backwards; }
  .js [data-reveal-group].is-in > * { opacity: 1; animation: enter-rise-sm 560ms var(--ease-out) backwards; animation-delay: calc(min(var(--i, 0), 5) * 55ms); }
  /* pictures: the frame fades in while the picture inside is wiped in from the top */
  .js [data-reveal="media"].is-in { animation: enter-fade 500ms var(--ease-out) backwards; }
  .js [data-reveal="media"].is-in img { animation: wipe-down 1000ms var(--ease-out) backwards; }

  .form-card [data-swap] { animation: enter-rise 420ms var(--ease-out) both; }
  .form-done-mark .icon { animation: draw 520ms 160ms var(--ease-out) both; }
}
/* entrances start at 0.01, not 0: the browser does not count fully transparent text as its largest paint (LCP) */
@keyframes enter-rise { from { opacity: 0.01; transform: translateY(14px); } }
@keyframes enter-rise-sm { from { opacity: 0.01; transform: translateY(12px); } }
@keyframes wipe-down { from { clip-path: inset(0 0 100% 0); } }
@keyframes enter-fade { from { opacity: 0.01; } }
@keyframes enter-media { from { opacity: 0.01; transform: translateY(18px) scale(0.985); } }
@keyframes draw { from { stroke-dashoffset: 22; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .js [data-enter] { animation: enter-fade 200ms ease backwards; }
  .faq details::details-content { transition: opacity 200ms ease, content-visibility 200ms allow-discrete; }
  @starting-style { .drawer[open] { opacity: 0; } }
  a.media-frame:hover { transform: none; }
  .btn:active, .icon-btn:active, a.card:active, a.media-frame:active, .chip-check:active > span { transform: none; }
  .drawer, .drawer[open], .drawer[data-closing] { transition-property: opacity, display, overlay; transform: none; }
  .drawer { opacity: 0; } .drawer[open] { opacity: 1; } .drawer[data-closing] { opacity: 0; }
  .menu-panel, .menu[data-open] .menu-panel { transform: none; }
  .spinner { animation-duration: 1.2s; }
}

/* ---- 20 print ----------------------------------------------------------- */
@media print {
  :root[data-theme="dark"], :root[data-theme="light"] {
    color-scheme: light;
    --bg: #fff; --bg-soft: #fff; --surface: #fff; --surface-2: #f0f4fa; --surface-raised: #fff;
    --line: #dbe3ef; --line-strong: #b9c7dc; --ink: #06122b; --ink-muted: #44536d; --ink-dim: #5d6d88;
    --accent: #0b63e5; --accent-vivid: #0b63e5; --accent-text: #0a57cc; --accent-soft: rgba(11, 99, 229, 0.08); --accent-line: rgba(11, 99, 229, 0.3);
    --glow: none; --shadow-pop: none;
  }
  .site-header, .drawer, .site-footer nav, .skip-link, .hero-bg, .page-hero-bg, .legal-links { display: none !important; }
  body { background: #fff; color: #000; }
  .art { opacity: 1 !important; }
  .js [data-reveal], .js [data-reveal-group] > *, .js [data-enter] { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }
}
