/* Aiko Jooris — library-site. Kleuren: coolors fffcf2 · ccc5b9 · 403d39 · 252422 · eb5e28
   Letter: Oxanium (hoekig, met afgeschuinde hoeken) — sluit aan op de blokletters van het AIKO-logo. */
:root {
  --ivory: #fffcf2;
  --stone: #ccc5b9;
  --char: #403d39;
  --ink: #252422;
  --flame: #eb5e28;
  --pad: clamp(12px, 1.2vw, 20px);
  --big: clamp(26px, 4vw, 68px);
  --font: "Oxanium", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .03em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
}
button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-decoration: none; }
i { font-style: normal; }
img { -webkit-user-drag: none; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; }
[hidden] { display: none !important; }
/* Grote koppen: zwaar en strak, zoals het logo */
.display { font-size: var(--big); font-weight: 800; letter-spacing: -.005em; line-height: 1.04; }

/* ---------- Achtergrondletters ---------- */
.bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg svg {
  position: absolute; left: 50%; top: 50%;
  height: 128vh; width: auto; max-width: none;
  fill: var(--char);
  opacity: 0;
  translate: -50% -50%;
  rotate: var(--rot, 0deg);
  scale: 1.14;
  transition: opacity .7s ease, scale 1.1s var(--ease-out);
}
.bg svg.is-on { opacity: .42; scale: 1; }

/* ---------- Navigatie ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--pad) 10px;
  transition: color .45s ease, background-color .45s ease;
}
.logo { display: flex; gap: 12px; align-items: center; }
#logo { display: block; }
.logo svg { height: 30px; width: auto; aspect-ratio: 380 / 124; fill: currentColor; display: block; }
.logo__txt { font-size: 13px; }
.nav__links { display: flex; gap: clamp(14px, 3vw, 34px); align-items: center; }
.nav__links a { position: relative; padding: 2px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }
.lang { display: flex; gap: 4px; }
.lang span { opacity: .45; transition: opacity .2s; }
.lang span.is-on { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lang i { opacity: .45; }
.lang:hover span { opacity: 1; }
.sheet-open .nav { color: var(--ink); background: var(--ivory); }
.is-home .nav { color: var(--ink); }

/* ---------- Library ---------- */
.lib { position: fixed; inset: 0; z-index: 1; user-select: none; -webkit-user-select: none; }
.lib[data-view="wheel"] { touch-action: none; }

.switch { position: absolute; left: var(--pad); top: 66px; z-index: 6; display: flex; }
.switch span { opacity: .5; margin-right: 6px; }
.switch button { opacity: .5; padding: 2px 0; transition: opacity .2s; }
.switch button:hover { opacity: 1; }
.switch button.is-on { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.row {
  position: absolute; left: var(--pad); right: var(--pad); top: 92px; z-index: 2;
  display: grid; grid-template-columns: 3fr 7fr 2fr; column-gap: 12px; align-items: start;
}
.row__name { display: block; }
.row__tag {
  display: block; margin-top: .35em; color: var(--stone);
  font-size: max(13px, .36em); font-weight: 600; letter-spacing: .03em; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row__year { text-align: right; }
.row__year small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .03em; line-height: 1.3; opacity: .7; margin-top: 4px; }

/* Het wiel: --cw (breedte) en --cy (midden) worden door library.js uitgerekend */
.wheel { position: absolute; inset: 0; z-index: 3; pointer-events: none; --cy: 55%; }
.card {
  position: absolute; left: 50%; top: var(--cy); width: var(--cw, 300px);
  pointer-events: auto; will-change: transform; cursor: pointer;
}
.card__frame {
  display: block; background: var(--ivory); padding: 7%;
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, .7);
  transition: scale .45s var(--ease-out);
}
.card:hover .card__frame { scale: 1.02; }
.card__frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); pointer-events: none; }
/* Instelling in het beheerpaneel: zonder witte rand */
.no-border .card__frame, .no-border.peek { padding: 0; background: none; }
/* Oranje "Bekijk"-knop op de middelste foto: laat zien waar je klikt */
.card__badge {
  position: absolute; right: -24px; bottom: -24px; width: 86px; height: 86px; border-radius: 50%;
  background: var(--flame); color: var(--ivory);
  display: grid; place-content: center; justify-items: center; gap: 1px;
  font-size: 12px; font-weight: 700; line-height: 1.1;
  opacity: var(--near, 0); scale: calc(.55 + .45 * var(--near, 0));
  pointer-events: none;
  transition: background-color .25s;
}
.card__badge i { font-size: 15px; }
.card__badge::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--flame);
  animation: ring 2.2s ease-out infinite;
}
.card.is-active:hover .card__badge { background: var(--ivory); color: var(--flame); }
.no-border .card__badge { right: 14px; bottom: 14px; }
@keyframes ring { from { scale: 1; opacity: .9; } to { scale: 1.55; opacity: 0; } }

