/* ==========================================================================
   De Gezinshuis Architect — stylesheet
   Editorial merkstijl: warm papier, haarlijnen, rustige typografie.
   Merkkleuren en typografie volgens het masterdocument (hoofdstuk 5).
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------------
     De merkkleuren staan NIET hier maar in merkstijl/tokens.css — dat is de
     enige bron, gedeeld met het dashboardpakket. build.py laadt dat bestand
     vóór deze stylesheet in de <head>.

     Hieronder staan alleen de namen waarmee de rest van deze stylesheet werkt,
     gekoppeld aan de merktokens. Wil je een kleur wijzigen: doe dat in
     merkstijl/tokens.css, niet hier.
     ------------------------------------------------------------------------ */

  /* Merkkleuren */
  --espresso: var(--ga-espresso);
  --olive: var(--ga-olive);
  --taupe: var(--ga-taupe);
  --sand: var(--ga-sand);
  --cream: var(--ga-cream);

  /* Papierladder (licht → donker) */
  --paper: var(--ga-paper);
  --paper-2: var(--ga-paper-2);
  --paper-3: var(--ga-paper-3);
  --card: var(--ga-card);
  --white: var(--ga-white);

  /* Inkt */
  --ink: var(--ga-ink);
  --ink-2: var(--ga-ink-2);
  --muted: var(--ga-ink-3);
  --dark: var(--ga-dark);
  --dark-2: var(--ga-dark-2);
  --olive-deep: var(--ga-olive-deep);

  /* Accent */
  --accent: var(--ga-terracotta);
  --accent-ink: var(--ga-terracotta-ink);
  --accent-dark: var(--ga-terracotta-dark);
  --accent-light: var(--ga-terracotta-light);
  --accent-soft: var(--ga-accent-soft);

  /* Statuskleur voor de 'afgerond'-stip */
  --green: var(--ga-green);

  /* Lijnen */
  --line: var(--ga-border);
  --line-2: var(--ga-border-strong);
  --line-3: var(--ga-border-contrast);
  --line-light: var(--ga-line-light);
  --line-light-2: var(--ga-line-light-2);

  /* Typografie */
  --serif: var(--ga-font-serif);
  --sans: var(--ga-font-sans);
  --label: 0.69rem;

  /* Layout — alleen voor deze site, hoort niet bij de merkstijl */
  --max: 1220px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 10vw, 148px);
  --radius: var(--ga-radius);
  --radius-sm: var(--ga-radius-sm);
  --shadow: 0 30px 60px -40px rgba(43, 32, 25, 0.5);
  --shadow-lift: 0 40px 70px -45px rgba(43, 32, 25, 0.6);
  --ease: var(--ga-ease);

  /* Papierkorrel */
  --grain: var(--ga-grain);
}


*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--grain);
  background-blend-mode: multiply;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: clamp(16px, 0.35vw + 15px, 17px);
  line-height: 1.68;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv05' 1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* De papierkorrel zit op de achtergrond van de vlakken zelf.
   Bewust géén vaste overlay met mix-blend-mode: dat breekt de sticky header. */
