/* ============================================================================
   SNW — stichtingnieuwewaarde.nl   •   v2026
   A calm, editorial, data-driven site. No stock photography.
   ============================================================================ */

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

  /* Type */
  --font-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;

  /* Greys */
  --bg: #fbfaf7;                 /* warm off-white (paper) */
  --surface: #ffffff;            /* cards */
  --surface-2: #f4f2ed;          /* chip / panel */
  --ink: #171717;                /* body text (near-black) */
  --ink-muted: #5a564f;
  --ink-faint: #8a857c;
  --line: rgba(23, 23, 23, 0.10);
  --line-strong: rgba(23, 23, 23, 0.22);

  /* SNW brand / focus area colours (directly from logo SVG) */
  --c-ae:  #FF7D43; /* Armoedebestrijding & Educatie */
  --c-nb:  #68A18A; /* Natuur & Biodiversiteit */
  --c-go:  #6A4C93; /* Gezondheid & Onderzoek */
  --c-min: #EF476F; /* Mens in Nood */
  --c-ke:  #FFD166; /* Klimaat & Energie */
  --c-w:   #118AB2; /* Water */

  /* Radii */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card: 0 1px 1px rgba(0,0,0,0.02), 0 8px 24px rgba(23,23,23,0.06);
  --shadow-photo: 0 1px 2px rgba(0,0,0,0.08), 0 18px 40px -10px rgba(23,23,23,0.22);
  --shadow-modal: 0 30px 80px rgba(0,0,0,0.28);

  /* Layout */
  --page-max: 1200px;
  --page-gutter: clamp(1.25rem, 3vw, 2.5rem);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur-fast: 140ms;
  --dur: 300ms;
  --dur-slow: 600ms;
}

/* ------------------------------------------------- 2. Reset --------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;    /* belt-and-suspenders: mobile Safari ignores body-only */
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Body scroll-lock during modal — positie/top worden via JS gezet */
body.modal-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }

::selection { background: #171717; color: #fff; }

/* ------------------------------------------------- 3. Type system --------- */
.display {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 0.95;
  font-optical-sizing: auto;
}
.display--mega { font-size: clamp(3.5rem, 10vw, 8.25rem); }
.display--xl   { font-size: clamp(2.75rem, 6.5vw, 5rem); }
.display--lg   { font-size: clamp(2rem, 4.5vw, 3.25rem); }

.kicker {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 52ch;
}

/* ------------------------------------------------- 4. Layout helpers ------ */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}
.section {
  padding: clamp(2.5rem, 5.5vw, 5rem) 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--line); }
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.section__head .kicker { display: block; margin-bottom: 0.75rem; }
/* Grid blockifies its children, so `display:inline-flex` on a `.btn` would
   stretch to fill the right column. Snap CTAs to their natural width so the
   "Bekijk alle projecten" pill reads as a button, not a banner. */
.section__head > .btn { justify-self: start; }
@media (max-width: 760px) {
  .section__head { grid-template-columns: 1fr; }
}
.eyebrow-line {
  display: inline-block; width: 44px; height: 1px;
  background: var(--ink); margin-right: .75rem; vertical-align: middle;
}

/* ------------------------------------------------- 5. Header -------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem var(--page-gutter);
  background: rgba(251,250,247,0.85);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.brand { display: flex; align-items: center; }
.brand__logo { height: 38px; width: auto; }
.primary-nav {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
  justify-self: center;
  font-size: 0.94rem;
  color: var(--ink-muted);
}
.primary-nav a {
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--dur-fast) var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a.is-active { color: var(--ink); }
.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
}

/* Language toggle */
.lang-toggle {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.lang-toggle__track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  width: 232px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-toggle__opt {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.45em;
  padding: 4px 14px;
  z-index: 2;
  color: var(--ink-muted);
  transition: color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.lang-toggle__flag {
  font-size: 0.92em;
  line-height: 1;
  filter: saturate(0.92);
  display: inline-block;
}
.lang-toggle__thumb {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 50%;
  background: var(--ink);
  border-radius: var(--r-pill);
  transition: transform var(--dur) var(--ease);
  z-index: 1;
}
body[data-lang="en"] .lang-toggle__thumb { transform: translateX(100%); }
body[data-lang="nl"] .lang-toggle__opt[data-lang="nl"],
body[data-lang="en"] .lang-toggle__opt[data-lang="en"] { color: #fff; }

/* Discreet Dashboard (portaal) link — a small padlock next to the language
   selector. Deliberately understated so public visitors don't stumble onto
   the internal area; the board recognises the lock. */
.dashboard-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill, 999px);
  color: var(--ink-faint);
  border: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.dashboard-link svg { width: 18px; height: 18px; display: block; }
.dashboard-link:hover,
.dashboard-link:focus-visible {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}
.dashboard-link.is-active { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }

/* Search bar (desktop-only; hidden ≤ 920 px) */
.site-search {
  position: relative; /* anchor for omnisearch dropdown */
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.75rem;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              width var(--dur) var(--ease);
  width: 190px;
}
.site-search:focus-within {
  background: var(--surface);
  border-color: var(--ink-muted);
  width: 230px;
}
.site-search__icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--ink-faint);
  display: block;
  transition: color var(--dur-fast) var(--ease);
}
.site-search:focus-within .site-search__icon { color: var(--ink-muted); }
.site-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  color: var(--ink);
  outline: none;
  padding: 0;
  /* hide browser-native clear (×) button — we provide our own reset on the page */
}
.site-search__input::placeholder { color: var(--ink-faint); font-size: 0.82rem; }
.site-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.site-search__input::-webkit-search-decoration { -webkit-appearance: none; }

/* Burger (mobile) */
.nav-burger { display: none; width: 36px; height: 36px; position: relative; }
.nav-burger span {
  position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-burger span:nth-child(1) { top: 12px; }
.nav-burger span:nth-child(2) { top: 18px; }
.nav-burger span:nth-child(3) { top: 24px; }
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .site-header { grid-template-columns: auto 1fr auto auto auto; }
  .primary-nav {
    position: fixed; inset: 72px 0 0 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    padding: 2rem var(--page-gutter);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    font-size: 1.35rem;
    justify-content: flex-start; align-items: flex-start;
  }
  body.nav-open .primary-nav { transform: translateX(0); }
  .primary-nav a {
    width: 100%; padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-serif); font-style: italic; font-weight: 300;
  }
  .primary-nav a.is-active::after { display: none; }
  .nav-burger { display: block; }
}

/* ------------------------------------------------- 6. Route chrome -------- */
.route-loader {
  min-height: 50vh;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.route-loader::after {
  content: "";
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--ink-faint);
  border-top-color: transparent;
  margin-left: 0.6rem;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.app > .view {
  animation: fade-in 500ms var(--ease);
}
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------- 7. Buttons / Chips ----- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem; font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(23,23,23,0.18); }
.btn.is-ghost { background: transparent; color: var(--ink); }
.btn.is-ghost:hover { background: var(--ink); color: #fff; }
.btn.is-sm { padding: 0.55rem 0.95rem; font-size: 0.82rem; }
.btn .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.25rem 0.7rem 0.25rem 0.55rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.78rem; color: var(--ink-muted);
  line-height: 1.2;
}
.chip__dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.pill-count {
  font-family: var(--font-sans);
  font-feature-settings: "tnum";
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  margin-left: 0.3em;
}

/* ------------------------------------------------- 8. Home view ----------- */
/* 8.1 Hero */
.hero {
  padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.hero__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.hero__brand .kicker { margin-bottom: 0; }
.hero__brand-h1 {
  margin: 0;
  line-height: 0;            /* tight wrapper — no inherited heading whitespace */
}
.hero__mark {
  width: clamp(260px, 44vw, 480px);
  height: auto;
  display: block;
  /* The official PNG logo (SNW heart + wordmark in brand colours) is the
     hero — it carries both the mark AND the type, so no separate serif
     wordmark below it. */
}
.hero__body {
  padding-bottom: 0.5rem;
}
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; gap: 1.75rem; align-items: start; }
}
.hero__body p { margin: 0 0 1rem; }
.hero__body p.lede { font-size: 1.1rem; color: var(--ink); }
.hero__body p.sub { color: var(--ink-muted); }

