/* =============================================================================
   DE CODEBROUWERIJ — Design System: The Master Brewer's Workshop

   Aesthetic: Industrial Dark Craftsman
   — Deep near-black backgrounds lit by amber (hop gold) accent lighting
   — High-contrast editorial serif headlines (Instrument Serif) contrasting
     with clean geometric body text (Outfit)
   — Monospace annotations (DM Mono) signal technical precision
   — Grain texture, colossal ghost numerals, amber glow reveals

   Conventions:
   - BEM: block__element--modifier
   - rem units (html base = 62.5% → 1rem = 10px)
   - Hover effects ALWAYS inside @media (hover: hover) and (pointer: fine)
   - .js-* classes are never styled here — JS-only selectors
   ============================================================================= */

/* =============================================================================
   0. FONT METRIC OVERRIDES
   Prevents FOUT layout shift when Instrument Serif / Outfit load asynchronously.
   Fallback fonts are size-adjusted to approximate the web fonts' metrics.
   Also disables synthetic bold/italic globally — Instrument Serif ships only
   at 400, so requests for 700/900 would otherwise render as ugly fake-bold.
   ============================================================================= */

html {
  font-synthesis: none;
}

@font-face {
  font-family: 'Display Fallback';
  src: local('Georgia'), local('Times New Roman'), local('serif');
  size-adjust: 100%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Outfit Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('sans-serif');
  size-adjust: 100.2%;
  ascent-override: 92%;
  descent-override: 23%;
  line-gap-override: 0%;
}

/* Hide icons until Material Symbols font has loaded.
   .fonts-loaded is added by main.js via document.fonts.ready. */
.material-symbols-outlined {
  visibility: hidden;
}

html.fonts-loaded .material-symbols-outlined {
  visibility: visible;
}

/* =============================================================================
   1. DESIGN TOKENS
   ============================================================================= */

:root {
  /* --- Base colours (dark theme) --- */
  --color-bg:              #0b0d0f;
  --color-surface:         #111315;
  --color-surface-raised:  #181a1d;
  --color-surface-high:    #1f2226;
  --color-border:          #252a2e;
  --color-border-subtle:   #191c1f;

  /* --- Text --- */
  --color-text:            #f0ede8;
  --color-text-muted:      #bab4ac;  /* ~9:1 on bg — comfortable body/caption */
  --color-text-subtle:     #948e87;  /* ~5.5:1 on bg — passes AA, distinctly dimmer than muted */

  /* --- Amber (primary accent — hop gold) --- */
  --color-amber:           #e8a832;
  --color-amber-light:     #f0be5a;
  --color-amber-dim:       rgba(232, 168, 50, 0.08);
  --color-amber-border:    rgba(232, 168, 50, 0.22);

  /* --- Teal (secondary — brand continuity) --- */
  --color-teal:            #2ec4bb;
  --color-teal-dim:        rgba(46, 196, 187, 0.08);

  /* --- Utility --- */
  --color-on-amber:        #1a1000;

  /* --- Typography --- */
  --font-display: 'Instrument Serif', 'Display Fallback', Georgia, serif;
  --font-body:    'Outfit', 'Outfit Fallback', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --font-size-display-xl: 8rem;
  --font-size-display-lg: 6rem;
  --font-size-display-md: 4.4rem;
  --font-size-display-sm: 3.2rem;
  --font-size-heading-lg: 2.8rem;
  --font-size-heading-md: 2.2rem;
  --font-size-heading-sm: 1.8rem;
  --font-size-body-lg:    1.8rem;
  --font-size-body-md:    1.6rem;
  --font-size-body-sm:    1.4rem;
  --font-size-label:      1.1rem;

  --font-weight-light:     300;
  --font-weight-regular:   400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;
  --font-weight-black:     900;

  --line-height-tight:   1.1;
  --line-height-snug:    1.35;
  --line-height-normal:  1.65;

  --letter-spacing-tight:  -0.03em;
  --letter-spacing-normal:  0em;
  --letter-spacing-wide:    0.07em;
  --letter-spacing-wider:   0.12em;

  /* --- Spacing --- */
  --space-1:  0.4rem;
  --space-2:  0.8rem;
  --space-3:  1.2rem;
  --space-4:  1.6rem;
  --space-5:  2rem;
  --space-6:  2.4rem;
  --space-7:  2.8rem;
  --space-8:  3.2rem;
  --space-10: 4rem;
  --space-12: 4.8rem;
  --space-14: 5.6rem;
  --space-16: 6.4rem;
  --space-20: 8rem;
  --space-24: 9.6rem;
  --space-28: 11.2rem;
  --space-32: 12.8rem;

  /* --- Radius --- */
  --radius-sm:   0.4rem;
  --radius-md:   0.8rem;
  --radius-lg:   1.2rem;
  --radius-xl:   2rem;
  --radius-full: 9999px;

  /* --- Shadows (dark theme — higher base opacity) --- */
  --shadow-xs:    0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-sm:    0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-md:    0 12px 48px rgba(0, 0, 0, 0.5);
  --shadow-lg:    0 24px 80px rgba(0, 0, 0, 0.6);
  --shadow-amber: 0 8px 32px rgba(232, 168, 50, 0.18);

  /* --- Transitions --- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 260ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 420ms cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Layout --- */
  --max-width-content: 124rem;
  --max-width-narrow:  72rem;
  --nav-height:        7rem;
}