.section--alt, .strip { background-image: var(--grain); background-blend-mode: multiply; }
/* Donkere vlakken zijn tekenvellen: een fijn raster met de korrel eroverheen. */
.section--dark, .site-footer {
  background-image:
    linear-gradient(to right, rgba(246, 241, 232, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246, 241, 232, 0.05) 1px, transparent 1px),
    var(--grain);
  background-size: 88px 88px, 88px 88px, 180px 180px;
  background-blend-mode: normal, normal, screen;
}
/* Registratiemerk, zoals op een technische tekening */
.section--dark { overflow: hidden; }
.section--dark::after {
  content: ''; position: absolute; right: -60px; bottom: -70px;
  width: min(300px, 30vw); aspect-ratio: 1; pointer-events: none; opacity: 0.09;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23F6F1E8' stroke-width='.7'%3E%3Ccircle cx='50' cy='50' r='47'/%3E%3Ccircle cx='50' cy='50' r='31'/%3E%3Ccircle cx='50' cy='50' r='15'/%3E%3Cpath d='M50 0v20M50 80v20M0 50h20M80 50h20M50 35v30M35 50h30'/%3E%3C/svg%3E") center / contain no-repeat;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sand); color: var(--ink); }

/* ---------- Typografie ---------- */
h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.3rem, 4.9vw, 4.3rem); letter-spacing: -0.024em; }
h2 { font-size: clamp(2.05rem, 4.2vw, 3.4rem); letter-spacing: -0.022em; }
h3 { font-size: clamp(1.4rem, 2.1vw, 1.9rem); font-weight: 500; line-height: 1.14; letter-spacing: -0.014em; }
h4 {
  font-family: var(--sans); font-size: var(--label); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px;
}
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 24px;
}
.eyebrow::after {
  order: -1; content: ''; flex: none;
  width: 32px; height: 1px; background: var(--line-2);
}
/* Genummerde rubrieken — editorial index */
main { counter-reset: sectie; }
.section .eyebrow { counter-increment: sectie; }
.section .eyebrow::before {
  order: -2; content: counter(sectie, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500;
  letter-spacing: 0; color: var(--accent); line-height: 1;
}

/* Op smalle schermen lijnt het streepje uit op de eerste regel */
@media (max-width: 720px) {
  .eyebrow { align-items: flex-start; gap: 10px; }
  .eyebrow::after { margin-top: 0.55em; }
  .section .eyebrow::before { line-height: 1.1; }
}

.lead {
  font-size: clamp(1.08rem, 1.25vw, 1.24rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}

/* Sleutelzin: fijne accentlijn in plaats van markeerstift */
.hl {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 1.5px;
  background-position: 0 93%;
  padding-bottom: 0.06em;
}
.section--dark .hl { background-image: linear-gradient(var(--accent-light), var(--accent-light)); }

.muted { color: var(--muted); }
.italic { font-style: italic; }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.center .lead, .center p { margin-inline: auto; }

/* ---------- Layout ---------- */
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--alt {
  background-color: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--dark { background-color: var(--dark); color: rgba(246, 241, 232, 0.8); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark .serif { color: var(--cream); }
.section--dark strong, .section--dark b { color: var(--cream); }
.section--dark .eyebrow { color: var(--sand); }
.section--dark .eyebrow::after { background: var(--line-light-2); }
.section--dark .eyebrow::before { color: var(--accent-light); }
.section--dark .lead, .section--dark .muted { color: rgba(246, 241, 232, 0.76); }
/* Kleurvarianten van een donkere sectie — samen met .section--dark gebruiken */
.section--olive { background-color: var(--olive-deep); }
.section--espresso { background-color: var(--espresso); }

.section-head { max-width: 780px; margin-bottom: clamp(40px, 5.5vw, 72px); }
.section-head .lead { margin-top: 20px; }
.section-head--center { margin-inline: auto; text-align: center; max-width: 720px; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

/* Rubriek in een smalle linkerkolom naast de kop — editorial */
@media (min-width: 1100px) {
  .section-head:not(.section-head--center) {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 56px;
    max-width: 1040px;
    align-items: start;
  }
  .section-head:not(.section-head--center) > * { grid-column: 2; }
  .section-head:not(.section-head--center) .eyebrow {
    grid-column: 1; grid-row: 1;
    margin: 10px 0 0;
    flex-direction: column; align-items: flex-start; gap: 12px;
    line-height: 1.5;
  }
  .section-head:not(.section-head--center) .eyebrow::after { width: 24px; order: 99; }
  .section-head:not(.section-head--center) .eyebrow::before { font-size: 1.5rem; }
}

.grid { display: grid; gap: 1px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 24px; }

.split { display: grid; gap: clamp(36px, 6vw, 88px); align-items: start; grid-template-columns: 1fr; }
.split--middle { align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.12fr 0.88fr; }
  .split--wide-right { grid-template-columns: 0.88fr 1.12fr; }
}

.divider { height: 1px; background: var(--line-2); }

/* Maatlijn met het monogram als zegel — sluit een blok af als een tekening */
.plan-rule {
  display: flex; align-items: center; gap: 22px;
  color: var(--line-3); margin-bottom: clamp(40px, 5vw, 68px);
}
.plan-rule::before, .plan-rule::after { content: ''; height: 1px; flex: 1; background: currentColor; }
.plan-rule > span {
  flex: none; display: grid; place-items: center;
  width: 54px; height: 54px; border: 1px solid currentColor; border-radius: 50%;
}
.plan-rule svg { width: 30px; height: 30px; color: var(--accent); }
.section--dark .plan-rule { color: var(--line-light-2); }
.section--dark .plan-rule svg { color: var(--accent-light); }

/* Hoekmarkeringen: ieder vlak leest als een uitsnede van een tekening */
.panel, .cockpit, .recipe { position: relative; }
.panel::before, .panel::after,
.cockpit::before, .cockpit::after {
  content: ''; position: absolute; width: 15px; height: 15px; pointer-events: none;
  border-style: solid; border-width: 0; border-color: var(--line-3);
}
.panel::before, .cockpit::before { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.panel::after, .cockpit::after { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }
.cockpit::before, .cockpit::after, .panel--dark::before, .panel--dark::after { border-color: var(--line-light-2); }

/* Ornament tussen blokken */
.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--taupe); margin: clamp(40px, 6vw, 72px) 0;
}
.ornament::before, .ornament::after { content: ''; height: 1px; flex: 1; max-width: 160px; background: var(--line-2); }
.ornament span { width: 5px; height: 5px; transform: rotate(45deg); background: var(--accent); }

/* Zichtbare focus voor toetsenbordgebruik */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- Knoppen ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .25s var(--ease);
  white-space: nowrap; min-width: 0;
  overflow: hidden; isolation: isolate;
}
/* Een lichtstreep die bij hover over de knop glijdt */
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 253, 249, 0.16) 50%, transparent 65%);
  transform: translateX(-110%); transition: transform .9s var(--ease);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(110%); }
