/* ===== Self-hosted fonts (latin subset, woff2) ===== */
/* Karla en Rubik zijn variabele fonts: één bestand dekt het hele gewichtsbereik. */
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/karla-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/rubik-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/archivo-italic-800-latin.woff2") format("woff2");
}

:root {
  --c-bg: #F8FAFC;                     /* Warm porselein canvas */
  --c-bg-alt: #F1F5F9;                 /* Zacht porselein-grijs tussenblokken */
  --c-text: #1E293B;                    /* Diepantraciet leestekst */
  --c-text-muted: #64748B;              /* Warm leisteen leestekst */
  --c-heading: #0E2A47;                 /* Statig marineblauw voor koppen */
  --c-border: #E2E8F0;                  /* Subtiele rustige randen */
  --c-accent: #0E2A47;                  /* Statig marineblauw primair */
  --c-brand-accent: #173E68;           /* Rijk diepblauw voor accents */
  --c-accent-hover: #173E68;            /* Rijk blauw hover */
  --c-accent-deep: #071527;             /* Ultra-diep marineblauw */
  --c-placeholder: #CBD5E1;
  --c-card: #FFFFFF;                    /* Helderwitte kaarten */
  --c-card-alt: #FFFFFF;

  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --w-narrow: 760px;
  --w-default: 1200px;
  --w-wide: 1280px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 5.5rem;
  --space-xl: 7.5rem;

  --shadow-card: 0 4px 16px rgba(14, 42, 71, 0.04);
  --shadow-card-hover: 0 12px 28px rgba(14, 42, 71, 0.08);
}

* { box-sizing: border-box; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-hover); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--c-heading);
  line-height: 1.35;
  margin: 0 0 0.6em;
  font-weight: 500;
  font-family: var(--font-heading);
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2rem, 4.8vw, 3rem); line-height: 1.4; }
h2 { font-size: clamp(1.6rem, 3vw, 2.375rem); line-height: 1.3; margin-top: 2em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.875rem); line-height: 1.3; margin-top: 1.6em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

blockquote {
  margin: 2.5em 0;
  padding: 0 0 0 1.5em;
  border-left: 4px solid var(--c-accent);
  font-size: 1.25rem;
  font-style: italic;
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--c-heading);
  line-height: 1.5;
}
blockquote::before {
  content: "";
}
blockquote cite {
  display: block;
  margin-top: 0.8em;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--c-text-muted);
  font-family: var(--font-body);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
th, td {
  padding: 0.85em 1em;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-border);
}
th { background: var(--c-bg-alt); font-weight: 600; }

/* layout containers */
.container { max-width: var(--w-default); margin: 0 auto; padding: 0 var(--space-md); }
.container.narrow { max-width: var(--w-narrow); }
.container.wide { max-width: var(--w-wide); }

section { padding: var(--space-lg) 0; }
section.alt { background: var(--c-bg-alt); }

/* header */
/* header */
.site-header {
  border-bottom: 1px solid transparent;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header .nav a { color: rgba(255,255,255,0.95); }
.site-header .nav a:hover { color: #fff; }
.site-header .nav a.active { color: #fff; }
.site-header .nav a:hover::before,
.site-header .nav a.active::before {
  background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.7), 0 0 2px rgba(255,255,255,1);
}
.site-header .btn--phone {
  background: transparent;
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.55);
}
.site-header .btn--phone:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.site-header .hamburger span { background: #fff; }
.site-header .nav__sub {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 12px 32px rgba(12,32,65,0.18);
}
.site-header .nav__sub a { color: var(--c-text); }
.site-header .nav__sub a:hover { background: var(--c-bg-alt); color: var(--c-brand-accent); }

/* solid white header on scroll */
.site-header.is-scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--c-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header.is-scrolled .nav a { color: var(--c-text); }
.site-header.is-scrolled .nav a:hover { color: var(--c-brand-accent); }
.site-header.is-scrolled .nav a.active { color: var(--c-accent); }
.site-header.is-scrolled .nav a:hover::before,
.site-header.is-scrolled .nav a.active::before {
  background: var(--c-accent);
  box-shadow: 0 0 8px rgba(12,32,65,0.35);
}
.site-header.is-scrolled .btn--phone {
  background: var(--c-bg-alt);
  color: var(--c-text);
  border: 1px solid transparent;
}
.site-header.is-scrolled .btn--phone:hover { background: var(--c-brand-accent); color: #fff; }
.site-header.is-scrolled .hamburger span { background: var(--c-text); }
.site-header.is-scrolled .logo img {
  filter: none;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 1rem var(--space-md);
  max-width: var(--w-wide);
  margin: 0 auto;
  transition: padding 0.25s ease;
}
.site-header.is-scrolled .site-header__inner {
  padding: 0.65rem var(--space-md);
}
.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--c-text);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}
.logo img {
  width: 172px;
  max-width: none;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease, width 0.2s ease;
}
@media (max-width: 880px) {
  .logo img { width: 200px; }
}
@media (max-width: 560px) {
  .logo img { width: 150px; }
  .site-header__inner { gap: 0.75rem; padding-left: 1rem; padding-right: 1rem; }
  .site-header .btn--phone { padding: 0.6em 1em; font-size: 0.85rem; }
}
@media (max-width: 380px) {
  .logo img { width: 128px; }
}
.logo:hover { color: var(--c-text); text-decoration: none; }

.nav { display: flex; gap: 2rem; align-items: center; }
.nav a {
  color: var(--c-text);
  font-size: 0.97rem;
  position: relative;
  padding: 0.4em 0;
  transition: color 0.25s ease;
}
.nav a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.25s ease;
  pointer-events: none;
}
.nav a:hover { color: var(--c-brand-accent); text-decoration: none; }
.nav a:hover::before { transform: scaleX(1); opacity: 1; }
.nav a.active { color: var(--c-accent); font-weight: 500; }
.nav a.active::before {
  transform: scaleX(1);
  opacity: 1;
  animation: navActiveIn 0.55s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}