/* Lens (library.js → makeLens): een WebGL-laag tekent de foto's; de HTML-kaartjes blijven onzichtbaar liggen om op te klikken */
.lens { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.has-lens .card__frame { opacity: 0; }
.lib[data-view="list"] .lens { display: none; }

.lib[data-view="list"] .row, .lib[data-view="list"] .wheel { display: none; }
.lib[data-view="wheel"] .list { display: none; }

/* Lijstweergave */
.list {
  position: absolute; inset: 104px var(--pad) 62px; z-index: 4;
  overflow-y: auto; list-style: none; padding: 0; touch-action: pan-y;
}
.list__row {
  display: grid; grid-template-columns: 3fr 4fr 3fr 2fr; column-gap: 12px; align-items: baseline;
  padding: clamp(12px, 1.6vw, 22px) 0; border-top: 1px solid rgba(255, 252, 242, .16);
  font-size: clamp(22px, 3vw, 48px); font-weight: 800; letter-spacing: -.005em; line-height: 1.1;
  transition: color .25s, padding .35s var(--ease-out);
}
.list li:last-child .list__row { border-bottom: 1px solid rgba(255, 252, 242, .16); }
.list__tag { font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--stone); line-height: 1.3; }
.list__go { text-align: right; font-size: 13px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.list__go b { font-weight: 700; color: var(--flame); margin-left: 10px; }
.list__go small { font-size: inherit; opacity: .6; }
.list__row:hover, .list__row:focus-visible { color: var(--flame); padding-left: 12px; }

.lib__bottom {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 12px; z-index: 6;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.counter { font-variant-numeric: tabular-nums; }
.hint { display: flex; align-items: center; gap: 12px; }
.hint__txt { color: var(--stone); text-align: center; }
.arrow {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid rgba(255, 252, 242, .4);
  display: grid; place-items: center; font-size: 15px;
  transition: background-color .2s, border-color .2s, scale .2s;
}
.arrow:hover { background: var(--flame); border-color: var(--flame); }
.arrow:active { scale: .92; }
@media (hover: none) { .arrow:hover { background: none; border-color: rgba(255, 252, 242, .4); } }
.lib[data-view="list"] .arrow { visibility: hidden; }
.scroll { justify-self: end; display: flex; align-items: center; gap: 8px; }
.scroll i { width: 1px; height: 18px; background: rgba(255, 252, 242, .3); position: relative; overflow: hidden; }
.scroll i::after { content: ""; position: absolute; inset: 0; background: var(--flame); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { from { translate: 0 -100%; } to { translate: 0 100%; } }
.lib[data-view="list"] .scroll { visibility: hidden; }

/* ---------- Oranje knop (startscherm en startfoto) ---------- */
.cta {
  position: absolute; left: 50%; bottom: 10px; translate: -50% 0; z-index: 3;
  background: var(--flame); color: var(--ivory); border-radius: 999px; padding: 14px 26px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  transition: opacity .5s ease .35s, scale .6s var(--ease-out) .35s, background-color .2s, color .2s;
}
.cta i { display: inline-block; margin-left: 6px; animation: nudge 1.4s var(--ease) infinite; }
.cta::after { content: ""; position: absolute; inset: 0; border-radius: 999px; border: 1px solid var(--flame); animation: ringpill 2.2s ease-out infinite; pointer-events: none; }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 5px 0; } }
@keyframes ringpill { from { scale: 1; opacity: .9; } to { scale: 1.18 1.5; opacity: 0; } }

/* ---------- Startfoto: één schermvullend beeld tussen startscherm en library ---------- */
.splash {
  position: fixed; inset: 0; z-index: 52; background: var(--ink); cursor: pointer;
  transition: transform .95s var(--ease);
}
.splash.is-gone { transform: translateY(-100%); }
.splash img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.splash::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: 1; background: linear-gradient(rgba(37, 36, 34, .6), rgba(37, 36, 34, 0)); pointer-events: none; }
.splash .cta { bottom: 22px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); }
.splash:hover .cta { background: var(--ivory); color: var(--flame); }

