@font-face { font-family: Fraunces; src: url("assets/fraunces.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Fraunces; src: url("assets/fraunces-italic.woff2") format("woff2"); font-style: italic; font-weight: 300 700; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/manrope.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --paper: #fbf6ea; --ink: #2b2a22; --muted: #6b6759; --clay: #b4553a; --line: #e6dcc6;
  --cream: #fbf4e4; --sun: #ffd9a0;
  --serif: Fraunces, Georgia, serif; --sans: Manrope, system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #1d241f; color: var(--cream); font: 400 1.0625rem/1.6 var(--sans); }
a { color: inherit; }
em { font-style: italic; color: var(--sun); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; border-radius: 4px; }
h1:focus, h2:focus { outline: none; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 12px; }
.skip:focus { top: 16px; }
.legacy-anchor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Zonder script: gewoon lezen */
html:not(.interactive) .stage, html:not(.interactive) .dock, html:not(.interactive) [data-controls]:not(a) { display: none; }
html:not(.interactive) .masthead { position: static; }
html:not(.interactive) .texts { position: static; width: auto; max-width: 40rem; margin: 0 auto; padding: 0 var(--gutter) 64px; }
html:not(.interactive) .step { position: static; padding: 32px 0; border-top: 1px solid #fff3; }
html:not(.interactive) .start { display: none; }

/* Het landschap: één vlak dat met je meeloopt */
.interactive body { overflow: hidden; height: 100svh; overscroll-behavior: none; }
.interactive .stage, .interactive .texts, .interactive .dock { touch-action: none; }
.stage { position: fixed; inset: 0; overflow: hidden; background: #090c0a; }
.scenes { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
.scene { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.cam { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.cam img, .cam video { display: block; width: 100%; height: 100%; }
.cam .lake-runner {
  position: absolute; left: 58.5%; bottom: 18.5%; width: 10.6%; height: auto;
  transform: translateX(-50%);
}
.scene-vid { position: absolute; inset: 0; object-fit: cover; opacity: 0; }
.scene-vid.ready { opacity: 1; }
.scene-kijken .scene-vid {
  --grass: radial-gradient(ellipse 15% 7% at 89% 70%, #000 29%, transparent 100%),
           radial-gradient(ellipse 9% 7% at 96% 78%, #000 24%, transparent 100%);
  -webkit-mask-image: var(--grass);
  mask-image: var(--grass);
}
.scene-kijken .scene-vid.ready { opacity: .65; }
.wash { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(10 14 11 / .52) 0, rgb(10 14 11 / .18) 10%, transparent 22%), linear-gradient(0deg, rgb(16 14 10 / .36), transparent 34%); }

/* Leesbaarheid: de tekst staat direct op het beeld, met een donkere zachte rand */
.scrim { position: absolute; inset: 0; pointer-events: none; transition: opacity 1s;
  background: linear-gradient(90deg, rgb(10 14 11 / .9) 0, rgb(10 14 11 / .78) 30%, rgb(10 14 11 / .44) 50%, rgb(10 14 11 / .1) 66%, transparent 78%), linear-gradient(0deg, rgb(10 14 11 / .68), transparent 30%); }

/* De slotscène kadert één landschap op twee manieren. */
.scene-blik { overflow: hidden; background: #141b17; }
.scene-blik .cam { transform: var(--narrow-frame); }
.scene-blik.is-wide .cam { transform: var(--wide-frame); }
.scene-blik::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  transform-origin: var(--finale-focus-x, 60%) var(--finale-focus-y, 44%);
  background: radial-gradient(ellipse 14.75vmin 22vmin at var(--finale-focus-x, 60%) var(--finale-focus-y, 44%),
    transparent 37%, rgb(9 13 12 / .29) 55%, rgb(9 13 12 / .91) 82%, #090d0c 96%);
  transform: scale(1);
}
.scene-blik.is-wide::before { transform: scale(4.4); opacity: 0; }
.finale-world { position: relative; width: 100%; height: 100%; transform-origin: 63.6% 75.4%; }
.finale-world picture { display: block; width: 100%; height: 100%; }
.finale-star {
  position: absolute; top: 26%; left: 85%; width: 2.1%; height: auto; color: #fff0c6;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 4px #ffe7a7) drop-shadow(0 1px 2px #695239);
}
.stage.finale-active .scrim {
  background: radial-gradient(ellipse 79% 65% at 2% 100%, rgb(10 14 11 / .94) 0, rgb(10 14 11 / .75) 50%, transparent 100%),
              linear-gradient(0deg, rgb(10 14 11 / .86), transparent 36%);
}
@media (max-aspect-ratio: 92/100) {
  .scene-blik::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent calc(var(--finale-image-height) - min(23vh, 165px)), #141b17 var(--finale-image-height));
  }
  .stage.finale-active .scrim {
    background: linear-gradient(0deg, rgb(10 14 11 / .8), rgb(10 14 11 / .36) 29%, transparent 57%);
  }
}

/* Zachte kleurtoon per stemming */
.cam img { transition: filter 1.2s ease; }
.cam video { transition: opacity .7s ease, filter 1.2s ease; }
.golden img, .golden video { filter: saturate(1.08) brightness(1.03); }

/* Kop */
.masthead { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 18px var(--gutter);
  color: var(--cream); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 12px #000a; transition: opacity .9s; }
.masthead a { text-decoration: none; }
.masthead nav { margin-left: auto; display: flex; gap: clamp(14px, 3vw, 30px); }
.masthead nav a { padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .25s; }
.masthead nav a:hover { border-color: var(--cream); }
.brand-route { opacity: .75; }

/* De tekst: groot, direct op het beeld */
.texts {
  --heading-width: calc(100vw - 2 * var(--gutter));
  position: fixed; z-index: 10; left: var(--gutter); bottom: clamp(130px, 18vh, 182px);
  width: min(41rem, var(--heading-width)); height: 1px;
}
.step { position: absolute; left: 0; bottom: 0; width: 100%; text-shadow: 0 1px 3px #0006, 0 2px 26px #000a; will-change: transform, opacity; }
.interactive .step { visibility: hidden; opacity: 0; }
.eyebrow { margin: 0 0 .9rem; font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgb(251 244 228 / .75); }
.eyebrow b { color: var(--sun); font-size: 1.02rem; letter-spacing: .08em; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 144; letter-spacing: -.025em; line-height: 1.03; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.8vw, 4.9rem); }
h2 { --title-size: clamp(2.4rem, 5.2vw, 4.6rem); font-size: var(--title-size); }
.interactive .step :is(h1, h2, .finale-last) {
  width: max-content; max-width: var(--heading-width); text-wrap: wrap;
}
/* De langste koppen schalen met hun benodigde breedte in Fraunces. */
.interactive .step :is(h2, .finale-last) {
  font-size: min(var(--title-size), max(1.15rem, calc(var(--heading-width) / var(--title-em, 1))));
}
#t4 { --title-em: 10.4; }
.interactive .step :is(#t5, #t6) { max-width: 100%; text-wrap: balance; }
:is(#t5, #t6) > em { display: block; }
.body { margin: 1.3rem 0 0; max-width: 36rem; font-size: clamp(1.06rem, 1.35vw, 1.2rem); line-height: 1.65; color: rgb(251 244 228 / .94); }
#begin .body { font-size: clamp(1.2rem, 1.8vw, 1.45rem); color: rgb(251 244 228 / .92); }
.hint { margin: 1.25rem 0 0; font-size: .9rem; letter-spacing: .02em; color: rgb(251 244 228 / .76); }
.start-actions { margin-top: 1.6rem; }
.start { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--cream); color: #20241d; font: 700 .95rem/1 var(--sans); text-decoration: none; text-shadow: none; transition: transform .3s; }
.start:hover { transform: translateX(4px); }
.step-next {
  display: inline-flex; align-items: center; gap: .45em; width: fit-content; min-height: 44px;
  margin-top: .4rem; padding-right: .55rem;
  color: var(--sun); font-size: .94rem; font-weight: 750;
  text-decoration: none;
}
.step-next span:first-child { text-decoration: underline; text-underline-offset: .28em; }
.step-next:hover { color: var(--cream); }
.stil-hint { display: grid; min-height: 1.6em; font: italic 450 clamp(1.15rem, 2.7vw, 1.32rem)/1.3 var(--serif); color: var(--sun); }
.stil-hint span { grid-area: 1 / 1; }
.stil-hint .een { color: rgb(251 244 228 / .84); }
.stil-hint .twee { opacity: 0; color: var(--sun); }
html:not(.interactive) .stil-hint .twee { opacity: 1; }

/* Alleen waar echt een keuze is */
.choice-label { margin: 1.25rem 0 0; font-size: .85rem; letter-spacing: .03em; color: rgb(251 244 228 / .78); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .75rem; }
.choices button { min-height: 44px; padding: 0 20px; border: 1.5px solid rgb(251 244 228 / .8); border-radius: 999px; background: rgb(10 14 11 / .25); color: var(--cream); font: 600 .92rem/1 var(--sans); cursor: pointer; text-shadow: none; transition: background-color .3s, color .3s, border-color .3s; }
.choices button:hover { border-color: var(--cream); background: rgb(251 244 228 / .18); }
.choices button[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: #20241d; }
/* Na het openen krijgt het landschap voorrang op de tekst. */
.finale:focus { outline: none; }
.interactive .finale-copy { display: grid; }
.interactive .finale-intro, .interactive .finale-reveal { grid-area: 1 / 1; align-self: end; min-width: 0; }
.interactive .finale :is(.finale-intro, .finale-reveal, .finale-actions) {
  opacity: 0; visibility: hidden;
}
.interactive .finale[data-phase="narrow"] .finale-intro,
.interactive .finale:is([data-phase="quiet"], [data-phase="complete"]) .finale-reveal,
.interactive .finale[data-phase="complete"] .finale-actions { opacity: 1; visibility: visible; }
.finale-first, .finale-last { margin: 0; font-family: var(--serif); font-weight: 400; }
.finale-first { margin-top: .45em; font-size: clamp(1.18rem, 2.5vw, 1.7rem); line-height: 1.2; }
.finale-last {
  --title-size: clamp(2.35rem, 5.4vw, 4.6rem); --title-em: 10.75;
  max-width: 13.5ch; margin-top: .3em; color: var(--sun);
  font-size: var(--title-size); font-style: italic; line-height: 1;
  font-variation-settings: "opsz" 144; letter-spacing: -.024em; text-wrap: balance;
}
.finale-actions { display: flex; flex-wrap: wrap; column-gap: 1.15rem; margin-top: .7rem; }
.finale-actions :is(a, button) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--cream); font: 700 .88rem/1.3 var(--sans);
  text-decoration: underline; text-decoration-color: #fbf4e480; text-underline-offset: .26em; cursor: pointer;
}
.finale-actions :is(a, button):hover { color: var(--sun); text-decoration-color: currentColor; }
.finale-status {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.interactive body:has(.finale:is([data-phase="opening"], [data-phase="landscape"], [data-phase="quiet"], [data-phase="complete"]))
  :is(.masthead, .dock):not(:focus-within) { opacity: 0; visibility: hidden; }
@media (max-aspect-ratio: 92/100) {
  .interactive .finale { bottom: max(0px, calc(100svh - min(78svh, 117vw) - 270px)); }
}

/* De route onderaan: puur hoogteprofiel met één gouden lichtpunt */
.dock { position: fixed; z-index: 12; left: var(--gutter); right: var(--gutter); bottom: clamp(18px, 3.4vh, 34px); display: flex; align-items: center; gap: 14px; }
.route { position: relative; flex: 1; height: 64px; cursor: grab; touch-action: none; }
.route:active { cursor: grabbing; }
.route svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route .r-area { fill: url(#route-fade); stroke: none; }
.route .r-base { stroke: rgb(251 244 228 / .26); stroke-width: 1.6; filter: drop-shadow(0 1px 4px #000a); }
.route .r-done { stroke: var(--sun); stroke-width: 2.6; filter: drop-shadow(0 0 7px rgb(255 217 160 / .55)); }
.route .r-notch { stroke: rgb(251 244 228 / .28); stroke-width: 1.2; transition: stroke .3s; }
.route .r-notch.done { stroke: rgb(255 217 160 / .65); }
.route .r-glow { fill: rgb(255 217 160 / .24); }
.route .r-dot { fill: var(--sun); stroke: #141a16; stroke-width: 2; filter: drop-shadow(0 0 8px rgb(255 217 160 / .75)); }
.route .r-pill {
  position: absolute; top: 0; left: 0; pointer-events: none;
  font: 700 .72rem/1 var(--sans); letter-spacing: .08em; color: var(--sun);
  white-space: nowrap; text-shadow: 0 1px 10px #000, 0 0 4px #000;
  will-change: transform;
}
.route .pt {
  position: absolute; top: 0; bottom: 0; width: 32px; transform: translateX(-50%);
  padding: 0; border: 0; background: none; cursor: pointer;
}
.route .pt::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1.5px; height: 6px;
  transform: translateX(-50%); background: transparent; transition: height .25s, background-color .25s;
}
.route .pt:hover::after { height: 12px; background: rgb(255 217 160 / .85); }
.round {
  flex: none; width: 42px; height: 42px; touch-action: manipulation;
  border: 1px solid rgb(251 244 228 / .34); border-radius: 50%;
  background: rgb(10 14 11 / .28); color: var(--cream);
  font: 400 1.45rem/1 var(--sans); padding-bottom: 2px;
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .25s, border-color .25s, opacity .25s;
}
.round:hover:not(:disabled) { background: rgb(251 244 228 / .16); border-color: rgb(251 244 228 / .72); }
.round:disabled { opacity: .22; cursor: default; }

dialog { width: min(92vw, 36rem); max-height: 88vh; padding: 36px clamp(22px, 5vw, 44px) 28px; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px #0008; }
dialog::backdrop { background: #10140eb0; backdrop-filter: blur(6px); }
dialog h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 1rem; }
.dialog-close { position: absolute; right: 14px; top: 10px; width: 48px; height: 48px; border: 0; background: none; color: inherit; font-size: 2rem; cursor: pointer; }
.moment-links { list-style: none; margin: 0; padding: 0; counter-reset: punt; }
.moment-links li { border-top: 1px solid var(--line); }
.moment-links li.num-link { counter-increment: punt; }
.moment-links a { display: flex; align-items: baseline; gap: 16px; padding: 11px 0; font: 450 1.25rem/1.2 var(--serif); text-decoration: none; transition: color .2s, padding-left .2s; }
.moment-links li.meta-link a::before { content: "○"; font: 700 .72rem/1 var(--sans); color: var(--muted); min-width: 1.5em; }
.moment-links li.num-link a::before { content: counter(punt, decimal-leading-zero); font: 700 .75rem/1 var(--sans); letter-spacing: .1em; color: var(--clay); min-width: 1.5em; }
.moment-links li.star-link a::before { content: "✦"; color: var(--clay); font-size: .8rem; min-width: 1.5em; }
.moment-links a:hover, .moment-links a[aria-current] { color: var(--clay); padding-left: 6px; }

/* De spiegel: vanuit een situatie van vandaag de route op */
.spiegel-dialog { width: min(92vw, 40rem); overflow-y: auto; }
.spiegel-kicker { margin: 0 0 .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); }
.spiegel-dialog h2 { margin-bottom: .5rem; }
.spiegel-intro { margin: 0 0 1.2rem; font-size: .95rem; color: var(--muted); }
.spiegel-list { list-style: none; margin: 0; padding: 0; }
.spiegel-list li { border-top: 1px solid var(--line); }
.spiegel-list button {
  width: 100%; text-align: left; border: 0; background: none; color: var(--ink);
  padding: 13px 4px; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  font: 450 1.15rem/1.3 var(--serif); transition: color .2s, padding-left .2s;
}
.spiegel-list button::after { content: "→"; font: 600 .95rem/1 var(--sans); color: var(--muted); flex: none; transition: transform .2s, color .2s; }
.spiegel-list button:hover { color: var(--clay); padding-left: 6px; }
.spiegel-list button:hover::after { color: var(--clay); transform: translateX(3px); }

.spiegel-view[hidden], .spiegel-pick[hidden] { display: none; }
.spiegel-chosen { margin: .4rem 0 1.2rem; font: italic 450 1.15rem/1.35 var(--serif); color: var(--muted); }
.spiegel-box { padding: 16px 18px; border-radius: 16px; margin-bottom: 12px; }
.spiegel-reflex { background: #efe8d8; border: 1px solid var(--line); }
.spiegel-answer { background: #fffdf8; border: 1.5px solid var(--clay); }
.spiegel-label { display: block; margin-bottom: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spiegel-answer .spiegel-label { color: var(--clay); }
.spiegel-box h3 { margin: 0 0 6px; font: 450 1.45rem/1.15 var(--serif); color: var(--ink); }
.spiegel-box p { margin: 0; font-size: .96rem; line-height: 1.5; color: var(--ink); }
.spiegel-reflex p { color: #545044; }
.spiegel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 1.3rem; }
.spiegel-go {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 700 .92rem/1 var(--sans); cursor: pointer;
  transition: background-color .25s, transform .25s;
}
.spiegel-go:hover { background: var(--clay); transform: translateX(3px); }
.spiegel-back {
  padding: 8px 0; border: 0; background: none; color: var(--muted);
  font: 600 .9rem/1 var(--sans); cursor: pointer; transition: color .2s;
}
.spiegel-back:hover { color: var(--ink); }

/* Leespagina */
.manifest-page { background: #f6efe0; color: var(--ink); }
.manifest-page em { color: var(--clay); }
.manifest-page .masthead a { color: var(--ink); }
.manifest-page .masthead { position: static; color: var(--ink); text-shadow: none; }
.reader { max-width: 42rem; margin: 0 auto; padding: 40px var(--gutter) 100px; }
.reader h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); margin-bottom: 2.4rem; }
.manifest-body p { margin: 0 0 1rem; }
.reader-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.6rem; }
.trail-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 13px 24px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 .92rem/1 var(--sans); text-decoration: none; transition: transform .25s, background-color .25s; }
.trail-link:hover { background: var(--clay); transform: translateX(-3px); }
.reader-actions [download] { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px currentColor; }
.reader-actions [download]:hover { background: var(--line); transform: none; }
.reader-actions .trail-link:focus-visible { outline-color: var(--ink); }

@page manifest { size: A4; margin: 17mm 20mm; }
@media print {
  .manifest-page { page: manifest; background: #fff; color: #222; font-size: 10.75pt; line-height: 1.45; }
  .manifest-page .masthead, .manifest-page .reader-actions { display: none; }
  .reader { max-width: none; margin: 0; padding: 0; }
  .reader h1 { font-size: 30pt; margin-bottom: 16pt; }
  .manifest-body p { break-inside: avoid; margin-bottom: 8pt; }
}

/* Telefoon: beeld bovenin, tekst eronder */
@media (min-width: 701px) {
  .interactive .stil-hint { width: max-content; max-width: calc(100vw - 2 * var(--gutter)); }
}
@media (min-width: 701px) and (max-height: 520px) {
  .interactive .texts { bottom: 86px; }
  .texts h1 { font-size: clamp(1.65rem, 8.4vh, 2.8rem); }
  .texts h2 { --title-size: clamp(1.65rem, 8.4vh, 2.8rem); }
  .texts .body, #begin .body { margin-top: .7rem; font-size: .98rem; line-height: 1.45; }
  .texts .eyebrow { margin-bottom: .45rem; }
  .texts .hint, .start-actions { margin-top: .65rem; }
  .stil-hint { font-size: 1.05rem; }
}
@media (max-width: 700px) {
  .brand-route { display: none; }
  .masthead { padding: 12px 18px; font-size: .7rem; }
  #begin .hint { display: none; }
  .start-actions { margin-top: 1.15rem; }
  .spiegel-list button { font-size: 1.04rem; padding: 11px 2px; }
  .scrim { background: linear-gradient(0deg, rgb(10 14 11 / .93) 0, rgb(10 14 11 / .82) 48%, rgb(10 14 11 / .34) 68%, transparent 82%); }
  .texts { left: 20px; width: calc(100vw - 40px); bottom: calc(82px + env(safe-area-inset-bottom)); }
  h1 { font-size: clamp(1.95rem, 8.2vw, 2.55rem); }
  h2 { --title-size: clamp(1.85rem, 8.6vw, 2.5rem); line-height: 1.04; }
  .body { margin-top: .85rem; font-size: .98rem; line-height: 1.56; }
  #begin .body { font-size: 1.1rem; }
  .eyebrow { margin-bottom: .5rem; font-size: .7rem; }
  .choice-label { margin-top: .75rem; font-size: .78rem; }
  .choices { margin-top: .5rem; gap: 8px; }
  .choices button { min-height: 40px; padding: 0 15px; font-size: .84rem; }
  .stil-hint { font-size: 1.08rem; margin-top: .85rem; }
  .dock { left: 16px; right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); gap: 10px; }
  .round { width: 40px; height: 40px; font-size: 1.35rem; background: rgb(10 14 11 / .35); border-color: rgb(251 244 228 / .34); }
  .route { height: 52px; }
  .route .r-base { stroke-width: 1.5; }
  .route .r-done { stroke-width: 2.4; }
  .route .r-pill { font-size: .68rem; }
  .route .pt { width: 26px; }
  .choices button { min-height: 46px; padding: 0 18px; font-size: .9rem; }
  .start { min-height: 52px; }
}
@media (max-width: 700px) and (max-height: 640px) {
  .texts { bottom: calc(78px + env(safe-area-inset-bottom)); }
  h1 { font-size: 1.65rem; }
  h2 { --title-size: 1.65rem; }
  .body { margin-top: .6rem; font-size: .9rem; line-height: 1.48; }
  .choices { margin-top: .45rem; }
  .choices button { min-height: 42px; padding: 0 14px; font-size: .84rem; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .scene-kijken, .scene-still { background: #141913; }
  .scene-kijken::after, .scene-still::after {
    content: "";
    position: absolute;
    inset: 0;
  }
  .scene-kijken::after { background: linear-gradient(0deg, #141913 28%, rgb(20 25 19 / .62) 38%, transparent 58%); }
  .scene-still::after {
    background: linear-gradient(180deg, transparent calc(var(--lake-bottom, 66vh) - 13vh), #141913 var(--lake-bottom, 66vh));
  }
  :is(.kijken-portret, .still-portret) .scrim {
    background: linear-gradient(0deg, rgb(10 14 11 / .72), rgb(10 14 11 / .5) 29%, transparent 62%);
  }
}

@media (max-width: 700px), (hover: none) and (pointer: coarse), (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cam, .step, .route .r-pill { will-change: auto; }
  .scene.idle { visibility: hidden; }
  .scene-vid, .ambient { display: none !important; }
}

/* Plaatselijke beweging over het vaste schilderij, alleen bij het huidige punt. */
.cam > * { pointer-events: none; }
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ambient svg, .ambient picture { display: block; width: 100%; height: 100%; }
.ambient .ambient-definitions { position: absolute; width: 0; height: 0; }
.ambient span { display: block; position: absolute; }
.scene:not(.ambient-live) .ambient *, .scene.frozen .ambient *,
.scene:not(.ambient-live) .butterfly::before, .scene:not(.ambient-live) .butterfly::after { animation-play-state: paused !important; }
.scene.idle .ambient, .scene.frozen .ambient { visibility: hidden; }

/* De maskers houden de beweging binnen het landschapsonderdeel. */
.scene-open .ambient, .scene-omarm .ambient, .scene-still .ambient, .scene-moed .ambient {
  -webkit-mask-image: var(--detail-mask);
  mask-image: var(--detail-mask);
}
.scene-open .ambient {
  --detail-mask: radial-gradient(ellipse 32% 12% at 65% 15%, #000 43%, transparent 100%);
  opacity: .79;
}
.scene-open .ambient picture { animation: langsdrijvende-wolk 9s ease-in-out -2.5s infinite alternate; }
@keyframes langsdrijvende-wolk { from { transform: translateX(-1.45%); } to { transform: translateX(1.45%); } }

.scene-omarm .ambient {
  --detail-mask: radial-gradient(ellipse 13% 9% at 81% 22%, #000 44%, transparent 100%);
  opacity: .88;
}
.scene-omarm .ambient picture {
  transform-origin: 91% 22%;
  animation: tak-in-de-wind 4.4s ease-in-out -1.35s infinite alternate;
}
@keyframes tak-in-de-wind { from { transform: rotate(-1.55deg); } to { transform: rotate(1.55deg); } }

.scene-still .ambient { --detail-mask: url(#ambient-mask-still); }
.scene-still .ambient picture {
  transform-origin: 58% 48%;
  animation: spiegeling-op-het-meer 5.8s ease-in-out -1.3s infinite alternate;
}
@keyframes spiegeling-op-het-meer {
  from { transform: translate(-.28%, .16%) scale(1.021, 1.006); }
  to { transform: translate(.33%, -.32%) scale(1.027, 1.019); }
}

.scene-dichtbij .ambient span {
  top: 25%; left: 72%; width: 1.18%; height: .65%;
  animation: meeuw-boven-de-baai 9.5s linear -1.7s infinite both;
}
.scene-dichtbij .ambient span + span { top: 26.8%; left: 69.9%; width: 1%; animation-delay: -1.3s; }
.scene-dichtbij .ambient span::before, .scene-dichtbij .ambient span::after {
  content: ""; position: absolute; top: 0; width: 51%; height: 100%;
  border-top: 1.5px solid #30382e; border-radius: 65% 82% 0 0;
}
.scene-dichtbij .ambient span::before { left: 0; transform: rotate(17deg); }
.scene-dichtbij .ambient span::after { right: 0; transform: rotate(-17deg); }
@keyframes meeuw-boven-de-baai {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  13% { opacity: .84; }
  73% { opacity: .74; }
  90% { opacity: 0; transform: translate(670%, -255%); }
}

.scene-fork .ambient path {
  fill: none; stroke: #fff0bc; stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: .27 1; filter: blur(1.4px);
  animation: licht-langs-het-pad 7.5s linear -1.25s infinite both;
}
.scene-fork .ambient path + path { animation-delay: -.96s; }
@keyframes licht-langs-het-pad {
  0% { opacity: 0; stroke-dashoffset: .27; }
  15%, 43% { opacity: .76; }
  62%, 100% { opacity: 0; stroke-dashoffset: -1; }
}

.scene-moed .ambient {
  --detail-mask: url(#ambient-mask-moed);
}
.scene-moed .ambient picture {
  transform-origin: 75% 50%;
  animation: branding-tegen-de-rots 5.6s ease-in-out -1.5s infinite alternate;
}
@keyframes branding-tegen-de-rots {
  from { transform: translate(.56%, .49%) scale(1.027, 1.013); }
  to { transform: translate(-.62%, -.42%) scale(1.033, 1.033); }
}

.butterfly {
  top: 67%; left: 58%; width: clamp(19px, 2.2%, 30px); aspect-ratio: 1.4;
  background: linear-gradient(90deg, transparent 47%, #4a2d24 48% 53%, transparent 54%) center / 100% 70% no-repeat;
  animation: vlinder-boven-de-bloemen 5.5s ease-in-out -.9s infinite alternate;
}
.butterfly::before, .butterfly::after {
  content: ""; position: absolute; top: 9%; width: 50%; height: 80%;
  border: 1px solid #512e22;
  background: radial-gradient(ellipse at 30% 25%, #fff2c5 0 13%, transparent 24%),
              radial-gradient(ellipse at 32% 29%, #ffdb91 0%, #e4954d 61%, #a34a2a 89%);
  animation: vlindervleugels 530ms ease-in-out infinite alternate;
}
.butterfly::before {
  left: 1%; border-radius: 62% 56% 20% 65%; transform-origin: right 65%;
}
.butterfly::after {
  right: 1%; border-radius: 56% 62% 65% 20%; transform-origin: left 65%;
}
@keyframes vlindervleugels { from { transform: scaleX(.52); } to { transform: scaleX(1); } }
@keyframes vlinder-boven-de-bloemen {
  from { transform: translate(-110%, 22%) rotate(-18deg); }
  48% { transform: translate(86%, -90%) rotate(18deg); }
  to { transform: translate(215%, -29%) rotate(-10deg); }
}

@media (max-height: 520px) {
  .finale-last { --title-size: clamp(2rem, 8.1vh, 3rem); }
}
@media (prefers-reduced-motion: reduce) {
  .stil-hint .een { display: none; }
  .stil-hint .twee { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .interactive .is-pausing .stil-hint .een { animation: still-hint-out .35s ease 1.25s both !important; }
  .interactive .is-pausing .stil-hint .twee { animation: still-hint-in .48s ease 1.5s both !important; }
  .scene-blik:not(.idle) .cam,
  .scene-blik:not(.idle)::before {
    transition: transform 960ms cubic-bezier(.22, .72, .24, 1), opacity 960ms ease-in !important;
  }
  .scene-blik.is-arriving .finale-world { animation: finale-approach 630ms ease-out !important; }
  .interactive .finale :is(.finale-reveal, .finale-actions) {
    transition: opacity .46s ease, visibility .46s !important;
  }
}
@keyframes still-hint-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes still-hint-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes finale-approach {
  from { transform: scale(.965); }
  to { transform: scale(1); }
}
