/* Inkt-sjabloon — drie kleuren: rood, inkt, papier. Kleuren en fonts komen uit site.config.js */
:root {
  --red: #e3141c; --ink: #0b0a0a; --paper: #f3eee4;
  --font-display: system-ui, sans-serif; --font-body: system-ui, sans-serif; --font-mono: ui-monospace, monospace;
  --line: 3px; --gutter: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55; overflow-x: hidden;
}
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: normal; color: var(--red); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.wrap { width: min(1280px, 100% - var(--gutter) * 2); margin-inline: auto; }
.anchor { position: absolute; top: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px;
  border: var(--line) solid var(--ink); background: var(--paper); color: var(--ink);
  font: 600 14px/1 var(--font-body); text-decoration: none; letter-spacing: .02em;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--red); color: var(--paper); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn--sm { padding: 10px 14px; font-size: 13px; }
.btn--lg { padding: 18px 30px; font-size: 16px; box-shadow: 6px 6px 0 var(--ink); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter); color: var(--ink);
}
/* alles in de header staat op een papieren 'sticker', zodat het op elke scène leesbaar blijft */
.logo, .header__nav, .counter, .menu-toggle {
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.logo { font: 800 clamp(16px, 1.8vw, 20px)/1 var(--font-display); text-decoration: none; letter-spacing: -.02em; padding: 9px 12px; }
.logo img { height: 22px; }
.header__nav { display: none; gap: 20px; padding: 10px 14px; }
.header__nav a { text-decoration: none; font: 600 13px/1 var(--font-body); position: relative; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--red); transition: right .25s; }
.header__nav a:hover::after { right: 0; }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.counter { display: none; padding: 10px 10px 9px; color: var(--red); }
.menu-toggle { color: var(--ink); font: 600 13px/1 var(--font-body); padding: 10px 12px; letter-spacing: .02em; }
.menu-toggle:hover, .header__nav a:hover { color: var(--red); }
.menu-open .header .btn, .menu-open .logo { visibility: visible; }
.menu-toggle [data-close] { display: none; }
.menu-open .menu-toggle { position: relative; z-index: 36; }
.menu-open .menu-toggle [data-open] { display: none; }
.menu-open .menu-toggle [data-close] { display: inline; }
@media (min-width: 900px) { .header__nav, .counter { display: flex; } .menu-toggle { display: none; } }

.menu {
  position: fixed; inset: 0; z-index: 35; background: var(--red); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; padding: 80px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .55s cubic-bezier(.76, 0, .24, 1);
}
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu__links { list-style: none; margin: 0; padding: 0; }
.menu__links a { display: flex; align-items: baseline; gap: 18px; text-decoration: none; font: 800 clamp(34px, 9vw, 72px)/1.1 var(--font-display); padding: 8px 0; border-bottom: var(--line) solid var(--paper); }
.menu__links a:hover { padding-left: 12px; }
.menu__note { margin-top: 28px; opacity: .85; }

