/* pompeiland 1:18 – opmaak (los bestand: werkt ook met een strikte content-security-policy) */
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(assets/fonts/barlow-latin-500-normal.woff2?v=8e986e86) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url(assets/fonts/barlow-latin-600-normal.woff2?v=a1e2a2d7) format('woff2'); }
:root {
  --ink: #f3f2ef; --ink-2: rgba(243, 242, 239, .68); --glass: rgba(16, 16, 18, .52); --line: rgba(255, 255, 255, .13);
  --accent: #9b1219; --accent-2: #c21d25; --bg: #0d0d0f;
  --sa-t: env(safe-area-inset-top, 0px); --sa-b: env(safe-area-inset-bottom, 0px); --sa-l: env(safe-area-inset-left, 0px); --sa-r: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; overscroll-behavior: none; }
body { font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.vignette { position: fixed; inset: 0; pointer-events: none;
            background: linear-gradient(to bottom, rgba(0, 0, 0, .42), rgba(0, 0, 0, .16) 90px, transparent 170px), radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .28) 100%); }

/* kop */
.top { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
       padding: calc(16px + var(--sa-t)) calc(18px + var(--sa-r)) 0 calc(18px + var(--sa-l)); pointer-events: none; }
.brand { pointer-events: auto; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.brand small { display: block; font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.brand h1 { margin: 4px 0 0; font-weight: 600; font-size: clamp(19px, 2.4vw, 26px); letter-spacing: .01em; line-height: 1.1; white-space: nowrap; }
.brand h1 span { color: var(--ink-2); font-weight: 500; }
.tools { display: flex; gap: 8px; pointer-events: auto; }
.icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink);
        display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.icon svg { width: 18px; height: 18px; }
.icon:hover { border-color: rgba(255, 255, 255, .3); }

/* onderbalk */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; padding: 0 0 calc(16px + var(--sa-b)); pointer-events: none; display: grid; justify-items: center; gap: 10px; }
.hint { font-size: 13px; letter-spacing: .02em; color: var(--ink); padding: 7px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: opacity .6s ease, transform .6s ease; }
.hint.hide { opacity: 0; transform: translateY(6px); }
/* pauze/afspelen met de hint ernaast; de hint klapt weg zodat de knop in het midden komt */
.ctl { display: flex; align-items: center; justify-content: center; max-width: calc(100vw - 24px); transition: opacity .8s ease; }
.ctl .icon { pointer-events: auto; flex: 0 0 auto; }
.icon--sm { width: 40px; height: 40px; }
.icon--sm svg { width: 16px; height: 16px; }
.icon .pl { display: none; } .icon.paused .pa { display: none; } .icon.paused .pl { display: inline; }
.ctl .hint { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px;
             transition: opacity .6s ease, transform .6s ease, max-width .6s ease .3s, margin .6s ease .3s, padding .6s ease .3s, border-width .6s ease .3s; }
.ctl .hint.hide { max-width: 0; margin-left: 0; padding-left: 0; padding-right: 0; border-width: 0; }
.shots { pointer-events: auto; display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
         padding: 4px calc(18px + var(--sa-r)) 4px calc(18px + var(--sa-l));
         -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
                 mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
.shots::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; scroll-snap-align: center; font: 600 14px/1 'Barlow', system-ui, sans-serif; letter-spacing: .02em; color: var(--ink);
        padding: 12px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); cursor: pointer;
        backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: rgba(255, 255, 255, .32); }
