/* verhaal: zwarte secties die over de sticky hero schuiven. Elke component (kop, tekst, fotostrook,
   archiefspeler) staat in een eigen section.verhaal-sectie, zodat de klant ze in Etch vrij kan schuiven.
   Kleuren en maten naar Codrops demo 2 (kop 12vw met regelhoogte .8). Kopfont: League Gothic. */
.verhaal-sectie { position: relative; z-index: 2; margin: 0; padding: 0; background: #000; color: var(--creme); }
.held + .verhaal-sectie { padding-top: 14vh; box-shadow: 0 -40px 80px rgba(0, 0, 0, .55); }
.verhaal__blok { display: flex; flex-direction: column; align-items: center; padding: 0 var(--rand) 7vh; }
/* een kop opent een nieuw hoofdstuk: daarvoor wat meer lucht, daarna volgt de alinea er dicht op */
.verhaal-sectie + .verhaal-sectie .verhaal__blok--kop { padding-top: 10vh; }
.verhaal-sectie:has(+ .voet) .verhaal__blok { padding-bottom: 12vh; }
.verhaal__blok--kop { padding-bottom: clamp(20px, 2.2vw, 36px); }

.verhaal__boven { margin: 0 0 2vw; line-height: 1.2; max-width: none; color: var(--creme); font-size: clamp(16px, 1.6vw, 24px); font-weight: 500; letter-spacing: -.02em; text-transform: uppercase; opacity: .75; }
.verhaal__kop { margin: 0; display: grid; gap: 2rem; font-family: var(--gothic); font-size: 12vw; line-height: .8; font-weight: 400; letter-spacing: 0; text-transform: uppercase; text-align: center; color: var(--creme); }
[data-maat="lang"] .verhaal__kop { font-size: 8vw; gap: 1.2rem; }
[data-maat="klein"] .verhaal__kop { font-size: clamp(44px, 5vw, 88px); gap: .6rem; }
.verhaal__kop .woord { display: inline-block; white-space: nowrap; }
.verhaal__kop .letter { display: inline-block; position: relative; }

.verhaal__tekst { width: 100%; max-width: 1100px; font-size: clamp(20px, 2.1vw, 32px); line-height: 1.4; font-weight: 500; letter-spacing: -.015em; }
.verhaal__tekst p { margin: 0; max-width: none; font-size: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; }
.verhaal__tekst p + p { margin-top: 1em; }
/* zonder JS (en in de Etch-builder) blijven lege regels zichtbaar als alinea-wit; js/verhaal.js maakt er <p>'s van */
.verhaal__alineas { white-space: pre-line; }
.verhaal__tekst .woord { display: inline-block; }
.verhaal__tekst .verhaal__meer { text-align: center; margin: 1.6em 0 0; max-width: none; font-size: inherit; line-height: inherit; color: inherit; }
.verhaal__meer span:not(:empty)::after { content: " "; }
.verhaal__meer a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .2s; }
.verhaal__meer a:hover { color: var(--rood); }