/* ---------- Panelen (reis / over mij) ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 50;
  background: var(--ivory); color: var(--ink);
  transform: translateY(-101%); visibility: hidden;
  transition: transform .8s var(--ease), visibility 0s .8s;
}
.sheet.is-open { transform: none; visibility: visible; transition: transform .8s var(--ease); }
.sheet__scroll {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 104px var(--pad) 120px; -webkit-overflow-scrolling: touch;
}
.sheet__close {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 2;
  background: var(--ink); color: var(--ivory); border-radius: 999px;
  padding: 14px 24px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgba(37, 36, 34, .55);
  transition: background-color .2s, scale .2s;
}
.sheet__close:hover { background: var(--flame); }
.sheet__close:active { scale: .96; }
.sheet__close i { margin-left: 6px; }

.thead {
  display: grid; grid-template-columns: 3fr 7fr 2fr; column-gap: 12px; align-items: start;
  padding-bottom: clamp(32px, 5vw, 80px);
}
.thead h2 { font: inherit; letter-spacing: inherit; }
.thead p { margin-top: .35em; font-size: max(13px, .36em); font-weight: 600; letter-spacing: .03em; line-height: 1.2; color: var(--char); opacity: .75; }
.thead__year { text-align: right; }
.thead__meta { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 22px; font-size: 13px; font-weight: 600; letter-spacing: .03em; line-height: 1.3; color: var(--char); }
.thead__meta li:first-child { color: var(--flame); font-weight: 700; }

.photos { columns: 3; column-gap: 12px; }
.photos[data-n="1"] { columns: 1; max-width: 620px; margin-left: 25%; }
.photos[data-n="2"] { columns: 2; }
.ph { break-inside: avoid; margin: 0 0 12px; }
.ph button { display: block; width: 100%; background: var(--stone); overflow: hidden; cursor: zoom-in; }
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease-out); }
.ph button:hover img { scale: 1.035; }
.ph figcaption { font-size: 13px; font-weight: 500; letter-spacing: .01em; text-transform: none; color: var(--char); padding: 6px 0 4px; }
.empty { font-size: 15px; color: var(--char); padding: 24px 0; }

.tfoot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: clamp(32px, 5vw, 72px); border-top: 1px solid rgba(37, 36, 34, .2); padding-top: 18px; }
.tfoot a { font-size: clamp(20px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.005em; line-height: 1.1; transition: color .2s; }
.tfoot a small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--char); opacity: .7; margin-bottom: 6px; }
.tfoot a:last-child { text-align: right; }
.tfoot a:hover { color: var(--flame); }

/* Over mij: zonder foto staat de tekst breed; met foto (beheerpaneel) staat links een groot portret */
.about { display: grid; grid-template-columns: 3fr 9fr; column-gap: 12px; align-items: start; }
.label { font-size: 13px; font-weight: 700; color: var(--flame); margin-bottom: 18px; }
.about.has-photo { grid-template-columns: 5fr 7fr; column-gap: clamp(20px, 3.5vw, 60px); }
.about.has-photo .about__side { position: sticky; top: 0; }
.portrait img { display: block; width: 100%; height: auto; max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); object-fit: cover; background: var(--stone); }
.about__text { font-size: clamp(20px, 2.3vw, 36px); font-weight: 500; letter-spacing: 0; line-height: 1.22; text-transform: none; max-width: 28em; }
.about.has-photo .about__text { font-size: clamp(18px, 1.8vw, 28px); padding-top: 31px; }
.about__text p + p { margin-top: .8em; }
.facts { display: grid; grid-template-columns: minmax(90px, 2fr) 7fr; gap: 0 12px; margin-top: clamp(36px, 5vw, 72px); max-width: 60em; }
.facts:empty { display: none; }
.facts dt, .facts dd { border-top: 1px solid rgba(37, 36, 34, .2); padding: 14px 0 22px; }
.facts dt { font-weight: 700; }
.facts dd { font-size: clamp(17px, 1.9vw, 26px); font-weight: 600; letter-spacing: 0; line-height: 1.2; text-transform: none; overflow-wrap: anywhere; }
.facts dd a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--flame); transition: color .2s; }
.facts dd a:hover { color: var(--flame); }
.facts dd a i { color: var(--flame); margin-left: 6px; }