/* ---------- het verhaal ---------- */
.story { position: relative; background: var(--ink); }
.story__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story__grain { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 160px rgba(0, 0, 0, .35); }
.story__chapters { position: absolute; inset: 0; pointer-events: none; }
.chapter {
  position: absolute; inset: 0; padding: 0 var(--gutter); display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(72px, 12vh, 140px); opacity: 0; will-change: opacity, transform; pointer-events: none;
}
.chapter--right { align-items: flex-end; text-align: right; }
.chapter--center { align-items: center; text-align: center; }
.chapter--free { justify-content: flex-start; align-items: flex-start; padding: 0; }
.chapter--free > * { position: relative; left: var(--cx, 8%); top: var(--cy, 12%); margin-left: 0; max-width: calc(92% - var(--cx, 8%)); }
.chapter__label {
  margin: 0 0 14px; display: inline-block; background: var(--paper); color: var(--ink);
  padding: 7px 10px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); width: max-content;
}
.chapter__title {
  margin: 0; font: var(--title-weight, 800) clamp(34px, 7.2vw, 96px)/.98 var(--font-display); letter-spacing: -.03em; color: var(--paper);
  text-shadow: 3px 3px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink);
  max-width: 11ch;
}
.chapter__title em { color: var(--red); -webkit-text-stroke: 3px var(--paper); paint-order: stroke fill; text-shadow: none; filter: drop-shadow(3px 3px 0 var(--ink)); }
.chapter__caption {
  margin: 18px 0 0; max-width: 34ch; text-transform: none; letter-spacing: 0; font-size: 12.5px; line-height: 1.5;
  background: var(--paper); color: var(--ink); padding: 10px 12px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.story__cue {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  color: var(--paper); display: flex; align-items: center; gap: 12px; transition: opacity .4s; mix-blend-mode: difference;
}
.story__cue-bar { width: 2px; height: 48px; background: currentColor; animation: cue 1.6s ease-in-out infinite; transform-origin: bottom; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.story__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .2); }
.story__progress i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 0 1px var(--ink); }
@media (max-width: 899px) { .story__cue { display: none; } .chapter--right, .chapter--center { align-items: flex-start; text-align: left; } .chapter--free { justify-content: flex-end; padding: 0 var(--gutter) clamp(72px, 12vh, 140px); } .chapter--free > * { left: 0; top: 0; max-width: 100%; } }

