/* ============================================================================
   OVERGRAFT — STYLESHEET
   ----------------------------------------------------------------------------
   Paper, ink, one blue, and a navy reserved for two panes: the work log in the
   hero and the cost figures. One type family for everything — Bricolage
   Grotesque, chosen for its optical-size axis, so a 13px label and an 80px
   headline are drawn differently by the same face — with the system monospace
   for anything machine-written: timestamps, indices, sources, numbers you
   might have to copy.

   Motion rules, in short. Anything the visitor can touch answers on
   pointer-down. Anything a finger can drag is driven by motion.js, never by a
   transition here, so it can be caught mid-flight. Everything that merely
   appears (a menu, a dropdown, an error) moves a few pixels for under 300ms.
   The whole lot is switched off under prefers-reduced-motion at the bottom.

   Sections: 1 tokens · 2 base · 3 type · 4 layout · 5 buttons · 6 nav ·
   7 hero + work log · 8 tiles + lists · 9 AI panel · 10 evidence · 11 process
   · 12 forms · 13 contact · 14 FAQ · 15 footer · 16 booking sheet · 17 sticky
   controls · 18 reveal · 19 small transitions · 20 preferences · 21 print ·
   22 legal page.
   ========================================================================== */

/* ---------------------------------------------------------------- 1. TOKENS */
:root {
  color-scheme: light;

  /* Surfaces */
  --paper:        #f5f7fa;   /* the page */
  --paper-2:      #eceff4;   /* the footer, a recessed tile */
  --surface:      #ffffff;   /* tiles on the page */
  --band:         #ffffff;   /* the alternating section band */
  --tile-on-band: #f3f5f9;   /* tiles on that band */
  --field:        #eef1f6;   /* form controls at rest */

  /* Ink. Every secondary shade clears 4.5:1 on --paper. */
  --ink:   #0b1b33;
  --ink-2: #44546c;
  --ink-3: #576781;
  --ink-tint:   rgba(11, 27, 51, .07);   /* the grey button */
  --ink-tint-2: rgba(11, 27, 51, .11);

  /* The one blue. Cobalt rather than the sky-blue every other studio ships. */
  --blue:       #1e4fe6;
  --blue-hover: #1a46cf;
  --blue-press: #163fbf;
  --blue-ink:   #163fbf;   /* blue as text */
  --sky:        #e4ecff;   /* selected / tinted */
  --sky-2:      #d3dfff;

  /* Night: the two panes where the site is shown working, or paying for
     itself. Same in both themes — it is a material, not a mode. */
  --night:    #0a1a33;
  --night-2:  #12264a;
  --on-night: #a9c0ff;

  --line:   rgba(11, 27, 51, .10);
  --line-2: rgba(11, 27, 51, .18);
  --ring:   rgba(30, 79, 230, .32);
  --danger: #d92d20;

  /* Materials. Only the surfaces the page genuinely moves behind are
     translucent: the nav, the sticky pill, the dropdown list, the sheet. */
  --glass:   rgba(245, 247, 250, .74);
  --glass-2: rgba(255, 255, 255, .9);
  --blur: 20px;
  --sat: 180%;

  /* Two shadows, both soft and both mostly transparent: things sit on the page,
     they do not hover over it. */
  --shadow-1: 0 1px 2px rgba(11, 27, 51, .05), 0 10px 28px -14px rgba(11, 27, 51, .14);
  --shadow-2: 0 2px 6px rgba(11, 27, 51, .06), 0 28px 64px -24px rgba(11, 27, 51, .30);

  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;

  --maxw: 1180px;
  --maxw-narrow: 760px;
  --nav-h: 60px;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --pill: 999px;

  --ease:     cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* The sticky pill's geometry, shared with the back-to-top button so the two
     stay on one centre line. */
  --cta-bottom: 20px;
  --cta-h: 60px;
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --paper:        #070b12;
  --paper-2:      #0c121c;
  --surface:      #111927;
  --band:         #0a0f18;
  --tile-on-band: #141d2b;
  --field:        #0b1220;

  --ink:   #eef2f8;
  --ink-2: #aab5c5;
  --ink-3: #8592a6;
  --ink-tint:   rgba(255, 255, 255, .08);
  --ink-tint-2: rgba(255, 255, 255, .13);

  --blue:       #3160f5;
  --blue-hover: #3d6cff;
  --blue-press: #2a54dc;
  --blue-ink:   #8fabff;
  --sky:        #142140;
  --sky-2:      #1b2b55;

  --night:    #0d1b33;
  --night-2:  #142848;
  --on-night: #a9c0ff;

  --line:   rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --ring:   rgba(143, 171, 255, .40);
  --danger: #ff6b62;

  --glass:   rgba(7, 11, 18, .72);
  --glass-2: rgba(17, 25, 39, .93);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .40), 0 10px 28px -14px rgba(0, 0, 0, .55);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .40), 0 28px 64px -24px rgba(0, 0, 0, .75);
}

/* ------------------------------------------------------------------ 2. BASE */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchors land below the floating bar, not under it. */
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  /* A touch narrower than the design width: Hungarian words are long, and the
     display sizes open back up to 100% below. */
  font-stretch: 96%;
  font-optical-sizing: auto;
  letter-spacing: -.004em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 550; font-stretch: 100%; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sky-2); color: var(--ink); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ 3. TYPE */
/* Tracking and leading both move with size: tight and negative on display
   text, loose and neutral on small text. A single value would be wrong at one
   end or the other. */
.h1 {
  font-size: clamp(2.5rem, 1rem + 4.6vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -.038em;
  font-weight: 540;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.9rem, 1rem + 2.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.h3 {
  font-size: 1.3rem;
  line-height: 1.22;
  letter-spacing: -.016em;
  font-weight: 600;
}
.lead {
  font-size: clamp(1.06rem, 1rem + .4vw, 1.28rem);
  line-height: 1.45;
  letter-spacing: -.008em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.tiny { font-size: 13px; line-height: 1.5; color: var(--ink-3); letter-spacing: 0; }
.mono { font-family: var(--mono); font-size: .94em; letter-spacing: 0; }

/* A short line above a heading. Monospace and upper-case, because it names a
   thing rather than saying one — and the two numbered ones (01, 02) are the
   same numbers the three tiles under "what we do" carry. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.4;
  color: var(--ink-3);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
.label {
  margin: 0 0 18px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3);
}
.label--onnight { color: var(--on-night); }
.index { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; color: var(--ink-3); }

/* A heading that rises into view from behind its own baseline. The text sits
   in a clipped box; the reveal moves the text, not the box. The padding keeps
   descenders (g, j, y, ő) inside the clip. */
.mask { overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.mask__in { display: block; }
.js .reveal .mask__in { transform: translateY(104%); }
.js .reveal[data-seen='true'] .mask__in {
  transform: none;
  transition: transform .8s var(--ease-out) .06s;
}
/* Where a figure came from. */
.source { font-family: var(--mono); font-size: 12px; line-height: 1.5; letter-spacing: .01em; color: var(--ink-3); }
.source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.source a:hover { color: var(--blue-ink); }

/* ---------------------------------------------------------------- 4. LAYOUT */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: clamp(64px, 7.5vw, 104px); position: relative; }
.section--alt { background: var(--band); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 16px; max-width: 60ch; }
.section-cta { margin-top: clamp(30px, 4vw, 44px); }
.section-cta--note { display: grid; gap: 22px; justify-items: start; }
.note {
  max-width: 62ch; font-size: 14px; line-height: 1.55; color: var(--ink-3);
  padding-left: 16px; border-left: 2px solid var(--line-2);
}

.grid { display: grid; gap: 18px; }
/* Grid items default to min-width:auto and refuse to shrink below one nowrap
   button, which is enough to push a 375px screen into horizontal scroll. */
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- 5. BUTTONS */
/* Feedback lives on the press and it is instant: the control shrinks under
   the pointer on pointer-down, not on release. The release eases back over a
   longer curve, so the two halves of a tap feel different. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: var(--pill); border: 0;
  font: inherit; font-weight: 600; font-size: 16px; letter-spacing: -.006em;
  font-stretch: 98%;
  color: var(--ink); background: var(--ink-tint);
  cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              transform .28s var(--ease-out), box-shadow .18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.965); transition-duration: .07s; }
.btn--primary {
  background: var(--blue); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}
.btn--primary:hover { background: var(--blue-hover); }
.btn--primary:active { background: var(--blue-press); }
.btn--secondary { background: var(--ink-tint); color: var(--ink); }
.btn--secondary:hover { background: var(--ink-tint-2); }
.btn--lg { height: 54px; padding: 0 28px; font-size: 17px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* A link that is really a button, for the low-commitment entry points. */
.textlink {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; padding: 0;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--blue-ink);
  cursor: pointer; border-radius: 6px; line-height: 1.45;
}
.textlink:hover { text-decoration: none; color: var(--blue); }
.textlink svg { width: 15px; height: 15px; flex: none; transition: transform .22s var(--ease-out); }
.textlink:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------- 6. NAV */
/* Glass. No border at the top of the page; a hairline fades in once the
   page has moved, so the bar reads as floating over the content it covers.
   Flat by design: there are no gradients anywhere on this site. */
.nav {
  position: sticky; top: 0; z-index: 900;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  backdrop-filter: blur(var(--blur)) saturate(var(--sat));
}
.nav::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 1px;
  background: var(--line);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
:root[data-scrolled='true'] .nav::after { opacity: 1; }

.nav__inner {
  display: flex; align-items: center; gap: 12px;
  height: var(--nav-h); max-width: var(--maxw); margin-inline: auto; padding-inline: 24px;
}
/* The wordmark is the logo. */
.brand {
  display: inline-flex; align-items: center; margin-right: 8px;
  font-size: 21px; font-weight: 620; letter-spacing: -.035em; font-stretch: 100%;
  color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; }

.nav__links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav__link {
  padding: 8px 13px; border-radius: var(--pill);
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color .18s var(--ease), background-color .18s var(--ease), transform .2s var(--ease-out);
}
.nav__link:hover { color: var(--ink); background: var(--ink-tint); text-decoration: none; }
.nav__link:active { transform: scale(.96); transition-duration: .07s; }
/* One highlight that slides between the links, placed by app.js on two
   springs. While it exists the links give up their own hover fill. */
.nav__links { position: relative; }
.nav__links.has-pill .nav__link { position: relative; z-index: 1; }
.nav__links.has-pill .nav__link:hover { background: transparent; }
.nav__pill {
  position: absolute; left: 0; top: 50%; height: 34px; width: 0;
  border-radius: var(--pill); background: var(--ink-tint);
  opacity: 0; pointer-events: none; will-change: transform, width;
  transition: opacity .18s var(--ease);
}
.nav__pill[data-show='true'] { opacity: 1; }
@media (max-width: 900px) { .nav__pill { display: none; } }
.nav__actions { display: flex; align-items: center; gap: 8px; }

/* The language switch: one thumb behind two labels that slides across, so
   it reads as a control with a position rather than two buttons taking
   turns. The maths: 2px padding round two equal halves with a 2px gap. */
.seg {
  position: relative; isolation: isolate;
  display: inline-flex; padding: 2px; gap: 2px;
  background: var(--ink-tint); border-radius: var(--pill);
}
.seg::before {
  content: ''; position: absolute; z-index: 0;
  top: 2px; bottom: 2px; left: 2px; width: calc((100% - 6px) / 2);
  border-radius: var(--pill); background: var(--surface);
  box-shadow: 0 1px 2px rgba(11, 27, 51, .14);
  transition: transform .32s var(--ease-out), background-color .3s var(--ease);
}
.seg:has(.seg__btn:last-child[aria-pressed='true'])::before { transform: translateX(calc(100% + 2px)); }
.seg__btn {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0;
  border: 0; background: transparent; cursor: pointer;
  padding: 5px 11px; border-radius: var(--pill);
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-3); transition: color .2s var(--ease);
}
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-pressed='true'] { color: var(--ink); }
@supports not selector(:has(*)) {
  .seg::before { display: none; }
  .seg__btn[aria-pressed='true'] { background: var(--surface); }
}

