/* ═══════════════════════════════════════════════════════════
   KOBE CORNELIS — PORTFOLIO
   Design system: warme inkt & papier, Fraunces + Geist,
   een zacht spectrum als accent (inclusie), veel ademruimte.
   ═══════════════════════════════════════════════════════════ */

/* ───────── Thema-tokens (registreerbaar → vloeiend overvloeien) ───────── */
@property --bg     { syntax: '<color>'; inherits: true; initial-value: #0E0C0B; }
@property --fg     { syntax: '<color>'; inherits: true; initial-value: #F3EDE4; }
@property --muted  { syntax: '<color>'; inherits: true; initial-value: #A59D94; }
@property --line   { syntax: '<color>'; inherits: true; initial-value: rgba(243, 237, 228, 0.14); }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #F2A36B; }

:root {
  --ink: #0E0C0B;
  --ink-2: #181513;
  --paper: #F3EDE4;
  --paper-2: #E9E1D5;

  --amber: #F4B474;
  --rose: #EF97AB;
  --lilac: #B2A5F2;
  --sky: #8EC2E8;
  --sage: #9CCDAB;
  --spectrum: linear-gradient(100deg, #F4B474 0%, #EF97AB 28%, #B2A5F2 55%, #8EC2E8 78%, #9CCDAB 100%);

  --font-display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --font-body: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --maxw: 1560px;
  --nav-h: 76px;
  --radius: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --section-pad: clamp(6rem, 14vh, 11rem);
}

[data-theme="dark"] {
  --bg: #0E0C0B;
  --fg: #F3EDE4;
  --muted: #A59D94;
  --line: rgba(243, 237, 228, 0.14);
  --accent: #F2A36B;
  --em-grad: linear-gradient(100deg, #F6BA83 0%, #F197B2 48%, #B4A6FF 100%);
}

[data-theme="light"] {
  --bg: #F3EDE4;
  --fg: #16120F;
  --muted: #6A6057;
  --line: rgba(22, 18, 15, 0.14);
  --accent: #B24A1B;
  --em-grad: linear-gradient(100deg, #B9501F 0%, #A8345F 62%, #6646BE 100%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden; /* fallback: Safari < 16 kent geen clip */
  overflow-x: clip;
}
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: --bg 0.8s var(--ease-out), --fg 0.8s var(--ease-out), --muted 0.8s var(--ease-out),
              --line 0.8s var(--ease-out), --accent 0.8s var(--ease-out);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* Secties volgen het thema van <body> zodra JS de thema-wissel aanstuurt */
section[data-theme], footer[data-theme] { background: var(--bg); color: var(--fg); }
#certificaten { scroll-margin-top: calc(var(--nav-h) + 1rem); }
/* Secties krijgen programmatisch focus na een ankerlink: geen grote focusrand */
section[tabindex="-1"]:focus { outline: none; }
.theme-sync section[data-theme]:not(.is-fixed-theme),
.theme-sync footer[data-theme] {
  --bg: inherit;
  --fg: inherit;
  --muted: inherit;
  --line: inherit;
  --accent: inherit;
  --em-grad: inherit;
  background: transparent;
}

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

/* ───────── Korrel ───────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── Typografie-bouwstenen ───────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.eyebrow span {
  display: inline-grid;
  place-items: center;
  min-width: 2.4em;
  height: 2.4em;
  padding: 0 0.4em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  letter-spacing: 0.04em;
}

.display {
  font-family: var(--font-display);
  font-weight: 330;
  font-size: clamp(3rem, 7.4vw, 7.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
}

.display em,
.hero-tagline em,
.contact-title em,
.quote em,
.stat-num em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  background: var(--em-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
/* Na het opsplitsen krijgt elk woord z'n eigen verloop (background-clip werkt niet door transforms heen) */
.is-split em { background: none; color: inherit; padding-right: 0; }
.is-split em .wi,
.is-split em .sw {
  background: var(--em-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* ruimte zodat het verloop ook onder de schreef (g, j) geschilderd wordt */
  padding: 0.06em 0.08em 0.24em 0;
  margin: -0.06em 0 -0.24em 0;
}
.is-split em .sw { display: inline-block; }

/* Woord-maskers voor reveal-animaties */
.w {
  display: inline-block;
  overflow: hidden;
  overflow: clip;
  vertical-align: top;
  padding: 0.1em 0.08em 0.26em 0.04em;
  margin: -0.1em -0.08em -0.26em -0.04em;
}
.wi { display: inline-block; will-change: transform; }

.sec-head { margin-bottom: clamp(3rem, 8vh, 6rem); }
.sec-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem 4rem;
  flex-wrap: wrap;
}
.sec-intro {
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.08rem;
  padding-bottom: 0.6rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tags li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45em 0.85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}

.icon {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ───────── Knoppen ───────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 1em 1.5em;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out), background-color 0.45s;
  will-change: transform;
}
.btn svg {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--ease-out);
}
.btn:hover svg { transform: translate(2px, 1px); }
.btn::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease-out);
}
.btn:hover::before { width: 260%; }

.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { color: var(--ink); }

.btn--line { border: 1px solid var(--line); color: var(--fg); }
.btn--line::before { background: var(--fg); }
.btn--line:hover { color: var(--bg); border-color: var(--fg); }

/* ───────── Cursor-label (alleen fijne pointers) ───────── */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  scale: 0;
  transition: scale 0.45s var(--ease-out);
}
.cursor.is-active { scale: 1; }
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
  /* Overlay-blending over het hele scherm is duur op gsm's */
  .grain { mix-blend-mode: normal; opacity: 0.035; }
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATIE
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-inline: var(--gutter);
  color: var(--fg);
  transition: transform 0.6s var(--ease-out), color 0.4s;
}
.nav::before {
  content: '';
  position: absolute;
  inset: 10px calc(var(--gutter) - 14px);
  z-index: -1;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--line);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.nav.is-scrolled::before { opacity: 1; transform: none; }
