/* =====================================================================
   BeiGlen.de – design system 2026-11 ("lebendig, warm, überzeugend")
   - Light theme is the default, [data-theme="dark"] switches to navy.
   - Every colour is a token; each section sets a tone (--tone) that
     drives icons, pills, underlines and the card spotlight.
   - Motion: everything that moves is scoped to
       @media (prefers-reduced-motion: no-preference) + html.motion-ok
     (set by JS only when allowed). Without JS or with motion off the
     page shows the final state.
   ===================================================================== */

/* ---------- Fonts (self-hosted, swap) ---------- */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-latin-wght.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: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-wght.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: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/caveat-latin-600.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: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/caveat-latin-ext-600.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;
}

@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg-white: #ffffff;
  --bg-paper: #fbf7f0;
  --card: #ffffff;
  --card-2: #fdfbf7;
  --line: rgba(20, 33, 61, .12);
  --line-strong: rgba(20, 33, 61, .24);
  /* text */
  --ink: #14213d;
  --text: #2d3651;
  --muted: #545d75;
  /* brand (logo blue) + accent (warm) + ok (green) + violet (support) */
  --brand: #1d5bd8;   --brand-ink: #1747b0;   --brand-fill: #1d5bd8;
  --accent: #b93f0b;  --accent-ink: #9a3412;  --accent-fill: #d9531a;
  --ok: #047857;      --ok-ink: #065f46;      --ok-fill: #0a8f68;
  --violet: #6b2fd0;  --violet-ink: #5b21b6;  --violet-fill: #7341d6;
  --grad: linear-gradient(90deg, var(--brand), var(--violet) 55%, var(--accent));
  --grad-line: linear-gradient(90deg, var(--brand), var(--accent) 55%, var(--ok));
  /* misc */
  --header-bg: rgba(255, 255, 255, .86);
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 12px 28px -18px rgba(20, 33, 61, .38);
  --shadow-hi: 0 2px 6px rgba(20, 33, 61, .08), 0 28px 56px -26px rgba(20, 33, 61, .5);
  --blob-a: rgba(29, 91, 216, .22);
  --blob-b: rgba(233, 108, 44, .2);
  --land-1: #eef2fb; --land-2: #e3eaf8; --land-3: #d9e2f4; --land-city: #cdd8ef; --land-leaf: #9dc7b2;
  --app-bg: #ffffff; --app-line: #e6ebf4; --app-soft: #f3f6fc; --bezel: #1c2337;
  --input-bg: #ffffff;
  --chart-before: #b9c3d8; --chart-after: #1d5bd8;
  --on-tone: #ffffff;
  /* constants */
  --radius: 1.5rem;
  --radius-sm: .9rem;
  --container: 1240px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-swash: cubic-bezier(.6, 0, .2, 1);
  --ease-pop: cubic-bezier(.2, .9, .3, 1.3);
  --header-h: 72px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg-white: #0b1328;
  --bg-paper: #111c38;
  --card: #15213f;
  --card-2: #172548;
  --line: rgba(160, 185, 255, .16);
  --line-strong: rgba(160, 185, 255, .3);
  --ink: #f4f6fc;
  --text: #d5dcee;
  --muted: #a3aecb;
  --brand: #86adff;   --brand-ink: #9cbcff;   --brand-fill: #3366e6;
  --accent: #ff9d66;  --accent-ink: #ffb38a;  --accent-fill: #d4561a;
  --ok: #4ade9a;      --ok-ink: #6ee7b0;      --ok-fill: #0f8f67;
  --violet: #c0a8ff;  --violet-ink: #cfbcff;  --violet-fill: #7c4ddb;
  --header-bg: rgba(11, 19, 40, .82);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 30px -20px rgba(0, 0, 0, .8);
  --shadow-hi: 0 2px 8px rgba(0, 0, 0, .35), 0 30px 60px -28px rgba(0, 0, 0, .9);
  --blob-a: rgba(80, 130, 255, .28);
  --blob-b: rgba(255, 140, 80, .16);
  --land-1: #101b37; --land-2: #13203f; --land-3: #172649; --land-city: #1b2c54; --land-leaf: #1f5a4a;
  --app-bg: #0f1830; --app-line: #24304f; --app-soft: #16213f; --bezel: #050912;
  --input-bg: #0e1731;
  --chart-before: #3d4a6b; --chart-after: #86adff;
  --on-tone: #0b1328;
  color-scheme: dark;
}

/* Section tones */
.tone-brand  { --tone: var(--brand);  --tone-ink: var(--brand-ink);  --tone-fill: var(--brand-fill); }
.tone-accent { --tone: var(--accent); --tone-ink: var(--accent-ink); --tone-fill: var(--accent-fill); }
.tone-ok     { --tone: var(--ok);     --tone-ink: var(--ok-ink);     --tone-fill: var(--ok-fill); }
.tone-violet { --tone: var(--violet); --tone-ink: var(--violet-ink); --tone-fill: var(--violet-fill); }
:root, [class*="tone-"] {
  --tone-soft: color-mix(in srgb, var(--tone, var(--brand)) 12%, transparent);
  --tone-line: color-mix(in srgb, var(--tone, var(--brand)) 32%, transparent);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text);
  background: var(--bg-white); overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-ink); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; hyphens: auto; }