@keyframes navActiveIn {
  0%   { transform: scaleX(0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .nav a::before { transition: opacity 0.2s ease; }
  .nav a:hover::before,
  .nav a.active::before { transform: scaleX(1); animation: none; }
}

.nav__has-sub { position: relative; }
.nav__has-sub > a::after {
  content: " ▾";
  font-size: 0.7em;
}
.nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.5rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 0.5rem 0;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  z-index: 10;
}
.nav__has-sub:hover .nav__sub,
.nav__has-sub:focus-within .nav__sub { display: block; }
.nav__sub a {
  display: block;
  padding: 0.5em 1em;
  font-size: 0.92rem;
}
.nav__sub a:hover { background: var(--c-bg-alt); color: var(--c-brand-accent); }
.nav__sub-group { padding-left: 1em; border-left: 2px solid var(--c-border); margin-left: 0.6em; }

/* ----------------------------------------------------------
   Mega menu — minimal, restrained, brand-aligned
   ---------------------------------------------------------- */
.nav__sub.nav__mega {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 220px;
  padding: 0.6rem 0;
  background: #fff;
  border: 1px solid rgba(12,32,65,0.06);
  border-radius: 4px;
  box-shadow: 0 8px 24px -8px rgba(12,32,65,0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-2px);
  transform-origin: top center;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1),
    visibility 0s linear 0.18s;
  z-index: 20;
}
.nav__has-sub:hover .nav__sub.nav__mega,
.nav__has-sub:focus-within .nav__sub.nav__mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.25, 0.8, 0.25, 1),
    visibility 0s linear 0s;
}

.nav__sub.nav__mega a.nav__mega-item {
  display: block;
  padding: 0.5rem 1.1rem;
  font-size: 0.92rem;
  color: var(--c-text);
  text-decoration: none;
  position: relative;
  background: transparent;
  transition: color 0.2s ease;
}
.nav__sub.nav__mega a.nav__mega-item:hover,
.nav__sub.nav__mega a.nav__mega-item.active { background: transparent; }

/* glow underline — same brand animation as main nav */
.nav__sub.nav__mega a.nav__mega-item::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 4px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--c-brand-accent);
  box-shadow: 0 0 6px var(--c-brand-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}
.nav__sub.nav__mega a.nav__mega-item:hover,
.nav__sub.nav__mega a.nav__mega-item.active { color: var(--c-brand-accent); }
.nav__sub.nav__mega a.nav__mega-item:hover::before,
.nav__sub.nav__mega a.nav__mega-item.active::before { transform: scaleX(1); opacity: 1; }

.nav__sub.nav__mega a.nav__mega-item.active { font-weight: 500; }

/* caret zichtbaar maken zoals live site */
.nav__has-sub > a::after { content: " ▾"; font-size: 0.7em; }

