/* ==========================================================================
   Matthias Stinkens: cv en portfolio
   Alle stijlen in één bestand. Opbouw:
   0. Lettertype        1. Variabelen        2. Reset & basis
   3. Typografie        4. Navigatie         5. Knoppen
   6. Layout & secties  7. Kaarten           8. Hero
   9. Projecten         10. Oproep           11. Footer
   12. Tekstpagina's    13. Lightbox         14. Cv
   15. Scroll reveal    16. Reduced motion   17. Muiscirkel
   18. Logo's
   Mobile first: basis = mobiel, daarna 48em (768px) en 64em (1024px).
   Stijl: licht en zakelijk met kleur. Wit, groene knoppen, saliegroene vlakken, donkergroene oproep en footer, geel als klein accent. Enkel Geist.
   ========================================================================== */

/* 0. Lettertype: Geist, zelf gehost (geen verbinding met Google). SIL Open Font License, zie /fonts/OFL-geist.txt. */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. Variabelen ------------------------------------------------------------ */
:root {
  color-scheme: light;

  /* Achtergronden: wit met een heel licht grijs voor vlakken */
  --bg: #FFFFFF;
  --bg-2: #FFFFFF;            /* zachte lagen: ook wit (beslist 11 oktober 2026) */
  --surface: #FFFFFF;         /* kaarten */
  --surface-2: #F5F5F3;       /* vlakken, beelden die laden, hover van knoppen */
  --line: #E7E7E4;
  --line-strong: #D4D4D0;

  /* Tekst */
  --text: #111111;            /* bijna zwart, 18,9:1 op wit */
  --muted: #5E5E59;           /* grijs, 6,6:1 op wit en 6,1:1 op --surface-2 (AA) */

  /* Merkkleur: groen voor knoppen, links, labels en focus */
  --ink: #0F6E56;             /* groene knop: witte tekst 6,2:1 */
  --ink-hover: #0A5341;
  --on-ink: #FFFFFF;
  --accent: #0F6E56;          /* 6,2:1 op wit: mag als tekst */
  --accent-hover: #0A5341;    /* 9,0:1 op wit */
  --accent-soft: #E3EFE9;

  /* Kleurvlakken */
  --tint: #EEF5F1;            /* saliegroen: om de andere sectie, tags, labels */
  --tint-line: #D3E6DC;
  --deep: #0D3B30;            /* donkergroen: oproep en footer, witte tekst 12:1 */
  --on-deep-muted: #BFD8CD;   /* grijsgroene tekst op donkergroen, 8,9:1 */
  --warm: #F2C14E;            /* geel, enkel decoratief (portret, streepje onder labels) */

  /* Rand van invulvelden: minstens 3:1 contrast (WCAG 1.4.11) */
  --control-border: #8A8A84;

  /* Enkel voor foutmeldingen */
  --error: #B42318;           /* 6,5:1 op wit */

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Maatvoering */
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-space: clamp(5rem, 10vw, 8rem);
  --radius: 1rem;
  --radius-small: 0.625rem;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px -12px rgba(17, 17, 17, 0.1);
  --shadow-lift: 0 1px 2px rgba(17, 17, 17, 0.04), 0 18px 40px -18px rgba(17, 17, 17, 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset & basis --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
  background-color: var(--bg);
}

body {
  overflow-wrap: break-word;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

img,
video {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* 3. Typografie ------------------------------------------------------------ */
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--text);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.lead {
  max-width: 38rem;
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
  color: var(--muted);
}

/* Klein groen label in kapitalen boven een sectie */
.eyebrow {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Tweede deel van de naam: zelfde kleur, enkel zodat de naam in de pdf en op de site gelijk opgebouwd is */
.name-accent {
  color: inherit;
}

/* 4. Navigatie ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}

/* Wit glas op ::before, zodat het mobiele menu niet aan de header vast komt te zitten */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before {
    background: rgba(255, 255, 255, 0.98);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.875rem var(--gutter);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem; /* tikdoel van 44px */
  gap: 0.625rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-logo:hover,
.nav-logo:focus-visible {
  color: var(--text);
}

.nav-logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
}

.nav-toggle {
  display: none;
  place-content: center;
  gap: 0.375rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.nav-toggle-line {
  display: block;
  width: 1.125rem;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: var(--surface-2);
}

.nav-link[aria-current="page"] {
  color: var(--accent-hover);
  background: var(--tint);
}

/* Met JavaScript op mobiel: links in een uitklapmenu. Zonder JS blijven ze gewoon zichtbaar. */
@media (max-width: 47.99em) {
  .js .nav-toggle {
    display: inline-grid;
  }

  .js .nav-links {
    position: fixed;
    inset: 4.5rem 0.75rem auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s;
  }

  .js .nav-links.is-open {
    visibility: visible;
    opacity: 1;
  }

  .js .nav-link {
    padding: 0.875rem 1rem;
    font-size: 1.125rem;
  }

  .js .nav-links .btn {
    margin-top: 0.5rem;
  }
}

/* 5. Knoppen --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 550;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, translate 0.3s var(--ease);
}

.btn--primary {
  background: var(--ink);
  color: var(--on-ink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--ink-hover);
  color: var(--on-ink);
  box-shadow: 0 8px 20px -10px rgba(17, 17, 17, 0.5);
}

.btn--secondary {
  background: var(--bg);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  color: var(--text);
  border-color: var(--text);
  background: var(--surface-2);
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover,
  .btn:focus-visible {
    translate: 0 -1px;
  }
}

.btn--small {
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 6. Layout & secties ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: var(--section-space) 0 0;
}

.section-head {
  display: grid;
  gap: 0.875rem;
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.125rem;
}

/* Het label boven een sectietitel blijft groen en klein */
.section-head .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--accent);
  font-size: 0.8125rem;
}

.section-head .eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 3px;
  border-radius: 3px;
  background: var(--warm);
}

/* Om de andere sectie op een saliegroen vlak over de volle breedte */
/* Om de andere sectie: wit zoals de rest, gescheiden door een dunne lijn (zoals stripe.com) */
.section--tint {
  margin-top: var(--section-space);
  padding-bottom: var(--section-space);
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--tint:last-child,
main > .section--tint:last-of-type {
  margin-bottom: calc(-1 * var(--section-space));
}

.section--tint + .section {
  padding-top: var(--section-space);
}

.section-foot {
  max-width: 46rem;
  margin-top: 2.25rem;
  color: var(--muted);
}

/* 7. Kaarten --------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 48em) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--tint-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease, translate 0.4s var(--ease), box-shadow 0.3s ease;
}

/* Kaarten zijn geen links: geen hover-effect, zodat niets klikbaar lijkt wat het niet is */

.card h3 {
  font-size: 1.25rem;
}

.card p {
  margin-top: 0.5rem;
  color: var(--muted);
}

/* 8. Hero ------------------------------------------------------------------ */
/* Rustige hero: geen gloed of raster, enkel witruimte en een dunne lijn eronder */
.hero,
.page-hero {
  position: relative;
}

.hero {
  padding-top: clamp(3.5rem, 9vw, 7rem);
}

.hero h1 {
  max-width: 15ch;
}

.hero .lead {
  margin-top: 1.5rem;
}

/* Functie onder de naam, zoals op het cv */
.hero-role {
  margin-top: 1rem;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hero .btn-group {
  margin-top: 2.25rem;
}

.hero-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Klein label boven de titel, met een groen bolletje */
.hero-intro {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  padding: 0.375rem 1rem 0.375rem 0.75rem;
  background: var(--tint);
  border: 1px solid var(--tint-line);
  border-radius: 999px;
  color: var(--accent-hover);
  font-size: 0.9375rem;
  font-weight: 500;
}

.hero-intro::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Hero met portret rechts */
.hero--photo {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 64em) {
  .hero--photo {
    grid-template-columns: 7fr 5fr;
  }
}

/* Rond portret op een saliegroene cirkel, met een gele stip (de kleur van de trui op de foto) */
.hero-photo {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(78%, 22rem);
  aspect-ratio: 1;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: -1rem;
  z-index: -1;
  border-radius: 50%;
  background: var(--tint);
}

.hero-photo::after {
  content: "";
  position: absolute;
  right: -0.25rem;
  bottom: 18%;
  z-index: -1;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--warm);
}

.hero-photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface-2);
}