.icon-btn {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 50%; border: 0; background: var(--ink-tint); color: var(--ink-2);
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .25s var(--ease-out);
}
.icon-btn:hover { color: var(--ink); background: var(--ink-tint-2); }
.icon-btn:active { transform: scale(.92); transition-duration: .07s; }
.icon-btn svg { width: 17px; height: 17px; }
/* 38px is the right visual weight and under the 44px touch guidance; the hit
   area is extended invisibly on touch screens. */
@media (pointer: coarse) {
  .icon-btn { position: relative; }
  .icon-btn::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; }
}

/* The two theme icons share one grid cell and cross-fade while turning a
   quarter turn, so the button reads as one control changing state. */
#theme-toggle .theme-moon, #theme-toggle .theme-sun {
  grid-area: 1 / 1; display: block;
  transition: opacity .3s var(--ease), transform .4s var(--ease-out);
}
#theme-toggle .theme-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme='dark'] #theme-toggle .theme-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme='dark'] #theme-toggle .theme-sun { opacity: 1; transform: none; }

.nav__burger { display: none; }
/* The three lines become the X that closes the menu. transform-box puts the
   origin at the centre of the viewBox rather than on each line's own box. */
.nav__burger svg line {
  transform-box: view-box; transform-origin: 12px 12px;
  transition: transform .3s var(--ease-out), opacity .2s var(--ease);
}
.nav__burger[aria-expanded='true'] svg line:nth-child(1) { transform: rotate(45deg) translateY(5px); }
.nav__burger[aria-expanded='true'] svg line:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.nav__burger[aria-expanded='true'] svg line:nth-child(3) { transform: rotate(-45deg) translateY(-5px); }

@media (max-width: 900px) {
  /* The menu is a sheet that comes down from the bar, in the same material. */
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 10px 16px 18px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
    backdrop-filter: blur(var(--blur)) saturate(var(--sat));
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    box-shadow: var(--shadow-2);
    transform: translateY(-10px) scale(.985); opacity: 0; filter: blur(8px); pointer-events: none;
    transform-origin: 50% 0;
    transition: opacity .26s var(--ease), transform .34s var(--ease-out), filter .3s var(--ease-out),
                background-color .35s var(--ease);
  }
  .nav__links[data-open='true'] { opacity: 1; transform: none; filter: blur(0); pointer-events: auto; }
  .nav__link { padding: 13px 12px; font-size: 17px; border-radius: var(--r-sm); }
  /* The links follow the sheet in, one after another, and not on the way
     out: closing should feel instant. */
  .nav__links .nav__link {
    opacity: 0; transform: translateY(-6px);
    transition: opacity .22s var(--ease-out), transform .22s var(--ease-out),
                background-color .18s var(--ease), color .18s var(--ease);
  }
  .nav__links[data-open='true'] .nav__link { opacity: 1; transform: none; }
  .nav__links[data-open='true'] .nav__link:nth-child(1) { transition-delay: .04s; }
  .nav__links[data-open='true'] .nav__link:nth-child(2) { transition-delay: .08s; }
  .nav__links[data-open='true'] .nav__link:nth-child(3) { transition-delay: .12s; }
  .nav__links[data-open='true'] .nav__link:nth-child(4) { transition-delay: .16s; }

  .nav__actions { margin-left: auto; }
  .nav__burger { display: grid; order: 99; }
  .nav__cta-desktop { display: none; }
}
@media (max-width: 420px) {
  .wrap, .nav__inner { padding-inline: 16px; }
  .nav__inner { gap: 8px; }
  .brand { font-size: 19px; margin-right: 0; }
  .nav__actions { gap: 6px; }
  .seg__btn { padding: 5px 9px; }
}