/* Over mij met foto: donker, foto schermvullend bovenaan die bij het scrollen overloopt in het donker */
.sheet.is-dark { background: var(--ink); color: var(--ivory); }
.sheet.is-dark .sheet__close { background: var(--ivory); color: var(--ink); }
.sheet.is-dark .sheet__close:hover { background: var(--flame); color: var(--ivory); }
.sheet-dark .nav { color: var(--ivory); background: linear-gradient(rgba(37, 36, 34, .75), rgba(37, 36, 34, 0)); }
.ahero {
  position: relative; height: 128vh; height: 128svh; overflow: hidden;
  margin: -104px calc(-1 * var(--pad)) 0; background: var(--ink);
}
/* de foto (of de 3D-weergave) vult het scherm; schuift bij het scrollen trager mee (library.js) */
.ahero__media {
  position: absolute; left: 0; right: 0; top: 0; height: 100vh; height: 100svh; z-index: 0; will-change: translate;
  scale: 1.12; filter: brightness(.25) blur(6px);
}
.sheet.is-open .ahero__media { scale: 1; filter: none; transition: scale 2.4s var(--ease-out) .15s, filter 1.6s ease .15s; }
.ahero__img, .ahero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 62% 50%; }
.ahero__gl { opacity: 0; transition: opacity .6s ease; }
.ahero.is-3d .ahero__gl { opacity: 1; }
/* onderaan loopt de foto over in het donker, zodat de tekst eronder goed leesbaar is */
.ahero__media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 46%; pointer-events: none;
  background: linear-gradient(rgba(37, 36, 34, 0), rgba(37, 36, 34, .78) 55%, var(--ink) 92%);
}
/* korrel, zoals op oude film */
.ahero::after {
  content: ""; position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain { 0% { translate: 0 0; } 20% { translate: -4% 3%; } 40% { translate: 3% -5%; } 60% { translate: -6% -2%; } 80% { translate: 5% 4%; } 100% { translate: 0 0; } }
/* naam en "fotograaf" verspreid over de breedte, warm gloeiend */
.ahero__words {
  position: absolute; left: var(--pad); right: var(--pad); top: 60vh; top: 60svh; z-index: 2;
  display: flex; justify-content: space-between; align-items: baseline; gap: 3vw; pointer-events: none;
  font-size: clamp(30px, 4.7vw, 96px); font-weight: 800; line-height: .9; letter-spacing: -.01em;
  color: #ffe9c2; text-shadow: 0 0 .25em rgba(255, 170, 70, .55), 0 0 .8em rgba(235, 94, 40, .35);
}
.ahero__words span { display: block; opacity: 0; translate: 0 .35em; filter: blur(8px); }
.sheet.is-open .ahero__words span {
  opacity: 1; translate: 0 0; filter: blur(0);
  transition: opacity .9s ease, translate 1.2s var(--ease-out), filter 1.1s ease;
  transition-delay: calc(.7s + var(--k) * .14s);
}
.ahero__hint {
  position: absolute; left: 50%; top: calc(100vh - 128px); top: calc(100svh - 128px); translate: -50% 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ivory); opacity: .8; pointer-events: none;
}
.ahero__hint i { animation: hintdrop 1.6s var(--ease) infinite; }
@keyframes hintdrop { 0%, 100% { translate: 0 -3px; opacity: .4; } 50% { translate: 0 5px; opacity: 1; } }
.ahero__words, .ahero__hint { will-change: opacity, translate; }
/* de tekst eronder: zelfde stijl als de rest, licht op donker */
.sheet.is-dark .about { position: relative; z-index: 1; margin-top: -8vh; grid-template-columns: 3fr 9fr; column-gap: 12px; }
.sheet.is-dark .about__side { position: static; }
.sheet.is-dark .portrait { display: none; }
.sheet.is-dark .about__text { color: var(--ivory); font-size: clamp(20px, 2.3vw, 36px); padding-top: 0; }
.sheet.is-dark .facts dt, .sheet.is-dark .facts dd { border-top-color: rgba(255, 252, 242, .18); }
@media (prefers-reduced-motion: reduce) {
  .ahero::after, .ahero__hint i { animation: none; }
  .ahero__media, .ahero__words span { scale: 1; filter: none; opacity: 1; translate: none; }
}