.page-hero {
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero .eyebrow {
  margin-bottom: 1rem;
}

.page-hero .lead {
  margin-top: 1.25rem;
}

.page-hero .btn-group {
  margin-top: 2rem;
}

/* Werkpagina: één kop met de filter er meteen onder */
.werk-page {
  padding-top: clamp(3.5rem, 8vw, 6rem);
}

.werk-page .section-head {
  margin-bottom: 1.5rem;
}

/* 9. Projecten ------------------------------------------------------------- */
.project-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48em) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .project-grid--dense {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* De hele kaart is klikbaar: de link spant met ::after over de kaart */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.625rem 0.625rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, translate 0.4s var(--ease), box-shadow 0.3s ease;
}

.project-card:hover,
.project-card:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}

@media (prefers-reduced-motion: no-preference) {
  .project-card:hover,
  .project-card:focus-within {
    translate: 0 -3px;
  }
}

.project-card.is-hidden {
  display: none;
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 11;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: calc(var(--radius) - 0.375rem);
}

/* Dunne rand over het beeld, zodat witte screenshots niet wegvallen tegen de witte kaart */
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.07);
  pointer-events: none;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.7s var(--ease);
}

@media (prefers-reduced-motion: no-preference) {
  .project-card:hover .project-media img,
  .project-card:focus-within .project-media img {
    scale: 1.03;
  }
}

