/* ==========================================================================
   Rachie's website — stylesheet
   Design tokens bovenaan; pas kleuren/fonts hier aan.
   ========================================================================== */

/* ---------- Fonts (self-hosted, geen Google-verbinding nodig) ---------- */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/geist-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #F0EDE7;
  --ink: #111;
  --muted: #555;
  --placeholder: #E2DED6;
  --scrub-from: #C9C4BB;   /* lichtgrijs waarmee de over-tekst begint */
  --lb-bg: #1A1A19;
  --lb-line: #3A3A38;
  --lb-ink: #F0EDE7;       /* tekst in de lightbox (altijd licht) */
  --cursor-lime: #BFFF00;  /* kleur van de toverstaf-cursor */

  --font-sans: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 3vw, 48px);
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* Donkere modus: warm bijna-zwart papier met crème inkt (gespiegeld palet).
   Wordt gezet via <html data-theme="dark"> (systeemvoorkeur of de knop in de header). */
:root[data-theme="dark"] {
  --bg: #141412;
  --ink: #ECE8E0;
  --muted: #9C988F;
  --placeholder: #252420;
  --scrub-from: #3A3833;
  --lb-bg: #0B0B0A;
  --lb-line: #2B2A27;
  --lb-ink: #ECE8E0;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
html { scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: 0;
}
.skip-link {
  position: fixed; left: var(--gutter); top: 8px; z-index: 300;
  background: var(--ink); color: var(--bg); padding: 10px 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--bg); }

/* Mono-label: het terugkerende kleine label (WERK, (OVER), …) */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mono-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; }

/* Onderstreep-animatie voor links */
.u-link {
  display: inline-block;
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .45s var(--ease);
}
.u-link:hover, .u-link:focus-visible { background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  padding: 0 var(--gutter);
}
.site-header__name { display: inline-block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.site-nav { align-items: center; }
.site-nav a { padding: 6px 0; }

/* Thema-knop (licht/donker) */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  letter-spacing: inherit; text-transform: inherit;
}
.theme-toggle__icon {
  position: relative; width: 11px; height: 11px; flex: 0 0 auto;
  border: 1px solid currentColor; border-radius: 50%; overflow: hidden;
}
.theme-toggle__icon::after {
  content: ''; position: absolute; inset: 0;
  background: currentColor;
  transform: translateX(50%);
  transition: transform .5s var(--ease);
}
[data-theme="dark"] .theme-toggle__icon::after { transform: translateX(-50%); }
.theme-toggle__label { display: inline-block; overflow: hidden; height: 14px; line-height: 14px; }
.theme-toggle__label-inner { display: flex; flex-direction: column; transition: transform .5s var(--ease); }
[data-theme="dark"] .theme-toggle__label-inner { transform: translateY(-50%); }

/* Wisselen: cirkel-onthulling vanaf de knop (View Transitions), anders een korte crossfade */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease) !important;
}

/* ---------- Hero (waaier die opent bij scrollen) ---------- */
.hero { position: relative; height: 320vh; }
.hero__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.fan { position: absolute; inset: 0; }
.fan__center { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.fan__card {
  position: absolute; left: 0; top: 0;
  width: var(--fan-w, min(clamp(160px, min(24vw, 40vh), 380px), var(--fan-max, 9999px)));
  transform-origin: 0% 100%;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  /* beginstand (JS neemt het over): gecentreerd, op elkaar */
  transform: translate(-50%, -50%);
}
.fan__card img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.hero__title {
  margin: 0; font-weight: 500;
  font-size: clamp(22px, 2.1vw, 32px); line-height: 1.12; letter-spacing: -0.02em;
  max-width: 17em;
}
.hero__title .line-mask { padding-bottom: 0; }
.hero__cta {
  display: inline-flex; justify-content: space-between; align-items: center; gap: 40px;
  min-width: 200px; padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 16px;
}
.hero__cta span:last-child { font-size: 14px; }

/* ---------- Secties ---------- */
.section { padding: clamp(120px, 14vw, 220px) var(--gutter) 0; }
.section--work { padding-top: clamp(80px, 10vw, 160px); }
.section-head {
  display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px;
}
.display-lines {
  margin: 0 0 clamp(40px, 5vw, 72px);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 120px);
  line-height: .92;
  letter-spacing: -0.04em;
}
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.line { display: block; }

