/* register: pale, photographic, composed, precise · motion pack: „Einrasten" (donor makro.framer.website, 2026-10-19) */
/* Smile4U v8 · tokens = docs/V8-SYSTEM.md §4, values exactly; weights per LOCKED V11 D3 (display 400 / statement 500 /
   closing word 600). Breakpoints: D ≥ 1200 · T 810–1199 · P ≤ 809 (Framer's, V8-SYSTEM §1.1). Values are written for
   D and T; the P block overrides. Spring curves: _tools/springs.py. Block CSS reads these, never redefines them. */

/* ---- Onest (OFL), variable, weight axis cut to 400–600 (_tools/fonts_v8.py); latin + cyrillic, self-hosted ---- */
@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  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: "Onest";
  src: url("/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  /* type */
  --font: "Onest", system-ui, sans-serif;
  --fw-display: 400;          /* every heading, H1–H5, figures, body */
  --fw-statement: 500;        /* the word-split statement, tabs, item titles */
  --fw-closing: 600;          /* the closing word only */

  --fs-wordmark: clamp(72px, 18.8vw, 270px);  --lh-wordmark: 1.25;  --ls-wordmark: -0.07em;
  --fs-h1: clamp(48px, 6.1vw, 88px);          --lh-h1: 1.25;        --ls-h1: -0.045em;
  --fs-band: clamp(40px, 4.45vw, 64px);       --lh-band: 1.25;      --ls-band: -0.045em;
  --fs-h2: clamp(36px, 3.9vw, 56px);          --lh-h2: 1.2;         --ls-h2: -0.045em;
  --fs-statement: clamp(28px, 2.5vw, 36px);   --lh-statement: 1.25; --ls-statement: -0.03em;
  --fs-h3: 36px;                              --lh-h3: 1.25;        --ls-h3: -0.03em;
  --fs-h4: 32px;                              --lh-h4: 1.45;        --ls-h4: -0.03em;
  --fs-figure: 48px;                          --lh-figure: 1.25;    --ls-figure: -0.03em;
  --fs-h5: 24px;                              --lh-h5: 1.5;         --ls-h5: -0.02em;
  --fs-quote: 20px;                           --lh-quote: 1.4;      --ls-quote: -0.02em;
  --fs-body: 18px;                            --lh-body: 1.5;       --ls-body: 0;
  --fs-ui: 14px;                              --lh-ui: 1.5;         --ls-ui: 0;

  /* grid and spacing */
  --container: 1200px;
  --side: 40px;
  --sec-pad: 180px;
  --sec-pad-dark: 120px;
  --gap-stack: 48px;
  --gap-stack-l: 60px;
  --gap-grid: 24px;
  --tile-w: 1200px;  --tile-h: 720px;  --tile-rim: 8px;
  --band-inset: 16px;
  --r-band: 36px;
  --r-sm: 12px;  --r-md: 16px;  --r-lg: 24px;
  --rim-glass: 0 0 0 12px rgba(255, 255, 255, .25);

  /* colour (logo file: blue #49A9DA, lime #B7CE24, screw #1A1A18 = ink; mist, night, blue deep, blue tint derived) */
  --ink: #1A1A18;
  --ink-75: rgba(26, 26, 24, .75);
  --ink-64: rgba(26, 26, 24, .64);
  --paper: #FFFFFF;
  --paper-75: rgba(255, 255, 255, .75);
  --paper-64: rgba(255, 255, 255, .64);
  --mist: #EDF3F7;
  --night: #0B2A3C;           /* shadows and dimmed backdrops only (2026-11-09) */
  /* the band ground: the logo blue instead of the dark blue (David 2026-11-09: „use the bluish from the logo"); paper
     text fails on it (2.63), so everything on a band is ink: ink 6.62, ink 86 % 5.0 (AA), lines ink 36 % */
  --band: #49A9DA;
  --on-band: var(--ink);
  --on-band-2: rgba(26, 26, 24, .86);
  --on-band-line: rgba(26, 26, 24, .36);
  --on-band-dim: rgba(26, 26, 24, .6);        /* a legend's resting parts (David 2026-11-10 „light up the active one"): 3.14 on the band, AA large */
  --band-light: #80C3E5;                      /* the band's studio light: band + 30 % paper (ink on it 9.0) */
  --band-light-0: rgba(128, 195, 229, 0);
  --blue: #49A9DA;            /* fills and graphics on paper; text only on night (5.65) */
  --blue-deep: #1F6F98;       /* text links on light grounds (5.55 paper, 4.96 mist) */
  --blue-tint: #D7ECF7;       /* selected fill with ink text */
  --lime: #B7CE24;            /* fill behind ink or night text only; never text on paper (1.77) */

  /* surfaces */
  --veil: linear-gradient(rgba(255, 255, 255, .75), rgba(255, 255, 255, 0));
  --fade-ground: linear-gradient(var(--mist), var(--paper));   /* 380px tall where used */
  --mask-rail: linear-gradient(to right, transparent, #000 14.5%, #000 85.5%, transparent);

  /* motion pack „Einrasten" */
  --lenis-lerp: .1;                                   /* { lerp: .1, smoothWheel: true, syncTouch: false } (js/core/scroll.js) */
  /* entrance spring, bounce .2: the curve is the same at any duration (springs.py) */
  --spring-enter: linear(0, 0.0147, 0.0533, 0.1089, 0.1755, 0.2486, 0.3245, 0.4003, 0.474, 0.544, 0.6093, 0.6692, 0.7235, 0.7719, 0.8146, 0.8518, 0.8838, 0.9111, 0.9341, 0.9532, 0.9688, 0.9814, 0.9913, 0.999, 1.0049, 1.0091, 1.012, 1.0138, 1.0148, 1.0152, 1.015, 1.0144, 1.0136, 1.0126, 1.0115, 1.0104, 1.0092, 1.0081, 1.007, 1.006, 1.0051, 1.0043, 1.0035, 1.0029, 1.0023, 1.0018, 1.0014, 1.001, 1);
  --dur-enter: 1s;
  --dur-enter-long: 1.5s;
  /* words: spring bounce 0, .6 s, .05 s per word, y 24 */
  --spring-words: linear(0, 0.0094, 0.0343, 0.0703, 0.1139, 0.1626, 0.2142, 0.267, 0.3197, 0.3715, 0.4216, 0.4696, 0.5151, 0.5579, 0.598, 0.6352, 0.6697, 0.7015, 0.7308, 0.7575, 0.7819, 0.8041, 0.8243, 0.8426, 0.8592, 0.8741, 0.8876, 0.8997, 0.9106, 0.9203, 0.9291, 0.9369, 0.9439, 0.9502, 0.9558, 0.9608, 0.9652, 0.9692, 0.9727, 0.9759, 0.9786, 0.9811, 0.9833, 0.9852, 0.987, 0.9885, 0.9898, 0.991, 1);
  --words-y: 24px;  --words-dur: .6s;  --words-stagger: .05s;
  /* stagger ladder: item n starts later and runs shorter, the group lands together at 1.0 s */
  --ladder-d1: .1s; --ladder-d2: .2s; --ladder-d3: .3s; --ladder-d4: .4s; --ladder-d5: .5s;
  --ladder-t1: .9s; --ladder-t2: .8s; --ladder-t3: .7s; --ladder-t4: .6s; --ladder-t5: .5s;
  --enter-y1: 24px; --enter-y2: 48px; --enter-y3: 72px; --enter-y4: 96px;
  /* scroll-linked pieces: spring damping 60 / stiffness 500 / mass 1 on the progress (js/core/spring.js), keyframes eased */
  --ease-scroll: cubic-bezier(.44, 0, .56, 1);
  --flip-in: 400px;  --flip-out: 400px;               /* theme flip to night (js/core/night.js) */
  --ease-ui: cubic-bezier(.4, 0, .2, 1);
  --dur-ui: .2s;
}

/* P · ≤ 809 */
@media (max-width: 809.98px) {
  :root {
    --fs-wordmark: 36px;
    --fs-h3: 28px;
    --fs-h4: 24px;
    --fs-h5: 20px;
    --fs-quote: 16px;
    --fs-body: 16px;
    --side: 24px;
    --sec-pad: 64px;          /* phone pass 2026-10-22: 96 left ≈ 190 px of empty screen between sections at 390 × 844; 64 → ≈ 130 (the donor's dom-390 holds no section padding to read) */
  }
}