/* =============================================================================
   2. RESET & BASE
   ============================================================================= */

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body-md);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =============================================================================
   3. CUSTOM CURSOR
   Small amber ring that follows the pointer on fine-pointer devices.
   Scales up on interactive elements. Hidden on touch.
   ============================================================================= */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 2.4rem;
  height: 2.4rem;
  border: 1.5px solid var(--color-amber);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform;
  transition:
    width var(--transition-base),
    height var(--transition-base),
    opacity var(--transition-fast),
    border-color var(--transition-base);
}

.cursor.is-active  { opacity: 0.7; }

.cursor.is-hovering {
  width: 4.4rem;
  height: 4.4rem;
  border-color: var(--color-amber-light);
  opacity: 0.9;
}

/* =============================================================================
   4. UTILITIES
   ============================================================================= */

/* Skip-to-main-content knop voor keyboard-gebruikers (WCAG 2.4.1).
   Zit off-screen tot hij tab-focus krijgt; dan klapt hij linksboven in beeld. */
.button--skipforwcag {
  position: absolute;
  top: 0;
  left: 0;
  padding: var(--space-3) var(--space-5);
  background: var(--color-amber);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  border: 0;
  border-radius: 0 0 var(--radius-md) 0;
  cursor: pointer;
  z-index: 10000;
  transform: translateY(-100%);
  transition: transform var(--transition-base);
}

.button--skipforwcag:focus,
.button--skipforwcag:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--color-bg);
  outline-offset: -4px;
}

/* Scroll-triggered fade-in — triggered by IntersectionObserver in main.js */
.js-fade-in {
  opacity: 0;
  transform: perspective(700px) translateY(3.2rem) rotateX(-7deg);
  transform-origin: bottom center;
  transition:
    opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-fade-in.is-visible {
  opacity: 1;
  transform: perspective(700px) translateY(0) rotateX(0deg);
}

/* Staggered delay helpers for grouped siblings */
.js-fade-in:nth-child(2) { transition-delay:  80ms; }
.js-fade-in:nth-child(3) { transition-delay: 160ms; }
.js-fade-in:nth-child(4) { transition-delay: 240ms; }
.js-fade-in:nth-child(5) { transition-delay: 320ms; }
.js-fade-in:nth-child(6) { transition-delay: 400ms; }
.js-fade-in:nth-child(7) { transition-delay: 480ms; }
.js-fade-in:nth-child(8) { transition-delay: 560ms; }

/* =============================================================================
   5. BUTTONS
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 1.4rem 3rem;
  font-family: var(--font-body);
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    box-shadow var(--transition-base),
    transform var(--transition-fast),
    background var(--transition-base);
}

.btn--primary {
  background: var(--color-amber);
  color: var(--color-on-amber);
  box-shadow: var(--shadow-amber);
}

.btn--secondary {
  background: var(--color-surface-raised);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(240, 237, 232, 0.25);
}

.btn--large {
  padding: 1.8rem 3.8rem;
  font-size: var(--font-size-body-lg);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--color-amber-light);
    box-shadow: 0 12px 40px rgba(232, 168, 50, 0.32);
    transform: translateY(-2px);
  }

  .btn--secondary:hover {
    background: var(--color-surface-high);
    border-color: var(--color-amber-border);
    transform: translateY(-1px);
  }

  .btn--ghost:hover {
    border-color: rgba(240, 237, 232, 0.5);
    background: rgba(240, 237, 232, 0.05);
    transform: translateY(-1px);
  }
}

/* =============================================================================
   6. SECTION HEADERS (shared)
   ============================================================================= */

.section-header {
  margin-bottom: var(--space-16);
}

/* Amber line + monospace label */
.section-header__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.section-header__eyebrow::before {
  content: '';
  display: inline-block;
  width: 2.4rem;
  height: 1px;
  background: var(--color-amber);
  flex-shrink: 0;
  opacity: 0.6;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5vw, var(--font-size-display-sm));
  font-weight: var(--font-weight-bold);
  font-style: italic;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text);
}

