/* =====================================================
   Master-Y · Visual Communication
   Apple-tier, light-first, editorial minimalism
   ===================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces & ink */
  --paper: #ffffff;
  --paper-alt: #f6f7f8;
  --ink: #0b0f12;
  --ink-soft: #3a434b;
  --ink-muted: #5c656d;            /* AA: 5.9:1 on white, 5.5:1 on paper-alt */
  --line: color-mix(in oklab, var(--ink) 9%, transparent);
  --dark: #0b0f12;
  --dark-ink: #f4f6f7;
  --dark-muted: #9aa5ad;

  /* Accent (teal) */
  --accent: #1182a4;               /* brand — for large text / decoration only */
  --accent-strong: #0c6d88;        /* AA on small text & button fills (white text 5.2:1) */
  --accent-weak: color-mix(in oklab, #1182a4 10%, white);

  /* Type scale (modular ~1.25, fluid) */
  --step--1: clamp(0.8rem, 0.78rem + 0.12vw, 0.86rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1:  clamp(1.15rem, 1.06rem + 0.45vw, 1.35rem);
  --step-2:  clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 2.75rem);
  --step-4:  clamp(2.1rem, 1.55rem + 3vw, 3.8rem);
  --step-5:  clamp(2.35rem, 1.5rem + 4.6vw, 5.2rem);

  /* Spacing (8px grid) */
  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-8: 48px; --s-10: 64px; --s-12: 96px; --s-16: 128px;

  /* Layout */
  --maxw: 1160px;
  --pad: clamp(1.25rem, 5vw, 2rem);

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --ease-rotor: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Elevation (teal-tinted) */
  --shadow-1: 0 1px 2px hsla(202 60% 18% / .06), 0 12px 32px -6px hsla(202 60% 18% / .10);
  --shadow-2: 0 2px 6px hsla(202 50% 16% / .08), 0 28px 64px -12px hsla(202 55% 18% / .20);
  --shadow-cta: 0 8px 24px hsla(196 82% 24% / .26);

  /* Deep colour blocks (depth + brand colour) */
  --deep: radial-gradient(125% 125% at 22% 0%, #11586d 0%, #0c3340 46%, #0a1c24 100%);
  --deep-line: color-mix(in oklab, #ffffff 12%, transparent);
  --on-deep: #eaf3f6;
  --on-deep-soft: color-mix(in oklab, #eaf3f6 78%, transparent);
  --on-deep-eyebrow: #66c7e6;

  --label-tracking: 0.12em;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  letter-spacing: -0.006em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv05", "cv11";
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; overflow-wrap: break-word; }

.accent { color: var(--accent); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Shared bits ---------- */
.micro-label {
  display: block;
  font-size: var(--step--1); font-weight: 600;
  text-transform: uppercase; letter-spacing: var(--label-tracking);
  color: var(--accent-strong); margin-bottom: var(--s-5);
}
.section-title { font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.022em; color: var(--ink); }
.section-title--xl { font-size: var(--step-4); line-height: 1.04; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 500; font-size: var(--step-0);
  letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .18s var(--ease-out), background .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: #0a5f78; transform: translateY(-1px); box-shadow: 0 12px 30px hsla(196 82% 22% / .32); }
.btn-primary:active { transform: translateY(0) scale(.99); transition-duration: .08s; }
.btn-primary[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }

/* Animated underline link */
.link-underline {
  position: relative; font-weight: 500; color: var(--ink);
  background-image: linear-gradient(var(--accent-strong), var(--accent-strong));
  background-repeat: no-repeat; background-position: 0 100%;
  background-size: 0% 1.5px; padding-bottom: 2px;
  transition: background-size .3s var(--ease-out), color .2s var(--ease-out);
}
.link-underline:hover { background-size: 100% 1.5px; color: var(--accent-strong); }
.link-quiet { color: var(--ink-soft); }
.link-on-dark { color: var(--dark-ink); background-image: linear-gradient(var(--accent), var(--accent)); }
.link-on-dark:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; }
.brand-logo { height: 28px; width: auto; transition: opacity .2s var(--ease-out); }
.brand:hover .brand-logo { opacity: .72; }
.brand-logo--dark { display: none; }

.site-nav { display: flex; align-items: center; gap: var(--s-6); }
.nav-link { font-size: var(--step-0); color: var(--ink-soft); transition: color .2s var(--ease-out); }
.nav-link:not(.link-underline):hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.scroll-progress { height: 1.5px; background: var(--accent-strong); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(8rem, 7rem + 9vw, 12rem) 0 clamp(5rem, 4rem + 6vw, 8rem); }
.hero-inner { position: relative; z-index: 1; max-width: 940px; }

/* Hero background animation: faint blueprint grid + soft drifting teal light */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-bg::before {
  content: ""; position: absolute; inset: -2px; z-index: 1;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 95% at 28% 8%, #000 0%, #000 38%, transparent 72%);
  mask-image: radial-gradient(120% 95% at 28% 8%, #000 0%, #000 38%, transparent 72%);
}
.hero-bg::after {
  content: ""; position: absolute; z-index: 1; width: 65vmax; height: 65vmax; left: 42%; top: -22%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 16%, transparent) 0%, transparent 62%);
  filter: blur(18px); opacity: .5;
  animation: lightDrift 24s ease-in-out infinite alternate;
}
@keyframes lightDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-20%, 12%) scale(1.18); }
}
/* Mouse spotlight: lights up the blueprint grid in teal where you point */
.hero-bg-lit {
  position: absolute; inset: -2px; z-index: 2; opacity: 0;
  background-image:
    radial-gradient(circle 300px at var(--mx, 50%) var(--my, 35%), color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%),
    linear-gradient(to right, color-mix(in oklab, var(--accent) 42%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--accent) 42%, transparent) 1px, transparent 1px);
  background-size: 100% 100%, 46px 46px, 46px 46px;
  -webkit-mask-image: radial-gradient(circle 230px at var(--mx, 50%) var(--my, 35%), #000 0%, #000 26%, transparent 72%);
  mask-image: radial-gradient(circle 230px at var(--mx, 50%) var(--my, 35%), #000 0%, #000 26%, transparent 72%);
  transition: opacity .5s var(--ease-out);
}
.hero-bg.is-active .hero-bg-lit { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg::after { animation: none; }
  .hero-bg-lit { display: none; }
}
.hero-title { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; color: var(--ink); margin-bottom: var(--s-6); }
.hero-lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 56ch; line-height: 1.45; margin-bottom: var(--s-8); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6); }