/* Zonder JavaScript is er geen scrollstatus: toon de achtergrond van de navigatie altijd */
html:not(.js) .nav::before { opacity: 1; transform: none; }
.nav.is-hidden { transform: translateY(-115%); }
.nav:has(:focus-visible) { transform: none; }
@supports not selector(:has(*)) { .nav:focus-within { transform: none; } }
.nav.is-scrolled .nav-toggle { border-color: transparent; }

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.nav-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  font-style: italic;
  font-size: 1.05rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  transition: transform 0.6s var(--ease-out);
}
.nav-brand:hover .nav-mark { transform: rotate(-12deg) scale(1.06); }

.nav-links { display: flex; gap: 0.4rem; }
.nav-links a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 450;
  color: color-mix(in srgb, var(--fg) 78%, transparent);
  transition: color 0.3s, background-color 0.3s;
}
.nav-links a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, transparent); }
.nav-links a[aria-current="true"] { color: var(--fg); }
.nav-links a[aria-current="true"]::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--accent); color: var(--ink); }
.nav-cta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6BD49A;
  box-shadow: 0 0 0 0 rgba(107, 212, 154, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(107, 212, 154, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(107, 212, 154, 0); }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem 0.65rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-toggle-icon { position: relative; width: 18px; height: 10px; }
.nav-toggle-icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}
.nav-toggle-icon i:first-child { top: 0; }
.nav-toggle-icon i:last-child { top: calc(100% - 1.5px); }
.menu-open .nav-toggle-icon i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-open .nav-toggle-icon i:last-child { top: 4.25px; transform: rotate(-45deg); }

/* Menu-overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--ink);
  color: var(--paper);
  clip-path: circle(0% at calc(100% - 3rem) 2.4rem);
  visibility: hidden;
  transition: clip-path 0.85s var(--ease-io), visibility 0s linear 0.85s;
  overflow-y: auto;
}
.menu-open .menu {
  clip-path: circle(150% at calc(100% - 3rem) 2.4rem);
  visibility: visible;
  transition: clip-path 0.85s var(--ease-io), visibility 0s;
}
.menu-open .nav {
  color: var(--paper);
  /* Zodra het menu volledig open is: effen balk, zodat gescrolde links niet onder logo/knop schuiven */
  background-color: var(--ink);
  transition: transform 0.6s var(--ease-out), color 0.4s, background-color 0s 0.85s;
}
.menu-open .nav::before { opacity: 0; }
.menu-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
}
.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 4.4rem);
  font-weight: 330;
  line-height: 1.05;
  letter-spacing: -0.03em;
  border-bottom: 1px solid rgba(243, 237, 228, 0.1);
}
@media (max-height: 500px) {
  .menu-list a { font-size: clamp(1.8rem, 11vh, 4.4rem); }
}
.menu-list a span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #A59D94;
  transform: translateY(-0.6em);
}
.menu-list li {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.menu-open .menu-list li { opacity: 1; transform: none; }
.menu-open .menu-list li:nth-child(1) { transition-delay: 0.18s; }
.menu-open .menu-list li:nth-child(2) { transition-delay: 0.22s; }
.menu-open .menu-list li:nth-child(3) { transition-delay: 0.26s; }
.menu-open .menu-list li:nth-child(4) { transition-delay: 0.3s; }
.menu-open .menu-list li:nth-child(5) { transition-delay: 0.34s; }
.menu-open .menu-list li:nth-child(6) { transition-delay: 0.38s; }
.menu-open .menu-list li:nth-child(7) { transition-delay: 0.42s; }
.menu-open .menu-list li:nth-child(8) { transition-delay: 0.46s; }
.menu-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: #A59D94;
}
.menu-foot div { display: flex; gap: 1.2rem; }
.menu-foot a:hover { color: var(--paper); }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background:
    radial-gradient(60% 55% at 72% 46%, rgba(239, 151, 171, 0.22), transparent 70%),
    radial-gradient(45% 45% at 88% 70%, rgba(142, 194, 232, 0.16), transparent 70%),
    radial-gradient(50% 50% at 60% 25%, rgba(244, 180, 116, 0.18), transparent 70%),
    var(--ink);
  color: var(--paper);
}
.ribbons {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease;
}
.ribbons.is-on { opacity: 1; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 12, 11, 0.55) 0%, rgba(14, 12, 11, 0) 22%, rgba(14, 12, 11, 0) 58%, rgba(14, 12, 11, 0.78) 100%),
    radial-gradient(90% 70% at 0% 60%, rgba(14, 12, 11, 0.55), transparent 70%);
}

.hero-inner {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 1.4rem);
  padding-bottom: 2rem;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(243, 237, 228, 0.16);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 237, 228, 0.72);
}

.hero-title {
  margin: auto 0;
  padding: 3vh 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4.4rem, min(16.5vw, 29vh), 19rem);
  line-height: 0.84;
  letter-spacing: -0.045em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.hero-line {
  display: block;
  overflow: hidden;
  overflow: clip;
  padding: 0.04em 0 0.1em;
  margin-bottom: -0.06em;
}
.hero-line--2 { padding-left: 17vw; }
.hero-word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; will-change: transform; }

.hero-foot {
  display: grid;
  grid-template-columns: 1fr minmax(0, 29rem);
  align-items: end;
  gap: 2rem 4rem;
}
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 330;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 100;
}
.hero-intro {
  color: rgba(243, 237, 228, 0.8);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero .btn--solid { background: var(--paper); color: var(--ink); }
.hero .btn--line { border-color: rgba(243, 237, 228, 0.3); color: var(--paper); }
.hero .btn--line::before { background: var(--paper); }
.hero .btn--line:hover { color: var(--ink); }

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 2rem;
  display: none;
}