.section-header--light .section-header__eyebrow { color: var(--color-amber); }
.section-header--light .section-header__title   { color: var(--color-text);  }

.section-header__sub {
  margin-top: var(--space-5);
  font-size: var(--font-size-body-lg);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-light);
}

/* Inline links inside body-text blocks — auto-styled so they stand out without
   needing a class. Uses :where() for low specificity so individual overrides
   (e.g. tag-pills with their own link styling) keep working. */
:where(
  .hero__subtitle,
  .hero__spec,
  .section-header__sub,
  .trust__lead,
  .diensten__card-text,
  .waarom__item-text,
  .waarom__quote-text,
  .realisaties__koppelingen-text,
  .werkwijze__step-text,
  .cta__text,
  .sociaalbewijs__text
) a {
  color: var(--color-amber);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: rgba(232, 168, 50, 0.45);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  :where(
    .hero__subtitle,
    .hero__spec,
    .section-header__sub,
    .trust__lead,
    .diensten__card-text,
    .waarom__item-text,
    .waarom__quote-text,
    .realisaties__koppelingen-text,
    .werkwijze__step-text,
    .cta__text,
    .sociaalbewijs__text
  ) a:hover {
    color: var(--color-amber-light);
    text-decoration-color: var(--color-amber-light);
  }
}

/* =============================================================================
   7. NAVIGATION
   ============================================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* Hard-lock the height so iOS Safari can't visually shrink the bar
     when the URL bar collapses mid-scroll. */
  height: var(--nav-height);
  min-height: var(--nav-height);
  background: rgba(17, 19, 21, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-bottom-color var(--transition-base);
  border-bottom: 1px solid transparent;
  /* Force a dedicated GPU layer — stabilises position: fixed and
     backdrop-filter on mobile Safari during address-bar collapse. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.nav.is-scrolled {
  border-bottom-color: var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-8);
  height: 100%;
  min-height: var(--nav-height);
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 4rem;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.nav__link {
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
}

.nav__link--cta {
  padding: 1rem 2.2rem;
  background: var(--color-amber);
  color: var(--color-on-amber);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body-sm);
}

@media (hover: hover) and (pointer: fine) {
  .nav__link:not(.nav__link--cta):hover {
    color: var(--color-text);
  }

  /* Amber underline reveal on nav links */
  .nav__link:not(.nav__link--cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-amber);
    transition: width var(--transition-base);
  }

  .nav__link:not(.nav__link--cta):hover::after {
    width: 100%;
  }

  .nav__link--cta:hover {
    background: var(--color-amber-light);
    box-shadow: var(--shadow-amber);
    transform: translateY(-1px);
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  }
}

/* Hamburger (mobile) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-sm);
}

.nav__hamburger-line {
  display: block;
  height: 1.5px;
  width: 2.4rem;
  background: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-fast), background var(--transition-fast);
}

.nav__hamburger.is-open .nav__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--color-amber);
}

.nav__hamburger.is-open .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-open .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--color-amber);
}

/* Mobile menu */
.nav__mobile {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(17, 19, 21, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-8) var(--space-8);
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-border);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-1rem);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

.nav__mobile.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile-link {
  padding: var(--space-4) var(--space-5);
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  letter-spacing: 0.01em;
}

.nav__mobile-link--cta {
  margin-top: var(--space-4);
  text-align: center;
  background: var(--color-amber);
  color: var(--color-on-amber);
  font-weight: var(--font-weight-semibold);
}

@media (hover: hover) and (pointer: fine) {
  .nav__mobile-link:not(.nav__mobile-link--cta):hover {
    background: var(--color-surface-raised);
    color: var(--color-text);
  }
}

/* =============================================================================
   8. HERO
   ============================================================================= */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  padding-top: var(--nav-height);
  overflow: hidden;
  position: relative;
}

/* Hero video background — seamless 8s loop rendered with Remotion.
   Fades in from 0 to target opacity on load so the first impression is calm. */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: heroVideoFadeIn 2s ease 0.4s forwards;
}