/* Hero dienst-rotator */
.rotor { display: inline-block; position: relative; vertical-align: baseline; text-align: left; transition: width .42s var(--ease-rotor); }
.rotor-sizer { visibility: hidden; white-space: nowrap; }
.rotor-word {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  opacity: 0; transform: translateY(0);
  transition: transform .42s var(--ease-rotor), opacity .42s var(--ease-rotor);
}
.rotor-word.is-in { opacity: 1; transform: translateY(0); }
.rotor-word.is-out { opacity: 0; transform: translateY(-0.42em); }
.rotor-word.is-below { opacity: 0; transform: translateY(0.5em); transition: none; }

/* ---------- Statement ---------- */
.statement { padding: clamp(4rem, 3rem + 5vw, 7rem) 0; border-top: 1px solid var(--line); }
.statement .container { max-width: 1040px; }
.statement-text { font-size: var(--step-4); line-height: 1.12; letter-spacing: -0.022em; font-weight: 500; color: var(--ink); max-width: 24ch; }

/* ---------- Voordeel (benefits) ---------- */
.benefits { padding: clamp(6rem, 5rem + 6vw, 9rem) 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--paper-alt), color-mix(in oklab, var(--paper-alt) 55%, var(--paper))); }
.benefits-head { max-width: 56ch; margin-bottom: clamp(3rem, 2rem + 4vw, 5rem); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.benefit { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-1); }
.benefit::before { content: ""; display: block; width: 32px; height: 2px; background: var(--accent-strong); margin-bottom: var(--s-5); }
.benefit h3 { font-size: var(--step-2); letter-spacing: -0.018em; margin-bottom: var(--s-4); }
.benefit p { color: var(--ink-soft); max-width: 38ch; }
@media (max-width: 900px) { .benefits-grid { grid-template-columns: 1fr; gap: var(--s-8); } }

/* ---------- Disciplines (scrolly) ---------- */
.scrolly { padding: clamp(5rem, 4rem + 6vw, 8rem) 0 clamp(4rem, 3rem + 4vw, 6rem); border-top: 1px solid var(--line); }
.scrolly-head { margin-bottom: var(--s-10); }
.scrolly-inner { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }

