/* ============================================================
   uxdesigner.nl CSS
   ============================================================ */
:root {
  --paper:       #F5F4F0;
  --panel:       #EDEBE4;
  --ink:         #211F1B;
  --muted:       #5B574D;
  --faint:       #8B867A;
  --line:        #D9D6CC;
  --line-strong: #A8A396;
  --accent:      #2E5F9E;   /* inktblauw — data, annotaties en kaderlijnen */
  --cta:         #B0472C;   /* signaalkleur — uitsluitend voor actie en beschikbaarheid */
  --cta-dark:    #93381F;
  --max:         1120px;
  --px:          48px;
}

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

html { scroll-behavior: smooth; }

/* ankerdoelen vrijhouden van de sticky header */
section[id] { scroll-margin-top: 78px; }

body {
  font-family: 'IBM Plex Sans', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; }

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: .02em;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--px);
}

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

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .02em;
}
.wordmark span { color: var(--faint); }

.site-nav ul {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  color: var(--muted);
  padding-block: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* de volgende stap krijgt de signaalkleur, ook in de navigatie */
.site-nav a[href="#contact"] { color: var(--cta); font-weight: 500; }
.site-nav a[href="#contact"]:hover { color: var(--cta-dark); border-bottom-color: var(--cta-dark); }

/* Hamburger (alleen mobiel) */
.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink);
}

.menu-btn__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-btn__bars span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}

/* Mobiel menu-overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  padding: 0 var(--px) 40px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity .28s ease,
    transform .32s cubic-bezier(.22, .8, .3, 1),
    visibility 0s linear .32s;
}

.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition:
    opacity .28s ease,
    transform .32s cubic-bezier(.22, .8, .3, 1);
}

/* links schuiven licht na, gestaffeld */
.mobile-nav li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .34s cubic-bezier(.22, .8, .3, 1);
}

.mobile-nav.is-open li { opacity: 1; transform: none; }
.mobile-nav.is-open li:nth-child(1) { transition-delay: .05s; }
.mobile-nav.is-open li:nth-child(2) { transition-delay: .09s; }
.mobile-nav.is-open li:nth-child(3) { transition-delay: .13s; }
.mobile-nav.is-open li:nth-child(4) { transition-delay: .17s; }
.mobile-nav.is-open li:nth-child(5) { transition-delay: .21s; }

body.nav-open,
body.lightbox-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .mobile-nav, .mobile-nav li { transition: none; transform: none; }
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 12px;
}

.mobile-nav__close {
  background: none;
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink);
}

.mobile-nav li { border-bottom: 1px solid var(--line); }

.mobile-nav li a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.mobile-nav li a .no {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}

.mobile-nav li a[href="#contact"] { color: var(--cta); }
.mobile-nav li a[href="#contact"] .no { color: var(--cta); }

.mobile-nav__meta {
  margin-top: 28px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}

.mobile-nav__meta a { color: var(--muted); }

/* ── Hero / rapportomslag ── */
.hero {
  border-bottom: 1px solid var(--line-strong);
  background-image:
    linear-gradient(rgba(33, 31, 27, .038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 31, 27, .038) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: 0 0;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  padding-block: 88px 72px;
  align-items: start;
}

.kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.18;
  margin-bottom: 16px;
  max-width: 21em;
}

.hero .subline {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 34em;
}

.hero .intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 40em;
  margin-bottom: 36px;
}

.hero__actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  padding: 13px 26px;
  background: var(--cta);
  color: var(--paper);
  border: 1px solid var(--cta);
  transition: background .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--cta-dark); border-color: var(--cta-dark); }

.textlink {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.textlink:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* rapport-meta rechts */
.hero__meta {
  border-top: 2px solid var(--accent);
  background: var(--paper);
}

.hero__meta > div {
  padding: 14px 0 15px;
  border-bottom: 1px solid var(--line);
}

.hero__meta dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--faint);
  margin-bottom: 3px;
}

.hero__meta dd { font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.hero__meta dd a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.hero__meta dd a:hover { border-bottom-color: var(--ink); }
.hero__meta .avail dd { color: var(--cta); }

/* ── Sectiekop ── */
section { padding-block: 80px; border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 12px;
}

.section-head .no {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  flex-shrink: 0;
}

.section-head h2 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  align-self: center;
  margin-left: 8px;
}

.section-sub {
  color: var(--muted);
  max-width: 44em;
  margin-bottom: 48px;
}

/* ── 01 Werkwijze / waarom ── */
.waarom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.waarom-grid .lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 32em;
}

.reason {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
}