@media (max-width: 880px) {
  .nav__sub.nav__mega {
    position: static;
    min-width: 0;
    transform: none !important;
    box-shadow: none;
    border: none;
    padding: 0.25rem 0 0 0.5rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav__sub.nav__mega,
  .nav__sub.nav__mega a.nav__mega-item::before { transition: opacity 0.2s ease !important; animation: none !important; }
}

.btn {
  display: inline-block;
  padding: 0.7em 1.4em;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--c-accent);
  color: #fff;
}
.btn--primary:hover { background: var(--c-accent-hover); color: #fff; text-decoration: none; }
.btn--primary:focus-visible { box-shadow: 0 0 0 4px rgba(12, 32, 65, 0.18); }
.btn--ghost {
  background: transparent;
  color: var(--c-accent);
  border-color: var(--c-accent);
}
.btn--ghost:hover { background: var(--c-brand-accent); color: #fff; text-decoration: none; }
.btn--ghost:focus-visible { box-shadow: 0 0 0 4px rgba(12, 32, 65, 0.14); }
.btn--phone {
  background: var(--c-bg-alt);
  color: var(--c-text);
  font-weight: 500;
  font-size: 0.9rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn--phone:focus-visible { box-shadow: 0 0 0 4px rgba(12, 32, 65, 0.14); }
.btn--phone::before { display: none; }
.btn--phone:hover { background: var(--c-brand-accent); color: #fff; text-decoration: none; }

/* hero */
.hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}
.hero--image {
  padding: var(--space-md) 0 calc(120px + var(--space-lg));
  min-height: 80vh;
  min-height: 80svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
@media (max-width: 880px) {
  .hero--image { padding-bottom: calc(40px + var(--space-md)); }
}
.hero--image > .container { width: 100%; position: relative; z-index: 1; }
.hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/hero-home.webp') center/cover no-repeat;
  animation: heroKenBurns 8s ease-in-out infinite alternate;
  will-change: transform;
  transform: translateZ(0);
}
@keyframes heroKenBurns {
  from { transform: translateZ(0) scale(1); }
  to   { transform: translateZ(0) scale(1.08); }
}
/* Geen continu lopende GPU-animatie op kleinere/aanraakschermen — bespaart batterij */
@media (max-width: 768px), (hover: none) {
  .hero--image::before { animation: none; }
}
.hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(45, 55, 75, 0.38);
}
.hero--image h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
  font-weight: 500;
}
.hero--image .hero__lead {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3rem);
  margin: 0 0 0.8em;
}
.hero__lead {
  max-width: 60ch;
  margin: 0 0 2em;
  font-size: 1.1rem;
  color: var(--c-text-muted);
}
.hero__ctas {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.hero__ctas .btn {
  padding: 12px 22px;
  font-size: 15px;
  line-height: 1;
}
.hero--image .btn--primary {
  background: #0E2A47;
  border-color: #0E2A47;
}
.hero--image .btn--primary:hover {
  background: #14385f;
  border-color: #14385f;
}
.hero--image .btn--ghost {
  color: #fff;
  border-color: #fff;
}
.hero--image .btn--ghost:hover {
  background: #fff;
  color: var(--c-brand-accent);
}

/* page-hero (smaller hero for inner pages) */
.page-hero {
  padding: var(--space-lg) 0 var(--space-md);
  text-align: center;
}
.page-hero h1 {
  margin-bottom: 0.3em;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.page-hero__sub {
  color: var(--c-text-muted);
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 60ch;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* page-hero met achtergrondfoto */
.page-hero--image {
  position: relative;
  padding: 270px 0 60px;
  min-height: 40vh;
  min-height: 40svh;
  display: flex;
  align-items: flex-start;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.page-hero--image > .container { width: 100%; }
.page-hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(66, 66, 66, 0.52);
  z-index: -1;
}
.page-hero--image h1 {
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
  font-size: clamp(2.2rem, 4vw, 3rem);
}
.page-hero--image .page-hero__sub {
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
  font-style: italic;
  font-family: var(--font-heading);
}
.page-hero--image::after {
  background: linear-gradient(180deg, rgba(20,30,50,0.45) 0%, rgba(20,30,50,0.58) 100%);
}
.page-hero--over-mij {
  background-image: url('../images/eelco-overmij.webp');
  background-position: center 30%;
}
.page-hero--contact { background-image: url('../images/contact-scaled.webp'); }
.page-hero--diensten { background-image: url('../images/diensten-scaled.webp'); }
.page-hero--afas { background-image: url('../images/AFAS-clubhuis.webp'); }
.page-hero--hr { background-image: url('../images/HR-scaled.webp'); }
.page-hero--data { background-image: url('../images/powerbi-data.webp'); }
.page-hero--privacy { background-image: url('../images/HR-scaled.webp'); }
.page-hero--portfolio { background-image: url('../images/HR-scaled.webp'); }
.page-hero--bedankt { background-image: url('../images/contact-scaled.webp'); }
.page-hero--404 { background-image: url('../images/hero-home.webp'); }
/* hero-koptekst onder de vaste header houden; volgt de logo-breekpunten */
@media (max-width: 880px) { .page-hero--image { padding-top: 175px; } }
@media (max-width: 560px) { .page-hero--image { padding-top: 145px; } }
@media (max-width: 380px) { .page-hero--image { padding-top: 130px; } }

/* cards / tile grid */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: var(--space-md);
}
.tile {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-card-hover);
}
a.tile {
  text-decoration: none;
  color: inherit;
}
.tile h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--c-accent);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.tile p { color: #444; flex-grow: 1; font-size: 1rem; line-height: 1.6; margin-bottom: 1.2em; }
.tile__more {
  margin-top: 24px;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  position: relative;
  align-self: flex-start;
}
.tile__more::before {
  content: "";
  position: absolute;
  left: 0;
  right: 1.2em;
  bottom: -2px;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.tile:hover .tile__more::before { transform: scaleX(1); }
.tile:hover .tile__more { color: var(--c-accent-hover); text-decoration: none; }

/* overlap-utility: tegelrow schuift over hero heen */
.tiles-overlap {
  margin-top: -120px;
  position: relative;
  z-index: 2;
}
@media (max-width: 880px) {
  .tiles-overlap { margin-top: -40px; }
}
.tiles-overlap-small { margin-top: -60px; position: relative; z-index: 2; }
@media (max-width: 880px) {
  .tiles-overlap-small { margin-top: -30px; }
}
/* Diensten: kaarten bewust lager dan live — rustige overlap op de hero-overgang */
.tiles-overlap-diensten { margin-top: -24px; position: relative; z-index: 2; }
@media (max-width: 880px) {
  .tiles-overlap-diensten { margin-top: -12px; }
}

.tiles--four {
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 1024px) {
  .tiles--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tiles--four { grid-template-columns: 1fr; }
}
.tile--compact {
  padding: 32px 28px 36px;
  border-top-width: 4px;
}
.tile--compact h3 {
  font-size: 18px;
  margin-bottom: 16px;
}
.tile--compact p,
.tiles--four .tile p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
  color: #444;
}
a.tile--linked {
  text-decoration: none;
  color: inherit;
}
a.tile--linked:hover {
  text-decoration: none;
}
a.tile--linked:hover h3 {
  color: var(--c-accent-hover);
}

/* sector-eyebrow boven een portfolio-case */
.tile__tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-brand-accent);
}

/* tile heading kleur-shift on hover — site-brede merkkleur-echo */
.tile h3 { transition: color 0.25s cubic-bezier(0.25, 0.8, 0.25, 1); }
.tile:hover h3 { color: var(--c-brand-accent); }