/* ------------------------------------------------------- 7. HERO + WORK LOG */
.hero { padding-block: clamp(44px, 6.5vw, 88px) clamp(32px, 4vw, 48px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr);
  gap: clamp(36px, 5vw, 80px); align-items: center;
}
.hero__copy .h1 { margin-top: 22px; }
.hero__lead { margin-top: 24px; max-width: 54ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero__note { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__aside { max-width: 560px; }
}

/* The load sequence. Five pieces on the left arrive one after another, the
   headline rising through its mask; the pane on the right materialises —
   blur, scale and opacity together, so it reads as a surface arriving, not a
   picture fading in — and its rows follow it in. All of it is the ordinary
   reveal, so it inherits the no-JS fallback, the watchdog and the opt-out. */
.hero__copy > .reveal:nth-child(2) { transition-delay: .05s; }
.hero__copy > .reveal:nth-child(3) { transition-delay: .22s; }
.hero__copy > .reveal:nth-child(4) { transition-delay: .32s; }
.hero__copy > .reveal:nth-child(5) { transition-delay: .42s; }
.js .reveal--material { opacity: 0; transform: translateY(14px) scale(.965); filter: blur(12px); }
.js .reveal--material[data-seen='true'] {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity .7s var(--ease-out) .3s, transform .9s var(--ease-out) .3s, filter .7s var(--ease-out) .3s;
}
/* Rows: an animation rather than a transition, with a backwards fill, so
   once each has landed the inline transform shift.js writes during a FLIP is
   its own again. */
.js .reveal--material .shift__row { animation: rowIn .55s var(--ease-out) backwards; animation-play-state: paused; }
.js .reveal--material[data-seen='true'] .shift__row { animation-play-state: running; }
.js .reveal--material[data-seen='true'] .shift__row:nth-child(1) { animation-delay: .55s; }
.js .reveal--material[data-seen='true'] .shift__row:nth-child(2) { animation-delay: .63s; }
.js .reveal--material[data-seen='true'] .shift__row:nth-child(3) { animation-delay: .71s; }
.js .reveal--material[data-seen='true'] .shift__row:nth-child(4) { animation-delay: .79s; }
.js .reveal--material[data-seen='true'] .shift__row:nth-child(5) { animation-delay: .87s; }

/* The work log: night navy, a lit top edge, and the visitor's own clock. */
.shift {
  position: relative;
  padding: 18px 22px 16px;
  border-radius: var(--r-xl);
  background: var(--night); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), var(--shadow-2);
  font-size: 14.5px;
}
.shift__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.shift__live {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; color: rgba(255, 255, 255, .92);
}
.shift__dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: #3ddc84; flex: none;
}
/* A slow pulse, the one ambient animation on the page. It is a status light. */
.shift__dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(61, 220, 132, .6);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { transform: scale(.55); opacity: 1; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.shift__clock {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
  color: rgba(255, 255, 255, .62);
}
.shift__log { padding: 6px 0 4px; }
.shift__row {
  display: grid; grid-template-columns: 44px 18px minmax(0, 1fr); gap: 12px;
  align-items: start; padding: 11px 0;
  will-change: transform;
}
.shift__row + .shift__row { border-top: 1px solid rgba(255, 255, 255, .06); }
.shift__t {
  font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .52); line-height: 1.55; letter-spacing: .01em;
}
.shift__ic { display: grid; place-items: center; height: 22px; color: var(--on-night); }
.shift__ic svg { width: 16px; height: 16px; }
.shift__msg { color: rgba(255, 255, 255, .90); line-height: 1.45; text-wrap: pretty; }
/* A fresh row arrives from a little below and is lit for a moment. */
.js .shift__row[data-new='true'] { animation: rowIn .55s var(--ease-out) both; }
.js .shift__row[data-new='true'] .shift__msg { color: #fff; }
@keyframes rowIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.shift__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .10);
  font-size: 13px; color: rgba(255, 255, 255, .6);
}
.shift__foot strong { color: #fff; font-weight: 600; }
.shift__cap { margin: 12px 4px 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

/* ------------------------------------------------------------- 7b. THE REEL */
/* Five working demonstrations on a night band. The base rules are the plain
   vertical list — what a browser with no script, or a visitor who asked for
   less motion, gets. reel.js sets data-mode: 'pinned' (the band sticks and the
   scroll moves the panels sideways) or 'strip' (a native horizontal swipe on
   phones). Night in both themes: it is the site working after hours. */
/* No overflow on .reel itself: an overflow on the ancestor of a sticky element
   makes that ancestor the thing it sticks to, and the band would scroll away.
   The sticky box clips its own backdrop instead. */
.reel { position: relative; background: var(--night); color: #fff; }
.reel__sticky {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding-block: clamp(56px, 8vw, 96px) clamp(32px, 4vw, 48px);
}
/* The backdrop is the band's own flat night — the same --night the work log
   and the cost figures use. It used to be a lit gradient with grain; the site
   is flat everywhere, so it is flat here too. To put a photograph behind the
   panels, drop reel-bg.jpg in the site folder and uncomment the rule below;
   reel.js drifts it at a quarter of the panels' speed in pinned mode. */
.reel__bg { position: absolute; inset: -10% -30%; z-index: -1; pointer-events: none; will-change: transform; }
/* .reel__bg { background: url(reel-bg.jpg) center / cover no-repeat; opacity: .35; } */

.reel__head { flex: 0 0 auto; }
.eyebrow--onnight { color: var(--on-night); }
.reel__title { margin-top: 12px; color: #fff; max-width: 22ch; }

.reel__track {
  display: flex; flex-direction: column; gap: 36px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-inline: max(24px, calc((100% - var(--maxw)) / 2 + 24px));
}
.reel__panel { flex: 0 0 auto; width: min(540px, 100%); }

.reel__cap { margin-top: 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: baseline; }
.reel__cap .index { color: var(--on-night); }
.reel__cap h3 { color: #fff; }
.reel__cap p { grid-column: 2; color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.5; max-width: 46ch; text-wrap: pretty; }

.reel__foot {
  flex: 0 0 auto; display: flex; align-items: center; gap: 16px;
  margin-top: clamp(24px, 4vw, 40px);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: rgba(255, 255, 255, .7);
}
.reel__dots { display: none; gap: 6px; }
.reel__dot {
  width: 26px; height: 4px; padding: 0; border: 0; border-radius: 2px;
  background: rgba(255, 255, 255, .34); cursor: pointer;
  transition: background-color .3s var(--ease), width .35s var(--ease-out);
}
.reel__dot[data-on='true'] { background: #fff; width: 44px; }
.reel__hint { display: none; }

/* ---- Pinned: the scroll moves the panels ---- */
.reel[data-mode='pinned'] .reel__sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  padding-block: calc(var(--nav-h) + clamp(20px, 4vh, 44px)) clamp(20px, 4vh, 40px);
}
.reel[data-mode='pinned'] .reel__track {
  flex-direction: row; align-items: flex-start; gap: clamp(16px, 2vw, 28px);
  margin-block: auto; will-change: transform;
}
.reel[data-mode='pinned'] .reel__panel { width: min(540px, 78vw); }
.reel[data-mode='pinned'] .reel__panel:not([data-active='true']) .demo { opacity: .86; }
.reel[data-mode='pinned'] .reel__dots, .reel[data-mode='pinned'] .reel__hint--pinned { display: flex; }

/* Off the pinned row a card is looked at on its own, so it may grow to what
   it holds rather than clip it; the fixed height exists only to keep the
   desktop row level. */
.reel:not([data-mode='pinned']) .demo { height: auto; min-height: 272px; }

/* ---- Strip: the platform's own swipe ---- */
.reel[data-mode='strip'] .reel__track {
  flex-direction: row; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-block: 4px 12px;
  -webkit-overflow-scrolling: touch;
}
.reel[data-mode='strip'] .reel__track::-webkit-scrollbar { display: none; }
.reel[data-mode='strip'] .reel__panel { width: min(440px, 82vw); scroll-snap-align: center; }
.reel[data-mode='strip'] .reel__dots, .reel[data-mode='strip'] .reel__hint--strip { display: flex; }

/* ---- The demonstration cards ---- */
.demo {
  position: relative; height: clamp(272px, 38vh, 344px);
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 20px; border-radius: var(--r-xl); overflow: hidden;
  background: #16305c; border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 24px 60px -30px rgba(0, 0, 0, .7);
  font-size: 14.5px; line-height: 1.45;
  transition: opacity .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.reel__panel[data-active='true'] .demo {
  border-color: rgba(255, 255, 255, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.demo.is-instant *, .demo.is-instant *::before, .demo.is-instant *::after { animation: none !important; transition: none !important; }
.demo__bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 9px; flex: 0 0 auto;
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: rgba(255, 255, 255, .78);
}
.demo__live { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; flex: none; }
.demo__time { margin-left: auto; font-variant-numeric: tabular-nums; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bump { 30% { transform: scale(1.12); color: #fff; } }

/* Chat */
/* Fills from the bottom, like a chat window: the newest bubble is always in
   view and it is the oldest that slips off the top, never the reply. */
.chat { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0; overflow: hidden; }
/* A short conversation sits at the bottom; a long one overflows downward and
   reel.js scrolls the log to the newest bubble. (justify-content: flex-end
   cannot do this: a scroll container aligns safe, and the overflow would be
   at the top where nothing can reach it.) */
.chat > :first-child { margin-top: auto; }
.chat__b {
  flex: none;   /* a bubble keeps its size; it is the log that clips, from the top */
  max-width: 84%; padding: 9px 12px; border-radius: 16px;
  font-size: 14px; line-height: 1.4; animation: rowIn .4s var(--ease-out) both;
}
.chat__b--them { align-self: flex-start; background: rgba(255, 255, 255, .16); border-bottom-left-radius: 6px; }
.chat__b--me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.chat__t { display: block; margin-top: 3px; font-family: var(--mono); font-size: 12px; opacity: .75; }
.chat__b--typing { display: flex; gap: 4px; padding: 12px 14px; }
.chat__b--typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .85); animation: typing 1s infinite; }
.chat__b--typing span:nth-child(2) { animation-delay: .15s; }
.chat__b--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Search */
.srch {
  display: flex; align-items: center; gap: 10px; flex: 0 0 auto;
  height: 46px; padding: 0 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  font-size: 15px;
}
.srch__ic { color: rgba(255, 255, 255, .75); display: grid; }
.srch__ic svg { width: 17px; height: 17px; }
.srch__q { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; }
.srch__caret { width: 2px; height: 18px; background: #fff; opacity: 0; flex: none; }
.is-typing .srch__caret { opacity: 1; animation: blink 1s steps(2) infinite; }
.srch__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 26px; }
.srch__lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: rgba(255, 255, 255, .7); margin-right: 2px; }
.srch__chip {
  white-space: nowrap; padding: 3px 10px; border-radius: var(--pill);
  background: rgba(143, 171, 255, .26); color: #dfe8ff; font-size: 12.5px; font-weight: 500;
  animation: rowIn .3s var(--ease-out) both;
}
.srch__res { display: flex; flex-direction: column; }
.srch__row {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px;
  animation: rowIn .35s var(--ease-out) both;
}
.srch__rt { min-width: 0; color: #fff; }
.srch__rp { color: var(--on-night); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Copy — a product editor */
.copy__count { display: inline-block; white-space: nowrap; }
.copy__count.is-bump { animation: bump .45s var(--ease-out); }
/* Twelve products, so twelve segments; the eighth fills when the copy lands. */
.copy__bar { margin-left: auto; display: flex; gap: 3px; }
.copy__bar span {
  width: 9px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22);
  transition: background-color .35s var(--ease);
}
.copy__bar span[data-on='true'] { background: #3ddc84; }
.copy { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; }
.copy__img {
  display: grid; place-items: center; height: 124px; border-radius: 14px;
  background: rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.copy__img svg { width: 64px; height: 64px; }
.copy__img--photo { overflow: hidden; }
.copy__img--photo img { width: 100%; height: 100%; object-fit: cover; }
.copy__name { font-weight: 600; font-size: 15px; }
.copy__price { margin-top: 2px; color: var(--on-night); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.copy__field {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.copy__lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
/* The button the scene presses. Shrinks on the press, not after it. */
.copy__btn {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; flex: none; white-space: nowrap;
  border-radius: var(--pill); background: var(--blue); color: #fff;
  font-size: 12.5px; font-weight: 600; letter-spacing: -.005em;
  transition: transform .12s var(--ease-out), background-color .25s var(--ease), color .25s var(--ease);
}
.copy__btn[data-state='pressed'] { transform: scale(.94); background: var(--blue-press); }
.copy__btn[data-state='busy'] { background: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); }
.copy__btn[data-state='done'] { background: rgba(61, 220, 132, .22); color: #7deca8; }
.copy__desc { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .92); min-height: 4.5em; }
.is-typing .copy__desc::after { content: '\258D'; margin-left: 1px; color: var(--on-night); animation: blink .9s steps(2) infinite; }
.copy__tones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.copy__tone {
  white-space: nowrap; padding: 2px 9px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 12px; color: rgba(255, 255, 255, .78);
}

@media (max-width: 560px) {
  .copy__bar { flex-basis: 100%; margin-left: 0; }
  .copy { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .copy__img { height: 104px; }
  .srch { font-size: 14px; padding: 0 12px; }
}

/* Document. Named pdf__, not doc__: .doc__meta already belongs to the legal
   page further down, and the collision painted this file name in grey. */
.pdf__file {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .12); flex: 0 0 auto;
}
.pdf__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(143, 171, 255, .16); color: var(--on-night); grid-row: span 1; }
.pdf__ic svg { width: 18px; height: 18px; }
.pdf__meta { display: flex; flex-direction: column; min-width: 0; }
.pdf__name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf__pages { font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, .72); }
.pdf__bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; margin-top: 4px; }
.pdf__fill { display: block; height: 100%; width: 0; background: var(--on-night); border-radius: 2px; }
.pdf__sum { margin-top: 2px; }
.pdf__sum .label { margin-bottom: 8px; }
.pdf__pts li {
  position: relative; padding-left: 18px; margin-top: 8px;
  font-size: 14px; line-height: 1.45; animation: rowIn .35s var(--ease-out) both;
}
.pdf__pts li::before { content: ''; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--on-night); }

/* Ops */
.ops__spark { height: 56px; color: var(--on-night); flex: 0 0 auto; }
.ops__spark svg { width: 100%; height: 100%; overflow: visible; }
.ops__rows { display: flex; flex-direction: column; }
.ops__row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px;
  animation: rowIn .35s var(--ease-out) both;
}
.ops__ok { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(61, 220, 132, .18); color: #3ddc84; }
.ops__ok svg { width: 11px; height: 11px; }
.ops__txt { min-width: 0; }
.ops__time { margin-left: auto; font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------ 7c. TOUCH TARGETS */
/* Visual sizes stay; on a touch screen the hit areas grow to 44pt. The pad is
   a transparent pseudo-element, so nothing on screen changes. */
@media (pointer: coarse) {
  .seg__btn, .reel__dot, .bk__x, .bk__nav, .textlink, .source a, a.cinfo__v { position: relative; }
  .seg__btn::after { content: ''; position: absolute; inset: -8px 0; }
  .reel__dot::after { content: ''; position: absolute; inset: -20px -3px; }
  .bk__x::after, .bk__nav::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; }
  .textlink { padding-block: 10px; margin-block: -10px; }
  .source a { display: inline-block; padding-block: 8px; margin-block: -8px; }
  a.cinfo__v { padding-block: 8px; margin-block: -8px; }
  .social a { width: 44px; height: 44px; }
  .btn--sm { height: 44px; }
  .faq__q { padding-block: 22px; }
  /* No hover on a touch screen, so the industry rows show their arrow at rest
     — otherwise nothing says they can be pressed. */
  .ind__go { opacity: .55; transform: none; }
}

/* --------------------------------------------------------- 8. TILES + LISTS */
.tile {
  position: relative;
  background: var(--surface); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-1);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.section--alt .tile { background: var(--tile-on-band); box-shadow: none; }
.tile h3 { margin-bottom: 8px; }
.tile > p, .tile .pillar__body { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.tile--press:hover { background: var(--surface); box-shadow: var(--shadow-2); }
.section--alt .tile--press:hover { background: var(--surface); box-shadow: var(--shadow-1); }
:root[data-theme='dark'] .tile--press:hover { background: var(--tile-on-band); }

.glyph {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--sky); color: var(--blue-ink); margin-bottom: 18px;
}
.glyph svg { width: 20px; height: 20px; }

.pillar { display: flex; flex-direction: column; }
.pillar__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pillar__top .glyph { margin: 0; }
.pillar > p { flex: 1; }
.pillar .textlink { margin-top: 18px; }
.pillar .checks { margin-top: 16px; }

.checks { display: grid; gap: 10px; }
.checks li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; line-height: 1.45; color: var(--ink-2);
}
.checks li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--blue-ink); }
.checks--tight li { font-size: 14px; }
/* The ticks arrive one after another once their list is on screen. */
.js .reveal .checks li svg { opacity: 0; transform: scale(.4); }
.js .reveal[data-seen='true'] .checks li svg {
  opacity: 1; transform: none;
  transition: opacity .3s var(--ease-out), transform .5s var(--ease-out);
}
.js .reveal[data-seen='true'] .checks li:nth-child(1) svg { transition-delay: .15s; }
.js .reveal[data-seen='true'] .checks li:nth-child(2) svg { transition-delay: .21s; }
.js .reveal[data-seen='true'] .checks li:nth-child(3) svg { transition-delay: .27s; }
.js .reveal[data-seen='true'] .checks li:nth-child(4) svg { transition-delay: .33s; }
.js .reveal[data-seen='true'] .checks li:nth-child(5) svg { transition-delay: .39s; }
.js .reveal[data-seen='true'] .checks li:nth-child(6) svg { transition-delay: .45s; }
.js .reveal[data-seen='true'] .checks li:nth-child(7) svg { transition-delay: .51s; }
.js .reveal[data-seen='true'] .checks li:nth-child(n + 8) svg { transition-delay: .57s; }
.checks--2 { grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 34px; }
@media (max-width: 620px) { .checks--2 { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- 9. AI PANEL */
.aipanel {
  display: grid; grid-template-columns: 1.3fr 1fr;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-1);
}
.aipanel > * { min-width: 0; }
@media (max-width: 900px) { .aipanel { grid-template-columns: 1fr; } }
.aipanel__fns { padding: clamp(22px, 3.5vw, 40px) clamp(14px, 2.5vw, 28px); }
.aipanel__fns .label { padding-inline: 12px; }
.aipanel__sum {
  padding: clamp(22px, 3.5vw, 40px);
  background: var(--sky); display: flex; flex-direction: column;
}
.aipanel__lead { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); margin-bottom: 20px; }
.aipanel__stat {
  margin: 22px 0; padding: 14px 16px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(30, 79, 230, .12);
  font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
}
:root[data-theme='dark'] .aipanel__stat { background: rgba(255, 255, 255, .05); border-color: var(--line); }
.aipanel__sum .btn { margin-top: auto; }
.aipanel__try { margin-top: 14px; }

/* One row per industry. Each is a button that pre-fills the sector in the
   quote form, so it answers the press like one. */
.indlist { display: flex; flex-direction: column; gap: 2px; }
.ind {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 14px; align-items: center;
  width: 100%; text-align: left; padding: 13px 12px;
  border: 0; border-radius: 14px; background: transparent; color: inherit; cursor: pointer;
  transition: background-color .18s var(--ease), transform .25s var(--ease-out);
}
.ind:hover { background: var(--paper); }
.section--alt .ind:hover { background: var(--tile-on-band); }
.ind:active { transform: scale(.985); background: var(--paper-2); transition-duration: .07s; }
.ind__ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sky); color: var(--blue-ink);
}
.ind__ic svg { width: 19px; height: 19px; }
.ind__t { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.012em; }
.ind__d { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 2px; }
.ind__go { color: var(--ink-3); opacity: 0; transform: translateX(-4px); transition: opacity .18s var(--ease), transform .22s var(--ease-out); }
.ind:hover .ind__go, .ind:focus-visible .ind__go { opacity: 1; transform: none; }
.ind__go svg { width: 16px; height: 16px; }

/* -------------------------------------------------------------- 10. EVIDENCE */
.costband {
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--r-xl); background: var(--night); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), var(--shadow-2);
  margin-bottom: 20px;
}
.costband__title {
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem); font-weight: 540;
  letter-spacing: -.024em; line-height: 1.15; max-width: 28ch; text-wrap: balance;
}
.costband__figs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: 30px; }
.costband__figs > * { min-width: 0; }
@media (max-width: 700px) { .costband__figs { grid-template-columns: 1fr; gap: 26px; } }
.costfig { border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 18px; }
.costfig__v {
  font-size: clamp(3.2rem, 2rem + 4.5vw, 4.8rem); font-weight: 500; font-stretch: 100%;
  letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums;
}
.costfig__d { margin-top: 12px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .82); text-wrap: pretty; }
.costband .source { margin-top: 10px; color: rgba(255, 255, 255, .5); }
.costband__note {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .72); max-width: 64ch;
}