@keyframes heroVideoFadeIn {
  to { opacity: 0.65; }
}

/* Readability veil — permanent dark gradient on the left where the title sits,
   fading to transparent on the right so the video stays visible around the badges. */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    95deg,
    rgba(11, 13, 15, 0.85) 0%,
    rgba(11, 13, 15, 0.7) 35%,
    rgba(11, 13, 15, 0.3) 65%,
    rgba(11, 13, 15, 0) 100%
  );
}

/* Skip the video on mobile — 6.6MB autoplay is heavy on data/battery,
   and portrait cropping of a 16:9 loop makes it dominate the viewport. */
@media (max-width: 768px) {
  .hero__video,
  .hero__veil {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video,
  .hero__veil {
    display: none;
  }
}

/* Grain texture overlay — craft/print atmosphere */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* Amber + teal radial glow */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 75% 25%, rgba(232, 168, 50, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 15% 75%, rgba(46, 196, 187, 0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: var(--space-28) var(--space-8);
  width: 100%;
}

.hero__content {
  max-width: 74rem;
  position: relative;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 3rem;
  height: 1px;
  background: var(--color-amber);
  flex-shrink: 0;
  opacity: 0.6;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7.5vw, var(--font-size-display-lg));
  font-weight: var(--font-weight-bold);
  font-style: italic;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

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

.hero__subtitle {
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-snug);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  max-width: 52rem;
  font-weight: var(--font-weight-light);
}

.hero__spec {
  font-family: var(--font-mono);
  font-size: var(--font-size-body-sm);
  color: var(--color-teal);
  margin-bottom: var(--space-12);
  letter-spacing: 0.02em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-20);
}

/* Stat badges */
.hero__badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-12);
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base);
}

@media (hover: hover) and (pointer: fine) {
  .hero__badge:hover {
    border-color: var(--color-amber-border);
  }
}

.hero__badge-icon {
  font-size: 2rem;
  color: var(--color-amber);
  flex-shrink: 0;
}

.hero__badge-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero__badge-value {
  font-family: var(--font-body);
  font-size: var(--font-size-body-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: 1.2;
}

.hero__badge-label {
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  color: var(--color-text-subtle);
  letter-spacing: 0.04em;
  line-height: 1;
}

/* =============================================================================
   9. TRUST
   ============================================================================= */

.trust {
  background: var(--color-surface);
  padding: var(--space-20) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.trust__lead {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3.8vw, var(--font-size-display-sm));
  font-weight: var(--font-weight-bold);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-10);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-snug);
  text-align: center;
}

.trust__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.trust__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--font-size-body-md);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-light);
}

.trust__check {
  font-size: 1.8rem;
  color: var(--color-amber);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* =============================================================================
   10. DIENSTEN
   ============================================================================= */

.diensten {
  background: var(--color-bg);
  padding: var(--space-32) 0;
}

.diensten__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.diensten__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.diensten__card {
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition:
    border-color var(--transition-base),
    background var(--transition-base),
    transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Amber glow line reveal on hover */
.diensten__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-amber), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

@media (hover: hover) and (pointer: fine) {
  .diensten__card:hover {
    border-color: var(--color-amber-border);
    background: var(--color-surface-raised);
    transform: translateY(-3px);
  }

  .diensten__card:hover::before {
    opacity: 1;
  }
}

.diensten__card-icon {
  width: 4.8rem;
  height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-amber-dim);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  flex-shrink: 0;
  border: 1px solid var(--color-amber-border);
}

.diensten__card-icon .material-symbols-outlined {
  font-size: 2.2rem;
  color: var(--color-amber);
}

.diensten__card-body {
  flex: 1;
  margin-bottom: var(--space-6);
}

.diensten__card-title {
  font-family: var(--font-body);
  font-size: var(--font-size-heading-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-snug);
}

.diensten__card-text {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-light);
}

.diensten__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}

.diensten__card-tag {
  font-family: var(--font-mono);
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-label);
  color: var(--color-text-subtle);
  letter-spacing: 0.02em;
}

/* =============================================================================
   11. WAAROM (DIFFERENTIATIE)
   ============================================================================= */

.waarom {
  background: var(--color-surface);
  padding: var(--space-32) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.waarom__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.waarom__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-20);
}

.waarom__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.waarom__item-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-amber-dim);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-amber-border);
  flex-shrink: 0;
}