.btn:active { transform: scale(.985); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--cream); }
.btn .arrow { transition: transform .4s var(--ease); font-size: 1rem; line-height: 1; }
.btn:hover .arrow { transform: translateX(5px); }
/* Verzenden: label wijkt, een fijne spinner verschijnt */
.btn.is-busy { pointer-events: none; color: transparent !important; }
.btn.is-busy .arrow { opacity: 0; }
.btn.is-busy::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 1.5px solid rgba(246, 241, 232, 0.3); border-top-color: var(--cream);
  animation: draai .8s linear infinite;
}
@keyframes draai { to { transform: rotate(360deg); } }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-3); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--cream); border-color: var(--line-light-2); }
.btn--outline-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--sm { padding: 11px 18px; font-size: 0.7rem; letter-spacing: 0.08em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* Op smalle schermen knoppen over de volle breedte: lange labels breken niet uit het grid */
@media (max-width: 620px) {
  .btn { width: 100%; justify-content: space-between; padding-inline: 22px; white-space: normal; }
  .btn-row { display: grid; gap: 12px; }
  .mobile-nav .btn { align-self: stretch; }
}

.text-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink);
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: color .25s, background-size .35s var(--ease);
}
.text-link .arrow { transition: transform .35s var(--ease); }
.text-link:hover { color: var(--accent-dark); }
.text-link:hover .arrow { transform: translateX(3px); }
.section--dark .text-link, .card--dark .text-link { color: var(--accent-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 243, 234, 0.88);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  transition: border-color .3s, background .3s, transform .55s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-2); background: rgba(247, 243, 234, 0.95); }
/* Wijkt zodra je omlaag leest, komt terug zodra je omhoog beweegt */
.site-header.is-hidden { transform: translateY(-100%); }
/* Leesvoortgang als haarlijn onderlangs de header */
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--accent); transform: scaleX(var(--progress, 0)); transform-origin: left;
  opacity: 0; transition: opacity .4s;
}
.site-header.is-scrolled::after { opacity: 1; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 92px; gap: 24px;
  transition: min-height .4s var(--ease);
}
.site-header.is-scrolled .container { min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 15px; }
.brand__mono { width: 46px; height: 46px; color: var(--espresso); flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand__mono { transform: rotate(-6deg); }
/* Accentdelen van het merkteken: terracotta, op donker de lichte variant */
.ga-acc { stroke: var(--accent); }
.ga-acc-fill { fill: var(--accent); }
.site-footer .ga-acc, .section--dark .ga-acc, .cockpit .ga-acc { stroke: var(--accent-light); }
.site-footer .ga-acc-fill, .section--dark .ga-acc-fill, .cockpit .ga-acc-fill { fill: var(--accent-light); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.24rem; font-weight: 500; letter-spacing: 0.005em; color: var(--ink); white-space: nowrap; }
.brand__sub { font-size: 0.53rem; font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase; color: var(--taupe); margin-top: 7px; }

.nav { display: none; align-items: center; gap: clamp(16px, 1.7vw, 26px); }
.nav a {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); position: relative; padding: 8px 0;
  transition: color .25s;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent-ink); }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: none; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 12px;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .25s;
}
.nav-toggle:hover { border-color: var(--line-3); }
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s; }
@media (min-width: 1000px) {
  .nav { display: inline-flex; }
  .nav-toggle { display: none; }
}
@media (min-width: 1340px) { .header-cta { display: inline-flex; } }

/* Mobiel menu */
.mobile-nav {
  position: fixed; inset: 0; z-index: 55;
  background: var(--paper);
  padding: 120px var(--gutter) 40px;
  display: flex; flex-direction: column;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.mobile-nav a {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 7vw, 2.4rem);
  color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
body.nav-open .mobile-nav a { opacity: 1; transform: none; transition-delay: var(--d, 0ms); }
.mobile-nav a::before {
  content: counter(mobitem, decimal-leading-zero); counter-increment: mobitem;
  font-family: var(--sans); font-size: .62rem; font-weight: 500; letter-spacing: .16em;
  color: var(--taupe);
}
.mobile-nav { counter-reset: mobitem; }
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav .btn { margin-top: 32px; align-self: flex-start; border-bottom: 0; font-size: .78rem; }
.mobile-nav .btn::before { content: none; }
body.nav-open { overflow: hidden; }
body.nav-open .mobile-nav { opacity: 1; pointer-events: auto; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 116px) 0 clamp(56px, 7vw, 96px); }
.hero .split { align-items: center; perspective: 1600px; }
.hero h1 { max-width: 14ch; }
.hero .lead { margin: 32px 0 40px; max-width: 52ch; }

