/* Nousavant · From AI to ROI. One stylesheet for every page.
   Follows the Nousavant brand book v1.0 (vault: projects/nousavant/brand/kit/brand-book.html); this file is its reference implementation.
   A light page: paper and bone carry the page, graphite is kept for two moments (what we build, the close), cobalt for actions,
   the hero line and the guarantee band. Albert Sans for headlines and text, Brygada 1918 for large figures. */

/* Palette tokens: a light page.
   Roles: base (~70%, paper page), field (bone cards and panels on it), dark (~25%, graphite: the solutions panel and the close),
   accent (~5%, cobalt: actions, the hero line, the guarantee band). */
:root {
  --base: #fbfaf7; --base-2: #f2f0eb;
  --ink: #111214; --ink-2: #45474d; --ink-3: #6b6c70; --rule-c: 17, 18, 20;
  --field: #f2f0eb; --field-2: #e6e3dc; --field-ink: #111214; --field-ink-2: #45474d; --field-rule-c: 17, 18, 20;
  --graphite: #111214; --graphite-2: #1a1c1f; --bone: #f2f0eb;
  --accent: #3d63e6; --accent-hi: #3455c6; --accent-ink: #ffffff;
  --accent-text: #2f52cf;       /* cobalt deepened for text on paper and bone */
  --field-accent-text: #2f52cf;
  --focus: #2f52cf; --field-focus: #2f52cf; --shadow-c: 17, 18, 20;
  --serif: "Brygada 1918 Variable", Georgia, serif;
  --sans: "Albert Sans Variable", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --r: 18px;
  --r-sm: 12px;
  --btn-r: 12px;
  color-scheme: light;
}
/* Surface scheme: components read --bg/--fg/...; .field, .ground and .raised switch a whole subtree */
:root, .ground, .raised {
  --bg: var(--base); --bg-2: var(--base-2); --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3);
  --rule: rgba(var(--rule-c), .16); --rule-2: rgba(var(--rule-c), .32);
  --acc-text: var(--accent-text); --ring: var(--focus);
}
.raised { --bg: var(--base-2); --bg-2: var(--base); }
.field {
  --bg: var(--field); --bg-2: var(--field-2); --fg: var(--field-ink); --fg-2: var(--field-ink-2); --fg-3: var(--field-ink-2);
  --rule: rgba(var(--field-rule-c), .18); --rule-2: rgba(var(--field-rule-c), .36);
  --acc-text: var(--field-accent-text); --ring: var(--field-focus);
}
.dark {
  --bg: var(--graphite); --bg-2: var(--graphite-2); --fg: var(--bone); --fg-2: #c9c6bf; --fg-3: #a19e97;
  --rule: rgba(242, 240, 235, .14); --rule-2: rgba(242, 240, 235, .3);
  --acc-text: #7c9cff; --ring: #7c9cff; color-scheme: dark;
}
.field, .ground, .raised, .dark { background: var(--bg); color: var(--fg); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-color: var(--rule-2) var(--base); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.6 var(--sans); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--accent); color: var(--accent-ink); }
input, textarea { caret-color: var(--accent); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--sans); font-weight: 600; letter-spacing: -.03em; }
.g { color: var(--fg-3); }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-size: .875rem; color: var(--fg-3); }