.waarom__item-icon .material-symbols-outlined {
  font-size: 1.8rem;
  color: var(--color-amber);
}

.waarom__item-title {
  font-family: var(--font-body);
  font-size: var(--font-size-body-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: var(--line-height-snug);
}

.waarom__item-text {
  font-size: var(--font-size-body-md);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-light);
}

.waarom__quotes {
  text-align: center;
  padding: var(--space-10) 0 0;
  border-top: 1px solid var(--color-border);
}

.waarom__quote {
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.waarom__quote-text {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, var(--font-size-heading-lg));
  font-weight: var(--font-weight-bold);
  font-style: italic;
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
  transition: opacity 0.45s ease, transform 0.45s ease;
  will-change: opacity, transform;
}

.waarom__quote-text.is-exiting {
  opacity: 0;
  transform: translateY(-10px);
}

.waarom__quote-text.is-entering {
  opacity: 0;
  transform: translateY(10px);
  transition: none;
}

.waarom__quote-author {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  color: var(--color-text-subtle);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
}

.waarom__quote-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.waarom__quote-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.waarom__quote-dot--active {
  background: var(--color-amber);
  transform: scale(1.6);
}

@media (hover: hover) and (pointer: fine) {
  .waarom__quote-dot:hover {
    background: var(--color-amber-light);
  }
}

/* =============================================================================
   12. SOCIAAL BEWIJS
   ============================================================================= */

.sociaalbewijs {
  background: var(--color-bg);
  padding: var(--space-24) 0;
}

.sociaalbewijs__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.sociaalbewijs__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, var(--font-size-display-sm));
  font-weight: var(--font-weight-bold);
  font-style: italic;
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.sociaalbewijs__text {
  font-size: var(--font-size-body-lg);
  color: var(--color-text-muted);
  max-width: 52rem;
  line-height: var(--line-height-snug);
  font-weight: var(--font-weight-light);
}

.sociaalbewijs__logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.sociaalbewijs__logo-item {
  padding: var(--space-2) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  color: var(--color-text-subtle);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

/* =============================================================================
   13. REALISATIES
   ============================================================================= */

.realisaties {
  background: var(--color-surface);
  padding: var(--space-32) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.realisaties__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.realisaties__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.realisaties__card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition:
    border-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

@media (hover: hover) and (pointer: fine) {
  .realisaties__card:hover {
    border-color: var(--color-amber-border);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
}

/* Screenshot figure placeholder — 16:9 branded shimmer */
.realisaties__card-figure {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg);
  position: relative;
}

/* Real screenshot inside the figure */
.realisaties__card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) and (pointer: fine) {
  .realisaties__card:hover .realisaties__card-figure img {
    transform: scale(1.05);
  }
}

.realisaties__card-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-bg) 0%,
    var(--color-surface) 30%,
    var(--color-surface-raised) 50%,
    var(--color-surface) 70%,
    var(--color-bg) 100%
  );
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

.realisaties__card-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 20%,
    rgba(232, 168, 50, 0.03) 50%,
    transparent 80%
  );
  background-size: 200% 100%;
  animation: shimmerSweep 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 0%; }
  50%       { background-position: 100% 100%; }
}

