/* ---------- Fonts (zelf gehost) ---------- */
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('../assets/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url('../assets/fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Syne'; font-weight: 700; font-display: swap; src: url('../assets/fonts/syne-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Syne'; font-weight: 800; font-display: swap; src: url('../assets/fonts/syne-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('../assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --bg: #ECECE8;
  --surface: #FFFFFF;
  --ink: #0B0B0C;
  --ink-soft: #6B6B70;
  --line: rgba(11, 11, 12, .14);
  --line-strong: rgba(11, 11, 12, .4);
  --glass: rgba(11, 11, 12, .14);
  --glass-line: rgba(11, 11, 12, .2);
  --card-top: #FFFFFF;
  --card-bot: #ECECE8;
  --accent: #0058EE;
  --accent-light: #3F8CF3;
  --accent-text: #0058EE; /* accent voor tekst op een lichte ondergrond (contrast) */
  --ascii: #9A9AA0;
  --shadow-card: 0 1px 0 rgba(255,255,255,.6) inset;

  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Syne', 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: 20px;
  --radius-card: 32px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) { --dark: 1; }
}
:root[data-theme='dark'],
:root:not([data-theme='light']) {
  /* gevuld hieronder via media query */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0B0B0C; --surface: #17171A; --ink: #F3F3F0; --ink-soft: #8D8D92;
    --line: rgba(243, 243, 240, .14); --line-strong: rgba(243, 243, 240, .4);
    --glass: rgba(243, 243, 240, .14); --glass-line: rgba(243, 243, 240, .2);
    --card-top: #18181B; --card-bot: #0B0B0C; --ascii: #646463; --accent-text: #3F8CF3;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0B0B0C; --surface: #17171A; --ink: #F3F3F0; --ink-soft: #8D8D92;
  --line: rgba(243, 243, 240, .14); --line-strong: rgba(243, 243, 240, .4);
  --glass: rgba(243, 243, 240, .14); --glass-line: rgba(243, 243, 240, .2);
  --card-top: #18181B; --card-bot: #0B0B0C; --ascii: #646463; --accent-text: #3F8CF3;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
::selection { background: var(--accent); color: #fff; text-shadow: none; }
::-moz-selection { background: var(--accent); color: #fff; text-shadow: none; }
html { overflow-x: clip; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-weight: 500; font-size: 17px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }
.field { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Easter egg: ASCII-ballon (js/balloon.js) ---------- */
.balloon { position: absolute; left: 0; top: 0; z-index: 2; opacity: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; will-change: transform; }
.balloon-fx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* ---------- Puffy button ---------- */
.puffy {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 131px; height: 46px; padding: 0 30px; border-radius: 999px;
  background: linear-gradient(180deg, #5BA8FF 0%, #0058EE 55%, #0040B0 100%);
  color: #fff; font-weight: 600; font-size: 18px; letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    0 10px 24px rgba(0, 88, 238, .5),
    0 3px 6px rgba(0, 0, 0, .25);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  will-change: transform; user-select: none;
}
.puffy::before { /* gloss */
  content: ''; position: absolute; top: 5px; left: 50%; width: 53%; height: 12px; transform: translateX(-50%);
  border-radius: 50%; background: rgba(255,255,255,.38); filter: blur(3px); pointer-events: none;
}
.puffy__label { position: relative; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.puffy:hover { transform: scale(1.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 12px 32px rgba(0,88,238,.65), 0 3px 6px rgba(0,0,0,.25); }
.puffy:active, .puffy.is-squash {
  transform: scale(1.03, .92); transition-duration: .08s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.35), 0 4px 12px rgba(0,88,238,.35);
}
.puffy:active .puffy__label { transform: translateY(2px); }
/* met GSAP regelt JS de squash/jelly van de knop; CSS animeert dan alleen de schaduw */
html.has-gsap .puffy { transition: box-shadow .35s var(--ease-out); }
html.has-gsap .puffy:hover, html.has-gsap .puffy:active, html.has-gsap .puffy.is-squash { transform: none; }
html.has-gsap .puffy:active .puffy__label { transform: none; }
.puffy--lg { height: 62px; padding: 0 40px; font-size: 24px; min-width: 177px; }
.puffy--lg::before { top: 7px; height: 16px; }

/* ---------- Bracket button ---------- */
.bracket { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 16px; color: var(--accent); padding: 14px 0; }
.bracket b { font-weight: 500; transition: transform .3s var(--ease-out); display: inline-block; }
.bracket:hover b:first-child { transform: translateX(-4px); }
.bracket:hover b:last-child { transform: translateX(4px); }
.bracket:hover span { text-decoration: underline; text-underline-offset: 4px; }
.footer .bracket { color: var(--accent-text); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: calc(88px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(var(--gutter), calc((100% - 1200px) / 2), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), calc((100% - 1200px) / 2), env(safe-area-inset-left, 0px));
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
  transition: transform .5s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-110%); } /* mobiel: verdwijnt bij omlaag scrollen, komt terug bij omhoog */
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 60%, transparent), transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(180deg, #000 30%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.nav > * { pointer-events: auto; }
.nav__mark { width: 56px; height: 56px; display: grid; place-items: center; transition: transform .35s var(--ease-out); }
.nav__mark img { width: 46px; height: 46px; display: block; transform: rotate(-2deg); pointer-events: none; -webkit-user-drag: none; }
.nav__mark:hover { transform: rotate(6deg) scale(1.08); }

/* ---------- Hero ---------- */
.hero { position: relative; height: max(640px, 100svh); max-height: 1024px; display: grid; place-items: center; z-index: 0; }
.hero .field { height: calc(100% + 780px); }
.hero__content { position: relative; z-index: 2; width: min(calc(100% - 2 * var(--gutter)), 1200px); container-type: inline-size; }
.hero__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 10.8vw, 56px); line-height: 1; letter-spacing: -.02em;
  display: flex; flex-wrap: wrap; column-gap: .28em;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__role { margin-top: 14px; font-size: clamp(20px, 2.8vw, 40px); display: flex; align-items: center; gap: .25em; flex-wrap: wrap; }
.hero__link { display: inline-flex; align-items: center; color: inherit; text-decoration: none; padding: 8px 4px; margin: -8px -4px; } /* 44px tikvlak zonder verschuiving */
.hero__link span { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: .06em; text-underline-offset: .14em; transition: text-decoration-color .25s var(--ease-out), color .25s var(--ease-out); }
.hero__link:hover span, .hero__link:focus-visible span { text-decoration-color: currentColor; color: var(--accent); }
.hero__link:hover .hero__sticker { transform: rotate(-4deg) scale(1.08); }
.hero__sticker { height: 1.12em; width: auto; display: inline-block; margin: 0 .05em 0 .1em; transform: rotate(4deg); transition: transform .5s var(--ease-out); -webkit-user-drag: none; }

/* ---------- Work ---------- */
.work { position: relative; z-index: 1; padding: 0 var(--gutter) 120px; margin-top: -4px; }
.work__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 384px 1fr; gap: 24px; align-items: start; min-height: 952px; /* ruimte voor de kaarten (JS rendert ze later), zodat About niet verspringt */ }
.work__col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.card {
  --h: 340px;
  position: relative; display: block; width: 100%; height: var(--h); text-align: left; isolation: isolate;
  border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-top), var(--card-bot));
}
.card__media { position: absolute; inset: 0; z-index: 1; }
/* Mockups zijn PNG's uit Figma inclusief zachte schaduw. --w = zichtbare breedte van het venster/toestel
   (% van de kaart), --k = beeldbreedte / zichtbare breedte, translate = schaduwmarge links/boven. */
.mock {
  position: absolute; display: block; max-width: none; height: auto; border: 0; border-radius: 0; background: none;
  width: calc(var(--w, 50%) * var(--k, 1));
  /* --lift / --s (hover) en --ry (verschijnen) worden door GSAP getweend; --rot is de vaste stand per mockup */
  --lift: 0px; --ry: 0px; --s: 1;
  transform: translateY(calc(var(--lift) + var(--ry))) rotate(var(--rot, 0deg)) scale(var(--s));
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
/* zonder GSAP: simpele CSS-hover als terugval */
html:not(.has-gsap) .mock { transition: transform .45s var(--ease-out); }
html:not(.has-gsap) .card.is-hover .mock:not(.mock--photo) { --lift: -10px; }

/* media layouts (percentages = werkt op elke kaartbreedte) */
.m-agency .mock--photo { inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none; opacity: .55; }
.m-agency .mock--phone { --w: 50%; --k: 1.0034; left: 25%; top: 18%; translate: -.17% -.16%; transform-origin: 50% 50%; }
.m-dgtl .mock { --k: 1.1614; translate: -6.92% -5.5%; transform-origin: 50% 44.5%; }
.m-dgtl .mock:nth-child(1) { --w: 76%; left: 3%; top: 19%; }
.m-dgtl .mock:nth-child(2) { --w: 83%; left: 14%; top: 30%; }
.m-wereld .mock--phone { --w: 61%; --k: 1.4054; --rot: -4deg; left: 30%; top: 17%; translate: -14.37% -4.08%; transform-origin: 50% 46%; }
.m-wereld .mock--flash { --w: 44%; --k: 1.5909; --rot: 7deg; left: 7.5%; top: 28%; translate: -18.57% -7.67%; transform-origin: 50% 42.3%; }
.m-ns .mock { --w: 80%; --k: 1.15; left: 15%; top: 22%; translate: -6.52% -4.91%; transform-origin: 50% 45%; }

.card__fade { position: absolute; inset: auto 0 0 0; height: 45%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--card-bot) 92%, transparent) 70%, var(--card-bot)); }
.card .tags { position: absolute; left: 28px; top: 28px; z-index: 3; }
.card__go { position: absolute; right: 20px; top: 20px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: none; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font: 500 17px/1 var(--font-mono); color: var(--ink); pointer-events: none; }
.card--agency .card__go { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.3); color: #000; }
@media (hover: none) { .card__go { display: grid; } } /* touch: zichtbaar dat de kaart opent */
.card__name { position: absolute; left: 28px; bottom: 26px; z-index: 3; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }


