/*
 * studioname-laag bovenop 187n's designsysteem.
 * site.css blijft ongewijzigd; hier staat alleen wat de nieuwe blokken nodig
 * hebben. Alle waarden komen uit de tokens van site.css, zodat de twee lagen
 * niet uit elkaar lopen.
 */

/* ---------------------------------------------------------------- hero --- */

/* .hero-tag-word is inline-block, dus een spatie binnen de span valt weg. */
.hero-tag-word:not(:last-child) { margin-right: .3em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* ------------------------------------------------------------- taalknop --- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 18px;
  padding: 6px 2px;
  font: inherit;
  font-size: 13px;
  color: var(--on-dark-mut);
  cursor: pointer;
  background: none;
  border: 0;
  transition: color .2s;
}

.lang-switch:hover { color: var(--on-dark); }
.lang-switch .lang-sep { color: var(--on-dark-dim); }

.lang-switch .lang-opt {
  transition: color .2s;
}

.lang-switch .lang-opt[aria-current="true"] {
  color: var(--on-dark);
  font-weight: 500;
}

.nav.is-light .lang-switch { color: var(--on-light-mut); }
.nav.is-light .lang-switch:hover,
.nav.is-light .lang-switch .lang-opt[aria-current="true"] { color: var(--on-light); }

/* --------------------------------------------------------- 02 probleem --- */

.prob-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  isolation: isolate;
}

.prob-card {
  position: relative;
  padding: 40px 42px 44px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.prob-card:nth-child(2n) { border-right: 0; }
.prob-card:nth-last-child(-n+2) { border-bottom: 0; }

.prob-card .bnum {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
}

.prob-card h3 {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--on-dark);
}

.prob-card p {
  max-width: 46ch;
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-dark-mut);
}

@media (max-width: 860px) {
  .prob-grid { grid-template-columns: 1fr; }
  .prob-card { padding: 32px 26px 34px; border-right: 0; }
  .prob-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .prob-card:last-child { border-bottom: 0; }
}

/* --------------------------------------------------------- sectiekoppen --- */

/* In site.css staat display:block alleen op .lt-head; op donker liepen de twee
   helften van de kop anders aan elkaar vast. De :not() houdt de per-teken spans
   van de blur-kop op inline-block. */
.sec-head .htitle > .strong:not(.lp-blur-char),
.sec-head .htitle > .mut:not(.lp-blur-char) { display: block; }

/* ------------------------------------------------ 03 tussenkop in blok --- */

.sec-head--mid {
  padding-top: 112px;
  border-top: 1px solid var(--line-dark);
  margin-top: 96px;
}

@media (max-width: 860px) {
  .sec-head--mid { padding-top: 72px; margin-top: 64px; }
}

/* --------------------------------------------------------- 05 techniek --- */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
  padding: 72px 0 8px;
}

/* Bewust een eigen klasse: .nd-col-label uit site.css start op opacity 0 en
   wordt pas zichtbaar als het navigatiepaneel opent. */
.stack-label {
  margin-bottom: 16px;
  padding-bottom: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--on-light-mut);
  border-bottom: 1px solid var(--line-light);
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-note {
  max-width: 62ch;
  margin: 8px 0 0;
  padding-bottom: 96px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-light-mut);
}

.section-warm .logo-strip {
  border-top-color: var(--line-light);
  border-bottom-color: var(--line-light);
}

.section-warm .logo-strip .plate img {
  filter: grayscale(1) contrast(.85);
  opacity: .45;
  transition: opacity .25s, filter .25s;
}

.section-warm .logo-strip .plate:hover img {
  filter: grayscale(0);
  opacity: .8;
}

@media (max-width: 900px) { .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .stack-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ------------------------------------------------------------ 06 fases --- */

.phase-box { padding: 8px 0 4px; }

.phase-steps {
  padding: 56px 64px 60px;
  columns: 2;
  column-gap: 64px;
}

.phase-steps .bk-step {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

/* site.css geeft alleen de eerste drie stappen een vertraging; deze twee erbij */
.bk-steps.is-in .bk-step:nth-child(4) .sn,
.bk-steps.is-in .bk-step:nth-child(4) > div:last-child { transition-delay: .5s; }
.bk-steps.is-in .bk-step:nth-child(5) .sn,
.bk-steps.is-in .bk-step:nth-child(5) > div:last-child { transition-delay: .64s; }

@media (max-width: 900px) {
  .phase-steps { columns: 1; padding: 36px 26px 40px; }
}

/* ------------------------------------------------------------ footer ----- */

.foot-bottom .rgt { display: flex; align-items: center; gap: 18px; }

/* ------------------------------------------------------- contactformulier - */

.bk-form .field textarea {
  width: 100%;
  padding: 6px 2px 13px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--on-light);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line-light-2);
  border-radius: 0;
  outline: none;
  resize: vertical;
}

.bk-form .field textarea:focus { border-bottom-color: var(--accent); }
.bk-form .field textarea::placeholder { color: #9a948a; }

.bk-assure .at b { display: block; color: var(--on-dark); }
.bk-assure .at span { color: var(--on-dark-mut); }

/* ------------------------------------------------------ juridische pagina - */

.legal-wrap { max-width: 720px; }

.legal-kicker {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-light-mut);
}

.legal-page h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 400;
  letter-spacing: -.022em;
  color: var(--on-light);
}

.legal-lede {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--on-light-mut);
}

.legal-note {
  margin: 32px 0 8px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--on-light-mut);
  border: 1px solid var(--line-light-2);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  background: #ffffff80;
}

.legal-page h2 {
  margin: 48px 0 0;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--on-light);
}

.legal-page h2 + p {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--on-light-mut);
}

.legal-back {
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
  font-size: 15px;
}

.legal-back a { color: var(--on-light); text-decoration: none; }
.legal-back a:hover { color: var(--accent); }

/* --------------------------------------------------------- toegankelijk -- */