/* Type roles */
.big { font-size: clamp(2.5rem, 1.3rem + 3.8vw, 4.75rem); line-height: 1.02; letter-spacing: -.04em; }
.mid { font-size: clamp(2.125rem, 1.3rem + 2.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.04em; }
.mid.two { max-width: 22ch; margin-bottom: clamp(36px, 5vw, 64px); }
.mid.two:has(+ .say) { margin-bottom: 22px; }
.mid.two + .say { margin-bottom: clamp(36px, 5vw, 64px); }
.small-h { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin-bottom: 18px; }
.say { font-size: 1.1875rem; line-height: 1.55; color: var(--fg-2); max-width: 52ch; }
.lede { font-size: clamp(1.125rem, 1rem + .35vw, 1.3125rem); line-height: 1.5; color: var(--fg-2); max-width: 50ch; }
.note { font-size: .9375rem; color: var(--fg-3); margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 8%, transparent); font-size: .875rem; font-weight: 600; color: var(--fg); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Wordmark and pills */
/* The wordmark is the outlined SVG from the brand kit (never retyped); the version for light backgrounds */
.wordmark { display: inline-flex; padding-block: 5px; text-decoration: none; }
.wordmark img { display: block; height: 20px; width: auto; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 26px; border-radius: var(--btn-r); background: var(--accent); color: var(--accent-ink); border: 0; font: 650 1.0625rem/1.2 var(--sans); letter-spacing: 0; text-decoration: none; cursor: pointer; transition: background-color .16s var(--ease), transform .12s var(--ease); }
.pill:hover { background: var(--accent-hi); }
.pill:active { background: var(--accent-hi); transform: scale(.97); }
.pill .ar { transition: transform .16s var(--ease); }
.pill:hover .ar { transform: translateX(3px); }
.pill:active .ar { transform: translateX(1px); }
.pill.small { min-height: 42px; padding: 0 18px; font-size: .9375rem; border-radius: 10px; }
.pill.wide { width: 100%; }
/* Brand book: at most one cobalt element per view. Repeat actions next to the main one use the text colour instead. */
.pill.quiet { background: var(--fg); color: var(--bg); }
.pill.quiet:hover, .pill.quiet:active { background: var(--fg-2); }
.alt { color: var(--fg-2); font-size: .975rem; }
.alt a, .say a, .textlink { color: var(--fg); font-weight: 600; text-decoration: underline; background: none; border: 0; padding: 0; font-family: inherit; font-size: inherit; cursor: pointer; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero-alt { margin-top: 22px; }
/* Until a booking tool is set, the call buttons open an email draft; this note says so beside each one */
.book-note { display: inline-flex; align-items: center; gap: 7px; font-size: .875rem; color: var(--fg-3); }
.book-note svg { display: block; }

/* Navigation: a floating pill bar that stays */
.nav-shell { position: sticky; top: 0; z-index: 40; padding: 12px var(--pad) 0; margin-bottom: -80px; }
.nav-bar { max-width: calc(var(--max) - 2 * var(--pad)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 0 10px 0 24px; border-radius: 16px; background: var(--base); color: var(--ink); box-shadow: 0 1px 0 rgba(var(--rule-c), .06), 0 12px 32px -18px rgba(var(--shadow-c), .35); --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3); --rule: rgba(var(--rule-c), .16); --ring: var(--focus); }
.nav-bar nav ul { display: flex; gap: 4px; }
.nav-bar nav a { display: block; padding: 9px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background-color .16s var(--ease), color .16s var(--ease); }
.nav-bar nav a:hover { color: var(--ink); background: rgba(var(--rule-c), .1); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(var(--rule-c), .1); }
.lang a { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--ink-3); padding: 7px 9px; border-radius: 999px; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: var(--ink); color: var(--base); }
/* Phones: one button opens the languages as a small sheet under the bar */
.lang-btn { display: none; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(var(--rule-c), .1); color: var(--ink); font: 700 .75rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.lang-pop { inset: auto; top: calc(env(safe-area-inset-top, 0px) + 72px); right: max(16px, env(safe-area-inset-right, 0px)); margin: 0; padding: 6px; border: 0; border-radius: 14px; background: var(--base); color: var(--ink); box-shadow: 0 1px 2px rgba(var(--shadow-c), .08), 0 14px 36px -10px rgba(var(--shadow-c), .28); }
.lang-pop .lang { flex-direction: column; gap: 2px; padding: 0; background: none; }
.lang-pop .lang a { padding: 12px 18px; border-radius: 10px; font-size: .9375rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.lang-pop .lang a[aria-current="page"] { background: rgba(var(--rule-c), .08); color: var(--ink); }
.lang-pop .lang a:hover { color: var(--ink); background: rgba(var(--rule-c), .05); }

/* ───────── Landing ─────────
   Motion plays on its own when a section comes into view (motion.js) or scrolls with its content (CSS view timelines);
   nothing pins the page. Without JavaScript, without support and with reduced motion every section shows its finished state. */

.block { padding-block: clamp(72px, 9vw, 136px); }
.block .mid + .say { margin-top: 22px; }
.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cols.head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
.cols.head .say { margin-top: 0; }
.stick { position: sticky; top: 112px; }
.tag { justify-self: start; display: inline-block; font-size: .875rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 9%, transparent); color: var(--fg); }
.ar { display: inline-flex; }
.ar svg { display: block; }
.ar.up svg { rotate: -45deg; }

/* Hero: copy in the top-left quadrant; one canvas behind it fills the other three (hero.js) */
.hero { position: relative; isolation: isolate; min-height: min(100svh, 940px); overflow: clip; }
.hero-fx { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; }
/* The 3D film (hero-film.js): one background for the whole first screen. hero-film.js stretches it down past the trust
   strip, so the hero lets it out. The mark and the label are drawn on the second canvas, flat, above the scene. */
.hero:has(.hero-stage:not([hidden])) { overflow: visible; }
.hero-stage { position: absolute; inset: 0 0 auto; height: 100%; z-index: -1; pointer-events: none; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The copy sits on its own sheet, raised above the film: the field shows through blurred, and the sheet casts a long,
   soft shadow down and to the right, the way the scene's key light falls from the upper left. */
.hero-card { width: fit-content; max-width: 100%; }
.hero-in { padding-top: clamp(132px, 18svh, 176px); padding-bottom: 48px; }
@media (min-width: 761px) {
  .hero-stage:not([hidden]) + .hero-in .hero-card {
    margin-left: calc(-1 * clamp(28px, 3vw, 48px)); padding: clamp(28px, 3vw, 44px) clamp(28px, 3vw, 48px);
    border-radius: 28px; background: rgba(251, 250, 247, .8);
    -webkit-backdrop-filter: blur(18px) saturate(1.05); backdrop-filter: blur(18px) saturate(1.05);
    box-shadow: 0 1px 2px rgba(17, 18, 20, .05), 8px 18px 36px -12px rgba(17, 18, 20, .12), 28px 64px 110px -36px rgba(17, 18, 20, .2);
  }
  .hero-stage:not([hidden]) + .hero-in .hero-card .lede { margin-bottom: 28px; }
  /* room under the copy for the mark and its four lanes, so the film never runs into the band of logos */
  .hero-in { padding-bottom: 330px; }
}
.hero h1 { font-size: clamp(3.25rem, 1.2rem + 6.4vw, 7.25rem); line-height: .95; letter-spacing: -.04em; }
.hero .lede { margin: 26px 0 32px; font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); line-height: 1.4; max-width: 34ch; }
.replay { position: absolute; right: var(--pad); bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 6px; background: none; border: 0; font: 500 .875rem var(--sans); color: var(--fg-3); cursor: pointer; }
.replay:hover { color: var(--fg); }
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; min-height: 0; overflow: visible; }
  .hero-in { order: 1; width: 100%; padding-top: 112px; padding-bottom: 0; }
  .hero-fx { order: 2; }
  .replay { order: 3; }
  .hero-fx { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3.4; height: auto; margin-top: 24px; }
  .hero-stage { position: relative; order: 2; z-index: 0; height: auto; aspect-ratio: 4 / 3.4; margin-top: 24px; }
  .replay { position: static; align-self: flex-end; margin: 0 var(--pad) 8px; }
}