/* 8.2 Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: clamp(2rem, 5vw, 3.5rem) 0;
}
.stats__cell {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  border-right: 1px solid var(--line);
}
.stats__cell:last-child { border-right: 0; }
.stats__icon {
  display: block;
  width: clamp(40px, 5.5vw, 56px);
  height: clamp(40px, 5.5vw, 56px);
  color: var(--ink-muted);
  opacity: 0.55;
  margin-bottom: clamp(0.85rem, 2vw, 1.25rem);
  transition: opacity 320ms var(--ease), color 320ms var(--ease);
}
.stats__icon svg { width: 100%; height: 100%; display: block; }
.stats__cell:hover .stats__icon { opacity: 0.85; color: var(--ink); }
.stats__num {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.stats__num .plus { color: var(--ink-muted); font-size: 0.7em; vertical-align: super; margin-left: 0.1em; }
.stats__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-top: 0.65rem;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats__cell:nth-child(2n) { border-right: 0; }
  .stats__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* 8.3 Focus areas — 6 tiles using brand colour */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 920px) { .focus-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .focus-grid { grid-template-columns: 1fr; } }
.focus-tile {
  position: relative;
  background: var(--surface);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
  transition: background var(--dur) var(--ease);
  overflow: hidden;
}
.focus-tile:hover { background: var(--surface-2); }
.focus-tile__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--focus-color, var(--ink));
}
.focus-tile__icon svg { width: 100%; height: 100%; }
.focus-tile__title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.focus-tile__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
/* Pill-button "Lees meer" — outline in the focus colour by default, fills
   on tile hover/focus. Sits in the footer next to the project count. */
.focus-tile__cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--focus-color);
  color: var(--focus-color);
  background: transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.focus-tile__cta-arrow {
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform var(--dur-fast) var(--ease);
}
.focus-tile:hover .focus-tile__cta,
.focus-tile:focus-visible .focus-tile__cta {
  background: var(--focus-color);
  color: #fff;
}
.focus-tile:hover .focus-tile__cta-arrow { transform: translateX(2px); }
.focus-tile__count {
  display: inline-flex; align-items: baseline; gap: 0.3rem;
  font-variant-numeric: tabular-nums;
  color: var(--focus-color);
  font-weight: 600;
}
.focus-tile__count-num { font-size: 1rem; line-height: 1; }
.focus-tile__count-label {
  font-family: var(--font-sans, 'Poppins', sans-serif);
  font-stretch: condensed;        /* honoured if Poppins-Condensed loads */
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--focus-color);
  opacity: 0.95;
}
.focus-tile::before {
  /* A thin coloured line at the top */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--focus-color);
  transform: scaleX(0.2); transform-origin: left center;
  transition: transform var(--dur) var(--ease);
}
.focus-tile:hover::before { transform: scaleX(1); }

/* 8.4 Featured portfolio (scrapbook) */
.scrapbook {
  --rot: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
  margin-top: 2rem;
}
/* Per-card swap: a single tile fades to ~0 opacity and then back in.
   The transition lives on .scrap-card so swapping one card never disturbs
   the rest of the grid. */
.scrap-card { transition: opacity 380ms var(--ease); }
.scrap-card.is-swapping-out { opacity: 0; }
.scrap-card.is-swapping-in  { opacity: 0; }
@media (max-width: 920px) { .scrapbook { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .scrapbook { grid-template-columns: repeat(2, 1fr); } }
.scrap-card {
  display: flex; flex-direction: column; gap: 0.75rem;
  cursor: pointer;
}
.scrap-card__photo-wrap {
  display: block;
  transform: rotate(var(--rot));
  transition: transform var(--dur) var(--ease);
}
.scrap-card:hover .scrap-card__photo-wrap { transform: rotate(0) translateY(-4px); }
.scrap-card__photo {
  aspect-ratio: 4/3;
  background: var(--focus-color, var(--surface-2));
  background-size: cover; background-position: center;
  border: 10px solid #fff;
  box-shadow: var(--shadow-photo);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.scrap-card__photo > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.scrap-card__photo--placeholder { /* monogram base — same look as .scrap-card__photo */ }
.scrap-card__monogram {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.scrap-card__monogram::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.2), transparent 50%),
              radial-gradient(circle at 75% 85%, rgba(0,0,0,0.2), transparent 55%);
  pointer-events: none;
}
.scrap-card__logo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 14%;
  z-index: 1;
}

/* Partner-logo BADGE — a "postzegel" sitting in the BOTTOM-RIGHT corner of
   the photo. Sized to fit its content; never spans the full width of the
   photo. By default the badge has a small white canvas (`is-canvas`) with
   generous padding so the logo reads cleanly against busy photography; this
   can be opted out per project (`logo_canvas: false` in projects.json) so
   logos that already sit naturally on the photo aren't given an unnecessary
   white frame. Aspect-class (set by SNWLogo.fit() on image load) controls
   how big the inner image may grow. */
.scrap-card__logobadge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;                          /* no padding when no canvas */
  border-radius: 0;
  pointer-events: none;
}
.scrap-card__logobadge.is-canvas {
  /* Translucent white postzegel — the photo shimmers through just enough
     that the canvas reads as a thin gauze rather than a solid sticker.
     Per-project tuning: set inline `--logo-canvas-opacity` via projects.json
     (`logo_canvas_opacity`) when an editor wants more or less shimmer for a
     particular logo+photo combination. */
  --logo-canvas-opacity: 0.78;
  background: rgba(255, 255, 255, var(--logo-canvas-opacity));
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  border-radius: var(--r-sm, 6px);
  /* generous padding around the logo gives the postzegel its breathing room */
  padding: 18px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}
.scrap-card__logobadge-img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  /* default; aspect classes below tighten this for each logo shape */
  max-height: 56px;
  max-width: 110px;
}
/* Aspect-ratio adapters: portrait/square logos can grow taller; wide
   wordmarks can stretch horizontally without towering. Numbers tuned so a
   nice square logo occupies roughly 2× the visible footprint of the
   previous full-width-strip layout, which the user explicitly asked for. */
.scrap-card__logobadge.is-portrait  .scrap-card__logobadge-img { max-height: 80px; max-width: 64px; }
.scrap-card__logobadge.is-square    .scrap-card__logobadge-img { max-height: 78px; max-width: 78px; }
.scrap-card__logobadge.is-landscape .scrap-card__logobadge-img { max-height: 52px; max-width: 130px; }
.scrap-card__logobadge.is-wide      .scrap-card__logobadge-img { max-height: 38px; max-width: 150px; }
.scrap-card__meta {
  display: flex; flex-direction: column; gap: 0.2rem;
}
.scrap-card__geo {
  font-size: 0.74rem;
  color: var(--ink-faint);
  margin-top: 0.15rem;
  letter-spacing: 0.01em;
}
.scrap-card__title {
  font-size: 0.95rem; font-weight: 500;
  line-height: 1.3;
}
.scrap-card__focus {
  font-size: 0.78rem; color: var(--ink-muted);
  display: flex; align-items: center; gap: 0.4rem;
  font-weight: 500;
}
.scrap-card__focus-icon {
  display: inline-grid; place-items: center;
  width: 14px; height: 14px;
  flex: 0 0 auto;
}
.scrap-card__focus-icon svg { width: 100%; height: 100%; }