.hero-visual {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 4.8; min-height: 460px;
  background-color: var(--dark-2);
  background-image:
    linear-gradient(to right, rgba(246, 241, 232, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246, 241, 232, 0.07) 1px, transparent 1px),
    radial-gradient(125% 80% at 16% -8%, rgba(216, 202, 188, 0.55), transparent 58%),
    /* Twee tussenstops tussen zand en espresso; alleen voor dit verloop. */
    linear-gradient(168deg, #6B543F 0%, #3E2F24 46%, var(--dark-2) 100%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%;
  box-shadow: var(--shadow);
}
.hero-visual::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--grain); opacity: .4; pointer-events: none;
}
/* fijne binnenlijst */
.hero-visual::before {
  content: ''; position: absolute; inset: 16px; z-index: 2;
  border: 1px solid rgba(246, 241, 232, 0.28); border-radius: 2px; pointer-events: none;
}
/* De tekening: bronnen → één regel → automatisch of mens */
.plan { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.plan .ln { fill: none; stroke: rgba(246, 241, 232, 0.5); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.plan__dim .ln { stroke: rgba(246, 241, 232, 0.3); }
.plan .nd { fill: none; stroke: rgba(246, 241, 232, 0.75); stroke-width: 1; }
.plan .nd--rule { fill: var(--dark-2); stroke: var(--accent-light); }
.plan .nd--auto { fill: var(--accent); stroke: var(--accent); }
.plan .nd--human { fill: var(--sand); stroke: var(--sand); }
.plan .lb {
  fill: rgba(246, 241, 232, 0.9); font-family: var(--sans); font-size: 7.4px;
  font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.plan .lb--on { fill: var(--dark-2); }
.plan .lb--tick { fill: rgba(246, 241, 232, 0.45); font-size: 6.4px; }
@media (max-width: 620px) { .plan .lb { font-size: 8.6px; } .plan .lb--tick { font-size: 7.4px; } }
/* De lijnen tekenen zichzelf; de blokjes en labels komen daarna op */
.plan .nd, .plan .lb { opacity: 0; transition: opacity .8s var(--ease) .55s; }
.plan.is-drawn .nd, .plan.is-drawn .lb { opacity: 1; }
.hero-visual__quote {
  position: absolute; left: 40px; top: 36px; z-index: 3;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  line-height: 1.18; color: var(--ink); max-width: 11ch;
}
.hero-visual__card {
  position: absolute; left: 32px; right: 32px; bottom: 32px; z-index: 3;
  background: rgba(252, 250, 244, 0.97);
  border: 1px solid rgba(56, 43, 34, 0.14);
  border-radius: var(--radius-sm); padding: 20px 22px;
  box-shadow: 0 26px 48px -26px rgba(0, 0, 0, 0.55);
}
.hero-visual__card .label {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line);
}
.hero-visual__card ul { display: grid; gap: 10px; font-size: .84rem; color: var(--ink-2); }
.hero-visual__card li { display: flex; align-items: center; gap: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--olive); flex: none; }
.dot--warn { background: var(--accent); }
.dot--ok { background: var(--green); }

/* Kernzinnen-strip: donkere band direct onder de hero, loopt rustig door */
.strip {
  background-color: var(--espresso);
  padding: 24px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.strip__track { display: flex; width: max-content; animation: strip-loop 46s linear infinite; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__inner {
  display: flex; gap: 0; flex: none; white-space: nowrap;
  font-family: var(--serif); font-size: 1.18rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--cream);
}
.strip__inner span { position: relative; padding: 0 22px 0 26px; }
.strip__inner span::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 4px; height: 4px; margin-top: -2px; transform: rotate(45deg);
  background: var(--accent-light);
}
@keyframes strip-loop { to { transform: translateX(-50%); } }

/* ---------- Kaarten ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color .5s var(--ease), background .5s var(--ease), transform .5s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
/* Lichtval die de muis volgt (main.js zet --mx/--my) */
.card::after, .recipe::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(164, 82, 42, 0.07), transparent 65%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.card:hover::after, .recipe:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card:hover { border-color: var(--line-3); background: var(--white); transform: translateY(-3px); }
.card:hover::before { transform: scaleX(1); }
.card--flat { background: transparent; }
.card--flat:hover { transform: none; background: transparent; }
.card--dark::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(246, 241, 232, 0.07), transparent 65%); }
.card--link { display: block; }
.card .icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(164, 82, 42, 0.28);
  background: var(--accent-soft); color: var(--accent); margin-bottom: 24px;
  transition: border-color .35s, color .35s, background .35s;
}
.card:hover .icon { border-color: var(--accent); background: var(--accent); color: var(--cream); }
.card .icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: .94rem; line-height: 1.62; }
.card .text-link { margin-top: 22px; }
.card--dark {
  background: rgba(246, 241, 232, 0.045); border-color: var(--line-light); color: rgba(246, 241, 232, 0.78);
}
.card--dark:hover { background: rgba(246, 241, 232, 0.08); border-color: var(--line-light-2); }
.card--dark h3 { color: var(--cream); }
.card--dark p { color: rgba(246, 241, 232, 0.76); }
.card--dark .icon { border-color: var(--line-light-2); color: var(--sand); }
.card--dark:hover .icon { border-color: var(--accent-light); color: var(--accent-light); }

/* ---------- Lijsten ---------- */
.check-list { display: grid; gap: 0; }
.check-list li {
  display: flex; gap: 16px; align-items: baseline;
  color: var(--ink-2); font-size: .97rem;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list li::before {
  content: ''; flex: none; width: 5px; height: 5px; transform: rotate(45deg);
  background: var(--accent); position: relative; top: -2px;
}
.check-list--cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 48px; }
.check-list--cols li:nth-child(2) { border-top: 1px solid var(--line); }
.section--dark .check-list li { color: rgba(246, 241, 232, 0.8); border-color: var(--line-light); }
.section--dark .check-list li:first-child { border-top-color: var(--line-light); }
.section--dark .check-list li::before { background: var(--accent-light); }