/* Werklijst (desktop) */
.work-list { border-bottom: 1px solid var(--ink); }
.work-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  align-items: baseline;
  border-top: 1px solid var(--ink);
  padding: clamp(18px, 2vw, 30px) 0;
  transition: padding-left .5s var(--ease);
}
.work-row:hover, .work-row:focus-visible { padding-left: 16px; }
.work-row__num { grid-column: 1 / 2; }
.work-row__title { grid-column: 2 / 8; font-size: clamp(26px, 3.4vw, 58px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.work-row__cat { grid-column: 8 / 11; }
.work-row__year { grid-column: 11 / 13; text-align: right; }

/* Werkkaarten (mobiel) */
.work-cards { display: none; flex-direction: column; gap: 48px; }
.work-card { display: flex; flex-direction: column; gap: 14px; }
.work-card img { display: block; width: 100%; height: auto; border-radius: 14px; }
.work-card__meta { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--ink); padding-top: 12px; }
.work-card__title { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }

/* Over + diensten */
.split { display: flex; flex-wrap: wrap; gap: 32px 20px; }
.split + .split { margin-top: clamp(80px, 9vw, 140px); }
.split__label { flex: 1 1 200px; }
.split__body { flex: 3 1 520px; min-width: 0; }
.about { display: flex; flex-wrap: wrap; gap: 32px clamp(20px, 4vw, 64px); align-items: flex-start; }
.about__photo {
  flex: 0 0 auto;
  width: clamp(160px, 18vw, 260px); height: clamp(160px, 18vw, 260px);
  border-radius: 50%; overflow: hidden; background: var(--placeholder);
}
.about__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about__body { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.lead {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: pretty;
  max-width: 26em;
}
.services-block { display: flex; flex-direction: column; gap: 24px; margin-top: clamp(80px, 9vw, 140px); }
.services { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ink); }
.services li {
  display: flex; align-items: baseline; gap: 24px;
  border-top: 1px solid var(--ink);
  padding: 18px 0;
}
.services .mono-num { min-width: 3ch; }
.services__name { font-size: clamp(24px, 3vw, 48px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }

/* ---------- Contact (footer) ---------- */
.contact { padding-bottom: 28px; }
.contact-head { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ink); padding-top: 14px; }
.contact-title {
  margin: clamp(48px, 6vw, 96px) 0 0;
  font-weight: 500; font-size: clamp(28px, 3.2vw, 52px); line-height: 1.02; letter-spacing: -0.03em;
}
.contact-mail {
  display: inline-block; max-width: 100%;
  margin: clamp(20px, 2.4vw, 36px) 0 0;
  color: var(--ink);
}
.contact-mail__chars {
  display: flex; flex-wrap: wrap;
  font-weight: 500; font-size: clamp(34px, 7vw, 148px); line-height: 1; letter-spacing: -0.045em;
}
.roll { display: inline-block; overflow: hidden; height: 1.08em; }
.roll__inner { display: flex; flex-direction: column; }
.roll__inner > span { display: block; height: 1.08em; white-space: pre; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(24px, 3vw, 44px); }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: 999px;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover, .btn--line:focus-visible { background: var(--ink); color: var(--bg); }
.btn { justify-content: center; }
.btn__swap { display: inline-block; overflow: hidden; height: 14px; }
.btn__swap-inner { display: flex; flex-direction: column; line-height: 14px; }
.contact-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px;
  margin-top: clamp(100px, 12vw, 180px);
  border-top: 1px solid var(--ink); padding-top: 18px;
}
.contact-bottom__mail { text-transform: none; letter-spacing: .04em; }

/* ---------- Projectpagina ---------- */
.project { padding: 108px var(--gutter) 0; }
.project__top { display: flex; justify-content: space-between; gap: 16px; }
.project__title {
  margin: clamp(48px, 7vw, 120px) 0 0;
  font-weight: 500;
  font-size: clamp(48px, 9.6vw, 200px);
  line-height: .9;
  letter-spacing: -0.045em;
}
.project__tagline { margin-top: 20px; }
.project__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 20px;
  margin: clamp(56px, 7vw, 110px) 0 0;
}
.project__meta > div { border-top: 1px solid var(--ink); padding: 14px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.project__meta dt { margin: 0; }
.project__meta dd { margin: 0; font-size: 17px; line-height: 1.35; }
.project__brief { margin-top: clamp(56px, 7vw, 110px); gap: 24px 20px; }
.project__intro { margin: 0; font-size: clamp(21px, 2.1vw, 32px); line-height: 1.25; letter-spacing: -0.015em; max-width: 30em; text-wrap: pretty; }
.project__intro + .project__intro { margin-top: 0.75em; }
.sheets { display: flex; flex-direction: column; gap: clamp(96px, 12vw, 200px); margin-top: clamp(110px, 13vw, 220px); }
.sheet { margin: 0; }
.sheet figcaption { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 20px; }
.sheet__btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  overflow: hidden; cursor: zoom-in;
}
.sheet__btn img { display: block; width: 100%; height: auto; }
.sheet--portrait .sheet__btn { width: min(100%, 72svh, 720px); margin-inline: auto; }

