/* AhAi · één ontwerp. Geen build, geen afhankelijkheden. */

@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --zwart: #0b0b0d;
  --zwart-2: #17171b;
  --papier: #f3f1ea;
  --wit: #fffefb;
  --inkt: #111114;
  --geel: #ffd23f;
  --blauw: #2a37f0;
  --blauw-diep: #1b24b8;

  --kop: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --tekst: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --s-1: 0.875rem;
  --s0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --s1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --s2: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem);
  --s3: clamp(2rem, 1.4rem + 2.8vw, 4rem);
  --s4: clamp(2.4rem, 1.2rem + 5.4vw, 6rem);

  --rand: clamp(1.25rem, 4vw, 3.5rem);
  --rond: 1.25rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--zwart);
  color: var(--inkt);
  font: 400 var(--s0)/1.55 var(--tekst);
  font-size-adjust: from-font;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
[hidden]:not([hidden="until-found"]) { display: none !important; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
button, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--kop); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus, var(--blauw)); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--geel); color: var(--inkt); padding: 0.6rem 1rem; border-radius: 0.5rem; font-weight: 700; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--rand), 78rem); margin-inline: auto; }
.etiket { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; }
.klein { font-size: var(--s-1); opacity: 0.78; }
.aha { color: var(--geel); }

/* ---------- Knoppen ---------- */
.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.5rem; border: 0; border-radius: 99rem;
  font: 700 1rem/1.1 var(--tekst); text-decoration: none; cursor: pointer;
  background: var(--inkt); color: var(--wit);
  transition: translate 0.2s ease, background-color 0.2s ease;
}
.knop:hover { translate: 0 -2px; }
.knop:disabled { opacity: 0.55; cursor: progress; translate: none; }
.knop--geel { background: var(--geel); color: var(--inkt); }
.knop--licht { background: var(--wit); color: var(--inkt); }
.knop--zwart { background: var(--zwart); color: var(--wit); }
.knop--klein { min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: 0.9rem; }
.knop--groot { min-height: 4rem; padding: 1rem 2.25rem; font-size: 1.2rem; }
.pijl { font-weight: 600; text-decoration: underline; }
.pijl::after { content: " →"; }