.project-media--contain img {
  object-fit: contain;
  padding: 1.25rem;
}

.project-media-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.2rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  pointer-events: none;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0 0.75rem;
}

.tag {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  background: var(--tint);
  border: 1px solid var(--tint);
  border-radius: 999px;
  color: #2E5247;
  font-size: 0.8125rem;
  font-weight: 500;
}

.project-title {
  padding: 0 0.75rem;
  font-size: 1.375rem;
}

.project-text {
  padding: 0 0.75rem;
  color: var(--muted);
}

/* Een gewone link in de projecttekst ligt boven de klikbare kaart */
.project-text a {
  position: relative;
  z-index: 1;
}

.project-link {
  align-self: flex-start;
  margin: 0.25rem 0.75rem 0;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.project-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.project-card:hover .project-link,
.project-link:focus-visible {
  color: var(--accent-hover);
}

.project-link:focus-visible {
  outline: none;
}

.project-link:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.filter-bar {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

/* Zonder JavaScript werkt de filter niet: dan de knoppen verbergen */
.js .filter-bar {
  display: flex;
}

.filter-btn {
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  color: var(--accent-hover);
  border-color: var(--accent);
}

.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}

.filter-status {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Korte feitenlijst */
.facts {
  display: grid;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 48em) {
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.facts li {
  padding: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.facts strong {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--text);
  font-size: 1.125rem;
}

/* 10. Oproep ---------------------------------------------------------------- */
/* Afsluitende oproep in een donkergroen blok */
.cta {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: clamp(2.25rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem);
  background: var(--deep);
  border: 0;
  border-radius: calc(var(--radius) * 1.5);
  color: #FFFFFF;
  overflow: hidden;
}

/* Zelfde breedte als de inhoud van een container, ook al staat .cta op de container zelf */
.container.cta {
  width: calc(min(100%, var(--container)) - 2 * var(--gutter));
}

.cta h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 4.4vw, 3rem);
}

.cta p {
  max-width: 36rem;
  color: var(--on-deep-muted);
}

.cta a:not(.btn) {
  color: #FFFFFF;
}

.cta .btn--primary {
  background: #FFFFFF;
  color: var(--deep);
}

.cta .btn--primary:hover,
.cta .btn--primary:focus-visible {
  background: var(--tint);
  color: var(--deep);
}

.cta .btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
}

.cta .btn--secondary:hover,
.cta .btn--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* Gecentreerde variant (contact op de cv pagina) */
.cta--center {
  justify-items: center;
  text-align: center;
}

.cta--center .btn-group {
  justify-content: center;
}

.cta :focus-visible {
  outline-color: var(--warm);
}

/* 11. Footer --------------------------------------------------------------- */
.site-footer {
  margin-top: var(--section-space);
  padding: 3.5rem 0 2rem;
  background: var(--deep);
  color: #FFFFFF;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}


.footer-pitch {
  margin-top: 0.75rem;
  color: var(--on-deep-muted);
}

.site-footer .nav-logo,
.site-footer .nav-logo:hover,
.site-footer .nav-logo:focus-visible {
  color: #FFFFFF;
}

.site-footer :focus-visible {
  outline-color: var(--warm);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--on-deep-muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--on-deep-muted);
}

/* 12. Tekstpagina's (privacy, 404) --------------------------------------- */
.legal {
  max-width: 46rem;
  padding-top: 2rem;
}

.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.5rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal strong {
  color: var(--text);
}

.legal p + p,
.legal ul + p {
  margin-top: 0.75rem;
}

.legal ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
}