/* The rest of the evidence, laid out as evidence: figure, what it measured,
   where it comes from. A list, not a grid of cards, because it is read down. */
.evidence { border-radius: var(--r-xl); overflow: hidden; background: var(--tile-on-band); }
.ev {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 6px 32px; align-items: start;
  padding: 26px clamp(20px, 3vw, 32px);
}
.ev + .ev { border-top: 1px solid var(--line); }
.ev__v {
  grid-row: span 2;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 2.8rem); font-weight: 500; font-stretch: 100%;
  letter-spacing: -.045em; line-height: 1; color: var(--blue-ink); font-variant-numeric: tabular-nums;
}
.ev__d { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
@media (max-width: 640px) {
  .ev { grid-template-columns: 1fr; gap: 8px; }
  .ev__v { grid-row: auto; }
}

.psyblock { margin-top: 20px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-xl); background: var(--tile-on-band); }
.psyblock__head p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.psygrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
.psygrid > * { min-width: 0; }
@media (max-width: 900px) { .psygrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .psygrid { grid-template-columns: 1fr; } }
.psy { border-left: 2px solid var(--blue); padding-left: 16px; }
.psy__v { font-size: 20px; font-weight: 600; letter-spacing: -.022em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.psy__d { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.psy .source { margin-top: 8px; }

/* --------------------------------------------------------------- 11. PROCESS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps > * { min-width: 0; }
/* The track through the four numbers. Each ring wears a halo in the page
   colour so it sits on the line rather than under it. */
.steps::before {
  content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 1px;
  background: var(--line-2);
}
/* The track is drawn from left to right the moment the first step is seen. */
.js .steps::before { transform: scaleX(0); transform-origin: 0 50%; }
.js .steps:has(> .reveal[data-seen='true'])::before {
  transform: scaleX(1);
  transition: transform 1.2s var(--ease-out) .15s;
}
.step { position: relative; }
.step__n {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 17px;
  box-shadow: 0 0 0 6px var(--paper); margin-bottom: 20px;
  transition: transform .25s var(--ease-out);
}
.step:hover .step__n { transform: scale(1.06); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* ------------------------------------------------------------------ 12. FORMS */
.tile--form { padding: clamp(22px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .field--full { grid-column: 1 / -1; }
.form__alt { text-align: center; margin-top: 14px; }
.form__alt + .form__alt { margin-top: 8px; }

.field { display: block; margin-bottom: 16px; }
.field__label {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 7px;
}
/* Filled fields, no border at rest: the border arrives with attention. */
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--field); color: var(--ink);
  border: 1px solid transparent; border-radius: 12px;
  font-size: 16px; letter-spacing: -.006em;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .3s var(--ease);
  appearance: none; -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-2); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue); background-color: var(--surface);
  box-shadow: 0 0 0 4px var(--ring);
}
.textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6d84' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
:root[data-theme='dark'] .select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238592a6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
.input--invalid, .select--invalid, .textarea--invalid { border-color: var(--danger) !important; }
.field__err { display: none; margin-top: 6px; font-size: 12.5px; color: var(--danger); }
.field__err[data-show='true'] { display: block; }
.field__err--consent { display: none; margin: -12px 0 16px; }
.field__err--send { display: none; margin: 12px 0 0; text-align: center; font-size: 14px; }
.field__err--send[data-show='true'] { display: block; }
.field__err--consent[data-show='true'] { display: block; }

/* The dropdown list app.js draws in front of every <select>. The closed
   control is `.select` again, so the two cannot drift apart. */
.csel { position: relative; }
.csel__native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.csel__btn {
  display: block; width: 100%; text-align: left;
  font: inherit; font-size: 16px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.csel__btn[aria-expanded='true'] {
  border-color: var(--blue); background-color: var(--surface); box-shadow: 0 0 0 4px var(--ring);
}
.csel:has(> .csel__native.input--invalid) .csel__btn { border-color: var(--danger); }
/* Lives at the end of <body>, positioned by app.js, and floats — so it is
   the one small surface that gets the glass. */
.csel__list {
  position: fixed; z-index: 1200;
  padding: 6px; max-height: 320px;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  background: var(--glass-2); color: var(--ink);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), var(--shadow-2);
}
:root[data-theme='dark'] .csel__list { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow-2); }
.csel__list[hidden] { display: none; }
.csel__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 9px;
  font-size: 15.5px; line-height: 1.4; cursor: pointer;
  transition: background-color .12s var(--ease);
}
.csel__opt[data-active='true'] { background: var(--ink-tint); }
.csel__opt[aria-selected='true'] { font-weight: 600; }
.csel__tick { flex: 0 0 auto; width: 16px; height: 16px; color: var(--blue-ink); opacity: 0; transition: opacity .14s var(--ease); }
.csel__tick svg { width: 16px; height: 16px; display: block; }
.csel__opt[aria-selected='true'] .csel__tick { opacity: 1; }