.next-project { margin-top: clamp(140px, 16vw, 260px); border-top: 1px solid var(--ink); padding-top: 14px; }
.next-project__head { display: flex; justify-content: space-between; gap: 16px; }
.next-project__link { display: block; padding: clamp(32px, 4vw, 64px) 0 clamp(20px, 3vw, 40px); }
.next-project__title { display: block; font-weight: 500; font-size: clamp(44px, 8.4vw, 170px); line-height: .9; letter-spacing: -0.045em; }
.next-project__sub { display: block; margin-top: 18px; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; padding: 140px var(--gutter) 0; }
.notfound .display-lines { margin-top: 40px; }

/* ---------- Cursor-volger + hoverpreview ---------- */
.follow { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; visibility: hidden; }
.follow__pill {
  position: absolute; left: 0; top: 0;
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.follow__preview { position: absolute; top: 0; left: 60px; width: clamp(260px, 26vw, 420px); opacity: 0; }
.follow__preview img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: var(--lb-bg); color: var(--lb-ink);
  display: flex; flex-direction: column;
}
.lightbox[hidden] { display: none; }
.lightbox__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  height: 60px; padding: 0 var(--gutter);
  border-bottom: 1px solid var(--lb-line);
}
.lightbox__bar--bottom { height: 64px; border-bottom: 0; border-top: 1px solid var(--lb-line); }
.lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 3vw, 40px); }
.lightbox__stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; }
.lightbox button { background: none; border: 0; padding: 10px 0; cursor: pointer; color: var(--lb-ink); }

/* ---------- Paginatransitie-paneel ---------- */
.panel {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink); color: var(--bg);
  display: none; align-items: flex-end;
  padding: 0 var(--gutter) 40px;
  pointer-events: none;
}
.panel__label { font-size: clamp(36px, 6vw, 110px); font-weight: 500; letter-spacing: -0.04em; line-height: .95; }
/* Bij binnenkomst via een transitie start het paneel dicht (gezet in <head>) */
html.is-entering .panel { display: flex; }

/* ---------- Animatie-beginstanden (alleen als JS draait) ---------- */
html.js-anim [data-fade],
html.js-anim [data-fade-load],
html.js-anim [data-ring] { opacity: 0; }
html.js-anim [data-lines] .line { transform: translateY(115%); }
html.js-anim.reduced [data-lines] .line { transform: none; opacity: 0; }
html.js-anim [data-sheet] { clip-path: inset(100% 0 0 0); }
html.js-anim.reduced [data-sheet] { clip-path: none; opacity: 0; }

/* Over-tekst: letters kleuren mee met scrollen */
.lead .word { display: inline-block; white-space: nowrap; }
html.js-anim:not(.reduced) [data-scrub-text] .ch { color: var(--scrub-from); }