/* Kerncopy mag nooit blijven hangen op een animatie die niet start. */
@media (prefers-reduced-motion: reduce) {
  .hero-actions,
  .prob-card,
  .stack-group,
  .stack-note { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Toevoegingen — hero-topografie, glasknoppen, logowall, integraties
   ========================================================================== */

/* -------------------------------------------------------- hero-topografie - */

/*
 * Elke dieptelaag is een eigen div met een eigen svg; de drift zit op de div.
 * Een transform op een <g> binnen één svg laat de browser de hele tekening
 * opnieuw rasteren, een transform op een div gaat over de compositor. Daarom
 * ook `will-change` en een eigen laag per diepte.
 *
 * Het licht is één verlopende div in plus-lighter in plaats van een bewegend
 * SVG-masker over een tweede set lijnen. Dat scheelt de helft van de paden en
 * de duurste bewerking per frame.
 */
.hero-topo,
.footer-topo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
}

.hero-topo .topo-layer,
.footer-topo .topo-layer {
  position: absolute;
  inset: -6%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.hero-topo svg,
.footer-topo svg { display: block; width: 100%; height: 100%; }

.topo-lines path {
  fill: none;
  stroke: var(--on-dark);
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
}

.hero-topo .topo-lines path { stroke: #7ea8dd; stroke-opacity: .22; }
.footer-topo .topo-lines path { stroke: #7ea8dd; stroke-opacity: .16; }

/* zachte blauwe waas rond het brandpunt */
.topo-wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(62% 58% at 50% 30%, #2f7fd440 0, #0f285800 72%);
}

/* het passerende licht */
/* Het passerende licht is blauw, niet wit. plus-lighter trekt een lichte kleur
   naar wit toe, dus de gradient begint bij een verzadigd blauw met een kern die
   maar net oplicht. */
.topo-sweep {
  position: absolute;
  top: -20%;
  left: 0;
  width: 52%;
  height: 140%;
  background: radial-gradient(closest-side,
    #2f7fd459 0,
    #1f5fae33 45%,
    #1f5fae00 100%);
  mix-blend-mode: plus-lighter;
  will-change: transform;
  transform: translate3d(-40%, 0, 0);
}

.hero-topo.is-animated .topo-layer,
.footer-topo.is-animated .topo-layer {
  animation: topoDrift var(--dur, 18s) ease-in-out infinite alternate;
}

.hero-topo.is-animated .topo-sweep { animation: topoSweep 22s ease-in-out infinite alternate; }
.footer-topo.is-animated .topo-sweep { animation: topoSweep 28s ease-in-out infinite alternate; }

.hero-topo[data-paused="true"] .topo-layer,
.hero-topo[data-paused="true"] .topo-sweep,
.footer-topo[data-paused="true"] .topo-layer,
.footer-topo[data-paused="true"] .topo-sweep { animation-play-state: paused !important; }

@keyframes topoDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--dx, 0), var(--dy, 0), 0); }
}

@keyframes topoSweep {
  from { transform: translate3d(-40%, 0, 0); }
  to { transform: translate3d(200%, 0, 0); }
}

@media (max-width: 640px) {
  .hero-topo .topo-layer[data-i="2"],
  .footer-topo .topo-layer[data-i="2"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .topo-layer, .topo-sweep { animation: none !important; }
}

/* Windows High Contrast gooit maskers en verlopen weg; dan blijft tekst leidend. */
@media (forced-colors: active) {
  .topo-wash, .topo-sweep { display: none; }
  .hero-topo svg, .footer-topo svg { forced-color-adjust: none; }
  .topo-lines path { stroke: CanvasText !important; stroke-opacity: .35 !important; }
}

/* ---------------------------------------------------------- glasknoppen --- */

/*
 * Liquid glass: een blauwe laag onder een glaslaag die de achtergrond
 * vervormt. De vervorming loopt via een SVG-filter op backdrop-filter — dat
 * werkt vandaag alleen in Chromium. Alle andere browsers krijgen dezelfde
 * knop zonder de brekingslaag; kleur, rand en schaduw dragen hem daar.
 */
.btn-glass {
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  transition: transform .18s var(--ease-out), filter .2s;
}

.btn-glass > span { position: relative; z-index: 2; }

/* de blauwe laag */
.btn-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent) 100%);
}

/* de glaslaag: randlicht binnenin, plus de breking waar de browser hem aankan */
.btn-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 3px 3px .5px -3px #ffffffe6,
    inset -3px -3px .5px -3px #ffffff99,
    inset 1px 1px 1px -.5px #ffffff99,
    inset -1px -1px 1px -.5px #ffffff66,
    inset 0 0 6px 6px #ffffff1f,
    inset 0 0 2px 2px #ffffff14,
    0 2px 6px #00000029,
    0 0 12px #ffffff26;
}

@supports (backdrop-filter: url("#glass-refract")) {
  .btn-glass::after { backdrop-filter: url("#glass-refract"); }
}

.btn-glass:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-glass:active { transform: translateY(0); filter: brightness(.94); }
.btn-glass:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

.glass-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------------------- logowall --- */

/*
 * Geen mask-image op de muur: een masker over bewegende inhoud dwingt elke
 * frame een herteken van het hele vlak (gemeten: 47fps met pieken van 117ms).
 * Twee statische verloopjes langs de randen doen hetzelfde, maar dan gratis.
 */
.logo-wall {
  position: relative;
  display: grid;
  gap: 0;
  padding: 8px 0;
  overflow: hidden;
}

.logo-wall::before,
.logo-wall::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 9%;
  pointer-events: none;
}

.logo-wall::before { left: 0; background: linear-gradient(90deg, var(--warm), #f6f5f000); }
.logo-wall::after { right: 0; background: linear-gradient(270deg, var(--warm), #f6f5f000); }

.logo-row {
  overflow: hidden;
  contain: content;
}

/* Om en om: rij 1, 3 en 5 naar rechts, rij 2 en 4 naar links. Zelfde tempo
   voor alle rijen, zodat het één beweging blijft en niet gaat wiebelen. */
.logo-track {
  display: flex;
  width: max-content;
  animation: logoScroll 190s linear infinite;
}

.logo-row:nth-child(even) .logo-track { animation-direction: reverse; }

/*
 * Alleen de rij waar je op staat houdt in — de andere vier lopen door. Stond
 * eerst op `.logo-wall:hover`, waardoor één muisaanwijzer de hele muur stilzette.
 */
.logo-row:hover .logo-track { animation-play-state: paused; }

.logo-track { will-change: transform; }

/* Van links naar rechts, alle rijen dezelfde kant op en hetzelfde tempo. */
@keyframes logoScroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.logo-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 108px;
  height: 88px;
  /* Van de ~200 tegels per rij staan er hooguit 15 in beeld; de rest hoeft de
     browser niet te tekenen. */
  content-visibility: auto;
  contain-intrinsic-size: 108px 88px;
}

/* Merkkleur staat als inline color op de tegel; te lichte merken zijn bij het
   bouwen van de index al donkerder gezet zodat ze op beige leesbaar blijven. */
.logo-tile svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
  opacity: .82;
  transition: opacity .2s, transform .2s;
}

.logo-tile:hover svg { opacity: 1; transform: scale(1.14); }

.section-dark .logo-tile svg,
.hero .logo-tile svg { opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-wall { -webkit-mask-image: none; mask-image: none; }
  .logo-row { overflow-x: auto; }
}

@media (max-width: 620px) {
  .logo-tile { width: 78px; height: 66px; contain-intrinsic-size: 78px 66px; }
  .logo-tile svg { width: 28px; height: 28px; }
}

/* ------------------------------------------------------ integratiepagina -- */

.ig-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 0 0 26px;
}

.ig-search {
  flex: 1 1 280px;
  max-width: 420px;
}

.ig-search input {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--on-light);
  background: #fff;
  border: 1px solid var(--line-light-2);
  border-radius: 999px;
  outline: none;
}