@keyframes shimmerSweep {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Body area below the figure */
.realisaties__card-body {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.realisaties__card-sector {
  display: inline-block;
  align-self: flex-start;
  padding: 0.3rem var(--space-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Sector colours — adapted for dark theme */
.realisaties__card-sector--theater,
.realisaties__card-sector--cultuur  { background: rgba(255, 100, 130, 0.1); color: #ff8aaa; }
.realisaties__card-sector--opleiding { background: rgba(255, 196, 50,  0.1); color: #ffc43d; }
.realisaties__card-sector--zorg      { background: rgba(50,  220, 150, 0.1); color: #3de09a; }
.realisaties__card-sector--reizen    { background: rgba(90,  160, 255, 0.1); color: #7ab8ff; }
.realisaties__card-sector--retail    { background: rgba(200, 130, 255, 0.1); color: #d39cff; }
.realisaties__card-sector--corporate { background: var(--color-surface-high);  color: var(--color-text-subtle); }
.realisaties__card-sector--saas      { background: var(--color-teal-dim);      color: var(--color-teal); }

.realisaties__card-name {
  font-family: var(--font-body);
  font-size: var(--font-size-body-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: var(--line-height-snug);
  flex: 1;
}

.realisaties__card-url {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  color: var(--color-amber);
  margin-top: auto;
  letter-spacing: 0.02em;
}

.realisaties__card-url .material-symbols-outlined {
  font-size: 1.3rem;
}

.realisaties__card-url--plain {
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  color: var(--color-text-subtle);
  font-style: normal;
  margin-top: auto;
}

@media (hover: hover) and (pointer: fine) {
  .realisaties__card-url:hover {
    color: var(--color-amber-light);
  }
}

/* Koppelingen callout */
.realisaties__koppelingen {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: var(--space-10);
  background: var(--color-amber-dim);
  border: 1px solid var(--color-amber-border);
  border-radius: var(--radius-xl);
}

.realisaties__koppelingen-body {
  flex: 1;
}

.realisaties__koppelingen-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-3);
}

.realisaties__koppelingen-title {
  font-family: var(--font-display);
  font-size: var(--font-size-heading-md);
  font-weight: var(--font-weight-bold);
  font-style: italic;
  color: var(--color-text);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-4);
}

.realisaties__koppelingen-text {
  font-size: var(--font-size-body-md);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-light);
  max-width: 56rem;
}

.realisaties__koppelingen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-self: flex-start;
}

.realisaties__koppelingen-tag {
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--font-size-body-sm);
  color: var(--color-amber);
  white-space: nowrap;
}

/* =============================================================================
   14. WERKWIJZE
   ============================================================================= */

.werkwijze {
  background: var(--color-bg);
  padding: var(--space-32) 0;
}

.werkwijze__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.werkwijze__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.werkwijze__step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Amber left-edge reveal on hover */
.werkwijze__step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-amber);
  opacity: 0;
  transition: opacity var(--transition-base);
}

@media (hover: hover) and (pointer: fine) {
  .werkwijze__step:hover {
    border-color: var(--color-amber-border);
  }

  .werkwijze__step:hover::before {
    opacity: 1;
  }
}

/* Ghost numeral — -webkit-text-stroke outline style */
.werkwijze__step-number {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: var(--font-weight-black);
  font-style: italic;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-amber-border);
  text-stroke: 1px var(--color-amber-border);
  line-height: 0.9;
  flex-shrink: 0;
  width: 7rem;
  text-align: right;
  transition: -webkit-text-stroke-color var(--transition-base);
}

@media (hover: hover) and (pointer: fine) {
  .werkwijze__step:hover .werkwijze__step-number {
    -webkit-text-stroke-color: var(--color-amber);
  }
}

.werkwijze__step-body {
  padding-top: var(--space-2);
}

.werkwijze__step-title {
  font-family: var(--font-body);
  font-size: var(--font-size-heading-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: var(--line-height-snug);
}

.werkwijze__step-text {
  font-size: var(--font-size-body-md);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
  font-weight: var(--font-weight-light);
}

/* =============================================================================
   15. SLOT CTA
   ============================================================================= */

.cta {
  background: var(--color-surface);
  padding: var(--space-32) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

/* Amber glow from above */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(232, 168, 50, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* Grain texture on CTA */
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-8);
  text-align: center;
  z-index: 1;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5.5vw, var(--font-size-display-md));
  font-weight: var(--font-weight-bold);
  font-style: italic;
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.cta__text {
  font-size: var(--font-size-body-lg);
  color: var(--color-text-muted);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-12);
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: var(--font-weight-light);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

/* =============================================================================
   16. FOOTER
   ============================================================================= */

.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-subtle);
  padding: var(--space-12) 0;
}

.footer__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__logo-mark {
  height: 2.8rem;
  width: auto;
  display: block;
  flex-shrink: 0;
  opacity: 0.3;
}

.footer__tagline {
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  color: var(--color-text-subtle);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-8);
}

.footer__link {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-subtle);
}

@media (hover: hover) and (pointer: fine) {
  .footer__link:hover {
    color: var(--color-amber);
    transition: color var(--transition-fast);
  }
}

.footer__copy small {
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  letter-spacing: 0.04em;
}

/* =============================================================================
   17. RESPONSIVE — TABLET (≥ 640px)
   ============================================================================= */

