/* ==========================================================================
   Base — reset, typografie, layout, animatie-basis
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-m);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-optical-sizing: auto;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--c-sky); color: var(--c-navy); }

:focus-visible {
  outline: 3px solid var(--focus, var(--c-blue-deep));
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 3000;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--c-ink);
  color: var(--c-paper);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; --focus: var(--c-sky); }

.noscript { padding: 120px var(--pad); font-size: var(--fs-l); max-width: 60ch; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: min(100% - 2 * var(--pad), var(--maxw));
  margin-inline: auto;
}
.container--wide {
  width: min(100% - 2 * var(--pad-wide), 1680px);
  margin-inline: auto;
}

/* Secties als "vellen" die met ronde hoeken over elkaar schuiven */
.sheet {
  position: relative;
  background: var(--sheet-bg, var(--bg));
  color: var(--sheet-fg, var(--fg));
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  margin-top: calc(-1 * var(--r-sheet));
  padding-block: calc(var(--r-sheet) + clamp(56px, 8vw, 128px)) calc(var(--r-sheet) + clamp(56px, 8vw, 128px));
}
.sheet:last-child { padding-bottom: clamp(56px, 8vw, 128px); }
.sheet--ink { --sheet-bg: var(--c-navy); --sheet-fg: var(--c-white); --focus: var(--c-sky); --eyebrow-c: var(--c-sky); }
.sheet--base { --sheet-bg: var(--c-base); --sheet-fg: var(--c-ink); }
.sheet--mist { --sheet-bg: var(--c-mist); --sheet-fg: var(--c-ink); }
.sheet--paper { --sheet-bg: var(--c-paper); --sheet-fg: var(--c-ink); }

.sheet[id] { scroll-margin-top: 0; }
section[id]:not(.sheet) { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ── Typografie-helpers ─────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55em;
  margin: 0 0 1.25rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow-text, inherit);
}
.eyebrow::before {
  content: "";
  width: 0.85em;
  height: 0.85em;
  flex: none;
  background: var(--eyebrow-c, var(--c-blue));
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.eyebrow--ink { --eyebrow-c: var(--c-navy); }
.sheet--base .eyebrow, .sheet--mist .eyebrow, .hero__card .eyebrow { --eyebrow-text: var(--c-blue-deep); }

.section-title {
  font-size: var(--fs-h2);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

/* ── Woord-animaties ────────────────────────────────────── */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.05em 0.14em;
  margin: 0 -0.05em -0.14em;
  isolation: isolate;
}
.w__i { display: inline-block; position: relative; }

/* Accentwoorden: markeerstift in merkkleur */
.w--em .w__i::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.1em;
  height: 0.3em;
  border-radius: 0.1em;
  background: var(--em-c, var(--c-highlight));
  transform-origin: left center;
}
.sheet--ink .w--em .w__i { color: var(--c-sky); }
.sheet--ink .w--em .w__i::after { display: none; }

.scrub .w { overflow: visible; padding: 0; margin: 0; }
.js .scrub .w__i { opacity: 0.16; transition: opacity 0.25s linear; }

/* ── Reveals (alleen met JS) ────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 1s var(--ease-out) calc(var(--d, 0) * 90ms),
    transform 1.2s var(--ease-out) calc(var(--d, 0) * 90ms);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-reveal="split"] { opacity: 1; transform: none; }
.js [data-reveal="split"] .w__i {
  transform: translate3d(0, 110%, 0);
  transition: transform 1.1s var(--ease-out) calc(var(--i) * 45ms + var(--d, 0) * 90ms);
}
.js [data-reveal="split"].is-in .w__i { transform: none; }
.js [data-reveal="split"] .w--em .w__i::after {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out) calc(var(--i) * 45ms + var(--d, 0) * 90ms + 550ms);
}
.js [data-reveal="split"].is-in .w--em .w__i::after { transform: scaleX(1); }

.js [data-reveal="media"] {
  opacity: 1;
  transform: none;
  clip-path: inset(9% 7% 9% 7% round var(--r-xl));
  transition: clip-path 1.5s var(--ease-out) calc(var(--d, 0) * 90ms);
}
.js [data-reveal="media"].is-in { clip-path: inset(0 0 0 0 round 0px); }
.js [data-reveal="media"] .media__inner > * {
  scale: 1.18;
  transition: scale 1.9s var(--ease-out) calc(var(--d, 0) * 90ms), transform 1.2s var(--ease-out);
}
.js [data-reveal="media"].is-in .media__inner > * { scale: 1; }

/* ── Minder beweging ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal], .js [data-reveal] .w__i { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-reveal] .media__inner > * { scale: 1 !important; }
}