/* stats-strip — cijfers met scroll-getriggerde telanimatie (zie main.js) */
.stats { padding: var(--space-lg) 0; }
.stats__list {
  list-style: none; padding: 0; margin: 0 auto;
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: center;
}
@media (max-width: 560px) {
  .stats__list { grid-template-columns: 1fr; gap: var(--space-md); }
}
.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  color: var(--c-accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  font-size: 0.95rem;
  color: var(--c-text-muted);
  margin-top: 0.4em;
}

/* portrait + content split */
.split {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: calc(var(--space-lg) + 1rem);
  align-items: center;
}
/* portfolio-variant — exacte live-waarden (.portfolio-intro) */
.split--portfolio {
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; gap: var(--space-md); }
  .split img { margin-bottom: var(--space-sm); }
}
@media (max-width: 900px) {
  .split--portfolio { grid-template-columns: 1fr; gap: 48px; margin-bottom: 64px; }
}

.portrait-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--c-placeholder);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.35);
  font-size: 0.85rem;
  text-align: center;
  padding: 1em;
}

.portrait-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 8px;
  display: block;
}
.portrait-image--round {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  width: 340px;
  max-width: 100%;
  margin: 0;
  object-position: center top;
}
@media (max-width: 900px) {
  .portrait-image--round { width: 280px; margin: 0 auto; }
}

.banner-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 0 auto var(--space-md);
}

/* avatar placeholder */
.avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* testimonial - Editorial Quote Card */
.testimonial {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3.5rem 3rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
}
.testimonial__quote {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--c-heading);
  margin: 0 0 2rem;
  font-weight: 500;
  font-style: normal;
}
.testimonial__quote::before { content: "“"; font-size: 1.6em; color: var(--c-brand-dark); vertical-align: -0.2em; line-height: 0; }
.testimonial__quote::after { content: "”"; font-size: 1.6em; color: var(--c-brand-dark); vertical-align: -0.2em; line-height: 0; }
.testimonial__person {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
}
.testimonial__name {
  font-weight: 700;
  color: var(--c-heading);
  font-size: 1rem;
}
.testimonial__role {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
}

/* testimonial rotator - roterende referenties */
.testimonial-rotator__track {
  display: grid;
  gap: var(--space-md);
}
.testimonial-rotator__dots { display: none; }

/* Alleen met JS stapelen we de slides; zonder JS staan ze gewoon onder elkaar. */
.testimonial-rotator.is-enhanced .testimonial-rotator__track {
  display: block;
  position: relative;
  gap: 0;
  /* JS zet de hoogte van de actieve referentie; die overgang animeert mee. */
  transition: height 0.5s ease;
}
.testimonial-rotator.is-enhanced .testimonial--slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.testimonial-rotator.is-enhanced .testimonial--slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.testimonial-rotator.is-enhanced .testimonial-rotator__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.8rem;
}
.testimonial-rotator__dot {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--c-placeholder);
  cursor: pointer;
  transition: background-color 0.3s ease, width 0.3s ease;
}
/* Onzichtbare tikzone eromheen, zodat de bolletjes op mobiel goed raakbaar zijn. */
.testimonial-rotator__dot::before {
  content: "";
  position: absolute;
  inset: -12px;
}
.testimonial-rotator__dot:hover { background: var(--c-text-muted); }
.testimonial-rotator__dot.is-active {
  width: 34px;
  background: var(--c-accent);
}
.testimonial-rotator__dot:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-rotator.is-enhanced .testimonial-rotator__track { transition: none; }
  .testimonial-rotator__dot { transition: background-color 0.3s ease; }
  .testimonial-rotator.is-enhanced .testimonial--slide {
    transition: none;
    transform: none;
  }
}

/* CV timeline */
.cv-list { list-style: none; padding: 0; margin: var(--space-md) 0; }
.cv-item {
  padding: 1.4em 0;
  border-top: 1px solid var(--c-border);
}
.cv-item:last-child { border-bottom: 1px solid var(--c-border); }
.cv-item__period {
  color: var(--c-accent);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.2em;
}
.cv-item__title { margin: 0 0 0.2em; font-size: 1.1rem; }
.cv-item__org { color: var(--c-text-muted); font-size: 0.95rem; margin-bottom: 0.5em; }
.cv-item__desc { margin: 0; color: var(--c-text); }

/* numbered steps – linear */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  padding: 1.2em 0 1.2em 3.5rem;
  position: relative;
  border-top: 1px solid var(--c-border);
}
.steps > li:last-child { border-bottom: 1px solid var(--c-border); }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.2em;
  font-weight: 700;
  color: var(--c-accent);
  font-size: 1.1rem;
}
.steps strong { display: block; margin-bottom: 0.2em; }

/* numbered steps – grid layout (afas-style) */
.steps-grid {
  list-style: none;
  padding: 0;
  margin: 3em 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}
@media (max-width: 860px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.steps-grid > li {
  counter-increment: step;
  position: relative;
  padding: 1em 0.5em 0 0.5em;
  transition: transform 0.2s ease;
}
.steps-grid > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -0.3rem;
  top: -2.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(12, 32, 65, 0.08);
  pointer-events: none;
  transition: color 0.2s ease;
}
.steps-grid > li:hover { transform: translateY(-6px); }
.steps-grid > li:hover::before { color: rgba(50, 134, 120, 0.32); }
.steps-grid > li strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--c-heading);
  margin-bottom: 0.4em;
  position: relative;
  z-index: 1;
}
.steps-grid > li p,
.steps-grid > li {
  font-size: 1rem;
  color: #555;
  max-width: 38ch;
  position: relative;
  z-index: 1;
}