.ig-search input:focus { border-color: var(--accent); }
.ig-search input::placeholder { color: #8d8a83; }

.ig-count {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--on-light-mut);
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: 4px;
  overflow: hidden;
}

.ig-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 14px;
  font-size: 13.5px;
  color: var(--on-light);
  background: #fff;
  transition: background .15s;
}

.ig-card:hover { background: var(--warm); }

.ig-card svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--brand, var(--on-light));
  fill: currentColor;
  opacity: .9;
}

.ig-card b { font-weight: 450; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ig-empty { grid-column: 1 / -1; padding: 40px 16px; color: var(--on-light-mut); background: #fff; }

/* ----------------------------------------------------- logo: drie lagen --- */

.logo-mark { flex: none; }
.logo-mark .lm-1 { color: var(--accent); fill: currentColor; }
.logo-mark .lm-2 { opacity: .55; }
.logo-mark .lm-3 { opacity: .3; }

/* ------------------------------------------- voorbeelden op integraties --- */

.ig-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ig-example {
  padding: 38px 40px 42px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.ig-example:nth-child(3n) { border-right: 0; }
.ig-example:nth-last-child(-n+3) { border-bottom: 0; }

.ig-example .bnum {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--accent);
}

.ig-example h3 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--on-dark);
}

.ig-example p {
  margin: 10px 0 0;
  max-width: 40ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-dark-mut);
}

.ig-page { background: var(--warm); }
.ig-page .bk-hero { padding-bottom: 56px; }
.ig-page .section-light { background: var(--warm); }

@media (max-width: 1000px) {
  .ig-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ig-example:nth-child(3n) { border-right: 1px solid var(--line-dark); }
  .ig-example:nth-child(2n) { border-right: 0; }
  .ig-example:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-dark); }
  .ig-example:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 680px) {
  .ig-examples { grid-template-columns: 1fr; }
  .ig-example { padding: 30px 24px 32px; border-right: 0 !important; }
  .ig-example:not(:last-child) { border-bottom: 1px solid var(--line-dark) !important; }
  .ig-example:last-child { border-bottom: 0 !important; }
}

/* ------------------------------------------------------------- stack-voet - */

.stack-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px 40px;
  padding-bottom: 96px;
}

.stack-foot .stack-note { flex: 1 1 380px; padding-bottom: 0; margin: 0; }
.stack-foot .stack-note b { color: var(--on-light); font-weight: 600; }

.stack-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.stack-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.stack-link svg { transition: transform .18s var(--ease-out); }
.stack-link:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------- toegankelijkheid - */

/* De stapkoppen en footerkolommen waren h4/h5 onder een h2 — dat is een sprong
   in de koppenvolgorde. Ze zijn nu h3; hier staat het uiterlijk dat site.css
   aan de oude tags hing. */
.bk-step h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--on-dark);
  transition: color .15s;
}

.bk-step:hover h3 { color: #f6f5f0f2; }
.bk-step.active h3 { color: #fff; }

.foot-col h3 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

/* WCAG 2.2 doelgrootte: deze link bleef net onder 24px hoog. */
.stack-link { padding: 4px 0; }

/* Zichtbare focus overal, ook waar site.css alleen outline:none zette. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.section-dark a:focus-visible,
.hero a:focus-visible,
.closing a:focus-visible,
.footer a:focus-visible,
.footer button:focus-visible { outline-color: #4e9be8; }

/* Overslaan-link: eerste tabstop, alleen zichtbaar bij focus. */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  font-size: 14px;
  color: #111;
  background: #f6f5f0;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform .18s var(--ease-out);
}

.skip-link:focus-visible { transform: none; }

/* De onderste footerregel zat op 17–20px hoog; WCAG 2.2 vraagt 24×24. */
.foot-bottom .lft a,
.foot-bottom .lft button,
.foot-bottom .rgt a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 0;
}

/* ------------------------------------------------- footer als tweede hero - */

.footer { position: relative; isolation: isolate; }
.footer > .wrap { position: relative; z-index: 1; }

