/* Citao — main stylesheet. Mobile first. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0A1324;
  --ink-2: #13203A;
  --ink-3: #1E2D4D;
  --porcelain: #F5F7FA;
  --paper: #FFFFFF;
  --mist: #E2E8F0;
  --slate: #4A5568;
  --slate-2: #64748B;
  --cobalt: #2E5BFF;
  --cobalt-ink: #1C42D6;
  --cobalt-soft: #E8EEFF;
  --on-ink: #F5F7FA;
  --on-ink-muted: #AAB6CC;
  --good: #0F7B4F;
  --bad: #B42318;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 1.25rem;
  --max: 72rem;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.js { scroll-behavior: auto; } /* JS eases in-page links itself; CSS smoothing would fight it */
[tabindex="-1"]:focus { outline: none; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--porcelain);
  font-feature-settings: "ss01" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 48rem) { body { font-size: 1.0625rem; } }

img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--cobalt-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 1.1rem + 3vw, 3.1rem); max-width: 22ch; }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .site-header :focus-visible { outline-color: #8FB0FF; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--paper); color: var(--ink); padding: .6rem 1rem; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

.section { padding-block: var(--section-y); background: var(--porcelain); }
.lead { font-size: clamp(1.075rem, 1rem + .4vw, 1.25rem); color: var(--slate); line-height: 1.55; margin-top: 1.25rem; max-width: 60ch; }
.narrow { max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.35rem;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 550; font-size: 1rem; line-height: 1.2; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px -10px rgba(46,91,255,.7); }
.btn-primary:hover { background: var(--cobalt-ink); }
.btn-ghost { color: var(--on-ink); border-color: rgba(245,247,250,.28); background: rgba(245,247,250,.04); }
.btn-ghost:hover { border-color: rgba(245,247,250,.6); background: rgba(245,247,250,.08); }
.btn-ghost-dark { color: var(--ink); border-color: var(--mist); background: var(--paper); }
.btn-ghost-dark:hover { border-color: var(--slate-2); }
.btn-light { background: var(--on-ink); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-small { min-height: 2.5rem; padding: .5rem 1rem; font-size: .9375rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  color: var(--on-ink);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 19, 36, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(170, 182, 204, .14);
}
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.header-row { display: flex; align-items: center; gap: 1rem; height: 4.5rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; font-weight: 650; font-size: 1.25rem; letter-spacing: -0.04em; margin: 0; }
.logo-word { height: 1.45rem; width: auto; fill: currentColor; }
.logo-footer .logo-word { height: 1.6rem; }
.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; }
.site-header nav { margin-left: auto; }
.nav-links { display: none; list-style: none; gap: .25rem; }
.nav-links a { color: var(--on-ink-muted); text-decoration: none; font-size: .9375rem; padding: .5rem .8rem; border-radius: 999px; }
.nav-links a:hover { color: var(--on-ink); background: rgba(245,247,250,.07); }
.site-header .btn { margin-left: auto; }
@media (min-width: 56rem) {
  .nav-links { display: flex; }
  .site-header .btn { margin-left: .5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60rem 40rem at 78% 30%, rgba(46,91,255,.20), transparent 60%),
    radial-gradient(40rem 30rem at 10% 110%, rgba(126,92,255,.14), transparent 60%),
    var(--ink);
  color: var(--on-ink);
  padding-top: 6.5rem;
  padding-bottom: 1rem;
}
.hero::after { /* fine grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 3px 3px;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.2rem, 1.2rem + 4.6vw, 4.7rem);
  letter-spacing: -0.042em; line-height: 1.02; font-weight: 620;
  max-width: 17ch;
}
.news-pill {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.5rem;
  padding: .4rem .85rem .4rem .7rem; border-radius: 999px;
  font-size: .875rem; line-height: 1.35; color: var(--on-ink); text-decoration: none;
  background: rgba(46, 91, 255, .16); border: 1px solid rgba(143, 176, 255, .35);
}
.news-pill:hover { background: rgba(46, 91, 255, .26); text-decoration: none; }
.news-dot { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: #8FB0FF; box-shadow: 0 0 0 4px rgba(143, 176, 255, .2); }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; font-size: .9375rem; color: var(--on-ink-muted); }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points li::before {
  content: ""; width: 1rem; height: 1rem; flex: none; border-radius: 50%;
  background: rgba(143, 176, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2L9.5 3.6' fill='none' stroke='%238FB0FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .65rem no-repeat;
}
.hero-sub { margin-top: 1.5rem; font-size: clamp(1.075rem, 1rem + .45vw, 1.3rem); color: var(--on-ink-muted); max-width: 48ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { margin-top: 1.25rem; font-size: .9375rem; color: var(--on-ink-muted); max-width: 52ch; }

.hero { display: flex; flex-direction: column; }
.hero-inner { order: 1; }
.hero-visual {
  order: 2; position: relative; z-index: 1;
  width: min(100%, 30rem); aspect-ratio: 1 / 1;
  margin: 1rem auto 0;
  pointer-events: none;
}
.hero-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .9s var(--ease); }

/* ---------- Live 3D: one fixed canvas behind the dark "gl-zone" sections ---------- */
.gl-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.gl-live .gl-canvas { opacity: 1; }
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header { position: fixed; z-index: 20; }
.gl-live .gl-zone { background: transparent; }
.gl-live .gl-zone::after { display: none; }
.gl-live .hero-still, .gl-live .story-still { opacity: 0; }
.gl-live .chip-a, .gl-live .chip-b, .gl-live .chip-c, .gl-live .chip-d, .gl-live .chip-brand { opacity: 0; }
.chip { transition: opacity .6s var(--ease); }

.chip {
  position: absolute; z-index: 2;
  padding: .4rem .75rem; border-radius: 999px;
  font-size: .8125rem; line-height: 1.2; white-space: nowrap; color: var(--on-ink);
  background: rgba(19,32,58,.55); border: 1px solid rgba(170,182,204,.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip-q { top: 4%; left: 50%; transform: translateX(-50%); font-size: .875rem; }
.chip-a { top: 24%; left: 2%; }
.chip-b { top: 30%; right: 1%; }
.chip-c { bottom: 30%; left: 0; }
.chip-d { bottom: 25%; right: 3%; }
.chip-brand { bottom: 9%; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .45rem; background: rgba(245,247,250,.92); color: var(--ink); font-weight: 600; border-color: transparent; }
.chip-q { transition: opacity .35s var(--ease); }
.chip-q.is-swapping { opacity: 0; }
.chip-brand .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 4px rgba(46,91,255,.18); }

@media (max-width: 40rem) {
  .chip { font-size: .75rem; padding: .32rem .6rem; }
  .chip-q { font-size: .78rem; }
}
@media (min-width: 64rem) {
  .hero { display: block; padding-top: 9rem; min-height: min(54rem, 100vh); }
  .hero-inner { padding-bottom: 7rem; }
  .hero-inner > * { max-width: 50%; }
  .hero h1 { font-size: clamp(3rem, 1rem + 3.6vw, 4.4rem); max-width: 13.5ch; }
  .hero-visual {
    position: absolute; margin: 0;
    width: min(42vw, 38rem);
    right: max(0rem, calc((100vw - var(--max)) / 2 - 2rem));
    top: 52%; transform: translateY(-50%);
  }
  .chip-a { top: 22%; left: 7%; }
  .chip-c { bottom: 28%; left: 4%; }
}

/* ---------- Constat ---------- */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: center; } }

.facts { display: grid; gap: 0; margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--mist); }
.fact { padding: 1.75rem 0; border-bottom: 1px solid var(--mist); display: grid; gap: .5rem; }
.fact-key { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.fact-text { margin: 0; max-width: 46ch; }
.fact-src { font-size: .8125rem; color: var(--slate); margin: 0; }
.fact-src a { color: var(--slate); }
@media (min-width: 56rem) {
  .facts { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 2.5rem; }
  .fact { border-bottom: 0; border-top: 1px solid var(--ink); padding-top: 1.5rem; align-content: start; }
}

.geo-def { padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--cobalt-soft); color: var(--ink); border: 1px solid #D3DDFF; }

/* Illustration: Google with an AI answer on top, and a chat answer */
.mock-pair { margin: 0; display: grid; gap: .9rem; min-width: 0; }
.mock-pair figcaption { font-size: .8125rem; color: var(--slate); }
.mock { border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--mist); padding: 1.1rem; box-shadow: 0 24px 48px -32px rgba(10, 19, 36, .35); }
.mock p { margin: 0; }
.mock-search { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-radius: 999px; border: 1px solid #D5DCE7; font-size: .9375rem; color: var(--ink); }
.mock-search svg { width: 1rem; height: 1rem; color: var(--slate); flex: none; }
.mock-aio { margin-top: .9rem; padding: .9rem 1rem; border-radius: var(--r-md); background: linear-gradient(135deg, #EEF2FF, #F6F0FF); border: 1px solid #DCE1FF; }
.mock-aio-label { display: flex; align-items: center; gap: .45rem; font-size: .8125rem; font-weight: 600; color: var(--cobalt-ink); margin-bottom: .4rem !important; }
.spark { width: .8rem; height: .8rem; flex: none; background: conic-gradient(from 0deg, #2E5BFF, #8A5CFF, #2EC4FF, #2E5BFF); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.mock-aio-text { font-size: .9375rem; line-height: 1.5; }
.mock-aio-text b, .bubble-ai b { color: var(--cobalt-ink); font-weight: 600; }
.mock-links { display: grid; gap: .5rem; margin-top: 1rem; opacity: .55; }
.mock-links i { display: block; height: .55rem; border-radius: 4px; background: var(--mist); }
.mock-links i:nth-child(odd) { width: 70%; } .mock-links i:nth-child(even) { width: 88%; }
.mock-caption { margin-top: .6rem !important; font-size: .8125rem; color: var(--slate); }
.mock-chat { display: grid; gap: .6rem; background: var(--ink); border-color: var(--ink); }
.bubble { max-width: 88%; padding: .65rem .9rem; border-radius: 16px; font-size: .9375rem; line-height: 1.45; }
.bubble-user { justify-self: end; background: var(--ink-3); color: var(--on-ink); border-bottom-right-radius: 4px; }
.bubble-ai { background: var(--paper); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble-ai b { color: var(--cobalt-ink); }
@media (min-width: 56rem) {
  .mock-pair { grid-template-columns: 1fr; position: relative; padding-bottom: 2rem; }
  .mock-google { padding-bottom: 3.25rem; }
  .mock-chat { width: 78%; justify-self: end; margin-top: -2.75rem; position: relative; }
}

/* ---------- Gains ---------- */
.gains, .methode { border-top: 1px solid var(--mist); }
.gain-grid { display: grid; gap: 1px; margin-top: 3rem; background: var(--mist); border: 1px solid var(--mist); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 40rem) { .gain-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .gain-grid { grid-template-columns: repeat(3, 1fr); } }
.gain { background: var(--paper); padding: 1.75rem; display: grid; gap: .6rem; align-content: start; }
.gain-ic { width: 2.5rem; height: 2.5rem; padding: .55rem; border-radius: 12px; background: var(--cobalt-soft); fill: none; stroke: var(--cobalt-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .4rem; }
.gain h3 { font-size: 1.125rem; }
.gain p { color: var(--slate); margin: 0; }

/* ---------- Demo ---------- */
.demo { background: var(--paper); border-block: 1px solid var(--mist); }
.demo-shell {
  margin-top: 2.5rem; border-radius: var(--r-lg);
  background: var(--porcelain); border: 1px solid var(--mist);
  padding: 1rem; display: grid; gap: 1rem;
}
@media (min-width: 48rem) { .demo-shell { padding: 1.5rem; gap: 1.5rem; } }
.demo-banner {
  display: flex; gap: .6rem; align-items: flex-start; margin: 0;
  padding: .8rem 1rem; border-radius: var(--r-md);
  background: #FFF6E0; color: #5C3D00; border: 1px solid #F1DBA6;
  font-weight: 550; font-size: .9375rem; line-height: 1.4;
}
.demo-banner svg { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .1rem; }

.demo-controls { display: grid; gap: .9rem; align-items: end; }
.demo-controls[hidden] { display: none; }
@media (min-width: 48rem) { .demo-controls { grid-template-columns: 1fr 1fr auto; } }

.field { display: grid; gap: .4rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: .875rem; font-weight: 600; color: var(--ink); padding: 0; }
.hint { font-size: .8125rem; color: var(--slate); margin: 0; }
select, input[type="text"], input[type="email"], input[type="number"] {
  width: 100%; min-height: 3rem; padding: .7rem .9rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid #C9D2DF; border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A5568' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: .75rem;
}
select:hover, input:hover { border-color: var(--slate-2); }
select:focus-visible, input:focus-visible { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(46,91,255,.25); }

.demo-progress { padding: 1.25rem; border-radius: var(--r-md); background: var(--ink); color: var(--on-ink); display: grid; gap: 1.25rem; }
.demo-progress[hidden] { display: none; }
.demo-progress .btn { justify-self: start; }
.steps-live { list-style: none; display: grid; gap: .85rem; }
.steps-live li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .75rem; align-items: start; color: var(--on-ink-muted); animation: rise .5s var(--ease) both; }
.steps-live li.is-active { color: var(--on-ink); }
.steps-live .ic { width: 1.25rem; height: 1.25rem; margin-top: .15rem; border-radius: 50%; border: 2px solid rgba(170,182,204,.35); position: relative; }
.steps-live li.is-active .ic { border-color: #8FB0FF; border-top-color: transparent; animation: spin .9s linear infinite; }
.steps-live li.is-done .ic { border-color: #5B82FF; background: #5B82FF; }
.steps-live li.is-done .ic::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.steps-live .detail { display: block; font-size: .9rem; color: var(--on-ink-muted); margin-top: .25rem; }
.steps-live .typed { color: var(--on-ink); }
.steps-live .srcs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.steps-live .srcs span { font-size: .78rem; padding: .2rem .55rem; border-radius: 999px; background: var(--ink-3); color: var(--on-ink); animation: rise .4s var(--ease) both; }
.grid-cap { margin: 0 0 .6rem; font-size: .9rem; color: var(--on-ink-muted); font-variant-numeric: tabular-nums; }
.demo-grid-wrap[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.demo-result { display: grid; gap: 1rem; }
.demo-result[hidden] { display: none; }
.demo-result.is-fresh > * { animation: rise .6s var(--ease) both; }
.demo-result.is-fresh > *:nth-child(2) { animation-delay: .12s; }
@media (min-width: 56rem) { .demo-result { grid-template-columns: 1.5fr 1fr; gap: 1.5rem; } }
.result-answer, .result-score { background: var(--paper); border: 1px solid var(--mist); border-radius: var(--r-md); padding: 1.25rem; }
@media (min-width: 48rem) { .result-answer, .result-score { padding: 1.75rem; } }
.result-meta { font-size: .875rem; color: var(--slate); }
.engine-tag { display: inline-block; font-weight: 600; color: var(--ink); background: var(--porcelain); border: 1px solid var(--mist); border-radius: 6px; padding: .1rem .45rem; margin-right: .25rem; }
.result-meta q { color: var(--ink); font-weight: 550; }
.answer-text { font-size: 1.0625rem; line-height: 1.65; }
.answer-text strong { color: var(--cobalt-ink); }
.fictive-note { font-size: .8125rem; color: var(--slate); font-style: italic; }
.sources { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--mist); }
.sources-title { font-size: .875rem; font-weight: 600; margin-bottom: .75rem; }
.source-list { display: grid; gap: .55rem; font-size: .9375rem; }
.source-list li { display: flex; gap: .65rem; align-items: baseline; }
.src-type { flex: none; min-width: 6.25rem; font-size: .75rem; font-weight: 600; color: var(--slate); }

.result-score { display: grid; gap: 1rem; align-content: start; }
.score-label { font-size: .875rem; font-weight: 600; color: var(--slate); margin: 0; }
.score-value { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; margin: 0; font-variant-numeric: tabular-nums; }
.answer-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.answer-grid i { display: block; aspect-ratio: 1; border-radius: 4px; background: var(--porcelain); border: 1px solid #CBD5E1; }
.answer-grid i.hit { background: var(--cobalt); border-color: var(--cobalt); }
.demo-progress .answer-grid i { background: transparent; border-color: rgba(170,182,204,.3); }
.demo-progress .answer-grid i.on { background: var(--ink-3); border-color: rgba(170,182,204,.5); animation: rise .3s var(--ease) both; }
.demo-progress .answer-grid i.hit { background: #5B82FF; border-color: #5B82FF; }
.grid-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .8125rem; color: var(--slate); margin: 0; }
.lg { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; background: var(--porcelain); border: 1px solid #CBD5E1; }
.lg-hit { background: var(--cobalt); border-color: var(--cobalt); }
.score-msg { font-size: 1.0625rem; font-weight: 550; margin: 0; }
.score-method { font-size: .8125rem; color: var(--slate); margin: 0; }

/* ---------- Méthode ---------- */
.steps { display: grid; gap: 0; margin-top: 3rem; counter-reset: s; }
.step { position: relative; padding: 1.75rem 0 1.75rem 3.5rem; border-top: 1px solid var(--mist); }
.step:last-child { border-bottom: 1px solid var(--mist); }
.step-num {
  position: absolute; left: 0; top: 1.6rem;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums;
  background: var(--ink); color: var(--on-ink);
}
.step h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.step p { color: var(--slate); max-width: 52ch; }
@media (min-width: 56rem) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .step { padding: 4rem 0 0; border: 0; }
  .step:last-child { border: 0; }
  .step::before { content: ""; position: absolute; top: 1.125rem; left: 2.75rem; right: -1.5rem; height: 1px; background: var(--mist); }
  .step:last-child::before { display: none; }
  .step-num { top: 0; }
}

.report { display: grid; gap: 2rem; margin-top: 4rem; padding: 1.5rem; border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); }
@media (min-width: 56rem) { .report { grid-template-columns: 1fr 1.6fr; gap: 3rem; padding: 2.5rem; } }
.report-text h3 { font-size: 1.35rem; margin-bottom: .75rem; }
.report-text p { color: var(--on-ink-muted); }
.report-card { margin: 0; display: grid; gap: 1px; background: rgba(170, 182, 204, .16); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 40rem) { .report-card { grid-template-columns: 1fr 1fr; } }
.report-card div { background: var(--ink-2); padding: 1rem 1.15rem; }
.report-card dt { font-weight: 600; margin-bottom: .25rem; }
.report-card dd { margin: 0; font-size: .9375rem; color: var(--on-ink-muted); }

/* ---------- Abonnement ---------- */
.abonnement { background: var(--ink); color: var(--on-ink); }
.abonnement .lead { color: var(--on-ink-muted); }
.abonnement .split { align-items: start; }
.reasons { display: grid; gap: 0; }
.reasons li { padding: 1.5rem 0; border-top: 1px solid rgba(170,182,204,.2); }
.reasons li:first-child { border-top: 0; padding-top: 0; }
.reasons h3 { margin-bottom: .5rem; }
.reasons p { color: var(--on-ink-muted); }
.abonnement .fact-src, .abonnement .fact-src a { color: var(--on-ink-muted); margin-top: .5rem; }

/* ---------- Calcul ---------- */
.presets { display: grid; gap: .75rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .presets { grid-template-columns: repeat(3, 1fr); } }
.preset {
  display: grid; gap: .25rem; text-align: left; cursor: pointer;
  padding: 1.1rem 1.25rem; border-radius: var(--r-md);
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--mist);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.preset:hover { border-color: var(--cobalt); box-shadow: 0 10px 30px -18px rgba(46, 91, 255, .6); }
.preset[aria-pressed="true"] { border-color: var(--cobalt); background: var(--cobalt-soft); }
.preset-in { font-size: .9375rem; color: var(--slate); }
.preset-out { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.presets-note { font-size: .8125rem; color: var(--slate); margin-top: .75rem; }
.calc-bar { position: relative; display: block; height: 1.5rem; margin-top: .5rem; border-radius: 6px; background: rgba(170, 182, 204, .12); }
.calc-fill { position: absolute; inset: 0; display: flex; gap: 3px; }
.calc-fill i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(180deg, #5B82FF, var(--cobalt)); }
.calc-cost { position: absolute; top: -.35rem; bottom: -.35rem; width: 2px; margin-left: -1px; background: var(--on-ink); border-radius: 2px; }
.calc-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8125rem; color: var(--on-ink-muted); }
.calc-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.calc-legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; }
.lg-client { background: var(--cobalt); }
.lg-cost { width: 2px !important; height: .9rem !important; background: var(--on-ink); }
.calc-after { font-weight: 550; color: var(--on-ink); }
.calc {
  margin-top: 2.5rem; display: grid; gap: 1.5rem;
  padding: 1.25rem; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--mist);
}
@media (min-width: 48rem) { .calc { padding: 2rem; } }
@media (min-width: 56rem) { .calc { grid-template-columns: 1.2fr 1fr; gap: 2.5rem; } .calc-formula { grid-column: 1 / -1; } }
.calc-inputs { display: grid; gap: 1.25rem; }
.seg { display: grid; gap: .5rem; margin-top: .4rem; }
@media (min-width: 30rem) { .seg { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); } }
.seg label { white-space: nowrap; display: flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .6rem .8rem; border: 1px solid #C9D2DF; border-radius: var(--r-sm); font-size: .9375rem; font-weight: 500; cursor: pointer; background: var(--paper); }
.seg label:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-soft); color: var(--cobalt-ink); font-weight: 600; }
.seg input { accent-color: var(--cobalt); width: 1rem; height: 1rem; margin: 0; }
.calc-out {
  display: grid; align-content: center; gap: .75rem;
  padding: 1.5rem; border-radius: var(--r-md);
  background: var(--ink); color: var(--on-ink);
}
.calc-big { font-size: clamp(2.5rem, 1.8rem + 3vw, 3.75rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-detail { color: var(--on-ink-muted); line-height: 1.55; }
.calc-formula { font-size: .875rem; color: var(--slate); margin: 0; padding-top: 1rem; border-top: 1px solid var(--mist); }

/* ---------- Promesses ---------- */
.promesses { background: var(--paper); border-block: 1px solid var(--mist); }
.two-cols { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 56rem) { .two-cols { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.two-cols h3 { font-size: 1.35rem; margin-bottom: 1.25rem; }
.two-cols ul { display: grid; gap: .9rem; margin-bottom: 1.25rem; }
.two-cols li { position: relative; padding-left: 2rem; }
.two-cols li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background-repeat: no-repeat; background-position: center; background-size: .75rem; }
.col-yes li::before { background-color: #E3F4EC; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%230F7B4F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.col-no li::before { background-color: #FCE8E6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' fill='none' stroke='%23B42318' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ---------- Offres ---------- */
.tiers { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 56rem) { .tiers { grid-template-columns: 1fr 1.1fr 1fr; gap: 0; align-items: stretch; } }
.tier { padding: 1.75rem; border: 1px solid var(--mist); border-radius: var(--r-lg); background: var(--paper); display: grid; gap: .75rem; align-content: start; }
@media (min-width: 56rem) {
  .tier { border-radius: 0; border-right-width: 0; padding: 2.25rem; }
  .tier:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .tier:last-child { border-radius: 0 var(--r-lg) var(--r-lg) 0; border-right-width: 1px; }
  .tier-main { margin-block: -1rem; border-radius: var(--r-lg) !important; border-right-width: 1px; padding-block: 3.25rem; }
  .tier-main + .tier { border-left-width: 0; }
}
.tier-main { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tier-main .tier-for, .tier-main .tier-setup, .tier-main .tier-price .from, .tier-main .tier-price .per { color: var(--on-ink-muted); }
.tier h3 { font-size: 1.25rem; }
.tier-for { color: var(--slate); font-size: .9375rem; margin: 0; }
.tier-price { font-size: 1.85rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; margin: .5rem 0 0; font-variant-numeric: tabular-nums; }
.tier-price .from { display: block; font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--slate); }
.tier-price .per { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--slate); }
.tier-setup { font-size: .9375rem; color: var(--slate); margin: 0; }

/* ---------- Qui ---------- */
.qui { background: var(--paper); border-top: 1px solid var(--mist); }
.qui .split { align-items: start; }
.qui .principles li { background: var(--porcelain); }
.principles { display: grid; gap: 1rem; }
.principles li { padding: 1.25rem 1.4rem; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--mist); }
.principles h3 { margin-bottom: .35rem; }
.principles p { color: var(--slate); margin: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--mist); }
.faq-wrap { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .faq-wrap { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }
.faq-list { border-top: 1px solid var(--mist); }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  border: 1px solid var(--mist);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2v8M2 6h8' fill='none' stroke='%230A1324' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / .7rem no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--cobalt-ink); }
.faq details p { color: var(--slate); padding-bottom: 1.5rem; max-width: 62ch; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(50rem 30rem at 90% 0%, rgba(46,91,255,.22), transparent 60%),
    var(--ink);
  color: var(--on-ink);
}
.cta .lead { color: var(--on-ink-muted); }
.cta-grid { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .cta-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.cta-list { display: grid; gap: .65rem; margin-top: 1.5rem; }
.cta-list li { display: flex; gap: .65rem; align-items: baseline; }
.cta-list li::before { content: ""; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: #8FB0FF; transform: translateY(-.1em); }
.cta-alt { margin-top: 2rem; color: var(--on-ink-muted); }
.form-title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.lead-form {
  display: grid; gap: 1rem;
  padding: 1.25rem; border-radius: var(--r-lg); background: var(--paper); color: var(--ink);
}
@media (min-width: 48rem) { .lead-form { padding: 2rem; } }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 30rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; font-size: .875rem; color: var(--slate); }
.check input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--cobalt); }
.form-status { font-size: .9rem; margin: 0; color: var(--slate); }
.form-status:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-block: 3rem; border-top: 1px solid rgba(170,182,204,.14); font-size: .9375rem; }
.site-footer a { color: var(--on-ink); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.logo-footer { color: var(--on-ink); margin-bottom: 1rem; }
.motto { font-style: italic; }
.motto span { font-style: normal; }
.footer-links { display: grid; gap: .6rem; }
.updated { font-size: .8125rem; }

/* ---------- Legal pages ---------- */
.legal-header { position: static; background: var(--ink); }
.legal { padding-block: 4rem 6rem; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; margin: 2.5rem 0 .75rem; max-width: none; }
.legal p, .legal li { color: var(--slate); }
.legal ul { padding-left: 1.25rem; }
.todo { background: #FFF6E0; color: #5C3D00; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Article (guide) ---------- */
.article .wrap { max-width: 46rem; }
.crumbs { font-size: .875rem; color: var(--slate); margin-bottom: 1.5rem; }
.crumbs a { color: var(--slate); }
.byline { font-size: .9375rem; color: var(--slate); margin-top: -1rem; }
.article .answer { font-size: 1.15rem; line-height: 1.6; color: var(--ink); padding: 1.25rem 1.4rem; border-radius: var(--r-md); background: var(--cobalt-soft); border: 1px solid #D3DDFF; margin-block: 2rem; }
.article h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); margin: 3rem 0 1rem; }
.article p, .article li, .article dd { color: #2D3748; }
.article ul, .article ol { padding-left: 1.25rem; display: grid; gap: .7rem; margin-bottom: 1rem; }
.article a:not(.btn) { color: var(--cobalt-ink); }
.toc { padding: 1.25rem 1.4rem; border-radius: var(--r-md); border: 1px solid var(--mist); background: var(--paper); }
.toc-title { font-weight: 600; margin-bottom: .5rem; }
.toc ol { gap: .35rem; margin: 0; }
.table-wrap { overflow-x: auto; margin-block: 1.5rem; border: 1px solid var(--mist); border-radius: var(--r-md); background: var(--paper); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 32rem; }
.table-wrap caption { text-align: left; font-weight: 600; padding: .9rem 1rem .4rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: .7rem 1rem; border-top: 1px solid var(--mist); }
.table-wrap thead th { color: var(--slate); font-weight: 600; }
.defs { margin: 1.25rem 0; display: grid; gap: .75rem; }
.defs div { padding: .9rem 1.1rem; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--mist); }
.defs dt { font-weight: 600; }
.defs dd { margin: .2rem 0 0; }
.article-cta { margin-top: 3rem; padding: 1.75rem; border-radius: var(--r-lg); background: var(--ink); display: grid; gap: 1rem; justify-items: start; }
.article-cta p { color: var(--on-ink) !important; font-size: 1.1rem; margin: 0; }

/* ---------- Story (scroll-driven, pinned when JS and motion are available) ---------- */
.story { position: relative; background: var(--ink); color: var(--on-ink); }
.story-stage { padding-block: var(--section-y); }
.story-grid { display: grid; gap: 2rem; align-items: center; }
.story h2 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.9rem); max-width: 18ch; }
.story-steps { display: grid; gap: 1.75rem; margin-top: 2rem; }
.story-step { position: relative; padding-left: 3.25rem; }
.story-num { position: absolute; left: 0; top: .1rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .9375rem; border: 1px solid rgba(143, 176, 255, .45); color: #C9D7FF; background: rgba(46, 91, 255, .14); }
.story-step h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); margin-bottom: .5rem; }
.story-step p { color: var(--on-ink-muted); max-width: 44ch; }
.story-cta { margin-top: 1.25rem; }
.story-visual { position: relative; width: min(100%, 36rem); aspect-ratio: 1 / 1; margin-inline: auto; }
.story-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .9s var(--ease); }
.story-progress { display: none; }
@media (min-width: 56rem) { .story-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; } }

@media (prefers-reduced-motion: no-preference) {
  .js .story { height: 320vh; }
  .js .story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; padding-block: 5rem 2rem; overflow: hidden; }
  .js .story-steps { display: grid; margin-top: 1.75rem; }
  .js .story-step { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .25s ease-out, transform .25s ease-out; pointer-events: none; }
  .js .story-step .btn { visibility: hidden; }
  .js .story:not([data-step]) .story-step[data-i="0"],
  .js .story[data-step="0"] .story-step[data-i="0"],
  .js .story[data-step="1"] .story-step[data-i="1"],
  .js .story[data-step="2"] .story-step[data-i="2"] { opacity: 1; transform: none; pointer-events: auto; transition: opacity .5s var(--ease) .22s, transform .5s var(--ease) .22s; }
  .js .story[data-step="2"] .story-step[data-i="2"] .btn { visibility: visible; }
  .js .story-progress { display: flex; gap: .4rem; position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); }
  .js .story-progress i { width: 2rem; height: 3px; border-radius: 2px; background: rgba(170, 182, 204, .25); transition: background-color .4s var(--ease); }
  .js .story[data-step="0"] .story-progress i:nth-child(1),
  .js .story[data-step="1"] .story-progress i:nth-child(-n+2),
  .js .story[data-step="2"] .story-progress i { background: #8FB0FF; }
  @media (max-width: 55.99rem) {
    .js .story-stage { align-content: start; padding-top: 5.5rem; }
    .js .story-grid { gap: 1rem; }
    .js .story-visual { width: min(78vw, 22rem); }
    .js .story h2 { font-size: 1.6rem; }
  }
}