.reason .no {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--faint);
  padding-top: 4px;
}

.reason h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.reason p { font-size: 15px; color: var(--muted); }

.inzet {
  border-top: 2px solid var(--accent);
  padding-top: 20px;
}

.inzet h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 16px;
}

.inzet li {
  font-size: 15px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
}
.inzet li::before {
  content: '·';
  color: var(--accent);
  font-weight: 600;
}

/* ── Kernstatement ── */
.statement {
  padding-block: 72px;
  border-bottom: 1px solid var(--line);
}

.statement p {
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1.4;
  max-width: 26em;
}

.statement .mark {
  box-shadow: inset 0 -0.34em rgba(46, 95, 158, .22);
}

.statement .bron {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--faint);
  margin-top: 20px;
}

/* ── 02 Resultaten: casusregels ── */
.case {
  border-top: 1px solid var(--line);
  padding-block: 30px;
}
.case:last-of-type { border-bottom: 1px solid var(--line); }

.case__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 190px;
  gap: 32px;
  align-items: start;
}

.case__who {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
}

.case__logo {
  display: flex;
  align-items: center;
  height: 38px;
}

.case__logo img {
  max-height: 36px;
  max-width: 104px;
  width: auto;
  height: auto;
  filter: grayscale(1);
  opacity: .55;
  mix-blend-mode: multiply;   /* wit in het bronbestand valt weg tegen het papier */
  transition: filter .25s ease, opacity .25s ease;
}

.case:hover .case__logo img,
.case:focus-within .case__logo img {
  filter: none;
  opacity: 1;
}

/* het Action-svg heeft geen intrinsieke maat (alleen viewBox) — expliciet zetten */
.case__logo.logo--action img { width: 104px; height: 20px; }

.case__who strong { font-size: 17px; font-weight: 600; }

.case__who .periode {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--faint);
  margin-top: 5px;
  display: block;
  flex-basis: 100%;
}

.case__what .rol {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--faint);
  display: block;
  margin-bottom: 5px;
}

.case__what p { font-size: 15px; color: var(--muted); max-width: 34em; }

.case__outcome { text-align: right; }

.case__outcome .figure {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--accent);
  display: block;
  font-variant-numeric: tabular-nums;
}

.case__outcome .figure--text { color: var(--ink); font-size: clamp(18px, 1.8vw, 22px); }

.case__outcome .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--faint);
  display: block;
  margin-top: 6px;
  line-height: 1.5;
}

/* uitklapbare casus */
.case details { margin-top: 18px; }

.case summary {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  user-select: none;
}
.case summary::-webkit-details-marker { display: none; }
.case summary::before { content: '+'; font-weight: 500; }
.case details[open] summary::before { content: '\2212'; }
.case summary:hover { text-decoration: underline; text-underline-offset: 3px; }

/* geopende casus: ander label ('Sluit de casus') met eigen, ingetogen stijl */
.case details[open] summary {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}
.case details[open] summary:hover { text-decoration-color: var(--accent); }

.case__detail {
  margin-top: 20px;
  background: var(--panel);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.case__detail h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.case__detail p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* opdrachtgeverslogo's: grijs, kleur bij hover */
.clients {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.clients__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--faint);
  margin-bottom: 28px;
}

.clients__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px 52px;
}

.clients__logos li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.clients__logos .logo-vak {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clients__logos img {
  max-height: 36px;
  max-width: 110px;
  width: auto;
  height: auto;
  filter: grayscale(1);
  opacity: .55;
  mix-blend-mode: multiply;
  transition: filter .25s ease, opacity .25s ease;
}

.clients__logos li:hover img,
.clients__logos li:focus-within img {
  filter: none;
  opacity: 1;
}

.clients__logos .logo--ced img { max-height: 52px; max-width: 130px; }

/* het Action-svg heeft geen intrinsieke maat (alleen viewBox) — expliciet zetten */
.clients__logos .logo--action img { width: 100px; height: 19px; }

.clients__naam {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: .04em;
  white-space: nowrap;
}

/* ── 03 Certificeringen: verantwoording ── */
.cert {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 190px;
  gap: 32px;
  align-items: start;
  text-decoration: none;
}
.cert:last-of-type { border-bottom: 1px solid var(--line); }

.cert__ident {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-self: center;
  text-align: center;
}

.cert__badge {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  mix-blend-mode: multiply;
  transition: filter .25s ease, opacity .25s ease;
}

a.cert:hover .cert__badge,
a.cert:focus-within .cert__badge {
  filter: none;
  opacity: 1;
}

.cert__year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--faint);
}