/* contact form */
.contact-form {
  display: grid;
  gap: 1em;
  max-width: 560px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}
@media (max-width: 540px) {
  .contact-form__row { grid-template-columns: 1fr; }
}
.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3em;
  color: var(--c-text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--c-text);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 0;
  border-color: var(--c-accent);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form__required { color: var(--c-accent); }

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-info li {
  padding: 0.7em 0;
  border-bottom: 1px solid var(--c-border);
}
.contact-info li:last-child { border-bottom: none; }
.contact-info strong { display: inline-block; min-width: 110px; color: var(--c-text-muted); font-weight: 500; }

/* contact split */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-lg);
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* CTA-banner */
.cta-banner {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--c-bg-alt);
  border-radius: 12px;
  margin: var(--space-lg) 0;
}
.cta-banner h2 { margin-top: 0; }
.cta-banner p { color: var(--c-text-muted); max-width: 50ch; margin-left: auto; margin-right: auto; }

/* horizontale CTA: titel/tekst links, knop rechts (over-mij) */
.cta-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md) var(--space-lg);
  align-items: center;
}
.cta-split h2 { margin: 0 0 0.5em; }
.cta-split p { color: var(--c-text-muted); margin: 0; max-width: 65ch; }
.cta-split__action { justify-self: end; }
.cta-split__action .btn { white-space: nowrap; }
@media (max-width: 760px) {
  .cta-split { grid-template-columns: 1fr; gap: var(--space-md); }
  .cta-split__action { justify-self: start; }
}

/* ===== Ervaring (over-mij) ===== */
.experience-section { overflow: hidden; }

/* "Van X naar Y" blocks */
.transform-block {
  padding: 2em 0;
  border-top: 1px solid var(--c-border);
}
.transform-block:last-of-type { border-bottom: 1px solid var(--c-border); }
.transform-block h3 {
  margin: 0 0 0.5em;
  color: var(--c-accent);
}

/* footer (licht-grijs met groene accent zoals live) */
.site-footer {
  background: #eeeeee;
  color: #555;
  margin-top: 0;
  padding: 3.2rem 2.5rem 1.8rem;
  border-top: 1px solid #F2F5F7;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 2.5rem 1.5rem 1.5rem; }
}
.site-footer h4 {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.4em;
  font-family: var(--font-heading);
}
.site-footer h4 + .site-footer__rule,
.site-footer__rule {
  display: block;
  width: 30px;
  height: 2px;
  background: #0c3b5c;
  margin: 0 0 0.9em 0;
  border: 0;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6em; }