/* Intro-animatie vangnet: zonder JS/GSAP staat alles gewoon zichtbaar */
.js .hero [data-intro] { opacity: 0; }
.js .hero .ch { transform: translateY(110%); }
.is-ready:not(.has-gsap) .hero [data-intro] { opacity: 1; transition: opacity 1s ease; }
.is-ready:not(.has-gsap) .hero .ch { transform: none; transition: transform 1.2s var(--ease-out); }

/* ═══════════════════════════════════════════════════════════
   BAND (marquee)
   ═══════════════════════════════════════════════════════════ */
.band {
  overflow: hidden;
  overflow: clip;
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--section-pad);
}
.band-track, .reel-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 48s linear infinite;
}
.reel-track[data-marquee="-1"] { animation-direction: reverse; }
.marquee-js .band-track, .marquee-js .reel-track { animation: none; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

.band-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(1.4rem, 3vw, 3rem);
  padding-right: clamp(1.4rem, 3vw, 3rem);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.4vw, 6.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-variation-settings: "SOFT" 100;
}
.band-group em { font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--muted); }
.band-group i {
  flex-shrink: 0;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--spectrum);
  background-size: 500% 100%;
}
.band-group i:nth-of-type(5n+1) { background: var(--amber); }
.band-group i:nth-of-type(5n+2) { background: var(--rose); }
.band-group i:nth-of-type(5n+3) { background: var(--lilac); }
.band-group i:nth-of-type(5n+4) { background: var(--sky); }
.band-group i:nth-of-type(5n+5) { background: var(--sage); }

/* ═══════════════════════════════════════════════════════════
   01 · OVER MIJ
   ═══════════════════════════════════════════════════════════ */
.about { padding-bottom: var(--section-pad); }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  align-items: start;
}

.about-photo { position: relative; }
.about-photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: #D9E4F2;
  transform: translateZ(0);
}
.about-photo-frame img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: 50% 30%;
  will-change: transform;
}
.about-photo figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-copy { padding-top: clamp(0rem, 4vw, 4rem); }
.about-copy > p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.about-copy > .about-lead {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  font-weight: 340;
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin-bottom: 2rem;
  font-variation-settings: "SOFT" 100;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.facts > div {
  padding: 1.3rem 1.5rem 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.facts > div:nth-child(odd) { padding-right: 1.5rem; border-right: 1px solid var(--line); }
.facts > div:nth-child(even) { padding-left: 1.5rem; }
.facts dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.facts dd { font-size: 1rem; line-height: 1.5; }
.facts small { color: var(--muted); font-size: 0.86rem; margin-left: 0.25rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(4rem, 10vh, 7rem);
  border-top: 1px solid var(--line);
}
.stats li {
  min-width: 0;
  padding: 2rem 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.stats li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.6vw, 5.4rem);
  font-weight: 280;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  font-variation-settings: "SOFT" 100;
}
.stat-num--text { font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1; letter-spacing: -0.02em; padding-top: 0.4em; }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Interesses: physics-pillen */
.interests { margin-top: clamp(4rem, 10vh, 7rem); }
.interests-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-bottom: 1.4rem;
}
.interests-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 350;
  letter-spacing: -0.02em;
}
.interests-hint { color: var(--muted); font-size: 0.95rem; }

.pillbox {
  position: relative;
  height: clamp(260px, 24vw, 330px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: color-mix(in srgb, var(--fg) 3%, transparent);
  overflow: hidden;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 0.6rem;
  height: 100%;
  padding: 1.5rem;
}
.pill {
  --c: var(--paper-2);
  display: inline-flex;
  align-items: center;
  padding: 0.85em 1.35em;
  border-radius: 999px;
  background: var(--c);
  color: var(--ink);
  font-size: clamp(0.98rem, 1.45vw, 1.2rem);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.pill--big { font-size: clamp(1.15rem, 1.9vw, 1.55rem); }
.pill--ink { background: var(--ink); color: var(--paper); }
.pill--line { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill--spectrum { background: var(--spectrum); }
.pillbox.is-physics .pills { display: block; padding: 0; }
.pillbox.is-physics .pill {
  position: absolute;
  left: 0;
  top: 0;
  cursor: grab;
  will-change: transform;
}
.pillbox.is-physics .pill:active { cursor: grabbing; }
/* Zonder physics (minder beweging, geen JS of Matter.js laadt niet): box groeit mee zodat alle pillen zichtbaar zijn */
@media (prefers-reduced-motion: reduce) {
  .pillbox { height: auto; min-height: clamp(260px, 24vw, 330px); }
  .pills { min-height: inherit; }
}
html:not(.js) .pillbox,
.pillbox.is-static { height: auto; min-height: clamp(260px, 24vw, 330px); }
html:not(.js) .pills,
.pillbox.is-static .pills { min-height: inherit; }

/* ═══════════════════════════════════════════════════════════
   02 · VISIE
   ═══════════════════════════════════════════════════════════ */
.vision { padding: var(--section-pad) 0; border-top: 1px solid var(--line); }
.quote p {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 5.2rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 19ch;
  font-variation-settings: "SOFT" 100;
  text-wrap: pretty;
}
.sw { transition: none; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(4rem, 12vh, 8rem);
}
.pillar { position: relative; padding-top: 1.6rem; }
.pillar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--fg);
  transform-origin: 0 50%;
  transform: scaleX(var(--draw, 1));
}
.pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.4rem;
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 380;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.9rem;
}
.pillar p { color: var(--muted); max-width: 36ch; }
.icon--spectrum { stroke: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   03 · COMPETENTIES (bento)
   ═══════════════════════════════════════════════════════════ */
.skills { padding: var(--section-pad) 0; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  min-height: 300px;
  padding: clamp(1.5rem, 2.4vw, 2.2rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 3.5%, transparent);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s, translate 0.6s var(--ease-out);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: color-mix(in srgb, var(--fg) 28%, transparent); }
.card--wide { grid-column: span 2; }
html:not(.theme-sync) [data-theme="light"] .card:not(.card--link),
.theme-sync body[data-theme="light"] .card:not(.card--link) { background: rgba(255, 255, 255, 0.42); }
.card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.95rem);
  font-weight: 380;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.7rem;
}
.card p { color: var(--muted); max-width: 40ch; }
.card .icon path, .card .icon circle, .card .icon rect {
  stroke-dasharray: 160;
  stroke-dashoffset: 0;
}
.card:hover .icon path, .card:hover .icon circle, .card:hover .icon rect { animation: draw 1.4s var(--ease-out); }
@keyframes draw { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }

.card--spectrum { border-color: transparent; }
.card--spectrum::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--spectrum);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.icon--venn circle { mix-blend-mode: multiply; }
.icon--venn circle:nth-child(1) { stroke: #D9822F; fill: color-mix(in srgb, var(--amber) 35%, transparent); }
.icon--venn circle:nth-child(2) { stroke: #C24B72; fill: color-mix(in srgb, var(--rose) 35%, transparent); }
.icon--venn circle:nth-child(3) { stroke: #6650C8; fill: color-mix(in srgb, var(--lilac) 35%, transparent); }

.card--code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  column-gap: 2rem;
}
.card--code .card-body { grid-column: 1; grid-row: 2; align-self: end; }
.card--code .icon { grid-column: 1; grid-row: 1; }
.code {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  padding: 1.1rem 1.3rem;
  border-radius: 14px;
  background: var(--ink);
  color: #CFC6BB;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.45);
}
.code b { color: var(--rose); font-weight: 500; }
.code i { color: var(--sage); font-style: normal; }

.card--link {
  background: var(--fg);
  color: var(--bg);
  border-color: transparent;
  justify-content: space-between;
}
.card--link::before { display: none; }
.card--link span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  font-weight: 340;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.card--link strong { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.card--link svg {
  width: 1.1em; height: 1.1em;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.5s var(--ease-out);
}
.card--link:hover svg { transform: translateX(6px); }
.card--link:hover { translate: 0 -4px; }

/* ═══════════════════════════════════════════════════════════
   04 · TRAJECT (horizontaal, gepind op desktop)
   ═══════════════════════════════════════════════════════════ */
.journey { position: relative; }
/* Standaard (geen GSAP, minder beweging, smalle schermen): een gewone grid */
.journey-pin { position: relative; padding: var(--section-pad) 0; }
.journey-track {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.journey-intro { max-width: 44rem; }
/* Desktop met animaties: gepind en horizontaal scrollend (klasse via JS) */
.is-horizontal .journey-pin {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  overflow: clip;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
}
.is-horizontal .journey-track {
  flex-direction: row;
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: max-content;
  max-width: none;
  margin: 0;
  will-change: transform;
}
.is-horizontal .journey-intro {
  width: clamp(320px, 36vw, 560px);
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: clamp(1rem, 4vw, 4rem);
}
.journey-intro .display { font-size: clamp(3rem, 6.4vw, 6.6rem); margin-bottom: 1.6rem; }
.journey-intro > p:not(.eyebrow) { color: var(--muted); max-width: 36ch; font-size: 1.08rem; }
.journey-hint {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.journey-hint svg {
  width: 1.1rem; height: 1.1rem;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  animation: nudge 1.8s var(--ease-io) infinite;
}
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(6px); } }
.is-horizontal .journey-hint { display: inline-flex; }

.stops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
}
.is-horizontal .stops { display: flex; gap: clamp(1rem, 2vw, 1.75rem); }
.is-horizontal .stop { width: clamp(310px, 29vw, 440px); }
.stop {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1.7rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--fg) 3.5%, transparent);
  overflow: hidden;
  isolation: isolate;
}
.stop-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stop-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.stop-badge {
  margin-left: auto;
  padding: 0.35em 0.75em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  letter-spacing: 0.08em;
}
.stop-num {
  display: block;
  margin: clamp(2rem, 7vh, 4.5rem) 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 8rem);
  font-weight: 200;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 45%, transparent);
  font-variation-settings: "SOFT" 100;
}
.stop-num--icon svg {
  width: clamp(4.5rem, 7vw, 6rem);
  height: auto;
  fill: none;
  stroke: color-mix(in srgb, var(--fg) 70%, transparent);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.stop-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.stop-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.3vw, 2.2rem);
  font-weight: 380;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}
.stop-org { color: var(--fg); opacity: 0.85; font-size: 0.98rem; margin-bottom: 1rem; }
.stop-desc { color: var(--muted); font-size: 0.96rem; line-height: 1.6; margin-bottom: 1.4rem; }
.stop-desc strong { color: var(--fg); font-weight: 500; }
.stop .tags { margin-top: auto; }