/* 8.5 Values / criteria strip (home teaser for werkwijze) */
.values-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.values-strip__cell {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.values-strip__cell:last-child { border-right: 0; }
.values-strip__icon {
  display: block;
  width: clamp(34px, 3.4vw, 44px);
  height: clamp(34px, 3.4vw, 44px);
  color: var(--ink-muted);
  opacity: 0.5;
  margin-bottom: 0.9rem;
  transition: opacity 320ms var(--ease), color 320ms var(--ease);
}
.values-strip__icon svg { width: 100%; height: 100%; display: block; }
.values-strip__cell:hover .values-strip__icon { opacity: 0.85; color: var(--ink); }
.values-strip__num {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 2rem; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.values-strip__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0.75rem 0 0.4rem;
}
.values-strip__body { color: var(--ink-muted); font-size: 0.92rem; }
@media (max-width: 920px) {
  .values-strip { grid-template-columns: 1fr 1fr; }
  .values-strip__cell:nth-child(2n) { border-right: 0; }
  .values-strip__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .values-strip { grid-template-columns: 1fr; }
  .values-strip__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .values-strip__cell:last-child { border-bottom: 0; }
}

/* ------------------------------------------------- 9. Focus view ---------- */
.focus-page .focus-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  /* Wider column gap — long focus titles like "Armoedebestrijding" would
     otherwise crowd the body text on the right. */
  gap: clamp(2.5rem, 7vw, 6rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
/* Belt + braces: tiny right padding on the title column so descenders /
   the trailing 'g' in "Armoedebestrijding" never kiss the body column. */
.focus-page .focus-block > :first-child { padding-right: 0.75rem; }
.focus-page .focus-block:first-of-type { border-top: 0; }
.focus-block__icon {
  width: 96px; height: 96px;
  color: var(--focus-color);
}
.focus-block__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.focus-block__num {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--focus-color);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}
.focus-block__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 1rem 0 1.5rem;
}
.focus-block__body p { margin: 0 0 1rem; color: var(--ink-muted); }
.focus-block__criteria {
  list-style: none; padding: 0; margin: 1.25rem 0 1.5rem;
}
.focus-block__criteria li {
  position: relative;
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.focus-block__criteria li:last-child { border-bottom: 1px solid var(--line); }
.focus-block__criteria li::before {
  content: ""; position: absolute; top: 50%; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--focus-color); transform: translateY(-50%);
}
@media (max-width: 760px) {
  .focus-page .focus-block { grid-template-columns: 1fr; gap: 1.5rem; }
  .focus-block__icon { width: 64px; height: 64px; }
}

/* ------------------------------------------------- 10. Projecten view ----- */
.projecten-head {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.projecten-head .display--xl { margin-bottom: 0.75rem; }
@media (max-width: 760px) { .projecten-head { grid-template-columns: 1fr; } }

.projecten-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  margin-bottom: 1.5rem;
}
/* Active-search indicator bar (shown above the filter row on /projecten) */
.search-active-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
}
.search-active-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-weight: 500;
  color: var(--ink);
}
.search-active-bar__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  font-size: 1rem;
  line-height: 1;
  color: var(--ink-muted);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.search-active-bar__clear:hover { color: var(--ink); background: var(--surface-2); }

/* --------------------------------------------------------------------------
   Omnisearch dropdown
   Appears below the header search input on desktop (≥ 920 px).
   Three sections: projecten / pagina's / publicaties.
   -------------------------------------------------------------------------- */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 16px 48px rgba(23,23,23,0.14);
  z-index: 200;
  overflow: hidden;
  animation: sd-enter 140ms var(--ease) both;
}
@keyframes sd-enter {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.search-dropdown__group {
  border-bottom: 1px solid var(--line);
}
.search-dropdown__group:last-child {
  border-bottom: none;
}
.search-dropdown__group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px 5px;
  background: var(--surface-2);
  font-size: 0.70rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
}
.search-dropdown__group-header svg {
  width: 13px; height: 13px; flex-shrink: 0;
}
.search-dropdown__group-count {
  margin-left: auto;
  font-size: 0.70rem;
  color: var(--ink-faint);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.search-dropdown__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.search-dropdown__row:last-of-type { border-bottom: none; }
.search-dropdown__row:hover,
.search-dropdown__row.is-active { background: var(--surface-2); outline: none; }
.search-dropdown__row-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
  opacity: 0.88;
}
.search-dropdown__row-icon svg { width: 15px; height: 15px; }
.search-dropdown__row-icon--project { background: rgba(0,0,0,0.05); }
.search-dropdown__row-icon--page    { background: rgba(24, 95, 165, 0.10); color: #185FA5; }
.search-dropdown__row-icon--pub     { background: rgba(133, 79, 11, 0.10); color: #854F0B; }
.search-dropdown__row-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.search-dropdown__row-title {
  font-size: 0.83rem; font-weight: 500;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-dropdown__row-snippet {
  font-size: 0.76rem;
  color: var(--ink-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-dropdown__row-snippet mark {
  background: rgba(255, 208, 102, 0.45);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}
.search-dropdown__row-meta {
  font-size: 0.71rem;
  color: var(--ink-faint);
}
.search-dropdown__row-action {
  flex-shrink: 0; align-self: center;
  color: var(--ink-faint);
}
.search-dropdown__row-action svg { width: 13px; height: 13px; display: block; }
.search-dropdown__footer {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 13px;
  font-size: 0.77rem;
  color: var(--ink-muted);
  text-decoration: none;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  transition: color var(--dur-fast) var(--ease);
}
.search-dropdown__footer:hover,
.search-dropdown__footer.is-active { color: var(--ink); outline: none; }
.search-dropdown__empty {
  padding: 18px 13px;
  font-size: 0.84rem;
  color: var(--ink-faint);
  text-align: center;
}

.filter-group {
  display: flex; align-items: center; gap: 0.5rem;
}
.filter-group__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}
.filter-select {
  appearance: none; -webkit-appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.45rem 2rem 0.45rem 0.85rem;
  font-size: 0.88rem;
  color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23171717' stroke-width='1.25'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.55rem center; background-size: 14px 14px;
}
.filter-focus-chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.filter-focus-chips button.chip {
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.filter-focus-chips button.chip:hover {
  border-color: var(--focus-color, var(--ink));
  color: var(--focus-color, var(--ink));
  box-shadow: inset 0 0 0 1px var(--focus-color, transparent);
}
.filter-focus-chips button.chip.is-active {
  border-color: var(--focus-color, var(--ink));
  color: var(--focus-color, var(--ink));
  background: color-mix(in srgb, var(--focus-color, var(--ink)) 12%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--focus-color, transparent);
}
.filter-focus-chips .chip__dot { color: var(--focus-color); }
/* "All" chip (data-value="") inverts to ink when active */
.filter-focus-chips button.chip[data-value=""].is-active {
  border-color: var(--ink); background: var(--ink); color: #fff;
  box-shadow: none;
}
.filter-focus-chips button.chip[data-value=""]:hover {
  border-color: var(--ink); color: var(--ink); box-shadow: none;
}

.projecten-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--surface);
}
.view-toggle button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button:hover { color: var(--ink); }
.view-toggle button svg { width: 14px; height: 14px; }
.view-toggle button.is-active { background: var(--ink); color: #fff; }

/* Grid view (scrapbook) */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 920px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* List view (database) */
.portfolio-list {
  border-top: 1px solid var(--line);
}
.portfolio-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 2.5fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.portfolio-row:hover { background: var(--surface); padding-left: 0.4rem; padding-right: 0.4rem; margin-left: -0.4rem; margin-right: -0.4rem; }
.portfolio-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--focus-color); }
.portfolio-row__name { font-weight: 500; color: var(--ink); }
.portfolio-row__focus { color: var(--ink-muted); font-size: 0.82rem; }
.portfolio-row__countries { color: var(--ink-muted); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.portfolio-row__years { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.portfolio-row__arrow { color: var(--ink-faint); }
@media (max-width: 760px) {
  .portfolio-row { grid-template-columns: 8px 1fr auto; grid-template-areas:
      "dot name arrow"
      ".   focus focus"
      ".   years years"; }
  .portfolio-row__dot { grid-area: dot; }
  .portfolio-row__name { grid-area: name; }
  .portfolio-row__focus { grid-area: focus; }
  .portfolio-row__countries { display: none; }
  .portfolio-row__years { grid-area: years; }
  .portfolio-row__arrow { grid-area: arrow; }
}

.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ink-muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}

/* ------------------------------------------------- 11. Project modal ------ */
.project-modal {
  border: 0;
  padding: 0;
  max-width: min(880px, 96vw);
  max-height: 96vh;
  width: 100%;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-modal);
  color: var(--ink);
  overflow: hidden;
}
.project-modal::backdrop {
  background: rgba(23,23,23,0.5);
  backdrop-filter: blur(2px);
}
.project-modal__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 420px;
  height: 100%;
}
@media (max-width: 720px) {
  /* Op mobiel switchen we van grid naar flex.
     Root-oorzaak van het scroll-probleem: <dialog> heeft alleen max-height,
     geen definitieve height — daardoor lost height:100% op als 'auto', krijgt
     .project-modal__body nooit een vaste hoogte en springt overflow-y nooit aan.
     Oplossing: expliciete hoogte op de inner (niet percentage), flex-column
     layout, en body als flex:1 met min-height:0 zodat overflow werkt. */
  .project-modal__inner {
    display: flex;
    flex-direction: column;
    height: 92vh;        /* expliciet — los van parent max-height */
    min-height: 0;
  }
  .project-modal__media {
    flex: 0 0 auto;      /* neemt eigen hoogte, groeit/krimpt niet */
  }
  .project-modal__body {
    flex: 1 1 0;         /* vult de resterende ruimte */
    min-height: 0;       /* zonder dit krimpt flex-item niet → overflow werkt niet */
    overflow-y: scroll;  /* scroll i.p.v. auto: betrouwbaarder op iOS Safari */
    -webkit-overflow-scrolling: touch;
    max-height: none;
  }
}
.project-modal__media {
  background: var(--focus-color, var(--surface-2));
  min-height: 240px;
  position: relative;
  display: grid; place-items: center;
  color: #fff;
  padding: 2rem;
  text-align: center;
  overflow: hidden;
}
.project-modal__media::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(0,0,0,0.2), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.project-modal__media-img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  z-index: 1;
}
.project-modal__monogram {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #fff;
  font-size: clamp(3.5rem, 8vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-shadow: 0 3px 10px rgba(0,0,0,0.22);
}
.project-modal__logo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 18%;
  z-index: 2;
}
.project-modal__body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; gap: 1rem;
  max-height: 92vh;
  overflow-y: auto;
}
/* Compactere modal op schermen ≤ 820px hoog (bijv. MacBook 13").
   Niet van toepassing op mobiel (≤ 720px): daar bepaalt de grid-rij de hoogte. */