/* ---------- Lightbox: de foto vult het hele scherm, knoppen liggen eroverheen ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: var(--ink); color: var(--ivory);
  display: none; place-items: center; touch-action: none;
}
.lightbox.is-open { display: grid; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.lightbox img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; object-fit: contain; display: block; }
.lb__close, .lb__nav { background: rgba(37, 36, 34, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 252, 242, .4); transition: background-color .2s, border-color .2s; }
.lb__close { position: absolute; right: var(--pad); top: 14px; font-weight: 700; padding: 11px 18px; border-radius: 999px; }
.lb__nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; }
.lb__close:hover, .lb__nav:hover { background: var(--flame); border-color: var(--flame); }
.lb__nav--prev { left: var(--pad); }
.lb__nav--next { right: var(--pad); }
.lb__bar { position: absolute; left: var(--pad); bottom: 14px; max-width: calc(100% - 2 * var(--pad)); display: flex; gap: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(37, 36, 34, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none; }
#lb-count { font-variant-numeric: tabular-nums; }
#lb-cap { color: var(--stone); text-transform: none; font-weight: 500; }
#lb-cap:empty { display: none; }

/* ---------- Cursorlabel en voorvertoning ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  background: var(--flame); color: var(--ivory);
  font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  opacity: 0; scale: .6; transform-origin: 0 0; transition: opacity .18s, scale .18s;
}
.cursor.is-on { opacity: 1; scale: 1; }

.peek { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; width: clamp(140px, 15vw, 220px); background: var(--ivory); padding: 10px; opacity: 0; rotate: 4deg; scale: .85; transition: opacity .25s, scale .35s var(--ease-out); }
.peek.is-on { opacity: 1; scale: 1; }
.peek img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }

/* ---------- Startscherm ---------- */
.intro {
  position: fixed; inset: 0; z-index: 55; background: var(--stone); cursor: pointer;
  --inset: 64px; --lg: clamp(8px, 1.3vw, 20px); --mid: var(--lg);   /* --mid = ruimte tussen boven- en onderhelft: even smal als tussen de letters */
  --foot: 110px; --split: 50%;   /* library.js: --foot = hoogte van zin + knop onderaan, --split = midden van de letters */
}
.intro[hidden] { display: none; }
.intro.is-open { background: transparent; pointer-events: none; }
/* Twee helften: boven en onder. Bij het openen schuiven ze als een poort uit elkaar. */
.intro__half { position: absolute; inset: 0; background: var(--stone); transition: transform .95s var(--ease); will-change: transform; }
.intro__half--top { clip-path: inset(0 0 calc(100% - var(--split) - 1px) 0); }
.intro__half--bottom { clip-path: inset(var(--split) 0 0 0); }
.intro.is-open .intro__half--top { transform: translateY(calc(-1 * var(--split) - 2px)); }
.intro.is-open .intro__half--bottom { transform: translateY(calc(100% - var(--split) + 2px)); }
.intro__letters { position: absolute; transition: opacity .4s ease; }
.intro__half--top .intro__letters { inset: var(--inset) var(--pad) calc(100% - var(--split) + var(--mid) / 2); }
.intro__half--bottom .intro__letters { inset: calc(var(--split) + var(--mid) / 2) var(--pad) var(--foot); }
/* Breed scherm: bovenhelften van A·I·K·O boven, onderhelften onder. Smal scherm: AI boven, KO onder. */
.intro__row { position: absolute; inset: 0; display: flex; gap: var(--lg); }
.intro__row--tall { display: none; }
.il { position: relative; flex: 1 1 0; flex-grow: var(--w, 1); min-width: 0; min-height: 0; transform-origin: 0 0; will-change: transform; }
.il svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.il .ghost { fill: rgba(37, 36, 34, .13); }
.il .solid {
  fill: var(--ink); clip-path: inset(100% 0 0 0);
  animation: fillup var(--dur, .85s) var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * .13s + .15s + var(--late, 0s));
}
.il--bot .solid { --dur: .45s; animation-timing-function: cubic-bezier(.6, 0, .9, .6); }
.il--top .solid { --dur: .45s; --late: .42s; animation-timing-function: cubic-bezier(.1, .4, .3, 1); }
@keyframes fillup { to { clip-path: inset(0 0 0 0); } }
.intro.is-filled .il .solid { animation: none; clip-path: none; }