.stop--key { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.stop--key::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.stop--grad::before {
  content: '';
  position: absolute;
  inset: -40% -40% auto auto;
  width: 90%;
  aspect-ratio: 1;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 90deg, var(--amber), var(--rose), var(--lilac), var(--sky), var(--sage), var(--amber));
  filter: blur(60px);
  opacity: 0.35;
}
.stop--next {
  justify-content: flex-start;
  background: transparent;
  border-style: dashed;
}
.stop--next .stop-num { -webkit-text-stroke: 0; color: var(--accent); }
.stop-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
  align-self: flex-start;
  transition: border-color 0.3s, gap 0.4s var(--ease-out);
}
.stop-link:hover { border-color: var(--fg); gap: 0.9rem; }
.stop-link svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.journey-progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 2.2rem;
  right: calc(var(--gutter) + 72px);
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  display: none;
}
.journey-progress span {
  display: block;
  height: 100%;
  background: var(--spectrum);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.is-horizontal .journey-progress { display: block; }
/* Lagere laptop-/tabletschermen: compacter zodat de kaarten en de voortgangsbalk volledig in beeld passen */
@media (min-width: 901px) and (max-height: 899px) {
  .is-horizontal .stop { width: clamp(400px, 32vw, 440px); }
  .is-horizontal .journey-pin { padding: calc(var(--nav-h) + 0.5rem) 0 2.75rem; }
  .is-horizontal .stop { padding: 1.3rem 1.5rem 1.4rem; }
  .is-horizontal .stop-num { margin: 0.9rem 0 0.8rem; font-size: clamp(3.2rem, 8.5vh, 6rem); }
  .is-horizontal .stop-num--icon svg { width: clamp(3rem, 7vh, 5rem); }
  .is-horizontal .journey-progress { bottom: 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════
   05 · PROJECTEN (gestapelde kaarten)
   ═══════════════════════════════════════════════════════════ */
.work { padding: var(--section-pad) 0; }

.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6vh; }
.stack-item {
  position: sticky;
  top: calc(var(--nav-h) + 1rem + var(--i) * 20px);
}
.project {
  --dim: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  min-height: min(76vh, 680px);
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  isolation: isolate;
  background: var(--pc-bg);
  color: var(--pc-fg);
  transform-origin: 50% 0;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -40px rgba(22, 18, 15, 0.55);
}
.project::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #000;
  opacity: var(--dim);
  pointer-events: none;
}
.project--thesis { --pc-bg: #1D1828; --pc-fg: #F3EDE4; --pc-muted: #B3A9C2; --pc-line: rgba(243, 237, 228, 0.16); }
.project--emfi   { --pc-bg: #E5D7C1; --pc-fg: #231D18; --pc-muted: #62554A; --pc-line: rgba(35, 29, 24, 0.16); }
.project--gids   { --pc-bg: #FBF8F4; --pc-fg: #17162A; --pc-muted: #46435A; --pc-line: #DAD1C3; }

.project-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(1.8rem, 3.5vw, 3.4rem);
}
.project-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pc-muted);
  margin-bottom: auto;
}
.project-num {
  display: inline-grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  border: 1px solid var(--pc-line);
  color: var(--pc-fg);
}
.project-title {
  margin-top: 3rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  font-weight: 320;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
  font-variation-settings: "SOFT" 100;
}
.project-desc { color: var(--pc-muted); max-width: 46ch; margin-bottom: 1.6rem; }
.project .tags li { border-color: var(--pc-line); color: var(--pc-muted); }
.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-start;
  margin-top: 2rem;
  padding: 0.95em 1.4em;
  border-radius: 999px;
  background: var(--pc-fg);
  color: var(--pc-bg);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.5s var(--ease-out);
}
.project-cta svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease-out); }
.project:hover .project-cta svg { transform: translate(2px, -2px); }

.project-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Graduaatsproef — document-stapel */
.project--thesis .project-visual {
  background:
    radial-gradient(60% 60% at 60% 40%, rgba(178, 165, 242, 0.22), transparent 70%),
    radial-gradient(50% 50% at 30% 80%, rgba(239, 151, 171, 0.16), transparent 70%);
}
.doc {
  position: absolute;
  width: min(62%, 340px);
  aspect-ratio: 1 / 1.414;
  border-radius: 10px;
  background: #F6F1E9;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.6);
  transition: transform 0.9s var(--ease-out);
}
.doc--back { transform: rotate(-9deg) translate(-14%, 4%); background: #DCD3C6; }
.doc--mid { transform: rotate(5deg) translate(10%, -2%); background: #E9E2D6; }
.doc--front {
  display: flex;
  flex-direction: column;
  padding: 11% 10%;
  color: #1D1828;
  transform: rotate(-1.5deg);
}
.project:hover .doc--back { transform: rotate(-14deg) translate(-26%, 6%); }
.project:hover .doc--mid { transform: rotate(10deg) translate(22%, -4%); }
.project:hover .doc--front { transform: rotate(0deg) translateY(-3%); }
.doc-stripes {
  display: block;
  height: 10px;
  border-radius: 10px;
  background: var(--spectrum);
  margin-bottom: 14%;
}
.doc-kicker {
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 0.8vw, 0.66rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6E6585;
  margin-bottom: 0.8em;
}
.doc-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  font-weight: 380;
  line-height: 1.08;
  letter-spacing: -0.02em;
  hyphens: manual;
}
.doc-lines { display: grid; gap: 7px; margin-top: auto; margin-bottom: 12%; }
.doc-lines i { display: block; height: 5px; border-radius: 4px; background: #E3DCD0; }
.doc-lines i:nth-child(2) { width: 88%; }
.doc-lines i:nth-child(3) { width: 94%; }
.doc-lines i:nth-child(4) { width: 60%; }
.doc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.62rem, 0.9vw, 0.78rem);
  color: #6E6585;
}
.doc-meta b {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.3em 0.6em;
  border-radius: 6px;
  background: #1D1828;
  color: #F6F1E9;
}

