/* Immersive hoofdpagina: geleide reis */
html.js, html.js body { height: 100%; overflow: hidden; }
body.journey { background: #0d1426; color: var(--parchment); }

.world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
.veil { position: fixed; inset: 0; background: #0d1426; opacity: 0; pointer-events: none; transition: opacity .35s ease; z-index: 3; }
.veil.on { opacity: 1; }

/* SVG-details */
.tw { animation: tw 3.6s ease-in-out infinite; }
.tw:nth-child(3n) { animation-delay: -1.2s; } .tw:nth-child(4n) { animation-delay: -2.4s; }
@keyframes tw { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.ff { animation: ff 7s ease-in-out infinite; }
.ff:nth-child(2n) { animation-duration: 9s; animation-delay: -3s; } .ff:nth-child(3n) { animation-duration: 11s; animation-delay: -5s; }
@keyframes ff { 0%, 100% { transform: translate(0, 0); opacity: .2; } 40% { opacity: 1; } 50% { transform: translate(14px, -18px); } 80% { opacity: .5; } }
.glow-pulse { animation: gp 4s ease-in-out infinite; }
@keyframes gp { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
.letters { transition: opacity 1.2s ease, filter 1.2s ease; }
body[data-scene="7"] .letters, body[data-scene="0"] .letters { opacity: 1; }
.letters { opacity: .78; }
.win-light { transition: opacity .8s ease; }

/* Bovenbalk */
.jbar { position: fixed; z-index: 10; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px clamp(12px, 3vw, 28px); pointer-events: none; }
.jbar > * { pointer-events: auto; }
.jbrand { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--gold-soft); text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.jbar .right { display: flex; gap: 8px; align-items: center; }
.chip { font: 700 14px/1 var(--sans); color: var(--parchment); background: rgba(13, 20, 38, .55); border: 1px solid rgba(231, 198, 107, .5); border-radius: 999px; padding: 10px 14px; text-decoration: none; cursor: pointer; backdrop-filter: blur(6px); min-height: 40px; display: inline-flex; align-items: center; }

/* Hoofdstukkenmenu */
.toc { position: fixed; z-index: 12; top: 62px; right: clamp(12px, 3vw, 28px); width: min(330px, calc(100vw - 24px)); background: rgba(246, 238, 219, .98); color: var(--ink); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.toc[hidden] { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.toc li { counter-increment: c; }
.toc button { width: 100%; text-align: left; display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; font: 500 15.5px/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.toc button::before { content: counter(c, upper-roman); font-family: var(--serif); font-weight: 700; color: var(--gold); min-width: 30px; }
.toc button:hover { background: rgba(23, 48, 31, .08); }
.toc button[aria-current="step"], .toc button[aria-current="step"]:hover { background: var(--forest); color: var(--parchment); }

/* Kaarten */
.cards { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.card { position: absolute; right: clamp(14px, 3vw, 40px); top: 50%; transform: translateY(-50%); width: min(500px, 40vw); max-height: min(78vh, 760px); overflow-y: auto; overscroll-behavior: contain; background: rgba(246, 238, 219, .97); color: var(--ink); border-radius: 22px; padding: 26px 26px 20px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); pointer-events: auto; opacity: 0; visibility: hidden; transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; }
.card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(201, 154, 46, .5); border-radius: 16px; pointer-events: none; }
.card.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease .1s, transform .6s ease .1s, visibility 0s; }
.card.center { right: auto; left: 50%; transform: translate(-50%, -50%); text-align: center; width: min(640px, calc(100vw - 32px)); background: rgba(13, 20, 38, .55); color: var(--parchment); backdrop-filter: blur(4px); box-shadow: none; }
.card.center[data-scene="0"], .card.center[data-scene="7"] { top: auto; bottom: 86px; transform: translateX(-50%); padding: 20px 24px 14px; width: min(600px, calc(100vw - 32px)); }
.card.center[data-scene="0"] h1 { font-size: clamp(30px, 3.6vw, 46px); }
.card.center[data-scene="0"] .lead, .card.center[data-scene="7"] .lead { font-size: 17px; }
.card.center::before { border-color: rgba(231, 198, 107, .35); }
.card .kicker { font: 700 12px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ember); margin: 0 0 8px; }
.card.center .kicker { color: var(--gold-soft); }
.card h1, .card h2 { font-family: var(--serif); font-weight: 700; line-height: 1.02; margin: 0 0 12px; color: var(--forest); }
.card h1 { font-size: clamp(38px, 5vw, 64px); color: #fff6dc; }
.card h2 { font-size: clamp(30px, 3.2vw, 42px); }
.card p { margin: 0 0 12px; font-size: 16.5px; }
.card .quote { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.2; color: var(--berry); }
.card ul { margin: 0 0 12px; padding-left: 20px; }
.card li { margin-bottom: 6px; }
.card .lead { font-size: 19px; }
.card .btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.card.center .btn-row { justify-content: center; }
.card .btn-ghost { color: var(--forest); }
.card.center .btn-ghost { color: var(--parchment); }
.hint { font-size: 14px; opacity: .85; margin-top: 12px !important; }

.photo { margin: 0 0 12px; border-radius: 14px; overflow: hidden; border: 2px solid var(--gold); position: relative; }
.photo img { width: 100%; height: 230px; object-fit: cover; }
.photo.tall img { height: 300px; object-position: 50% 25%; }
.photo figcaption { font-size: 12.5px; padding: 6px 10px; background: rgba(23, 48, 31, .9); color: var(--parchment); }
.duo-ph { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Placeholders: eerlijk herkenbaar */
.ph { border: 2px dashed rgba(124, 33, 53, .55); background: repeating-linear-gradient(135deg, rgba(124, 33, 53, .05) 0 10px, rgba(124, 33, 53, .1) 10px 20px); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; color: var(--berry); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.ph svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.ph b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ph.media { min-height: 120px; align-items: center; justify-content: center; text-align: center; flex-direction: column; }

.exp { display: grid; gap: 8px; margin: 0 0 12px; }
.exp article { border: 1px solid rgba(201, 154, 46, .45); border-radius: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .5); }
.exp h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 2px; color: var(--forest); display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.exp p { font-size: 14.8px; margin: 0; }
.tag { font: 700 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--forest); color: var(--gold-soft); }
.tag.todo { background: transparent; color: var(--berry); border: 1.5px dashed var(--berry); }
.fineprint { font-size: 13px; color: var(--ink-soft); }

.vs { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 14.5px; }
.vs th { text-align: left; font: 700 12px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding: 4px 6px; }
.vs td { padding: 7px 6px; border-top: 1px solid rgba(201, 154, 46, .35); vertical-align: top; }
.vs td:last-child { font-weight: 700; color: var(--forest); }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.steps div { background: rgba(255, 255, 255, .55); border-radius: 10px; padding: 8px 10px; font-size: 14px; border: 1px solid rgba(201, 154, 46, .35); }
.steps b { display: block; font-family: var(--serif); font-size: 18px; color: var(--forest); }

.doors2 { display: grid; gap: 10px; margin: 4px 0 12px; }
.door2 { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--parchment); background: linear-gradient(180deg, #24452f, #152a1c); border: 2px solid var(--gold); border-radius: 14px; padding: 12px 14px; }
.door2 .n { font-family: var(--serif); font-size: 30px; color: var(--gold-soft); text-align: center; }
.door2 b { display: block; font-size: 17px; }
.door2 span span { font-size: 14px; color: #e3dac1; }
.door2 .soon { display: inline-block; margin-top: 4px; font: 700 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #f3c9a8; }
.card.center .door2 { text-align: left; }

/* Navigatie onderaan */
.jnav { position: fixed; z-index: 10; left: clamp(12px, 3vw, 28px); bottom: clamp(12px, 3vh, 26px); display: flex; align-items: center; gap: 10px; }
.navbtn { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(231, 198, 107, .7); background: rgba(13, 20, 38, .6); color: var(--parchment); cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); }
.navbtn svg { width: 22px; height: 22px; }
.navbtn[disabled] { opacity: .35; cursor: default; }
.navbtn.next { background: linear-gradient(180deg, #f0d27e, #c99a2e); color: #2a1d06; border-color: #f6e2a4; }
.progress { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.progress .lbl { font: 700 13px/1.2 var(--sans); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.dots { display: flex; gap: 6px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1.5px solid var(--gold-soft); background: transparent; cursor: pointer; }
.dots button[aria-current="step"] { background: var(--gold-soft); transform: scale(1.25); }
.scroll-hint { position: fixed; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 13px; opacity: .8; display: flex; gap: 6px; align-items: center; pointer-events: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
body:not([data-scene="0"]) .scroll-hint { display: none; }

@media (max-width: 760px) {
  .card { left: 10px; right: 10px; width: auto; top: auto; bottom: 78px; transform: none; max-height: 54vh; max-height: 54dvh; padding: 20px 18px 14px; }
  .card.center { left: 10px; right: 10px; width: auto; transform: none; top: auto; bottom: 78px; }
  .card h1 { font-size: 40px; }
  .card h2 { font-size: 30px; }
  .card p { font-size: 15.5px; }
  .photo img { height: 170px; }
  .photo.tall img { height: 210px; }
  .duo-ph, .steps { grid-template-columns: 1fr; }
  .jnav { left: 10px; right: 10px; bottom: 12px; }
  .progress .lbl { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
  .jbrand { font-size: 16px; }
  .chip { padding: 8px 11px; font-size: 13px; }
  .scroll-hint { display: none; }
}

/* Zonder JavaScript: alles onder elkaar leesbaar */
html:not(.js) .world, html:not(.js) .jnav, html:not(.js) .scroll-hint, html:not(.js) .veil { display: none; }
html:not(.js) body.journey { background: #17301f; }
html:not(.js) .cards { position: static; padding: 80px 16px 40px; display: grid; gap: 20px; justify-items: center; }
html:not(.js) .card { position: relative; inset: auto; transform: none; opacity: 1; visibility: visible; max-height: none; width: min(640px, 100%); }

@media (prefers-reduced-motion: reduce) {
  .tw, .ff, .glow-pulse { animation: none !important; }
}
@media (max-width: 760px) {
  .card.center[data-scene] { left: 10px; right: 10px; width: auto; transform: none; top: auto; bottom: 78px; }
}