.cert__body h3 { font-size: 16.5px; font-weight: 600; }

.cert__body .org {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--faint);
  display: block;
  margin-bottom: 4px;
}

.cert__body p { font-size: 14.5px; color: var(--muted); margin-top: 6px; max-width: 36em; }

.cert__body .primeur {
  color: var(--accent);
  font-weight: 500;
}

.cert__link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}
a.cert:hover .cert__link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a.cert:hover h3 { color: var(--accent); }

/* ── 04 Over mij ── */
.over-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.over-grid .tekst p { color: var(--muted); margin-bottom: 16px; max-width: 36em; }
.over-grid .tekst p strong { color: var(--ink); font-weight: 500; }

.over-grid .tekst h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 32px 0 10px;
}

.feiten { margin-top: 28px; border-top: 2px solid var(--accent); }
.feiten li {
  font-size: 14.5px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
}
.feiten li::before { content: '·'; color: var(--accent); font-weight: 600; }

.over-side .foto {
  border: 1px solid var(--line-strong);
  margin-bottom: 36px;
  max-width: 260px;
}

.over-side .foto img {
  filter: grayscale(1) contrast(.98);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
  transition: filter .35s ease;
}

.over-side .foto:hover img,
.over-side .foto:focus-within img {
  filter: none;
}

.over-side .foto figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--faint);
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}

.exp { border-top: 2px solid var(--accent); }

.exp h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  padding-block: 16px 4px;
}

.exp li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}

.exp time {
  grid-column: 1 / -1;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--faint);
}

.exp strong { font-size: 14.5px; font-weight: 600; }
.exp .rol { font-size: 13px; color: var(--muted); grid-column: 1 / -1; }

.exp .nu {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  align-self: start;
  padding-top: 2px;
}

/* ── 05 Contact ── */
#contact { border-bottom: none; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.contact-grid h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
  max-width: 22em;
  margin-bottom: 16px;
}

.contact-grid .toelichting { color: var(--muted); margin-bottom: 40px; max-width: 36em; }

.contact-kanalen > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.contact-kanalen > div:last-child { border-bottom: 1px solid var(--line); }

.contact-kanalen dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--faint);
}

.contact-kanalen dd { font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.contact-kanalen dd a { text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.contact-kanalen dd a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.contact-grid .btn { margin-top: 40px; }

.biz { border-top: 2px solid var(--accent); }

.biz h3 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  padding-block: 16px 4px;
}

.biz > dl > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
}

.biz dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--faint);
  padding-top: 2px;
}

.biz dd { font-size: 14px; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line-strong);
  padding-block: 28px 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--faint);
}

.site-footer ul { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--faint); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  :root { --px: 22px; }

  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header .wrap { flex-wrap: nowrap; align-items: center; }

  .hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-block: 56px; }
  .hero__meta { max-width: 380px; }

  .waarom-grid,
  .over-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .case__row { grid-template-columns: 1fr; gap: 10px; }
  .case__outcome { text-align: left; }
  .case__detail { grid-template-columns: 1fr; gap: 24px; padding: 24px; }

  .cert { grid-template-columns: 1fr; gap: 8px; }
  .cert__link { text-align: left; }
  .cert__ident { justify-self: start; align-items: flex-start; text-align: left; }

  section { padding-block: 56px; }
  .statement { padding-block: 48px; }
}

/* ============================================================
   TAALWISSEL (NL / EN)
   ============================================================ */
.site-header .wrap { justify-content: flex-start; }
.site-header .wordmark { margin-right: auto; }

.lang-switch {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  flex-shrink: 0;
}

.lang-switch a {
  color: var(--faint);
  text-decoration: none;
  padding-block: 2px;
  border-bottom: 1px solid transparent;
}

.lang-switch a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.lang-switch .lang-switch__current {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 480px) {
  .site-header .wordmark span { display: none; }
}

.lang-switch a,
.lang-switch .lang-switch__current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switch .flag {
  width: 15px;
  height: 10px;
  display: block;
  outline: 1px solid rgba(33, 31, 27, .16);
  outline-offset: -1px;
}

/* ============================================================
   'TOON MEER' — kleinere opdrachten ingeklapt onder de resultaten
   ============================================================ */
.cases-more[hidden] { display: none; }
.cases-more:focus { outline: none; }
.cases-more .case:first-of-type { border-top: none; }

.cases-toggle { margin-top: 26px; }
.cases-toggle[hidden] { display: none; }

.cases-toggle button {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  letter-spacing: .02em;
}