.pill-list { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: .8rem; font-weight: 500; color: var(--ink-2);
  background: var(--card);
  transition: border-color .25s, background .25s, color .25s;
}
.pill:hover { border-color: var(--line-3); color: var(--ink); }
.pill--olive { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.pill--accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pill--sand { background: var(--sand); border-color: var(--sand); color: var(--espresso); }
.section--dark .pill { border-color: var(--line-light-2); color: rgba(246, 241, 232, 0.82); }

/* Definitietabel (trajecten, modules) */
.def-table { display: grid; border-top: 1px solid var(--line-3); }
.def-table > div {
  display: grid; grid-template-columns: 1fr; gap: 8px 40px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.def-table > div:hover { background: rgba(56, 43, 34, 0.025); }
.def-table dt { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.1; color: var(--ink); letter-spacing: -0.012em; }
.def-table dd { margin: 0; color: var(--ink-2); font-size: .96rem; }
@media (min-width: 760px) { .def-table > div { grid-template-columns: 300px 1fr; } }
.section--dark .def-table { border-color: var(--line-light-2); }
.section--dark .def-table > div { border-color: var(--line-light); }
.section--dark .def-table > div:hover { background: rgba(246, 241, 232, 0.035); }
.section--dark .def-table dt { color: var(--cream); }
.section--dark .def-table dd { color: rgba(246, 241, 232, 0.76); }

/* ---------- 360° kaart ---------- */
.ring-wrap { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .ring-wrap { grid-template-columns: 1.05fr 0.95fr; } }
.ring {
  position: relative; width: min(540px, 100%); aspect-ratio: 1; margin-inline: auto;
  border-radius: 50%; border: 1px solid var(--line-2);
  container-type: inline-size;
}
.ring::before {
  content: ''; position: absolute; inset: 15%; border-radius: 50%; border: 1px solid var(--line);
}
.ring::after {
  content: ''; position: absolute; inset: 23%; border-radius: 50%;
  border: 1px dashed rgba(56, 43, 34, 0.2);
}
.ring__center {
  position: absolute; inset: 31%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--dark); color: var(--cream); padding: 12px; z-index: 2;
  box-shadow: 0 22px 44px -26px rgba(43, 32, 25, 0.8);
}
.ring__center strong { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 400; display: block; line-height: 1; color: var(--cream); }
.ring__center span { font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); margin-top: 9px; display: block; }
.ring__item {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 124px; margin: -19px 0 0 -62px; text-align: center;
  font-size: .76rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-2);
  padding: 9px 6px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-2);
  transition: border-color .3s, color .3s, background .3s;
  transform: rotate(calc(var(--i) * 30deg - 90deg)) translate(50cqw) rotate(calc(-1 * (var(--i) * 30deg - 90deg)));
}
.ring__item:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--white); }
@media (max-width: 599px) {
  .ring { border: 0; aspect-ratio: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .ring::before, .ring::after { display: none; }
  .ring__center { position: relative; inset: auto; width: 100%; border-radius: var(--radius); padding: 26px; margin-bottom: 10px; }
  .ring__item { position: static; margin: 0; transform: none; width: auto; }
}
.lenses { display: grid; margin-top: 28px; border-top: 1px solid var(--line); }
.lens {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.lens strong { font-family: var(--serif); font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.lens span { color: var(--ink-2); font-size: .97rem; }
.lens em { font-style: normal; color: var(--ink); font-weight: 600; }
.section--dark .lenses, .section--dark .lens { border-color: var(--line-light); }
.section--dark .lens strong { color: var(--accent-light); }
.section--dark .lens span { color: rgba(246, 241, 232, 0.78); }
.section--dark .lens em { color: var(--cream); }

/* ---------- Stappen / keuzes ---------- */
.steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.step { padding: 22px 0 0; border-top: 1px solid var(--line-3); }
.step__num {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 400; color: var(--accent);
  line-height: 1; margin-bottom: 18px; letter-spacing: -0.02em;
}
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: .91rem; line-height: 1.6; }
.section--dark .step { border-color: var(--line-light-2); }
.section--dark .step p { color: rgba(246, 241, 232, 0.76); }
.section--dark .step__num { color: var(--accent-light); }

/* ---------- Workflows / recepten ---------- */
.recipe {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .5s var(--ease), transform .5s var(--ease);
}
.recipe:hover { border-color: var(--line-3); transform: translateY(-3px); }
.recipe > * { position: relative; z-index: 1; }
.recipe__head {
  padding: 22px 26px 20px; background: transparent; border-bottom: 1px solid var(--line-2);
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.15;
  letter-spacing: -0.012em; color: var(--ink);
  display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 12px;
}
.recipe__head span {
  font-family: var(--sans); font-size: .6rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.recipe__row {
  display: grid; grid-template-columns: 82px 1fr; gap: 18px; padding: 16px 26px;
  border-bottom: 1px solid var(--line); font-size: .9rem;
}
.recipe__row:last-child { border-bottom: 0; }
.recipe__row b {
  font-family: var(--sans); font-size: .6rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-ink); padding-top: 4px;
}
.recipe__row p { color: var(--ink-2); line-height: 1.58; }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; }
.flow span {
  padding: 10px 15px; border-radius: var(--radius-sm); background: var(--card);
  border: 1px solid var(--line-2); font-size: .82rem; font-weight: 500; color: var(--ink-2);
}
.flow i {
  font-style: normal; font-size: 0; position: relative;
  width: 26px; height: 1px; background: var(--line-3); flex: none;
}
.flow i::after {
  content: ''; position: absolute; right: 0; top: 50%;
  width: 5px; height: 5px; margin-top: -3px;
  border-top: 1px solid var(--line-3); border-right: 1px solid var(--line-3);
  transform: rotate(45deg);
}
.flow span.is-human { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.section--dark .flow span { background: rgba(246, 241, 232, 0.06); border-color: var(--line-light-2); color: rgba(246, 241, 232, 0.86); }
.section--dark .flow i { background: var(--line-light-2); }
.section--dark .flow i::after { border-color: var(--line-light-2); }
.section--dark .flow span.is-human { background: var(--sand); color: var(--espresso); border-color: var(--sand); }

/* ---------- Cockpit (Gezinshuis OS mock) ---------- */
.cockpit {
  background: var(--dark-2); border: 1px solid var(--line-light-2); border-radius: var(--radius);
  padding: 28px; color: var(--cream); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.85);
}
.cockpit__top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line-light);
}
.cockpit__top h3 { font-size: 1.7rem; color: var(--cream); }
.cockpit__top span { font-size: .62rem; font-weight: 500; color: var(--sand); letter-spacing: .18em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.cockpit__list { display: grid; gap: 2px; }
.cockpit__item {
  display: grid; grid-template-columns: 8px 1fr auto; gap: 16px; align-items: center;
  padding: 15px 16px; border-radius: var(--radius-sm); background: rgba(246, 241, 232, 0.05);
  font-size: .88rem; color: rgba(246, 241, 232, 0.9);
  cursor: pointer; user-select: none;
  transition: background .35s var(--ease), transform .35s var(--ease), opacity .4s var(--ease);
}
.cockpit__item:hover { background: rgba(246, 241, 232, 0.09); transform: translateX(3px); }
.cockpit__item:focus-visible { outline-color: var(--accent-light); outline-offset: -2px; }
.cockpit__item small { color: rgba(246, 241, 232, 0.6); font-size: .74rem; }
.cockpit__item .tag { font-size: .58rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); transition: color .3s; }
.cockpit__item .dot { transition: background .4s var(--ease), transform .4s var(--ease), box-shadow .4s; }
/* Afgevinkt: stip wordt groen, de regel treedt terug */
.cockpit__item.is-done { opacity: .55; }
.cockpit__item.is-done > div { text-decoration: line-through; text-decoration-color: rgba(246, 241, 232, 0.4); }
.cockpit__item.is-done .dot { background: var(--green-light, #9CBE8F); transform: scale(1.35); box-shadow: 0 0 0 3px rgba(156, 190, 143, 0.22); }
.cockpit__item.is-done .tag { color: rgba(246, 241, 232, 0.45); }
.cockpit__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-light);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 241, 232, 0.6); font-weight: 500;
}
.cockpit__live { display: inline-flex; align-items: center; gap: 8px; color: var(--sand); }
.cockpit__live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green-light, #9CBE8F);
  box-shadow: 0 0 0 0 rgba(156, 190, 143, 0.5); animation: puls 2.4s var(--ease) infinite;
}
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(156, 190, 143, 0.5); } 70% { box-shadow: 0 0 0 7px rgba(156, 190, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(156, 190, 143, 0); } }
.bar { height: 4px; border-radius: 999px; background: rgba(246, 241, 232, 0.14); overflow: hidden; margin-top: 9px; }
.bar i { display: block; height: 100%; width: 72%; background: var(--accent-light); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .6s; }
.cockpit.in .bar i { transform: none; }