@media (max-height: 820px) and (min-width: 721px) {
  .project-modal__body {
    padding: 1.1rem 1.4rem;
    gap: 0.75rem;
    max-height: 90vh;
  }
}
.project-modal__close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  color: var(--ink);
  z-index: 2;
}
.project-modal__close:hover { background: #fff; }
.project-modal__focus {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--focus-color);
}
/* The focus-area wireframe icon (open book / leaf / cross / heart-pulse /
   sun / droplet) sits where a coloured dot used to be. It inherits the
   focus-area colour via `currentColor` inside the focusIconSVG strokes,
   reading instantly as both "this focus area" AND keeping the per-focus
   palette consistent across the page. */
.project-modal__focus-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  flex: 0 0 auto;
  margin-right: 0.05rem;
  color: var(--focus-color);
}
.project-modal__focus-mark svg {
  width: 100%; height: 100%;
  display: block;
}
.project-modal__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.1;
}
.project-modal__summary { color: var(--ink-muted); font-size: 0.98rem; }
.project-modal__summary p { margin: 0 0 0.85rem; }
.project-modal__summary p:last-child { margin-bottom: 0; }
.project-modal__summary em { font-style: italic; color: var(--ink); }
.project-modal__summary strong { color: var(--ink); font-weight: 600; }
.project-modal__kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 0.25rem;
}
.project-modal__kv dt { color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; padding-top: 0.22rem; }
.project-modal__kv dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.project-modal__actions { margin-top: auto; display: flex; gap: 0.75rem; flex-wrap: wrap; }
/* Themed CTA below the modal data row. Composite: a fixed-width pill
   ("Bezoek website" + external-link icon) on top, with a smaller sub-label
   underneath that previews the bare partner domain. The whole thing is one
   <a>, so focus/hover apply uniformly, but the pill width never depends on
   the partner name (which previously could push the modal layout around). */
.project-modal__cta {
  margin-top: 0.85rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.42rem;
  text-decoration: none;
  color: inherit;
  align-self: flex-start;
}
.project-modal__cta__pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  /* Fixed pill geometry — no partner-name interpolation, so width is stable. */
  width: 14rem;
  padding: 0.78rem 1.1rem;
  background: var(--focus-color, var(--ink));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  letter-spacing: 0.005em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: transform var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}
.project-modal__cta:hover .project-modal__cta__pill {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.project-modal__cta:focus-visible { outline: none; }
.project-modal__cta:focus-visible .project-modal__cta__pill {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.project-modal__cta__label {
  flex: 1 1 auto;
  /* Optical centering across the pill — slightly left-biased so the label
     sits next to the right-side ext glyph without looking floated. */
  text-align: left;
}
/* External-link glyph: clear "opens in a new tab" affordance. */
.project-modal__cta__ext {
  width: 16px; height: 16px;
  flex: 0 0 auto;
  color: currentColor;
}
/* Sub-label under the pill: small browser-window icon + bare partner
   domain. Faded enough to read as a meta line; aligned to the pill's left
   edge so it parses as belonging to the button above. */
.project-modal__cta__sub {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.25rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.project-modal__cta__browser {
  width: 14px; height: 14px;
  flex: 0 0 auto;
  color: var(--ink-faint);
}
.project-modal__cta__url {
  word-break: break-all;
}

/* Mini world map inside modal */
.mini-map {
  margin-top: 0.25rem;
  width: 100%;
  height: 110px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.mini-map svg { width: 100%; height: 100%; display: block; }

/* ------------------------------------------------- 12. Werkwijze view ---- */
/* Werkwijze hero borrows the homepage hero scaffolding so the page sits in
   the same visual register as Stichting. The brand column hosts the kicker
   + title; the body column hosts the lede + the inline 3-themes list. */
.werkwijze-hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1rem, 2vw, 1.5rem);
}
.werkwijze-hero .hero__grid {
  align-items: start;
  /* tighter ratio than the homepage — the brand side here is just text, not
     a logo, so we don't need it to dominate. */
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
}
@media (max-width: 760px) {
  .werkwijze-hero .hero__grid { grid-template-columns: 1fr; }
}

/* Werkwijze sections: tighter vertical rhythm than the generic .section rule. */
section.section.werkwijze {
  padding-top: clamp(2rem, 3.5vw, 3rem);
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
}

/* Werkwijze section heads use a slightly smaller body lede than the homepage:
   the page is content-dense and the title + paragraph need a tighter
   hierarchy so the title clearly leads. */
.werkwijze .section__head .lede {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Inline 3-themes outline list — sits inside the hero body column, framed
   by hairlines, with serif-italic numerals as kickers. Acts as a
   "table-of-contents" that the three sections below answer one-for-one. */
.ww-themes {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  counter-reset: t;
}
.ww-themes li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
  color: var(--ink-muted);
  line-height: 1.45;
}
.ww-themes li:last-child { border-bottom: 1px solid var(--line); }
.ww-themes li::before {
  content: counter(t, decimal-leading-zero);
  counter-increment: t;
  position: absolute;
  left: 0; top: 0.95rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* Sub-blocks within a section: small horizontal rule + uppercase eyebrow,
   followed by content. Keeps section 02 (Effectiviteit) coherent across its
   three movements (3 O's → morele cirkel → vier hoofdcriteria) without
   re-using the heavy section__head treatment for each. */
.ww-sub {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}
.ww-sub:first-of-type { margin-top: 0.5rem; }
.ww-sub__head {
  display: flex; align-items: center; gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.ww-sub__rule {
  display: inline-block;
  width: 36px; height: 1px;
  background: var(--ink);
  flex-shrink: 0;
}
.ww-sub__label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}
.ww-sub__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.85rem;
}

/* Side-by-side layout for the morele-cirkel sub-block: explanatory copy
   on the left, SVG on the right. Stacks below ~860px. */
.ww-sub__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.ww-sub__copy p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.6;
}
@media (max-width: 860px) {
  .ww-sub__row { grid-template-columns: 1fr; }
}

.block {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
}
.block h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.block p { margin: 0 0 1rem; color: var(--ink-muted); max-width: 64ch; }
.block__grid3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1.75rem;
}
@media (max-width: 760px) { .block__grid3 { grid-template-columns: 1fr; } }
.ww-org-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .ww-org-grid { grid-template-columns: 1fr; } }
.block__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
}
.block__card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