.sticky-visual { grid-row: 1; grid-column: 1; position: sticky; top: 0; height: 100vh; display: grid; place-items: center; z-index: 1; }
.visual-stage {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; max-height: 64vh;
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--paper-alt);
  box-shadow: var(--shadow-2); overflow: hidden;
}
.visual-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(17,130,164,.14), rgba(11,15,18,.20));
}
.visual-item {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.03);
  transition: opacity .5s var(--ease-in-out), transform .9s var(--ease-out);
}
.visual-item.is-active { opacity: 1; transform: none; }
.visual-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.02); }

.steps { grid-row: 1; grid-column: 2; position: relative; z-index: 1; display: flex; flex-direction: column; }
.step { min-height: 84vh; display: flex; flex-direction: column; justify-content: center; padding: var(--s-8) 0; }
.step-label { font-size: var(--step--1); text-transform: uppercase; letter-spacing: var(--label-tracking); color: var(--accent-strong); font-weight: 600; margin-bottom: var(--s-4); }
.step-title { font-size: var(--step-4); letter-spacing: -0.03em; line-height: 1.0; color: var(--ink); margin-bottom: var(--s-6); }
.step-title::after { content: ""; display: block; width: 72px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 28%, transparent)); margin-top: var(--s-5); transform-origin: left; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .step-title::after { animation: lineGrow both; animation-timeline: view(); animation-range: entry 6% entry 34%; }
    @keyframes lineGrow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
  }
}
.step-lead { font-size: var(--step-1); color: var(--ink); font-weight: 500; line-height: 1.4; margin-bottom: var(--s-4); max-width: 42ch; }
.step-body { color: var(--ink-soft); max-width: 48ch; }
.step-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-6); max-width: 48ch; }
.step-tags li { font-size: var(--step--1); color: var(--ink-soft); padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.step-media { display: none; } /* desktop: sticky visual handles it */

/* ---------- 'Meer over' link in een specialisatie ---------- */
.step-more { margin-top: var(--s-5); font-size: var(--step-1); }

/* ---------- Netwerk (deep-teal kleurblok) ---------- */
.network { position: relative; padding: clamp(6rem, 5rem + 7vw, 10rem) 0; border-block: 1px solid var(--deep-line); background: var(--deep); color: var(--on-deep); overflow: hidden; }
.network::before {
  content: ""; position: absolute; inset: 0; opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.network > .container { position: relative; z-index: 1; }
.network .micro-label { color: var(--on-deep-eyebrow); }
.network .section-title { color: #fff; }
.network-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.network-body { color: var(--on-deep-soft); font-size: var(--step-1); line-height: 1.5; margin-top: var(--s-6); max-width: 56ch; }
.network-points { display: grid; align-content: start; }
.network-points li {
  position: relative; padding: var(--s-5) 0 var(--s-5) var(--s-6);
  border-top: 1px solid var(--deep-line); color: var(--on-deep); font-size: var(--step-0);
}
.network-points li:last-child { border-bottom: 1px solid var(--deep-line); }
.network-points li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px;
  background: var(--on-deep-eyebrow); transform: translateY(-50%);
}

/* ---------- In de praktijk ---------- */
.practice { padding: clamp(6rem, 5rem + 6vw, 9rem) 0; border-top: 1px solid var(--line); }
.practice-inner { max-width: 820px; }
.practice-text { font-size: var(--step-2); line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); font-weight: 500; }
.practice-kvcw { margin-top: var(--s-6); font-size: var(--step-1); color: var(--ink-muted); max-width: 60ch; }

/* ---------- Focus: lokale ondernemers (highlight) ---------- */
.focus {
  padding: clamp(6rem, 5rem + 6vw, 9rem) 0; border-top: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 16%, var(--paper)), var(--paper) 74%);
}
.focus-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.focus-figure { display: flex; flex-direction: column; }
.focus-num {
  font-size: clamp(4.5rem, 3rem + 9vw, 9rem); font-weight: 600; line-height: .88;
  letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums;
}
.focus-num-label { margin-top: var(--s-5); font-size: var(--step-1); color: var(--ink-soft); max-width: 24ch; }
.focus-text .section-title { margin-bottom: var(--s-5); }
.focus-body { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; max-width: 54ch; }
.focus-tags { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.focus-tags li {
  font-size: var(--step--1); font-weight: 500; color: var(--ink);
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}

/* ---------- Over ---------- */
.about { padding: clamp(6rem, 5rem + 6vw, 9rem) 0; border-top: 1px solid var(--line); background: var(--paper-alt); }
.about-grid { max-width: 66ch; }
.about-text .section-title { margin-bottom: var(--s-6); }
.about-text p { color: var(--ink-soft); margin-top: var(--s-5); font-size: var(--step-1); line-height: 1.5; }
.about-text p:first-of-type { margin-top: 0; }

/* ---------- Dark CTA ---------- */
.cta-dark { position: relative; background: radial-gradient(120% 130% at 80% 8%, #0f4254 0%, #0a1a22 50%, #070f14 100%); color: var(--dark-ink); padding: clamp(6rem, 5rem + 7vw, 10rem) 0; overflow: hidden; }
.cta-dark::before {
  content: ""; position: absolute; inset: 0; opacity: .035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cta-inner { position: relative; text-align: center; max-width: 820px; margin-inline: auto; }
.cta-title { font-size: var(--step-4); line-height: 1.08; letter-spacing: -0.022em; color: #fff; font-weight: 600; }
.cta-sub { font-size: var(--step-1); color: var(--dark-muted); margin: var(--s-6) auto 0; max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-6); margin-top: var(--s-8); }
.cta-dark .btn-primary { background: var(--accent); }
.cta-dark .btn-primary:hover { background: #1493b9; }

/* ---------- Contact ---------- */
.contact { padding: clamp(6rem, 5rem + 6vw, 9rem) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-lead { color: var(--ink-soft); font-size: var(--step-1); margin-top: var(--s-5); max-width: 38ch; }
.contact-direct { margin-top: var(--s-8); }
.contact-line { display: flex; flex-direction: column; gap: 3px; padding: var(--s-5) 0; border-top: 1px solid var(--line); transition: padding-left .25s var(--ease-out); }
a.contact-line:hover { padding-left: var(--s-3); }
.contact-line:last-child { border-bottom: 1px solid var(--line); }
.cl-label { font-size: var(--step--1); text-transform: uppercase; letter-spacing: var(--label-tracking); color: var(--ink-muted); }
.cl-value { font-size: var(--step-1); font-weight: 500; color: var(--ink); }
a.contact-line:hover .cl-value { color: var(--accent-strong); }

.contact-form { border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.75rem, 4vw, 2.5rem); background: var(--paper-alt); box-shadow: var(--shadow-1); }
.field { margin-bottom: var(--s-5); }
.field label { display: block; font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); margin-bottom: var(--s-2); }
.field input, .field textarea {
  width: 100%; padding: 12px 15px; font: inherit; font-size: var(--step-0);
  color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: 11px; transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-strong);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent-strong);
}
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form .btn { margin-top: var(--s-2); min-height: 50px; }
.btn.is-loading .btn-text { visibility: hidden; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: var(--s-4); font-size: var(--step-0); min-height: 1.3em; }
.form-status.ok { color: #157a55; }
.form-status.err { color: #b4452f; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--s-12) 0 var(--s-8); background: var(--paper-alt); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-8); padding-bottom: var(--s-8); border-bottom: 1px solid var(--line); }
.footer-logo { height: 26px; width: auto; margin-bottom: var(--s-4); }
.footer-logo--dark { display: none; }
.footer-brand p { color: var(--ink-muted); max-width: 32ch; }
.footer-side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
.footer-links { display: flex; gap: var(--s-6); }
.footer-meta { color: var(--ink-muted); font-size: var(--step--1); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-5); color: var(--ink-muted); font-size: var(--step--1); }

/* ============================================
   Subpages (detailpagina's)
   ============================================ */
.page-hero { padding: clamp(7rem, 6rem + 8vw, 11rem) 0 clamp(2.5rem, 2rem + 4vw, 4.5rem); }
.page-hero-inner { max-width: 820px; }
.page-hero h1 { font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.026em; margin-bottom: var(--s-6); }
.page-hero .lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; line-height: 1.5; }
.back-link { display: inline-block; margin-bottom: var(--s-6); font-size: var(--step-0); color: var(--ink-soft); }
.back-link:hover { color: var(--accent-strong); }

.prose { padding: clamp(4rem, 3rem + 5vw, 7rem) 0; border-top: 1px solid var(--line); }
.prose.alt { background: var(--paper-alt); }
.prose-inner { max-width: 780px; }
.prose-inner .section-title { font-size: var(--step-3); margin-bottom: var(--s-5); }
.prose-inner p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.6; max-width: 68ch; }
.prose-inner p + p { margin-top: var(--s-5); }

.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 3vw, 2rem); margin-top: var(--s-10); }
.stat-card { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-1); }
.prose.alt .stat-card { background: var(--paper); }
.sc-num { font-size: clamp(2.75rem, 1.8rem + 5vw, 4.25rem); font-weight: 600; letter-spacing: -0.04em; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.sc-label { margin-top: var(--s-4); color: var(--ink); font-size: var(--step-0); line-height: 1.45; }
.sc-source { margin-top: var(--s-4); font-size: var(--step--1); color: var(--ink-muted); }

.auto-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 4rem); margin-top: var(--s-8); }
.auto-list li { display: flex; gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--line); color: var(--ink); font-size: var(--step-1); }
.auto-list li::before { content: ""; flex: 0 0 auto; width: 14px; height: 2px; background: var(--accent-strong); margin-top: 0.72em; }