/* ---------- Quote ---------- */
.quote {
  position: relative;
  font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.9rem); font-style: italic;
  font-weight: 400; line-height: 1.18; letter-spacing: -0.018em;
  color: var(--ink); max-width: 22ch; margin: 0;
}
.quote::before {
  content: '“'; position: absolute; left: -0.55em; top: -0.18em;
  font-size: 2.4em; line-height: 1; color: var(--sand); font-style: normal;
}
.section--dark .quote { color: var(--cream); }
.section--dark .quote::before { color: rgba(216, 202, 188, 0.3); }
.quote--center { text-align: center; margin-inline: auto; }
.quote--center::before { position: static; display: block; margin: 0 0 -0.35em; font-size: 1.8em; }
.quote cite {
  display: block; font-family: var(--sans); font-style: normal; font-size: .66rem;
  font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-top: 26px;
}
.section--dark .quote cite { color: var(--sand); }

/* ---------- Voor/na ---------- */
.before-after {
  display: grid; gap: 0 48px; border-top: 1px solid var(--line-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  background: transparent;
}
.before-after > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.before-after b {
  display: block; font-size: .6rem; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; margin-bottom: 12px;
}
.before-after .before b { color: var(--muted); }
.before-after .after b { color: var(--accent-ink); }
.before-after p { font-size: .95rem; color: var(--ink-2); }
.before-after .before p { color: var(--muted); }


/* ---------- Stat tiles ---------- */
.stats { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat { border-top: 1px solid var(--line-3); padding-top: 20px; }
.stat strong {
  display: block; font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-weight: 400; line-height: 1; color: var(--ink); letter-spacing: -0.025em; margin-bottom: 10px;
}
.stat span { color: var(--muted); font-size: .88rem; }
.section--dark .stat { border-color: var(--line-light-2); }
.section--dark .stat strong { color: var(--cream); }
.section--dark .stat span { color: rgba(246, 241, 232, 0.72); }

/* ---------- Formulieren ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form label {
  display: grid; gap: 8px; font-size: .64rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.form input, .form select, .form textarea {
  font: inherit; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--ink);
  width: 100%; padding: 14px 0; border-radius: 0;
  border: 0; border-bottom: 1px solid var(--line-2); background: transparent;
  transition: border-color .25s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--taupe); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-bottom-color: var(--accent);
}
/* Accentlijn groeit vanuit links bij focus */
.form label { position: relative; }
.form label::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease); pointer-events: none;
}
.form label:focus-within::after { transform: scaleX(1); }
.form label.consent::after { content: none; }
.form select { padding-left: 0; }
.form textarea { min-height: 130px; resize: vertical; }
.form .consent {
  display: flex; gap: 12px; align-items: flex-start; font-size: .82rem;
  letter-spacing: 0; text-transform: none; color: var(--ink-2); font-weight: 400;
  line-height: 1.55;
}
.form .consent input { width: auto; margin-top: 5px; accent-color: var(--accent); border-bottom: 0; }
.form-note { font-size: .8rem; color: var(--muted); }
.form-success {
  display: none; padding: 30px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid var(--accent);
}
.form-success strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.form.is-sent { display: none; }
.form.is-sent + .form-success { display: block; animation: opkomen .7s var(--ease) both; }
@keyframes opkomen { from { opacity: 0; transform: translateY(12px); } }
.section--dark .form label { color: var(--sand); }
.section--dark .form input, .section--dark .form select, .section--dark .form textarea {
  color: var(--cream); border-bottom-color: var(--line-light-2);
}
.section--dark .form .consent { color: rgba(246, 241, 232, 0.78); }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
}
.panel--dark { background: rgba(246, 241, 232, 0.05); border-color: var(--line-light); }