.cases-toggle button::before { content: '+'; font-weight: 500; }
.cases-toggle button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* toon meer/minder: groter, gecentreerd, en te sluiten */
.cases-toggle {
  text-align: center;
  margin-top: 36px;
}

.cases-toggle button {
  font-size: 13.5px;
  padding: 13px 32px;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  transition: border-color .18s ease, color .18s ease;
}

.cases-toggle button:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.cases-toggle button[aria-expanded="true"]::before { content: '\2212'; }

/* beeldmateriaal in een casus-uitklap */
.case__media {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.case__media-row .case__media-open img {
  width: 100%;
  height: 220px;
  max-height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
  border: 1px solid var(--line-strong);
}

.case__media figcaption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--faint);
  margin-top: 10px;
  letter-spacing: .02em;
}

/* ============================================================
   LIGHTBOX — casusbeelden aanklikbaar in een modal
   ============================================================ */
.case__media-open {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}

.case__media-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .case__media-row { grid-template-columns: 1fr; }
}

.lightbox {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 0;
  width: min(1240px, 94vw);
  margin: auto;
}

.lightbox::backdrop { background: rgba(33, 31, 27, .6); }

.lightbox__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.lightbox__title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .02em;
}

.lightbox__close {
  background: none;
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink);
  flex-shrink: 0;
}

.lightbox__close:hover { border-color: var(--accent); color: var(--accent); }

.lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(92vh - 64px);
  object-fit: contain;
}

/* zonder deze regel wint .lightbox__img { display: block } van de UA-regel
   voor [hidden], waardoor de verborgen video naast de afbeelding blijft staan */
.lightbox__img[hidden] { display: none; }

/* lightbox-navigatie: vorige/volgende binnen dezelfde casus */
.lightbox__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lightbox__count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .06em;
  margin-right: 6px;
}

.lightbox__navbtn {
  background: none;
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink);
}

.lightbox__navbtn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }

.lightbox__navbtn:disabled {
  opacity: .35;
  cursor: default;
}

@media (max-width: 700px) {
  .lightbox__head { flex-wrap: wrap; }
  .lightbox__navbtn, .lightbox__close { padding: 7px 10px; }
}

/* mono-hint 'vergroot' in de hoek van elk aanklikbaar media-item */
.case__media-open { position: relative; }

.case__media-open::after {
  content: 'vergroot ↗';
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 4px 8px;
  pointer-events: none;
}

.case__media-open:hover::after,
.case__media-open:focus-visible::after {
  color: var(--accent);
  border-color: var(--accent);
}

:lang(en) .case__media-open::after { content: 'enlarge ↗'; }

/* ============================================================
   LIGHTBOX — dialog volgt het beeldformaat, compact op mobiel
   ============================================================ */
.lightbox {
  width: fit-content;
  min-width: min(620px, 94vw);
  max-width: min(1240px, 94vw);
}

.lightbox__img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(92vh - 72px);
  max-height: calc(96dvh - 72px);
  margin: 0 auto;
}

@media (max-width: 700px) {
  .lightbox {
    width: calc(100vw - 12px);
    min-width: 0;
    max-width: none;
    margin: 6px auto;
  }

  .lightbox__head {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 8px 10px;
  }

  .lightbox__title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
  }

  .lightbox__btnlabel { display: none; }

  .lightbox__nav { gap: 6px; }
  .lightbox__navbtn, .lightbox__close { padding: 8px 12px; font-size: 12px; }
  .lightbox__count { margin-right: 2px; }

  .lightbox__img {
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
  }
}

/* lightbox gecentreerd in het scherm, ook mobiel */
@media (max-width: 700px) {
  .lightbox { margin: auto; }
}

/* horizontale swipes zelf afhandelen; verticaal scrollen en pinch-zoom blijven van de browser */
.lightbox__img { touch-action: pan-y pinch-zoom; }

/* ============================================================
   FIJNSLIJPEN — contrast, videothumbnails, wordmark mobiel
   ============================================================ */

/* lichtste tekstlaag naar WCAG AA (was #8B867A, ±3,4:1) */
:root { --faint: #6F6A5C; }

/* videothumbnails in casusmedia, zelfde opmaak als afbeeldingen */
.case__media-row .case__media-open video {
  width: 100%;
  height: 220px;
  max-height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
  border: 1px solid var(--line-strong);
}

/* wordmark op mobiel: domein op een tweede regel */
@media (max-width: 480px) {
  .site-header .wordmark { line-height: 1.35; }
  .site-header .wordmark span {
    display: block;
    font-size: 12px;
  }
}