/* tags */
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags li {
  font: 11px/1 var(--font-mono); letter-spacing: -.02em; padding: 8px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink);
}
.card--agency .tags li { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.3); color: #000; }

/* ---------- About ---------- */
.about { position: relative; z-index: 0; height: 760px; overflow: visible; }
.about .field { top: -260px; height: calc(100% + 260px); }
.about__stage { position: relative; width: 390px; height: 760px; margin: 0 auto; }
.about__words, .about__photos { display: contents; } /* desktop: pills en foto's staan los op het podium */
.word, .polaroid { position: absolute; left: calc(var(--mx) * 1px); top: calc(var(--my) * 1px); transform: translate(-50%, -50%) rotate(var(--r)); }
.word {
  font: 13px/1 var(--font-mono); padding: 10px 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-strong); white-space: nowrap;
}
.word--accent { font: 500 17px/1 var(--font-sans); padding: 12px 22px; background: var(--accent); color: #fff; border: 0; box-shadow: 0 10px 24px -8px rgba(0,88,238,.6); }
.polaroid { width: 80px; height: 112px; padding: 5px 5px 17px; background: #fff; border-radius: 3px; box-shadow: 0 10px 28px -8px rgba(0,0,0,.35), 0 0 0 1px rgba(11,11,12,.08); }
.polaroid__img { display: block; width: 100%; height: 100%; object-fit: cover; background: #d9d6d0; }
.polaroid--center { width: 187px; height: 256px; padding: 6px 6px 14px; display: flex; flex-direction: column; gap: 11px; }
.polaroid--center .polaroid__img { flex: 1; }
.polaroid--center figcaption { color: #0B0B0C; font-size: 15px; text-align: center; }

/* ---------- Footer ---------- */
.footer { padding: 40px max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.footer__card {
  max-width: 1408px; margin: 0 auto; background: var(--surface); border-radius: 28px; padding: 36px 24px 24px;
  display: grid; gap: 24px; grid-template-columns: 1fr;
}
.footer__sentence { font-size: 36px; line-height: 40px; letter-spacing: -.02em; max-width: 14ch; margin-bottom: 24px; }
.footer__links li { border-bottom: 1px solid var(--line); }
.footer__links a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 24px; line-height: 28px; transition: padding .3s var(--ease-out); }
.footer__links a i { font-style: normal; color: var(--accent); transition: transform .3s var(--ease-out); }
.footer__links a:hover i { transform: translate(3px, -3px); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 4px; }
.footer__bottom small { font: 13px var(--font-mono); }

/* ---------- Overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  height: 100%; height: 100dvh;
  display: flex; /* inner staat verticaal gecentreerd via margin: auto */
  opacity: 0; transition: opacity .35s ease;
}
.overlay[hidden] { display: none; }
.overlay.is-open { opacity: 1; }
.overlay__texture { position: fixed; inset: 0; }
.overlay__inner {
  position: relative; width: min(1200px, calc(100% - 2 * var(--gutter))); margin: auto; flex: none; /* zelfde kolom als de rest van de pagina */
  padding: 40px 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) 50%; column-gap: clamp(48px, 7vw, 95px);
  grid-template-areas: 'close count' 'info media' 'foot foot'; grid-template-rows: auto auto auto; align-content: start; row-gap: 0;
}
.overlay__close { grid-area: close; justify-self: start; align-self: start; margin-top: -14px; }
.overlay__count { grid-area: count; justify-self: end; font: 13px/18px var(--font-mono); color: var(--ink-soft); padding-top: 6px; }
.overlay__info { grid-area: info; display: flex; flex-direction: column; margin-top: 22px; min-height: 560px; max-width: 505px; }
.overlay__title { font-family: var(--font-display); font-weight: 700; font-size: 46px; line-height: 54px; letter-spacing: -.033em; margin-top: 20px; }
.overlay__desc { font-size: 22px; line-height: 32px; margin-top: 20px; }
.meta { margin-top: auto; padding-top: 24px; }
.meta > div { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; border-top: 1px solid var(--line); padding: 14px 0; }
.meta dt { font: 13px/18px var(--font-mono); text-transform: uppercase; color: var(--ink-soft); }
.meta dd { font-size: 20px; line-height: 26px; }
.meta a { color: var(--accent); display: inline-flex; gap: 8px; }
.meta a:hover { text-decoration: underline; text-underline-offset: 4px; }
.overlay__media { grid-area: media; margin-top: 22px; height: 560px; border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 30px 70px -30px rgba(0,0,0,.25), 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.overlay__media .card__media { position: absolute; inset: 0; }
.overlay__next { grid-area: foot; justify-self: end; margin-top: 20px; }
.overlay__inner::after { content: ''; grid-area: foot; align-self: start; height: 1px; background: var(--line); margin-top: 24px; }
.overlay__next { align-self: start; margin-top: 42px; z-index: 1; }

/* ---------- Dither canvas + cursor ---------- */
.dither { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 90; pointer-events: none; display: none; }
.dither.is-on { display: block; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; display: none; align-items: center; gap: 0;
  font: 500 18px/1 var(--font-mono); color: var(--accent); transform: translate(-50%, -50%); opacity: 0; transition: opacity .2s;
}
.cursor i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 4px; }
.cursor span { transition: transform .3s var(--ease-out); }
.cursor.is-visible { opacity: 1; }
.cursor:not(.is-bracket) span { opacity: 0; transform: scale(.4); }
.cursor.is-bracket span:first-child { transform: translateX(-4px); }
.cursor.is-bracket span:last-child { transform: translateX(4px); }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: flex; }
  body.has-cursor .card, body.has-cursor .card * { cursor: none; }
}