/* ---------- Kop (zwevende pil) ---------- */
.kop { position: fixed; inset: 0.75rem 0 auto; z-index: 50; pointer-events: none; }
.kop__pil {
  pointer-events: auto;
  width: min(100% - 1.5rem, 62rem); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.4rem 0.4rem 0.4rem 1.25rem; border-radius: 99rem;
  background: rgb(20 20 24 / 0.72); color: var(--wit);
  border: 1px solid rgb(255 255 255 / 0.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  --focus: var(--geel);
}
.merk { font: 800 1.35rem/1 var(--kop); letter-spacing: -0.04em; text-decoration: none; margin-right: auto; }
.merk__a, .merk__uit { color: var(--geel); }
.merk__wissel { display: inline-grid; }
.merk__wissel > * { grid-area: 1 / 1; transition: opacity 0.25s ease, translate 0.25s ease; }
.merk__uit { opacity: 0; translate: 0 0.35em; }
.merk:hover .merk__i, .is-aha .merk__i { opacity: 0; translate: 0 -0.35em; }
.merk:hover .merk__uit, .is-aha .merk__uit { opacity: 1; translate: 0 0; }
.kop__nav ul { display: flex; gap: 0.25rem; }
.kop__nav a { display: block; padding: 0.5rem 0.8rem; border-radius: 99rem; font-size: 0.92rem; font-weight: 500; text-decoration: none; }
.kop__nav a:hover { background: rgb(255 255 255 / 0.12); }
@media (max-width: 47.99rem) { .kop__nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: max(100svh, 40rem);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 6rem var(--rand) clamp(1.25rem, 3vw, 2.5rem);
  background:
    radial-gradient(60% 55% at 50% 42%, rgb(255 210 63 / 0.13), transparent 70%),
    radial-gradient(90% 70% at 50% 110%, rgb(42 55 240 / 0.35), transparent 70%),
    var(--zwart);
  color: var(--wit);
  --focus: var(--geel);
}
.hero__tekst { position: relative; z-index: 3; max-width: 24rem; display: grid; gap: 0.9rem; align-content: start; }
.hero h1 { font-size: var(--s2); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.hero__lead { opacity: 0.72; font-size: 1rem; }

.scene { position: absolute; inset: 0 0 0 24%; z-index: 1; perspective: 1100px; perspective-origin: 50% 38%; pointer-events: none; }
.scene__3d {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(calc(var(--px, 0) * 5deg)) rotateX(calc(var(--py, 0) * -3deg));
  transition: transform 0.4s ease-out;
}
/* De figuur is precies zo groot als de foto. De baan hangt daarin, zodat haar middelpunt
   op elk scherm op dezelfde plek van het gezicht blijft. */
.figuur {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  height: min(82%, 48rem); aspect-ratio: 1122 / 1402; transform-style: preserve-3d;
}
.portret {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  -webkit-mask-image: linear-gradient(#000 72%, transparent 99%); mask-image: linear-gradient(#000 72%, transparent 99%);
}
.baan {
  --r: clamp(9.5rem, 25vw, 20rem);
  /* Het hoofd staat rechts van het midden van de foto: 57% is de as van het gezicht,
     39% de hoogte van de mond. De baan helt genoeg om vooraan onder de kin door te gaan
     en achteraan achter het haar te verdwijnen. */
  position: absolute; left: 57%; top: 39%; width: 0; height: 0;
  transform-style: preserve-3d; transform: rotateX(-25deg) rotateZ(-3deg) rotateY(var(--zwier, 0deg));
}
.baan__ring { position: absolute; transform-style: preserve-3d; }
.sat { position: absolute; transform-style: preserve-3d; transform: translateY(var(--y, 0rem)) rotateY(var(--a)) translateZ(var(--r)); }
.sat__keer { transform-style: preserve-3d; transform: rotateY(calc(-1 * var(--a) - var(--zwier, 0deg))); }
.sat:nth-child(1) { --a: 20deg; --y: -1.25rem; }
.sat:nth-child(2) { --a: 65deg; --y: 1.5rem; }
.sat:nth-child(3) { --a: 110deg; --y: -1.5rem; }
.sat:nth-child(4) { --a: 155deg; --y: 0.75rem; }
.sat:nth-child(5) { --a: 200deg; --y: -1.25rem; }
.sat:nth-child(6) { --a: 245deg; --y: 1.5rem; }
.sat:nth-child(7) { --a: 290deg; --y: -0.5rem; }
.sat:nth-child(8) { --a: 335deg; --y: 2rem; }
.sat__kaart {
  width: max-content; max-width: clamp(9.5rem, 17vw, 14rem); translate: -50% -50%;
  display: grid; gap: 0.3rem; padding: 0.75rem 0.95rem; border-radius: 0.9rem;
  font: 600 clamp(0.82rem, 0.7rem + 0.4vw, 1.02rem)/1.25 var(--tekst);
  background: rgb(34 34 40 / 0.94); color: var(--wit);
  border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow: 0 1.2rem 2.5rem rgb(0 0 0 / 0.45);
}
.sat__kaart span { font: 500 0.62rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; }
.sat__kaart--doe { background: rgb(255 210 63 / 0.94); color: var(--inkt); border-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .baan__ring { animation: draai 38s linear infinite; }
  .sat__kaart { animation: draai-terug 38s linear infinite; }
  /* Elk kaartje deint ook zelf een beetje, elk op zijn eigen tempo. */
  .sat__keer { animation: dein 5s ease-in-out infinite alternate; }
  .sat:nth-child(2n) .sat__keer { animation-duration: 6.5s; animation-delay: -2s; }
  .sat:nth-child(3n) .sat__keer { animation-duration: 7.5s; animation-delay: -4s; }
  .hero.is-pauze :is(.baan__ring, .sat__kaart, .sat__keer) { animation-play-state: paused; }
}
@keyframes draai { to { rotate: y 360deg; } }
@keyframes draai-terug { to { rotate: y -360deg; } }
@keyframes dein { from { translate: 0 -0.4rem; } to { translate: 0 0.4rem; } }

.hero__voet { position: relative; z-index: 3; grid-row: 3; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.hero__woord { font: 700 clamp(5.5rem, 21vw, 19rem)/0.78 var(--kop); letter-spacing: -0.06em; margin-left: -0.04em; }
.hero__acties { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; padding-top: 0.5rem; }
.hero__pauze {
  position: absolute; right: var(--rand); top: 5.5rem; z-index: 4;
  background: none; border: 1px solid rgb(255 255 255 / 0.25); color: inherit; border-radius: 99rem;
  padding: 0.35rem 0.8rem; font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; opacity: 0.7;
}
.hero__pauze:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__pauze { display: none; } }
@media (max-width: 59.99rem) {
  .scene { inset: 0; }
  .baan { --r: clamp(9.5rem, 36vw, 17rem); }
  .figuur { height: min(66%, 40rem); }
}
@media (max-width: 47.99rem) {
  .hero { min-height: max(100svh, 52rem); }
  .figuur { height: 50%; bottom: 9%; }
  .sat:nth-child(n + 7) { display: none; }
  .sat:nth-child(1) { --a: 30deg; } .sat:nth-child(2) { --a: 90deg; } .sat:nth-child(3) { --a: 150deg; }
  .sat:nth-child(4) { --a: 210deg; } .sat:nth-child(5) { --a: 270deg; } .sat:nth-child(6) { --a: 330deg; }
  .hero__pauze { top: auto; bottom: 1.4rem; right: 4.75rem; }
}

/* ---------- Secties ---------- */
/* Een menulink zet de sectie zo dat haar titel net onder de menubalk begint: de eigen
   witruimte van de sectie schuift dus achter de balk, in plaats van er nog eens bij te komen. */
.sec { --lucht: clamp(4.5rem, 11vw, 9rem); padding-block: var(--lucht); position: relative; margin-top: -1px; scroll-margin-top: min(-5.5rem, 1.5rem - var(--lucht)); }
.sec--papier { background: var(--papier); }
.sec--papier :is(p, dd) > a:not(.knop) { color: var(--blauw-diep); font-weight: 700; }
.sec--lijn { padding-top: 0; scroll-margin-top: 1.5rem; }
.sec--zwart { background: var(--zwart); color: var(--wit); --focus: var(--geel); }
.sec--geel { background: var(--geel); }
.sec--blauw { background: var(--blauw); color: var(--wit); --focus: var(--geel); }
.sec__kop { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 4rem); max-width: 48rem; }
.sec h2 { font-size: var(--s3); }
.sec h2.groot { font-size: var(--s4); max-width: 18ch; margin-block: 1rem 2rem; }
.sec__lead { font-size: var(--s1); line-height: 1.4; max-width: 40rem; opacity: 0.82; }

/* Woorden lichten op tijdens het scrollen (decoratief). */
.woord { display: inline; }
@supports ((animation-timeline: view()) and (animation-range: 0% 100%)) {
  @media (prefers-reduced-motion: no-preference) {
    [data-woorden] { view-timeline: --zin block; }
    .woord {
      animation: licht-op linear both;
      animation-timeline: --zin;
      animation-range: cover calc(12% + var(--p, 0) * 30%) cover calc(18% + var(--p, 0) * 30%);
    }
    :is(.op, .sec__kop, .klikt__groep, .verhaal, .feiten > div, .contact__rij, .chat, .over__tekst) {
      animation: kom-op linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    :is(.chat, .verhaal) { animation-range: entry 0% entry 35%; }

    /* De achtergrond vloeit over: terwijl een sectie binnenschuift, kleurt het hele
       scherm van de kleur van de vorige naar de hare. De vorige sectie kleurt precies
       gelijk mee (ze volgt de tijdlijn van haar buur), dus er is nooit een harde rand.
       Gaat het van donker naar licht of omgekeerd, dan wisselt ook de tekstkleur,
       rond het punt waar beide kleuren nog leesbaar zijn. */
    body { timeline-scope: --s1, --s2, --s3, --s4, --s5, --s6, --s7, --s8, --s9, --s10; }
    main > * {
      animation: uit-vorige linear both, naar-volgende linear forwards;
      animation-range: entry 0% entry 100%, entry 0% entry 100%;
    }
    main > :nth-child(1) { view-timeline: --s1 block; animation-timeline: view(), --s2; }
    main > :nth-child(2) { view-timeline: --s2 block; animation-timeline: view(), --s3; }
    main > :nth-child(3) { view-timeline: --s3 block; animation-timeline: view(), --s4; }
    main > :nth-child(4) { view-timeline: --s4 block; animation-timeline: view(), --s5; }
    main > :nth-child(5) { view-timeline: --s5 block; animation-timeline: view(), --s6; }
    main > :nth-child(6) { view-timeline: --s6 block; animation-timeline: view(), --s7; }
    main > :nth-child(7) { view-timeline: --s7 block; animation-timeline: view(), --s8; }
    main > :nth-child(8) { view-timeline: --s8 block; animation-timeline: view(), --s9; }
    main > :nth-child(9) { view-timeline: --s9 block; animation-timeline: view(), --s10; }
    .voet { view-timeline: --s10 block; animation: uit-vorige linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }

    /* De hero zakt weg en vervaagt terwijl je verder scrolt. */
    .scene { animation: hero-uit linear both; animation-timeline: --s1; animation-range: exit 0% exit 100%; }
    .hero__woord { animation: woord-uit linear both; animation-timeline: --s1; animation-range: exit 0% exit 100%; }

    /* De grote bot rolt binnen bij de assistent. */
    .match__intro .bot--groot:not([data-stemming="aha"]) { animation: rol-in linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  }
}
@supports ((animation-timeline: view()) and (animation-range: 0% 100%)) {
  @media (prefers-reduced-motion: no-preference) {
  }
}
@keyframes licht-op { from { opacity: 0.16; } to { opacity: 1; } }
@keyframes kom-op { from { opacity: 0; translate: 0 2.5rem; } to { opacity: 1; translate: 0 0; } }
@keyframes uit-vorige {
  0% { background-color: var(--vorige); color: var(--vorige-inkt); }
  36% { color: var(--vorige-inkt); }
  44%, 100% { color: var(--eigen-inkt); }
}
@keyframes naar-volgende {
  0%, 36% { color: var(--eigen-inkt); }
  44% { color: var(--volgende-inkt); }
  100% { color: var(--volgende-inkt); background-color: var(--volgende); }
}
:is(.hero, .sec--zwart, .sec--blauw, .voet) { --eigen-inkt: var(--wit); }
:is(.sec--papier, .sec--geel) { --eigen-inkt: var(--inkt); }
:is(.hero, .sec--zwart) + .sec { --vorige: var(--zwart); --vorige-inkt: var(--wit); }
.sec--blauw + .sec { --vorige: var(--blauw); --vorige-inkt: var(--wit); }
.sec--papier + .sec { --vorige: var(--papier); --vorige-inkt: var(--inkt); }
.sec--geel + .sec { --vorige: var(--geel); --vorige-inkt: var(--inkt); }
:is(.hero, .sec):has(+ .sec--zwart) { --volgende: var(--zwart); --volgende-inkt: var(--wit); }
:is(.hero, .sec):has(+ .sec--blauw) { --volgende: var(--blauw); --volgende-inkt: var(--wit); }
:is(.hero, .sec):has(+ .sec--papier) { --volgende: var(--papier); --volgende-inkt: var(--inkt); }
:is(.hero, .sec):has(+ .sec--geel) { --volgende: var(--geel); --volgende-inkt: var(--inkt); }
.voet { --vorige: var(--geel); --vorige-inkt: var(--inkt); }
main > .sec:last-child { --volgende: var(--zwart); --volgende-inkt: var(--wit); }
@keyframes hero-uit { to { translate: 0 16%; scale: 0.9; opacity: 0.3; } }
@keyframes woord-uit { to { translate: -8% 0; } }
@keyframes rol-in { from { translate: -140% 0; rotate: -220deg; } }

/* ---------- Pictogrammen ---------- */
.ico { inline-size: 2.5rem; block-size: 2.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ico__stip { fill: var(--stip, var(--blauw)); stroke: none; }
.ico__vlak { fill: var(--stip, var(--blauw)); stroke: var(--stip, var(--blauw)); }
.ico--groot { inline-size: clamp(3.5rem, 6vw, 5rem); block-size: clamp(3.5rem, 6vw, 5rem); }
.sec--zwart, .sec--blauw, .dienst:nth-child(n + 2), .dia { --stip: var(--geel); }
.sec--geel, .dia--geel { --stip: var(--inkt); }

/* ---------- Het zitje: de lege plek waar de gids landt ---------- */
/* Op brede schermen houdt elke sectie rechtsboven een hoek vrij. De koppen worden
   daar smaller gehouden, zodat de gids en zijn tekstballon nooit over tekst staan. */
.zitje { display: none; }
@media (min-width: 75rem) {
  .wrap:has(> .zitje) { position: relative; }
  .zitje { display: block; position: absolute; inset-block-start: -0.75rem; inset-inline-end: 0; inline-size: 23rem; block-size: 8rem; pointer-events: none; }
  .wrap:has(> .zitje) > .etiket { max-inline-size: calc(100% - 25rem); }
  .wrap:has(> .zitje) > .sec__kop { max-inline-size: min(48rem, 100% - 25rem); }
  .wrap:has(> .zitje) > h2.groot { max-inline-size: min(18ch, 100% - 25rem); }
  .wrap:has(> .zitje) > h2.reuze { max-inline-size: min(14ch, 100% - 25rem); }
}

/* ---------- Waarmee ik help ---------- */
.tussenkop { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; margin-top: clamp(3rem, 7vw, 6rem); }
.voorwie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; border-top: 2px solid var(--inkt); }
.voorwie li { display: grid; gap: 0.5rem; align-content: start; padding: 1.5rem 1.5rem 0 0; }
.voorwie .ico { margin-bottom: 0.5rem; }
.voorwie strong { font: 700 var(--s1)/1.1 var(--kop); letter-spacing: -0.02em; }
.voorwie span { opacity: 0.78; }
@media (max-width: 47.99rem) { .voorwie { grid-template-columns: 1fr; border-top: 0; } .voorwie li { padding: 1rem 0; border-top: 2px solid var(--inkt); } }

/* ---------- De drie diensten ---------- */
.uitroep { display: grid; }
.uitroep li { display: grid; grid-template-columns: 2.5rem 1fr; align-items: baseline; padding-block: 1.1rem; border-top: 2px solid var(--inkt); font: 600 var(--s2)/1.12 var(--kop); letter-spacing: -0.025em; }
.uitroep li::before { content: "!"; font-weight: 800; }
/* Drie kaarten die tijdens het scrollen over elkaar schuiven. Elke kaart blijft
   bovenaan plakken, een eindje lager dan de vorige, zodat de koppen zichtbaar blijven. */
.stapel { display: grid; gap: 1.25rem; }
.dienst {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 1.75rem; border: 2px solid var(--inkt);
  background: var(--wit); color: var(--inkt); scroll-margin-top: 1rem;
  box-shadow: 0 -1rem 2.5rem rgb(0 0 0 / 0.1);
}
.dienst:nth-child(2) { background: var(--inkt); color: var(--wit); --focus: var(--geel); --tik: var(--geel); }
.dienst:nth-child(3) { background: var(--blauw); color: var(--wit); border-color: var(--blauw); --focus: var(--geel); --tik: var(--geel); }
.dienst__kop { display: grid; gap: 0.75rem; align-content: start; justify-items: start; }
.dienst__kop .knop { margin-top: 0.5rem; }
.dienst__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; inline-size: 100%; }
.dienst__nr { font: 700 var(--s3)/0.8 var(--kop); letter-spacing: -0.05em; opacity: 0.25; }
.dienst h3 { font-size: var(--s3); }
.dienst__slag { font: 600 var(--s1)/1.2 var(--kop); letter-spacing: -0.02em; }
.dienst__tekst { display: grid; gap: 1rem; justify-items: start; align-content: start; }
.dienst__tekst > * { max-width: 42rem; }
.dienst .sec__lead { font-size: var(--s1); opacity: 1; font-weight: 600; }
.dienst .uitroep { width: 100%; }
.dienst .uitroep li { font: 500 0.98rem/1.4 var(--tekst); letter-spacing: 0; grid-template-columns: 1.5rem 1fr; padding-block: 0.6rem; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.dienst .uitroep li::before { font: 800 1.05rem var(--kop); color: var(--tik, var(--blauw)); }
.dienst__lang { font-size: 0.95rem; }
/* De stroom: de stappen als blokjes met pijlen ertussen. */
.stroom { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; inline-size: 100%; margin-bottom: 0.5rem; }
.stroom li { position: relative; flex: 1 1 8rem; display: grid; gap: 0.5rem; align-content: space-between; justify-items: start; min-block-size: 5.5rem; padding: 0.85rem 0.9rem; border-radius: 0.9rem; border: 2px solid currentColor; font: 700 1.02rem/1.2 var(--kop); letter-spacing: -0.01em; }
.stroom li:not(:last-child)::after { content: "→"; position: absolute; inset-inline-start: calc(100% + 0.3rem); inset-block-start: 50%; translate: 0 -50%; font-weight: 500; }
@media (max-width: 47.99rem) {
  /* Smal scherm: de stappen onder elkaar, met de pijl naar beneden. */
  .stroom { flex-direction: column; gap: 1.5rem; }
  .stroom li { flex: none; min-block-size: 0; grid-template-columns: 1fr auto; align-items: center; }
  .stroom li:not(:last-child)::after { content: "↓"; inset-inline-start: 1rem; inset-block-start: calc(100% + 0.1rem); translate: none; }
}
.stroom .wie { border-color: currentColor; }
.stroom .wie--ai { border-color: var(--geel); }
.dienst:nth-child(1) .stroom .wie--ai { background: var(--blauw); border-color: var(--blauw); color: var(--wit); }
.meer .uitroep { margin-top: 0.5rem; }
.dienst__lang .etiket, .meer .etiket { display: block; margin-bottom: 0.2rem; }
.meer { width: 100%; }
.meer summary { cursor: pointer; font-weight: 700; text-decoration: underline; width: fit-content; list-style: none; }
.meer summary::-webkit-details-marker { display: none; }
.meer summary::after { content: " +"; }
.meer[open] summary::after { content: " –"; }
.meer p { margin-top: 0.75rem; font-size: 0.95rem; }
.dienst:nth-child(n + 2) .knop { background: var(--geel); color: var(--inkt); }
.sec--papier .dienst:nth-child(n + 2) :is(p, dd) > a:not(.knop) { color: var(--geel); }
.stapel__na { margin-top: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 60rem) and (min-height: 40rem) {
  .dienst { position: sticky; top: calc(5.25rem + var(--trap, 0rem)); min-height: min(28rem, 100svh - 9rem); }
  .dienst:nth-child(2) { --trap: 1.25rem; }
  .dienst:nth-child(3) { --trap: 2.5rem; }
  /* Een open "Lees meer" kan de kaart hoger maken dan het scherm: dan niet meer plakken. */
  .dienst:has(.meer[open]) { position: relative; top: auto; }
}
@media (max-width: 59.99rem) { .dienst { grid-template-columns: 1fr; } }

/* ---------- Waar het vaak klikt ---------- */
.klikt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.klikt__groep { display: grid; gap: 1rem; align-content: start; }
.klikt__kop { display: flex; align-items: center; gap: 0.75rem; font: 700 var(--s1)/1.1 var(--kop); letter-spacing: -0.02em; }
.klikt ul { display: grid; border-top: 2px solid var(--inkt); }
.klikt a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 2px solid var(--inkt); font: 700 var(--s1)/1.15 var(--kop); letter-spacing: -0.02em; text-decoration: none; transition: padding 0.2s ease; }
.klikt a::after { content: "→"; }
.klikt a:hover { padding-left: 0.6rem; text-decoration: underline; }
@media (max-width: 59.99rem) { .klikt { grid-template-columns: 1fr; } }

/* ---------- Praktijk: verhalen waar je doorheen bladert ---------- */
.verhalen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.verhaal { color: var(--wit); display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.1rem; padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: 1.75rem; background: var(--zwart-2); border: 1px solid rgb(255 255 255 / 0.12); min-width: 0; }
.verhaal__kop { display: grid; gap: 0.5rem; }
.verhaal h3 { font-size: var(--s2); }
.verhaal__kop p:last-child { opacity: 0.7; }
/* De stappen bovenaan: streepjes zoals bij stories, met de naam eronder. */
.verhaal__stappen { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.4rem; }
.verhaal__stappen button { display: grid; gap: 0.45rem; padding: 0.4rem 0 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; font: 500 0.66rem/1.25 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.55; touch-action: manipulation; }
.verhaal__stappen button::before { content: ""; block-size: 0.3rem; border-radius: 99rem; background: rgb(255 255 255 / 0.25); }
.verhaal__stappen button[aria-current="true"] { opacity: 1; }
.verhaal__stappen button[aria-current="true"]::before { background: var(--geel); }
.verhaal__baan { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; position: relative; scrollbar-width: none; touch-action: pan-x pan-y; border-radius: 1.1rem; grid-row: 3; }
.verhaal__baan::-webkit-scrollbar { display: none; }
.dia { flex: 0 0 100%; scroll-snap-align: center; display: grid; gap: 0.9rem; align-content: center; min-height: 15rem; padding: 1.5rem; border-radius: 1.1rem; background: var(--zwart); border: 1px solid rgb(255 255 255 / 0.1); }
.dia__kop { display: flex; align-items: center; gap: 0.6rem; opacity: 1; }
.dia__kop .ico { inline-size: 2rem; block-size: 2rem; }
.dia__tekst { font: 600 var(--s1)/1.25 var(--kop); letter-spacing: -0.02em; }
.dia--geel { background: var(--geel); color: var(--inkt); border-color: var(--geel); }
.dia__cijfer { font: 700 var(--s3)/0.95 var(--kop); letter-spacing: -0.04em; }
.dia blockquote { margin: 0; display: grid; gap: 0.75rem; font: 600 var(--s1)/1.25 var(--kop); letter-spacing: -0.02em; }
.dia blockquote footer { font: 500 0.72rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.65; }
.verhaal__knoppen { display: none; grid-row: 4; gap: 0.5rem; }
.heeft-js .verhaal__knoppen { display: flex; }
.verhaal__knoppen button { flex: 1; min-height: 2.75rem; border-radius: 99rem; border: 1px solid rgb(255 255 255 / 0.3); background: none; color: inherit; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.verhaal__knoppen button:last-child { background: var(--wit); color: var(--inkt); border-color: var(--wit); }
.verhaal__knoppen button:disabled { opacity: 0.35; cursor: default; }
.geval__lopend { padding-block: 1.5rem; border-block: 1px solid rgb(255 255 255 / 0.25); margin-bottom: 2.5rem; }
@media (max-width: 59.99rem) { .verhalen { grid-template-columns: 1fr; } }

/* ---------- De vragenmuur ---------- */
/* Een handvol vragen tegelijk, elk in een eigen vak, die komen en gaan. Tik er een
   aan voor het antwoord. Zonder script of bij "minder beweging" staat hier de lijst. */
.muur { display: grid; gap: 1.5rem; justify-items: start; }
.muur__voorjou { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; background: var(--geel); padding: 0.4rem 0.75rem; border-radius: 99rem; }
.muur__veld { inline-size: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 9.5rem; gap: 1.25rem 2rem; }
.muur__vak { display: grid; place-items: center start; min-inline-size: 0; }
.muur__vak[data-plek="b"] { place-items: start end; }
.muur__vak[data-plek="c"] { place-items: end center; }
.muur__vak[data-plek="d"] { place-items: start start; }
.muur__vraag {
  display: grid; gap: 0.35rem; max-inline-size: 100%; text-align: start; border: 0; background: none; color: inherit; cursor: pointer;
  padding: 0.5rem 0.7rem; border-radius: 0.9rem; font: 700 var(--s1)/1.15 var(--kop); letter-spacing: -0.02em;
  opacity: 0; translate: 0 0.7rem; transition: opacity 0.8s ease, translate 0.8s ease, background-color 0.2s ease;
}
.muur__vraag.is-in { opacity: 1; translate: 0 0; }
.muur__vraag[data-maat="l"] { font-size: var(--s2); line-height: 1.05; }
.muur__vraag[data-maat="s"] { font-size: 1.05rem; }
.muur__vraag[data-maat="s"].is-in { opacity: 0.7; }
.muur__vraag:is(:hover, :focus-visible, .is-open) { background: var(--wit); color: var(--inkt); opacity: 1; }
.muur__vraag small { font: 500 0.7rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; }
.muur__vraag.is-voorjou, .muur__vraag.is-voorjou:hover { background: var(--geel); color: var(--inkt); rotate: -1.2deg; opacity: 1; }
.muur__antwoord { display: grid; gap: 0.7rem; justify-items: start; max-inline-size: 46rem; padding: 1.5rem; border-radius: var(--rond); background: var(--inkt); color: var(--wit); --focus: var(--geel); }
.muur__gevraagd { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.muur__tekst { font: 600 var(--s1)/1.3 var(--kop); letter-spacing: -0.02em; }
.sec--papier .muur__antwoord a { color: var(--geel); }
.muur__link::after { content: " →"; }
.muur__sluit, .muur__alles { border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0.4rem 0; }
@media (max-width: 59.99rem) { .muur__veld { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 37.49rem) { .muur__veld { grid-template-columns: 1fr; grid-auto-rows: 6.75rem; } .muur__vraag[data-maat="l"] { font-size: var(--s1); } }

/* ---------- Vragen ---------- */
.faq { border-top: 2px solid var(--inkt); max-width: 56rem; }
.faq details { border-bottom: 2px solid var(--inkt); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; align-items: baseline; padding: 1.1rem 0; font: 700 var(--s1)/1.2 var(--kop); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; grid-row: 1; grid-column: 2; }
.faq details[open] summary::after { content: "–"; }
.faq summary .etiket { grid-column: 1; font-weight: 500; }
.faq details p { padding: 0 2rem 1.4rem 0; max-width: 44rem; font-size: var(--s1); line-height: 1.4; }
.faq details a { display: inline-block; margin-top: 0.6rem; font-size: var(--s0); }
.faq details a::after { content: " →"; }

/* ---------- De bot ---------- */
.bot {
  --bot: 3.5rem;
  inline-size: var(--bot); aspect-ratio: 1; flex: none;
  display: inline-grid; grid-auto-flow: column; place-content: center; gap: calc(var(--bot) * 0.16);
  background: var(--geel); border-radius: 34%;
  box-shadow: inset 0 calc(var(--bot) * -0.07) 0 rgb(0 0 0 / 0.14);
}
.bot--groot { --bot: clamp(6rem, 14vw, 10rem); }
.bot__oog {
  inline-size: calc(var(--bot) * 0.12); block-size: calc(var(--bot) * 0.32); border-radius: 99rem; background: var(--inkt);
  translate: calc(var(--kx, 0) * var(--bot) * 0.07) calc(var(--ky, 0) * var(--bot) * 0.06);
  transition: translate 0.15s ease-out, block-size 0.2s ease;
  position: relative;
}
/* AhA!: de ogen worden uitroeptekens. */
.bot[data-stemming="aha"] .bot__oog { block-size: calc(var(--bot) * 0.24); translate: 0 calc(var(--bot) * -0.07); }
.bot[data-stemming="aha"] .bot__oog::after { content: ""; position: absolute; left: 0; top: calc(100% + var(--bot) * 0.05); inline-size: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--inkt); }
.bot[data-stemming="denkt"] .bot__oog { block-size: calc(var(--bot) * 0.12); }
@media (prefers-reduced-motion: no-preference) {
  .bot[data-stemming="rust"] .bot__oog { animation: knipper 5.5s infinite; }
  .bot[data-stemming="denkt"] .bot__oog { animation: wip 0.7s ease-in-out infinite alternate; }
  .bot[data-stemming="denkt"] .bot__oog + .bot__oog { animation-delay: 0.35s; }
  .bot[data-stemming="aha"] { animation: sprong 0.5s ease-out; }
}
@keyframes knipper { 0%, 94%, 100% { scale: 1 1; } 97% { scale: 1 0.1; } }
@keyframes wip { to { translate: 0 calc(var(--bot) * -0.12); } }
@keyframes sprong { 40% { translate: 0 -12%; rotate: -6deg; } }

/* ---------- Match + chat ---------- */
.match { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.match__intro { display: grid; gap: 1.1rem; justify-items: start; position: sticky; top: 6rem; }
.match__intro h2 { font-size: var(--s4); }
@media (max-width: 59.99rem) { .match { grid-template-columns: 1fr; } .match__intro { position: static; } }

.chat { color: var(--wit); display: grid; gap: 1rem; padding: clamp(1rem, 2.5vw, 1.75rem); border-radius: 1.75rem; background: var(--zwart); border: 1px solid rgb(255 255 255 / 0.14); box-shadow: 0 2rem 4rem rgb(0 0 40 / 0.35); }
.chat__log { display: grid; gap: 1rem; align-content: start; min-height: 9rem; max-height: min(70svh, 44rem); overflow-y: auto; overscroll-behavior: contain; padding: 0.25rem; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.3) transparent; }
.bericht { max-width: 100%; display: grid; gap: 0.9rem; }
.bericht--mens { justify-self: end; max-width: 85%; background: var(--blauw); padding: 0.75rem 1rem; border-radius: 1.1rem 1.1rem 0.3rem 1.1rem; }
.bericht--bot { justify-self: start; width: 100%; background: var(--zwart-2); padding: 1.1rem 1.25rem; border-radius: 1.1rem 1.1rem 1.1rem 0.3rem; border: 1px solid rgb(255 255 255 / 0.1); }
.bericht--wacht { width: auto; font: 500 0.9rem var(--mono); opacity: 0.8; }
/* De warptunnel: een canvas achter de inhoud van de blauwe sectie. */
.warp { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; opacity: 0; transition: opacity 0.5s ease; }
.warp.is-aan { opacity: 1; }
.match { position: relative; z-index: 1; }
.bericht h3 { font: 500 0.7rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; }
.bericht__blok { display: grid; gap: 0.6rem; padding-top: 0.9rem; border-top: 1px solid rgb(255 255 255 / 0.12); }
.bericht a { color: var(--geel); }
.bericht .knop { justify-self: start; text-decoration: none; color: var(--inkt); }

.score { font: 700 var(--s2)/1 var(--kop); letter-spacing: -0.03em; }
.score b { color: var(--geel); }
.score--nee b { color: inherit; }
.factoren { display: grid; gap: 0.75rem; }
.factor { display: grid; gap: 0.3rem; }
.factor__naam { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: 0.95rem; }
.factor__naam span { font: 500 0.7rem var(--mono); opacity: 0.65; text-transform: uppercase; white-space: nowrap; }
.factor__baan { block-size: 0.5rem; border-radius: 99rem; background: rgb(255 255 255 / 0.14); overflow: clip; }
.factor__vul { display: block; block-size: 100%; inline-size: var(--w, 4%); background: var(--geel); border-radius: inherit; }
.factor__reden { font-size: 0.9rem; opacity: 0.78; }
@media (prefers-reduced-motion: no-preference) { .factor__vul { animation: groei 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; } }
@keyframes groei { from { inline-size: 0; } }

.stappen { display: grid; gap: 0.4rem; counter-reset: s; }
.stappen li { counter-increment: s; display: grid; grid-template-columns: 1.5rem 1fr auto; gap: 0.5rem; align-items: center; padding: 0.55rem 0.8rem; border-radius: 0.7rem; background: rgb(255 255 255 / 0.06); font-size: 0.95rem; }
.stappen li::before { content: counter(s); font: 500 0.75rem var(--mono); opacity: 0.6; }
.wie { font: 700 0.68rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.55rem; border-radius: 99rem; border: 1px solid rgb(255 255 255 / 0.4); white-space: nowrap; }
.wie--ai { background: var(--geel); color: var(--inkt); border-color: var(--geel); }
.wie--ai s { opacity: 0.55; font-weight: 500; margin-right: 0.4em; }
.punten { display: grid; gap: 0.45rem; }
.punten li { display: grid; grid-template-columns: 1.25rem 1fr; }
.punten li::before { content: "!"; font: 800 1rem var(--kop); color: var(--geel); }
.chat__print { border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0.3rem 0; justify-self: start; }
.bron { font: 500 0.68rem var(--mono); letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.55; }

.chat__tips { display: grid; gap: 0.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { text-align: left; background: rgb(255 255 255 / 0.07); color: var(--wit); border: 1px solid rgb(255 255 255 / 0.2); border-radius: 1rem; padding: 0.5rem 0.85rem; font-size: 0.9rem; line-height: 1.3; cursor: pointer; transition: background-color 0.2s ease; }
.chip:hover { background: rgb(255 255 255 / 0.16); }
.chat__vorm { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; align-items: end; }
.chat__vorm textarea { width: 100%; resize: none; field-sizing: content; min-height: 3rem; max-height: 9rem; padding: 0.75rem 1rem; border-radius: 1rem; border: 1px solid rgb(255 255 255 / 0.25); background: var(--zwart-2); color: var(--wit); line-height: 1.4; }
.chat__vorm textarea::placeholder { color: rgb(255 255 255 / 0.5); }
@media (max-width: 29.99rem) { .chat__vorm { grid-template-columns: 1fr; } }

/* ---------- Over ---------- */
.over { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 6rem); margin-top: 3rem; align-items: start; }
.over__foto { margin: 0; }
.over__foto img { inline-size: 100%; block-size: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1.75rem; rotate: -1.5deg; box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.18); }
.over__rechts { display: grid; gap: 2.5rem; }
.over__tekst { display: grid; gap: 1.1rem; align-content: start; }
.over__lead { font: 600 var(--s2)/1.1 var(--kop); letter-spacing: -0.03em; }
.feiten > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding-block: 1.1rem; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.feiten dt { font: 500 0.75rem/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; }
.feiten ul { display: grid; gap: 0.5rem; }
.tag { display: inline-block; font: 700 0.65rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 99rem; padding: 0.15rem 0.5rem; margin-right: 0.3rem; vertical-align: 0.1em; }
@media (max-width: 59.99rem) { .over { grid-template-columns: 1fr; } .over__foto { max-inline-size: 22rem; } .feiten > div { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------- Contact + voet ---------- */
.sec h2.reuze { font-size: var(--s4); max-width: 14ch; margin-block: 1rem 3rem; }
.contact__rij { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__acties { display: grid; gap: 1rem; justify-items: start; }
@media (max-width: 59.99rem) { .contact__rij { grid-template-columns: 1fr; } }

/* Het formulier werkt via een script; zonder script blijft de mail hierboven. */
.formulier { display: none; }
.heeft-js .formulier { display: grid; gap: 1.1rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.75rem; background: var(--wit); color: var(--inkt); border: 2px solid var(--inkt); }
.veld { display: grid; gap: 0.35rem; }
.veld label { font-weight: 700; }
.veld :is(input, textarea) {
  inline-size: 100%; font: inherit; font-size: max(1rem, 1em); line-height: 1.4; min-block-size: 3rem;
  padding: 0.7rem 0.9rem; border-radius: 0.8rem; border: 2px solid var(--inkt); background: var(--papier); color: var(--inkt);
}
.veld textarea { resize: vertical; }
.veld :is(input, textarea):user-invalid, .veld [aria-invalid="true"] { border-style: dashed; background: #fff; box-shadow: inset 0 -0.3rem 0 var(--geel); }
.formulier__val { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.formulier .knop { justify-self: start; }
.formulier__status { display: flex; align-items: baseline; gap: 0.6rem; font-weight: 700; }
.formulier__status .teken { font: 700 var(--s2)/1 var(--kop); letter-spacing: -0.05em; }
.formulier__status .teken__punt { fill: var(--blauw); }
.formulier a, .pagina a { color: var(--blauw-diep); font-weight: 700; }

/* ---------- Privacypagina ---------- */
.pagina { background: var(--papier); padding-block: 6.5rem 5rem; min-block-size: 100svh; }
.pagina article { display: grid; gap: 1.1rem; max-inline-size: 44rem; }
.pagina h1 { font-size: var(--s4); margin-bottom: 1rem; }
.pagina h2 { font-size: var(--s2); margin-top: 1.75rem; }
.pagina ul { list-style: disc; padding-inline-start: 1.25rem; display: grid; gap: 0.6rem; }

.voet { background: var(--zwart); color: var(--wit); padding-block: 3rem 6.5rem; overflow: clip; --focus: var(--geel); }
.voet__woord { font: 700 clamp(6rem, 26vw, 24rem)/0.8 var(--kop); letter-spacing: -0.06em; margin: 0 0 2rem -0.04em; }
.voet p:last-child { font-size: var(--s-1); opacity: 0.75; }

/* ---------- De gids ---------- */
/* Loopt naar wat hij uitlegt (.is-praat, met --gx/--gy uit het script) en gaat
   daarna klein in de hoek zitten. Zonder script staat hij gewoon rechtsonder. */
.gids { position: fixed; right: clamp(0.75rem, 2vw, 1.5rem); bottom: clamp(0.75rem, 2vw, 1.5rem); z-index: 40; --focus: var(--geel); transition: opacity 0.3s ease, visibility 0.3s; }
.gids.is-los { right: auto; bottom: auto; left: 0; top: 0; translate: var(--gx, 0) var(--gy, 0); }
@media (prefers-reduced-motion: no-preference) {
  .gids.is-los { transition: translate 0.75s cubic-bezier(0.3, 1.25, 0.5, 1), opacity 0.3s ease, visibility 0.3s; }
  .gids.is-los.is-volgt { transition: opacity 0.3s ease, visibility 0.3s; }
}
.gids__bot { display: block; border-radius: 34%; transition: scale 0.45s cubic-bezier(0.3, 1.5, 0.5, 1); }
.gids .bot { --bot: 3.25rem; position: relative; display: grid; box-shadow: inset 0 calc(var(--bot) * -0.07) 0 rgb(0 0 0 / 0.14), 0 0.5rem 1.5rem rgb(0 0 0 / 0.35); }
.gids__bot:hover { scale: 1.1; }
.gids.is-praat .gids__bot { scale: 1.45; }
.gids__bel {
  position: absolute; right: calc(100% + 1.1rem); bottom: 35%; width: max-content; max-width: min(17rem, 100vw - 7rem);
  display: grid; gap: 0.55rem; justify-items: start;
  padding: 0.7rem 0.95rem; border-radius: 1rem 1rem 0.25rem 1rem;
  background: var(--wit); color: var(--inkt); font-size: 0.9rem; font-weight: 600; line-height: 1.3;
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.3); border: 2px solid var(--inkt);
  opacity: 0; visibility: hidden; scale: 0.9; transform-origin: 100% 100%;
  transition: opacity 0.25s ease, scale 0.25s ease, visibility 0.25s;
}
/* Onderweg staat de tekstballon rechts van de gids, zodat hij de kop niet bedekt. */
.gids.is-rechts .gids__bel { right: auto; left: calc(100% + 1.4rem); bottom: auto; top: -0.4rem; max-width: 16.5rem; border-radius: 0.25rem 1rem 1rem 1rem; transform-origin: 0 0; }
.gids.is-praat .gids__bel, .gids:has(.gids__bot:is(:hover, :focus-visible)) .gids__bel { opacity: 1; visibility: visible; scale: 1; }
.gids.is-praat .gids__bel { transition-delay: 0.35s; }
.gids__actie { border: 0; border-radius: 99rem; background: var(--inkt); color: var(--wit); padding: 0.4rem 0.85rem; font: 700 0.82rem/1.2 var(--tekst); cursor: pointer; --focus: var(--blauw); }
.gids__actie::after { content: " →"; }
.bot[data-stemming="praat"]::after { content: ""; position: absolute; left: 50%; bottom: 17%; inline-size: 22%; block-size: 9%; translate: -50% 0; background: var(--inkt); border-radius: 0 0 99rem 99rem; }
.bot[data-stemming="praat"] .bot__oog { block-size: calc(var(--bot) * 0.26); translate: calc(var(--kx, 0) * var(--bot) * 0.07) calc(var(--bot) * -0.06); }
@media (prefers-reduced-motion: no-preference) {
  .gids.is-praat .bot { animation: huppel 0.75s cubic-bezier(0.3, 1.4, 0.5, 1); }
  .bot[data-stemming="praat"]::after { animation: praat 0.26s ease-in-out 12 alternate; transform-origin: 50% 0; }
}
@keyframes huppel { 0% { translate: 0 0; rotate: 0deg; } 30% { translate: 0 -45%; rotate: -10deg; } 60% { translate: 0 0; rotate: 4deg; } 80% { translate: 0 -12%; } 100% { translate: 0 0; rotate: 0deg; } }
@keyframes praat { to { scale: 1 2.2; } }
/* Bij het landen geeft de gids de kop een duwtje. */
@media (prefers-reduced-motion: no-preference) {
  .is-geduwd { animation: duw 0.8s cubic-bezier(0.3, 1.3, 0.5, 1); transform-origin: 100% 60%; }
}
@keyframes duw { 22% { translate: -1.4rem 0; rotate: -1.2deg; } 50% { translate: 0.45rem 0; rotate: 0.5deg; } 75% { translate: -0.2rem 0; } }
.gids.is-weg { opacity: 0; visibility: hidden; }
@media (max-width: 47.99rem) { .gids .bot { --bot: 2.75rem; } }

/* ---------- Het teken: de i van AhAi wordt een ! ---------- */
.teken { white-space: nowrap; }
.teken__i { display: inline-block; inline-size: 0.3em; block-size: 0.766em; vertical-align: -0.016em; overflow: visible; margin-inline-start: 0.02em; }
.teken__stam { fill: currentColor; }
.teken__punt { fill: var(--geel); }

/* ---------- De intro: AhAi alleen, de i springt naar !, de punt opent de pagina ---------- */
@property --gat { syntax: "<length>"; inherits: false; initial-value: 0px; }
.intro {
  display: none; position: fixed; inset: 0; z-index: 100; place-items: center;
  background: var(--zwart); color: var(--wit); --gat: 0px;
  -webkit-mask-image: radial-gradient(circle at var(--ix, 50%) var(--iy, 50%), transparent var(--gat), #000 calc(var(--gat) + 1px));
  mask-image: radial-gradient(circle at var(--ix, 50%) var(--iy, 50%), transparent var(--gat), #000 calc(var(--gat) + 1px));
  transition: --gat 1s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.3s ease 0.8s;
}
.is-intro .intro { display: grid; }
.intro .teken { font: 700 clamp(5rem, 18vw, 13rem)/1 var(--kop); letter-spacing: -0.06em; opacity: 0; translate: 0 0.08em; transition: opacity 0.35s ease, translate 0.35s ease; }
.intro.is-zicht .teken { opacity: 1; translate: 0 0; }
.intro.is-open { --gat: 150vmax; opacity: 0; pointer-events: none; }
.knal { position: fixed; inset: 0; z-index: 90; pointer-events: none; }

/* Het teken in het antwoord van de assistent. */
.score-rij { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; }
.score-rij .teken { font: 700 var(--s3)/0.9 var(--kop); letter-spacing: -0.05em; }

/* ---------- Zachte overgang tussen pagina's ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* ---------- Waar ben ik: het menu en de rail ---------- */
/* De browser houdt zelf bij welke sectie in beeld is (scroll-target-group); waar dat
   nog niet bestaat, zet het script aria-current. */
[data-spion] { scroll-target-group: auto; }
.kop__nav a:target-current { background: rgb(255 255 255 / 0.18); }
.rail { display: none; }
@media (min-width: 60rem) {
  .rail { display: block; position: fixed; inset-inline-end: 0.5rem; inset-block-start: 50%; translate: 0 -50%; z-index: 30; mix-blend-mode: difference; color: #fff; --focus: #fff; }
  .rail ol { display: grid; }
  .rail a { display: flex; align-items: center; justify-content: flex-end; gap: 0.55rem; min-block-size: 1.6rem; text-decoration: none; font: 500 0.66rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
  .rail a::after { content: ""; inline-size: 0.9rem; block-size: 2px; background: currentColor; opacity: 0.55; transition: inline-size 0.25s ease, opacity 0.25s ease; }
  .rail a span { opacity: 0; translate: 0.4rem 0; transition: opacity 0.2s ease, translate 0.2s ease; }
  .rail a:is(:hover, :focus-visible) span, .rail a:target-current span { opacity: 1; translate: 0 0; }
  .rail a:is(:hover, :focus-visible)::after { inline-size: 1.4rem; opacity: 1; }
  .rail a:target-current::after { inline-size: 2.2rem; block-size: 3px; opacity: 1; }
}
@supports not (scroll-target-group: auto) {
  .kop__nav a[aria-current="true"] { background: rgb(255 255 255 / 0.18); }
  .rail a[aria-current="true"] span { opacity: 1; translate: 0 0; }
  .rail a[aria-current="true"]::after { inline-size: 2.2rem; block-size: 3px; opacity: 1; }
}
main > section:focus { outline: none; }

/* ---------- Geluidsknop ---------- */
.kop__geluid { display: grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem; flex: none; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.kop__geluid:hover { background: rgb(255 255 255 / 0.12); }
.kop__geluid svg { inline-size: 1.25rem; block-size: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kop__geluid[aria-pressed="true"] { color: var(--geel); }
.kop__geluid[aria-pressed="true"] .kop__streep, .kop__geluid[aria-pressed="false"] .kop__golf { display: none; }

/* ---------- Kopieerknop ---------- */
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }
.kopieer { position: relative; display: inline-flex; }
.kopieer__knop { min-block-size: 2rem; min-inline-size: 1.5rem; padding: 0.3rem 0.8rem; border: 2px solid currentColor; border-radius: 99rem; background: none; color: inherit; font: 700 0.82rem/1 var(--tekst); cursor: pointer; }
.kopieer__knop[data-gekopieerd] { background: var(--inkt); color: var(--geel); border-color: var(--inkt); }
.kopieer__knop[data-gekopieerd]::before { content: "✓ "; }
.kopieer__knop[data-mislukt]::before { content: "! "; }
.kopieer__tip { position: absolute; inset-inline-start: calc(100% + 0.5rem); inset-block-start: 50%; translate: 0 -50%; white-space: nowrap; font-size: 0.82rem; font-weight: 700; opacity: 0; transition: opacity 0.2s ease; }
.kopieer__knop:is([data-gekopieerd], [data-mislukt]) + .kopieer__tip { opacity: 1; }

/* ---------- De pagina onthoudt je taak ---------- */
.voorjou { display: none; inline-size: fit-content; font: 700 0.7rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; background: var(--geel); color: var(--inkt); padding: 0.35rem 0.7rem; border-radius: 99rem; border: 2px solid var(--inkt); }
.is-voorjou > .voorjou, .is-voorjou > :is(.dienst__kop, .verhaal__kop) > .voorjou { display: block; }
.dienst.is-voorjou { outline: 4px solid var(--geel); outline-offset: 3px; }
.verhaal.is-voorjou { border-color: var(--geel); }
.klikt__groep.is-voorjou .klikt__kop { text-decoration: underline; text-decoration-thickness: 0.2em; text-underline-offset: 0.25em; }

/* ---------- Elias bij het contact: de gids draagt je aan hem over ---------- */
.contact__elias { display: none; }
@media (min-width: 75rem) {
  .contact__elias { display: block; position: absolute; inset-inline-end: 0; inset-block-start: -1rem; inline-size: 8.5rem; block-size: 8.5rem; border-radius: 50%; object-fit: cover; object-position: 50% 10%; background: var(--zwart); border: 4px solid var(--inkt); }
}
@media (prefers-reduced-motion: no-preference) { .contact__elias.is-over { animation: over 0.9s cubic-bezier(0.3, 1.5, 0.5, 1); } }
@keyframes over { 30% { scale: 1.18; rotate: 6deg; box-shadow: 0 0 0 0.9rem rgb(17 17 20 / 0.15); } 60% { scale: 0.96; rotate: -2deg; } }

/* ---------- Vliegen in plaats van schuiven ---------- */
/* Kaarten komen van opzij en gedraaid binnen terwijl je scrolt, niet alleen van onder. */
@supports ((animation-timeline: view()) and (animation-range: 0% 100%)) {
  @media (prefers-reduced-motion: no-preference) {
    .sec { overflow-x: clip; }
    .dienst { animation: vlieg-in linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .dienst:nth-child(odd) { --van-x: -45%; --van-r: -7deg; }
    .dienst:nth-child(even) { --van-x: 45%; --van-r: 7deg; }
    .klikt__groep:nth-child(1) { animation-name: vlieg-in; --van-x: -35%; --van-r: -4deg; }
    .klikt__groep:nth-child(3) { animation-name: vlieg-in; --van-x: 35%; --van-r: 4deg; }
    .verhaal:nth-child(1) { animation-name: vlieg-in; --van-x: -30%; --van-r: -5deg; }
    .verhaal:nth-child(2) { animation-name: vlieg-in; --van-x: 30%; --van-r: 5deg; }
    .over__foto { animation-name: vlieg-in; --van-x: -40%; --van-r: -14deg; }
    .formulier { animation: vlieg-in linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; --van-x: 30%; --van-r: 5deg; }
    .voorwie li:nth-child(2) { animation-range: entry 10% entry 85%; }
    .voorwie li:nth-child(3) { animation-range: entry 20% entry 100%; }
  }
}
@keyframes vlieg-in { from { opacity: 0; translate: var(--van-x, 0) 6rem; rotate: var(--van-r, 0deg); scale: 0.85; } }

/* ---------- Het afdrukblad van de match ---------- */
.afdruk { display: none; }
@media print {
  .print-match body > :not(.afdruk) { display: none !important; }
  .print-match body { background: #fff; }
  .print-match .afdruk { display: block; color: #000; font: 11pt/1.45 var(--tekst); max-inline-size: 17cm; margin-inline: auto; }
  .afdruk h1 { font: 700 34pt/1 var(--kop); letter-spacing: -0.04em; margin-bottom: 4pt; }
  .afdruk h2 { font: 700 13pt/1.2 var(--kop); margin: 16pt 0 5pt; padding-top: 8pt; border-top: 1pt solid #000; }
  .afdruk .afdruk__score { font: 700 24pt/1.1 var(--kop); margin: 12pt 0 4pt; }
  .afdruk blockquote { margin: 0; padding-inline-start: 10pt; border-inline-start: 3pt solid #000; font-style: italic; }
  .afdruk :is(ul, ol) { padding-inline-start: 16pt; list-style: revert; }
  .afdruk li { margin-bottom: 3pt; }
  .afdruk .afdruk__klein { font-size: 9pt; margin-top: 18pt; }
}

/* ---------- De baan zelf ronddraaien ---------- */
.hero { touch-action: pan-y; }
.heeft-js .scene { cursor: grab; }
.hero.is-zwier { cursor: grabbing; user-select: none; -webkit-user-select: none; }

/* ---------- De stroom komt tot leven ---------- */
/* Eerst staat er "met de hand"; dan klapt het ene na het andere blokje om naar AI. */
.stroom .wie--ai b { font-weight: inherit; }
.heeft-js .stroom li:not(.is-ai) .wie--ai { background: transparent; color: inherit; border-color: currentColor; }
.heeft-js .stroom li:not(.is-ai) .wie--ai s { text-decoration: none; opacity: 1; margin: 0; }
.heeft-js .stroom li:not(.is-ai) .wie--ai b { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: no-preference) { .stroom li.is-ai .wie--ai { animation: kantel 0.5s ease both; } }
@keyframes kantel { from { rotate: x 90deg; } }

/* ---------- 20 van de 31, als stippen ---------- */
.stippen { display: flex; flex-wrap: wrap; gap: 0.3rem; max-inline-size: 19rem; }
.stip { inline-size: 0.85rem; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--inkt); scale: 0; transition: scale 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); transition-delay: calc(var(--i) * 28ms); }
.stip--raak { background: var(--inkt); }
.stippen.is-zicht .stip { scale: 1; }
@media (prefers-reduced-motion: reduce) { .stip { transition: none; } }

/* ---------- De punt die meereist langs de rail ---------- */
.draad { display: none; }
@media (min-width: 60rem) {
  @supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
      .draad { display: block; position: fixed; inset-inline-end: 0.3rem; inset-block-start: calc(50% - 7.2rem); block-size: 14.4rem; inline-size: 0.65rem; z-index: 31; pointer-events: none; }
      .draad::before { content: ""; position: absolute; inset-inline: 0; aspect-ratio: 1; border-radius: 50%; background: var(--geel); border: 2px solid var(--inkt); animation: draad linear both; animation-timeline: scroll(root); }
    }
  }
}
@keyframes draad { to { translate: 0 calc(14.4rem - 0.65rem); } }

/* ---------- De dienstkaarten schudden na een match ---------- */
.dienst:nth-child(1) { view-transition-name: kaart-1; }
.dienst:nth-child(2) { view-transition-name: kaart-2; }
.dienst:nth-child(3) { view-transition-name: kaart-3; }
::view-transition-group(kaart-1), ::view-transition-group(kaart-2), ::view-transition-group(kaart-3) { animation-duration: 0.7s; animation-timing-function: cubic-bezier(0.3, 1.2, 0.4, 1); }

/* ---------- De gids oppakken; slapen ---------- */
.heeft-js .gids__bot { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.gids.is-los.is-sleep { transition: none; }
.gids.is-sleep .gids__bot { cursor: grabbing; scale: 1.2; }
.bot[data-stemming="slaap"] .bot__oog { block-size: calc(var(--bot) * 0.05); inline-size: calc(var(--bot) * 0.2); }
.bot[data-stemming="slaap"]::before { content: "z"; position: absolute; inset-inline-end: -0.2rem; inset-block-start: -0.9rem; font: 700 0.9rem var(--mono); color: var(--inkt); background: var(--wit); border-radius: 99rem; padding: 0 0.3rem; }
@media (prefers-reduced-motion: no-preference) {
  .bot[data-stemming="slaap"]::before { animation: zzz 2.4s ease-in-out infinite; }
  .gids__bot.is-wakker .bot { animation: huppel 0.6s cubic-bezier(0.3, 1.4, 0.5, 1); }
}
@keyframes zzz { 0% { opacity: 0; translate: 0 0.3rem; } 40% { opacity: 1; } 100% { opacity: 0; translate: 0.4rem -0.6rem; } }

/* ---------- Het gespreksvenster bij de gids ---------- */
.babbel {
  position: fixed; inset: auto 1rem 5.75rem auto; margin: 0; padding: 0;
  inline-size: min(27rem, 100vw - 2rem); max-block-size: min(78svh, 46rem); overflow: auto; overscroll-behavior: contain;
  border: 2px solid var(--inkt); border-radius: 1.5rem; background: var(--zwart); color: var(--wit);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 0.45); --focus: var(--geel);
}
.babbel.is-links { inset: auto auto 5.75rem 1rem; }
.babbel:is(:popover-open, [open]) { display: grid; gap: 0.75rem; padding: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .babbel { transition: opacity 0.25s ease, translate 0.25s ease, display 0.25s, overlay 0.25s; transition-behavior: allow-discrete; opacity: 0; translate: 0 1rem; }
  .babbel:is(:popover-open, [open]) { opacity: 1; translate: 0 0; }
  @starting-style { .babbel:is(:popover-open, [open]) { opacity: 0; translate: 0 1rem; } }
}
.babbel__kop { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.babbel__kop h2 { font-size: var(--s1); }
.babbel__sluit, .babbel__voet button { border: 1px solid rgb(255 255 255 / 0.35); background: none; color: inherit; border-radius: 99rem; padding: 0.35rem 0.8rem; font: 700 0.82rem/1.2 var(--tekst); cursor: pointer; min-block-size: 2rem; }
.babbel .chat { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; animation: none; }
.babbel .chat__log { max-block-size: 38svh; min-block-size: 5rem; }
.babbel .chat__tips { display: none; }
.babbel__voet { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.82rem; opacity: 0.8; }
.chat-weg { display: grid; gap: 1rem; justify-items: start; align-content: center; min-block-size: 12rem; padding: 1.5rem; border-radius: 1.75rem; border: 2px dashed rgb(255 255 255 / 0.5); }

/* ---------- Losse pagina's ---------- */
.pagina .stroom li { background: var(--wit); }
.pagina .faq { margin-top: 0.5rem; }
.pagina .faq details p { font-size: var(--s0); }
.pagina__acties { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.pagina dl { display: grid; gap: 1rem; }
.pagina dt { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; margin-bottom: 0.2rem; }
.pagina code { font: 500 0.9em var(--mono); background: var(--wit); padding: 0.1em 0.35em; border-radius: 0.3em; }

/* ---------- Hoog contrast en print ---------- */
@media (forced-colors: active) {
  .knop, .chip, .sat__kaart, .bot, .gids__bel { border: 1px solid ButtonText; }
  .teken__stam, .teken__punt { fill: CanvasText; }
  .verhaal__stappen button[aria-current="true"]::before { background: Highlight; }
  .factor__vul { background: Highlight; }
  .bot__oog { background: CanvasText; }
}
@media print {
  .kop, .gids, .scene, .hero__pauze, .chat, .muur, .intro, .formulier, .rail, .draad, .babbel { display: none; }
  .hero, .sec, .voet { background: #fff; color: #000; min-height: 0; }
}