/* Where time and money leak: five bone cards, a two-tone heading and a piece of today's work bleeding off the bottom */
#problem, #leistungen { overflow-x: clip; } /* cards wait off to the side before they slide in */
.leaks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.leak { position: relative; grid-column: span 2; display: flex; flex-direction: column; height: 440px; padding: 30px 30px 0; border-radius: 20px; background: var(--field); color: var(--field-ink); overflow: hidden; }
.leak.wide { grid-column: span 3; }
.leak h3 { max-width: 17ch; font-size: clamp(1.45rem, 1.1rem + .8vw, 1.85rem); line-height: 1.12; }
.leak .badge { position: absolute; top: 30px; right: 30px; padding: 4px 10px; border-radius: 999px; background: var(--graphite); color: var(--bone); font-size: .875rem; font-weight: 600; }
.frag { margin-top: auto; transform: translateY(24px); padding: 16px 18px 40px; border-radius: 14px 14px 0 0; background: #fff; box-shadow: 0 1px 0 rgba(var(--rule-c), .06), 0 18px 50px -22px rgba(var(--shadow-c), .3); font-size: .875rem; }
.inbox li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid #eeece7; }
.inbox i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.inbox b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox span { font-size: .75rem; color: var(--ink-3); }
.inbox em { font-style: normal; font-size: .75rem; font-weight: 600; color: #a33a31; white-space: nowrap; }
.tools3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tools3 > div { padding: 10px; border: 1px solid #eeece7; border-radius: 10px; }
.tools3 p { margin-bottom: 8px; font: 600 .75rem var(--mono); letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.tools3 span { display: block; height: 24px; margin-bottom: 6px; padding: 0 6px; border-radius: 6px; background: #f5f4f0; font: .75rem/24px var(--mono); white-space: nowrap; overflow: hidden; }
.typing::after { content: ""; display: inline-block; width: 1px; height: 12px; margin-left: 1px; background: currentColor; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.thread li { margin-bottom: 8px; padding: 6px 0 6px 12px; border-left: 2px solid #eeece7; }
.thread li.late { border-color: #a33a31; }
.thread b { font-weight: 600; }
.thread span { display: block; font-size: .75rem; color: var(--ink-3); }
.inv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font: .75rem var(--mono); }
.inv dt { color: var(--ink-3); }
.inv-n { margin-top: 14px; font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sheet { width: 100%; border-collapse: collapse; font: .75rem var(--mono); }
.sheet td { padding: 6px 8px; border: 1px solid #eeece7; }
.sheet tr:first-child td { color: var(--ink-3); }
.sheet .err { color: #a33a31; background: #fbefed; font-weight: 600; }
@media (max-width: 980px) { .leaks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .leak, .leak.wide { grid-column: span 1; } }
@media (max-width: 640px) { .leaks { grid-template-columns: minmax(0, 1fr); } .leak { height: 420px; padding: 24px 22px 0; } .leak .badge { top: 24px; right: 22px; } }

/* Reveals (motion.js): only hidden once the script has taken them over; [data-rv] says where they come from */
.rv-wait { opacity: 0; translate: -48px 0; }
.rv-wait[data-rv="right"] { translate: 48px 0; }
.rv-wait[data-rv="up"] { translate: 0 40px; }
[data-rv] { transition: opacity .9s var(--ease), translate 1.1s var(--ease); }

/* What we build: a graphite panel. Numbered list on the left (tabs once solution-film.js runs), a stage on the right
   where a 3D film of the picked solution plays, the request over it and the five steps ticking under it.
   Without the script every panel's text stacks in the stage and no film shows. */
.sol { --sol-acc: #7c9cff; display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 2fr); gap: clamp(20px, 3vw, 48px); padding: clamp(20px, 3vw, 40px); border-radius: 36px; }
.sol-list { align-self: center; }
.sol-list li { border-top: 1px solid var(--rule); }
.sol-list li:last-child { border-bottom: 1px solid var(--rule); }
.sol-list button { position: relative; display: grid; font: inherit; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; row-gap: 4px; width: 100%; padding: 14px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--fg-3); transition: color .3s var(--ease), padding .3s var(--ease); }
.sol-n { font: 600 .75rem/1 var(--mono); letter-spacing: .06em; color: var(--fg-3); }
.sol-name { font-size: clamp(1rem, .8rem + .5vw, 1.25rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.sol-terms { display: none; grid-column: 2; font: 500 .75rem/1.5 var(--mono); letter-spacing: .02em; color: var(--fg-3); }
.sol-list button:hover { color: var(--fg-2); }
.sol-list button:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.sol-list button[aria-selected="true"] { color: var(--fg); padding-block: 18px; }
.sol-list button[aria-selected="true"] .sol-n { color: var(--sol-acc); }
.sol-list button[aria-selected="true"] .sol-terms { display: block; }
/* The line under the picked solution fills while its film plays, then the panel moves on */
.sol-list button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--sol-acc); }
.sol-stage { position: relative; display: grid; gap: 40px; min-width: 0; padding: clamp(20px, 2.4vw, 32px); border-radius: 24px; background: radial-gradient(70% 55% at 50% 58%, rgba(61, 99, 230, .2), transparent 70%), var(--bg-2); border: 1px solid var(--rule); overflow: hidden; }
.sol-film { display: none; }
.sol.live .sol-stage { display: block; min-height: 680px; padding: 0; }
.sol.live .sol-film { display: block; position: absolute; inset: 96px 0 120px; }
.sol-film canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sol-panel { position: relative; display: grid; gap: 24px; }
.sol.live .sol-panel { grid-template-rows: 1fr auto; min-height: 680px; padding: clamp(20px, 2.4vw, 32px); pointer-events: none; }
.sol.live .sol-panel[hidden] { display: none; }
.sol-kick { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; font: 500 .75rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sol-acc); }
.sol-kick span + span { color: var(--fg-3); }
.sol-req { max-width: 24ch; font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); line-height: 1.15; letter-spacing: -.025em; color: var(--fg); }
.sol-bottom { display: grid; gap: 18px; }
/* The five steps: each tick fills as the film reaches it; without the script all are ticked */
.sol-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sol-steps li { display: grid; gap: 8px; align-content: start; padding-top: 12px; border-top: 2px solid var(--sol-acc); font-size: .875rem; font-weight: 600; color: var(--fg); transition: color .4s var(--ease), border-color .4s var(--ease); }
.sol-steps li span { display: block; height: 16px; color: var(--sol-acc); transition: opacity .4s var(--ease), color .4s var(--ease); }
.sol.live .sol-steps li:not(.done) { border-top-color: var(--rule); color: var(--fg-3); }
.sol.live .sol-steps li:not(.done) span { color: inherit; opacity: .45; }
.sol-uses { display: flex; flex-wrap: wrap; gap: 8px; }
.sol-uses li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); font-size: .8125rem; color: var(--fg-2); }
@media (max-width: 980px) {
  .sol { grid-template-columns: minmax(0, 1fr); padding: 16px; border-radius: 24px; }
  /* Phones: the list becomes a row of chips that scrolls sideways */
  .sol.live .sol-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
  .sol.live .sol-scroll::-webkit-scrollbar { display: none; }
  .sol.live .sol-list { display: flex; gap: 8px; width: max-content; }
  .sol.live .sol-list li, .sol.live .sol-list li:last-child { border: 0; scroll-snap-align: start; }
  .sol.live .sol-list button { display: block; padding: 10px 16px; border-radius: 999px; background: rgba(242, 240, 235, .07); white-space: nowrap; }
  .sol.live .sol-list button[aria-selected="true"] { background: var(--bone); color: var(--graphite); }
  .sol.live .sol-n, .sol.live .sol-terms, .sol.live .sol-list button::after { display: none !important; }
  .sol.live .sol-stage, .sol.live .sol-panel { min-height: 600px; }
  .sol.live .sol-film { inset: 150px 0 210px; }
  .sol-steps { gap: 6px; }
  .sol-steps li { font-size: .75rem; }
  .sol.live .sol-uses { display: none; }
}

/* The offer, one chapter per step: the free call sits beside the heading, then the assessment, the program and the retainer
   each get their copy on one side and a 3D film on the other (src/scripts/offer-film.js), alternating sides. */
.of-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.of-head .mid.two { margin-bottom: 0; }
.of-k { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.of-fig { font: 600 .82em/1.1 var(--serif); letter-spacing: -.02em; white-space: nowrap; color: var(--fg-3); }
.of-start { display: grid; gap: 10px; justify-items: start; font-size: .9375rem; color: var(--fg-2); }
.of-start h3 { font-size: 1.5rem; letter-spacing: -.025em; color: var(--fg); }
.of-start .cta-row { margin-top: 6px; }
.of-alt { font-size: .875rem; }
.of-alt a { color: var(--fg); font-weight: 600; }
.of-ch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; scroll-margin-top: 96px; }
.of-ch + .of-ch { margin-top: clamp(40px, 6vw, 96px); }
.of-ch:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.of-ch:nth-of-type(even) .of-ch-copy { order: 2; }
.of-ch-copy { display: grid; gap: 14px; }
.of-ch-copy h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); letter-spacing: -.035em; line-height: 1.05; }
.of-ch-say { color: var(--fg-2); margin-bottom: 8px; }
.of-beats li { display: grid; padding: 12px 0 12px 18px; border-left: 2px solid var(--rule); font-size: .9375rem; color: var(--fg-2); transition: border-color .4s var(--ease), opacity .4s var(--ease); }
.of-beats b { color: var(--fg); font-size: 1rem; }
/* While a film plays, only the step on screen shows its sentence and the steps still to come are dimmed.
   Once it is over, and without the script or with motion reduced, every sentence shows. */
.of-beats.live li span { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s var(--ease); }
.of-beats.live li.on span, .of-beats.live:not(:has(li:not(.done))) li span { max-height: 7em; opacity: 1; }
.of-beats:has(.on) li:not(.on):not(.done) { opacity: .4; }
.of-beats li.on { border-left-color: var(--accent); }
.of-beats li.done { border-left-color: var(--fg); }
.of-free { padding: 14px 16px; border-radius: 14px; background: var(--field); font-size: .875rem; color: var(--fg-2); }
.of-free > b { font: 600 1.25rem/1 var(--serif); color: var(--fg); margin-right: 4px; }
.of-film { position: relative; border-radius: 32px; background: var(--field); aspect-ratio: 7 / 5.6; overflow: hidden; }
.of-film canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.of-ex { position: absolute; top: 18px; right: 20px; font: 600 .75rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.of-replay { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--base); color: var(--ink-2); cursor: pointer; }
.of-replay:hover { color: var(--ink); }
.of-replay[hidden] { display: none; }
@media (max-width: 900px) {
  .of-head, .of-ch, .of-ch:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
  .of-head { gap: 28px; align-items: start; }
  .of-ch:nth-of-type(even) .of-ch-copy { order: 0; }
  .of-film { order: -1; aspect-ratio: 4 / 3.4; border-radius: 24px; }
}

/* Guarantee band: the one full-bleed accent moment. It opens from a line as it scrolls in. */
.band { background: var(--accent); color: var(--accent-ink); padding-block: clamp(64px, 8vw, 112px); }
.band-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.band-fig { font-family: var(--serif); font-size: clamp(4rem, 1.5rem + 9vw, 10.5rem); font-weight: 650; letter-spacing: -.03em; line-height: .9; white-space: nowrap; }
.band .small-h { margin-bottom: 10px; }
.band-text { font-size: clamp(1.25rem, 1rem + .6vw, 1.5rem); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
.band-text b { font-weight: 700; }
.band-fine { margin-top: 16px; font-size: .9375rem; line-height: 1.5; }
.band-more { margin-top: 18px; font-size: .9375rem; line-height: 1.5; }
.band-more summary { cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.band-more p { margin-top: 10px; }

.panel-sec { border-radius: clamp(28px, 4vw, 56px); margin: clamp(16px, 2vw, 24px); }

.call-list { display: grid; gap: 10px; }
.call-list li { position: relative; padding-left: 26px; color: var(--fg-2); }
.call-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--acc-text); border-bottom: 2px solid var(--acc-text); transform: rotate(-45deg); }
.plink { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 600; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* The close: founders beside the call to action */
.close-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--rule-2); }
.close-lead { max-width: 34ch; margin-bottom: 28px; font-size: clamp(1.25rem, 1rem + .6vw, 1.5rem); line-height: 1.35; letter-spacing: -.01em; }
.close-people ul { display: grid; gap: 18px; }
.close-people li { display: flex; gap: 18px; align-items: center; }
.close-people img, .close-ph { flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--bg-2); display: grid; place-items: center; font: 600 1.5rem var(--serif); }
.close-people h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.close-people li p { color: var(--fg-2); font-size: .9375rem; }
.close-people .plink { margin-top: 2px; font-size: .9375rem; }

/* FAQ: ruled rows that open smoothly where the browser can size them */
.faq-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 24px 56px 24px 0; font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); font-weight: 650; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background:
  linear-gradient(var(--fg), var(--fg)) center / 12px 2px no-repeat,
  linear-gradient(var(--fg), var(--fg)) center / 2px 12px no-repeat,
  color-mix(in srgb, var(--fg) 9%, transparent); transition: transform .3s var(--ease), background-color .16s var(--ease); }