h3 { font-size: 1.3rem; font-weight: 750; }
h4 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
strong { color: var(--ink); font-weight: 700; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.band :focus-visible { outline-color: #ffd0b0; }
.band .form :focus-visible { outline-color: var(--brand); }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--brand-fill); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-weight: 600; }
.skip-link:focus { left: 12px; color: #fff; }
.is-live .nojs-only { display: none !important; }
[hidden] { display: none !important; }

/* Icons */
.i { width: 1.25em; height: 1.25em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i.flip { transform: scaleX(-1); }
.ico3d {
  --s: 3.6rem;
  position: relative; display: inline-grid; place-items: center; flex: 0 0 auto;
  width: var(--s); height: var(--s); border-radius: calc(var(--s) * .3);
  color: #fff; isolation: isolate;
  background: linear-gradient(150deg, color-mix(in srgb, var(--tone-fill, var(--brand-fill)) 62%, #fff) 0%, var(--tone-fill, var(--brand-fill)) 58%, color-mix(in srgb, var(--tone-fill, var(--brand-fill)) 78%, #000) 100%);
  box-shadow: 0 calc(var(--s) * .22) calc(var(--s) * .3) calc(var(--s) * -.16) color-mix(in srgb, var(--tone-fill, var(--brand-fill)) 70%, transparent), inset 0 -3px 0 rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.ico3d::before { /* glossy highlight */
  content: ""; position: absolute; left: 12%; right: 12%; top: 6%; height: 42%; border-radius: 50% / 70% 70% 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); z-index: -1;
}
.ico3d .i { width: 46%; height: 46%; stroke-width: 2.1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
.ico3d--sm { --s: 2.75rem; }

/* ---------- Typography helpers ---------- */
.pill {
  position: relative; display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem;
  padding: .38rem .85rem .38rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 650; letter-spacing: .02em;
  color: var(--tone-ink, var(--brand-ink)); background: var(--tone-soft); border: 1px solid var(--tone-line);
}
.pill .i { width: 1.05rem; height: 1.05rem; }
.pill--sm { font-size: .74rem; padding: .28rem .7rem; margin-bottom: .75rem; }
.pill__sep { opacity: .8; font-weight: 550; }
.pill::after { /* ping ring (path cards) */
  content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid var(--tone, var(--brand)); opacity: 0; pointer-events: none;
}

.sec-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.sec-head .pill { margin-bottom: 1.1rem; }
.sec-title { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.05rem); font-weight: 850; line-height: 1.08; letter-spacing: -.032em; margin-bottom: .35em; hyphens: manual; text-wrap: balance; }
.sec-sub { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: .9rem auto 0; }

/* Hand-drawn underline on one word of a title */
.swash { position: relative; display: inline-block; isolation: isolate; }
.swash::after {
  content: ""; position: absolute; left: -3%; right: -3%; bottom: -.04em; height: .24em; z-index: -1;
  background: var(--tone, var(--brand)); opacity: .9;
  -webkit-mask: url(/assets/img/swash.svg) center / 100% 100% no-repeat; mask: url(/assets/img/swash.svg) center / 100% 100% no-repeat;
}

/* Hand note ("Dopisek"): Caveat, −2°, a drawn line under it */
.note { display: inline-block; margin: .2rem 0 0; color: var(--tone-ink, var(--brand-ink)); font-family: var(--hand); font-weight: 600; font-size: 1.7rem; line-height: 1.15; transform: rotate(-2deg); }
.note__text { display: inline-block; }
.note__line { display: block; width: 100%; height: 12px; margin-top: -.1rem; overflow: visible; }
.note__line path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .7; }
.note--white { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.45rem; border-radius: 9999px; border: 1.5px solid transparent;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn .i { width: 1.15em; height: 1.15em; }
.btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-lg { min-height: 56px; padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn-sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand-fill); color: #fff; }
.btn-primary::before { /* soft glow in brand colour that grows on hover */
  content: ""; position: absolute; inset: 10% 6% -8%; z-index: -1; border-radius: inherit;
  background: var(--brand-fill); filter: blur(14px); opacity: .45; transform: scale(.94);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.btn-primary:hover { color: #fff; background: color-mix(in srgb, var(--brand-fill) 88%, #000); }
.btn-primary:hover::before { opacity: .7; transform: scale(1.06); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-soft { background: var(--tone-soft); color: var(--tone-ink, var(--brand-ink)); border-color: var(--tone-line); }
.btn-soft:hover { color: var(--ink); }
.btn-light { background: #fff; color: #14213d; }
.btn-light:hover { background: #ffe9dc; color: #14213d; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; color: var(--tone-ink, var(--brand-ink)); text-decoration: none; min-height: 44px; }
.link-more:hover { color: var(--ink); }
.link-more:hover .btn-arrow { transform: translateX(3px); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); text-decoration: none;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.icon-btn .i { width: 20px; height: 20px; }

/* ---------- Cards (+ spotlight) ---------- */
.card {
  position: relative; isolation: isolate; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card::before { /* larger shadow layer, fades in on hover (no box-shadow animation) */
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-hi); opacity: 0; z-index: -1;
  transition: opacity .35s var(--ease); pointer-events: none;
}
.card[data-spot]::after { /* spotlight in the card tone that follows the pointer */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--tone, var(--brand)) 15%, transparent), transparent 65%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.card:hover::before, .card.is-active::before { opacity: 1; }
.card[data-spot]:hover::after, .card[data-spot].is-active::after, .card[data-spot]:focus-within::after { opacity: 1; }
.card-num { position: absolute; top: .9rem; right: 1.2rem; font-size: 2.6rem; font-weight: 200; line-height: 1; letter-spacing: -.04em; color: var(--tone, var(--brand)); opacity: .45; font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.read-progress { display: none; position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 28px; }
.brand-mark i { display: block; width: 7px; border-radius: 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--brand-fill) 60%, #6ee7f9), var(--brand-fill)); }
.brand-mark i:nth-child(1) { height: 12px; } .brand-mark i:nth-child(2) { height: 20px; } .brand-mark i:nth-child(3) { height: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.2rem; font-weight: 850; letter-spacing: -.02em; }
.brand-dot { color: var(--brand); }
.brand-text small { font-size: .66rem; color: var(--muted); letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav ul { display: flex; gap: 1.15rem; }
.main-nav ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: .93rem; font-weight: 550; text-decoration: none; position: relative; }
.main-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--ink); }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
.nav-extra { display: flex; align-items: center; gap: .7rem; }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 0 .35rem; border-radius: 999px; font-size: .74rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.lang-switch a.active { background: var(--brand-fill); color: #fff; }
.lang-switch a:not(.active):hover { color: var(--ink); background: var(--tone-soft); }
.header-tools { display: flex; align-items: center; gap: .45rem; }
.theme-toggle .ico-moon, [data-theme="dark"] .theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
.motion-toggle .ico-play, .motion-toggle[aria-pressed="true"] .ico-pause { display: none; }
.motion-toggle[aria-pressed="true"] .ico-play { display: block; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Section dots (≥1280px) */
.sdots { display: none; }
.sdots a { position: relative; display: grid; place-items: center; width: 28px; height: 28px; text-decoration: none; }
.sdots a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg-white); transition: transform .25s var(--ease), background-color .25s, border-color .25s; }
.sdots a[aria-current="true"]::before { background: var(--brand-fill); border-color: var(--brand-fill); transform: scale(1.25); }
.sdots span {
  position: absolute; right: 34px; top: 50%; white-space: nowrap; padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 650;
  color: var(--ink); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; transform: translate(8px, -50%); pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.sdots a:hover span, .sdots a:focus-visible span { opacity: 1; transform: translate(0, -50%); }

/* ---------- Sections ---------- */
.sec { position: relative; padding: clamp(4.5rem, 3rem + 5vw, 7.5rem) 0; }
.sec--white { background: var(--bg-white); }
.sec--paper { background: var(--bg-paper); }
.sec-cta { text-align: center; margin: 2.5rem 0 0; }
.sub-head { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); font-weight: 800; letter-spacing: -.025em; margin: 0; }

/* ---------- 1. Hero ---------- */
.hero { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0 clamp(5rem, 3rem + 6vw, 8rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; width: 26rem; height: 26rem; border-radius: 50%; filter: blur(64px); }
.blob--a { top: -8rem; left: -9rem; background: var(--blob-a); }
.blob--b { top: 18%; right: -10rem; background: var(--blob-b); }
.hero__land { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(120px, 16vw, 230px); }
.land-hill-1 { fill: var(--land-1); } .land-hill-2 { fill: var(--land-2); } .land-hill-3 { fill: var(--land-3); }
.land-city { fill: var(--land-city); } .land-leaves { fill: var(--land-leaf); }
.motes { position: absolute; inset: 0; }
.motes i { position: absolute; bottom: 18%; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .25; }
.motes i:nth-child(1) { left: 8%; } .motes i:nth-child(2) { left: 19%; width: 4px; height: 4px; } .motes i:nth-child(3) { left: 33%; background: var(--accent); }
.motes i:nth-child(4) { left: 47%; width: 5px; height: 5px; } .motes i:nth-child(5) { left: 58%; background: var(--violet); } .motes i:nth-child(6) { left: 66%; width: 4px; height: 4px; }
.motes i:nth-child(7) { left: 78%; background: var(--accent); } .motes i:nth-child(8) { left: 88%; } .motes i:nth-child(9) { left: 95%; width: 4px; height: 4px; background: var(--ok); }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; grid-template-areas: "copy" "stage" "paths"; }
.hero__copy { grid-area: copy; min-width: 0; }
.hero__stage { grid-area: stage; min-width: 0; }
.paths { grid-area: paths; min-width: 0; }
.hero__title {
  font-size: 2.6rem; font-weight: 900; line-height: 1.02; letter-spacing: -.04em; margin: 0 0 .25em;
  overflow-wrap: anywhere; hyphens: manual;
}
.hl { display: block; }
.hl--grad .hl__live, .hl--grad .sr-only + .hl__live { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.hl__live { display: inline; }
.tw { white-space: normal; }
.note--hero { font-size: 1.7rem; margin: .1rem 0 1.1rem; }
.hero__lead { font-size: 1.12rem; max-width: 36rem; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.hero__checks { display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; font-size: .92rem; color: var(--text); }
.hero__checks li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__checks .i { color: var(--ok); width: 1.15rem; height: 1.15rem; stroke-width: 2.6; }

/* Path cards */
.paths__label { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.paths__list { display: grid; gap: .8rem; grid-template-columns: minmax(0, 1fr); }
.path-card { display: flex; align-items: center; gap: .9rem; min-height: 64px; padding: .85rem 1rem; text-decoration: none; color: var(--text); border-radius: 1.25rem; transition: transform .25s var(--ease), border-color .25s; }
.path-card:hover { color: var(--text); border-color: var(--tone-line); }
.path-card__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.path-card__txt strong { font-size: 1rem; }
.path-card__txt span { font-size: .87rem; color: var(--muted); }
.path-card__go { margin-left: auto; color: var(--tone-ink); width: 1.2rem; height: 1.2rem; transition: transform .25s var(--ease); }
.path-card:hover .path-card__go { transform: translateY(3px); }

/* Hero stage (live simulation) */
.stage { position: relative; max-width: 600px; margin-inline: auto; aspect-ratio: 1 / .9; container-type: inline-size; }
.stage__ring { position: absolute; inset: 0; margin: auto; width: 86%; height: auto; aspect-ratio: 1; border-radius: 50%; opacity: .5; }
.stage__ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--brand), var(--violet), var(--accent), var(--brand)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
.stage__ring::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 2px dashed var(--line-strong); }
.stage__scene { position: absolute; inset: 0; display: grid; place-items: start center; padding-top: 12%; perspective: 1100px; }
.device { position: relative; width: 84%; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; }
.device__screen { position: relative; padding: 2.2cqw 2.2cqw 2.6cqw; border-radius: 3cqw 3cqw .8cqw .8cqw; background: var(--bezel); box-shadow: 0 40px 70px -40px rgba(20, 33, 61, .7), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.device__base { position: relative; height: 3cqw; margin: 0 -6%; border-radius: 0 0 3cqw 3cqw; background: linear-gradient(180deg, #cfd6e4, #9aa5bb); }
[data-theme="dark"] .device__base { background: linear-gradient(180deg, #3a4560, #1e2638); }
.device__base::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 30%; border-radius: 0 0 1cqw 1cqw; background: rgba(0, 0, 0, .18); }
.device__flash { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 40px color-mix(in srgb, var(--accent) 60%, transparent); opacity: 0; pointer-events: none; }
.app { background: var(--app-bg); border-radius: 1cqw; overflow: hidden; font-size: max(7px, 1.95cqw); line-height: 1.35; color: var(--text); }
.app__bar { display: flex; align-items: center; gap: .5em; padding: .7em .9em; border-bottom: 1px solid var(--app-line); font-weight: 700; color: var(--ink); }
.app__bar i { width: .75em; height: .75em; border-radius: 50%; background: #f87171; } .app__bar i:nth-child(2) { background: #fbbf24; } .app__bar i:nth-child(3) { background: #34d399; }
.app__bar span { margin-left: .5em; }
.app__body { display: grid; grid-template-columns: 34% 1fr; min-height: 0; }
.app__inbox { padding: .8em; border-right: 1px solid var(--app-line); background: var(--app-soft); }
.app__h { display: flex; align-items: center; gap: .35em; margin: 0 0 .6em; font-weight: 700; color: var(--muted); font-size: .92em; }
.app__h .i { width: 1.1em; height: 1.1em; }
.mails { display: grid; gap: .45em; }
.mail { display: grid; padding: .5em .6em; border-radius: .6em; background: var(--app-bg); border: 1px solid var(--app-line); position: relative; }
.mail b { color: var(--ink); font-size: .95em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail span { color: var(--muted); font-size: .85em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail.is-done b, .mail.is-done span { color: var(--muted); }
.mail.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.mail.is-done { background: var(--app-soft); }
.mail.is-done::after { content: "✓"; position: absolute; right: .5em; top: .35em; color: var(--ok); font-weight: 800; }
.mail.is-off { visibility: hidden; }
.app__main { padding: .8em; display: grid; gap: .6em; align-content: start; min-width: 0; }
.scan { display: grid; gap: .35em; }
.scan__label { display: flex; align-items: center; gap: .35em; margin: 0; font-weight: 650; color: var(--brand-ink); }
.scan__label .i { width: 1.1em; height: 1.1em; }
.scan__bar { display: block; height: .45em; border-radius: 1em; background: var(--app-soft); overflow: hidden; }
.scan__bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transform-origin: left; transform: scaleX(1); }
.stage[data-step="0"] .scan__bar i, .stage[data-step="1"] .scan__bar i { transform: scaleX(0); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; margin: 0; }
.field { padding: .4em .55em; border-radius: .5em; background: var(--app-soft); border: 1px dashed var(--app-line); min-width: 0; }
.field dt { font-size: .78em; color: var(--muted); }
.field dd { margin: 0; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field.is-filled { border-style: solid; border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 8%, var(--app-bg)); }
.field:not(.is-filled) dd { visibility: hidden; }
.flow-line { width: 100%; height: .9em; overflow: visible; }
.flow-line path { fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 40; stroke-dashoffset: 0; }
.sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sheet th, .sheet td { text-align: left; padding: .3em .35em; border-bottom: 1px solid var(--app-line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet th { font-size: .82em; color: var(--muted); font-weight: 650; }
.sheet td { font-size: .9em; }
.sheet tr.is-off { visibility: hidden; }
.sheet tr.is-new td { background: color-mix(in srgb, var(--ok) 12%, transparent); }
.app__foot { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .65em .9em; border-top: 1px solid var(--app-line); background: var(--app-soft); }
.app__foot span { display: inline-flex; align-items: center; gap: .35em; color: var(--muted); font-weight: 600; }
.app__foot em { font-style: normal; font-weight: 500; }
.app__foot .i { width: 1.1em; height: 1.1em; color: var(--ok); }
.sim-counter { font-size: 1.6em; font-weight: 850; color: var(--ok); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.fchips { position: absolute; inset: 0; pointer-events: none; }
.fchip {
  position: absolute; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem .5rem .55rem; max-width: 46%;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-hi);
  font-size: max(11px, 2.25cqw); font-weight: 650; color: var(--ink); white-space: nowrap;
}
.fchip > span { overflow: hidden; text-overflow: ellipsis; }
.fchip .i { width: 1.9em; height: 1.9em; padding: .4em; border-radius: 50%; color: #fff; background: var(--tone-fill); stroke-width: 2.2; }
.fchip--a { top: 1%; left: 0; }
.fchip--c { top: 0; right: 6%; }
.fchip--b { top: 42%; right: -5%; }
.confetti { position: absolute; left: 50%; top: 38%; width: 0; height: 0; }
.confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; opacity: 0; background: var(--brand); }
.confetti i:nth-child(4n+1) { background: var(--accent); } .confetti i:nth-child(4n+2) { background: var(--ok); width: 9px; height: 9px; border-radius: 50%; }
.confetti i:nth-child(4n+3) { background: var(--violet); }

.polaroid { position: absolute; left: -3%; bottom: -2%; width: 27%; margin: 0; padding: 3.5% 3.5% 0; background: #fff; border-radius: 6px; box-shadow: var(--shadow-hi); transform: rotate(-6deg); z-index: 2; }
.polaroid__frame { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: #dfe5f0; }
.polaroid__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.polaroid__img.is-active { opacity: 1; }
.polaroid__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 16, 32, var(--overlay, .35))); opacity: .6; }
.polaroid__cap { padding: .35em .2em .5em; font-family: var(--hand); font-weight: 600; font-size: max(13px, 3cqw); color: #24314f; line-height: 1.1; min-height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage__note { position: absolute; right: 1%; bottom: 0; display: flex; align-items: flex-end; gap: .2rem; max-width: 52%; margin: 0; font-family: var(--hand); font-weight: 600; font-size: max(17px, 3.6cqw); line-height: 1.1; color: var(--accent-ink); transform: rotate(-3deg); text-align: right; }
.stage__arrow { width: 2.4em; height: 1.6em; flex: 0 0 auto; order: 0; overflow: visible; transform: scaleX(-1) rotate(10deg); }
.stage__arrow path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stage__note span { order: 1; }
.sim-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; margin: 1.1rem 0 0; }
.sim-ctrl__status { margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.5em; text-align: center; }
[data-sim-toggle] .ico-pause, [data-sim-toggle][data-playing="true"] .ico-play { display: none; }
[data-sim-toggle][data-playing="true"] .ico-pause { display: block; }
.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: 1rem 0 0; }
.hero__chips li { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--text); background: var(--card); border: 1px solid var(--line); }
.hero__chips .i { width: 1rem; height: 1rem; color: var(--brand); }

/* ---------- Trust strip ---------- */
.trust { padding: 1.6rem 0; border-block: 1px solid var(--line); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 2rem; }
.trust__kicker { margin: 0; font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trust__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; }
.trust__list li { display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; color: var(--ink); }
.trust__list .i { color: var(--brand); }

/* ---------- 3. Problem → solution ---------- */
.pain-grid { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
.pain-card { padding: 1.6rem 1.5rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.pain-card__q { margin: 0; padding-right: 2.6rem; font-size: 1.08rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.pain-card__flow { display: grid; gap: .25rem; margin-top: auto; }
.pain-card__before, .pain-card__after { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .45rem; margin: 0; padding: .55rem .8rem; border-radius: .8rem; font-weight: 650; line-height: 1.3; }
.pain-card__before > span:last-child, .pain-card__after > span:last-child { flex: 1 1 8rem; min-width: 0; }
.pain-card__before { background: color-mix(in srgb, #d34050 9%, transparent); color: var(--text); }
.pain-card__before .i { color: #c22f40; }
[data-theme="dark"] .pain-card__before .i { color: #ff8a96; }
.pain-card__after { background: color-mix(in srgb, var(--ok) 11%, transparent); color: var(--ink); }
.pain-card__after .i { color: var(--ok); }
.lbl { flex: 0 0 100%; font-size: .66rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pain-card__arrow { width: 22px; height: 30px; margin: 0 auto; color: var(--tone); }
.pain-card__arrow path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 0; }

/* ---------- 4. Services ---------- */
.svc-grid { display: grid; gap: 1.3rem; grid-template-columns: minmax(0, 1fr); }
.svc-card { padding: 1.8rem 1.6rem 1.6rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.svc-card__top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; padding-right: 3rem; }
.svc-card__top .pill { margin: 0; }
.svc-card h3 { font-size: 1.4rem; }
.svc-card > p { color: var(--text); }
.svc-card__sub { margin: 1.3rem 0 .6rem; font-size: 1rem; color: var(--ink); }
.ticks { display: grid; gap: .45rem; }
.ticks li { display: flex; gap: .55rem; align-items: flex-start; }
.ticks .i { color: var(--tone); width: 1.15rem; height: 1.15rem; margin-top: .2rem; stroke-width: 2.6; }
.badge { display: inline-flex; align-items: center; gap: .35rem; margin: 1.1rem 0 0; padding: .35rem .8rem; border-radius: 999px; font-size: .84rem; font-weight: 700; color: var(--tone-ink); background: var(--tone-soft); }
.badge .i { width: 1rem; height: 1rem; }
.more-svc { margin-top: 3.5rem; }
.more-svc__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.4rem; }
.more-svc__head .pill { margin: 0; }
.more-grid { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
.mini-card { padding: 1.4rem; }
.mini-card .ico3d { margin-bottom: .9rem; }
.mini-card p { font-size: .95rem; }
.tech { margin: 0; font-size: .8rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.market-card { padding: 1.6rem; display: grid; gap: 1.3rem; background: linear-gradient(140deg, var(--card), color-mix(in srgb, var(--accent) 7%, var(--card))); }
.market-card h4 { font-size: 1.25rem; }
.rotator { display: grid; gap: .4rem; }
.rotator li { font-weight: 600; color: var(--ink); }
.price { display: flex; align-items: baseline; gap: .8rem; margin: 1rem 0; }
.price s { color: var(--muted); }
.price strong { font-size: 1.6rem; font-weight: 850; color: var(--tone-ink); letter-spacing: -.02em; }
.svc-note { margin: 2rem auto 0; max-width: 760px; text-align: center; color: var(--muted); }

/* ---------- 4b. Benefits (sticky scroll) ---------- */
.sb { --sb-top: calc(var(--header-h) + 24px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.sb > * { min-width: 0; }
.sb__progress { position: sticky; top: var(--header-h); z-index: 3; display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding: .6rem 0; margin-bottom: 1rem; background: var(--bg-white); }
.sb__progress::-webkit-scrollbar { display: none; }
.sb__progress-item { flex: 0 0 auto; min-height: 44px; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .85rem; font-weight: 650; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s; }
.sb__progress-item.active { background: var(--tone); border-color: var(--tone); color: var(--on-tone); }
.sb__items { display: grid; gap: 1.2rem; }
.sb__items::after { content: ""; height: var(--sb-after, 0px); } /* runway: the last item stays pinned */
.sb__item { padding: 1.6rem; transition: opacity .2s; }

.sb__num { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; font-weight: 750; color: var(--tone-ink); font-variant-numeric: tabular-nums; }
.sb__item h3 { font-size: 1.45rem; }
.sb__cta { margin-top: .5rem; }
.sb__right { display: none; }
.sb__sticky { position: sticky; top: var(--sb-top); }
.sb__images { position: relative; aspect-ratio: 800 / 571; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hi); }
.sb__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); }
.sb__image.active { opacity: 1; }
.sb__design-element { position: absolute; right: -1.2rem; bottom: -1.2rem; width: 7rem; height: 7rem; border-radius: 1.4rem; z-index: -1; background: repeating-linear-gradient(45deg, var(--tone-line) 0 2px, transparent 2px 10px); }

/* ---------- 5. Steps ---------- */
.steps { position: relative; display: grid; gap: 1.1rem; counter-reset: none; }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.step__icon { position: relative; z-index: 1; padding-top: .4rem; }
.step__card { padding: 1.2rem 1.3rem; }
.step__card .card-num { font-size: 2rem; top: .7rem; right: 1rem; }
.step__card h3 { font-size: 1.2rem; padding-right: 2.6rem; margin-bottom: .2rem; }
.step__d { color: var(--tone-ink); font-weight: 650; margin-bottom: .55rem; }
.step__x { margin: 0; font-size: .93rem; color: var(--muted); }
.steps::before { /* vertical dashed rail on small screens */
  content: ""; position: absolute; left: calc(1.8rem - 1.5px); top: 1rem; bottom: 1rem; width: 3px; border-radius: 3px;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 7px, transparent 7px 14px);
}

/* ---------- 6. Calculator ---------- */
.calc { display: grid; gap: 2rem; padding: clamp(1.4rem, 1rem + 2vw, 2.5rem); max-width: 1060px; margin-inline: auto; }
.calc__form { display: grid; gap: 1.6rem; align-content: start; }
.range { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .4rem 1rem; }
.range label { font-weight: 650; color: var(--ink); }
.range output { min-width: 4.2rem; padding: .25rem .7rem; border-radius: 999px; text-align: center; font-weight: 800; color: var(--tone-ink); background: var(--tone-soft); font-variant-numeric: tabular-nums; }
.range input { grid-column: 1 / -1; width: 100%; height: 44px; margin: 0; background: transparent; accent-color: var(--tone-fill); cursor: pointer; }
.calc__result { padding: 1.6rem; border-radius: 1.2rem; background: linear-gradient(150deg, var(--tone-soft), transparent 70%), var(--card-2); border: 1px solid var(--tone-line); }
.calc__label { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .4rem; font-weight: 700; color: var(--muted); }
.tag-example { padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 750; color: var(--tone-ink); border: 1px dashed var(--tone-line); }
.calc__num { margin: 0 0 .8rem; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); font-weight: 850; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.clocks { display: flex; flex-wrap: wrap; gap: .3rem; min-height: 1.6rem; margin-bottom: .7rem; }
.clocks li { color: var(--tone); }
.clocks li:not(.is-on) { display: none; }
.clocks .i { width: 1.5rem; height: 1.5rem; }
.calc__days { font-weight: 650; color: var(--text); margin-bottom: .6rem; }
.calc__assume { font-size: .88rem; color: var(--muted); }

/* ---------- 7. Proof ---------- */
.case { display: grid; gap: 2rem; padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); }
.case h3 { font-size: 1.5rem; }
.txt-problem { color: #b42335; } .txt-solution { color: var(--ok-ink); }
[data-theme="dark"] .txt-problem { color: #ff8f9b; }
.techlist { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.4rem; }
.techlist li { padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 650; color: var(--muted); border: 1px solid var(--line); background: var(--card-2); }
.chart { margin: 0; padding: 1.2rem; border-radius: 1.1rem; background: var(--card-2); border: 1px solid var(--line); }
.chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 650; color: var(--muted); }
.chart figcaption strong { font-size: 1.7rem; font-weight: 850; color: var(--brand-ink); }
.chart__svg { width: 100%; height: auto; margin: .6rem 0; }
.chart__svg .grid { stroke: var(--line); stroke-width: 1; }
.chart__svg .axis { stroke: var(--line-strong); stroke-width: 1.4; }
.bar { transform-box: fill-box; transform-origin: 50% 100%; }
.bar-before { fill: var(--chart-before); } .bar-after { fill: var(--chart-after); }
.legend { display: flex; gap: 1.2rem; margin: 0; font-size: .85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.sw { width: .8rem; height: .8rem; border-radius: 3px; display: inline-block; }
.sw-before { background: var(--chart-before); } .sw-after { background: var(--chart-after); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.kpis li { padding: .9rem 1rem; border-radius: 1rem; background: var(--tone-soft); display: grid; }
.kpis strong, .results strong { font-size: 1.6rem; font-weight: 850; letter-spacing: -.03em; color: var(--tone-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpis span { font-size: .85rem; color: var(--text); }
.kpis__note { margin: .6rem 0 0; font-size: .8rem; color: var(--muted); }
.portfolio { margin-top: 4rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.proj-grid { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
.proj { padding: 1.4rem; display: flex; flex-direction: column; }
.proj > .pill { align-self: flex-start; }
.proj h4 { font-size: 1.12rem; }
.proj p { font-size: .93rem; }
.results { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: .4rem 0 .2rem; }
.results li { display: grid; }
.results strong { font-size: 1.35rem; }
.results span { font-size: .8rem; color: var(--muted); }
.proj .techlist { margin: .8rem 0 0; }
.is-live .proj.is-collapsed { display: none; }

/* Testimonials carousel (scroll-snap, no library) */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .5rem .25rem 1.2rem; overscroll-behavior-x: contain; border-radius: var(--radius); }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { scroll-snap-align: start; display: flex; }
.testi { margin: 0; padding: 1.7rem 1.6rem 1.4rem; display: flex; flex-direction: column; width: 100%; }
.testi__mark { width: 2.2rem; height: 2.2rem; color: var(--tone); opacity: .6; margin-bottom: .6rem; }
.testi blockquote { margin: 0 0 1.2rem; flex: 1; }
.testi blockquote p { margin: 0; font-size: 1.04rem; color: var(--ink); line-height: 1.55; }
.testi figcaption { display: flex; align-items: center; gap: .7rem; font-size: .88rem; font-weight: 600; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: 0 0 auto; border-radius: 50%; color: var(--on-tone); font-weight: 800; background: var(--tone); }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .4rem; }
.carousel__count { margin: 0; min-width: 4rem; text-align: center; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }

/* About */
.about { display: grid; gap: 2.5rem; }
.about .sec-head { text-align: left; margin: 0 0 1.2rem; }
.about__role { margin: 0 0 1rem; font-weight: 700; color: var(--tone-ink); }
.about__motto { font-family: var(--hand); font-weight: 600; font-size: 1.55rem; line-height: 1.2; color: var(--accent-ink); transform: rotate(-1deg); }
.meta-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; }
.meta-chips li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 650; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.meta-chips .i { color: var(--brand); width: 1.05rem; height: 1.05rem; }
.values { display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 1.2rem; }
.value { padding: 1.2rem; }
.value .ico3d { margin-bottom: .7rem; }
.value strong { display: block; margin-bottom: .3rem; }
.value p { margin: 0; font-size: .92rem; color: var(--muted); }
.example-card { padding: 1.3rem 1.4rem; margin-top: .9rem; border-left: 4px solid var(--tone); }
.example-card p { margin: .4rem 0 0; }
.about__visual { position: relative; display: grid; gap: 1.2rem; align-content: start; }
.portrait { position: relative; margin: 0; max-width: 420px; justify-self: center; }
.portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2rem; box-shadow: var(--shadow-hi); }
.portrait::before { content: ""; position: absolute; inset: -12px 12px 12px -12px; border-radius: 2.2rem; background: var(--grad); opacity: .25; z-index: -1; }
.portrait__words { position: absolute; inset: 0; pointer-events: none; }
.portrait__words li { position: absolute; padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.portrait__words li:nth-child(1) { top: 8%; left: -6%; } .portrait__words li:nth-child(2) { top: 30%; right: -8%; }
.portrait__words li:nth-child(3) { bottom: 26%; left: -8%; } .portrait__words li:nth-child(4) { bottom: 6%; right: -4%; }
.quote-card { padding: 1.4rem 1.5rem; max-width: 460px; justify-self: center; width: 100%; }
.quote-card .rotator li { font-size: 1.04rem; font-style: italic; }
.quote-card cite { display: block; margin-top: .8rem; font-style: normal; font-weight: 700; color: var(--tone-ink); }

/* ---------- 8. FAQ ---------- */
.faq { display: grid; gap: 2rem; align-items: start; }
.faq__figure { margin: 0; }
.faq__figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-hi); aspect-ratio: 800 / 457; object-fit: cover; }
.faq__figure figcaption { margin-top: .7rem; font-size: .88rem; color: var(--muted); }
.faq__list { display: grid; gap: .8rem; }
.faq__item { border-radius: 1.2rem; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 1rem 1.3rem; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; border-radius: inherit; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--tone-ink); }
.plus { position: relative; flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tone-soft); transition: transform .35s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--tone-ink); }
.plus::after { transform: rotate(90deg); }
.faq__item[open] .plus { transform: rotate(135deg); }
.faq__a { padding: 0 1.3rem 1.2rem; }
.faq__a p { margin: 0; color: var(--text); }

/* ---------- 9. Closing band + form ---------- */
.band { position: relative; overflow: hidden; padding: clamp(4.5rem, 3rem + 5vw, 7.5rem) 0; color: #d9e0f2; background: linear-gradient(140deg, #0c1430 0%, #1a1542 52%, #2b1438 100%); --tone: #ffb085; --tone-ink: #ffc6a5; --tone-fill: #e0601f; --tone-soft: rgba(255, 176, 133, .14); --tone-line: rgba(255, 176, 133, .38); }
.band::before { content: ""; position: absolute; width: 34rem; height: 34rem; right: -10rem; top: -12rem; border-radius: 50%; background: rgba(255, 140, 80, .16); filter: blur(70px); }
.band__sparks { position: absolute; inset: auto 0 0; height: 60%; pointer-events: none; }
.band__sparks i { position: absolute; bottom: 0; width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: 0; box-shadow: 0 0 8px rgba(255, 255, 255, .8); }
.band__sparks i:nth-child(1) { left: 6%; } .band__sparks i:nth-child(2) { left: 17%; width: 3px; height: 3px; } .band__sparks i:nth-child(3) { left: 29%; }
.band__sparks i:nth-child(4) { left: 41%; width: 4px; height: 4px; } .band__sparks i:nth-child(5) { left: 55%; } .band__sparks i:nth-child(6) { left: 68%; width: 3px; height: 3px; }
.band__sparks i:nth-child(7) { left: 81%; } .band__sparks i:nth-child(8) { left: 93%; width: 4px; height: 4px; }
.band__grid { position: relative; display: grid; gap: 2.5rem; }
.band .sec-head { text-align: left; margin: 0 0 1.5rem; }
.band .sec-title { color: #fff; }
.band .sec-sub { color: #c9d2ea; margin-left: 0; }
.band .note { color: #ffc6a5; }
.band strong { color: #fff; }
.band__jump { margin-bottom: 1.5rem; }
.info-list { display: grid; gap: .9rem; margin: 0 0 1.6rem; }
.info-list li { display: flex; gap: .8rem; align-items: flex-start; }
.info-list .i { width: 1.35rem; height: 1.35rem; margin-top: .2rem; color: #ffc6a5; }
.info-list small { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #aab5d3; }
.info-list a, .info-list span { color: #fff; overflow-wrap: anywhere; }
.info-list a { text-decoration-color: rgba(255, 255, 255, .4); }
.info-list a:hover { color: #ffc6a5; }
.book p { margin-bottom: .6rem; color: #c9d2ea; }
.share { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.share p { color: #c9d2ea; }
.share__btns { display: flex; gap: .5rem; }
.band .icon-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.band .icon-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: #ffc6a5; }
.band__form { position: relative; min-width: 0; }
.band__form > .note { margin: 0 0 .8rem 1rem; font-size: 1.6rem; }
.form-frame { position: relative; padding: 3px; border-radius: 1.75rem; background: conic-gradient(from var(--angle), #6f9bff, #ffb085, #c0a8ff, #6f9bff); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
.form { position: relative; display: grid; gap: 1rem; padding: clamp(1.3rem, 1rem + 1.5vw, 2.2rem); border-radius: calc(1.75rem - 3px); background: var(--card); color: var(--text); }
.form h3 { margin: 0; font-size: 1.4rem; }
.form strong { color: var(--ink); }
.form__sub { margin: -.4rem 0 .2rem; color: var(--muted); }
.row-2 { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; }
.form label > span { font-size: .88rem; font-weight: 650; color: var(--ink); }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: .8rem; border: 1.5px solid var(--line-strong); background: var(--input-bg); color: var(--ink);
  transition: border-color .2s;
}
.form textarea { resize: vertical; min-height: 7.5rem; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; border-color: var(--brand); }
.form ::placeholder { color: var(--muted); opacity: .85; }
.consent { grid-template-columns: auto 1fr; align-items: start; gap: .7rem !important; font-size: .9rem; }
.consent input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--brand-fill); }
.consent span { font-weight: 500 !important; color: var(--text) !important; }
.captcha-row { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: .6rem; }
.captcha-input { text-transform: uppercase; letter-spacing: .2em; }
.captcha-img { width: 150px; height: 48px; border-radius: .8rem; }
.band .form .icon-btn, .captcha-row .icon-btn { width: 48px; height: 48px; background: var(--card); border-color: var(--line-strong); color: var(--ink); }
.band .form .icon-btn:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--card); }
.form-status { margin: 0; min-height: 1.4em; font-weight: 650; }
.form-status.ok { color: var(--ok-ink); }
.form-status.err { color: #b42335; }
[data-theme="dark"] .form-status.err { color: #ff8f9b; }

/* Modal */
.modal { max-width: min(440px, calc(100% - 2rem)); padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); box-shadow: var(--shadow-hi); }
.modal::backdrop { background: rgba(10, 16, 32, .55); }
.modal h3 { margin-top: 0; }
.modal form { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 3.5rem 0 1.5rem; background: var(--bg-paper); border-top: 1px solid var(--line); font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.footer-brand p { color: var(--muted); margin-top: 1rem; max-width: 26rem; }
.footer-col h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.footer-col ul { display: grid; gap: .1rem; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text); text-decoration: none; }
.footer-col a:hover, .footer-col a.active { color: var(--brand-ink); }
.footer-langs { display: flex !important; flex-wrap: wrap; gap: .3rem !important; }
.footer-langs a { min-width: 40px; justify-content: center; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; font-weight: 700; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); }
.socials a:hover { color: var(--brand-ink); border-color: var(--brand); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.uwg-note { margin-top: 1.2rem; font-size: .8rem; color: var(--muted); }
.uwg-note summary { cursor: pointer; padding: .5rem 0; min-height: 44px; display: flex; align-items: center; }

/* ---------- Legal sub pages ---------- */
.legal { padding: 3rem 0 5rem; }
.container.narrow { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-weight: 850; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .3rem; }
.legal .kicker { font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.legal .back { margin-bottom: 1rem; }
.muted { color: var(--muted); }

/* ===================== Responsive ===================== */
@media (min-width: 640px) {
  .hero__title { font-size: 3.5rem; }
  .paths__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .carousel__track { grid-auto-columns: calc((100% - 1.1rem) / 2); }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .market-card { grid-column: 1 / -1; grid-template-columns: 1.2fr 1fr; align-items: center; }
  .case { grid-template-columns: 1fr 1.05fr; align-items: center; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: .9fr 1.1fr; }
  .band__grid { grid-template-columns: .95fr 1.05fr; align-items: start; gap: 3.5rem; }
  .band__jump { display: none; }
  .sb { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; }
  .sb__right { display: block; }
  .sb__item { position: sticky; top: var(--sb-top); min-height: 15rem; }
  .sb__item::before { /* covers what scrolls behind the pinned stack */
    top: auto; bottom: calc(100% + 1px); left: -1px; right: -1px; height: 1.3rem; border-radius: 0;
    background: var(--bg-white); box-shadow: none; opacity: 1; z-index: 0;
  }
  .sb__item.is-inactive { opacity: 0; }
  .about { grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: start; }
  .about__visual { position: sticky; top: calc(var(--header-h) + 2rem); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr .8fr; }
}
@media (max-width: 1199.98px) {
  .is-live .main-nav { display: none; }
  .is-live .main-nav.is-open {
    display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem 1.25rem 1.5rem; background: var(--bg-white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-hi);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav { flex-wrap: wrap; }
  .main-nav ul { flex-wrap: wrap; gap: 0 1rem; }
  .is-live .main-nav ul { flex-direction: column; }
  .is-live .main-nav ul a { min-height: 48px; font-size: 1.05rem; }
  .nav-extra { flex-wrap: wrap; }
  .is-live .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .is-live .header-inner { flex-wrap: nowrap; }
}
@media (min-width: 1024px) {
  .hero__title { font-size: 3.9rem; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; grid-template-areas: "copy stage" "paths paths"; column-gap: 3rem; row-gap: 3rem; align-items: center; }
  .more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .carousel__track { grid-auto-columns: calc((100% - 2.2rem) / 3); }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* steps in a row with a connecting line through the icons */
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; }
  .step { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.1rem; }
  .step__icon { padding-top: 0; }
  .step__card { width: 100%; height: 100%; text-align: left; }
  .steps::before, .steps::after { content: ""; position: absolute; left: 10%; right: 10%; top: calc(1.8rem - 1.5px); bottom: auto; width: auto; height: 3px; border-radius: 3px; }
  .steps::before { background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px); }
  .steps::after { background: var(--grad-line); transform-origin: 0 50%; transform: scaleX(1); }
}
@media (min-width: 1280px) {
  .hero__title { font-size: 4.5rem; }
  .pain-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .paths__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sdots { display: block; position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 90; }
  .sdots ol { display: grid; gap: 2px; }
}

/* Small phones: compact cards with icon on the left */
@media (max-width: 639.98px) {
  .sec-head { margin-bottom: 2.2rem; }
  .note { font-size: 1.5rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stage { aspect-ratio: auto; max-width: 440px; }
  .stage__scene { position: relative; display: block; padding: 6% 0 0; }
  .stage__ring { width: 92%; inset: 0 auto auto 50%; margin: 0; transform: translateX(-50%); }
  .device { width: 100%; }
  .fchips { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 1rem; }
  .fchip { position: static; max-width: none; font-size: 12px; box-shadow: var(--shadow); }
  .confetti { top: 30%; }
  .polaroid { position: relative; left: auto; bottom: auto; width: 46%; margin: 1.2rem 0 0 2%; display: inline-block; vertical-align: top; }
  .stage__note { position: relative; display: inline-flex; width: 48%; max-width: none; right: auto; margin: 2.2rem 0 0; vertical-align: top; font-size: 1.3rem; }
  .svc-card__top { padding-right: 2.5rem; }
  .mini-card { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
  .mini-card .ico3d { grid-row: span 3; margin: 0; }
  .value { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; }
  .value .ico3d { grid-row: span 2; margin: 0; }
  .card-num { font-size: 2rem; }
  .captcha-row { grid-template-columns: 1fr auto; }
  .captcha-row label { grid-column: 1 / -1; }
  .portrait__words li:nth-child(odd) { left: 0; } .portrait__words li:nth-child(even) { right: 0; }
  .band__form > .note { margin-left: 0; }
}

/* ===================== Motion =====================
   Only with prefers-reduced-motion: no-preference AND html.motion-ok
   (JS sets it; it is removed by "Animationen pausieren"). */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes wipe { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% 0 -20% 0); } }
@keyframes pop { 0% { transform: scale(0); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes drift-a { to { transform: translate(5rem, 3rem) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-4rem, 4rem) scale(.92); } }
@keyframes mote { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .35; } 100% { transform: translateY(-260px); opacity: 0; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes draw-40 { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0) scale(.6); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(var(--dx, 0), var(--dy, -80px)) rotate(var(--rot, 180deg)) scale(1); opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-8px) rotate(-6deg); } 65% { transform: translateY(-2px) rotate(3deg); } }
@keyframes spark { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-240px); opacity: 0; } }
@keyframes angle { to { --angle: 360deg; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(var(--zoom, 1.12)) translate(-2%, -1%); } }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(var(--zoom, 1.12)); } }
@keyframes slide-in { from { transform: translateX(18%); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  html.motion-ok { scroll-behavior: smooth; interpolate-size: allow-keywords; }

  /* 1. reading progress (scroll-driven; hidden where unsupported) */
  @supports (animation-timeline: scroll()) {
    .motion-ok .read-progress { display: block; animation: progress linear both; animation-timeline: scroll(root); }
  }

  /* 2. hero background */
  .motion-ok .blob--a { animation: drift-a 18s ease-in-out infinite alternate; }
  .motion-ok .blob--b { animation: drift-b 22s ease-in-out infinite alternate; }
  .motion-ok .motes i { animation: mote 9s linear infinite; }
  .motion-ok .motes i:nth-child(2n) { animation-duration: 12s; animation-delay: -4s; }
  .motion-ok .motes i:nth-child(3n) { animation-duration: 10s; animation-delay: -7s; }

  /* 3. typed word + caret */
  /* caret = inline pseudo-element (not inline-block), so it never creates a line-break opportunity */
  .motion-ok .tw::after { content: ""; margin-left: .04em; border-left: .07em solid var(--accent); animation: blink 1s steps(1, end) infinite; }

  /* 4. swash + hand notes (hero at load, sections when they enter) */
  .motion-ok .hero .swash::after, .motion-ok .is-in .swash::after { animation: wipe 1s var(--ease-swash) .6s backwards; }
  .motion-ok .hero .note__text, .motion-ok .is-in .note__text { animation: wipe .9s var(--ease-swash) .45s backwards; }
  .motion-ok .hero .note__line, .motion-ok .is-in .note__line { animation: wipe .7s var(--ease-swash) 1.15s backwards; }
  .motion-ok [data-reveal]:not(.is-in) .swash::after, .motion-ok [data-reveal]:not(.is-in) .note__text, .motion-ok [data-reveal]:not(.is-in) .note__line { clip-path: inset(0 100% 0 0); }

  /* 5. hero stage */
  .motion-ok .stage__ring { animation: spin 40s linear infinite; }
  .motion-ok .fchip { animation: float 6s ease-in-out infinite; }
  .motion-ok .fchip--b { animation-delay: -2s; }
  .motion-ok .fchip--c { animation-delay: -4s; }
  .motion-ok .fchip.is-swap > span { animation: pop .5s var(--ease-pop) backwards; }
  .motion-ok .device { transition: transform .25s ease-out; }
  .motion-ok .mail.is-new { animation: pop .5s var(--ease-pop) backwards; }
  .motion-ok .stage[data-step="2"] .scan__bar i { animation: grow-x 1.6s cubic-bezier(.4, 0, .2, 1) backwards; }
  .motion-ok .field.is-pop dd { animation: pop .5s var(--ease-pop) backwards; }
  .motion-ok .stage[data-step="3"] .flow-line path { animation: draw-40 .6s ease-out backwards; }
  .motion-ok .sheet tr.is-new td { animation: pop .5s var(--ease-pop) backwards; }
  .motion-ok .stage.is-milestone .device__flash { animation: flash .9s ease-out backwards; }
  .motion-ok .stage.is-milestone .confetti i { animation: confetti 1.1s cubic-bezier(.2, .7, .3, 1) backwards; }
  .motion-ok .polaroid__img { transition: opacity .9s var(--ease-poly, ease-in-out); }
  .motion-ok .anim-kenburns .polaroid__img.is-active { animation: kenburns var(--dur, 7s) var(--ease-poly, ease-in-out) backwards; }
  .motion-ok .anim-zoom .polaroid__img.is-active { animation: zoom var(--dur, 7s) var(--ease-poly, ease-in-out) backwards; }
  .motion-ok .anim-slide .polaroid__img.is-active { animation: slide-in .9s var(--ease-poly, ease-in-out) backwards; }

  /* 6. section entrances: header, illustration and card lists, once */
  .motion-ok [data-reveal]:not(.is-in), .motion-ok [data-stagger]:not(.is-in) > * { opacity: 0; }
  .motion-ok [data-reveal].is-in { animation: rise .6s var(--ease) backwards; }
  .motion-ok [data-stagger].is-in > * { animation: rise .55s var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 8) * 45ms); }
  .motion-ok .pain-card__arrow path { stroke-dashoffset: 60; }
  .motion-ok .is-in .pain-card__arrow path { animation: draw .6s ease-out .5s backwards; }
  .motion-ok .is-in .bar { animation: grow-y .8s var(--ease) backwards; }
  .motion-ok .is-in .bar:nth-of-type(2n) { animation-delay: .12s; }

  /* 7. cards lift slightly on hover */
  .motion-ok .card[data-spot]:hover, .motion-ok .path-card:hover { transform: translateY(-3px); }
  .motion-ok .card { transition: transform .3s var(--ease); }

  /* 8. steps: line fills from the left, icons bob on hover */
  .motion-ok .steps:not(.is-in)::after { transform: scaleX(0); }
  .motion-ok .steps.is-in::after { animation: grow-x 1.2s var(--ease) .25s backwards; }
  .motion-ok .step:hover .ico3d { animation: bob .6s var(--ease) backwards; }

  /* 10. pinged pill (target of a path card) */
  .motion-ok .pill.is-pinged::after { animation: ping 1.1s ease-out 2; }

  /* 11. calculator clocks */
  .motion-ok .clocks li.is-pop { animation: pop .5s var(--ease-pop) backwards; animation-delay: calc(var(--i, 0) * 45ms); }

  /* 12. rotators (quotes, market lines) become a stacked fade */
  .motion-ok .rotator { display: grid; }
  .motion-ok .rotator li { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
  .motion-ok .rotator li.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }

  /* 13. closing band */
  .motion-ok .form-frame { animation: angle 7s linear infinite; }
  .motion-ok .band__sparks i { animation: spark 5.5s ease-out infinite; }
  .motion-ok .band__sparks i:nth-child(2) { animation-delay: -1.1s; } .motion-ok .band__sparks i:nth-child(3) { animation-delay: -2.6s; }
  .motion-ok .band__sparks i:nth-child(4) { animation-delay: -.5s; } .motion-ok .band__sparks i:nth-child(5) { animation-delay: -3.4s; }
  .motion-ok .band__sparks i:nth-child(6) { animation-delay: -1.9s; } .motion-ok .band__sparks i:nth-child(7) { animation-delay: -4.3s; }
  .motion-ok .band__sparks i:nth-child(8) { animation-delay: -2.9s; }

  /* 15. FAQ: smooth open where ::details-content is supported */
  .motion-ok .faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
  .motion-ok .faq__item[open]::details-content { block-size: auto; }
}

/* Paused by the visitor ("Animationen pausieren") or reduced motion: nothing moves. */
html[data-motion="paused"] *, html[data-motion="paused"] *::before, html[data-motion="paused"] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