.footer-topo-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Iets meer demping dan in de hero: hier staat veel kleine tekst overheen. */
.footer-topo-overlay {
  background:
    radial-gradient(100% 70% at 50% 30%, #00000026 0, #0000004d 100%);
}

@media (max-width: 640px) {
  .footer-topo .topo-layer[data-i="2"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-topo .topo-layer,
  .footer-topo .topo-sweep { animation: none !important; }
}

@media (forced-colors: active) {
  .footer-topo, .footer-topo-overlay { display: none; }
}

/* ------------------------------------------------------------- gloedlaag - */

/*
 * De gloed zit in het blok waar je op staat: het blok komt naar voren, de rand
 * wordt sterker en er loopt een blauwe gloed onder de muis mee. main.js
 * verplaatst één gloed-element naar het actieve blok en schrijft --gx/--gy.
 */
.glow-card {
  position: relative;
  isolation: isolate;
  transition:
    transform .28s var(--ease-out),
    box-shadow .28s var(--ease-out),
    border-color .28s,
    background .28s;
}

/* site.css legt op .mc-reveal een failsafe-animatie met fill:forwards, die
   `transform: none` blijft vastpinnen — en een gevulde animatie wint van elke
   gewone regel. Zodra een blok onthuld is heeft die failsafe geen taak meer, dus
   daar zetten we hem uit; valt JS uit, dan komt `is-in` er nooit en blijft de
   failsafe gewoon werken. */
.glow-card.is-in { animation: none; }

.glow-card.is-hot {
  z-index: 3;
  transform: translateY(-3px) scale(1.012);
}

.card-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    var(--glow-size, 340px) circle at var(--gx, 50%) var(--gy, 50%),
    var(--glow-color, #4e9be833) 0,
    transparent 72%);
  animation: cardGlowIn .3s var(--ease-out) both;
}

@keyframes cardGlowIn { from { opacity: 0; } to { opacity: 1; } }

/* Op zwart: de rand licht op en het blok krijgt diepte. */
.prob-card.is-hot,
.work-card.is-hot,
.build-card.is-hot,
.ig-example.is-hot {
  --glow-color: #4e9be83d;
  border-color: #4e9be866;
  box-shadow: 0 14px 40px #00000073, 0 0 0 1px #4e9be82e;
}

/* Op wit en beige: zachtere tint, iets steviger schaduw. */
.feat-card.is-hot,
.tier.is-hot,
.ig-card.is-hot {
  --glow-color: #0056a71a;
  --glow-size: 300px;
  box-shadow: 0 12px 32px #0f1b2e1f, 0 0 0 1px #0056a72e;
}

.ig-card.is-hot { --glow-size: 200px; transform: translateY(-2px) scale(1.03); }
.tier.is-hot { transform: translateY(-4px) scale(1.015); }

/* De blokken hebben zelf geen radius; de gloed mag dus tot de rand lopen. */
.work-card, .prob-card, .build-card, .ig-example, .feat-card { overflow: hidden; }

@media (hover: none) {
  .card-glow { display: none; }
  .glow-card.is-hot { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .glow-card { transition: none; }
  .glow-card.is-hot { transform: none; }
  .card-glow { animation: none; }
}

/* --------------------------------------------------------------- knoppen - */

/*
 * Hover mag rustig zijn, indrukken moet meteen voelbaar zijn. Daarom twee
 * snelheden: 200ms omhoog, 70ms omlaag. De rimpel komt uit main.js en start op
 * de plek waar je klikt.
 */
.btn,
.pill-solid,
.bk-submit,
.tier-go,
.cookie-bar-btn,
.stack-link {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform .2s var(--ease-out),
    box-shadow .2s var(--ease-out),
    background .2s,
    border-color .2s,
    filter .2s;
}

.btn:active,
.pill-solid:active,
.bk-submit:active,
.tier-go:active,
.cookie-bar-btn:active {
  transition-duration: .07s;
  transform: translateY(1px) scale(.975);
}

/* lichte knoppen op donker: koele halo bij hover */
.btn-light:hover,
.pill-solid:hover,
.bk-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px #0000004d, 0 0 0 1px #ffffff26, 0 0 26px #4e9be833;
}

.btn-ghost-dark:hover {
  transform: translateY(-2px);
  border-color: #4e9be899;
  box-shadow: 0 0 22px #4e9be82e, inset 0 0 18px #4e9be814;
}

.btn-glass:hover {
  transform: translateY(-2px);
  filter: brightness(1.1) saturate(1.05);
}

.btn-glass:active {
  transform: translateY(1px) scale(.975);
  filter: brightness(.92);
}

/* de glans die één keer over de knop trekt bij hover */
.btn-light::after,
.pill-solid::after,
.bk-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, #0000 38%, #ffffffb3 50%, #0000 62%);
  transform: translateX(-120%);
  opacity: 0;
}

.btn-light:hover::after,
.pill-solid:hover::after,
.bk-submit:hover::after {
  opacity: .5;
  animation: btnSheen .62s var(--ease-out) forwards;
}

@keyframes btnSheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

/* de tier-link en de stack-link krijgen geen lift maar wel de pijl en kleur */
.tier-go:hover,
.stack-link:hover { color: var(--accent); }

/* rimpel vanaf de klikplek */
.btn-ripple {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, #ffffff5c 0, #ffffff00 68%);
  animation: btnRipple .58s var(--ease-out) forwards;
}

.btn-light .btn-ripple,
.pill-solid .btn-ripple,
.bk-submit .btn-ripple,
.tier-go .btn-ripple {
  background: radial-gradient(circle, #0056a73d 0, #0056a700 68%);
}

@keyframes btnRipple {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .pill-solid, .bk-submit, .tier-go, .cookie-bar-btn, .stack-link { transition: none; }
  .btn-light:hover::after, .pill-solid:hover::after, .bk-submit:hover::after { animation: none; opacity: 0; }
  .btn-ripple { display: none; }
}

/* --------------------------------------------------------- sectieruimte -- */

/* Meer lucht tussen de secties: 187n's ritme was strak, met deze copy en de
   grotere blokken liep het tegen elkaar aan. */
.section-dark,
.section-light,
.section-warm,
.mc-faq { padding-block: 40px; }

.sec-head,
.lt-head { padding-bottom: 12px; }

.sec-head--mid { padding-top: 128px; margin-top: 112px; }

.closing { padding-block: 48px; }

@media (max-width: 860px) {
  .section-dark,
  .section-light,
  .section-warm,
  .mc-faq { padding-block: 20px; }
  .sec-head--mid { padding-top: 76px; margin-top: 68px; }
}

/* -------------------------------------------------- punt in de agentmocks - */

/* De stip die van een bron naar het overzicht reist; 187n zette hem met JS neer
   maar de overgang stond alleen in hun eigen build. */
.wfm-dot {
  position: absolute;
  z-index: 4;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  pointer-events: none;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px #4e9be8a6;
  transition: transform .72s var(--ease-out), opacity .72s ease;
}

/* Bron-iconen in het overzicht-voorbeeld. */
.wfm-src { display: inline-flex; align-items: center; gap: 6px; }

.wfm-src-ic {
  flex: none;
  width: 13px;
  height: 13px;
  fill: currentColor;
  opacity: .75;
}

/* ------------------------------------------------- voorbeeld: overzicht --- */

/*
 * Opnieuw opgebouwd. 187n's versie plaatste zes bronnen absoluut rond een vast
 * paneel van 190px; in deze bredere kaart liepen de cijfers over hun labels en
 * werd de feed afgekapt. Nu een kolom: bronnen boven, paneel in het midden,
 * bronnen onder — met mono cijfers die niet met de serif-kop meeschalen.
 */
.ov {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 4px 2px;
}

.ov-srcs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.ov-src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 11.5px;
  line-height: 1;
  color: var(--on-dark-mut);
  background: #ffffff08;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  transition: color .25s, border-color .25s, background .25s, transform .25s;
}