/* ---------- Desktop ---------- */
@media (min-width: 821px) {
  :root { --gutter: 120px; }
  .hero__title { font-size: 7.6cqw; letter-spacing: -.035em; flex-wrap: nowrap; } /* schaalt met het blok, dus de naam past altijd in het ASCII-gat */
  .nav { height: calc(112px + env(safe-area-inset-top, 0px)); }
  .footer__sentence { font-size: 64px; line-height: 72px; letter-spacing: -1.3px; max-width: none; margin-bottom: 40px; }
  .footer { padding: 80px 16px 16px; }
  .footer__card { border-radius: 40px; padding: 104px; grid-template-columns: 1fr 320px; grid-template-areas: 'main links' 'bottom bottom'; row-gap: 80px; }
  .footer__main { grid-area: main; }
  .footer__links { grid-area: links; align-self: start; margin-top: 8px; }
  .footer__bottom { grid-area: bottom; margin-top: 0; }
  .footer__bottom small { padding-top: 0; }
  .col-left { }
  #col-left .card--agency { --h: 368px; }
  #col-left .card--wereld { --h: 560px; }
  #col-right .card--dgtl { --h: 446px; }
  #col-right .card--ns { --h: 482px; }
  .about { height: 896px; }
  .about__stage { width: min(100%, 1440px); height: 896px; }
  .word, .polaroid { left: calc(var(--dx) / 1440 * 100%); top: calc(var(--dy) * 1px); transform: rotate(var(--r)); }
  .polaroid { width: 134px; height: 186px; padding: 8px 8px 28px; }
  .polaroid--center { width: 234px; height: 320px; padding: 8px 8px 18px; gap: 14px; }
  .polaroid--center figcaption { font-size: 18px; }
}