.legal-notice {
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.message-page {
  padding-top: clamp(4rem, 12vw, 8rem);
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.message-page h1 {
  max-width: 16ch;
}

.message-page .lead {
  margin-top: 1rem;
}

.message-page .btn-group {
  margin-top: 2rem;
}

/* 13. Lightbox ------------------------------------------------------------- */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #FFFFFF;
}

.lightbox::backdrop {
  background: rgba(17, 17, 17, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
}

.lightbox-title {
  font-weight: 650;
}

.lightbox-counter {
  color: #C9C9C4;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.lightbox-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  padding: 0 var(--gutter);
}

.lightbox-stage img,
.lightbox-stage video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  max-height: calc(100dvh - 10rem);
  object-fit: contain;
  border-radius: var(--radius-small);
  background: #1D1D1D;
}

.lightbox-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem var(--gutter) 1.5rem;
}

.lightbox-btn {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 1.125rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--text);
}

.lightbox-btn:focus-visible {
  outline-color: #FFFFFF;
}

.lightbox-btn[hidden] {
  display: none;
}

/* 14. Cv ------------------------------------------------------------------- */
.cv-list {
  display: grid;
  padding: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cv-row {
  display: grid;
  gap: 0.375rem 2rem;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--line);
}

.cv-row:last-child {
  border-bottom: 0;
}

@media (min-width: 48em) {
  .cv-row {
    grid-template-columns: 11rem 1fr;
    align-items: center;
  }
}

/* Jaartal of label links, grijs en vet zoals op het cv */
.cv-when {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.cv-row h3:not(.cv-when) {
  font-size: 1.25rem;
}

.cv-row p {
  max-width: 40rem;
  margin-top: 0.25rem;
  color: var(--muted);
}

/* Soft skills als rustige chips */
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.skill-list li {
  padding: 0.375rem 0.95rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
}


/* 15. Scroll reveal -------------------------------------------------------- */
/* Enkel als js/main.js de klasse "reveal" op html zet: met JavaScript en zonder "minder beweging".
   Zonder JavaScript blijft alles gewoon zichtbaar. */
.reveal .reveal-item {
  opacity: 0;
  translate: 0 1.5rem;
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease);
}

.reveal .reveal-item.is-visible {
  opacity: 1;
  translate: 0 0;
}

/* 16. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important; /* noodzakelijk: overschrijft alle animaties */
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 17. Muiscirkel ------------------------------------------------------------ */
/* Een dunne grijze ring die de gewone muispijl zacht volgt en iets groter wordt boven links en knoppen.
   Enkel met een muis en zonder "minder beweging": js/main.js maakt de ring dan aan. */
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 1.75rem;
  height: 1.75rem;
  margin: -0.875rem 0 0 -0.875rem;
  border: 1px solid rgba(15, 110, 86, 0.45);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  translate: var(--cursor-x, -100px) var(--cursor-y, -100px);
  transition: opacity 0.2s var(--ease), scale 0.25s var(--ease), background-color 0.25s var(--ease);
}

.cursor-ring.is-visible {
  opacity: 1;
}

.cursor-ring.is-hover {
  scale: 1.5;
  background-color: rgba(15, 110, 86, 0.08);
}

.cursor-ring.is-down {
  scale: 0.8;
}

/* 18. Logo's --------------------------------------------------------------- */
/* Logo's van tools in plaats van namen, in hun eigen kleur.
   De naam staat in alt en title, zodat schermlezers en een tooltip hem tonen. */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding: 0;
  list-style: none;
}

.logo-row img,
.tool-logos img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  transition: translate 0.3s var(--ease);
}

@media (prefers-reduced-motion: no-preference) {
  .logo-row li:hover img {
    translate: 0 -3px;
  }
}

.logo-label {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero-logos {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* Tools bij een project of een vaardigheid: kleiner, op één lijn */
.tool-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tool-logos img {
  width: 1.375rem;
  height: 1.375rem;
}

.card .tool-logos {
  margin-bottom: 1rem;
}

.card .tool-logos img {
  width: 1.75rem;
  height: 1.75rem;
}

/* Op de cv-pagina: logo's met de naam eronder voor wie snel scant */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.tool-grid li {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
}

.tool-grid img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

/* School en werk: logo naast de functie */
.cv-org {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.org-logo {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  border-radius: var(--radius-small);
}

.org-logo--plain {
  padding: 0.375rem;
  border: 1px solid var(--line);
}