@media (min-width: 640px) {
  .trust__list {
    grid-template-columns: 1fr 1fr;
  }

  .diensten__grid {
    grid-template-columns: 1fr 1fr;
  }

  .waarom__grid {
    grid-template-columns: 1fr 1fr;
  }

  .realisaties__grid {
    grid-template-columns: 1fr 1fr;
  }

  .realisaties__koppelingen {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-12);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* =============================================================================
   18. RESPONSIVE — DESKTOP (≥ 1024px)
   ============================================================================= */

@media (min-width: 1024px) {
  .nav__hamburger {
    display: none;
  }

  .nav__links {
    display: flex;
  }

  .hero__badges {
    grid-template-columns: repeat(4, 1fr);
  }

  .diensten__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .waarom__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .realisaties__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .werkwijze__steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .werkwijze__step {
    flex-direction: column;
    gap: var(--space-5);
  }

  .werkwijze__step-number {
    font-size: 8rem;
    text-align: left;
    width: auto;
  }

  .sociaalbewijs__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
  }

  .sociaalbewijs__logos {
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
  }
}

/* =============================================================================
   19. RESPONSIVE — MOBILE (≤ 768px)
   ============================================================================= */

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Laat de hero op mobiel niet de volledige viewport vullen — anders valt
     de primaire CTA net onder de vouw en oogt de pagina alsof er niets
     meer onder komt. Content start vanaf boven en de rest scrollt natuurlijk. */
  .hero {
    min-height: auto;
    align-items: flex-start;
  }

  .hero__inner {
    padding: var(--space-10) var(--space-5) var(--space-8);
  }

  .hero__title {
    font-size: clamp(3.6rem, 9vw, 4.8rem);
    margin-bottom: var(--space-5);
  }

  .hero__subtitle {
    margin-bottom: var(--space-3);
  }

  .hero__spec {
    margin-bottom: var(--space-6);
  }

  .hero__actions {
    margin-bottom: var(--space-6);
  }

  .hero__badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust__inner,
  .diensten__inner,
  .waarom__inner,
  .sociaalbewijs__inner,
  .realisaties__inner,
  .werkwijze__inner,
  .cta__inner,
  .footer__inner {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }

  .section-header__title {
    font-size: clamp(2.8rem, 8vw, 3.2rem);
  }

  .waarom__quote-text {
    font-size: var(--font-size-heading-md);
  }
}

/* =============================================================================
   21. PARALLAX & MOTION EFFECTS
   ============================================================================= */

/* Scroll progress bar — amber→teal gradient pinned to the top of the viewport */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-amber) 0%, var(--color-teal) 100%);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1000;
  pointer-events: none;
  will-change: transform;
}

/* Floating animation for hero stat badges — staggered phases so they bob independently */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__badge:nth-child(1) { animation: floatBadge 5.2s 2.2s ease-in-out infinite; }
  .hero__badge:nth-child(2) { animation: floatBadge 4.8s 2.8s ease-in-out infinite; }
  .hero__badge:nth-child(3) { animation: floatBadge 5.6s 3.4s ease-in-out infinite; }
  .hero__badge:nth-child(4) { animation: floatBadge 5.0s 4.0s ease-in-out infinite; }
}

/* 3D card tilt — JS sets inline transform on mousemove;
   this CSS transition springs the card back to neutral on mouseleave */
.diensten__card,
.waarom__item,
.realisaties__card {
  will-change: transform;
  transition:
    transform 500ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color var(--transition-base),
    background var(--transition-base),
    box-shadow var(--transition-base);
}

/* Cursor-tracking spotlight glow inside service cards.
   JS feeds --cx/--cy custom properties that shift the radial-gradient centre. */
.diensten__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--cx, 50%) var(--cy, 50%),
    rgba(232, 168, 50, 0.11) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .diensten__card:hover::after {
    opacity: 1;
  }
}

/* Magnetic button spring-back transition */
@media (hover: hover) and (pointer: fine) {
  .btn--primary,
  .nav__link--cta {
    transition-property: transform, background, color, border-color, box-shadow;
    transition-duration: 350ms, var(--transition-fast), var(--transition-fast), var(--transition-fast), var(--transition-fast);
    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
  }
}

/* =============================================================================
   20. ACCESSIBILITY
   ============================================================================= */

:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-fade-in {
    opacity: 1;
    transform: none;
  }

  /* Hide custom cursor when user prefers reduced motion */
  .cursor {
    display: none;
  }
}

/* =============================================================================
   BLOG — INDEX (lijst) & ARTIKEL (long-form)
   Reuses design tokens. Keeps new styles grouped per component.
   ============================================================================= */

.blog {
  padding: var(--space-20) 0 var(--space-24);
  background: var(--color-bg);
}