.site-footer a {
  color: #374151;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.site-footer a:hover { color: #0c3b5c; }
.site-footer__grid a:hover { transform: translateX(4px); }
.site-footer__brand p {
  color: #555;
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 32ch;
  margin: 0;
}
.site-footer__logo {
  width: 180px;
  height: auto;
  margin-bottom: 1em;
  display: block;
  filter: none;
  opacity: 1;
}
.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.88rem;
  color: #555;
}
.site-footer__social svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.site-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid #d5d5d5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75em;
  font-size: 0.8rem;
  color: #888;
}
.site-footer__bottom a { color: #6b7280; font-size: 0.8rem; }
.site-footer__bottom a:hover { color: #0c3b5c; }

/* sticky header shrink */
.site-header {
  transition: padding 0.2s ease, box-shadow 0.2s ease;
}
.site-header__inner {
  transition: padding 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.site-header.is-scrolled .site-header__inner {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.site-header.is-scrolled .logo img {
  width: 130px;
  height: auto;
  filter: none;
}

/* hamburger button */
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 60;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.2s ease;
  border-radius: 2px;
}
.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* responsive nav (mobile) */
@media (max-width: 880px) {
  .hamburger { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 1.5rem 2rem;
    gap: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 50;
  }
  body.nav-open .nav {
    transform: translateX(0);
  }
  /* backdrop-filter maakt de header een containing block voor position:fixed,
     waardoor het open menu in de headerbalk opgesloten raakt — dus uitzetten
     zolang het menu open staat */
  body.nav-open .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.nav-open .site-header .nav a { color: var(--c-text); }
  body.nav-open .site-header .nav a:hover { color: var(--c-brand-accent); }
  body.nav-open .logo img { filter: none; }
  body.nav-open .hamburger span { background: var(--c-text); }
  .nav a {
    padding: 0.9em 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--c-border);
  }
  .nav__has-sub { width: 100%; }
  .nav__has-sub > a::after { content: ""; }
  .nav__sub {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: 0;
  }
  .nav__sub a {
    font-size: 0.95rem;
    padding: 0.5em 0;
    border-bottom: 1px solid var(--c-border);
  }
  .nav__sub-group { border-left-color: var(--c-border); }
  body.nav-open {
    overflow: hidden;
  }
  .site-header__inner { padding: 0.8rem var(--space-md); }
}

/* scroll-in reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.tile.reveal { transition-delay: 0.05s; }
.tile.reveal:nth-child(2) { transition-delay: 0.15s; }
.tile.reveal:nth-child(3) { transition-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .site-header, .logo img, .site-header.is-scrolled .logo img { transition: none; }
  .hero--image::before { animation: none !important; }
  .btn:active { transform: none !important; }
  .tile h3 { transition: none !important; }
}

/* back to top button */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 40;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--c-accent-hover); }
/* Zodra de knop een donkerblauw blok raakt, draait hij om: anders valt hij weg. */
.back-to-top.is-on-dark {
  background: #fff;
  color: var(--c-accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.32), 0 0 0 1px rgba(14,42,71,0.10);
}
.back-to-top.is-on-dark:hover { background: #E8EEF5; }

/* cookie notice */
.cookie-notice {
  position: fixed;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  z-index: 80;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.cookie-notice.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cookie-notice__text {
  flex: 1 1 240px;
  font-size: 0.92rem;
  color: var(--c-text);
}
.cookie-notice__text a { color: var(--c-accent); }
.cookie-notice .btn { flex-shrink: 0; }

@media (max-width: 540px) {
  .cookie-notice { left: 1rem; right: 1rem; bottom: 1rem; padding: 1rem; }
  .back-to-top { right: 1rem; bottom: 1rem; }
}

/* form errors + success */
.form-error {
  color: #b00020;
  font-size: 0.85rem;
  margin-top: 0.3em;
}
.contact-form input.has-error,
.contact-form textarea.has-error {
  border-color: #b00020;
}
.form-success {
  display: none;
  background: #e6f4ea;
  color: #18603a;
  padding: 1em 1.2em;
  border-radius: 6px;
  border: 1px solid #b6dec6;
  margin-top: 1em;
}
.form-success.is-visible { display: block; }
.form-error-banner {
  display: none;
  background: #fdecea;
  color: #8c1d1d;
  padding: 1em 1.2em;
  border-radius: 6px;
  border: 1px solid #f5c2c0;
  margin-top: 1em;
}
.form-error-banner a { color: #8c1d1d; text-decoration: underline; }
.form-error-banner.is-visible { display: block; }

/* utility */
.text-center { text-align: center; }
.muted { color: var(--c-text-muted); }

/* ===== Components — match live deviscon.nl ===== */

/* quote-split: italic quote-left + paragraphs-right (AFAS / HR / Data-sub) */
.quote-split {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin: var(--space-md) 0;
}
.quote-split__quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--c-text-muted);
  margin: 0;
  padding-left: 1.2em;
  border-left: 3px solid var(--c-accent);
}
.quote-split__body p { margin: 0 0 1em; }
.quote-split__body p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .quote-split { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* alternating timeline (over-mij Opleiding & Werkervaring) */
.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: var(--space-lg) auto;
  max-width: 880px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 50%;
  width: 1px;
  background: rgba(12, 32, 65, 0.25);
  transform: translateX(-50%);
}
.timeline__item {
  position: relative;
  width: 50%;
  padding-bottom: 2rem;
  box-sizing: border-box;
}
.timeline__item:nth-child(odd) {
  left: 0;
  padding-right: 2.5rem;
}
.timeline__item:nth-child(even) {
  left: 50%;
  padding-left: 2.5rem;
}
.timeline__item:nth-child(odd) .timeline__card { margin-left: auto; }
.timeline__item:nth-child(even) .timeline__card { margin-right: auto; }
.timeline__card {
  max-width: 380px;
}
.timeline__item::after {
  content: "";
  position: absolute;
  top: 1.6rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c-accent);
  z-index: 1;
}
.timeline__item:nth-child(odd)::after { right: -7px; }
.timeline__item:nth-child(even)::after { left: -7px; }
.timeline__card {
  background: #fff;
  padding: 1.3em 1.4em 1.2em;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(12, 32, 65, 0.07), 0 1px 2px rgba(12, 32, 65, 0.04);
  border-top: 2px solid var(--c-accent);
}
.timeline__period {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35em 0.8em;
  border-radius: 2px;
  margin-bottom: 0.8em;
}
.timeline__title {
  margin: 0 0 0.2em;
  font-size: 1.05rem;
  color: var(--c-accent);
  font-weight: 500;
}
.timeline__org {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  margin-bottom: 0.6em;
}
.timeline__desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--c-text);
}
@media (max-width: 760px) {
  .timeline::before { left: 18px; }
  .timeline__item,
  .timeline__item:nth-child(odd),
  .timeline__item:nth-child(even) {
    width: 100%;
    left: 0;
    padding: 0 0 2rem 44px;
  }
  .timeline__item::after,
  .timeline__item:nth-child(odd)::after,
  .timeline__item:nth-child(even)::after {
    left: 11px;
    right: auto;
  }
}

/* Problem / Approach side-by-side stacked cards (HR) */
.problem-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}
.problem-list__col h3 {
  margin: 0 0 1em;
  font-size: 1.05rem;
  color: var(--c-accent);
  text-align: center;
  font-weight: 500;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--c-accent);
}
.problem-list__stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.problem-list__card {
  background: #fff;
  padding: 1.2em 1.4em;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}