/* ---------- Mobiel / tablet ---------- */
@media (max-width: 820px) {
  .work__grid { grid-template-columns: 1fr; min-height: 1443px; }
  .work__col { display: contents; }
  .card--agency { order: 1; --h: 335px; }
  .card--dgtl { order: 2; --h: 340px; }
  .card--wereld { order: 3; --h: 380px; }
  .card--ns { order: 4; --h: 340px; }
  .work__grid { gap: 16px; }
  .card .tags { left: 24px; top: 24px; }
  .card__name { left: 24px; bottom: 24px; }
  .m-dgtl .mock:nth-child(1) { --w: 82%; left: 3%; top: 23%; }
  .m-dgtl .mock:nth-child(2) { --w: 90%; left: 6%; top: 34%; }
  .m-ns .mock { --w: 92%; left: 4%; top: 28%; }
  .hero { height: max(560px, 86svh); padding-bottom: 5svh; } /* kleiner: de eerste kaart gluurt onder de hero uit */
  .hero .field { height: calc(100% + 480px); }
  /* About: pills als wolk, foto's als swipe-rij */
  .about { height: auto; padding: 120px 0 96px; }
  .about__stage { width: auto; height: auto; margin: 0; display: flex; flex-direction: column; gap: 40px; }
  .about__words { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; padding: 0 max(var(--gutter), 24px); }
  .word, .polaroid { position: static; left: auto; top: auto; }
  .word { transform: rotate(var(--r)); }
  .about__photos {
    display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 28px max(24px, calc(50% - 130px)) 36px; scroll-padding-inline: max(24px, calc(50% - 130px)); -webkit-overflow-scrolling: touch;
  }
  .about__photos::-webkit-scrollbar { display: none; }
  .about__photos .polaroid { flex: none; width: 212px; height: 276px; padding: 8px 8px 24px; scroll-snap-align: center; transform: rotate(var(--r)); }
  .about__photos .polaroid--center { order: -1; width: 260px; height: 336px; padding: 8px 8px 16px; gap: 12px; }
  .about__photos .polaroid--center figcaption { font-size: 17px; }
  .overlay__inner { width: 100%; grid-template-columns: 1fr auto; grid-template-areas: 'close count' 'info info' 'media media' 'foot foot'; padding: calc(52px + env(safe-area-inset-top, 0px)) max(34px, env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(34px, env(safe-area-inset-left, 0px)); row-gap: 0; align-items: center; }
  /* sluiten blijft binnen duimbereik: vast bovenaan, ook als je naar beneden scrolt */
  .overlay__close { position: fixed; z-index: 6; margin-top: 0; top: calc(10px + env(safe-area-inset-top, 0px)); left: max(18px, env(safe-area-inset-left, 0px)); padding: 12px 16px; border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px var(--line); }
  .overlay__count { justify-self: end; padding: 0; }
  .overlay__info { margin-top: 28px; min-height: 0; max-width: none; }
  .overlay__title { font-size: 36px; line-height: 42px; margin-top: 16px; }
  .overlay__desc { font-size: 18px; line-height: 28px; margin-top: 16px; }
  .meta { margin-top: 32px; padding-top: 0; }
  .meta > div { grid-template-columns: 84px 1fr; padding: 13px 0; }
  .meta dd { font-size: 18px; line-height: 24px; }
  .overlay__media { height: 320px; margin-top: 32px; }
  .overlay__next { justify-self: stretch; width: 100%; margin-top: 28px; }
  .overlay__inner::after { display: none; }
  .overlay__count { position: relative; z-index: 6; }
}

/* ---------- Minder beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