/* ---------- Fotoproject ---------- */
/* 1. Stapel polaroids (slepen, gooien, schudden) */
.pile {
  --pile-base: clamp(120px, 13vw, 230px);
  position: relative;
  height: calc(100vh - 140px); height: calc(100svh - 140px);
  min-height: 560px;
  margin: 24px calc(var(--gutter) * -1) 0;
  overflow: hidden;
}
.pile__title {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 var(--gutter) 40px; text-align: center; pointer-events: none;
}
.pile__h1 { margin: 0; font-size: clamp(56px, 13vw, 250px); }
.pile__hint { margin: 22px 0 0; }
.pile__layer { position: absolute; inset: 0; }
.polaroid {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--pile-base) * var(--k, 1));
  padding: 9px 9px 0; border: 0; border-radius: 3px;
  background: #FBFAF6; color: #111;
  box-shadow: 0 1px 2px rgba(20, 14, 8, .08), 0 14px 34px -12px rgba(20, 14, 8, .32);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: box-shadow .35s var(--ease);
}
.polaroid.is-drag { cursor: grabbing; box-shadow: 0 2px 4px rgba(20, 14, 8, .08), 0 34px 60px -14px rgba(20, 14, 8, .45); }
.polaroid__img { display: block; aspect-ratio: var(--ar); overflow: hidden; background: #E2DED6; }
.polaroid__img img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.polaroid__cap { display: block; padding: 9px 2px 11px; text-align: left; font-size: 9px; color: #111; }
html.js-anim [data-pile-photo] { visibility: hidden; }
.pile__bar {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; z-index: 9000;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  pointer-events: none;
}
.pile__bar > * { pointer-events: auto; }
.pile__shuffle {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--bg); color: var(--ink); cursor: pointer;
  transition: background .3s, color .3s;
}
.pile__shuffle:hover, .pile__shuffle:focus-visible { background: var(--ink); color: var(--bg); }
.pile__shuffle-icon { display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 0; }

/* 2. Rolfilm (schuift horizontaal mee met scrollen) */
.reel {
  position: relative;
  height: 100vh; height: 100svh; min-height: 520px;
  margin-top: clamp(110px, 13vw, 220px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.project--tail { padding-top: 0; }
.reel__head {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; gap: 16px;
  margin: 0 var(--gutter); padding: calc(var(--header-h) + 18px) 0 0;
}
.reel__head > span:last-child { font-variant-numeric: tabular-nums; }
.reel__word {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  white-space: nowrap; pointer-events: none;
  font-weight: 500; font-size: clamp(120px, 24vw, 460px); line-height: .8; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink); opacity: .22;
}
.reel__word span { display: inline-block; padding-left: var(--gutter); }
.reel__viewport {
  position: relative; flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 44px 0;
  overflow-x: auto; scrollbar-width: none;
}
.reel__viewport::-webkit-scrollbar { display: none; }
.reel.is-pinned .reel__viewport { overflow: visible; }
.reel__track {
  display: flex; align-items: center; gap: clamp(22px, 3.6vw, 64px);
  width: max-content; padding: 0 var(--gutter);
  will-change: transform;
}
.reel__item {
  position: relative; flex: 0 0 auto;
  height: var(--h); aspect-ratio: var(--ar);
  margin-top: var(--o);
  padding: 0; border: 0; border-radius: 6px; overflow: hidden;
  background: var(--placeholder); cursor: zoom-in;
}
.reel__item img {
  position: absolute; top: 0; left: -8%;
  width: 116%; max-width: none; height: 100%; object-fit: cover;
  transition: filter .5s var(--ease);
}
.reel__num { position: absolute; left: 10px; top: 10px; color: #fff; mix-blend-mode: difference; font-size: 10px; }
.reel__sprockets {
  position: absolute; left: 0; right: 0; top: 18px; height: 9px;
  background-image: repeating-linear-gradient(90deg, var(--cursor-lime) 0 16px, transparent 16px 38px);
}
.reel__sprockets + .reel__track + .reel__sprockets { top: auto; bottom: 18px; }
.reel__progress { position: relative; height: 1px; margin: 0 var(--gutter) 26px; background: var(--scrub-from); }
.reel__progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* Camera-flits bij het openen vanaf de stapel */
.flash { position: fixed; inset: 0; z-index: 99; background: #fff; opacity: 0; pointer-events: none; }

@media (pointer: coarse) {
  .polaroid { touch-action: pan-y; }   /* verticaal blijft scrollen, horizontaal gooien */
}
@media (max-width: 760px) {
  .pile { --pile-base: clamp(104px, 31vw, 160px); min-height: 520px; }
  .pile__tag { display: none; }
  .polaroid:nth-child(n+8) { display: none; }   /* op mobiel een kleinere stapel */
  .pile__bar { justify-content: space-between; }
  .reel__item { height: calc(var(--h) * .78); }
}

/* ---------- Mobiel ---------- */
@media (max-width: 760px) {
  .fan__card { width: min(clamp(170px, 48vw, 260px), var(--fan-max, 9999px)) !important; }  /* grotere hero-kaarten op mobiel */
  .contact-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .contact-actions .btn { width: 100%; }
  .work-list { display: none; }
  .work-cards { display: flex; }
  .theme-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }  /* op mobiel alleen het icoon */
  .theme-toggle { padding: 6px 2px; }
}

/* ---------- Naar-boven-knop ---------- */
.to-top {
  position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 40;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--cursor-lime); border-radius: 50%;
  background: var(--cursor-lime); color: #111; cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s, color .3s, visibility 0s .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.to-top:hover, .to-top:focus-visible { background: #111; border-color: #111; color: var(--cursor-lime); }
@media (max-width: 760px) {
  .to-top { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top { transition: opacity .2s, visibility 0s .2s; transform: none; }
}
