/* DM Sans — self-hosted (geen externe Google Fonts-call vóór consent; AVG-vriendelijk) */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:300;font-display:swap;src:url('/shared/fonts/dm-sans-latin-300-normal.woff2') format('woff2');}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/shared/fonts/dm-sans-latin-400-normal.woff2') format('woff2');}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url('/shared/fonts/dm-sans-latin-500-normal.woff2') format('woff2');}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url('/shared/fonts/dm-sans-latin-700-normal.woff2') format('woff2');}
@font-face{font-family:'DM Sans';font-style:italic;font-weight:300;font-display:swap;src:url('/shared/fonts/dm-sans-latin-300-italic.woff2') format('woff2');}

/* ════════════════════════════════════════════
   AP/ART groep — shared subpage stylesheet
════════════════════════════════════════════ */

:root {
  --teal:          #8EB6B6;
  --teal-dark:     #5a8e8c;
  --teal-pale:     rgba(142,182,178,0.15);
  --atelier-brown: #3D342C;
  --atelier-beige: #DDD7C9;
  --atelier-paper: #F3EFE6;
  --ruimte-accent: #C4956A;
  --ruimte-bg:     #EDEDEA;
  --charcoal:      #2A2A28;
  --ink:           #1a1a18;
  --mid:           #6d6d67;
  --mid-light:     #a5a39b;
  --sand:          #F5F2ED;
  --line:          rgba(42,42,40,0.12);
  --line-strong:   rgba(42,42,40,0.22);

  /* Dark surfaces (contact + footer). Each firm can override these. */
  --dark-bg:        #2A2A28;  /* contact */
  --dark-bg-deeper: #0e1210;  /* footer */

  --ease:     cubic-bezier(0.4,0,0.2,1);
  --ease-out: cubic-bezier(0,0,0.2,1);

  --container:    1280px;
  --container-sm: 960px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Compenseer de 54px fixed topbar bij anchor-navigatie (#contact etc.).
     Zonder dit verbergt de topbar de bovenkant van de doel-sectie. */
  scroll-padding-top: 60px;
  /* Voorkom dat iOS Safari lettertekst automatisch opblaast bij het draaien
     naar landscape ("text autosizing"). Zonder dit worden titels/tekst op
     de projectpagina's fors groter dan in portrait. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (max-width: 768px) {
  /* iOS Safari heeft soms last met smooth scroll naar anchor — vooral wanneer
     de URL-bar mid-animation collapseert en vh herberekent. Auto = directe
     sprong, voorkomt overshoot/onderschoot. */
  html { scroll-behavior: auto; }
}
body {
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  letter-spacing: 0.003em;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Global focus ring ──
   One brand-teal ring on all keyboard-focused elements. Filled buttons
   override below to use an inset ring so the outline stays inside the pill. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
  transition: outline-offset .15s var(--ease);
}
.service-summary:focus-visible,
.form-submit:focus-visible,
.topbar-cta:focus-visible {
  outline-offset: -4px;
}

/* ── Skip-link for keyboard users ──
   Hidden off-screen; appears top-left when focused via Tab. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ── Typography helpers ── */
.eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
}
.display {
  font-size: clamp(2.4rem, 5.5vw, 4.75rem);
  font-weight: 300;
  letter-spacing: -0.005em;
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}
.headline {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.78;
  color: var(--mid);
  font-weight: 300;
  max-width: 62ch;
  text-wrap: pretty;
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1; transform: none;
  }
}
.d1{transition-delay:.08s;} .d2{transition-delay:.16s;}
.d3{transition-delay:.24s;} .d4{transition-delay:.32s;}

/* ════════════════════════════════════════════
   TOPBAR
════════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2rem;
  background: rgba(245,242,237,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar > .topbar-left,
.topbar > .logo-wrap { justify-self: start; }
.topbar > .topbar-nav,
.topbar > .topbar-firms { justify-self: center; }
.topbar > .topbar-right { justify-self: end; }
.logo-wrap {
  display: flex; align-items: center; gap: 6px;
}
.logo-icon {
  width: 34px; height: 34px;
  border-radius: 5px; overflow: hidden; flex-shrink: 0;
  /* In een baseline-uitgelijnde flex laat we het icoon meedoen: zijn
     synthesised baseline = onderkant, valt dus op de tekst-baseline samen
     met de wordmark-letter-baseline en de label-baseline. */
}
/* viewBox is bijgesneden tot 568 × 123.5 (letter-bounds) zodat de SVG-onderkant
   = letter-baseline. Daardoor lijnt de wordmark via align-items:baseline netjes
   uit met de firm-label tekst ernaast. Hoogte 15px houdt visueel dezelfde
   letter-grootte aan als voorheen (15 × 4.6 ≈ 17 × 4.06). */
.logo-wordmark {
  height: 15px; width: calc(15px * 4.6);
  flex-shrink: 0; overflow: hidden;
  color: var(--teal);
}
.logo-groep-label {
  font-size: 8px;
  font-weight: 300;
  color: rgba(42,42,40,0.50);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 0.1em;
}

/* Topbar GROEP-label exact uitlijnen zoals op de homepage
   (baseline t.o.v. de AP/ART-wordmark i.p.v. iets hoger). */