.blog__inner {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.blog__intro {
  max-width: 72rem;
  margin: 0 auto var(--space-16);
  text-align: center;
}

.blog__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-3);
  display: inline-block;
}

.blog__title {
  font-family: var(--font-display);
  font-size: var(--font-size-display-sm);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.blog__lead {
  font-size: var(--font-size-body-lg);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.blog__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34rem, 1fr));
  gap: var(--space-8);
}

.blog__card {
  display: flex;
  flex-direction: column;
  padding: var(--space-7) var(--space-7) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.25s ease, background 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .blog__card:hover {
    border-color: var(--color-amber-border);
    background: var(--color-surface-raised);
    transform: translateY(-0.3rem);
  }
}

.blog__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  letter-spacing: 0.04em;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.blog__card-category {
  color: var(--color-amber);
}

.blog__card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-heading-md);
  line-height: 1.18;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.blog__card-excerpt {
  font-size: var(--font-size-body-md);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  flex-grow: 1;
}

.blog__card-link {
  font-family: var(--font-mono);
  font-size: var(--font-size-body-sm);
  color: var(--color-amber);
  letter-spacing: 0.02em;
}

/* ARTIKEL — long-form article layout */

.artikel {
  background: var(--color-bg);
  padding: var(--space-20) 0 var(--space-24);
}

.artikel__inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.artikel__header {
  margin-bottom: var(--space-14);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-12);
}

.artikel__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-5);
}

.artikel__category {
  color: var(--color-amber);
}

.artikel__title {
  font-family: var(--font-display);
  font-size: var(--font-size-display-md);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.artikel__lead {
  font-size: var(--font-size-body-lg);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 62rem;
  margin: 0 auto;
}

.artikel__body {
  font-size: var(--font-size-body-md);
  line-height: 1.75;
  color: var(--color-text-muted);
}

.artikel__body > * + * {
  margin-top: var(--space-6);
}

.artikel__body h2 {
  font-family: var(--font-display);
  font-size: var(--font-size-heading-lg);
  line-height: 1.18;
  color: var(--color-text);
  margin-top: var(--space-14);
  margin-bottom: var(--space-5);
  letter-spacing: -0.01em;
}

.artikel__body h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--font-size-heading-sm);
  line-height: 1.3;
  color: var(--color-text);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.artikel__body p {
  line-height: 1.75;
}

.artikel__body a {
  color: var(--color-amber);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .artikel__body a:hover {
    color: var(--color-amber-light);
  }
}

.artikel__body ul,
.artikel__body ol {
  padding-left: var(--space-6);
}

.artikel__body li {
  margin-bottom: var(--space-3);
  line-height: 1.65;
}

.artikel__body li::marker {
  color: var(--color-amber);
}

.artikel__body strong {
  color: var(--color-text);
  font-weight: 500;
}

.artikel__body blockquote {
  border-left: 3px solid var(--color-amber);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--font-size-body-lg);
  line-height: 1.5;
  font-style: italic;
  color: var(--color-text);
  background: var(--color-amber-dim);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.artikel__body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 0.2rem 0.5rem;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-amber);
}

.artikel__body pre {
  overflow-x: auto;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.artikel__body pre code {
  padding: 0;
  background: none;
  border: none;
  color: var(--color-text);
}

.artikel__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-body-sm);
}

.artikel__body th,
.artikel__body td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.artikel__body th {
  color: var(--color-text);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.artikel__toc {
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-12);
}

.artikel__toc-title {
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-3);
}

.artikel__toc-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.artikel__toc-list a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--font-size-body-sm);
}

@media (hover: hover) and (pointer: fine) {
  .artikel__toc-list a:hover {
    color: var(--color-amber);
  }
}

.artikel__related {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.artikel__related-title {
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: var(--space-5);
  text-align: center;
}

.artikel__related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: var(--space-5);
}

.artikel__related-card {
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s ease, background 0.2s ease;
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .artikel__related-card:hover {
    border-color: var(--color-amber-border);
    background: var(--color-surface-raised);
  }
}

.artikel__related-card-category {
  font-family: var(--font-mono);
  font-size: var(--font-size-label);
  color: var(--color-amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  display: block;
}

.artikel__related-card-title {
  font-size: var(--font-size-body-md);
  line-height: 1.35;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .artikel__title       { font-size: var(--font-size-display-sm); }
  .artikel__body h2     { font-size: var(--font-size-heading-md); }
  .blog__title          { font-size: var(--font-size-heading-lg); }
}

