/* Before Zero, the page: the film on top, then 12 full-screen chapters that present like a deck */
.dk-page { background: var(--bg); }
.dk-snap { scroll-snap-type: y mandatory; scroll-behavior: smooth; }   /* one flick, one screen: every part of the page is exactly one screen tall (the browser's own snapping, never a script on the wheel) */
@media (prefers-reduced-motion: reduce) { .dk-snap { scroll-behavior: auto; } }
.dk-screen { min-height: 100vh; min-height: 100svh; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; }
.dk-film { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 0 28px; min-height: 0; }
.dk-film h1 { font: 300 clamp(32px, 5vw, 60px)/1.08 Outfit, sans-serif; margin: 10px 0 0; max-width: 18ch; }
.dk-film .product-film { margin: 20px auto 16px; width: min(100%, calc((100svh - 300px) * 16 / 9)); }
.dk-skip { font: 500 14px/1.4 var(--mono); color: var(--gold); letter-spacing: .04em; }
.dk-deck { position: relative; background: #060605; }
.dk-canvas { position: sticky; top: 0; display: block; width: 100%; height: 100vh; height: 100svh; object-fit: fill; }
.dk-ch { position: relative; height: 100vh; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; z-index: 2; }
.dk-ch:first-of-type { margin-top: -100vh; margin-top: -100svh; }
.dk-ch::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; pointer-events: none;
  background: linear-gradient(to top, rgba(6,6,5,.9), rgba(6,6,5,.6) 45%, rgba(6,6,5,0)); }
.dk-card { position: absolute; left: 0; right: 0; bottom: 6vh; margin: 0 auto; padding: 0 20px; max-width: 820px; text-align: center; }
.dk-n { color: var(--gold); margin: 0 0 10px; }
.dk-words p { font: 400 clamp(17px, 2vw, 24px)/1.35 Outfit, sans-serif; color: #f4efe4; margin: 0 0 .3em; text-shadow: 0 2px 16px rgba(0,0,0,.9); }
.dk-data { font: 500 clamp(12px, 1.2vw, 14px)/1.6 var(--mono); color: var(--gold); text-transform: uppercase; letter-spacing: .06em; margin: 12px auto 0; max-width: 64ch; text-shadow: 0 1px 10px rgba(0,0,0,.9); }
.dk-src { font: 400 11px/1.6 var(--mono); color: rgba(239,230,214,.65); margin: 8px 0 0; }
.dk-src a { color: inherit; text-decoration: underline; text-decoration-color: rgba(212,180,109,.5); text-underline-offset: 3px; }
.dk-nav { display: flex; justify-content: center; gap: 10px; margin: 14px 0 0; }
.dk-next, .dk-prev { display: inline-block; font: 500 13px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--paper); border: 1px solid rgba(239,230,214,.35); padding: 10px 16px; background: rgba(6,6,5,.4); }
.dk-top { display: block; margin: 12px auto 0; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(239,230,214,.6); text-decoration: underline; text-decoration-color: rgba(212,180,109,.5); text-underline-offset: 4px; }
.dk-top:hover, .dk-top:focus-visible { color: var(--gold); }
.dk-prev { color: rgba(239,230,214,.75); border-color: rgba(239,230,214,.22); }
.dk-next:hover, .dk-next:focus-visible, .dk-prev:hover, .dk-prev:focus-visible { border-color: var(--gold); color: var(--gold); }
.dk-dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 4; display: none; flex-direction: column; gap: 10px; }
.dk-in .dk-dots { display: flex; }
.dk-dots a { width: 8px; height: 8px; border-radius: 50%; background: rgba(239,230,214,.3); }
.dk-dots a[aria-current] { background: var(--gold); box-shadow: 0 0 10px rgba(212,180,109,.8); }
.dk-end { scroll-snap-align: start; scroll-snap-stop: always; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; background: var(--bg); padding: 96px 16px 120px; text-align: center; border-top: 1px solid var(--line); }
.dk-end h2 { font: 300 clamp(34px, 5vw, 60px)/1.1 Outfit, sans-serif; margin: 10px 0 14px; }
.dk-end .lead { margin: 0 auto; }
.dk-end a:not(.button) { color: var(--gold); }
.dk-cta { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; margin: 28px 0; }
@media (max-width: 600px) { .dk-dots { right: 8px; gap: 8px; } .dk-dots a { width: 6px; height: 6px; } }

/* when a chapter is over: a progress line fills along the bottom; then Next lights up gold, pulses twice and a hint appears */
.dk-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(239,230,214,.12); z-index: 3; }
.dk-prog i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--gold); box-shadow: 0 0 10px rgba(212,180,109,.7); }
.dk-hint { font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 12px 0 0; opacity: 0; transition: opacity .4s; }
.dk-ch.is-done .dk-hint { opacity: 1; }
.dk-ch.is-done .dk-next { border-color: var(--gold); color: #10110f; background: var(--gold); animation: dk-ready 1s ease-in-out 2; }
@keyframes dk-ready { 50% { box-shadow: 0 0 0 8px rgba(212,180,109,0), 0 0 22px rgba(212,180,109,.9); } }
@media (prefers-reduced-motion: reduce) { .dk-ch.is-done .dk-next { animation: none; } .dk-hint { transition: none; } }
.dk-card p { margin-left: auto; margin-right: auto; }   /* the site caps paragraph widths from the left; centre them here */