/* EMFI — telefoon */
.project--emfi .project-visual {
  background: radial-gradient(70% 60% at 60% 50%, rgba(255, 255, 255, 0.55), transparent 70%);
}
.phone {
  position: relative;
  width: min(46%, 270px);
  aspect-ratio: 860 / 1800;
  border-radius: 38px;
  padding: 9px;
  background: #1C1714;
  box-shadow: 0 50px 80px -40px rgba(60, 40, 20, 0.6), inset 0 0 0 1.5px #3B332D;
  transform: rotate(4deg) translateY(10%);
  transition: transform 0.9s var(--ease-out);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 30px;
}
.project:hover .phone { transform: rotate(0deg) translateY(4%); }
.float-chip {
  position: absolute;
  padding: 0.75em 1.1em;
  border-radius: 999px;
  background: #FFFDF9;
  color: #231D18;
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 18px 40px -18px rgba(60, 40, 20, 0.45);
  transition: transform 0.9s var(--ease-out);
}
.float-chip--a { left: 8%; top: 24%; transform: rotate(-6deg); }
.float-chip--b { right: 7%; bottom: 22%; background: #2D5A4E; color: #EAF4F1; transform: rotate(5deg); }
.project:hover .float-chip--a { transform: rotate(-2deg) translate(-8px, -10px); }
.project:hover .float-chip--b { transform: rotate(2deg) translate(8px, 10px); }

/* Regenbooggids — in de stijl van de site zelf: warm papier, de zesbandige boog, teal */
.project--gids {
  background:
    radial-gradient(40% 55% at 0% 6%, rgba(238, 111, 156, 0.2), transparent 70%),
    radial-gradient(45% 60% at 100% 0%, rgba(70, 179, 214, 0.2), transparent 70%),
    radial-gradient(40% 50% at 46% 108%, rgba(245, 210, 63, 0.2), transparent 70%),
    var(--pc-bg);
}
.project--gids .project-top { color: #6E6A82; }
.project--gids .project-num {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--pc-bg), var(--pc-bg)) padding-box,
    conic-gradient(#EE6F9C, #F4A44A, #F5D23F, #5BBF7A, #46B3D6, #7B6FD4, #EE6F9C) border-box;
}
.project--gids .project-title { font-weight: 560; font-variation-settings: "SOFT" 50; }
.project--gids .tags li { border-color: transparent; background: var(--tone-bg); color: var(--tone); }
.project--gids .tags li:nth-child(1) { --tone: #5B3FC4; --tone-bg: #ECE8FB; }
.project--gids .tags li:nth-child(2) { --tone: #B4234F; --tone-bg: #FCE6EC; }
.project--gids .tags li:nth-child(3) { --tone: #0B6B5D; --tone-bg: #DFF2EC; }
.project--gids .tags li:nth-child(4) { --tone: #A4510B; --tone-bg: #FBEEDA; }
.project--gids .project-cta {
  background: #0B6B5D;
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 24px -10px rgba(11, 107, 93, 0.75);
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.project--gids:hover .project-cta { background: #075247; }

/* De kaart zelf knipt af; zo krijgt de gloed geen harde naad op de kolomrand */
.project--gids .project-visual { place-items: center start; overflow: visible; }
/* Stippenraster, zoals achter de boog op de site */
.project--gids .project-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(23, 22, 42, 0.16) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 55% 45%, #000 10%, transparent 72%);
          mask-image: radial-gradient(ellipse 60% 60% at 55% 45%, #000 10%, transparent 72%);
  opacity: 0.55;
}
/* Zachte regenbooggloed achter het venster */
.gids-glow {
  position: absolute;
  left: 4%;
  top: -6%;
  width: 104%;
  height: auto;
  overflow: visible;
  filter: blur(28px);
  opacity: 0.5;
  pointer-events: none;
}
.gids-glow path { fill: none; stroke-width: 30; stroke-linecap: round; }
.gids-glow path:nth-child(1) { stroke: #EE6F9C; }
.gids-glow path:nth-child(2) { stroke: #F4A44A; }
.gids-glow path:nth-child(3) { stroke: #F5D23F; }
.gids-glow path:nth-child(4) { stroke: #5BBF7A; }
.gids-glow path:nth-child(5) { stroke: #46B3D6; }
.gids-glow path:nth-child(6) { stroke: #7B6FD4; }
.browser {
  position: relative;
  width: 118%;
  margin-left: 4%;
  border-radius: 16px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E9E2D7;
  box-shadow: 0 2px 6px rgba(23, 22, 42, 0.05), 0 50px 90px -40px rgba(23, 22, 42, 0.45);
  transform: perspective(1400px) rotateY(-10deg) rotateX(4deg);
  transform-origin: 0 50%;
  transition: transform 1s var(--ease-out);
}
.project:hover .browser { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg) translateX(-2%); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #F5F0E8;
  border-bottom: 1px solid #E9E2D7;
}
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #DAD1C3; }
.browser-bar i:nth-child(1) { background: #EE8C7E; }
.browser-bar i:nth-child(2) { background: #F0C46B; }
.browser-bar i:nth-child(3) { background: #8BCB8F; }
.browser-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 3px 14px 3px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #E9E2D7;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #6E6A82;
}
.browser-fav { width: 13px; height: 13px; fill: none; stroke-width: 6; stroke-linecap: round; }
.browser-fav path:nth-child(1) { stroke: #EE6F9C; }
.browser-fav path:nth-child(2) { stroke: #F5D23F; }
.browser-fav path:nth-child(3) { stroke: #46B3D6; }
.browser img { width: 100%; height: auto; }

.work-more {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-top: 3rem;
  padding: 1.6rem 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 340;
  letter-spacing: -0.02em;
}
.work-more-plus {
  display: inline-grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 0.9em;
}
.work-more a {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s;
}
.work-more a:hover { border-color: var(--fg); }

/* ═══════════════════════════════════════════════════════════
   06 · CERTIFICATEN
   ═══════════════════════════════════════════════════════════ */
.certs { padding: 0 0 var(--section-pad); }
.cert-list { border-bottom: 1px solid var(--line); }
.cert {
  position: relative;
  display: grid;
  grid-template-columns: 5rem minmax(0, 2.2fr) minmax(0, 1.2fr) 7rem 2.6rem;
  align-items: center;
  gap: 1.5rem;
  padding: 1.8rem 1rem;
  border-top: 1px solid var(--line);
  isolation: isolate;
  transition: color 0.5s var(--ease-out);
}
.cert::before {
  content: '';
  position: absolute;
  inset: -1px 0 0;
  z-index: -1;
  border-radius: 14px;
  background: var(--fg);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease-out), border-radius 0.55s;
}
.cert:hover::before, .cert:focus-visible::before { transform: scaleY(1); }
.cert:hover, .cert:focus-visible { color: var(--bg); }
.cert-year, .cert-platform {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}
.cert-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 360;
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: transform 0.55s var(--ease-out);
}
.cert:hover .cert-title { transform: translateX(0.6rem); }
.cert-org { font-size: 0.98rem; opacity: 0.75; }
.cert-arrow {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: transform 0.55s var(--ease-out), border-color 0.4s, background-color 0.4s;
}
.cert-arrow svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cert:hover .cert-arrow { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   07 · VIDEOGRAFIE (filmstrip)
   ═══════════════════════════════════════════════════════════ */
.reel-sec { padding: var(--section-pad) 0; overflow: hidden; overflow: clip; }
.reel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  margin-bottom: clamp(3rem, 8vh, 5rem);
}
.reel-side { max-width: 30rem; }
.reel-side p { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.6rem; }

.reel {
  display: grid;
  gap: clamp(0.8rem, 1.4vw, 1.2rem);
  transform: rotate(-3deg) scale(1.08);
  padding-block: 2rem;
}
.reel-row { overflow: visible; }
.reel-group {
  display: flex;
  flex-shrink: 0;
  gap: clamp(0.8rem, 1.4vw, 1.2rem);
  padding-right: clamp(0.8rem, 1.4vw, 1.2rem);
}
.tile {
  position: relative;
  flex-shrink: 0;
  width: clamp(260px, 27vw, 440px);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-2);
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.82);
  transition: transform 1.2s var(--ease-out), filter 0.6s;
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 12, 11, 0.85), rgba(14, 12, 11, 0) 55%);
}
.tile:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.tile img[data-fb] { scale: 1.34; }
.tile-cap {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0.95rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: var(--paper);
}
.tile-cap b {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.tile-cap small {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════
   08 · CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background:
    radial-gradient(55% 55% at 30% 70%, rgba(178, 165, 242, 0.2), transparent 70%),
    radial-gradient(45% 45% at 15% 30%, rgba(244, 180, 116, 0.14), transparent 70%),
    var(--ink);
  color: var(--paper);
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
}
.contact-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Extra verduistering links, waar de tekst staat: leesbaar boven de lichte linten */
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(14, 12, 11, 0) 30%, rgba(14, 12, 11, 0) 70%, rgba(14, 12, 11, 0.7) 100%),
    linear-gradient(90deg, rgba(14, 12, 11, 0.62) 0%, rgba(14, 12, 11, 0.5) 40%, rgba(14, 12, 11, 0) 70%),
    radial-gradient(70% 70% at 100% 50%, rgba(14, 12, 11, 0.6), transparent 70%);
}
@media (min-width: 701px) {
  .contact-shade {
    background:
      linear-gradient(180deg, var(--ink) 0%, rgba(14, 12, 11, 0) 30%, rgba(14, 12, 11, 0) 70%, rgba(14, 12, 11, 0.7) 100%),
      linear-gradient(90deg, rgba(14, 12, 11, 0.7) 0%, rgba(14, 12, 11, 0.62) 55%, rgba(14, 12, 11, 0) 85%),
      radial-gradient(70% 70% at 100% 50%, rgba(14, 12, 11, 0.6), transparent 70%);
  }
}
/* Gsm en tablet staand: tekst over de volle breedte, dus een egale verduistering */
@media (max-width: 700px), (max-width: 1024px) and (orientation: portrait) {
  .contact-shade {
    background: linear-gradient(180deg, var(--ink) 0%, rgba(14, 12, 11, 0.62) 25%, rgba(14, 12, 11, 0.62) 80%, rgba(14, 12, 11, 0.85) 100%);
  }
}
.contact .eyebrow { color: rgba(243, 237, 228, 0.7); }
.contact .eyebrow span { border-color: rgba(243, 237, 228, 0.25); color: var(--paper); }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 11.5vw, 12rem);
  font-weight: 290;
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin-bottom: 2rem;
  font-variation-settings: "SOFT" 100;
}
.contact-title em { --em-grad: linear-gradient(100deg, #F6BA83 0%, #F197B2 48%, #B4A6FF 100%); }
.contact-text { max-width: 38ch; font-size: 1.15rem; color: rgba(243, 237, 228, 0.8); margin-bottom: 2.6rem; }

.contact-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.mail {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 1.7rem 0.6rem 0.6rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  font-weight: 380;
  letter-spacing: -0.015em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.4s;
}
.mail:hover { background: #fff; }
.mail-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transition: background-color 0.4s, color 0.4s;
}
.mail-icon svg, .mail-arrow {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mail-icon svg { width: 21px; height: 21px; stroke-width: 1.5; }
.mail-arrow { width: 0.8em; height: 0.8em; stroke-width: 1.6; transition: transform 0.5s var(--ease-out); }
.mail:hover .mail-icon { background: var(--accent); color: var(--ink); }
.mail:hover .mail-arrow { transform: translateX(4px); }
.copy {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 237, 228, 0.25);
  background: rgba(14, 12, 11, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 0.3s, border-color 0.3s;
}
.copy:hover { background-color: rgba(52, 47, 43, 0.72); border-color: rgba(243, 237, 228, 0.5); }
.copy svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.copy.is-copied { border-color: #6BD49A; color: #A9EBC6; }

.socials { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 3rem; }
.socials a {
  position: relative;
  font-size: 1.05rem;
  font-weight: 500;
  padding-bottom: 0.25rem;
}
.socials a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.25);
  transform-origin: left;
  opacity: 0.5;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}
.socials a:hover::after { transform: scaleX(1); opacity: 1; }

/* Footer */
.footer { padding: 1.6rem 0 2rem; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.heart { color: var(--fg); display: inline-block; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
.footer-top:hover { color: var(--fg); }

/* Terug-naar-boven met voortgangsring */
.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: 1.4rem;
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--fg);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  /* Onzichtbaar = ook niet focusbaar met Tab */
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s linear 0.5s;
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s;
}
.to-top svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 1.5; }
.to-top-track { stroke: var(--line); }
.to-top-bar { stroke: var(--accent); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.to-top-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(90deg);
  transform-origin: 24px 24px;
}
.to-top:hover .to-top-arrow { stroke: var(--accent); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 130;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, calc(100% + 3rem));
  visibility: hidden;
  transition: transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform 0.6s var(--ease-out); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-column: span 2; }
  .card--link { grid-column: span 2; min-height: 200px; }
  .cert { grid-template-columns: 4rem minmax(0, 1fr) 2.6rem; row-gap: 0.4rem; }
  .cert-org { grid-column: 2; grid-row: 2; }
  .cert-platform { display: none; }
  .cert-arrow { grid-column: 3; grid-row: 1 / span 2; }
}

/* Tussen tablet en kleine laptop: compactere navigatie zodat alle links passen */
@media (min-width: 901px) and (max-width: 1180px) {
  .nav { gap: 1rem; }
  .nav-name { display: none; }
  .nav-links { gap: 0.1rem; }
  .nav-links a { padding: 0.5rem 0.6rem; font-size: 0.88rem; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero-line--2 { padding-left: 9vw; }
  .hero-foot { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 440px; }
  .about-copy { padding-top: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li { padding: 1.6rem 1rem 1.6rem 0; border-bottom: 1px solid var(--line); }
  .stats li + li { border-left: 0; padding-left: 0; }
  .stats li:nth-child(even) { padding-left: 1.2rem; border-left: 1px solid var(--line); }

  .pillars { grid-template-columns: 1fr; gap: 2.5rem; }

  .stop-num { margin: 2rem 0 1rem; font-size: 4.5rem; }

  .project { grid-template-columns: 1fr; min-height: 0; }
  .project-visual { min-height: 340px; order: -1; }
  .project-title { margin-top: 1.4rem; }
  .project-top { margin-bottom: 0; }
  .browser { width: 92%; margin: 2rem auto; transform: none; }
  .project--gids .project-visual { place-items: center; }
  .phone { transform: rotate(3deg) translateY(18%); width: 200px; }

  /* Zonder JavaScript: geen dode menuknop, maar een horizontaal scrollbare linkstrook */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav-name { display: none; }
  html:not(.js) .nav-links { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  html:not(.js) .nav-links a { white-space: nowrap; }
}

@media (max-width: 700px) {
  .stack-item { position: relative; top: 0; }
  .stack { gap: 1.2rem; }
}
/* Gestapelde projectkaarten alleen sticky als een kaart volledig in beeld past (niet op gsm's in landscape / lage vensters) */
@media (max-width: 900.98px) and (max-height: 959.98px), (max-height: 649.98px) {
  .stack-item { position: relative; top: 0; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(4rem, 23vw, 9rem); padding: 4vh 0 3vh; }
  .hero-line--2 { padding-left: 0; }
  .hero-foot { gap: 1.4rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  .bento { grid-template-columns: 1fr; }
  .card--wide, .card--link { grid-column: auto; }
  .card { min-height: 0; gap: 2rem; }
  .code { display: none; }

  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-child(odd), .facts > div:nth-child(even) { padding: 1.1rem 0; border-right: 0; }

  .stat-num--text { padding-top: 0.2em; font-size: 1.5rem; hyphens: manual; }

  .card--code { display: flex; }
  .cert { grid-template-columns: minmax(0, 1fr) 2.4rem; padding: 1.4rem 0.4rem; }
  .cert-year { grid-column: 1; grid-row: 1; }
  .cert-title { grid-column: 1; grid-row: 2; }
  .cert-org { grid-column: 1; grid-row: 3; }
  .cert-arrow { grid-column: 2; grid-row: 1 / span 3; }

  .reel { transform: rotate(-3deg) scale(1.12); }
  .tile { width: 72vw; }

  .mail { width: 100%; }
  .mail-arrow { margin-left: auto; }
  .copy { width: 100%; justify-content: center; }
  .work-more a { margin-left: 0; }
  .to-top { bottom: 1rem; width: 46px; height: 46px; }
}

@media (max-width: 359px) {
  .project-title { font-size: clamp(1.75rem, 10vw, 2.4rem); }
}
@media (max-width: 339px) {
  .nav-name { display: none; }
}

/* Browsers zonder color-mix(): outline-cijfers en iconen in het traject blijven zichtbaar */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .stop-num { -webkit-text-stroke: 1px rgba(243, 237, 228, 0.45); }
  .stop-num--icon svg { stroke: rgba(243, 237, 228, 0.7); }
  .stop-dot { box-shadow: 0 0 0 4px rgba(242, 163, 107, 0.22); }
  .stop--key { border-color: rgba(242, 163, 107, 0.55); }
}

/* Lage laptopschermen: hero-titel krimpt mee zodat tagline en knoppen boven de vouw blijven */
@media (min-width: 901px) {
  .hero-title { font-size: clamp(4.4rem, min(16.5vw, 29vh, (100svh - 22rem) * 0.47), 19rem); }
}
/* Kleine gsm's (bv. 360x640): iets minder lucht rond de titel */
@media (max-width: 600px) and (max-height: 700px) {
  .hero-title { padding: 2vh 0 1.5vh; }
}
/* Geen flits van titel en navigatie vóór de intro-animatie (het vangnet zet is-ready na 3,5 s) */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.is-ready) .hero-word,
  .js:not(.is-ready) body:not(.page-video) .nav { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   MINDER BEWEGING
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .band-track, .reel-track { animation: none; }
  .js .hero [data-intro] { opacity: 1; }
  .js .hero .ch { transform: none; }
}