/* ---------- Zelfscan ---------- */
.selfscan { display: grid; border-top: 1px solid var(--line); }
.selfscan label {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 4px;
  border-bottom: 1px solid var(--line); background: transparent; cursor: pointer;
  font-size: .97rem; color: var(--ink-2);
  transition: background .25s, color .25s;
}
.selfscan label:hover { background: rgba(56, 43, 34, 0.025); }
.selfscan label:has(input:checked) { color: var(--ink); }
.selfscan input { margin-top: 5px; accent-color: var(--accent); flex: none; }
.selfscan__result {
  margin-top: 28px; padding: 28px 30px; border-radius: var(--radius);
  background: var(--dark); color: rgba(246, 241, 232, 0.82);
}
.selfscan__result strong {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 400; color: var(--cream);
  display: block; line-height: 1; margin-bottom: 14px; letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.selfscan__result strong.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: translateY(-4px); color: var(--accent-light); } }
.selfscan__meter { height: 3px; border-radius: 999px; background: rgba(246, 241, 232, 0.16); margin: 0 0 18px; overflow: hidden; }
.selfscan__meter i { display: block; height: 100%; width: 0; background: var(--sand); border-radius: inherit; transition: width .8s var(--ease), background .5s; }
.selfscan__result[data-niveau="2"] .selfscan__meter i, .selfscan__result[data-niveau="3"] .selfscan__meter i { background: var(--accent-light); }
.selfscan__result p { transition: opacity .3s; }

/* ---------- CTA blok ---------- */
.cta-block { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cta-block { grid-template-columns: 1.15fr .85fr; } }
.cta-block .btn-row { justify-content: flex-start; }
@media (min-width: 900px) { .cta-block .btn-row { justify-content: flex-end; } }

/* ---------- Page hero (subpagina's) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
/* Hetzelfde registratiemerk als op de donkere vlakken, nu in inkt */
.page-hero::after {
  content: ''; position: absolute; right: -70px; top: -80px;
  width: min(320px, 34vw); aspect-ratio: 1; pointer-events: none; opacity: 0.11;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23382B22' stroke-width='.7'%3E%3Ccircle cx='50' cy='50' r='47'/%3E%3Ccircle cx='50' cy='50' r='31'/%3E%3Ccircle cx='50' cy='50' r='15'/%3E%3Cpath d='M50 0v20M50 80v20M0 50h20M80 50h20M50 35v30M35 50h30'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 720px) { .page-hero::after { display: none; } }
.page-hero h1 { max-width: 15ch; font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.page-hero .lead { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background-color: var(--dark-2); color: rgba(246, 241, 232, 0.78);
  border-top: 1px solid var(--line-light);
  padding: clamp(64px, 8vw, 104px) 0 40px;
}
.footer-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer .brand__mono, .site-footer .brand__name { color: var(--cream); }
.site-footer .brand__sub { color: var(--taupe); }
.footer-tagline {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.5rem;
  line-height: 1.3; margin-top: 26px; max-width: 22ch; color: var(--sand);
}
.footer-col h4 {
  font-size: .6rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--taupe); margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line-light);
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a {
  color: rgba(246, 241, 232, 0.76); font-size: .9rem;
  transition: color .25s, background-size .4s var(--ease);
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-size: 0 1px; background-position: 0 100%; padding-bottom: 1px;
}
.footer-col a:hover { color: var(--cream); background-size: 100% 1px; }
.footer-bottom {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px;
  font-size: .74rem; color: rgba(246, 241, 232, 0.55);
}
.footer-bottom span { max-width: 70ch; }
.footer-bottom a { color: inherit; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-light-2);
  display: grid; place-items: center; color: rgba(246, 241, 232, 0.8);
  transition: background .25s, border-color .25s, color .25s;
}
.socials a:hover { background: var(--cream); border-color: var(--cream); color: var(--dark); }
.socials svg { width: 15px; height: 15px; }