@media (max-width: 680px) {
  .stat-cards { grid-template-columns: 1fr; }
  .auto-list { grid-template-columns: 1fr; }
}

/* ============================================
   Motion — reveals (JS fallback baseline)
   ============================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.is-in { transition-delay: var(--d, 0s); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 1; transform: none; animation: revealUp both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes revealUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
    .hero-title { animation: heroPin both; animation-timeline: scroll(root block); animation-range: 0 55vh; }
    @keyframes heroPin { from { letter-spacing: -0.018em; transform: translateY(0); } to { letter-spacing: -0.034em; transform: translateY(-6px); } }
    .scroll-progress { transform: scaleX(0); animation: progress both linear; animation-timeline: scroll(root block); }
    @keyframes progress { to { transform: scaleX(1); } }
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .about-grid, .contact-grid, .network-grid, .focus-grid { grid-template-columns: 1fr; }
  .network-points { margin-top: var(--s-2); }
  .scrolly-inner { grid-template-columns: 1fr; gap: 0; }
  .sticky-visual { display: none; }
  .steps { gap: 0; }
  .step { min-height: auto; padding: var(--s-8) 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }

  /* Mobile: full discipline image card */
  .step-media {
    display: block; position: relative; overflow: hidden;
    aspect-ratio: 16/10; margin-bottom: var(--s-6);
    border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-1);
  }
  .step-media img {
    width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.02);
    transform: scale(1.16); transition: transform 1.5s var(--ease-out); will-change: transform;
  }
  /* photo zooms out as the card scrolls into view (class-driven: works on every browser) */
  .step-media.is-in img { transform: scale(1); }
  .step-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(160deg, rgba(17,130,164,.14), rgba(11,15,18,.18));
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .step-media img { transform: none; transition: none; }
}