.why-note { font-size: .9375rem; color: var(--ink); padding: .75rem 1rem; border-left: 3px solid var(--cobalt); background: var(--cobalt-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.form-reassure { font-size: .8125rem; color: var(--slate); margin: 0; text-align: center; }
.calc-cta { justify-self: start; margin-top: .25rem; }

/* ---------- Final polish ---------- */
.hero-points a { color: inherit; text-decoration: underline; text-decoration-color: rgba(143, 176, 255, .5); text-underline-offset: .22em; }
.hero-points a:hover { color: var(--on-ink); text-decoration-color: #8FB0FF; }
.engines-band { order: 3; position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding-block: 1.5rem 2.5rem; border-top: 1px solid rgba(170, 182, 204, .14); }
.engines-label { margin: 0; font-size: .8125rem; color: var(--on-ink-muted); }
.engines-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.engines-list li { font-size: .875rem; font-weight: 550; color: var(--on-ink); padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(170, 182, 204, .22); background: rgba(19, 32, 58, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (min-width: 64rem) {
  .hero-inner { padding-bottom: 4rem; }
  .engines-band { padding-block: 1.75rem 3rem; }
}

/* Section rhythm: alternate grounds so neighbouring sections never merge */
.calcul { background: var(--paper); border-top: 1px solid var(--mist); }
.demo { background: var(--porcelain); }
.demo-shell { background: var(--paper); }

/* Pointer spotlight on interactive cards (subtle, pointer devices only) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gain, .tier, .preset, .principles li { position: relative; isolation: isolate; }
  .gain::before, .tier::before, .preset::before, .principles li::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
    background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), rgba(46, 91, 255, .10), transparent 60%);
    transition: opacity .3s var(--ease);
  }
  .tier-main::before { background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), rgba(143, 176, 255, .16), transparent 60%); }
  .gain:hover::before, .tier:hover::before, .preset:hover::before, .principles li:hover::before { opacity: 1; }
  .gain { transition: background-color .3s var(--ease); }
}
.lead-form-tally iframe { display: block; width: 100%; min-height: 360px; border: 0; transition: height .35s var(--ease); }
@media (min-width: 56rem) { .cta-grid > :first-child { position: sticky; top: 6.5rem; } }

/* ---------- Scroll reveal (JS adds .rv, then .in when visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .rv {
    opacity: 0;
    transform: translate3d(0, 2.25rem, 0) scale(.985);
    filter: blur(6px);
    transition:
      opacity .9s var(--ease) calc(var(--rv-i, 0) * 90ms),
      transform 1.1s cubic-bezier(.16, 1, .3, 1) calc(var(--rv-i, 0) * 90ms),
      filter .9s var(--ease) calc(var(--rv-i, 0) * 90ms);
  }
  html.js .rv.in { opacity: 1; transform: none; filter: none; }

  /* Reading progress line under the header (browsers with scroll timelines only). */
  @supports (animation-timeline: scroll()) {
    .site-header::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
      background: linear-gradient(90deg, var(--cobalt), #8FB0FF);
      transform-origin: 0 50%; transform: scaleX(0);
      animation: progress linear both; animation-timeline: scroll(root);
    }
    @keyframes progress { to { transform: scaleX(1); } }
  }
}
.audit-reel { margin: 2.5rem 0 0; display: grid; gap: .75rem; }
.audit-reel[hidden] { display: none; } /* stays out of the page until a real capture exists */
.audit-reel img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--mist, #E2E8F0); }