/* Het beeldmerk in de eigen merkkleur, de naam blijft in de UI-kleur. */
.ov-src svg {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--brand, currentColor);
  fill: currentColor;
  opacity: .9;
  transition: opacity .25s, transform .25s;
}

.ov-src.is-sending svg { opacity: 1; transform: scale(1.12); }

.ov-src.is-sending {
  color: var(--on-dark);
  border-color: #4e9be866;
  background: #4e9be81f;
  transform: translateY(-1px);
}

.ov-panel {
  padding: 12px 14px 13px;
  background: #ffffff0a;
  border: 1px solid var(--line-dark-2);
  border-radius: 8px;
  transition: border-color .22s, box-shadow .22s;
}

.ov-panel.is-hit {
  border-color: #4e9be866;
  box-shadow: 0 0 0 1px #4e9be82e, 0 0 22px #4e9be826;
}

.ov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-dark);
}

.ov-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.ov-live i {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: ovPulse 1.8s ease-in-out infinite;
}

@keyframes ovPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.ov-title {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--on-dark-mut);
}

.ov-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0;
}

/* Mono, niet de serif uit .htitle — anders lopen de cijfers over hun labels. */
.ov-kpi b {
  display: block;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--on-dark);
}

.ov-kpi span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--on-dark-dim);
}

.ov-feed {
  display: grid;
  gap: 7px;
  padding-top: 11px;
  border-top: 1px solid var(--line-dark);
}

.ov-row {
  display: grid;
  grid-template-columns: 6px auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  opacity: .55;
  transition: opacity .3s;
}

.ov-row.is-new { opacity: 1; }

.ov-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .6;
}

.ov-row.is-new .ov-dot { opacity: 1; box-shadow: 0 0 8px #4e9be899; }

.ov-row b { font-weight: 500; color: var(--on-dark); }
.ov-row span { color: var(--on-dark-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-row em { font-family: var(--mono); font-size: 10.5px; font-style: normal; color: var(--on-dark-dim); }

@media (max-width: 520px) {
  .ov-kpis { gap: 6px; }
  .ov-kpi b { font-size: 17px; }
}

/* ------------------------------------------------------- 06 fases: tijdlijn */

/*
 * Vijf stappen op één lijn. De lijn vult zich terwijl je door de sectie
 * scrollt, de bol van een bereikte stap kleurt in. Zo zie je waar je bent en
 * wat er nog komt — dat is precies wat de kop belooft.
 *
 * Onder 900px kantelt het naar een verticale tijdlijn; dezelfde onderdelen,
 * ander ritme, geen verkleinde desktop.
 */
.tl {
  position: relative;
  padding: 64px 0 96px;
  --tl-fill: 0;
}

.tl-track {
  position: absolute;
  top: 81px;
  left: calc(100% / var(--tl-count) / 2);
  right: calc(100% / var(--tl-count) / 2);
  height: 1px;
  background: var(--line-dark-2);
}

.tl-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7db2ea);
  box-shadow: 0 0 12px #4e9be866;
  transform: scaleX(var(--tl-fill));
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}

.tl-steps {
  display: grid;
  grid-template-columns: repeat(var(--tl-count), minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-step {
  padding: 0 22px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}

.tl-step.is-in { opacity: 1; transform: none; }

.tl-node {
  display: flex;
  justify-content: center;
  height: 44px;
}

.tl-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark-mut);
  background: var(--ink-dark);
  border: 1px solid var(--line-dark-2);
  border-radius: 50%;
  transition: color .3s, background .3s, border-color .3s, box-shadow .3s;
}

.tl-step.is-done .tl-num {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px #4e9be81f, 0 0 18px #4e9be866;
}

.tl-body { padding-top: 22px; text-align: center; }

.tl-when {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
}

.tl-step.is-done .tl-when { color: var(--accent); border-color: #4e9be84d; }

.tl-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--on-dark);
}

.tl-body p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--on-dark-mut);
}

/* verticaal vanaf tablet omlaag */
@media (max-width: 900px) {
  .tl { padding: 40px 0 64px; }

  .tl-track {
    top: 17px;
    bottom: 24px;
    left: 17px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .tl-fill {
    width: 100%;
    height: 100%;
    transform: scaleY(var(--tl-fill));
    transform-origin: top;
    background: linear-gradient(180deg, var(--accent), #7db2ea);
  }

  .tl-steps { grid-template-columns: 1fr; gap: 34px; }

  .tl-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 18px;
    padding: 0;
  }

  .tl-node { height: auto; }
  .tl-body { padding-top: 3px; text-align: left; }
  .tl-body p { max-width: 46ch; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-step { opacity: 1; transform: none; transition: none; }
  .tl-fill { transition: none; }
}


/* ------------------------------------------------------- 05 stack: ruimte - */

/* De kop mag hoger in de sectie staan: minder lucht erboven, meer ruimte voor
   de logomuur eronder. */
#stack .lt-head { padding-top: 8px; padding-bottom: 34px; }
#stack .logo-wall { padding: 0; }
#stack .stack-foot { padding-top: 44px; }

/* --------------------------------------------------------- gsap-vangnet -- */

/* Met GSAP zetten we opacity en y zelf; dan mogen de CSS-vertragingen en de
   failsafe-animatie niet meer meesturen, anders vechten twee lagen om dezelfde
   eigenschap. Zonder GSAP verandert er niets en blijft de CSS leidend. */
.has-gsap .mc-reveal,
.has-gsap .cl-reveal { transition: none; animation: none; }
.has-gsap .mc-reveal-d1,
.has-gsap .mc-reveal-d2,
.has-gsap .mc-reveal-d3 { transition-delay: 0s; }
.has-gsap .tl-step { transition: none; }

/* ------------------------------------------------ hero op volle schermhoogte */

/*
 * De hero vult wat er onder de vaste kop overblijft. svh in plaats van vh,
 * zodat de mobiele browserbalk hem niet laat springen; --header-h wordt door
 * main.js op de echte hoogte gezet.
 */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h, 115px));
  min-height: calc(100svh - var(--header-h, 115px));
}

.hero .hero-inner { width: 100%; }

@media (max-width: 860px) {
  .hero { min-height: calc(100svh - var(--header-h, 60px)); }
}

/* ----------------------------------------------------------- preloader --- */