.problem-list__card strong {
  display: block;
  color: var(--c-accent);
  margin-bottom: 0.3em;
  font-weight: 500;
}
.problem-list__card p { margin: 0; font-size: 0.95rem; color: #555; }
@media (max-width: 760px) {
  .problem-list { grid-template-columns: 1fr; }
}

/* werkwijze: image background + overlapping white cards (data sub-pages) */
.werkwijze {
  position: relative;
  padding: var(--space-lg) 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
  overflow: hidden;
}
.werkwijze::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.55);
  z-index: -1;
}
.werkwijze__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin: 0 auto;
  max-width: 960px;
}
.werkwijze__card { grid-column: span 2; }
/* If exactly 5 cards: center the last row of 2 */
.werkwijze__card:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
.werkwijze__card:nth-child(5):nth-last-child(1) { grid-column: 4 / span 2; }
.werkwijze__card {
  background: #fff;
  padding: 1.4em 1.5em;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--c-accent);
}
.werkwijze__card h3 {
  margin: 0 0 0.5em;
  font-size: 1.05rem;
  color: var(--c-accent);
  font-weight: 500;
}
.werkwijze__card p { margin: 0; font-size: 0.93rem; color: #555; }
@media (max-width: 880px) {
  .werkwijze__grid { grid-template-columns: repeat(4, 1fr); }
  .werkwijze__card { grid-column: span 2; }
  .werkwijze__card:nth-child(4):nth-last-child(2) { grid-column: 1 / span 2; }
  .werkwijze__card:nth-child(5):nth-last-child(1) { grid-column: 3 / span 2; }
}
@media (max-width: 540px) {
  .werkwijze__grid { grid-template-columns: 1fr; }
  .werkwijze__card,
  .werkwijze__card:nth-child(4):nth-last-child(2),
  .werkwijze__card:nth-child(5):nth-last-child(1) { grid-column: 1; }
}

/* expertise-list (over-mij — Waar ik het verschil maak) */
.expertise-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}
.expertise-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.98rem;
  color: var(--c-text);
}
.expertise-list li:first-child { border-top: 1px solid var(--c-border); }
.expertise-list li::after {
  content: "+";
  flex-shrink: 0;
  width: 1.7em;
  height: 1.7em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(12, 32, 65, 0.06);
  color: var(--c-accent);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  margin-left: 1em;
}

/* accordion (over-mij — Waar ik het verschil maak) */
.expertise-accordion {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
}
.accordion-item {
  border-bottom: 1px solid var(--c-border);
  transition: background 0.25s ease, padding 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.accordion-item:first-child { border-top: 1px solid var(--c-border); }
.accordion-item.is-open {
  background: var(--c-surface);
  border-left: 3px solid var(--c-brand-dark);
  border-radius: var(--radius-card);
  padding: 0 1.2rem;
  margin: 0.6rem 0;
  box-shadow: var(--shadow-card);
  border-bottom-color: transparent;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 1.1em 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  color: var(--c-heading);
  transition: color 0.2s ease;
}
.accordion-trigger:hover { color: var(--c-brand-primary); }
.accordion-icon {
  position: relative;
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
  background: transparent;
  transition: transform 0.25s ease;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.85em;
  height: 2px;
  background: var(--c-brand-dark);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::before { background: var(--c-brand-dark); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel__inner { overflow: hidden; }
.accordion-panel p {
  margin: 0;
  padding: 0 2.7em 1.2em 0;
  color: var(--c-text);
  font-size: 0.95rem;
  line-height: 1.65;
}
@media (prefers-reduced-motion: reduce) {
  .accordion-panel { transition: none; }
  .accordion-icon::before, .accordion-icon::after { transition: none; }
}

/* contact info with icons (contact page) */
.contact-info--icons {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-info--icons li {
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.7em 0;
  border: none;
  font-size: 0.97rem;
}
.contact-info--icons .ci-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--c-bg-alt);
  border-radius: 4px;
  color: var(--c-accent);
  flex-shrink: 0;
}
.contact-info--icons .ci-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* "Wanneer AFAS niet meer werkt" — small tiles with icon */
.warning-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: var(--space-md) 0;
}
.warning-tiles__card {
  background: #fff;
  padding: 1.6em 1.4em;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--c-accent);
  text-align: left;
}
.warning-tiles__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(12, 32, 65, 0.08);
  color: var(--c-accent);
  margin-bottom: 0.8em;
}
.warning-tiles__icon svg { width: 18px; height: 18px; fill: currentColor; }
.warning-tiles__card h3 {
  margin: 0 0 0.4em;
  font-size: 1rem;
  color: var(--c-accent);
  font-weight: 500;
}
.warning-tiles__card p { margin: 0; font-size: 0.93rem; color: #555; }
/* tussenstap: onder 1000px passen er geen drie meer naast elkaar */
@media (max-width: 1000px) {
  .warning-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .warning-tiles { grid-template-columns: 1fr; }
}

/* fix tile-block on data home (uniform with rest) */
.tile p { color: #444; flex-grow: 1; font-size: 0.97rem; line-height: 1.6; }

/* Breadcrumbs: visueel verborgen, blijven in DOM voor screen readers/SEO.
   De BreadcrumbList JSON-LD in elke <head> levert de rich-snippet data. */
.breadcrumbs {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero typing animation ---------- */
.hero-rotate {
  min-height: 1.2em;
}
.hero-rotate__word {
  white-space: nowrap;
}
.hero-rotate__word.is-anchor {
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--c-brand-accent);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.hero-rotate__cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  margin-right: 0.22em;
  background: currentColor;
  vertical-align: -0.1em;
  animation: heroRotateBlink 1s steps(2, start) infinite;
}
@keyframes heroRotateBlink {
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rotate__cursor { animation: none; }
}

/* ==========================================================================
   Restyling & Inzichten (Blog) Extensions
   ========================================================================== */

/* --- Domain Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.8em;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 20px;
  margin-bottom: 0.85rem;
  width: fit-content;
}
.badge--afas {
  background: rgba(14, 42, 71, 0.08);
  color: #0E2A47;
  border: 1px solid rgba(14, 42, 71, 0.18);
}
.badge--hr {
  background: rgba(217, 119, 6, 0.1);
  color: #B45309;
  border: 1px solid rgba(217, 119, 6, 0.22);
}
.badge--data {
  background: rgba(8, 145, 178, 0.1);
  color: #0891B2;
  border: 1px solid rgba(8, 145, 178, 0.22);
}

/* --- Enhanced Tile & Card Hovers --- */
.tile, .card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
  border: 1px solid rgba(0, 0, 0, 0.07);
}
.tile:hover, .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(14, 42, 71, 0.1);
  border-color: rgba(14, 42, 71, 0.18);
}