.faq summary:hover::after { background-color: color-mix(in srgb, var(--fg) 16%, transparent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 56px 26px 0; color: var(--fg-2); max-width: 62ch; }
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
}

/* Close */
.final h2 { font-size: clamp(2.75rem, 1.2rem + 5.6vw, 6rem); line-height: 1; letter-spacing: -.03em; max-width: 13em; margin-bottom: clamp(40px, 5vw, 72px); }
.final-act { display: grid; gap: 18px; justify-items: start; }

/* Scroll-linked motion: the guarantee band opens from a line and its figure gains weight as it scrolls in.
   It animates toward the state written above, so nothing depends on it. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .band { animation: open linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    @keyframes open { from { clip-path: inset(46% 0); } to { clip-path: inset(0); } }
    .band-fig { animation: weigh linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    @keyframes weigh { from { font-weight: 400; } }
  }
}

/* Landing, narrower */
@media (max-width: 960px) {
  .cols, .cols.head, .close-grid, .faq-in { grid-template-columns: minmax(0, 1fr); }
  .cols.head { align-items: start; gap: 20px; }
  .stick { position: static; }
  .band-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .band-fig { font-size: clamp(3.5rem, 18vw, 5rem); }
}


/* Questionnaire */
.quiz { border-radius: clamp(28px, 3.5vw, 44px); padding: clamp(24px, 4.5vw, 64px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.q-intro { align-self: start; position: sticky; top: 104px; display: grid; gap: 20px; justify-items: start; }
.q-main { min-width: 0; }
.stack { display: grid; gap: 30px; }
.stack fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.stack legend, .stack label > span:first-child { display: flex; gap: 12px; align-items: baseline; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; padding: 0; margin-bottom: 14px; }
.qn { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 12%, transparent); color: var(--fg); font-size: .875rem; font-weight: 700; transform: translateY(-2px); }
.stack label { display: grid; gap: 8px; }
.stack label > span:first-child { margin-bottom: 0; }
.stack label small { color: var(--fg-3); font-size: .875rem; margin-top: -4px; padding-left: 38px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices .check { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--bg-2); border: 1.5px solid transparent; cursor: pointer; font-weight: 500; transition: border-color .2s, background-color .2s; }
.choices .check:hover { border-color: var(--rule-2); }
.choices .check:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg-2)); }
.stack input[type="radio"] { appearance: none; width: 18px; height: 18px; margin: 0; flex: none; border: 1.5px solid var(--fg-3); border-radius: 50%; display: grid; place-content: center; }
.stack input[type="radio"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .2s var(--ease); }
.stack input[type="radio"]:checked { border-color: var(--accent); }
.stack input[type="radio"]:checked::before { transform: scale(1); }
.stack input[type="text"], .stack input[type="email"], .stack input[type="tel"], .stack input[type="number"] { width: 100%; min-height: 54px; padding: 0 18px; background: var(--bg-2); color: var(--fg); border: 1.5px solid transparent; border-radius: 14px; font: 400 1rem var(--sans); transition: border-color .2s; }
.stack input::placeholder { color: var(--fg-3); }
.stack input:hover { border-color: var(--rule-2); }
.stack input:focus { border-color: var(--accent); outline: none; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.consent { display: flex !important; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--fg-2); }
.consent input { accent-color: var(--accent); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.consent a { color: var(--fg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { font-weight: 700; color: var(--acc-text); }
.err:empty { display: none; }
.booking .slot { display: grid; gap: 14px; justify-items: start; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.kalender { width: 100%; height: 660px; border: 0; background: #fff; border-radius: var(--r-sm); }
.notice { padding: 14px 18px; border-radius: 14px; background: var(--bg-2); }

/* Footer */
.foot { max-width: var(--max); margin-inline: auto; padding: clamp(48px, 6vw, 80px) var(--pad) 72px; display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: 32px; font-size: .9375rem; }
.foot > div { display: grid; gap: 10px; align-content: start; }
.foot > div:first-child p { margin-top: 12px; }
.foot a { color: var(--fg-2); text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot .mono { font-weight: 700; color: var(--fg); font-size: .875rem; }
.foot > div:first-child .mono { font-weight: 400; color: var(--fg-3); }

/* Legal pages */
.legal .top { max-width: var(--max); margin-inline: auto; padding: 28px var(--pad); }
.legal-body { max-width: 820px; margin-inline: auto; padding: clamp(32px, 5vw, 72px) var(--pad) 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.legal-body h1 { hyphens: auto; overflow-wrap: break-word; font-size: clamp(2.5rem, 1.6rem + 2.4vw, 3.75rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 16px; }
.legal-body h2 { font-family: var(--sans); font-size: 1.125rem; letter-spacing: 0; margin-top: 24px; }
.legal-body p, .legal-body li { color: var(--fg-2); }
.legal-body ul { list-style: disc; padding-left: 1.2em; }


/* Report page: the questionnaire one step at a time, then the report */
.report-page { padding: 120px 0 clamp(48px, 6vw, 96px); }
.progress { display: grid; gap: 10px; width: 100%; max-width: 360px; font-size: .9375rem; font-weight: 600; color: var(--fg-2); }
.track-bar { height: 6px; border-radius: 999px; background: rgba(var(--rule-c), .22); overflow: hidden; }
.track-bar span { display: block; height: 100%; width: var(--p, 0%); background: var(--accent); transition: width .35s var(--ease); }
.stack .hint { color: var(--fg-3); font-size: .875rem; margin: -6px 0 14px 38px; }
.stack fieldset > input[type="text"] { margin-top: 12px; }
.choices input[type="checkbox"] { appearance: none; width: 18px; height: 18px; margin: 0; flex: none; border: 1.5px solid var(--fg-3); border-radius: 5px; display: grid; place-content: center; }
.choices input[type="checkbox"]::before { content: ""; width: 10px; height: 10px; background: var(--accent); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); transform: scale(0); transition: transform .2s var(--ease); }
.choices input[type="checkbox"]:checked { border-color: var(--accent); }
.choices input[type="checkbox"]:checked::before { transform: scale(1); }
.choices input:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.preview { margin-top: 16px; font-weight: 700; color: var(--acc-text); }
.stack label.solo { margin-top: 20px; }
.stack fieldset.sub { margin-top: 24px; }
.stack fieldset.sub legend { font-size: 1rem; margin-bottom: 12px; }
[data-orders] { margin-top: 20px; }
.assump { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; color: var(--fg-2); }
.preview:empty { display: none; }
.ghost { min-height: 54px; padding: 0 22px; border-radius: var(--btn-r); background: none; color: var(--fg); border: 1.5px solid var(--rule-2); font: 600 1rem var(--sans); cursor: pointer; }
.ghost:hover { border-color: var(--fg-3); }
.report { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rep-head h2 { hyphens: auto; overflow-wrap: break-word; max-width: 100%; }
.report:focus { outline: none; }
.rep-head, .rep-body { border-radius: clamp(28px, 3.5vw, 44px); padding: clamp(24px, 4.5vw, 64px); }
.rep-head { display: grid; gap: 16px; justify-items: start; }
.rep-date { color: var(--fg-2); }
.rep-cost { display: grid; gap: 8px; margin-top: 16px; }
.rep-cost .small-h { margin-bottom: 0; }
.rep-fig { font-family: var(--serif); font-size: clamp(2.5rem, 1.3rem + 3.8vw, 4.75rem); font-weight: 600; line-height: 1.02; letter-spacing: -.025em; color: var(--acc-text); }
.rep-share { font-weight: 700; }
.rep-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.rep-body > .rep-next, .rep-body > .note, .rep-body > .row, .rep-body > .notice { grid-column: 1 / -1; }
.rep-body .note { margin-top: 0; }
.rep-next { display: grid; gap: 16px; }
.rep-next p { font-size: 1.125rem; max-width: 62ch; }
.booking { display: grid; gap: 16px; width: 100%; }

/* Responsive (shared) */
@media (max-width: 1100px) {
  .nav-bar nav { display: none; }
  .quiz { grid-template-columns: minmax(0, 1fr); }
  .q-intro { position: static; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-shell { padding: 8px 8px 0; margin-bottom: -72px; }
  .nav-bar { min-height: 56px; padding: 0 6px 0 18px; }
  .pair, .rep-body { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .pill { white-space: normal; text-align: left; }
  .stack label small { padding-left: 0; }
}
@media (max-width: 560px) {
  .nav-end { gap: 8px; }
  .nav-end > .lang { display: none; }
  .lang-btn { display: inline-flex; }
  .nav-end .pill { min-height: 44px; padding: 0 12px; font-size: .875rem; white-space: nowrap; }
  .nav-bar .wordmark img { height: 16px; }
}
@media (max-width: 380px) {
  .nav-bar { padding-left: 14px; }
  .nav-end { gap: 6px; }
  .lang-btn svg { display: none; }
  .nav-end .pill { padding: 0 10px; }
}
@media (max-width: 350px) {
  .nav-end .pill { white-space: normal; line-height: 1.1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pill:active, .pill:hover .ar, .pill:active .ar { transform: none; }
}
.print-only { display: none; }
@media print {
  .print-only { display: block; }
  .rep-logo { height: 20px; width: auto; margin-bottom: 20px; }
  :root, .field, .ground, .raised { --bg: #fff; --bg-2: #f1f1f1; --fg: #111214; --fg-2: #3a3c40; --fg-3: #55575c; --acc-text: #2f52cf; --rule-c: 17, 18, 20; }
  html, body { background: #fff; }
  :root { color-scheme: light; }
  .nav-shell, .foot, .skip, .no-print, [data-quiz] { display: none !important; }
  .report-page { padding: 0; }
  .rep-head, .rep-body { border-radius: 0; padding: 0 0 24px; }
  .checks svg, .chip::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