/*
 * Het beeldmerk staat er kort, en tilt dan op terwijl de hero eronder binnen
 * komt. Dat moet één beweging lijken, geen wissel: het scherm schaalt licht
 * mee, vervaagt, en de hero-regels starten precies in die overlap.
 *
 * De hero-onthulling is puur CSS met vertragingen — geen JS die iets moet
 * vrijgeven. Blijft main.js hangen, dan tilt de keyframe het scherm sowieso op
 * en heeft de hero zijn beweging al gemaakt.
 */
.preload {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--ink-dark);
  animation: preloadOut .85s cubic-bezier(.6, .04, .2, 1) .62s forwards;
}

.preload.is-done { animation: preloadOut .85s cubic-bezier(.6, .04, .2, 1) forwards; }

@keyframes preloadOut {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  60% { opacity: .55; }
  100% { opacity: 0; transform: scale(1.07); filter: blur(6px); visibility: hidden; }
}

.preload-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: var(--on-dark);
  animation:
    preloadIn .55s cubic-bezier(.16, 1, .3, 1) both,
    preloadLift .85s cubic-bezier(.6, .04, .2, 1) .62s forwards;
}

.preload.is-done .preload-mark {
  animation:
    preloadIn .55s cubic-bezier(.16, 1, .3, 1) both,
    preloadLift .85s cubic-bezier(.6, .04, .2, 1) forwards;
}

@keyframes preloadIn {
  from { opacity: 0; transform: translateY(12px) scale(.94); }
  to { opacity: 1; transform: none; }
}

/* het merk zakt weg terwijl het scherm optilt — tegengesteld, dat leest als diepte */
@keyframes preloadLift {
  to { opacity: 0; transform: translateY(-14px) scale(.9); }
}

.preload-mark .pl-1 { color: var(--accent); animation: plLayer 1.4s ease-in-out infinite; }
.preload-mark .pl-2 { opacity: .55; animation: plLayer 1.4s ease-in-out .14s infinite; }
.preload-mark .pl-3 { opacity: .3; animation: plLayer 1.4s ease-in-out .28s infinite; }

