/* mijnboom.com: visuele laag 2
   Live-label, woord-animatie, korrel, tegels, scrollverhaal, fotoband,
   leesbalk, pijltjes en watermerk. Laadt na film.css. */

/* ---------- Leesbalk ---------- */
.leesbalk { position: fixed; left: 0; top: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--hout-licht); z-index: 60; pointer-events: none; }

/* ---------- Korrel over de header ---------- */
.filmhero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; 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='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");
}
.filmhero__inhoud { position: relative; z-index: 1; }
.filmhero__bron, .scrollhint { z-index: 1; }

/* ---------- Live-label ---------- */
.live {
  display: flex; width: fit-content; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 14px 7px 12px;
  border: 1px solid rgba(244,245,242,.28); border-radius: 99px; font-size: .85rem; color: rgba(244,245,242,.92);
  background: rgba(20,28,24,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-decoration: none;
}
.live:hover { border-color: rgba(244,245,242,.6); }
.live__punt { width: 8px; height: 8px; border-radius: 50%; background: #9DBF8E; position: relative; flex: none; }
.live__punt::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #9DBF8E; animation: pols 2.2s ease-out infinite; }
@keyframes pols { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- Titel woord per woord ---------- */
.film h1[data-woorden] .woord { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.film h1[data-woorden] .woord > span { display: inline-block; animation: woordOp 1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes woordOp { from { transform: translateY(105%); } to { transform: none; } }

/* ---------- Pijltjes op knoppen ---------- */
.pijltje { display: inline-block; transition: transform .3s var(--ease); }
.knop:hover .pijltje { transform: translateX(4px); }

/* ---------- Tegels (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.tegel {
  position: relative; border-radius: 14px; padding: 26px; background: var(--papier); overflow: hidden; margin: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 1px 0 rgba(20,28,24,.04), 0 18px 40px -30px rgba(20,28,24,.5);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tegel:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(20,28,24,.55); }
.tegel h3 { font-size: 1.15rem; margin-bottom: .3em; }
.tegel p { font-size: .95rem; margin: 0; color: var(--grijs-tekst); }
.tegel--video { grid-column: span 2; grid-row: span 2; padding: 0; background: var(--nacht); }
.tegel--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tegel--video:hover video { transform: scale(1.04); }
.tegel--video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20,28,24,.78)); }
.tegel--video figcaption { position: relative; z-index: 1; padding: 26px; color: var(--wit); }
.tegel--video figcaption strong { display: block; font-size: 1.5rem; letter-spacing: -0.02em; }
.tegel--video figcaption span { color: rgba(244,245,242,.82); font-size: .92rem; }
.tegel__groot { white-space: nowrap; font-size: clamp(1.9rem, 2.7vw, 2.7rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-bottom: auto; padding-bottom: 24px; color: var(--groen); font-variant-numeric: tabular-nums; }
.tegel--grafiek .minigrafiek { width: 100%; height: auto; margin-bottom: auto; padding-bottom: 18px; overflow: visible; }
.minigrafiek__as { stroke: var(--lijn); stroke-width: 1; }
.minigrafiek__lijn { fill: none; stroke: var(--groen); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 0; }
.minigrafiek circle { fill: var(--groen); stroke: var(--papier); stroke-width: 2; }
.film .bento:not(.zichtbaar) .minigrafiek__lijn { stroke-dashoffset: 320; }
.film .bento.zichtbaar .minigrafiek__lijn { transition: stroke-dashoffset 2s var(--ease) .5s; }
.tegel--plek { background: linear-gradient(180deg, rgba(20,28,24,.05), rgba(20,28,24,.75)), url("/img/foto/veld.jpg") center / cover; color: var(--wit); }
.tegel--plek p { color: rgba(244,245,242,.86); }
.speld { position: absolute; left: 50%; top: 26%; width: 16px; height: 16px; border-radius: 50%; background: var(--wit); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgba(244,245,242,.25); }
.speld::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--wit); animation: pols 2.4s ease-out infinite; }
.tegel--donker { background: var(--groen); color: var(--wit); }
.tegel--donker p { color: rgba(244,245,242,.78); }
.tegel--donker svg { width: 40px; height: 40px; margin-bottom: auto; stroke: var(--hout-licht); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tegel--video { grid-column: span 2; grid-row: auto; min-height: 340px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(200px, auto); }
  .tegel--video { grid-column: auto; }
}

/* ---------- Scrollverhaal ---------- */
.verhaal { padding: var(--sectie) 0; background: var(--papier); }
.verhaal__raster { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.verhaal__beeld { position: sticky; top: 96px; height: calc(100svh - 140px); min-height: 420px; }
.verhaal__kader { position: relative; height: 100%; border-radius: 16px; overflow: hidden; background: var(--nacht); box-shadow: var(--schaduw); }
.verhaal__laag { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.verhaal__laag.actief { opacity: 1; transform: none; }
.verhaal__laag img, .verhaal__laag video { width: 100%; height: 100%; object-fit: cover; }
.verhaal__teller { position: absolute; left: 20px; top: 18px; color: rgba(244,245,242,.85); font-size: .9rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.verhaal__teller span { font-size: 1.6rem; font-weight: 600; color: var(--wit); }
.verhaal__bron { position: absolute; right: 16px; bottom: 12px; margin: 0; font-size: .75rem; color: rgba(244,245,242,.78); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.meetkaart {
  position: absolute; left: 24px; bottom: 24px; display: grid; grid-template-columns: auto auto; gap: 2px 14px; align-items: baseline;
  background: rgba(251,251,249,.94); color: var(--groen); padding: 16px 18px; border-radius: 12px; box-shadow: var(--schaduw);
  font-variant-numeric: tabular-nums;
}
.meetkaart span { grid-column: 1 / -1; font-size: .8rem; color: var(--grijs-tekst); margin-bottom: 6px; }
.meetkaart strong { font-size: 1.4rem; letter-spacing: -0.02em; }
.meetkaart small { color: var(--grijs-tekst); font-size: .8rem; }
.verhaal__stap { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .6s var(--ease); border-left: 1px solid var(--lijn); padding-left: 28px; position: relative; }
.verhaal__stap::before { content: ""; position: absolute; left: -1px; top: 50%; width: 1px; height: 0; background: var(--groen); transform: translateY(-50%); transition: height .8s var(--ease); }
.verhaal__stap.actief { opacity: 1; }
.verhaal__stap.actief::before { height: 60%; }
.verhaal__stap .nr { color: var(--hout); font-size: .85rem; font-weight: 500; margin-bottom: 10px; }
.verhaal__stap h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }
.verhaal__stap p { font-size: 1.05rem; max-width: 30em; }
.verhaal__stappen .kop-sectie { margin-bottom: 0; min-height: 30vh; display: flex; flex-direction: column; justify-content: flex-end; }
@media (max-width: 860px) {
  .verhaal__raster { grid-template-columns: 1fr; gap: 0; }
  .verhaal__beeld { top: 72px; height: 44svh; min-height: 260px; z-index: 2; }
  .verhaal__stappen .kop-sectie { min-height: 0; padding-top: 32px; }
  .verhaal__stap { min-height: 72svh; padding-left: 20px; justify-content: flex-end; padding-bottom: 6svh; }
  .meetkaart { left: 14px; bottom: 14px; padding: 12px 14px; }
  .meetkaart strong { font-size: 1.1rem; }
}
/* Zonder JavaScript: alle stappen gewoon leesbaar */
html:not(.film) .verhaal__stap { opacity: 1; }

/* ---------- Fotoband ---------- */
.lint-sectie { padding: var(--sectie) 0; background: var(--wit); overflow: hidden; }
.lint { position: relative; margin-top: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lint__spoor { display: flex; gap: 18px; width: max-content; animation: lint 70s linear infinite; }
.lint:hover .lint__spoor { animation-play-state: paused; }
.lint figure { margin: 0; width: clamp(220px, 26vw, 360px); flex: none; }
.lint img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; transition: transform .8s var(--ease), filter .8s; filter: saturate(.9); }
.lint figure:hover img { transform: translateY(-6px); filter: saturate(1.05); }
.lint figcaption { margin-top: 10px; font-size: .88rem; color: var(--grijs-tekst); }
.lint figure:nth-child(even) img { aspect-ratio: 4 / 4.4; margin-top: 36px; }
@keyframes lint { to { transform: translateX(-50%); } }

/* ---------- Watermerk in de voet ---------- */
.voet__woordmerk {
  font-size: clamp(4rem, 15vw, 13.5rem); font-weight: 700; letter-spacing: -0.065em; line-height: .78; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(244,245,242,.16); margin: 56px 0 -12px; user-select: none; overflow: hidden;
}

/* ---------- Minder beweging ---------- */
@media (prefers-reduced-motion: reduce) {
  .film h1[data-woorden] .woord > span, .live__punt::after, .speld::after { animation: none; }
  .lint__spoor { animation: none; }
  .lint { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .verhaal__laag, .verhaal__stap, .tegel { transition: none; }
  .leesbalk { display: none; }
}