/* --- Inzichten / Blog Grid & Cards --- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--space-md);
}
.insight-card {
  background: var(--c-surface);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--c-border-strong);
}
.insight-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--c-text-muted);
  margin-bottom: 0.8rem;
}
.insight-card__title {
  font-size: 1.22rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--c-heading);
}
.insight-card__excerpt {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--c-text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.insight-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-brand-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease, color 0.2s ease;
}
.insight-card:hover .insight-card__link {
  gap: 0.6rem;
  color: var(--c-brand-primary);
}

/* --- Dark CTA Section (Editorial Solid Dark Navy) --- */
.section-cta--dark {
  background-color: #0E2A47 !important;
  background: #0E2A47 !important;
  color: #ffffff !important;
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-cta--dark h2 {
  color: #ffffff !important;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}
.section-cta--dark p {
  color: rgba(255, 255, 255, 0.95) !important;
  max-width: 58ch;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}
.section-cta--dark a.btn--primary,
.section-cta--dark .btn--primary {
  background: #ffffff !important;
  color: #0E2A47 !important;
  border-color: #ffffff !important;
  font-weight: 700;
}
.section-cta--dark a.btn--primary:hover,
.section-cta--dark .btn--primary:hover {
  background: #F1F5F9 !important;
  color: #0E2A47 !important;
}
/* tekstlinks in het donkere blok: wit en onderstreept, zonder inline styles */
.section-cta--dark p a:not(.btn) {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Alternerende blokken: tekst aan de ene kant, concrete punten aan de andere,
   en om en om. Geen foto en geen decoratief vlak; de tweede helft licht uit
   wat er in de tekst ernaast staat. Elk blok zit in een eigen section, zodat
   de achtergrondkleur het ritme maakt (zie .alt).
   ========================================================================== */
.altblock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.altblock__body h2 {
  margin: 0 0 0.7em;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--c-accent);
}
.altblock__body p { margin: 0 0 1em; }
.altblock__body p:last-child { margin-bottom: 0; }

.altblock__facts {
  background: #ffffff;
  border-radius: 4px;
  padding: 1.9em 1.7em;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--c-accent);
}
.alt .altblock__facts { background: #ffffff; }
.altblock__facts-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 1.1em;
}
.altblock__facts ul { list-style: none; margin: 0; padding: 0; }
.altblock__facts li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.85em;
  line-height: 1.55;
  font-size: 0.97rem;
  color: #444;
}
.altblock__facts li:last-child { margin-bottom: 0; }
.altblock__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--c-accent);
}

/* afbeelding als tweede helft van een blok, in plaats van een lijst */
.altblock__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
}
.altblock__media img {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
}
/* partnerlogo: kleiner dan een portret, zodat het de tekst niet overstemt */
.altblock__media--logo img { max-width: 240px; }
@media (max-width: 860px) {
  .altblock__media--logo img { max-width: 200px; }
}

/* om en om: bij --flip staan de punten links en de tekst rechts */
.altblock--flip .altblock__body { order: 2; }
.altblock--flip .altblock__facts { order: 1; }

@media (max-width: 860px) {
  .altblock { grid-template-columns: 1fr; gap: var(--space-md); }
  /* gestapeld staat de tekst altijd boven de punten */
  .altblock--flip .altblock__body { order: 0; }
  .altblock--flip .altblock__facts { order: 0; }
}

/* HubBI partnerpagina */
.page-hero--hubbi {
  background: linear-gradient(135deg, #0c2041 0%, #173c63 58%, #328678 100%);
}
.page-hero--hubbi::after {
  background:
    radial-gradient(circle at 80% 20%, rgba(116, 201, 239, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(12, 32, 65, 0.08), rgba(12, 32, 65, 0.28));
}
.hubbi-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: var(--space-lg);
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.hubbi-hero__copy { text-align: left; }
.hubbi-hero__copy .page-hero__sub {
  margin-left: 0;
  max-width: 56ch;
}
.hubbi-hero__label {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: rgba(255,255,255,0.82);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hubbi-hero__visual {
  display: flex;
  justify-content: center;
}
.hubbi-hero__visual img {
  display: block;
  width: min(100%, 330px);
  height: auto;
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.2);
}
.hubbi-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
}
.section-cta--dark .hubbi-cta__link {
  color: #fff;
  font-weight: 700;
  text-decoration-color: rgba(255,255,255,0.55);
  text-underline-offset: 0.2em;
}
.section-cta--dark .hubbi-cta__link:hover { color: #fff; }
@media (max-width: 760px) {
  .hubbi-hero__grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .hubbi-hero__copy { text-align: center; }
  .hubbi-hero__copy .page-hero__sub { margin-left: auto; }
  .hubbi-hero__visual img { width: min(72vw, 260px); }
}