/* Moral circle SVG container */
.moral-circle {
  margin: 2rem auto 0;
  max-width: 720px;
  width: 100%;
  position: relative;
}

/* Impact chain visual */
.impact-chain {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 2rem 0 1rem;
}
@media (max-width: 760px) { .impact-chain { grid-template-columns: 1fr 1fr; } }
.impact-step {
  padding: 1rem 1.25rem;
  color: #fff;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
  display: flex; flex-direction: column; gap: 0.35rem;
  min-height: 96px;
}
.impact-step:first-child { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); }
.impact-step:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 16px 50%); }
.impact-step__title { font-weight: 600; font-size: 0.95rem; }
.impact-step__sub { font-size: 0.76rem; opacity: 0.9; line-height: 1.3; }
.impact-step.inputs { background: #118AB2; }
.impact-step.activities { background: #FF7D43; }
.impact-step.outputs { background: #6A4C93; }
.impact-step.effects { background: #EF476F; }
.impact-step.indirect { background: #68A18A; }

/* Four criteria cards (effectiviteit, efficiency, scale, transparency) */
.crit-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 760px) { .crit-grid { grid-template-columns: 1fr; } }
.crit-card {
  border-left: 2px solid var(--ink);
  padding: 0.5rem 0 0.5rem 1.2rem;
}
.crit-card h3,
.crit-card h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  letter-spacing: -0.005em;
}
.crit-card p { font-size: 0.92rem; color: var(--ink-muted); margin: 0; }

/* ------------------------------------------------- 13. Publicaties -------- */
.pub-archive {
  margin-top: 1.5rem;
}

.pub-archive__head {
  display: grid;
  grid-template-columns: 110px repeat(3, 1fr);
  gap: 1rem;
  padding: 0 0 0.8rem;
  border-bottom: 1px solid var(--line-strong);
}
.pub-archive__head > div {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
}
.pub-archive__head > .pub-archive__year-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); font-weight: 400;
}
.pub-year-row {
  display: grid;
  grid-template-columns: 110px repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.pub-year-row:first-of-type { border-top: 0; }
.pub-year-row:last-child { border-bottom: 1px solid var(--line); }
.pub-year {
  display: flex; flex-direction: column; gap: 0.35rem;
  align-items: flex-start; justify-content: center;
  line-height: 1;
}
.pub-year__num {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.pub-year__badge {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  padding: 0.18rem 0.5rem;
  border-radius: var(--r-pill);
}
/* Latest row: keep the year in full ink and the cells border a touch
   stronger so the current year reads as the anchor. */
.pub-year-row.is-latest .pub-cell--filled { border-color: var(--line-strong); }
.pub-year-row.is-latest .pub-year__num { color: var(--ink); }
.pub-year-row:not(.is-latest) .pub-year__num { color: var(--ink-muted); }

/* Per-type pastel theming + per-rank fade.
   - --pub-tint:        the cell's pastel background colour
   - --pub-tint-strong: a slightly punchier accent for the icon + dl link
   - --pub-rank:        0 (latest) ... N (oldest); used to lerp opacity */
.pub-cell {
  --pub-tint: var(--surface);
  --pub-tint-strong: var(--ink);
  /* Each step older drops the cell tint by ~22% down to a 26% floor. */
  --pub-strength: max(0.26, calc(1 - var(--pub-rank, 0) * 0.22));
  background: color-mix(in srgb, var(--pub-tint) calc(var(--pub-strength) * 100%), #fff);
  border: 1px solid color-mix(in srgb, var(--pub-tint-strong) calc(var(--pub-strength) * 38%), var(--line));
  border-radius: var(--r-md);
  padding: 0.95rem 1.05rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  justify-content: space-between;
  position: relative;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
/* Map each kind to one of the SNW focus pastels:
     Beleidsplan → K&E yellow, Jaarverslag → N&B green, ANBI → WA blue. */
.pub-cell[data-kind="beleid"] { --pub-tint: #fff0c8; --pub-tint-strong: #FFD166; }
.pub-cell[data-kind="jaar"]   { --pub-tint: #d8eae0; --pub-tint-strong: #68A18A; }
.pub-cell[data-kind="anbi"]   { --pub-tint: #cfe6f0; --pub-tint-strong: #118AB2; }
/* The PDF icon and the "Download" arrow pick up the per-kind accent so the
   colour reads cleanly even on the strongest rank. */
.pub-cell[data-kind="beleid"] .pub-cell__icon svg { color: #b88905; }
.pub-cell[data-kind="jaar"]   .pub-cell__icon svg { color: #3f6f5a; }
.pub-cell[data-kind="anbi"]   .pub-cell__icon svg { color: #0c6c8e; }
.pub-cell--filled[data-kind="beleid"]:hover { border-color: #c2952d; }
.pub-cell--filled[data-kind="jaar"]:hover   { border-color: #4f8067; }
.pub-cell--filled[data-kind="anbi"]:hover   { border-color: #0c6c8e; }
@supports not (background: color-mix(in srgb, red, blue)) {
  /* Graceful fallback: drop the lerp, keep the per-kind tint flat. */
  .pub-cell { background: var(--pub-tint); border-color: var(--line); }
  .pub-year-row:not(.is-latest) .pub-cell { opacity: 0.7; }
}
.pub-cell__head {
  display: flex; align-items: flex-start; gap: 0.7rem;
}
.pub-cell__icon {
  flex: 0 0 auto;
  width: 30px; height: 36px;
  display: grid; place-items: center;
}
.pub-cell__icon svg { width: 100%; height: 100%; }
.pub-cell--filled:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.pub-cell--filled:hover .pub-cell__dl { color: var(--ink); }
.pub-cell--empty {
  background: transparent;
  border-style: dashed;
  color: var(--ink-faint);
  align-items: center; justify-content: center;
  text-align: center;
  font-size: 0.8rem;
  gap: 0.4rem;
  padding: 1rem 0.75rem;
}
.pub-cell--empty .pub-cell__icon { width: 24px; height: 28px; opacity: 0.6; }
.pub-cell__kind {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.pub-cell__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.2;
}
.pub-cell__sub {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.45;
}
.pub-cell__foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.pub-cell__dl {
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.pub-cell__size {
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

/* "Dutch only" badge — sits in the top-right corner of every filled
   publication tile, shown ONLY when the UI is in English. The PDFs
   themselves are always in Dutch, so English readers get a heads-up. */
.pub-cell__lang {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  align-items: center;
  gap: 0.3em;
  padding: 2px 7px 2px 6px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--surface) 88%, var(--ink) 4%);
  border: 1px solid var(--line);
  border-radius: 999px;
  line-height: 1.4;
  pointer-events: none;
  white-space: nowrap;
}
.pub-cell__lang-flag {
  font-size: 0.92em;
  line-height: 1;
  filter: saturate(0.92);
}
body[data-lang="en"] .pub-cell--filled .pub-cell__lang { display: inline-flex; }

@media (max-width: 760px) {
  .pub-archive__head { display: none; }
  .pub-year-row { grid-template-columns: 1fr; }
  .pub-year {
    flex-direction: row; align-items: center; gap: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
  }
  .pub-year__num { font-size: 1.6rem; }
}

/* ------------------------------------------------- 14. Contact view ------- */
/* New layout: hero (intro left, addresses right) + body below */
.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 880px) { .contact-hero { grid-template-columns: 1fr; } }
.contact-hero__addrs {
  display: flex; flex-direction: column; gap: 1rem;
}
.contact-body { max-width: 1100px; }

.board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 760px) { .board { grid-template-columns: 1fr; } }

/* Bestuur tile — clear B&W portrait left, text right. Warm but quiet. */
.board-member {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.board-member__photo {
  position: relative;
  background: color-mix(in srgb, var(--member-accent, var(--ink)) 8%, var(--surface));
  overflow: hidden;
}
.board-member__photo::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset -1px 0 0 var(--line);
  pointer-events: none;
}
.board-member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  filter: grayscale(0.05) contrast(1.02);
}
.board-member__photo--empty {
  background: color-mix(in srgb, var(--member-accent, var(--ink)) 14%, var(--surface));
}
.board-member__body {
  padding: 1rem 1.1rem;
  display: flex; flex-direction: column; justify-content: center; gap: 0.2rem;
  border-left: 3px solid var(--member-accent, var(--line));
}
.board-member__role {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.13em;
  color: color-mix(in srgb, var(--member-accent, var(--ink-muted)) 70%, var(--ink-muted));
  font-weight: 500;
}
.board-member__name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--ink);
}
.board-member__since {
  font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.1rem;
  font-variant-numeric: tabular-nums;
}
.board-member:hover {
  border-color: color-mix(in srgb, var(--member-accent, var(--ink)) 40%, var(--line));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -10px color-mix(in srgb, var(--member-accent, var(--ink)) 30%, transparent);
}
@media (max-width: 480px) {
  .board-member { grid-template-columns: 80px minmax(0, 1fr); }
}

.kv {
  display: grid; grid-template-columns: minmax(130px, auto) 1fr;
  gap: 0.5rem 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.kv dt { color: var(--ink-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; padding-top: 0.3rem; }
.kv dd { margin: 0; padding: 0.25rem 0; }
.kv a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .kv { grid-template-columns: 1fr; gap: 0.1rem 0; }
  .kv dt { padding-top: 1rem; }
  .kv dd { padding-bottom: 0; }
}

/* Address cards: pastel-tinted, with icon. Two flavours — post and visit. */
.addr-card {
  position: relative;
  padding: 1.25rem 1.4rem 1.35rem;
  border-radius: var(--r-lg);
  font-size: 0.95rem;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 1rem;
  row-gap: 0.4rem;
  border: 1px solid transparent;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.addr-card--post {
  /* warm sandy yellow — postal/letter */
  --addr-tint:   #FFD166;
  --addr-bg:     color-mix(in srgb, #FFD166 18%, var(--surface));
  --addr-border: color-mix(in srgb, #FFD166 45%, var(--line));
  --addr-ink:    color-mix(in srgb, #8A6B11 70%, var(--ink));
  background: var(--addr-bg);
  border-color: var(--addr-border);
}
.addr-card--visit {
  /* sage green — place / nature / meeting */
  --addr-tint:   #68A18A;
  --addr-bg:     color-mix(in srgb, #68A18A 16%, var(--surface));
  --addr-border: color-mix(in srgb, #68A18A 40%, var(--line));
  --addr-ink:    color-mix(in srgb, #2F6B53 70%, var(--ink));
  background: var(--addr-bg);
  border-color: var(--addr-border);
}
.addr-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -14px color-mix(in srgb, var(--addr-tint) 50%, transparent);
}
.addr-card__icon {
  grid-row: 1 / span 3;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--addr-tint) 30%, var(--bg));
  color: var(--addr-ink);
}
.addr-card__icon svg { width: 22px; height: 22px; }
.addr-card__heading {
  display: flex; flex-direction: column; gap: 0.15rem;
}
.addr-card__kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--addr-ink);
  opacity: 0.8;
  font-weight: 500;
}
.addr-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.addr-card__lines {
  grid-column: 2;
  line-height: 1.55;
  color: var(--ink);
}
.addr-card__note {
  grid-column: 2;
  color: color-mix(in srgb, var(--addr-ink) 75%, var(--ink-faint));
  font-size: 0.82rem;
  font-style: italic;
  margin-top: 0.4rem;
  border-top: 1px dashed color-mix(in srgb, var(--addr-tint) 40%, var(--line));
  padding-top: 0.55rem;
}
@media (max-width: 480px) {
  .addr-card { grid-template-columns: 38px minmax(0, 1fr); column-gap: 0.85rem; }
  .addr-card__icon { width: 38px; height: 38px; }
  .addr-card__icon svg { width: 18px; height: 18px; }
}

/* ------------------------------------------------- 15. Footer ------------- */
.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}
.site-footer__brand { display: flex; flex-direction: column; gap: 1rem; }
.site-footer__logo {
  height: 64px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.site-footer__cols > div { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.site-footer__cols a { color: var(--ink-muted); }
.site-footer__cols a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}
.site-footer__strip {
  border-top: 1px solid var(--line);
  padding: 1rem var(--page-gutter);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ------------------------------------------------- 16. Portfolio map ------ */
.portfolio-map {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
}
.portfolio-map__svg {
  width: 100%;
  height: auto;
  display: block;
}
.portfolio-map__legend {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.portfolio-map__tip {
  position: fixed;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  z-index: 50;
  transform: translate(-50%, calc(-100% - 12px));
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.map-dot {
  cursor: pointer;
  transition: transform 120ms var(--ease), opacity 120ms var(--ease);
  transform-origin: center;
  transform-box: fill-box;
}
.map-dot:hover,
.map-dot:focus-visible { transform: scale(1.5); outline: none; }

/* ------------------------------------------------- 17. Werkwijze 3 O's ---- */
/* Each tile gets a subtle focus-coloured tint, a top accent border, and a
   giant partially-cropped italic "O" as a watermark in the top-right —
   echoing the three O-words (Omvangrijk · Oplosbaar · Onderbelicht). */
.ooo-grid {
  /* Slightly more breathing room than block__grid3 default so the watermarks
     don't fight the neighbouring tile. */
  gap: clamp(1rem, 2.2vw, 1.75rem);
}
.ooo-tile {
  --tint: var(--ink);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--tint) 8%, var(--surface)),
                            color-mix(in srgb, var(--tint) 3%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--tint) 22%, var(--line));
  border-radius: var(--r-lg);
  padding: 1.5rem 1.6rem 1.4rem;
  display: flex; flex-direction: column;
  isolation: isolate;
}
.ooo-tile::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--tint);
  opacity: 0.65;
}
.ooo-tile__O {
  position: absolute;
  top: -38%;
  right: -18%;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(11rem, 22vw, 18rem);
  line-height: 1;
  color: var(--tint);
  opacity: 0.13;
  pointer-events: none;
  letter-spacing: -0.04em;
  z-index: 0;
  user-select: none;
}
.ooo-tile__body { position: relative; z-index: 1; }
.ooo-tile__kicker {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--tint) 70%, var(--ink));
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.ooo-tile h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.ooo-tile p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0;
}
@supports not (background: color-mix(in srgb, red, blue)) {
  /* color-mix() fallback for older browsers — the underlying surface fills
     in cleanly without the tint blend. */
  .ooo-tile { background: var(--surface); border-color: var(--line); }
  .ooo-tile__kicker { color: var(--tint); }
}

/* ------------------------------------------------- 18. Modal logobadge ---- */
/* Partner-logo BADGE on the modal hero photo. Same "postzegel" pattern as
   the gallery cards but at a larger scale: more padding inside the canvas
   and a bigger logo. Per-project `logo_canvas: false` opts out of the white
   canvas, leaving the logo sitting transparently on the photo. */
.project-modal__logobadge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  pointer-events: none;
}
.project-modal__logobadge.is-canvas {
  /* Same translucent postzegel as the gallery cards but at modal scale. */
  --logo-canvas-opacity: 0.78;
  background: rgba(255, 255, 255, var(--logo-canvas-opacity));
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  border-radius: var(--r-md, 8px);
  /* "vrij brede padding van 30 px rondom" — generous canvas around the logo */
  padding: 28px 32px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.project-modal__logobadge-img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  max-height: 96px;
  max-width: 200px;
}
.project-modal__logobadge.is-portrait  .project-modal__logobadge-img { max-height: 130px; max-width: 100px; }
.project-modal__logobadge.is-square    .project-modal__logobadge-img { max-height: 120px; max-width: 120px; }
.project-modal__logobadge.is-landscape .project-modal__logobadge-img { max-height: 84px;  max-width: 220px; }
.project-modal__logobadge.is-wide      .project-modal__logobadge-img { max-height: 60px;  max-width: 260px; }
.project-modal__continents {
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

/* Modal: icon-based meta row (location + period) */
.project-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  align-items: center;
}
.project-modal__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.project-modal__meta-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--ink-faint);
  position: relative;
  top: -0.5px; /* optische uitlijning met tekst */
}
/* Subtiele scheidingslijn wanneer er geen kaart is */
.project-modal__divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ------------------------------------------------- 19. Contact link bits -- */
.kv__hint {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 0.2rem;
  line-height: 1.4;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.25rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color var(--dur-fast) var(--ease);
}
.link-arrow:hover { text-decoration-color: var(--ink); }

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

/* ===================================================================== *
 * PORTAAL (internal dashboard) — additions only, see CLAUDE.md §2.
 * Reuses the site palette/typography so it reads as part of SNW.
 * ===================================================================== */
.portaal-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* --- Login ---------------------------------------------------------- */
.portaal-wrap--login {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portaal-login {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 2.4rem 2.2rem 2.2rem;
  display: flex;
  flex-direction: column;
}
.portaal-login__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.1;
  margin: 0 0 0.35rem;
}
.portaal-login__sub {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0 0 1.6rem;
}
.portaal-login__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}
.portaal-login__input {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.portaal-login__input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.portaal-login__btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  transition: filter var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.portaal-login__btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.portaal-login__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.portaal-login__error {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: #c0392b;
  text-align: center;
}

/* --- Embedded dashboard --------------------------------------------- */
/* The full standalone SNW Portfolio Dashboard is embedded 100% intact in an
   iframe; the website only adds this thin wrapper + a logout link. The iframe
   is sized by JS to fill the viewport below the site header so the dashboard
   scrolls INTERNALLY (its sticky section-nav + filter bar and anchor "tabs"
   work as designed): site header (pinned) → dashboard → site footer. */
.portaal-embed-wrap {
  display: flex;
  flex-direction: column;
}
/* Slim bar between the (single) website header and the embedded dashboard:
   the dashboard's Asana-sync meta on the left, the logout pill on the right. */
.portaal-embed-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem var(--page-gutter, 1.5rem);
}
.portaal-embed-meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
.portaal-embed-wrap .portaal-logout {
  flex: 0 0 auto;
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: var(--surface);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.portaal-embed-wrap .portaal-logout:hover { color: var(--ink); border-color: var(--line-strong); }
.portaal-embed {
  width: 100%;
  border: 0;
  display: block;
  height: 80vh;            /* fallback; JS sizes to viewport-below-header */
  background: #ffffff;
}

/* =====================================================================
 * MOBILE / NARROW-SCREEN OVERRIDES
 * Pure additions — no rule here changes rendering above the stated width.
 * ===================================================================== */

/* Header: compact on narrow phones (≤ 580 px)
 * The language toggle is 232 px wide — it overflows a 400 px header.
 * Solution: flag-only mode; text labels hidden, gap tightened.            */
@media (max-width: 580px) {
  .site-header {
    gap: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .brand__logo { height: 30px; }
  .lang-toggle__track { width: 72px; }
  .lang-toggle__opt   { padding: 4px 10px; gap: 0; }
  .lang-toggle__opt span:not(.lang-toggle__flag) { display: none; }
}

/* Mobile slide-nav: keep it truly hidden when closed so it cannot
 * bleed through on browsers where overflow-x:hidden doesn't clip
 * position:fixed children (common on iOS Safari / Chrome iOS).
 * The visibility is delayed on close so the slide-out animation
 * completes before the element disappears.                                 */
@media (max-width: 920px) {
  .primary-nav {
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--dur) var(--ease),
                visibility 0s linear var(--dur);
  }
  body.nav-open .primary-nav {
    visibility: visible;
    pointer-events: auto;
    transition: transform var(--dur) var(--ease),
                visibility 0s;
  }
}

/* Morele-cirkel fish SVG: horizontal scroll on mobile so labels stay
 * legible. The 900-wide viewBox renders at < 5 px text on a 400 px
 * screen; a 560 px minimum keeps text readable and the horizontal
 * scroll is natural for a panoramic infographic.                           */
@media (max-width: 640px) {
  /* The SVG already has style="width:100%;height:auto".
     On mobile the JS re-generates it with larger viewBox font-sizes so
     labels stay legible at the narrower render width. No forced min-width
     or horizontal scroll needed anymore.                                  */
  .moral-circle {
    margin-top: 1rem;
    overflow-x: hidden;
  }
  .moral-circle > svg {
    width: 100%;
    height: auto;
  }
}

/* ===================================================================
 * MOBILE IMPROVEMENTS — 2026-05-22
 * All rules apply ≤ 920 px or narrower sub-breakpoints.
 * Zero effect on viewports wider than the stated max-width.
 * =================================================================== */

/* 0 ── Page gutter: more breathing room on mobile
 * -------------------------------------------------------
 * Desktop: --page-gutter = clamp(1.25rem, 3vw, 2.5rem) → ≈ 20 px at 375 px.
 * That 20 px per side feels cramped.
 * Fix: directly override padding on .wrap and .site-header so there is no
 * dependence on the custom-property cascade (which can be tricky inside
 * media queries). Use 1.75 rem (28 px) — a clearly visible step up.      */
@media (max-width: 920px) {
  /* Both .page and .wrap are the horizontal centring wrappers.
     Sections use class="page section"; other containers use .wrap.   */
  .page,
  .wrap {
    padding-left:  1.75rem;
    padding-right: 1.75rem;
  }
  .site-header {
    padding-left:  1.75rem;
    padding-right: 1.75rem;
  }
}

/* 1 ── Header grid: drop the padlock slot on mobile, rebuild columns
 * -------------------------------------------------------
 * Desktop: auto(logo) | 1fr(nav) | auto(padlock) | auto(lang) | auto(burger)
 * Mobile: the nav is position:fixed so its 1fr column stays as a spacer.
 * With the lang-toggle at 232 px, the sum overflows a 375 px phone →
 * the burger gets pushed out. Fix: remove the padlock from the grid
 * entirely (display:none on .dashboard-link) and drop that column so we
 * get auto(logo) | 1fr(spacer) | auto(lang, ~88 px) | auto(burger, 36 px).
 * This leaves ~200 px for the logo and spacer, plenty on any phone.    */
@media (max-width: 920px) {
  .site-header    { grid-template-columns: auto 1fr auto auto; gap: 1rem; }
  .dashboard-link { display: none; }
  .site-search    { display: none; }
}
@media (max-width: 480px) {
  /* Keep the 1.75rem side gutter from block 0; only adjust gap + logo height */
  .site-header { gap: 0.5rem; }
  .brand__logo { height: 28px; }
}

/* 2 ── Language toggle: flag-only from 920 px
 * -------------------------------------------------------
 * "Nederlands" / "English" are bare text nodes — display:none on child
 * spans cannot hide them. font-size:0 on the parent collapses the node;
 * .lang-toggle__flag (<span>) gets its size back explicitly.
 * Constraints are applied at three levels (button, track, opt) so no
 * layer can accidentally widen the whole control.                      */
@media (max-width: 920px) {
  .lang-toggle {
    max-width: 88px;          /* button outer = track(80) + padding(3+3) + border(1+1) */
    overflow: hidden;
  }
  .lang-toggle__track {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
  }
  .lang-toggle__opt {
    font-size: 0;             /* collapses the bare "Nederlands"/"English" text node  */
    padding: 4px 0;           /* horizontal padding handled by fixed width below       */
    gap: 0;
    width: 40px;              /* explicit half-track width; no reliance on 1fr columns */
    justify-content: center;
    overflow: hidden;
  }
  .lang-toggle__flag { font-size: 1.15rem; }
}

/* 3 ── Stats strip: 2 × 2 from 920 px
 * -------------------------------------------------------
 * Four columns on a ~400 px phone is unreadably dense; break earlier.  */
@media (max-width: 920px) {
  .stats                       { grid-template-columns: 1fr 1fr; }
  .stats__cell:nth-child(2n)   { border-right: 0; }
  .stats__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* 4 ── Section vertical rhythm: more compact on mobile                  */
@media (max-width: 920px) {
  .section {
    padding-top:    clamp(1.75rem, 5vw, 3rem);
    padding-bottom: clamp(1.75rem, 5vw, 3rem);
  }
}

/* 5 ── Portfolio grid: tighter card gap on mobile                       */
@media (max-width: 920px) {
  .portfolio-grid { gap: clamp(0.75rem, 2.5vw, 1.25rem); }
}

/* 6 ── Display type: tighten minimums on very narrow phones             */
@media (max-width: 380px) {
  .display--xl { font-size: 2.1rem; }
  .display--lg { font-size: 1.65rem; }
}

/* 7 ── Mobile nav: right-side dropdown + backdrop-filter fix
 * -------------------------------------------------------
 * ROOT CAUSE: backdrop-filter on .site-header makes the header the
 * containing block for all position:fixed children (Chrome/Safari spec).
 * Fix: remove backdrop-filter on mobile → nav is viewport-relative again.
 *
 * LAYOUT: Instead of a full-screen overlay (inset: 72px 0 0 0), the nav
 * becomes a compact right-side panel that drops down from under the burger.
 * Width is capped at 260 px so it never covers the whole screen.
 * Slide-in from the right + opacity fade for a polished feel.             */
@media (max-width: 920px) {
  /* 7a – Header: drop backdrop-filter so position:fixed nav works correctly */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--bg);          /* fully opaque without the blur         */
  }

  /* 7b – Nav: right-side panel anchored below the header right edge         */
  .primary-nav {
    /* Position: right-anchored, auto-height, max 260 px wide               */
    inset: auto;                    /* reset all four sides from base rule    */
    top: 64px;                      /* below header (header is ~64 px tall)   */
    right: 0;
    left: auto;
    bottom: auto;
    width: min(260px, 88vw);
    height: auto;

    /* Appearance                                                             */
    background: var(--bg);
    border-left:   1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0 0 0 var(--r-lg);
    box-shadow: -4px 6px 24px rgba(23,23,23,0.10);
    padding: 0.5rem 0;

    /* Stack links vertically (already set in base, but make sure)           */
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;

    /* Animation: slide in from the right + fade                             */
    z-index: 39;
    transform: translateX(100%);
    opacity: 0;
    transition: transform var(--dur) var(--ease),
                opacity var(--dur) var(--ease),
                visibility 0s linear var(--dur);
  }
  body.nav-open .primary-nav {
    transform: translateX(0);
    opacity: 1;
    transition: transform var(--dur) var(--ease),
                opacity var(--dur) var(--ease),
                visibility 0s;
  }

  /* 7c – Nav links: full-width, with dividers; no serif italic              */
  .primary-nav a {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-muted);
    text-align: left;
  }
  .primary-nav a:last-child { border-bottom: none; }
  .primary-nav a:hover,
  .primary-nav a.is-active  { color: var(--ink); background: var(--surface-2); }
  .primary-nav a.is-active::after { display: none; } /* hide desktop underline */

  /* 7d – Hamburger: softer focus ring, not the default black square         */
  .nav-burger:focus-visible {
    outline: 1.5px solid var(--ink-faint);
    outline-offset: 5px;
    border-radius: 8px;
  }
}

/* 8 ── Portfolio filter bar: mobile-friendly layout
 * -------------------------------------------------------
 * Structure of .projecten-meta:
 *   .projecten-meta
 *     div ("15 projecten")
 *     .filter-group
 *       span.filter-group__label ("SORTEREN")
 *       select.filter-select (sort dropdown)
 *       .view-toggle > button × 3 (icon + text label each)
 *
 * Problem: all four items together exceed ~375 px.
 * Fix A (≤ 760 px): hide text labels in the view-toggle so it shrinks
 *   to three icon-only buttons; the row fits in one line again.
 * Fix B (≤ 560 px): if still tight, also wrap .filter-group so the
 *   view-toggle drops to its own line at full width.
 * Also tighten the filter container padding and let focus-chips scroll
 * horizontally instead of wrapping to many cramped lines.              */

/* A — icon-only view toggle from 760 px down */
@media (max-width: 760px) {
  .view-toggle button span { display: none; }         /* hide "Galerij" / "Lijst" / "Wereldkaart" */
  .view-toggle button { padding: 0.45rem 0.85rem; }   /* compensate for missing text              */

  .projecten-filters {
    padding: 0.75rem 0.85rem;
    gap: 0.5rem 0.65rem;
  }

  /* Horizontal-scroll strip for focus-chips — one scannable row vs.
     four cramped wrapped rows on a 375 px screen.                    */
  .filter-focus-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .filter-focus-chips::-webkit-scrollbar { display: none; }
}

/* B — at very narrow phones: wrap sort + view-toggle to separate rows */
@media (max-width: 480px) {
  .projecten-meta { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .filter-group   { flex-wrap: wrap; gap: 0.5rem; }
  .view-toggle    { width: 100%; }
  .view-toggle button { flex: 1; justify-content: center; }
}

/* 9 ── Scrapbook grid: 1 kolom op smalle telefoons
 * -------------------------------------------------------
 * Base rules: ≤920px → 3 kolommen, ≤680px → 2 kolommen.
 * Op telefoons in staande modus (≤560px) zijn 2 kolommen te smal:
 * logo's en kaartinhoud worden onleesbaar.
 * Zet terug naar 1 kolom zodat elke kaart de volle breedte krijgt.  */
@media (max-width: 560px) {
  .scrapbook { grid-template-columns: 1fr; }
}

/* 10 ── Scrapbook card tilt: disable on mobile
 * -------------------------------------------------------
 * Each .scrap-card__photo-wrap has transform:rotate(var(--rot)).
 * On touch devices the hover reset (rotate 0) never fires — cards
 * stay permanently tilted and look broken.
 * Remove the tilt entirely on mobile; hover lift also disabled
 * so touch-taps don't trigger a jarring jump.                       */
@media (max-width: 920px) {
  .scrap-card__photo-wrap,
  .scrap-card:hover .scrap-card__photo-wrap { transform: none; }
}

/* 11 ── Focusgebied filter: dropdown op mobiel, chips op desktop
 * -------------------------------------------------------
 * Op desktop zie je de chip-rij (klikbare pills met kleurstip).
 * Op mobiel (≤760 px) past de chip-rij niet goed: labels worden
 * afgeknipt, horizontaal scrollen is onhandig.
 * Oplossing: verberg de chips en toon in plaats daarvan een
 * standaard <select> — consistent met de LAND- en JAAR-dropdowns.
 * De bestaande change-listener (.filter-select[data-filter]) pakt
 * de nieuwe select automatisch op; geen extra JS nodig.            */

/* Desktop: altijd chips zichtbaar, dropdown verborgen */
.filter-focus-select-group { display: none; }

@media (max-width: 760px) {
  /* Mobile: chips verbergen, dropdown tonen */
  .filter-focus-chips       { display: none; }
  .filter-focus-select-group { display: flex; }
}

/* 12 ── Taalwisseling in hamburgermenu
 * -------------------------------------------------------
 * Op mobiel (≤920 px) verbergen we de lang-toggle uit de header
 * en tonen we in plaats daarvan twee pill-knoppen onderaan de
 * mobiele nav. De actieve taal wordt gemarkeerd via het
 * data-lang attribuut op <body> dat applyI18n() altijd bijwerkt. */

/* Verberg header lang-toggle op mobiel */
@media (max-width: 920px) {
  .lang-toggle { display: none; }
}

/* Nav-lang-row: alleen zichtbaar als mobiel dropdown */
.nav-lang-row {
  display: none;
}

@media (max-width: 920px) {
  .nav-lang-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem 0.9rem;
    border-top: 1px solid var(--line);
  }
}

.nav-lang-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.5rem;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-lang-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

/* Actieve taal — gevuld op basis van body[data-lang] */
body[data-lang="nl"] .nav-lang-btn[data-nav-lang="nl"],
body[data-lang="en"] .nav-lang-btn[data-nav-lang="en"] {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
  border-color: var(--line-strong);
}

/* 13 ── Logo groter + burger rechts op mobiel
 * -------------------------------------------------------
 * Desktop-hoogte is 38 px. Op mobiel zetten we hem op 44 px voor
 * meer gewicht. Burger krijgt margin-left:auto zodat hij altijd
 * rechts in de header staat, ongeacht welke andere items
 * (lang-toggle, dashboard-link) verborgen zijn.                   */
@media (max-width: 920px) {
  .brand__logo { height: 44px; }
  .nav-burger  { margin-left: auto; }
}