.topbar .logo-groep-label {
  align-self: center;
  position: relative;
  top: 4px;
  padding-bottom: 0;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.topbar-link {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(42,42,40,0.70);
  transition: color .2s;
}
.topbar-link:hover { color: var(--ink); }
.topbar-link.back::before {
  content: '←';
  display: inline-block;
  margin-right: 6px;
  transition: transform .25s var(--ease);
}
.topbar-link.back:hover::before { transform: translateX(-3px); }

/* ── Firms navigation in topbar (3 vennootschappen in hun kleur) ── */
.topbar-firms {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.topbar-firm {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 2px;
  border-bottom: 1.5px solid transparent;
  opacity: 0.8;
  transition: opacity .2s, border-color .2s;
}
.topbar-firm:hover { opacity: 1; }
.topbar-firm.is-active {
  font-weight: 700;
  opacity: 1;
  border-bottom-color: currentColor;
}
.topbar-firm-arch    { color: #8FB6B7; }
.topbar-firm-atelier { color: var(--atelier-brown); }
.topbar-firm-ruimte  { color: #A06D35; }
/* Op een firm-pagina vervangt deze "terug naar landing" link de eigen firm. */
.topbar-firm-groep   { color: #000; font-weight: 700; }
.topbar-divider {
  width: 1px; height: 18px; background: rgba(42,42,40,0.16);
}
@media (max-width: 820px) {
  .topbar-firms { gap: 0.7rem; }
  .topbar-firm { font-size: 9.5px; letter-spacing: 0.08em; }
  .topbar-divider { display: none; }
}

.topbar-cta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 1.1rem;
  height: 30px;
  /* Default = filled met primaire firm-kleur. Per-firm overrides hieronder
     zetten exacte kleuren. Fallback hier = teal (apartgroep / contact / 404). */
  background: var(--teal);
  border: 1px solid var(--teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  transition: background .2s, color .2s, border-color .2s, filter .2s;
}
.topbar-cta:hover {
  filter: brightness(0.92);
}

/* Per-firm: default fill in primaire firm-kleur */
body[data-firm="arch"]    .topbar-cta { background: #8FB6B7; border-color: #8FB6B7; color: #fff; }
body[data-firm="atelier"] .topbar-cta { background: #3D342C; border-color: #3D342C; color: #fff; }
body[data-firm="ruimte"]  .topbar-cta { background: #A06D35; border-color: #A06D35; color: #fff; }
body[data-firm="groep"]   .topbar-cta { background: #8EB6B6; border-color: #8EB6B6; color: #fff; }

@media (max-width: 720px) {
  .topbar { padding: 0 1rem; }
  .topbar-nav { gap: 1rem; }
  .topbar-link { display: none; }
}

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  /* bottom padding = skyline band height + breathing room before section divider */
  padding: 80px clamp(1.5rem, 4vw, 4rem) 200px;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background: var(--illu-bg, #8EB6B6);
}
@media (max-width: 820px) {
  .hero { padding-bottom: 155px; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding-bottom: 2vh;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hero-muted, rgba(255,255,255,0.65));
  margin-bottom: 1.5rem;
}
.hero-firm {
  font-size: clamp(2.4rem, 7.2vw, 5.75rem);
  font-weight: 300;
  letter-spacing: -0.005em;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 1.25rem;
  color: #fff;
  display: flex;
  /* Both items bottom-aligned; the text is then translated downward so
     its visible character baseline sits exactly on the APART wordmark's
     glyph baseline. The wordmark SVG has ~6% empty space under its
     glyphs, and DM Sans' descender is ~18-20% of font-size — so the
     combined shift needed on the text is roughly 0.14-0.18em. */
  align-items: flex-end;
  gap: 0.3em;
  flex-wrap: wrap;
  row-gap: 0.15em;
}
.hero-firm-mark {
  display: block;
  height: 1em;
  width: calc(1em * 4.06);
  flex-shrink: 0;
  color: currentColor;
  line-height: 0;
  position: relative;
  /* Shift wordmark down slightly so its glyph bottom sits on the flex
     bottom (empty SVG space below glyphs is 6% of mark height). */
  top: 0.06em;
}
.hero-firm-mark svg { display: block; width: 100%; height: 100%; }
.hero-firm-text {
  display: block;
  font-size: 0.70em;
  line-height: 1;
  /* Translate down so text's baseline sits on the APART glyph baseline
     (= flex bottom). DM Sans' descent is ~20% of font-size → at
     font-size 0.70em that's 0.14em of the parent em. */
  transform: translateY(0.14em);
}
.hero-tagline {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--hero-tagline, rgba(255,255,255,0.82));
  max-width: 48ch;
  font-weight: 300;
}
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hero-muted, rgba(255,255,255,0.55));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 36px;
  background: var(--hero-scroll-line, rgba(255,255,255,0.35));
  animation: scrollLine 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); }
  40%  { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Hero nav — pill buttons matching the topbar Contact CTA ──
   All buttons share a fixed min-width so they visually line up regardless
   of label length. Colours inherit from --hero-text / --hero-btn-hover so
   each firm's theme recolours them automatically. */
.hero-nav {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero-nav a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--hero-text);
  border: 1px solid var(--hero-text);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  height: 44px;
  padding: 0 1.5rem;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.hero-nav a:hover {
  background: var(--hero-text);
  color: var(--hero-btn-hover, var(--illu-bg));
}
@media (max-width: 480px) {
  .hero-nav a { min-width: 160px; }
}

/* Hero illustration theme defaults (overridden per firm below) */
:root {
  --illu-bg:      #8EB6B6;
  --illu-slash:   #ffffff;
  --illu-stroke:  #2a4948;
  --illu-foliage: #c3d48f;
  --illu-amber:   #d6b268;
}

/* ════════════════════════════════════════════
   SECTIONS
════════════════════════════════════════════ */
section {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 4vw, 4rem);
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  width: 100%;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head-title .eyebrow { margin-bottom: 0.75rem; }
.section-head-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.005em;
  line-height: 1.08;
  text-wrap: balance;
}
.section-head-body p + p { margin-top: 1rem; }
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── WHO (about) section ── */
.about { background: #fff; }
.about .section-head-body p {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.75;
  color: var(--mid);
  font-weight: 300;
  max-width: 64ch;
}

/* ── WHAT (services) section ── */
.services { background: var(--sand); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.1vw, 1rem);
  /* align-items defaults to "stretch" so every card matches the tallest in its row */
}

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
/* .service::before — accent-streepje links, alleen zichtbaar op hover (desktop)
   en alleen op inactieve knoppen. Op touch-toestellen wordt het pseudo-element
   helemaal niet gegenereerd (display: none) → geen blauwe streep mogelijk. */
.service::before { display: none; }
@media (hover: hover) {
  .service:not([data-active="true"])::before {
    content: '';
    display: block;
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--teal);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .28s cubic-bezier(.22,1,.36,1);
  }
  .service:not([data-active="true"]):hover {
    background: var(--sand);
    border-color: var(--teal);
  }
  .service:not([data-active="true"]):hover::before {
    transform: scaleY(1);
  }
}
.service[data-active="true"] {
  background: var(--sand);
  border-color: var(--teal);
  box-shadow: inset 3px 0 0 var(--teal);
}

/* The clickable card body — keeps button semantics.
   Fills the .service container so every card in the grid is the same height. */
.service-summary {
  all: unset;                      /* reset button defaults */
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  padding: clamp(1.5rem, 2.2vw, 2.25rem);
  min-height: 240px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  text-align: left;
}

/* Small affordance at bottom of each card showing what the click does.
   margin-top: auto pushes it to the bottom of the flex column so it lines up
   across cards regardless of how long the description above is. */
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.service:hover .service-cta { color: var(--teal-dark); transform: translateX(2px); }
.service[data-active="true"] .service-cta { color: var(--teal-dark); }

.service-num {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--mid-light);
  font-weight: 500;
}
.service-title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.service-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mid);
  font-weight: 300;
}

/* ── PROJECTS section ── */
.projects { background: #fff; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* ── Projects filter pill row ──
   Auto-populated by shared/accordion.js from .service[data-vakgebied].
   One pill per vakgebied + an "Alle projecten" reset button. */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 640px) {
  .project-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    /* Bleed to page edges so fade mask reaches the viewport edge */
    margin-left: calc(-1 * clamp(1.5rem, 4vw, 4rem));
    margin-right: calc(-1 * clamp(1.5rem, 4vw, 4rem));
    padding-left: clamp(1.5rem, 4vw, 4rem);
    padding-right: clamp(1.5rem, 4vw, 4rem);

    -webkit-mask-image: linear-gradient(to right,
      transparent 0, black 16px,
      black calc(100% - 32px), transparent 100%);
            mask-image: linear-gradient(to right,
      transparent 0, black 16px,
      black calc(100% - 32px), transparent 100%);
  }
  .project-filters::-webkit-scrollbar { display: none; }
  .project-filter-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    white-space: nowrap;
  }
}
.project-filter-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.project-filter-btn:hover {
  background: var(--sand);
  border-color: var(--ink);
}
.project-filter-btn[data-active="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ── Projects filter banner ──
   Shown above .projects-grid when a vakgebied filter is active.
   Driven by shared/accordion.js. */
.projects-filter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem 2rem;
  align-items: end;
  padding: 1.4rem 1.6rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--sand);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
}
.projects-filter[hidden] { display: none; }
.projects-filter-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.45rem;
}
.projects-filter-title {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.projects-filter-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mid);
  font-weight: 300;
  max-width: 62ch;
}
.projects-filter-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  white-space: nowrap;
}
.projects-filter-count {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}
.projects-filter-clear {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.projects-filter-clear:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
@media (max-width: 640px) {
  .projects-filter {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .projects-filter-actions {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}
.project {
  display: block;
  position: relative;
  transition: opacity .32s cubic-bezier(.22,1,.36,1),
              transform .32s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.project.is-fading {
  opacity: 0;
  transform: scale(0.96);
}
/* The .project rule above sets display:block, which overrides the implicit
   display:none of the HTML [hidden] attribute. Re-assert it so the
   accordion.js filter actually hides projects. */
.project[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .project { transition: none; }
  .project.is-fading { opacity: 1; transform: none; }
}
.project-media {
  aspect-ratio: 4/3;
  background: var(--sand);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  transition: transform .5s var(--ease);
}
.project-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,20,0) 55%, rgba(20,22,20,0.45) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.project:hover .project-media::after { opacity: 1; }
.project:hover .project-media { transform: translateY(-4px); }
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.85rem;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid);
}
.project-title {
  font-weight: 500;
  color: var(--ink);
}
.project-year { color: var(--mid-light); }
.project-location {
  font-size: 12px;
  color: var(--mid);
  padding-top: 0.25rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Placeholder backgrounds for project cards */
/* Atmospheric placeholder backgrounds — radial light spot from above on
   a desaturated base. Reads as a photo in waiting. Three palettes mapped
   to the existing .ph-1..6 slots. */

/* Cool teal — architecten / collectief */
.ph-1, .ph-6 {
  background:
    radial-gradient(120% 80% at 70% 0%,
      rgba(255,255,255,0.25), transparent 60%),
    linear-gradient(168deg,
      #d6dcd9 0%, #b7c3c0 60%, #a8b5b2 100%);
}

/* Warm beige — atelier / interior */
.ph-2, .ph-5 {
  background:
    radial-gradient(120% 80% at 30% 0%,
      rgba(255,255,255,0.22), transparent 60%),
    linear-gradient(168deg,
      #e5ddcf 0%, #cbc1ae 70%, #b9ae99 100%);
}

/* Warm amber — retail / leisure */
.ph-3, .ph-4 {
  background:
    radial-gradient(120% 80% at 70% 10%,
      rgba(255,255,255,0.18), transparent 55%),
    linear-gradient(172deg,
      #ece0c9 0%, #d4bc98 70%, #bc9f74 100%);
}

/* ── CONTACT ── */
.contact { background: var(--dark-bg); color: #fff; }
.contact .section-head-title h2 { color: #fff; }
.contact .eyebrow { color: rgba(255,255,255,0.55); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.contact-info-block + .contact-info-block { margin-top: 1.75rem; }
.contact-info-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-bottom: 0.5rem;
}
.contact-info-value {
  font-size: 15px;
  color: rgba(255,255,255,0.90);
  line-height: 1.65;
  font-weight: 300;
}
.contact-info-value a {
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 1px;
  transition: border-color .2s;
}
.contact-info-value a:hover { border-color: var(--teal); }
/* "Volg ons"-iconen in de contact-aside: strakker onder het label i.p.v. de
   ruimere footer-marge (1.4rem). */
.contact-info-block .footer-social { margin-top: 0.55rem; }

.form {
  display: grid;
  gap: 1.1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 14px;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 0.6rem 0;
  outline: none;
  transition: border-color .2s;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}
/* Custom <select> dat de underline-stijl van de inputs volgt — geen native
   chrome, eigen pijl-icoon, dropdown-panel in donker bij firm-pagina's. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 1.6rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 12px 8px;
}
.field select:hover { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='rgba(255,255,255,0.85)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>"); }
.field select:focus { border-color: var(--teal); }
.field select option {
  background: #1d211f;
  color: #fff;
  font-family: inherit;
}
.field select option[disabled] { color: rgba(255,255,255,0.45); }
.field select:invalid,
.field select.is-placeholder { color: rgba(255,255,255,0.50); }
.field input:focus,
.field textarea:focus { border-color: var(--teal); }

.form-submit {
  justify-self: start;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  margin-top: 0.5rem;
}
.form-submit:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* ════════════════════════════════════════════
   COOKIE CONSENT BANNER
════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(14,18,16,0.97);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 18px 48px -16px rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s;
  font-size: 13px;
  line-height: 1.55;
}
.cookie-banner-visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 220px; }
.cookie-banner-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 0.25rem;
}
.cookie-banner-text p {
  margin: 0;
  color: rgba(255,255,255,0.72);
}
.cookie-banner-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-text a:hover { color: var(--teal); }
.cookie-banner-buttons {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-banner button {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cookie-decline {
  background: transparent;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.25);
}
.cookie-decline:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.cookie-accept {
  background: var(--teal);
  color: #0e1210;
  border: 1px solid var(--teal);
}
.cookie-accept:hover {
  background: #a8c8c8;
  border-color: #a8c8c8;
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 1rem;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .cookie-banner-buttons {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-banner button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: opacity 0.2s; transform: none; }
}

/* ════════════════════════════════════════════
   FORM CONSENT (GDPR-toestemming)
════════════════════════════════════════════ */
.field-consent {
  margin-top: 0.5rem;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  /* Match field-label styling: zelfde kleur, font-size en letter-spacing
     zodat consent-regel visueel hoort bij de andere form-labels op de
     contact-secties van alle 3 vennootschapspagina's. */
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  cursor: pointer;
}
.consent-label a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-label a:hover { color: #fff; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer {
  background: var(--dark-bg-deeper);
  color: rgba(255,255,255,0.60);
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem) 2rem;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: var(--container);
  margin: 0 auto;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand .logo-wrap { color: #fff; }
/* Footer wordmark + GROEP label altijd wit, ongeacht firm-thema (override
   van .logo-wordmark { color: var(--teal) }). De wordmark-SVG vult via
   currentColor — door color: #fff te zetten op de wrapper rendert hij wit. */
.footer-brand .logo-wordmark,
.footer-brand .apart-wordmark { color: #fff; }
.footer-brand .logo-groep-label { color: #fff; }
.footer-brand p {
  margin-top: 1.1rem;
  max-width: 38ch;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}
.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}
.footer-list { list-style: none; display: grid; gap: 0.55rem; }
.footer-list a {
  color: rgba(255,255,255,0.75);
  transition: color .2s;
  font-weight: 300;
}
.footer-list a:hover { color: var(--teal); }

/* ── Social-iconen in de footer (firma-gekleurd) ──
   Markup staat in .footer-brand van de architecten- en atelier-pagina's.
   Kleur = de vennootschapskleur (rust) → gevulde knop bij hover.
   Ruimtemakers/groep hebben geen .footer-social-markup en blijven ongemoeid. */
.footer-social { display: flex; gap: 10px; margin-top: 1.4rem; }
.footer-social a.footer-soc {
  width: 38px; height: 38px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07);
  color: #fff;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.footer-social a.footer-soc svg { width: 19px; height: 19px; display: block; }
.footer-social a.footer-soc:hover,
.footer-social a.footer-soc:focus-visible { transform: translateY(-2px); }
/* Iconen wit in rust; bij hover vult de knop met de firmakleur. */
/* Architecten — brand-teal bij hover */
body[data-firm="arch"] .footer-social a.footer-soc:hover,
body[data-firm="arch"] .footer-social a.footer-soc:focus-visible { background: #8FB6B7; color: #fff; }
/* Atelier — warme merk-amber bij hover (leesbaar donker icoon) */
body[data-firm="atelier"] .footer-social a.footer-soc:hover,
body[data-firm="atelier"] .footer-social a.footer-soc:focus-visible { background: #c49849; color: #1a110a; }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.05em;
}
.footer-bottom .apart-badge {
  display: inline-block;
  line-height: 0;
  opacity: 0.75;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-bottom .apart-badge:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════
   FIRM-SPECIFIC THEMES (body[data-firm])
════════════════════════════════════════════ */

/* ── Architecten — teal dominant ──
   Background = apartgroep.be's frontpage teal (#BDD5D5).
   Brand accent teal (#8EB6B6) stays in logo icon, buttons, topbar hover. */
body[data-firm="arch"] {
  --illu-bg:      #BDD5D5;
  --illu-slash:   #ffffff;
  --illu-stroke:  #2a4948;
  --illu-foliage: #c3d48f;
  --illu-water:   #6e96a0;
  --illu-amber:   #d9b268;
  /* Hero typography (on teal, text stays white) */
  --hero-text:        #ffffff;
  --hero-muted:       rgba(255,255,255,0.70);
  --hero-tagline:     rgba(255,255,255,0.88);
  --hero-scroll-line: rgba(255,255,255,0.40);
  --hero-btn-hover:   #3e6562;     /* solid white button → dark teal text */
}
body[data-firm="arch"] .hero { color: var(--hero-text); }
/* Subtle dark gradient overlay raises white-on-teal contrast.
   Placed at z-index 1 so it sits ABOVE the skyline (z-index 0) but BELOW
   the text content (.hero-inner z-index 2, .hero-scroll z-index 3). This
   preserves the slash + skyline rendering while darkening the hero bg. */
body[data-firm="arch"] .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.08) 50%,
    rgba(0,0,0,0.18) 100%);
  pointer-events: none;
  z-index: 1;
}
body[data-firm="arch"] .hero-firm,
body[data-firm="arch"] .hero-firm-mark { color: var(--hero-text); }
body[data-firm="arch"] .service-title { color: #8FB6B7; }
body[data-firm="arch"] .service-num { color: #8FB6B7; }
body[data-firm="arch"] .project:hover .project-title { color: #8FB6B7; }
body[data-firm="arch"] .accent-rule { background: #8FB6B7; }
body[data-firm="arch"] .projects-filter { border-left-color: #8FB6B7; }
body[data-firm="arch"] .project-filter-btn[data-active="true"] {
  background: #8FB6B7; border-color: #8FB6B7;
}
body[data-firm="arch"] .service:hover .service-cta,
body[data-firm="arch"] .service[data-active="true"] .service-cta { color: #8FB6B7; }
body[data-firm="arch"] .service[data-active="true"] {
  border-color: #8FB6B7;
  box-shadow: inset 3px 0 0 #8FB6B7;
}

/* ── Atelier — warm beige, very dark brown on dark surfaces ── */
body[data-firm="atelier"] {
  background: #fdfbf6;
  --dark-bg:        #2a1d12;  /* very dark brown for contact */
  --dark-bg-deeper: #1a110a;  /* deeper brown-black for footer */
  /* Hero skyline illustration — warm beige + brown ink, white slash */
  --illu-bg:      #DDD7C9;
  --illu-slash:   #ffffff;
  --illu-stroke:  #3D342C;
  --illu-foliage: #a9ad73;
  --illu-water:   #84909d;
  --illu-amber:   #c49849;
  /* Hero typography on beige — dark brown ink */
  --hero-text:        #3D342C;
  --hero-muted:       rgba(61,52,44,0.70);
  --hero-tagline:     rgba(61,52,44,0.85);
  --hero-scroll-line: rgba(61,52,44,0.40);
  --hero-btn-hover:   #f3ecdc;     /* solid brown button → cream text */
}
body[data-firm="atelier"] .hero { color: var(--hero-text); }
body[data-firm="atelier"] .hero-firm,
body[data-firm="atelier"] .hero-firm-mark { color: var(--hero-text); }
body[data-firm="atelier"] .about,
body[data-firm="atelier"] .projects { background: #fdfbf6; }
body[data-firm="atelier"] .services { background: var(--atelier-beige); }
body[data-firm="atelier"] .service { background: #fdfbf6; }
body[data-firm="atelier"] .service:hover { background: var(--atelier-beige); }
body[data-firm="atelier"] .service-title { color: var(--atelier-brown); }
body[data-firm="atelier"] .service-num { color: var(--atelier-brown); opacity: 0.5; }
body[data-firm="atelier"] .project:hover .project-title { color: var(--atelier-brown); }
body[data-firm="atelier"] .accent-rule { background: var(--atelier-brown); }
body[data-firm="atelier"] .form-submit:hover {
  background: var(--atelier-brown);
  border-color: var(--atelier-brown);
}
body[data-firm="atelier"] .projects-filter {
  background: var(--atelier-paper);
  border-color: rgba(61,52,44,0.18);
  border-left-color: var(--atelier-brown);
}
body[data-firm="atelier"] .projects-filter-clear:hover {
  background: var(--atelier-brown);
  border-color: var(--atelier-brown);
}
body[data-firm="atelier"] .project-filter-btn:hover {
  background: var(--atelier-paper);
  border-color: var(--atelier-brown);
}
body[data-firm="atelier"] .project-filter-btn[data-active="true"] {
  background: var(--atelier-brown);
  border-color: var(--atelier-brown);
  color: #fff;
}
body[data-firm="atelier"] .service:hover .service-cta,
body[data-firm="atelier"] .service[data-active="true"] .service-cta { color: var(--atelier-brown); }
body[data-firm="atelier"] .service[data-active="true"] {
  border-color: var(--atelier-brown);
  box-shadow: inset 3px 0 0 var(--atelier-brown);
}

/* ── Ruimtemakers — broken white + unified apartgroep teal ──
   All teal elements (APART logo, firm name, skyline line art, slash,
   service titles, rules) use the same brand teal #8EB6B6 for visual
   consistency with apartgroep.be. */
body[data-firm="ruimte"] {
  background: var(--ruimte-bg);
  /* Hero illustratie — illu-bg gelijk aan secundaire kleur (#EDEDEA) zodat
     de hele Ruimtemakers-pagina consistent dezelfde achtergrond heeft.
     Slash op wit i.p.v. teal (was apartgroep.be import). */
  --illu-bg:      #EDEDEA;
  --illu-slash:   #ffffff;
  --illu-stroke:  #A06D35;
  --illu-foliage: #c5d297;
  --illu-water:   #7aa5a7;
  --illu-amber:   #c89a5e;
  /* Hero typography — ruimte primary i.p.v. teal */
  --hero-text:        #A06D35;
  --hero-muted:       rgba(160,109,53,0.70);
  --hero-tagline:     rgba(160,109,53,0.95);
  --hero-scroll-line: rgba(160,109,53,0.55);
  --hero-btn-hover:   #ffffff;
}
body[data-firm="ruimte"] .hero { color: var(--hero-text); }
body[data-firm="ruimte"] .hero-firm,
body[data-firm="ruimte"] .hero-firm-mark { color: var(--hero-text); }
body[data-firm="ruimte"] .about,
body[data-firm="ruimte"] .projects { background: var(--ruimte-bg); }
body[data-firm="ruimte"] .services { background: #fff; }
body[data-firm="ruimte"] .service { background: var(--ruimte-bg); }
body[data-firm="ruimte"] .service:hover { background: #fff; }
body[data-firm="ruimte"] .service-title { color: #A06D35; }
body[data-firm="ruimte"] .service-num { color: #A06D35; }
body[data-firm="ruimte"] .project:hover .project-title { color: #A06D35; }
body[data-firm="ruimte"] .accent-rule { background: #A06D35; }
body[data-firm="ruimte"] .projects-filter {
  background: #fff;
  border-left-color: #A06D35;
}
body[data-firm="ruimte"] .project-filter-btn[data-active="true"] {
  background: #A06D35;
  border-color: #A06D35;
  color: #fff;
}
body[data-firm="ruimte"] .service:hover .service-cta,
body[data-firm="ruimte"] .service[data-active="true"] .service-cta { color: #A06D35; }
body[data-firm="ruimte"] .service[data-active="true"] {
  border-color: #A06D35;
  box-shadow: inset 3px 0 0 #A06D35;
}

/* Thin accent rule used under eyebrows / section heads */
.accent-rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--teal);
  margin: 1rem 0 1.25rem;
}

/* Utility */
.no-wrap { white-space: nowrap; }

/* ════════════════════════════════════════════
   PAGE TRANSITIONS — smooth crossfade tussen landing ↔ subpage
════════════════════════════════════════════ */
/* Moderne browsers (Chrome/Edge 126+): native cross-document view transitions */
@view-transition { navigation: auto; }

/* JS-fallback: body fade-out bij vertrek, fade-in bij binnenkomst */
body {
  animation: pageFadeIn 0.45s cubic-bezier(0.4,0,0.2,1) both;
}
body.is-leaving {
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1);
}
@keyframes pageFadeIn {
  /* Geen transform op body — anders wordt body de containing-block voor
     position:fixed children, wat .topbar-mobile breekt. Opacity alleen. */
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  body { animation: none; }
  body.is-leaving { transition: none; opacity: 1; }
}

/* ════════════════════════════════════════════
   SUBPAGE REDESIGN — firm-hero (vakgebied buttons + refs only)
════════════════════════════════════════════ */

/* Topbar left cluster: logo + firm label + wie-we-zijn link */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo-firm-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* Trek het label dichter naar de wordmark — de flex-gap (6px) op .logo-wrap
     plus de letter-spacing van de wordmark gaf visueel teveel ruimte. */
  margin-left: -2px;
  /* Logo-wrap is nu align-items:center zodat APART vertikaal in het midden
     van het slash-icoon staat. De firm-label moet ECHTER op de baseline
     van APART staan (lager dan center). Verschuif daarom naar beneden. */
  position: relative;
  top: 3px;
}
/* Atelier-variant: label staat tussen logo-icon en apart-wordmark */
.logo-firm-label-lead {
  margin-left: 4px;
  margin-right: -2px;
}
body[data-firm="arch"]    .logo-firm-label { color: #8FB6B7; }
body[data-firm="atelier"] .logo-firm-label { color: var(--atelier-brown); }
body[data-firm="ruimte"]  .logo-firm-label { color: #A06D35; }

/* Kleur van APART-icoon per vennootschap */
body[data-firm="arch"]    .apart-icon svg rect { fill: #8FB6B7; }
body[data-firm="atelier"] .apart-icon svg rect { fill: var(--atelier-brown); }
body[data-firm="ruimte"]  .apart-icon svg rect { fill: #A06D35; }
/* Kleur van APART-wordmark per vennootschap (currentColor op topbar) */
body[data-firm="arch"]    .topbar .apart-wordmark { color: #8FB6B7; }
body[data-firm="atelier"] .topbar .apart-wordmark { color: var(--atelier-brown); }
body[data-firm="ruimte"]  .topbar .apart-wordmark { color: #A06D35; }
.topbar-wie {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(42,42,40,0.70);
  text-decoration: none;
  transition: color .2s;
  padding-left: 1rem;
  border-left: 1px solid rgba(42,42,40,0.16);
}
.topbar-wie:hover { color: var(--ink); }

/* New firm hero: bg color + slash only, no skyline, no hero text */
.firm-hero {
  position: relative;
  min-height: calc(100vh - 54px);
  padding: 90px clamp(1.25rem, 4vw, 4rem) 4rem;
  background: var(--illu-bg, #8EB6B6);
  isolation: isolate;
  overflow: hidden;
  color: var(--hero-text, #fff);
}
.firm-hero-slash {
  position: absolute;
  bottom: 0; right: 0;
  width: 115px; height: 480px;
  background: var(--illu-slash, #fff);
  transform: skewX(-20.3deg);
  transform-origin: top right;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 820px) {
  .firm-hero-slash {
    width: clamp(62px, 22vw, 95px);
    height: clamp(260px, 48vw, 360px);
  }
}
.firm-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

/* Large vakgebied buttons at top of hero — F-11 adaptief op aantal vakgebieden.
   Per firm wordt --vak-count gezet (4 arch, 3 atelier, 2 ruimte). De max-width
   schaalt mee zodat 2 of 3 vakgebieden niet over de volle breedte uitrekken. */
.vak-grid {
  display: grid;
  grid-template-columns: repeat(var(--vak-count, 4), minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
  max-width: calc(220px * var(--vak-count, 4));
  margin-inline: auto;
}
@media (max-width: 768px) {
  .vak-grid {
    grid-template-columns: repeat(min(var(--vak-count, 4), 3), minmax(0, 1fr));
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .vak-grid {
    grid-template-columns: repeat(min(var(--vak-count, 4), 2), minmax(0, 1fr));
  }
}
/* ── VAKGEBIED-KNOPPEN — a11y-correct, subtiel maar duidelijk ── */
.vak-btn {
  position: relative;
  background: rgba(255,255,255,0.72) !important;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  /* Voorkom iOS Safari tap-highlight flash bij touch — die kon eruit zien als
     een blauwe/teal streep op de gekozen knop. */
  -webkit-tap-highlight-color: transparent;
  transition: background .3s var(--ease), transform .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.vak-btn .service-summary { -webkit-tap-highlight-color: transparent; }
/* Inactieve knop-rand in firm-kleur → voldoet aan WCAG 1.4.11 (non-text 3:1) */
body[data-firm="arch"]    .vak-btn:not([data-active="true"]) { border-color: rgba(42,73,72,0.22); background: #fff !important; }
body[data-firm="atelier"] .vak-btn:not([data-active="true"]) { border-color: rgba(61,52,44,0.22); }
body[data-firm="ruimte"]  .vak-btn:not([data-active="true"]) { border-color: rgba(160,109,53,0.22); }

/* (Verwijderd) Onderste accentlijn op active was een animatie-streep. Vervangen
   door een dikkere primaire-kleur rand op de actieve knop — zie hieronder. */

/* Hover: consistent per firm — lichte firm-tint bg + firm-gekleurde schaduw + lift.
   Alleen op echte hover-apparaten zodat de hover-stijl niet sticky blijft op
   touch-mobiel na een tap. */
@media (hover: hover) {
  .vak-btn:hover { transform: translateY(-2px); }
  body[data-firm="arch"]    .vak-btn:not([data-active="true"]):hover {
    background: #fff !important;
    border-color: #8FB6B7;
    box-shadow: 0 14px 28px -16px rgba(143,182,183,0.45);
  }
  body[data-firm="atelier"] .vak-btn:not([data-active="true"]):hover {
    background: #F7F3EB !important;
    border-color: rgba(61,52,44,0.45);
    box-shadow: 0 14px 28px -16px rgba(61,52,44,0.35);
  }
  body[data-firm="ruimte"]  .vak-btn:not([data-active="true"]):hover {
    background: #EDEDEA !important;
    border-color: #A06D35;
    box-shadow: 0 14px 28px -16px rgba(160,109,53,0.35);
  }
}

/* Actieve staat: gevuld met primaire firm-kleur, witte tekst. Border-color
   matcht achtergrond zodat de rand niet zichtbaar is maar de hoogte gelijk
   blijft aan inactieve knoppen (1px). */
.vak-btn[data-active="true"] {
  transform: none;
  box-shadow: none;
  color: #fff;
}
body[data-firm="arch"]    .vak-btn[data-active="true"] {
  background: #8FB6B7 !important;
  border-color: #8FB6B7;
  box-shadow: none;
}
body[data-firm="atelier"] .vak-btn[data-active="true"] {
  background: var(--atelier-brown) !important;
  border-color: var(--atelier-brown);
  box-shadow: none;
}
body[data-firm="ruimte"]  .vak-btn[data-active="true"] {
  background: #A06D35 !important;
  border-color: #A06D35;
  box-shadow: none;
}
/* Tekst op gekleurde actieve achtergrond — secundaire kleur per firm.
   (Override van firm-specifieke service-title / service-num regels elders.) */
body[data-firm="arch"]    .vak-btn[data-active="true"] .service-title,
body[data-firm="arch"]    .vak-btn[data-active="true"] .service-num { color: #fff; }
body[data-firm="atelier"] .vak-btn[data-active="true"] .service-title,
body[data-firm="atelier"] .vak-btn[data-active="true"] .service-num { color: #F1EDE9; }
body[data-firm="ruimte"]  .vak-btn[data-active="true"] .service-title,
body[data-firm="ruimte"]  .vak-btn[data-active="true"] .service-num { color: #EDEDEA; }
.vak-btn[data-active="true"] .service-num { opacity: 0.78; }

/* Service-summary = clickable host */
.vak-btn .service-summary {
  all: unset;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
  width: 100%;
  padding: 1.4rem 1.25rem;
  cursor: pointer;
  box-sizing: border-box;
}
/* Focus-visible ring (WCAG 2.4.7) — vervangt de unset-outline */
.vak-btn .service-summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 10px;
}
.vak-btn .service-num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}
.vak-btn .service-title {
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0;
  color: inherit;
  /* Reserveer hoogte voor 2 regels zodat lange titels (bv. "Projectcoördinatie")
     niet de hele knop laten verspringen wanneer ze door bold-weight wrappen.
     Gebruik grid i.p.v. flex zodat tekst-nodes normaal kunnen wrappen
     (anonieme flex-items wrappen niet betrouwbaar). */
  min-height: 2.4em;
  display: grid;
  place-items: center start;
  text-wrap: balance;
  hyphens: auto;
}
/* Mobile: kleinere titel-font zodat lange woorden zoals "Projectcoördinatie"
   op één regel passen in een 2-koloms vakgrid op 375px breedte. */
@media (max-width: 480px) {
  .vak-btn .service-title { font-size: 13px; }
  .vak-btn .service-summary { padding: 1rem 0.9rem; }
}
.vak-btn[data-active="true"] .service-title { font-weight: 700; }
body[data-firm="arch"]    .vak-btn:not([data-active="true"]) .service-title { color: #8FB6B7; }
body[data-firm="atelier"] .vak-btn:not([data-active="true"]) .service-title { color: var(--atelier-brown); }
body[data-firm="ruimte"]  .vak-btn:not([data-active="true"]) .service-title { color: #A06D35; }
.vak-btn .service-desc,
.vak-btn .service-cta { display: none; }

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  .vak-btn { transition: none !important; }
  .vak-btn:hover { transform: none !important; }
}

/* Small description under buttons */
.vak-desc {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.65;
  color: var(--hero-text);
  max-width: 62ch;
  margin: 0 0 2.5rem;
  font-weight: 300;
}

/* Projects grid inside hero — enkel foto's, naam verschijnt bij hover */
.firm-hero .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
  margin: 0;
}
.firm-hero .project {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #dad3c2;
  border: 1px solid rgba(255,255,255,0.65);
  transition: transform .35s var(--ease);
}
.firm-hero .project:hover { transform: translateY(-2px); }
.firm-hero .project-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  /* Placeholder visuele variatie per kaart zodat de grid niet uniform grijs is */
  background-color: #c8bfa9;
  transition: transform .55s var(--ease);
}
.firm-hero .project:hover .project-media { transform: scale(1.05); }
.firm-hero .project::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  z-index: 1;
  pointer-events: none;
}
.firm-hero .project:hover::before { opacity: 1; }
.firm-hero .project-meta,
.firm-hero .project-location {
  position: absolute;
  left: 0; right: 0;
  padding: 0 1.1rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.firm-hero .project-meta {
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.firm-hero .project-location {
  bottom: 10px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.firm-hero .project-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}
.firm-hero .project-year {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #fff;
}
/* Overrulen firm-specifieke :hover-regels — referentie-tekst blijft altijd wit */
body[data-firm="arch"]    .firm-hero .project:hover .project-title,
body[data-firm="atelier"] .firm-hero .project:hover .project-title,
body[data-firm="ruimte"]  .firm-hero .project:hover .project-title,
body[data-firm="arch"]    .firm-hero .project .project-title,
body[data-firm="atelier"] .firm-hero .project .project-title,
body[data-firm="ruimte"]  .firm-hero .project .project-title,
body[data-firm="arch"]    .firm-hero .project .project-year,
body[data-firm="atelier"] .firm-hero .project .project-year,
body[data-firm="ruimte"]  .firm-hero .project .project-year,
body[data-firm="arch"]    .firm-hero .project .project-location,
body[data-firm="atelier"] .firm-hero .project .project-location,
body[data-firm="ruimte"]  .firm-hero .project .project-location {
  color: #fff;
}
.firm-hero .project:hover .project-meta,
.firm-hero .project:hover .project-location,
.firm-hero .project:focus-visible .project-meta,
.firm-hero .project:focus-visible .project-location {
  opacity: 1;
  transform: translateY(0);
}
.firm-hero .project:focus-visible::before { opacity: 1; }
.firm-hero .project:focus-visible {
  outline: 2px solid var(--hero-text);
  outline-offset: 2px;
}
@media (hover: none) {
  /* Touch-apparaten: toon altijd een subtiele gradient + titel zodat info bereikbaar blijft */
  .firm-hero .project::before { opacity: 1; }
  .firm-hero .project .project-meta,
  .firm-hero .project .project-location { opacity: 1; transform: translateY(0); }
}

/* Eyebrow above vakgebied buttons — "Vakgebieden" bold, subtitel licht */
.firm-hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hero-text);
  margin-bottom: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
}
.firm-hero-eyebrow-sub {
  font-weight: 300;
  letter-spacing: 0.18em;
  opacity: 0.72;
  font-size: 11px;
}

/* ════════════════════════════════════
   F-24 · WIE-PAGINA SUB-EYEBROW (wayfinding)
   F-19/F-20 · TEAM-COMPONENTEN (gedeeld vanuit shared)
════════════════════════════════════ */
.hero-sub-eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid, #8a8880);
  margin-bottom: 0.9rem;
  font-weight: 500;
}
.hero-sub-eyebrow b {
  font-weight: 700;
  color: var(--ink, #2A2A28);
}

/* .team-three — wie-pagina portretten (naam + rol + bio).
   Vaste 3-koloms grid op desktop, 2 op tablet, 1 op mobiel.
   Max-width houdt de portretten ingetogen ook bij weinig personen. */
.team-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 920px;
  margin-inline: auto;
}
.team-three figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.team-three .team-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(61,52,44,0.18), rgba(61,52,44,0.05)),
              repeating-linear-gradient(45deg, rgba(61,52,44,0.08), rgba(61,52,44,0.08) 2px, transparent 2px, transparent 18px);
  border: 1px solid rgba(61,52,44,0.18);
}
.team-three figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.team-three .team-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #2A2A28);
  letter-spacing: 0.02em;
}
.team-three .team-role {
  font-size: 12px;
  color: var(--mid, #8a8880);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.team-three .team-bio {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(42,42,40,0.78);
  margin-top: 0.25rem;
}

/* Atelier wie-pagina: twee bestuurders (Katina & Caroline) — gecentreerd,
   even groot als de architecten-portretten (zelfde kolombreedte ~285px,
   zelfde gap en max-width als de basis-.team-three). */
body[data-firm="atelier"] .team-three {
  grid-template-columns: repeat(2, minmax(0, 285px));
  justify-content: center;
}

/* .team-namelist — architecten wie-pagina.
   Layout volgt apartgroep.be/bureau/team: groepsfoto centraal bovenaan,
   daaronder gecategoriseerde namenlijst (Management / Administratie /
   Ruimtemakers). Lange categorieën gebruiken meerdere kolommen. */
.team-namelist {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  margin-top: 3rem;
}
.team-namelist > figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  text-align: center;
}
.team-namelist .team-group-frame {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 7;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(142,182,182,0.18), rgba(142,182,182,0.05)),
              repeating-linear-gradient(45deg, rgba(42,73,72,0.08), rgba(42,73,72,0.08) 2px, transparent 2px, transparent 18px);
  border: 1px solid rgba(42,73,72,0.18);
}
.team-namelist figcaption {
  font-size: 12px;
  color: var(--mid, #8a8880);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.team-namelist .team-categories {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
/* Reset globale section { padding } — sub-categorieën horen visueel direct
   onder elkaar, niet in eigen full-bleed pagina-secties. */
.team-namelist .team-category { padding: 0; }
.team-category-title {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink, #2A2A28);
  padding-bottom: 0.55rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(42,42,40,0.18);
}
.team-namelist .team-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.2rem 1.5rem;
}
.team-namelist .team-list li {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink, #2A2A28);
  letter-spacing: 0.01em;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(42,42,40,0.06);
}

@media (max-width: 768px) {
  .team-three { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  /* Atelier heeft een hogere-specificiteit basisregel (repeat(2,285px));
     hier expliciet overschrijven zodat de kaders even groot meeschalen als
     op de architecten- en groep-pagina. */
  body[data-firm="atelier"] .team-three { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .team-namelist .team-group-frame { aspect-ratio: 4/3; max-height: 280px; }
  .team-namelist .team-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 480px) {
  .team-three { grid-template-columns: 1fr; }
  body[data-firm="atelier"] .team-three { grid-template-columns: 1fr; }
  .team-three figure { width: 100%; max-width: 320px; margin-inline: auto; }
  .team-namelist .team-list { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════
   SPRINT 4 — mobile
   M-01, M-03, M-04, M-06, M-08, M-09, M-10, M-11, M-12
════════════════════════════════════ */

/* M-01 · Burger menu (≤768px) ------------------------------------------ */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink, #2A2A28);
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile panel — bevat alle topbar-nav als verticale lijst */
.topbar-mobile {
  display: none;
  position: fixed;
  inset: 54px 0 0 0;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem 1.5rem max(2rem, env(safe-area-inset-bottom));
  background: rgba(245,242,237,0.99);
  backdrop-filter: blur(10px);
  z-index: 95;
  overflow-y: auto;
}
.topbar-mobile a {
  display: block;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink, #2A2A28);
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid rgba(42,42,40,0.08);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.topbar-mobile a.is-active { font-weight: 700; }
.topbar-mobile a.topbar-mobile-arch    { color: #8FB6B7; }
.topbar-mobile a.topbar-mobile-atelier { color: var(--atelier-brown); }
.topbar-mobile a.topbar-mobile-groep   { color: #000; font-weight: 700; }
.topbar-mobile a.topbar-mobile-ruimte  { color: #A06D35; }
.topbar-mobile-section {
  margin-top: 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(42,42,40,0.16);
}
.topbar-mobile-cta {
  margin-top: 1.1rem;
  display: inline-flex !important;
  align-items: center; justify-content: center;
  border: 1px solid rgba(42,42,40,0.30);
  border-radius: 22px;
  padding: 0.9rem 1.4rem !important;
  min-height: 48px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem !important;
  border-bottom: 1px solid rgba(42,42,40,0.30) !important;
  background: var(--ink, #2A2A28);
  color: #fff !important;
}

@media (max-width: 768px) {
  .burger { display: inline-flex; }
  .topbar {
    padding: 0 1rem;
    grid-template-columns: 1fr auto !important;
  }
  .topbar > .topbar-firms,
  .topbar-left .topbar-wie,
  .topbar-right .topbar-cta { display: none; }
  .topbar > .topbar-right { justify-self: end; }

  body.menu-open { overflow: hidden; }
  body.menu-open .topbar-mobile { display: flex; }
}

/* M-03 · Hero op iOS Safari — gebruik dvh ipv vh ------------------------ */
.firm-hero { min-height: 100dvh; }
@media (max-height: 600px) and (orientation: landscape) {
  .firm-hero { min-height: 560px; padding-block: 3rem; }
}

/* M-04 · Vak-grid touch-target minimum (extension van F-11) ------------ */
.vak-btn { min-height: 48px; }

/* M-06 · Form mobile layout + iOS auto-zoom voorkomen ------------------ */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr !important; gap: 0.9rem; }
  .form input,
  .form select,
  .form textarea {
    font-size: 16px;
    padding: 0.85rem 1rem;
  }
  .form button[type="submit"],
  .form .form-submit {
    width: 100%;
    min-height: 52px;
    font-size: 15px;
  }
}

/* M-08/M-09 zijn in eerdere F-19 block toegepast (max-width: 768/480) --- */

/* M-11 · Footer single-column op smal scherm --------------------------- */
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 2rem; }
}

/* M-12 · Mobile hygiene -----------------------------------------------
   - hover-states alleen op apparaten die echt hover ondersteunen
   - active state als tap-feedback
   - safe-area op topbar/footer voor iPhone notch + home indicator
   - reduce paint flicker op hidden chips/touch */
@media (hover: none) {
  /* Op touch: behandel "hover" als active. Voorkomt sticky hover na tap. */
  .chip:hover,
  .vak-btn:hover,
  .firm-block:hover,
  .firm-card:hover,
  .topbar-cta:hover {
    transform: none;
    box-shadow: none;
  }
}
.chip:active { transform: translateY(0); }

.topbar { padding-top: env(safe-area-inset-top, 0); }
.footer { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