.verhaal__credits { margin-bottom: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1.2em 3em; margin-top: 1.6em; }
.verhaal__credits > div { margin: 0; }
.verhaal__credits dt { font-size: 13px; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.verhaal__credits dd { margin: .25em 0 0; line-height: 1.4; color: inherit; font-size: .8em; font-weight: 700; letter-spacing: -.03em; }

@media (max-width: 810px) {
  .verhaal__blok { padding-bottom: 6vh; }
  .verhaal__blok--kop:not(:first-child) { padding-top: 7vh; }
  .verhaal__blok--kop { padding-bottom: 20px; }
    .verhaal__kop { font-size: 17vw; gap: 1rem; }
  [data-maat="lang"] .verhaal__kop { font-size: 11vw; }
  [data-maat="klein"] .verhaal__kop { font-size: 11vw; }
  .verhaal__credits { grid-template-columns: repeat(2, auto); }
}

/* de hero blijft staan terwijl het verhaal eroverheen schuift; hij zakt licht weg en wordt donkerder */
.held { position: sticky; top: 0; }
.held__boven, .held__onder { transform: translate3d(0, calc(var(--bedekt, 0) * 8vh), 0) scale(calc(1 - var(--bedekt, 0) * .04)); }
.held::after { content: ""; position: absolute; inset: 0; z-index: 6; background: #000; opacity: calc(var(--bedekt, 0) * .7); pointer-events: none; }

/* ruis zoals in de Solvo-template: bewegende zwart-wit-GIF (3 beelden) als tegel van 480px op 5% dekking over het verhaal
   en de voet, zodat het zwart leeft. Ligt boven de inhoud maar vangt geen klikken. */
.verhaal-sectie::after, .voet::after, .tekstpagina::after { content: ""; position: absolute; inset: 0; z-index: 10; background: url(../img/ruis.gif) center / 480px auto repeat; opacity: .05; pointer-events: none; }

/* weefsel (Unwoven): schermbreed blok tussen de tekst; horizontaal slepen, verticaal blijft de pagina scrollen */
.weefsel__bron { display: none; }
.weefsel { position: relative; width: 100%; height: min(78vh, 640px); margin: 4vh 0 6vh; cursor: grab; touch-action: pan-y; user-select: none; }
.weefsel.is-dragging { cursor: grabbing; }
.weefsel canvas { display: block; width: 100%; height: 100%; }
.weefsel .marquee { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden; }
.weefsel .marquee__track { display: flex; gap: 32px; align-items: center; animation: weefsel-marquee 40s linear infinite; will-change: transform; }
.weefsel .marquee__track img { width: 420px; height: 320px; object-fit: cover; border-radius: 10px; flex: none; }
@keyframes weefsel-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 810px) { .weefsel { height: 60vh; } .weefsel .marquee__track img { width: 280px; height: 215px; } }
@media (prefers-reduced-motion: reduce) { .weefsel .marquee__track { animation: none; } }

/* archiefspeler (js/politie.js): donkere kaart met ronde play-knop, typemachine-label, golfvorm die meekleurt met de voortgang */
.archief { box-sizing: border-box; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; width: 100%; max-width: 1100px; margin: 0; padding: 20px 24px; border: 1px solid rgba(221, 196, 164, .22); border-radius: 14px; background: rgba(221, 196, 164, .04); transition: border-color .3s; }
.archief.is-aan { border-color: rgba(249, 65, 55, .6); }
.archief__knop { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(221, 196, 164, .5); background: none; color: #ddc4a4; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s; }
.archief__knop:hover { background: #ddc4a4; color: #000; transform: scale(1.05); }
.archief__knop:focus-visible { outline: 1px solid #ddc4a4; outline-offset: 3px; }
/* play/pauze in CSS (inline SVG wordt door Etch gestript) */
.archief__speel { width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent currentColor; }
.archief__pauze { width: 16px; height: 18px; border-inline: 5px solid currentColor; }
.archief__pauze, .archief.is-aan .archief__speel { display: none; }
.archief.is-aan .archief__pauze { display: block; }
.archief.is-aan .archief__knop { border-color: var(--rood); color: var(--rood); }
.archief.is-aan .archief__knop:hover { background: var(--rood); color: #000; }
.archief__midden { min-width: 0; }
.archief__tekst { padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.archief__label { font-family: "Courier New", Courier, monospace; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--rood); }
.archief__titel { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.archief__golf { display: flex; align-items: center; gap: 2px; height: 44px; cursor: pointer; }
.archief__golf span { flex: 1 1 0; min-width: 1px; height: calc(var(--h) * 100%); border-radius: 2px; background: rgba(221, 196, 164, .28); transition: background-color .2s; }
.archief__golf span.is-gespeeld { background: #ddc4a4; }
.archief.is-aan .archief__golf span.is-gespeeld { background: var(--rood); }
.archief__tijd { font-family: "Courier New", Courier, monospace; font-size: 13px; letter-spacing: .04em; opacity: .75; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .archief { grid-template-columns: auto 1fr; gap: 14px 16px; padding: 16px; }
  .archief__knop { width: 48px; height: 48px; }
  .archief__tijd { grid-column: 2; justify-self: start; margin-top: -6px; }
  .archief__golf { height: 34px; gap: 1px; }
  .archief__titel { font-size: 15px; }
}

/* tekstpagina (privacy, cookies, juridisch) */
.tekstpagina { position: relative; min-height: 100vh; margin: 0; padding: 14vh var(--rand) 10vh; background: #000; color: var(--creme); }
.tekstpagina__binnen { max-width: 820px; margin: 0 auto; }
.tekstpagina__terug { display: inline-block; margin-bottom: 4vh; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; color: var(--creme); text-decoration: none; opacity: .75; }
.tekstpagina__terug:hover { opacity: 1; color: var(--rood); }
.tekstpagina__kop { margin: 0 0 4vh; font-family: var(--gothic); font-weight: 400; font-size: clamp(56px, 9vw, 140px); line-height: .85; text-transform: uppercase; color: var(--creme); }
.tekstpagina__tekst { white-space: pre-line; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; }

/* tekstpagina met blokken uit wp-admin: dezelfde kop/tekst-secties als de homepage */
.tekstpagina-blokken { position: relative; background: #000; }
.tekstpagina-blokken > .tekstpagina__terug { position: absolute; top: 6vh; left: var(--rand); z-index: 12; margin: 0; }
.tekstpagina-blokken > .verhaal-sectie:first-of-type { padding-top: 16vh; }
.tekstpagina-blokken > .verhaal-sectie:last-of-type .verhaal__blok { padding-bottom: 12vh; }