/* Service chips: pressable, and lit when chosen. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: var(--pill);
  background: var(--field); color: var(--ink-2);
  font-size: 14.5px; font-weight: 500; cursor: pointer; user-select: none;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .25s var(--ease-out);
}
.chip:hover { color: var(--ink); }
.chip:active { transform: scale(.96); transition-duration: .07s; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:has(input:checked) { background: var(--sky); color: var(--blue-ink); font-weight: 600; }
.chip:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }

.check {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer;
}
.check--consent { margin: 6px 0 18px; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--field); cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), transform .2s var(--ease-out);
}
.check input:active { transform: scale(.9); transition-duration: .07s; }
.check input:checked {
  background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/13px no-repeat;
  border-color: var(--blue);
}
.check input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* The form's sent state, drawn by app.js. */
.ok { text-align: center; padding: 40px 20px; animation: rise .45s var(--ease-out) both; }
.ok__icon {
  width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff;
}
.ok__icon svg { width: 27px; height: 27px; }
.ok h3 { margin-bottom: 9px; }
.ok p { color: var(--ink-2); max-width: 40ch; margin-inline: auto; font-size: 15px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* The quote tile flashes once when "I want this" lands the visitor on it. */
@keyframes formFlash {
  0%   { box-shadow: 0 0 0 0 var(--ring), var(--shadow-1); }
  40%  { box-shadow: 0 0 0 10px var(--ring), var(--shadow-1); }
  100% { box-shadow: 0 0 0 0 transparent, var(--shadow-1); }
}
.flash { animation: formFlash 1.4s var(--ease-out) 1; }

/* ---------------------------------------------------------------- 13. CONTACT */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.cinfo { display: flex; flex-direction: column; }
.cinfo__row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 2px; }
.cinfo__row + .cinfo__row { border-top: 1px solid var(--line); }
.cinfo__icon {
  width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: var(--sky); color: var(--blue-ink);
}
.cinfo__icon svg { width: 18px; height: 18px; }
.cinfo__row > :not(.cinfo__icon) { min-width: 0; }
.cinfo__l, .cinfo__v { display: block; }
.cinfo__l { font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; }
.cinfo__v { font-size: 16px; font-weight: 600; letter-spacing: -.012em; color: var(--ink); overflow-wrap: anywhere; }
a.cinfo__v:hover { color: var(--blue-ink); text-decoration: none; }
.contact__side { display: grid; gap: 10px; }
.cmeta {
  padding: 20px 22px; border-radius: var(--r-lg); margin-bottom: 8px;
  background: var(--tile-on-band); font-size: 14px; color: var(--ink-2); line-height: 1.7;
}
.cmeta strong { color: var(--ink); }
.cmeta__h { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }

/* -------------------------------------------------------------------- 14. FAQ */
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 20px 4px; background: none; border: 0; cursor: pointer;
  text-align: left; font-size: 17px; font-weight: 600; letter-spacing: -.012em; color: var(--ink);
  transition: color .18s var(--ease);
}
.faq__q:hover { color: var(--blue-ink); }
.faq__ic {
  margin-left: auto; flex: none; width: 22px; height: 22px; color: var(--blue-ink);
  transition: transform .35s var(--ease-out);
}
.faq__q[aria-expanded='true'] .faq__ic { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .36s var(--ease-out); }
.faq__a[data-open='true'] { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { opacity: 0; transform: translateY(-4px); transition: opacity .25s var(--ease), transform .3s var(--ease-out); }
.faq__a[data-open='true'] p { opacity: 1; transform: none; transition-delay: .1s; }
.faq__a p { padding: 0 40px 22px 4px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; text-wrap: pretty; }

/* ----------------------------------------------------------------- 15. FOOTER */
.footer { padding-block: 56px 32px; background: var(--paper-2); color: var(--ink); }
.footer__grid {
  display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid var(--line);
}
.footer__grid > * { min-width: 0; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer__tag { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 26ch; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__h {
  font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 2px;
}
.footer__col a {
  display: inline-block; font-size: 14.5px; color: var(--ink-2);
  transition: color .18s var(--ease), transform .2s var(--ease-out);
}
.footer__col a:hover { color: var(--ink); text-decoration: none; transform: translateX(3px); }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-tint); color: var(--ink-2);
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .25s var(--ease-out);
}
.social a:hover { color: #fff; background: var(--blue); text-decoration: none; }
.social a:active { transform: scale(.92); transition-duration: .07s; }
.social svg { width: 17px; height: 17px; }
.footer__discl { max-width: 64ch; margin-top: 26px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
}

/* Impresszum. A definition list, because that is what it is. */
.legal { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal__h {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.legal__list { margin: 0; display: grid; gap: 8px 30px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.legal__row { display: flex; gap: 10px; min-width: 0; }
.legal__row[hidden] { display: none; }
.legal__row dt { flex: 0 0 42%; min-width: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.legal__row dd { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.legal__row dd a { color: inherit; }
@media (max-width: 520px) {
  .legal__row { display: block; }
  .legal__row dt { font-size: 12.5px; margin-bottom: 1px; }
}

/* ---------------------------------------------------------- 16. BOOKING SHEET */
/* The overlay. On a desktop the panel is a card in the middle; under 860px it
   is a sheet at the bottom. motion.js owns the panel's transform and the
   scrim's opacity in both shapes — nothing here may animate either, or the
   spring and the transition fight over one property. */
.bk {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.bk[hidden] { display: none; }
.bk__scrim {
  position: absolute; inset: 0;
  background: rgba(11, 27, 51, .48);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0;   /* driven up by motion.js; starts invisible so the first frame is not a flash */
}
:root[data-theme='dark'] .bk__scrim { background: rgba(0, 0, 0, .62); }
html.bk-lock { overflow: hidden; }

.bk__panel {
  position: relative;
  width: min(1000px, 100%);
  min-height: min(560px, 88vh);
  max-height: min(94vh, 900px);
  display: grid; grid-template-columns: 292px minmax(0, 1fr);
  overflow: hidden;
  background: var(--glass-2); color: var(--ink);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  border-radius: var(--r-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), var(--shadow-2);
  will-change: transform;
  --bk-rail-bg: rgba(11, 27, 51, .045);
}
:root[data-theme='dark'] .bk__panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow-2);
  --bk-rail-bg: rgba(0, 0, 0, .28);
}
.bk__panel:focus { outline: none; }
.bk__grab { display: none; }

/* The rail: one shade deeper than the panel, so it reads as a recess. */
.bk__rail {
  min-width: 0; min-height: 0;
  display: flex; flex-direction: column; gap: 30px;
  padding: 30px 26px;
  background: var(--bk-rail-bg);
}
.bk__railhead { min-width: 0; }
.bk__eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-ink); margin-bottom: 8px; line-height: 1.45;
}
.bk__title { font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: -.024em; margin: 0; }
.bk__steps { list-style: none; margin: 0; padding: 0; }
.bk__rli { position: relative; padding-bottom: 20px; }
.bk__rli:last-child { padding-bottom: 0; }
.bk__rli::before {
  content: ''; position: absolute; left: 11px; top: 27px; bottom: 3px; width: 1px;
  background: var(--line-2);
}
.bk__rli:last-child::before { display: none; }
.bk__rstep {
  display: flex; align-items: flex-start; gap: 13px;
  width: 100%; padding: 0; margin: 0;
  border: 0; background: none; color: inherit; font: inherit;
  text-align: left; cursor: pointer; border-radius: 8px;
}
.bk__rstep:disabled { cursor: default; }
.bk__rbullet {
  flex: 0 0 auto; position: relative; z-index: 1;
  width: 23px; height: 23px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-3);
  font-family: var(--mono); font-size: 12px; font-weight: 600; line-height: 1;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.bk__rbullet svg { width: 12px; height: 12px; }
.bk__rstep[data-state='done'] .bk__rbullet { background: var(--blue); border-color: transparent; color: #fff; }
.bk__rstep[data-state='now'] .bk__rbullet { border: 2px solid var(--blue); color: var(--ink); }
.bk__rtxt { display: block; min-width: 0; }
.bk__rt { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.bk__rstep[data-state='now'] .bk__rt { color: var(--ink); }
.bk__rv { display: block; font-size: 12.5px; line-height: 1.45; margin-top: 3px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bk__rv:empty { display: none; }
.bk__rstep[data-state='done'] .bk__rv { color: var(--blue-ink); font-weight: 600; }
.bk__rstep:not(:disabled):hover .bk__rt { color: var(--ink); }
.bk__railnote { margin: auto 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }

/* The question pane. */
.bk__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; --bk-pad: 30px; }
.bk__head {
  flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 28px var(--bk-pad) 20px;
}
.bk__headtxt { min-width: 0; }
.bk__q { font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; margin: 0; }
.bk__qsub { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 7px 0 0; }
.bk__qsub:empty { display: none; }
.bk__h3 { font-size: 18px; font-weight: 600; line-height: 1.32; margin: 18px 0 4px; }
.bk__sub { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin: 10px 0 0; }
.bk__x {
  flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--ink-tint); color: var(--ink-2); cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .25s var(--ease-out);
}
.bk__x svg { width: 15px; height: 15px; }
.bk__x:hover { color: var(--ink); background: var(--ink-tint-2); }
.bk__x:active { transform: scale(.9); transition-duration: .07s; }

.bk__body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 0 var(--bk-pad) 6px;
  overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin;
}
.bk__step { min-height: 0; }
.bk__step[hidden] { display: none; }
/* Each step comes in from just below. The selector stops matching when the
   step is hidden, which re-arms it for the next one. */
.js .bk__step:not([hidden]) { animation: stepFwd .3s var(--ease-out) both; }
.js .bk__panel[data-dir='back'] .bk__step:not([hidden]) { animation-name: stepBack; }
@keyframes fadeRise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes stepFwd  { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }

/* Step 1: how long. */
.bk__opts { display: flex; flex-direction: column; gap: 9px; }
.bk__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; padding: 15px 18px;
  border: 1px solid transparent; border-radius: 14px;
  background: var(--field); color: var(--ink);
  font: inherit; text-align: left; cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), transform .25s var(--ease-out);
}
.bk__opt:active { transform: scale(.985); transition-duration: .07s; }
.bk__optxt { display: block; min-width: 0; }
.bk__optt { display: block; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.012em; }
.bk__optd { display: block; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-top: 3px; }
.bk__optd:empty { display: none; }
.bk__optdot {
  flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%; color: transparent;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.bk__optdot svg { width: 12px; height: 12px; }
.bk__opt:hover { border-color: var(--line-2); }
.bk__opt[data-on='true'] { border-color: var(--blue); background: var(--sky); }
.bk__opt[data-on='true'] .bk__optdot { background: var(--blue); border-color: transparent; color: #fff; }

/* Step 2: which day. */
.bk__cal { display: flex; flex-direction: column; gap: 12px; }
.bk__calhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bk__calhead strong { min-width: 0; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.bk__calnav { display: flex; gap: 8px; flex: 0 0 auto; }
.bk__nav {
  width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center;
  border: 0; border-radius: 10px; background: var(--ink-tint); color: var(--ink); cursor: pointer;
  transition: background-color .18s var(--ease), transform .25s var(--ease-out);
}
.bk__nav:hover { background: var(--ink-tint-2); }
.bk__nav:active { transform: scale(.9); transition-duration: .07s; }
.bk__nav svg { width: 15px; height: 15px; }
.bk__nav:disabled { opacity: .35; cursor: default; }
.bk__dow, .bk__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.bk__dow {
  margin-bottom: 2px; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); text-align: center; line-height: 1.45;
}
.bk__dow span { min-width: 0; overflow: hidden; }
.bk__dow span[data-weekend='true'] { color: var(--line-2); }
.bk__grid { grid-auto-rows: minmax(38px, 46px); align-content: start; }
.bk__cell {
  min-width: 0; height: 100%; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--field); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color .14s var(--ease), color .14s var(--ease), transform .2s var(--ease-out);
}
.bk__cell:not(:disabled):active { transform: scale(.9); transition-duration: .07s; }
.bk__cell--pad { background: none; border: 0; }
.bk__cell:disabled { background: none; color: var(--ink-3); opacity: .5; cursor: default; }
.bk__cell[data-today='true']:not(:disabled) { border-color: var(--line-2); }
.bk__cell[data-sel='true'] { background: var(--blue); border-color: transparent; color: #fff; }

/* Step 3: what time. */
.bk__slotwrap { display: flex; flex-direction: column; gap: 20px; }
.bk__group { display: flex; flex-direction: column; gap: 10px; }
.bk__grouphead {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); line-height: 1.45;
}
.bk__grouphead::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.bk__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; align-content: start; }
.bk__slot {
  padding: 11px 8px; min-width: 0;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--field); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.45; font-variant-numeric: tabular-nums;
  cursor: pointer; text-align: center;
  transition: background-color .14s var(--ease), border-color .14s var(--ease), transform .2s var(--ease-out);
}
.bk__slot:hover { border-color: var(--line-2); }
.bk__slot:not([data-taken='true']):active { transform: scale(.94); transition-duration: .07s; }
.bk__slot[data-taken='true'] {
  background: transparent; color: var(--ink-3);
  text-decoration: line-through; text-decoration-thickness: 1px;
  cursor: not-allowed; opacity: .7;
}
.bk__slot[data-taken='true']:hover { border-color: transparent; }
.bk__slot[data-on='true'] { background: var(--blue); border-color: transparent; color: #fff; }
.bk__warn { color: var(--danger); font-weight: 600; }
.bk__empty { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* Step 4: details. */
.bk__form { margin: 0; }
.bk__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.bk__fields > * { min-width: 0; }
.bk__fields .field--full { grid-column: 1 / -1; }

/* Step 5: done. */
#bk-panel[data-step='5'] .bk__head { padding-bottom: 0; }
.bk__step--done { text-align: center; padding: 12px 0 8px; }
.bk__okic {
  width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center;
  border-radius: 50%; background: var(--sky); color: var(--blue-ink);
}
.bk__okic svg { width: 27px; height: 27px; }
.bk__step--done .bk__sub { max-width: 46ch; margin-inline: auto; }
.bk__doneacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.bk__pill {
  display: inline-flex; align-items: center; gap: 12px; margin: 16px 0 0;
  padding: 12px 16px; background: var(--sky); border-radius: 12px;
}
.bk__pill > * { min-width: 0; }
.bk__pillic { flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center; color: var(--blue-ink); }
.bk__pillic svg { width: 20px; height: 20px; }
.bk__pill strong { font-size: 14.5px; font-weight: 600; line-height: 1.5; }

/* The foot: back left, forward right, the choice so far between them. */
.bk__foot {
  flex: 0 0 auto; display: flex; align-items: center; gap: 14px;
  padding: 16px var(--bk-pad); border-top: 1px solid var(--line);
}
.bk__foot[hidden] { display: none; }
.bk__backbtn[hidden] { display: none; }
.bk__selinfo { flex: 1 1 auto; min-width: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); text-align: right; }
.bk__selinfo strong { color: var(--ink); font-weight: 600; }
.bk__tzhint { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.bk__foot .btn { flex: 0 0 auto; }

/* Under a tablet the panel becomes a sheet. The rail turns into a strip of
   four steps across the top, and a grabber appears above it — that strip,
   the grabber and the question header are the parts motion.js lets a finger
   drag, so a drag never fights the scrolling body. */
@media (max-width: 860px) {
  .bk { padding: 0; align-items: flex-end; }
  .bk__panel {
    width: 100%; min-height: 0; max-height: min(92vh, 100%);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
  }
  .bk__grab { display: grid; place-items: center; padding: 10px 0 0; cursor: grab; }
  .bk__grab span { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); }
  .bk__panel[data-dragging='true'] .bk__grab { cursor: grabbing; }
  .bk__rail {
    gap: 14px; padding: 12px 18px 14px; background: none;
    border-bottom: 1px solid var(--line); cursor: grab;
  }
  .bk__title { font-size: 19px; }
  .bk__steps { display: flex; }
  .bk__rli { flex: 1 1 0; min-width: 0; padding-bottom: 0; }
  .bk__rli::before { left: 50%; right: auto; top: 11px; bottom: auto; width: 100%; height: 1px; }
  .bk__rstep { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .bk__rt { font-size: 11.5px; font-weight: 600; }
  .bk__rv, .bk__railnote { display: none; }
  .bk__main { --bk-pad: 18px; }
  .bk__head { padding-top: 18px; padding-bottom: 14px; cursor: grab; }
  .bk__fields { grid-template-columns: 1fr; }
  .bk__foot { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 700px) {
  .bk__foot { flex-wrap: wrap; }
  .bk__selinfo { order: -1; flex: 1 1 100%; text-align: left; }
  .bk__foot .btn { flex: 1 1 0; }
}
@media (max-width: 560px) {
  .bk__q { font-size: 19px; }
  .bk__dow, .bk__grid { gap: 4px; }
  .bk__cell { font-size: 13px; border-radius: 8px; }
  .bk__grid { grid-auto-rows: minmax(36px, 42px); }
  .bk__slots { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
  .bk__opt { padding: 13px 14px; }
}
/* A laptop with a lot of toolbars: everything tightens, nothing hides. */
@media (min-width: 861px) and (max-height: 720px) {
  .bk__rail { gap: 22px; padding: 24px; }
  .bk__title { font-size: 21px; }
  .bk__rli { padding-bottom: 15px; }
  .bk__head { padding: 22px var(--bk-pad) 16px; }
  .bk__q { font-size: 19px; }
  .bk__grid { grid-auto-rows: minmax(32px, 38px); }
  .bk__slot { padding: 9px 6px; }
  .bk__opt { padding: 12px 16px; }
  .bk__foot { padding: 13px var(--bk-pad); }
}

/* --------------------------------------------------------- 17. STICKY CONTROLS */
/* A glass pill that rises once the visitor has scrolled a screen, and sinks
   again when the quote form is in view. */
.sticky-cta {
  position: fixed; left: 50%; bottom: var(--cta-bottom); z-index: 930;
  display: flex; align-items: center; gap: 14px;
  height: var(--cta-h); padding: 0 10px 0 20px; border-radius: var(--pill);
  background: var(--glass-2); color: var(--ink);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), var(--shadow-2);
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 140%) scale(.96); opacity: 0; filter: blur(8px); pointer-events: none;
  transition: transform .55s var(--ease-out), opacity .3s var(--ease), filter .4s var(--ease-out),
              background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
:root[data-theme='dark'] .sticky-cta { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow-2); }
.sticky-cta[data-show='true'] { transform: translate(-50%, 0); opacity: 1; filter: blur(0); pointer-events: auto; }
.sticky-cta__t { font-size: 14.5px; font-weight: 600; letter-spacing: -.008em; white-space: nowrap; }
@media (max-width: 560px) {
  /* A strip across the bottom that leaves a slot for the back-to-top button. */
  .sticky-cta { left: 12px; right: 66px; padding: 0 8px; transform: translateY(140%) scale(.96); }
  .sticky-cta[data-show='true'] { transform: translateY(0); }
  .sticky-cta__t { display: none; }
  .sticky-cta .btn { flex: 1 1 100%; }
  .to-top { right: 12px; }
}

.to-top {
  position: fixed; z-index: 940; right: 22px;
  bottom: calc(var(--cta-bottom) + (var(--cta-h) - 42px) / 2);
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--glass-2); color: var(--ink-2);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  display: grid; place-items: center; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), var(--shadow-1);
  opacity: 0; transform: translateY(10px) scale(.9); filter: blur(6px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease-out), filter .3s var(--ease-out),
              color .18s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}
:root[data-theme='dark'] .to-top { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow-1); }
.to-top[data-show='true'] { opacity: 1; transform: none; filter: blur(0); pointer-events: auto; }
.to-top:hover { color: var(--blue-ink); }
.to-top:active { transform: scale(.9); transition-duration: .07s; }
.to-top svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------------ 18. REVEAL */
/* Content is visible by default; the hidden start state is gated behind
   html.js, so a page with scripting off renders in full. 12px over half a
   second: it arrives before a fast scroller does and still reads as movement.
   The stagger is nth-child, because every one of these containers holds
   nothing but reveals, so the child index is the reveal index. */