@media (max-width: 680px) {
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--s-5);
    background: var(--paper); border-left: 1px solid var(--line); padding: 0 var(--s-8);
    transform: translateX(100%); transition: transform .4s var(--ease-emphasized);
  }
  .site-nav.open { transform: translateX(0); box-shadow: -30px 0 60px -30px rgba(0,0,0,.25); }
  .nav-link { font-size: var(--step-2); color: var(--ink); }
  .nav-toggle { display: flex; z-index: 101; }
  body.menu-open { overflow: hidden; }
  .hero-actions { gap: var(--s-5); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================
   Dark mode (system) — same tokens inverted, teal stays accent
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0f12;
    --paper-alt: #11171d;
    --ink: #f2f5f7;
    --ink-soft: #c0c8ce;
    --ink-muted: #939ea6;
    --line: color-mix(in oklab, #ffffff 12%, transparent);
    --accent: #34b6dc;             /* brighter teal reads better on dark */
    --accent-strong: #34b6dc;
    --accent-weak: color-mix(in oklab, #1182a4 26%, #0b0f12);
    --form-field: #070a0d;         /* inset well, distinct from card */
  }
  body { background: var(--paper); color: var(--ink); }
  .site-header.scrolled { background: color-mix(in oklab, var(--paper) 80%, transparent); }
  .btn-primary { background: #1182a4; color: #fff; }
  .btn-primary:hover { background: #1493b9; }
  .scroll-progress { background: var(--accent); }
  .cta-dark { background: #05080a; }
  /* distinct layering: page → card (paper-alt) → input (form-field) */
  .field input, .field textarea { background: var(--form-field); }
  .field input:focus, .field textarea:focus { box-shadow: 0 0 0 2px var(--paper-alt), 0 0 0 4px var(--accent); }
  /* swap black logo → white logo (robust two-image approach) */
  .brand-logo--light, .footer-logo--light { display: none; }
  .brand-logo--dark, .footer-logo--dark { display: block; }
}