.chip[aria-pressed="true"] { background: var(--ink); color: #111; border-color: var(--ink); }
.chip--play { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); border-color: rgba(255, 255, 255, .18); }
.chip--play svg { width: 14px; height: 14px; }
.chip--play[aria-pressed="true"] { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* laden */
#loader { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); transition: opacity .8s ease; z-index: 5; }
#loader.done { opacity: 0; pointer-events: none; }
.ld { width: min(320px, 78vw); text-align: center; }
.ld small { display: block; font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.ld h2 { margin: 8px 0 22px; font-weight: 600; font-size: 24px; letter-spacing: .01em; }
.track { height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
#bar { height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.ld p { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* info */
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; max-width: min(460px, calc(100vw - 32px)); color: var(--ink);
         background: rgba(18, 18, 20, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
dialog::backdrop { background: rgba(0, 0, 0, .35); }
dialog h2 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
dialog h2:focus { outline: none; }
dialog h3 { margin: 16px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
dialog { max-height: min(80vh, 720px); overflow-y: auto; }
dialog a { color: var(--ink); text-underline-offset: 3px; }
dialog details { border-top: 1px solid var(--line); padding: 8px 0; }
dialog details:last-of-type { border-bottom: 1px solid var(--line); }
dialog summary { cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; padding-right: 20px; position: relative; }
dialog summary::-webkit-details-marker { display: none; }
dialog summary::after { content: '+'; position: absolute; right: 2px; top: 0; color: var(--ink-2); }
dialog details[open] summary::after { content: '\2013'; }
dialog details p { margin: 6px 0 2px; }
dialog p, dialog li { font-size: 15px; line-height: 1.5; color: rgba(243, 242, 239, .86); }
dialog ul { padding-left: 18px; margin: 8px 0 14px; }
dialog .meta { font-size: 13px; color: var(--ink-2); margin: 0; }
dialog button { margin-top: 14px; }

/* credits: bovenin in het midden */
.credit { position: absolute; left: 50%; top: calc(16px + var(--sa-t)); transform: translateX(-50%); pointer-events: auto; z-index: 3;
          display: inline-flex; align-items: center; gap: .4em; height: 36px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
          font: 500 13px/1 'Barlow', system-ui, sans-serif; letter-spacing: .06em; color: var(--ink-2); text-decoration: none;
          border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
          transition: color .2s, border-color .2s, background .2s; }
.credit strong { font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.credit:hover { color: var(--ink); border-color: rgba(255, 255, 255, .32); background: rgba(16, 16, 18, .7); }

/* volledig scherm: icoon wisselt */
.icon .out { display: none; } .icon.on .in { display: none; } .icon.on .out { display: inline; }

/* melding (bv. volledig scherm op iphone) */
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--sa-b)); transform: translate(-50%, 8px); z-index: 6; width: max-content; max-width: min(420px, calc(100vw - 32px));
         padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(18, 18, 20, .88); color: var(--ink);
         font-size: 14px; line-height: 1.4; text-align: center; opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease;
         backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }


/* muziek */
.music { display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
         backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.music[hidden] { display: none; }
.music button { border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; border-radius: 999px; padding: 0; }
.mbtn { width: 36px; height: 36px; position: relative; }
.mbtn svg { width: 18px; height: 18px; }
.mbtn .x { display: none; } .mbtn.off .x { display: inline; } .mbtn.off .w { display: none; }
.music.wait .mbtn::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; border: 1.5px solid var(--ink); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.music .sep { width: 1px; height: 18px; background: var(--line); margin: 0 3px; }
.mnum { width: 30px; height: 30px; font: 600 13px/1 'Barlow', system-ui, sans-serif; color: var(--ink-2) !important; }
.mnum[aria-pressed="true"] { background: var(--ink) !important; color: #111 !important; }
.mnum:hover { color: var(--ink) !important; }

/* rondrit 2 */
.chip--two { background: var(--glass); }
.chip--two svg { color: var(--accent-2); }
.chip--two[aria-pressed="true"] { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.chip--two[aria-pressed="true"] svg { color: #fff; }
.brand, .hint, .shots { transition: opacity .8s ease; }
.cine .brand, .cine .hint { opacity: 0; pointer-events: none; }
.cine .shots, .cine .ctl { opacity: .45; }
@media (pointer: coarse) { .cine .shots, .cine .ctl { opacity: .85; } }
.cine .ctl:hover, .cine .ctl:focus-within { opacity: 1; }
.cine .shots:hover, .cine .shots:focus-within { opacity: 1; }
.ttl { position: fixed; left: 0; right: 0; bottom: 21vh; text-align: center; pointer-events: none; z-index: 2; padding: 0 16px;
       opacity: 0; letter-spacing: .55em; filter: blur(8px); transform: translateY(8px);
       transition: opacity .8s ease, letter-spacing 2.2s cubic-bezier(.16, .8, .2, 1), filter 1s ease, transform 1.2s ease; }
.ttl.on { opacity: 1; letter-spacing: .16em; filter: blur(0); transform: none; }
.ttl small { display: block; font-weight: 600; font-size: clamp(10px, 1.2vw, 13px); letter-spacing: .32em; text-transform: uppercase; color: rgba(243, 242, 239, .8); margin-bottom: 12px; }
.ttl strong { display: block; font-weight: 600; font-size: clamp(30px, 6.4vw, 88px); line-height: 1; text-transform: uppercase; margin-right: -.16em; text-shadow: 0 2px 28px rgba(0, 0, 0, .4); }
#veil { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 1; }

@media (max-width: 640px) {
  .chip { font-size: 13.5px; padding: 11px 14px; }
  .hint { font-size: 12.5px; }
  .ttl { bottom: 24vh; }
  .brand h1 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .music.wait .mbtn::after { animation: none; } }

/* smalle schermen (telefoon staand, kleine tablets): credits als eigen regel bovenaan, kop compacter */
@media (max-width: 819px) {
  .top { padding: calc(52px + var(--sa-t)) calc(14px + var(--sa-r)) 0 calc(14px + var(--sa-l)); gap: 10px; }
  .credit { top: calc(10px + var(--sa-t)); height: 32px; padding: 0 14px; font-size: 12.5px; }
  .brand small { font-size: 10px; letter-spacing: .1em; }
  .tools { gap: 6px; }
  .icon { width: 42px; height: 42px; }
  .music { height: 42px; padding: 0 3px; }
  .brand small { color: rgba(243, 242, 239, .82); }
}
@media (max-width: 480px) {
  .brand h1 { font-size: 18px; }
  .icon { width: 40px; height: 40px; }
  .music { height: 40px; }
  .mbtn { width: 34px; height: 34px; }
  .mnum { width: 26px; height: 28px; }
  .music .sep { margin: 0 1px; }
}
@media (max-width: 370px) { .brand h1 { font-size: 16.5px; } .brand small { font-size: 9.5px; } }
/* telefoon liggend: weinig hoogte, alles op een regel */
@media (max-width: 819px) and (min-width: 560px) and (max-height: 500px) {
  .top { padding-top: calc(10px + var(--sa-t)); }
  .credit { top: calc(15px + var(--sa-t)); }
  .brand small { display: none; }
  .brand h1 { margin-top: 8px; }
}
@media (max-height: 500px) { .bottom { gap: 6px; padding-bottom: calc(10px + var(--sa-b)); } .hint { display: none; } }