.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal[data-seen='true'] {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease-out), transform .5s var(--ease-out),
              background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.js .grid > .reveal:nth-child(2), .js .evidence > .reveal:nth-child(2), .js .steps > .reveal:nth-child(2) { transition-delay: .06s; }
.js .grid > .reveal:nth-child(3), .js .evidence > .reveal:nth-child(3), .js .steps > .reveal:nth-child(3) { transition-delay: .12s; }
.js .grid > .reveal:nth-child(4), .js .evidence > .reveal:nth-child(4), .js .steps > .reveal:nth-child(4) { transition-delay: .18s; }
.js .grid > .reveal:nth-child(n + 5), .js .evidence > .reveal:nth-child(n + 5) { transition-delay: .24s; }
/* Inside a revealing tile the glyph lands one beat after the tile, and a
   figure lands last: a front and a back rather than one flat rectangle. */
.js .reveal .glyph, .js .reveal .step__n {
  opacity: 0; transform: scale(.86);
  transition: opacity .45s var(--ease-out) .1s, transform .45s var(--ease-out) .1s;
}
.js .reveal[data-seen='true'] .glyph, .js .reveal[data-seen='true'] .step__n { opacity: 1; transform: none; }
.js .reveal .ev__v, .js .reveal .costfig__v {
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease-out) .14s, transform .5s var(--ease-out) .14s;
}
.js .reveal[data-seen='true'] .ev__v, .js .reveal[data-seen='true'] .costfig__v { opacity: 1; transform: none; }

/* ------------------------------------------------------- 19a. THEME REVEAL */
/* app.js runs the theme switch inside a view transition and marks the root
   with .vt-theme for its duration. The browser's own crossfade does the work:
   the old page fades out as the new one fades in, every pixel on the same
   curve, which is smoother than a hundred elements each easing their own
   colour. Only the length and the curve are set here. The language switch
   uses the default crossfade and carries no class. */
:root.vt-theme::view-transition-old(root),
:root.vt-theme::view-transition-new(root) {
  animation-duration: .55s;
  animation-timing-function: cubic-bezier(.45, 0, .2, 1);
}
/* No per-element colour transitions while the snapshots are taken, or the
   new one is caught mid-fade and the page changes twice. */