/* LIBRARY in het midden: letters over de hele breedte verdeeld, kleur keert om boven de zwarte letters */
.intro__word {
  position: absolute; left: var(--pad); right: var(--pad); top: var(--split); translate: 0 -50%;
  display: flex; justify-content: space-between; overflow: hidden; padding: .04em 0;
  color: var(--ivory); mix-blend-mode: difference; pointer-events: none;
  font-size: clamp(44px, 9vw, 170px); font-weight: 800; line-height: .82; letter-spacing: 0;
}
.intro__word span { display: block; translate: 0 108%; transition: translate .9s var(--ease-out); transition-delay: calc(var(--k) * 45ms); }
.intro.is-full .intro__word span { translate: 0 0; }

/* Onderaan: de zin links, de oranje knop rechts */
.intro__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 0; padding: 16px 0 14px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 40px; pointer-events: none;
}
.intro__p {
  max-width: 44ch; color: var(--ink); text-wrap: balance;
  font-size: clamp(13px, 1.1vw, 18px); font-weight: 700; letter-spacing: .01em; line-height: 1.22;
  opacity: 0; translate: 0 14px; transition: opacity .6s ease, translate .9s var(--ease-out);
}
.intro.is-full .intro__p { opacity: 1; translate: 0 0; }
.intro .intro__cta { position: relative; left: auto; bottom: auto; translate: none; flex: none; pointer-events: auto; opacity: 0; scale: .9; }
.intro.is-full .intro__cta { opacity: 1; scale: 1; }
.intro:hover .intro__cta { background: var(--ink); }
.intro.is-open .intro__p, .intro.is-open .intro__cta, .intro.is-open .intro__word { opacity: 0; transition: opacity .2s; }