/* ==========================================================================
   Beweging en afwerking
   Alles hieronder hangt aan html.js (gezet in de <head>): zonder JavaScript
   blijft de inhoud gewoon zichtbaar. Bij prefers-reduced-motion staat alles uit.
   ========================================================================== */

/* ---------- Paginawissels: de site voelt als één geheel ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-uit .26s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
.site-header { view-transition-name: site-header; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; mix-blend-mode: normal; }
::view-transition-group(site-header) { animation-duration: .35s; }
@keyframes vt-uit { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
/* Inhoud schuift bij binnenkomst heel licht omhoog */
.js main { animation: pagina-in .9s var(--ease) both; }
@keyframes pagina-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Reveal: blokken komen rustig op zodra ze in beeld komen ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }
/* Lijsten en tabellen: rij voor rij (main.js zet --n per rij) */
.js .reveal-rows { transform: none; opacity: 1; }
.js .reveal-rows > * {
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--n, 0) * 55ms + var(--d, 0ms));
}
.js .reveal-rows.in > * { opacity: 1; transform: none; }
/* Het hero-vel en de cockpit komen iets groter en langzamer op */
.js .hero-visual { animation: vel-in 1.4s var(--ease) .15s both; }
@keyframes vel-in { from { opacity: 0; transform: translateY(28px) scale(.975); } }
.js .cockpit[data-reveal] { transform: translateY(28px) scale(.98); transition-duration: 1.1s, 1.3s; }
.js .cockpit[data-reveal].in { transform: none; }
.js .cockpit__item { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .7s var(--ease), background .35s var(--ease); transition-delay: var(--d, 0ms); }
.js .cockpit.in .cockpit__item { opacity: 1; transform: none; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms; }
.js .cockpit.in .cockpit__item:hover { transform: translateX(3px); transition-delay: 0ms; }
.js .cockpit.in .cockpit__item.is-done { opacity: .55; }

/* ---------- Koppen: woord voor woord omhoog uit een onzichtbare lijn ---------- */
.is-split .w { display: inline-block; overflow: clip; padding: .08em 0 .2em; margin: -.08em 0 -.2em; vertical-align: baseline; }
.is-split .w > span { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform 1s var(--ease), opacity .6s var(--ease); transition-delay: var(--d, 0ms); }
.is-split.in .w > span { transform: none; opacity: 1; }

/* ---------- 360° kaart: de domeinen verschijnen rondom ---------- */
.js [data-reveal] .ring__center { transform: scale(.88); opacity: 0; transition: transform 1.2s var(--ease), opacity .8s var(--ease); }
.js [data-reveal].in .ring__center { transform: none; opacity: 1; }
.js .ring__item { --s: .5; opacity: 0; transition: border-color .3s, color .3s, background .3s, opacity .7s var(--ease), transform .9s var(--ease); transition-delay: 0s, 0s, 0s, calc(var(--i) * 60ms + .25s), calc(var(--i) * 60ms + .25s); }
.js .ring__item { transform: rotate(calc(var(--i) * 30deg - 90deg)) translate(50cqw) rotate(calc(-1 * (var(--i) * 30deg - 90deg))) scale(var(--s)); }
.js [data-reveal].in .ring__item { --s: 1; opacity: 1; }
@media (max-width: 599px) { .js .ring__item { transform: scale(var(--s)); } }

/* ---------- Hero-vel: beweegt mee met scrollen en kantelt licht naar de muis ---------- */
.hero-visual {
  transform: translateY(var(--shift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}

/* ---------- Rustige modus ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .reveal-rows > *, .js .cockpit__item, .js .ring__item, .js [data-reveal] .ring__center { opacity: 1; transform: none; transition: none; }
  .js .ring__item { transform: rotate(calc(var(--i) * 30deg - 90deg)) translate(50cqw) rotate(calc(-1 * (var(--i) * 30deg - 90deg))); }
  .js main, .js .hero-visual { animation: none; }
  .hero-visual { transform: none; }
  .plan .nd, .plan .lb { opacity: 1; transition: none; }
  .strip__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .strip__inner[aria-hidden] { display: none; }
  .strip { -webkit-mask-image: none; mask-image: none; }
  .bar i { transform: none; transition: none; }
  .site-header.is-hidden { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 14px; } .mt-2 { margin-top: 26px; } .mt-3 { margin-top: 42px; } .mt-4 { margin-top: 68px; }
.mb-2 { margin-bottom: 26px; }
.maxw { max-width: 68ch; }
.badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid rgba(164, 82, 42, 0.28);
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
}
.badge--olive { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.badge--accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.section--dark .badge, .card--dark .badge {
  background: rgba(224, 166, 127, 0.16); border-color: rgba(224, 166, 127, 0.45); color: var(--accent-light);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