:root.vt-theme, :root.vt-theme * { transition: none !important; }
::view-transition-group(root) { animation-duration: .26s; }

/* --------------------------------------------------------- 19. SMALL TRANSITIONS */
/* Every themed surface on ONE transition, so the page turns over as a single
   object when the theme flips rather than in pieces. */
body, .nav, .section--alt, .footer, .tile, .evidence, .psyblock, .aipanel,
.cmeta, .input, .select, .textarea, .bk__panel, .doc-page main {
  transition-property: background-color, color, border-color, box-shadow;
  transition-duration: .45s;
  transition-timing-function: cubic-bezier(.45, 0, .2, 1);
}
/* The dropdown and a field error are attached to a click the visitor just
   made, so anything slower than ~150ms reads as lag. */
.csel__list:not([hidden]) { animation: materialize .18s var(--ease-out) both; transform-origin: 50% 0; }
@keyframes materialize {
  from { opacity: 0; transform: translateY(-4px) scale(.98); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.field__err[data-show='true'] { animation: fadeRise .2s var(--ease-out) both; }

/* ------------------------------------------------------------- 20. PREFERENCES */
/* Reduced motion means gentler, not none: things still show their state,
   they simply arrive already there. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal .glyph, .js .reveal .step__n, .js .reveal .ev__v, .js .reveal .costfig__v,
  .js .reveal .mask__in, .js .reveal .checks li svg, .js .reveal--material, .hero__copy > .reveal {
    opacity: 1; transform: none; filter: none; transition: none; transition-delay: 0s;
  }
  .js .reveal--material .shift__row { animation: none; }
  .js .steps::before { transform: none; transition: none; }
  .nav__pill { transition: none; }
  .faq__a p { opacity: 1; transform: none; transition: none; }
  .sticky-cta, .to-top, .nav__links { filter: none; }
  .demo, .reel__dot, .copy__bar span, .copy__btn { transition: none; }
  .chat__b, .srch__chip, .srch__row, .pdf__pts li, .ops__row, .chat__b--typing span,
  .is-typing .srch__caret, .is-typing .copy__desc::after, .copy__count.is-bump { animation: none; }
  :root.vt-theme::view-transition-old(root), :root.vt-theme::view-transition-new(root) { animation-duration: .01s; }
  .js .shift__row[data-new='true'], .shift__dot::after, .js .bk__step:not([hidden]),
  .csel__list:not([hidden]), .field__err[data-show='true'], .ok, .flash { animation: none; }
  .btn, .icon-btn, .nav__link, .ind, .chip, .check input, .textlink svg, .ind__go,
  .seg::before, .nav__burger svg line, #theme-toggle .theme-moon, #theme-toggle .theme-sun,
  .faq__ic, .faq__a, .step__n, .footer__col a, .social a, .bk__opt, .bk__cell, .bk__slot,
  .bk__nav, .bk__x, .bk__optdot, .bk__rbullet, .sticky-cta, .to-top, .tile { transition: none; }
  .nav__links { transition: opacity .2s var(--ease); transform: none; }
  .nav__links .nav__link { opacity: 1; transform: none; transition: none; }
  .nav__links[data-open='true'] .nav__link { transition-delay: 0s; }
  .btn:active, .icon-btn:active, .ind:active, .chip:active, .check input:active,
  .bk__opt:active, .bk__cell:not(:disabled):active, .bk__slot:not([data-taken='true']):active,
  .bk__nav:active, .bk__x:active, .social a:active, .to-top:active, .nav__link:active { transform: none; }
  .textlink:hover svg, .footer__col a:hover, .step:hover .step__n { transform: none; }
}

/* Somebody who has asked for less transparency gets solid surfaces. */
@media (prefers-reduced-transparency: reduce) {
  :root { --glass: var(--paper); --glass-2: var(--surface); }
  .nav, .nav__links, .csel__list, .bk__panel, .sticky-cta, .to-top, .bk__scrim {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .bk__scrim { background: rgba(11, 27, 51, .6); }
}

/* Higher contrast: real borders on the surfaces that lean on tint alone. */
@media (prefers-contrast: more) {
  :root { --line: rgba(11, 27, 51, .3); --line-2: rgba(11, 27, 51, .5); --ink-2: #2b3a4f; --ink-3: #3e4e63; }
  :root[data-theme='dark'] { --line: rgba(255, 255, 255, .3); --line-2: rgba(255, 255, 255, .5); --ink-2: #d5dce8; --ink-3: #b6c0cf; }
  .tile, .evidence, .psyblock, .aipanel, .cmeta, .shift, .costband, .bk__panel, .sticky-cta,
  .input, .select, .textarea, .chip, .btn--secondary, .icon-btn { border: 1px solid var(--line-2); }
  .nav { border-bottom: 1px solid var(--line-2); }
}

/* Engines without backdrop-filter get opaque panes rather than see-through ones. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root { --glass: var(--paper); --glass-2: var(--surface); }
}

/* A phone pays for every blur layer; drop the radius a little there. */
@media (max-width: 760px) { :root { --blur: 14px; } }

/* -------------------------------------------------------------------- 21. PRINT */
@media print {
  .nav, .to-top, .sticky-cta, .bk, .shift__dot::after { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 24px; }
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ---------------------------------------------------------- 22. LEGAL PAGE */
/* privacy.html: a reading page rather than a marketing section. Both language
   versions are in its markup and the wrong one is hidden by <html lang>. */
html[lang='hu'] [data-lang-block='en'], html[lang='en'] [data-lang-block='hu'] { display: none; }
.doc { padding-block: clamp(44px, 6vw, 76px) clamp(64px, 8vw, 104px); }
.doc__wrap { max-width: 780px; }
.doc__close {
  position: sticky; top: calc(var(--nav-h) + 14px); float: right; z-index: 5;
  margin: 0 -58px 0 16px; width: 38px; height: 38px; flex: none;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--ink-tint); color: var(--ink-2); text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.doc__close svg { width: 16px; height: 16px; }
.doc__close:hover { color: var(--ink); background: var(--ink-tint-2); }
@media (max-width: 940px) { .doc__close { margin-right: 0; } }
.doc__head { margin-bottom: 40px; }
.doc__title { font-size: clamp(2rem, 1rem + 2.6vw, 2.9rem); letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 0; }
.doc__lead { font-size: 17.5px; line-height: 1.6; color: var(--ink-2); margin: 18px 0 0; max-width: 62ch; text-wrap: pretty; }
.doc__meta { font-size: 13.5px; color: var(--ink-3); margin: 18px 0 0; line-height: 1.6; }
.doc__toc { margin: 0 0 48px; padding: 22px 26px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.doc__toc strong { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.doc__toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; font-size: 14.5px; line-height: 1.9; list-style: decimal; }
@media (max-width: 620px) { .doc__toc ol { columns: 1; } }
.doc__toc li { break-inside: avoid; }
.doc__toc a { color: var(--ink-2); }
.doc__toc a:hover { color: var(--blue-ink); }
.doc section { margin-bottom: 46px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.doc h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.55rem); letter-spacing: -.02em; line-height: 1.3; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.012em; margin: 28px 0 10px; }
.doc p { font-size: 16px; line-height: 1.7; margin: 0 0 15px; text-wrap: pretty; }
.doc p:last-child { margin-bottom: 0; }
.doc ul, .doc ol { margin: 0 0 15px; padding-left: 22px; list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { font-size: 16px; line-height: 1.7; margin-bottom: 9px; }
.doc a { text-decoration: underline; text-underline-offset: 2px; }
.doc code { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--field); overflow-wrap: anywhere; }
.doc__callout { padding: 16px 20px; margin: 0 0 15px; background: var(--sky); border-left: 3px solid var(--blue); border-radius: var(--r-sm); }
.doc__note { padding: 14px 18px; margin: 0 0 15px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-sm); font-size: 15px; color: var(--ink-2); }
.doc__facts { list-style: none; padding-left: 0; }
.doc__facts li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.doc__facts li::before { content: ''; position: absolute; left: 0; top: .42em; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.doc__rights { list-style: none; padding-left: 0; }
.doc__rights li { padding: 12px 16px; margin-bottom: 8px; background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--shadow-1); }
.doc__dl { margin: 0 0 15px; }
.doc__dl > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc__dl > div:last-child { border-bottom: 0; }
.doc__dl dt { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.doc__dl dd { margin: 0; font-size: 15.5px; line-height: 1.55; }
@media (max-width: 560px) { .doc__dl > div { grid-template-columns: 1fr; } }
.doc__table { width: 100%; margin: 0 0 15px; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; display: block; overflow-x: auto; }
.doc__table thead th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding: 0 14px 9px 0; border-bottom: 1px solid var(--line-2); }
.doc__table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 110px; }
.doc__table tr:last-child td { border-bottom: 0; }
.fill { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #fff3c4; color: #6b4e00; border: 1px dashed #d9a800; font-size: .92em; font-weight: 600; }
:root[data-theme='dark'] .fill { background: #3d2f00; color: #ffd75e; border-color: #8a6d00; }
.doc-page main { background: var(--paper); }