/* ---------- concept ---------- */
.concept { padding: clamp(80px, 14vh, 160px) 0; background: var(--paper); border-top: var(--line) solid var(--ink); position: relative; }
.concept::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(11, 10, 10, .06) 5px 6px); }
.concept .wrap { position: relative; display: grid; grid-template-columns: 1fr; gap: 20px; }
.eyebrow { margin: 0; color: var(--red); }
.concept__title { margin: 0; font: 800 clamp(34px, 5.6vw, 76px)/1.02 var(--font-display); letter-spacing: -.03em; max-width: 16ch; }
.concept__text { margin: 0; font-size: clamp(17px, 1.4vw, 21px); max-width: 56ch; }
.concept__items { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: var(--line) solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
.concept__items li { padding: 26px 24px 28px; border-right: var(--line) solid var(--ink); position: relative; transition: background .2s, color .2s; }
.concept__items li:last-child { border-right: 0; }
.concept__items li:hover { background: var(--red); color: var(--paper); }
.concept__items li:hover .concept__num { color: var(--paper); }
.concept__num { color: var(--red); display: block; margin-bottom: 30px; }
.concept__items h3 { margin: 0 0 8px; font: 700 22px/1.15 var(--font-display); letter-spacing: -.02em; }
.concept__items p { margin: 0; font-size: 15px; }
@media (max-width: 760px) { .concept__items { grid-template-columns: 1fr; } .concept__items li { border-right: 0; border-bottom: var(--line) solid var(--ink); } .concept__items li:last-child { border-bottom: 0; } }

/* ---------- marquee ---------- */
.marquee { background: var(--red); color: var(--paper); border-block: var(--line) solid var(--ink); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track div { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 800 clamp(28px, 5vw, 60px)/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.marquee__track i { font-style: normal; font-size: .4em; color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- cta ---------- */
.cta { background: var(--ink); color: var(--paper); padding: clamp(90px, 16vh, 180px) 0; text-align: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; left: 50%; top: 50%; width: min(90vw, 760px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(227, 20, 28, .55), rgba(227, 20, 28, 0) 70%); pointer-events: none; }
.cta .wrap { position: relative; display: grid; justify-items: center; gap: 22px; }
.cta__title { margin: 0; font: 800 clamp(38px, 7vw, 96px)/.98 var(--font-display); letter-spacing: -.035em; }
.cta__text { margin: 0; opacity: .8; }
.cta .btn { background: var(--paper); box-shadow: 6px 6px 0 var(--red); }
.cta .btn:hover { background: var(--red); box-shadow: 8px 8px 0 var(--paper); }

/* ---------- footer ---------- */
.footer { background: var(--paper); border-top: var(--line) solid var(--ink); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px 24px; }
.footer__col .eyebrow { margin-bottom: 12px; }
.footer address { font-style: normal; }
.footer__col p { margin: 0 0 10px; display: grid; }
.footer__col a { display: block; text-decoration: none; border-bottom: 2px solid transparent; width: max-content; }
.footer__col a:hover { border-color: var(--red); }
.footer__bottom { margin-top: 56px; padding-top: 18px; border-top: 2px solid var(--ink); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bottom a { text-decoration: none; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; }
.cursor__dot { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); transition: transform .2s, background .2s; }
.cursor.is-hover .cursor__dot { transform: scale(2.4); background: var(--paper); }

/* ---------- preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 80; background: var(--paper); display: grid; place-items: center; align-content: center; gap: 18px; transition: clip-path .7s cubic-bezier(.76, 0, .24, 1); }
body:not(.is-loading) .preloader { clip-path: inset(0 0 100% 0); }
.preloader__greeting { font: 500 clamp(40px, 7vw, 92px)/1 var(--font-display); letter-spacing: -.03em; }
.preloader__count { position: absolute; left: var(--gutter); bottom: 28px; font-size: 14px; color: var(--red); }
.preloader__label { position: absolute; right: var(--gutter); bottom: 28px; font-size: 14px; }
body.is-loading { overflow: hidden; }

/* ===================== v3: soepeler, meer stijl, interactief ===================== */
/* titels per regel in een masker */
.chapter { opacity: 1; visibility: hidden; transition: none; }
.chapter__title .line { display: block; overflow: hidden; padding: 0 .12em .14em 0; margin-bottom: -.1em; }
.chapter__title .line__in { display: inline-block; transform: translate3d(0, 110%, 0); transform-origin: 0 100%; }
.chapter__label, .chapter__caption { will-change: clip-path; }

/* stripkader: dikke inktrand met een dunne papierlijn erbinnen */
.story__frame { position: absolute; inset: 10px; pointer-events: none; border: 5px solid var(--ink); box-shadow: inset 0 0 0 2px var(--paper), 0 0 0 10px var(--ink); z-index: 2; }
/* halftoonrand: rasterpunten die naar de hoeken toe dichter worden */
.story__halftone { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .55;
  background: radial-gradient(circle, var(--ink) 1.3px, transparent 1.6px) 0 0 / 9px 9px;
  -webkit-mask: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, #000 100%);
          mask: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, #000 100%); }
.story__chapters { z-index: 3; }
.story__cue, .story__progress, .story__rail, .story__hint { z-index: 4; }
.story__progress { left: 10px; right: 10px; bottom: 10px; }

/* hoofdstukbalk rechts */
.story__rail { position: absolute; right: calc(var(--gutter) - 8px); top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.story__rail button { all: unset; cursor: pointer; display: grid; place-items: center; width: 38px; height: 26px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); transition: transform .25s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, width .25s; }
.story__rail button span { font-size: 10px; }
.story__rail button:hover { transform: translateX(-4px); }
.story__rail button.is-active { background: var(--red); color: var(--paper); width: 50px; transform: translateX(-12px); }
.story__rail button:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.story__hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); margin: 0; padding: 6px 10px; background: var(--ink); color: var(--paper); font-size: 10px; opacity: 0; transition: opacity .5s; white-space: nowrap; }
body.in-story .story__hint { opacity: .9; }
.story__sticky { cursor: crosshair; }
body.has-cursor .story__sticky { cursor: none; }
@media (max-width: 899px) { .story__rail { right: 14px; gap: 6px; } .story__rail button { width: 30px; height: 22px; } .story__rail button.is-active { width: 38px; transform: translateX(-6px); } .story__frame { inset: 6px; border-width: 4px; } .story__hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .chapter__title .line__in { transform: none !important; } }
/* ruimte voor de hoofdstukbalk zodat rechts uitgelijnde tekst er niet onder valt */
@media (min-width: 900px) { .chapter--right { padding-right: calc(var(--gutter) + 72px); } }