/* Bewegend (instelling 'bewegend'): reuzenletters schuiven van boven naar beneden; klik = het scherm zakt weg */
.intro__flow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
.intro__track { position: absolute; left: var(--pad); right: var(--pad); top: 0; will-change: transform; }
.intro__track svg { display: block; width: 100%; height: var(--lh, 100vh); margin-bottom: var(--lgap, 20px); fill: var(--ink); }
.intro.is-move { transition: transform .95s var(--ease); }
.intro.is-move .intro__letters { opacity: 0; }
.intro.is-move .intro__flow { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.intro.is-move .intro__p { color: var(--ivory); mix-blend-mode: difference; }
.intro.is-move.is-open { transform: translateY(100%); }
.intro.is-move.is-open .intro__half { transform: none; }
.is-home.intro-move .nav { color: var(--ivory); mix-blend-mode: difference; }
.intro__msg { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; color: var(--ink); padding: 0 20px; }
.intro__msg:empty { display: none; }

/* ---------- Mobiel ---------- */
@media (max-width: 760px) {
  :root { --big: clamp(24px, 7.2vw, 40px); }
  body { font-size: 12px; }
  .logo svg { height: 26px; }
  .logo { gap: 9px; }
  .logo__txt { font-size: 11px; }
  .switch { top: 62px; }
  .row { grid-template-columns: auto 1fr auto; column-gap: 14px; top: 86px; }
  .row__tag { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .row__year small { font-size: 11px; }
  .card__badge { width: 68px; height: 68px; right: -14px; bottom: -14px; font-size: 11px; }
  .list { inset: 92px var(--pad) 66px; }
  .list__row { grid-template-columns: auto 1fr auto; column-gap: 14px; }
  .list__tag { grid-column: 2; grid-row: 2; margin-top: 4px; }
  .list__go small { display: none; }
  .lib__bottom { grid-template-columns: auto 1fr; gap: 10px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .hint { justify-content: flex-end; gap: 8px; }
  .arrow { width: 42px; height: 42px; }
  .scroll { display: none; }
  .sheet__scroll { padding-top: 84px; }
  .thead { grid-template-columns: auto 1fr; column-gap: 14px; }
  .thead__year { display: none; }
  .photos, .photos[data-n="2"] { columns: 2; column-gap: 8px; }
  .photos[data-n="1"] { margin-left: 0; }
  .ph { margin-bottom: 8px; }
  .tfoot a { font-size: 20px; }
  .about, .about.has-photo { grid-template-columns: 1fr; }
  .about.has-photo .about__side { position: static; }
  .about__side { margin-bottom: 22px; }
  .about.has-photo .about__text { font-size: 19px; padding-top: 0; }
  .portrait img { max-height: none; }
  .sheet.is-dark .about { grid-template-columns: 1fr; margin-top: -6vh; }
  .ahero { margin-top: -84px; }
  .ahero__words { flex-direction: column; align-items: flex-start; gap: .05em; top: 56svh; font-size: clamp(36px, 11vw, 60px); }
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; }
  .facts dd { border-top: 0; padding-top: 6px; }
  .intro { --inset: 68px; }
  .intro__row--wide { display: none; }
  .intro__row--tall { display: flex; }
  .intro__foot { flex-direction: column; align-items: stretch; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .intro .intro__cta { align-self: center; }
  .cta { bottom: 12px; }
  .splash .cta { bottom: max(22px, env(safe-area-inset-bottom)); }
  .lb__nav { top: auto; bottom: 14px; translate: none; }
  .lb__nav--prev { left: auto; right: calc(var(--pad) + 58px); }
  .lb__nav--next { right: var(--pad); }
}
@media (max-width: 400px) { .logo__txt { display: none; } }

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