@keyframes plLayer {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.preload-word {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
}

/*
 * De hero-regels komen binnen terwijl het scherm optilt. site.css zet ze op
 * 80–740ms; daar komt de duur van het scherm bij, zodat het één doorgaande
 * beweging wordt in plaats van twee losse.
 */
.hero .he-reveal-d0 { animation-delay: .72s; }
.hero .he-reveal-d1 { animation-delay: .84s; }
.hero .he-reveal-d2 { animation-delay: .96s; }
.hero .he-reveal-d3 { animation-delay: 1.08s; }
.hero .he-reveal-d4 { animation-delay: 1.2s; }
.hero .he-reveal-d5 { animation-delay: 1.32s; }
.hero .he-reveal-d6 { animation-delay: 1.44s; }
.hero .hero-tag-word { animation-delay: 1.5s !important; }
.hero .hero-tag-word:nth-child(2) { animation-delay: 1.85s !important; }
.hero .hero-tag-word:nth-child(3) { animation-delay: 2.2s !important; }

@media (prefers-reduced-motion: reduce) {
  .preload { animation-delay: .15s; animation-duration: .3s; }
  .preload-mark, .preload-mark path { animation: none; opacity: 1; }
  .hero .he-reveal { animation-delay: 0s !important; }
  .hero .hero-tag-word { animation-delay: 0s !important; }
}

/* --------------------------------------------------- overzicht: totaal --- */

/* In het paneel, onder de feed — tussen de bronchips brak de onderste rij af. */
.ov-more {
  display: inline-flex;
  margin-top: 11px;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 11.5px;
  line-height: 1;
  color: var(--on-dark-mut);
  text-decoration: none;
  background: #4e9be814;
  border: 1px solid #4e9be838;
  border-radius: 999px;
  transition: color .25s, border-color .25s, background .25s;
}

.ov-more b { font-family: var(--mono); color: var(--accent); font-weight: 500; }
.ov-more:hover { color: var(--on-dark); background: #4e9be829; border-color: #4e9be866; }

/*
 * Bij vier kaarten naast elkaar is de mock nog maar 230px breed. Daar passen
 * drie chips mét naam niet; ze braken naar twee regels en liepen buiten de
 * kaart. Vanaf die breedte tonen we alleen het beeldmerk — de naam blijft als
 * tooltip beschikbaar.
 */
.ov-name { font-weight: 400; }

@media (min-width: 1001px) {
  .ov-src { padding: 7px; }
  .ov-src .ov-name { display: none; }
  .ov-src svg { width: 15px; height: 15px; }
  .ov-srcs { gap: 8px; }
  .ov-more { padding: 5px 9px; font-size: 11px; }
}

/*
 * Op de smalle kaart is er 296px hoog en had het paneel er 336 nodig. Compacter
 * maken in plaats van laten afknippen: kleinere cijfers, strakkere marges en
 * twee feedregels in plaats van drie.
 */
@media (min-width: 1001px) {
  .ov { gap: 9px; padding: 2px 0; }
  .ov-panel { padding: 10px 12px 11px; }
  .ov-head { padding-bottom: 8px; }
  .ov-kpis { gap: 8px; padding: 9px 0; }
  .ov-kpi b { font-size: 16px; }
  .ov-kpi span { margin-top: 2px; font-size: 9.5px; }
  .ov-feed { gap: 6px; padding-top: 9px; }
  .ov-row { font-size: 11px; }
  .ov-row:nth-child(3) { display: none; }
  .ov-more { margin-top: 9px; }
}

/* ---------------------------------------------- voorbeeld: opvolging ----- */

/*
 * Drie blokken die één voor één van boven naar beneden oplichten. Volledig in
 * CSS-keyframes: elke stap heeft dezelfde animatie met een derde van de cyclus
 * aan vertraging. Eerder liep dit op JS-klassen, en die raakten los van de
 * knopen zodra de inhoud herschreven werd — dan liep de teller wel door maar
 * lichtte er niets op. Met keyframes kan het niet uit de pas lopen.
 */
.fl {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px 0;
}

.fl-track {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.fl-line {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 6px;
  width: 1px;
  background: var(--line-dark-2);
}

.fl-pulse {
  position: absolute;
  top: 12px;
  left: 3px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px #4e9be8a6;
  opacity: 0;
}

.fl-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  background: #ffffff08;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
}

.fl-num {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark-dim);
}

.fl-body { display: grid; gap: 2px; min-width: 0; }

.fl-body b {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--on-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-body i { font-style: normal; font-size: 11px; color: var(--on-dark-dim); }

.fl-check {
  font-size: 12px;
  color: var(--accent);
  opacity: 0;
  transform: scale(.7);
}

/* ---- de lus: 4,5s, drie stappen van 1,5s ---- */

.fl.is-live .fl-step { animation: flStep 4.5s linear infinite; }
.fl.is-live .fl-step:nth-of-type(1) { animation-delay: 0s; }
.fl.is-live .fl-step:nth-of-type(2) { animation-delay: 1.5s; }
.fl.is-live .fl-step:nth-of-type(3) { animation-delay: 3s; }

.fl.is-live .fl-step .fl-num { animation: flNum 4.5s linear infinite; animation-delay: inherit; }
.fl.is-live .fl-step:nth-of-type(1) .fl-num { animation-delay: 0s; }
.fl.is-live .fl-step:nth-of-type(2) .fl-num { animation-delay: 1.5s; }
.fl.is-live .fl-step:nth-of-type(3) .fl-num { animation-delay: 3s; }

.fl.is-live .fl-step .fl-check { animation: flCheck 4.5s linear infinite; }
.fl.is-live .fl-step:nth-of-type(1) .fl-check { animation-delay: 0s; }
.fl.is-live .fl-step:nth-of-type(2) .fl-check { animation-delay: 1.5s; }
.fl.is-live .fl-step:nth-of-type(3) .fl-check { animation-delay: 3s; }

.fl.is-live .fl-pulse { animation: flPulse 4.5s linear infinite; }

@keyframes flStep {
  0% { background: #ffffff08; border-color: var(--line-dark); transform: none; }
  4% { background: #4e9be81a; border-color: #4e9be873; transform: translateX(3px); }
  28% { background: #4e9be81a; border-color: #4e9be873; transform: translateX(3px); }
  36%, 100% { background: #ffffff08; border-color: var(--line-dark); transform: none; }
}

@keyframes flNum {
  0% { color: var(--on-dark-dim); }
  4%, 28% { color: var(--accent); }
  36%, 100% { color: var(--on-dark-dim); }
}

@keyframes flCheck {
  0%, 22% { opacity: 0; transform: scale(.7); }
  30%, 96% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: scale(.7); }
}

/* de stip zakt mee langs de lijn, van blok 1 naar 2 naar 3 */
@keyframes flPulse {
  0% { opacity: 0; transform: translateY(0); }
  4% { opacity: 1; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(0); }
  36% { opacity: 1; transform: translateY(var(--fl-gap, 56px)); }
  63% { opacity: 1; transform: translateY(var(--fl-gap, 56px)); }
  69% { opacity: 1; transform: translateY(calc(var(--fl-gap, 56px) * 2)); }
  94% { opacity: 1; transform: translateY(calc(var(--fl-gap, 56px) * 2)); }
  100% { opacity: 0; transform: translateY(calc(var(--fl-gap, 56px) * 2)); }
}

@media (min-width: 1001px) {
  .fl-step { padding: 9px 11px; gap: 9px; }
  .fl-body b { font-size: 12.5px; }
  .fl-body i { font-size: 10px; }
  .fl-track { --fl-gap: 51px; }
}

@media (prefers-reduced-motion: reduce) {
  .fl.is-live .fl-step,
  .fl.is-live .fl-step .fl-num,
  .fl.is-live .fl-step .fl-check,
  .fl.is-live .fl-pulse { animation: none; }
  .fl-check { opacity: 1; transform: none; }
 * Drie blokken onder elkaar in plaats van 187n's SVG-flow met 8px tekst. Groter,
 * leesbaar op een smalle kaart, en de puls loopt langs de lijn zodat je ziet
 * welke stap aan de beurt is.
 */
.fl {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px 0;
}

.fl-track {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.fl-line {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 6px;
  width: 1px;
  background: var(--line-dark-2);
}

.fl-pulse {
  position: absolute;
  left: 3px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px #4e9be8a6;
  opacity: 0;
  transition: top .55s cubic-bezier(.5, 0, .2, 1), opacity .3s;
}

.fl-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  background: #ffffff08;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  transition: border-color .3s, background .3s, transform .3s;
}

/* De actieve stap komt uit het data-attribuut op de stage. */
.fl[data-step="0"] .fl-step:nth-of-type(1),
.fl[data-step="1"] .fl-step:nth-of-type(2),
.fl[data-step="2"] .fl-step:nth-of-type(3) {
  background: #4e9be814;
  border-color: #4e9be866;
  transform: translateX(2px);
}

.fl-num {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark-dim);
  transition: color .3s;
}

.fl[data-step="0"] .fl-step:nth-of-type(1) .fl-num,
.fl[data-step="1"] .fl-step:nth-of-type(2) .fl-num,
.fl[data-step="2"] .fl-step:nth-of-type(3) .fl-num { color: var(--accent); }

.fl-body { display: grid; gap: 2px; min-width: 0; }

.fl-body b {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--on-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-body i {
  font-style: normal;
  font-size: 11px;
  color: var(--on-dark-dim);
}

.fl-check {
  font-size: 12px;
  color: var(--accent);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s, transform .3s;
}

.fl[data-done="1"] .fl-step:nth-of-type(1) .fl-check,
.fl[data-done="2"] .fl-step:nth-of-type(-n+2) .fl-check,
.fl[data-done="3"] .fl-step .fl-check { opacity: 1; transform: none; }

@media (min-width: 1001px) {
  .fl-step { padding: 9px 11px; gap: 9px; }
  .fl-body b { font-size: 12.5px; }
  .fl-body i { font-size: 10px; }
}

/* Het bedrag springt kort op wanneer een stap afrondt. */
.wfm-count b { transition: color .3s, transform .3s; display: inline-block; }
.wfm-count b.is-bump { color: var(--accent); transform: translateY(-2px) scale(1.06); }

/* De KPI-labels liepen in elkaar op de smalle kaart: twee kolommen in plaats
   van drie, en het derde cijfer eronder. */
@media (min-width: 1001px) {
  .ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-kpi:nth-child(3) { grid-column: 1 / -1; }
  .ov-kpi span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* -------------------------------------- voorbeeld: merkcontrole-oordeel --- */

/*
 * Het oordeel onder de band was één grijze regel. Nu een pil met een icoon, de
 * reden en het bestand — zes varianten, groen als het erdoor komt en rood als
 * het wordt tegengehouden.
 */
.wfm-verdict .wfm-verdict-ok,
.wfm-verdict .wfm-verdict-bad {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  font-size: 11.5px;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid;
}

.wfm-verdict .wfm-verdict-ok {
  color: #9ed0a6;
  background: #5aa46914;
  border-color: #5aa46945;
}

.wfm-verdict .wfm-verdict-bad {
  color: #e8a09a;
  background: #c9584e14;
  border-color: #c9584e45;
}

.wfm-verdict-ic {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  font-size: 10px;
  font-style: normal;
  border-radius: 50%;
  background: currentColor;
  color: var(--ink-dark);
}

.wfm-verdict b { font-weight: 500; }

.wfm-verdict em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  opacity: .7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 12ch;
}

@media (min-width: 1001px) {
  .wfm-verdict .wfm-verdict-ok,
  .wfm-verdict .wfm-verdict-bad { gap: 6px; padding: 5px 9px; font-size: 10.5px; }
  .wfm-verdict em { max-width: 9ch; }
}

/* --------------------------------------- overzicht: nooit meer afknippen -- */

/*
 * De mock is 296px hoog en dat is hard. In plaats van hopen dat de inhoud past,
 * verdeelt de kolom die hoogte nu zelf: het paneel krimpt mee en de bronrijen
 * houden hun plek. Zo kan er niets meer buiten de kaart vallen.
 */
.ov {
  height: 100%;
  justify-content: space-between;
  min-height: 0;
}

.ov-srcs { flex: 0 0 auto; }

.ov-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.ov-feed { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ov-more { flex: 0 0 auto; }

/* ----------------------------------- merkcontrole: vinkje in het rondje --- */

.wfm-verdict-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 15px;
  height: 15px;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  color: currentColor;
  background: #0f0f0f;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.wfm-verdict .wfm-verdict-ok,
.wfm-verdict .wfm-verdict-bad {
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px #00000047;
}

/* ==========================================================================
   Hero — editorial opzet
   ==========================================================================
   Wat de hero eerst miste: alles stond op één as gecentreerd met dezelfde
   toonhoogte, en de kop had geen ademruimte. Nu een dunne kaderlijn erboven,
   een kicker in kapitaal-mono met een levende stip, de kop in twee gewichten
   met veel meer optische ruimte, de drie woorden als hairline-rij, en onder de
   knoppen de drie beloftes in plaats van één lange regel. Plus een fijne
   ruislaag die het zwart diepte geeft.
   ========================================================================== */

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  padding-block: 40px;
}

/* fijne ruis: houdt het zwart levend zonder dat je het als textuur ziet */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.he-rule {
  width: 56px;
  height: 1px;
  margin: 0 auto 28px;
  background: linear-gradient(90deg, #4e9be800, var(--accent), #4e9be800);
}

.hero .he-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 34px;
  padding: 7px 15px 7px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
  border: 1px solid var(--line-dark-2);
  border-radius: 999px;
  background: #ffffff0a;
  backdrop-filter: blur(6px);
}

.he-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px #4e9be824;
  animation: ovPulse 2.6s ease-in-out infinite;
}

.hero h1 { margin: 0; }

.hero h1 .l1,
.hero h1 .l2 {
  display: block;
  font-family: var(--serif);
  font-size: clamp(40px, 6.6vw, 82px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.hero h1 .l1 { color: #6f6b64; font-weight: 300; }
.hero h1 .l2 { color: var(--on-dark); font-weight: 400; }

/* de drie woorden als rij met hairlines ertussen */
.hero .hero-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 30px 0 0;
}

.hero .hero-tag-word {
  position: relative;
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  opacity: 1;
  transform: none;
  animation: none;
  margin-right: 0;
}

.hero .hero-tag-word + .hero-tag-word::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 11px;
  margin-top: -5.5px;
  background: var(--line-dark-2);
}

.hero .lede {
  max-width: 60ch;
  margin: 32px auto 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.62;
  color: var(--on-dark-mut);
}

.hero .lede b { color: var(--on-dark); font-weight: 500; }

.hero-actions { margin-top: 40px; gap: 14px; }
.hero-actions .btn { padding: 16px 30px; font-size: 15.5px; }
.hero-actions .btn-glass span { display: inline-flex; align-items: center; gap: 11px; }
.hero-actions .btn-glass svg { transition: transform .2s var(--ease-out); }
.hero-actions .btn-glass:hover svg { transform: translateX(4px); }

/* de drie beloftes, in plaats van één lange regel microtekst */
.hero-promises {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-promises li {
  position: relative;
  padding: 0 20px;
  font-size: 13px;
  color: var(--on-dark-dim);
}

.hero-promises li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .6;
}

/* scroll-hint onderaan */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 1;
  display: block;
  width: 1px;
  height: 46px;
  margin-left: -.5px;
  overflow: hidden;
  background: var(--line-dark-2);
}

.hero-scroll-line {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(180deg, #4e9be800, var(--accent));
  animation: heroScroll 2.4s ease-in-out infinite;
}

@keyframes heroScroll {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

@media (max-width: 760px) {
  .hero-inner { padding-block: 24px; }
  .hero .he-eyebrow { margin-bottom: 24px; font-size: 10px; letter-spacing: .1em; }
  .hero .hero-tag { margin-top: 22px; }
  .hero .hero-tag-word { padding: 0 12px; font-size: 10.5px; }
  .hero-actions { margin-top: 32px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-promises li { padding: 0 12px; font-size: 12px; }
  .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .he-dot, .hero-scroll-line { animation: none; }
}


/* ------------------------------------------------------------ uitlegbubbel */

/*
 * De uitleg die bij elk icoontje omhoog komt. Eén element, verplaatst door
 * initTips() in main.js. Zelfde vormtaal als de rest van de site: een
 * rechthoek met een dunne lijn, geen radius, geen gloed.
 */
.tip-bubble {
  position: fixed;
  z-index: 220;
  max-width: 240px;
  padding: 7px 11px;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: .01em;
  color: var(--on-light, #0f2858);
  background: var(--paper, #fff);
  border: 1px solid var(--line-light-2, #0f285833);
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out);
}

.tip-bubble.is-on { opacity: 1; transform: none; }

/* Onder het icoon (als de bovenrand in de weg zit) komt hij omlaag in beeld. */
.tip-bubble.is-under { transform: translateY(-5px); }
.tip-bubble.is-under.is-on { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .tip-bubble { transition: none; }
}
