/* Special Features: a special-edition DVD box set, one disc per project. */
:root {
  --gold-1: #fbefc6; --gold-2: #d9b45e; --gold-3: #8c6a24; --gold-4: #f1d996;
  --ink: #e9e6df; --mute: #a49f95; --acc: #f3cf6a; --acc-soft: rgba(243, 207, 106, .28);
  --serif: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --book: 'Cormorant Garamond', Georgia, serif;
  --osd: 'VT323', ui-monospace, monospace;
  --logo: 'Michroma', 'Eurostile', sans-serif;
  --vh: 100vh;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: var(--ink); overflow: hidden; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--serif); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------------- the loading screen: the player reading the disc */
#loader { position: fixed; inset: 0; z-index: 90; background: #000; display: grid; place-content: center; gap: 18px; justify-items: center; transition: opacity .45s; }
#loader.gone { opacity: 0; pointer-events: none; }
.osd-load, .osd { font-family: var(--osd); color: #5dff6a; text-shadow: 0 0 6px rgba(93, 255, 106, .55), 2px 2px 0 rgba(0, 0, 0, .9); letter-spacing: .12em; }
.osd-load { font-size: 34px; animation: blink 1.1s steps(2, start) infinite; }
.ld-bar { display: flex; gap: 4px; }
.ld-bar i { width: 10px; height: 16px; background: #133d17; box-shadow: inset 0 0 0 1px #1f6a26; }
.ld-bar i.on { background: #5dff6a; box-shadow: 0 0 6px rgba(93, 255, 106, .6); }
@keyframes blink { 50% { opacity: .25; } }

/* ---------------- the box set, open on the table */
.tray { position: fixed; inset: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 236, 190, .10), transparent 60%),
    radial-gradient(90% 60% at 50% 110%, rgba(120, 140, 170, .07), transparent 70%),
    linear-gradient(#121214, #08080a);
  padding: 0 max(14px, env(safe-area-inset-right)) 28px max(14px, env(safe-area-inset-left)); }
.tray::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .22; 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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.lid { text-align: center; padding: clamp(14px, 3.2vh, 30px) 0 clamp(8px, 1.6vh, 16px); position: relative; }
.foil { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 3.1vw, 34px); letter-spacing: .34em; padding-left: .34em; line-height: 1;
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 42%, var(--gold-3) 52%, var(--gold-4) 78%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .8)); }
.edition { margin-top: 8px; font-size: clamp(9px, 1vw, 11px); letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: #8d877a; }
.lid::after { content: ''; display: block; width: min(420px, 60%); height: 1px; margin: 12px auto 0; background: linear-gradient(90deg, transparent, rgba(217, 180, 94, .55), transparent); }
.grid { display: grid; grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr)); gap: var(--gap, 10px) 0; justify-items: center; max-width: 1500px; width: 100%; margin: auto; position: relative; flex: none; }
.lid { flex: none; }

.slot { all: unset; position: relative; display: grid; justify-items: center; gap: 7px; cursor: pointer; padding: 4px 2px 2px; width: 100%; outline: none; }
.well { position: absolute; top: 4px; left: 50%; width: calc(var(--d) * 1.06); height: calc(var(--d) * 1.06); margin-left: calc(var(--d) * -.53); margin-top: calc(var(--d) * -.03); border-radius: 50%;
  background: radial-gradient(circle closest-side, #050506 0 86%, #1b1b1f 93%, #0c0c0e 100%); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .05); }
.well::after { content: ''; position: absolute; left: 50%; top: 50%; width: 15%; height: 15%; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-conic-gradient(#2c2c31 0 9deg, #0d0d10 9deg 18deg); box-shadow: 0 0 0 2px #19191c, inset 0 0 4px #000; }
.disc { position: relative; width: var(--d); height: var(--d); border-radius: 50%; display: block; transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s, box-shadow .35s;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .8); }
.disc::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, #d8dce1, #7d838b, #eef1f4, #8a9098, #d0d4d9, #6f757d, #e4e7ea, #868c94, #d8dce1);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 29.6%, #000 30%); mask: radial-gradient(circle closest-side, transparent 0 29.6%, #000 30%); }
.disc .label { position: absolute; inset: 1.4%; border-radius: 50%; background-image: var(--art); background-size: cover; background-position: center;
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 33.6%, #000 34%); mask: radial-gradient(circle closest-side, transparent 0 33.6%, #000 34%); }
.disc .label::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle closest-side, transparent 58%, rgba(0, 0, 0, .5) 100%), linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 30%, transparent 70%, rgba(0, 0, 0, .3)); }
.disc .hub { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle closest-side, transparent 0 12.3%, rgba(235, 240, 245, .55) 12.6%, rgba(220, 228, 236, .16) 13.4%, rgba(220, 228, 236, .10) 19%, rgba(255, 255, 255, .34) 19.6%, rgba(220, 228, 236, .12) 20.4%, rgba(220, 228, 236, .18) 27%, rgba(255, 255, 255, .45) 29.6%, transparent 30%); }
.disc .print { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.disc .print text { fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .62); stroke-width: 2.6px; stroke-linejoin: round; font-family: var(--serif); }
.disc .print .num { font-size: 9.5px; letter-spacing: 1.6px; font-weight: 700; }
.disc .print .nm { font-weight: 700; letter-spacing: 1.4px; }
.disc .print .cl { font-size: 8.4px; letter-spacing: 3px; font-weight: 600; }
.disc .print .mk { fill: #fff; stroke: none; opacity: .92; }
.disc .gloss { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background: conic-gradient(from 210deg, transparent 0 8%, rgba(255, 255, 255, .28) 12%, transparent 18% 50%, rgba(255, 255, 255, .18) 58%, transparent 64%);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 12.5%, #000 13%); mask: radial-gradient(circle closest-side, transparent 0 12.5%, #000 13%); transition: transform .9s; }
.cap { display: grid; justify-items: center; gap: 2px; text-align: center; max-width: 96%; position: relative; z-index: 1; }
.cap b { font-size: 9px; letter-spacing: .32em; padding-left: .32em; color: #8f8a7e; font-weight: 600; }
.cap i { font-style: normal; font-size: clamp(10.5px, 1.05vw, 13px); letter-spacing: .06em; color: #d9d3c6; line-height: 1.15; }
.slot.hi .disc, .slot:focus-visible .disc { transform: translateY(-7px) scale(1.045); box-shadow: 0 16px 26px rgba(0, 0, 0, .7), 0 0 0 2px rgba(243, 207, 106, .75), 0 0 24px rgba(243, 207, 106, .35); }
.slot.hi .gloss { transform: rotate(40deg); }
.slot.hi .cap i { color: var(--gold-1); }
.slot.hi .cap b { color: var(--gold-2); }

.booklet .book { position: relative; display: block; width: calc(var(--d) * .74); height: var(--d); border-radius: 2px 5px 5px 2px; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
  background: linear-gradient(90deg, #0c0c0d 0 5%, #1d1c1b 6%, #121112 10%, #181716 100%); box-shadow: 0 6px 14px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(217, 180, 94, .25);
  display: grid; align-content: center; justify-items: center; gap: 10%; }
.booklet .book::before { content: ''; position: absolute; inset: 7% 9% 7% 13%; border: 1px solid rgba(217, 180, 94, .4); }
.booklet .bk-foil { font-weight: 700; font-size: calc(var(--d) * .085); letter-spacing: .26em; padding-left: .26em; text-align: center; line-height: 1.5;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3) 55%, var(--gold-4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.booklet svg { width: 46%; color: #c9a24a; }
.slot.booklet.hi .book { transform: translateY(-7px) rotate(-2deg); box-shadow: 0 16px 26px rgba(0, 0, 0, .7), 0 0 0 2px rgba(243, 207, 106, .75); }

/* the chosen disc on its way into the player */
.spin-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.spin-layer .disc { position: absolute; margin: 0; }

/* ---------------- the TV: a menu at a time */
.tv { position: fixed; inset: 0; z-index: 20; background: #000; overflow: hidden; --acc: #f3cf6a; }
.tv .bg { position: absolute; inset: 0; overflow: hidden; transition: opacity .8s, filter .8s, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.tv.sub .bg { filter: brightness(.45) saturate(.8) blur(2px); }
.tv.dark .bg { opacity: 0; }
.tv.dark .frame { opacity: 0; }
.tv .bg.push { transform: scale(1.1); }
.kb { position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover; opacity: 0; transform-origin: var(--ox, 50%) var(--oy, 50%); will-change: transform, opacity; }
.bg.loop2 .kb.a { animation: kbA 8s linear infinite; }
.bg.loop2 .kb.b { animation: kbB 8s linear infinite; }
.bg.loop1 .kb.a { animation: kbSolo 8s linear infinite; }
@keyframes kbA { 0% { opacity: 0; transform: scale(1.0) translate(0, 0); } 4% { opacity: 1; } 52% { opacity: 1; } 58% { opacity: 0; transform: scale(1.075) translate(var(--px, -1.2%), var(--py, -.6%)); } 100% { opacity: 0; transform: scale(1.0); } }
@keyframes kbB { 0%, 46% { opacity: 0; transform: scale(1.1) translate(1%, .5%); } 54% { opacity: 1; } 94% { opacity: 1; } 100% { opacity: 0; transform: scale(1.03) translate(-.4%, 0); } }
@keyframes kbSolo { 0% { opacity: 0; transform: scale(1.0); } 5% { opacity: 1; } 94% { opacity: 1; } 100% { opacity: 0; transform: scale(1.1) translate(var(--px, -1.2%), var(--py, -.6%)); } }
.scrim { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .5) 40%, rgba(0, 0, 0, .06) 72%),
  linear-gradient(0deg, rgba(0, 0, 0, .55), transparent 40%),
  radial-gradient(130% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .7) 100%); }
.grain { position: absolute; inset: -50%; opacity: .07; pointer-events: none; animation: grain .6s steps(3) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes grain { 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } }
.frame { position: absolute; inset: 4.2% 5%; pointer-events: none; transition: opacity .6s; border: 1px solid rgba(217, 180, 94, .16); }
.frame i { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(233, 205, 140, .7); }
.frame i:nth-child(1) { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.frame i:nth-child(2) { right: -1px; top: -1px; border-right-width: 2px; border-top-width: 2px; }
.frame i:nth-child(3) { left: -1px; bottom: -1px; border-left-width: 2px; border-bottom-width: 2px; }
.frame i:nth-child(4) { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }

.stage { position: absolute; inset: 0; }
.scr { position: absolute; inset: 0; }
.scr.in { animation: scrIn .62s .16s cubic-bezier(.2, .8, .2, 1) both; }
.scr.out { animation: scrOut .4s cubic-bezier(.6, 0, .9, .4) forwards; pointer-events: none; }
@keyframes scrIn { from { opacity: 0; transform: scale(.94); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes scrOut { to { opacity: 0; transform: scale(1.07); filter: blur(7px); } }
.safe { position: absolute; inset: 9% 11%; }

.flare { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.flare::before { content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; transform: skewX(-18deg); opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 238, 200, .08) 30%, rgba(255, 246, 220, .55) 50%, rgba(255, 238, 200, .08) 70%, transparent); mix-blend-mode: screen; }
.flare.go::before { animation: sweep .75s cubic-bezier(.3, .1, .3, 1) forwards; }
.flare::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 50%, rgba(255, 244, 214, .5), transparent 70%); opacity: 0; mix-blend-mode: screen; }
.flare.go::after { animation: bloom .7s ease-out; }
@keyframes sweep { 0% { opacity: 0; left: -60%; } 15% { opacity: 1; } 100% { opacity: 0; left: 130%; } }
@keyframes bloom { 0% { opacity: 0; } 30% { opacity: .55; } 100% { opacity: 0; } }

.osd { position: absolute; left: max(6%, 18px); top: max(6%, 16px); font-size: clamp(22px, 2.6vw, 34px); z-index: 6; pointer-events: none; opacity: 0; transition: opacity .25s; white-space: pre; }
.osd.on { opacity: 1; }
.eject { position: absolute; z-index: 8; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .35); color: rgba(235, 230, 220, .75); font-size: 20px; line-height: 44px; cursor: pointer; padding: 0; }
.eject:hover, .eject:focus-visible { color: #fff; background: rgba(0, 0, 0, .6); outline: none; }

/* ---------------- menu type */
.titleblock { position: absolute; left: 0; top: 0; max-width: min(62%, 760px); }
.client { font-size: clamp(10px, 1.1vw, 13px); letter-spacing: .5em; color: rgba(236, 228, 210, .78); margin-bottom: 10px; text-shadow: 0 1px 3px #000; }
.ttl { margin: 0; font-weight: 700; font-size: clamp(30px, 5.6vw, 80px); line-height: 1.02; letter-spacing: .035em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #f6efe0 38%, #c9b48a 52%, #fbf3df 70%, #d8c08a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .9)) drop-shadow(0 0 18px rgba(0, 0, 0, .55)); }
.scr.intro .ttl { animation: ttlIn 1.8s .2s cubic-bezier(.2, .8, .2, 1) both; }
.scr.intro .client { animation: fadeUp 1.2s .1s both; }
@keyframes ttlIn { from { opacity: 0; letter-spacing: .3em; filter: blur(8px); } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.rule { position: relative; height: 18px; margin-top: 14px; width: min(340px, 80%); }
.rule::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, rgba(233, 205, 140, .8), rgba(233, 205, 140, .1)); }
.egg { all: unset; position: absolute; left: 62%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; cursor: default; }
.egg svg { width: 22px; height: 22px; opacity: .07; transition: opacity .25s, transform .4s, filter .25s; color: var(--acc); }
.egg.hi svg { opacity: 1; transform: rotate(180deg) scale(1.25); filter: drop-shadow(0 0 8px var(--acc)); }

.btns { position: absolute; left: 0; bottom: 0; display: grid; gap: clamp(2px, .6vh, 8px); justify-items: start; }
.mb { all: unset; position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 26px 7px 30px; cursor: pointer; min-height: 30px;
  font-size: clamp(14px, 1.55vw, 21px); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(232, 228, 220, .86); text-shadow: 0 1px 3px #000, 0 0 10px rgba(0, 0, 0, .6); }
.mb::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--acc-soft), rgba(0, 0, 0, 0) 92%); opacity: 0; transition: opacity .18s; border-left: 2px solid var(--acc); }
.mb .pip { position: absolute; left: 8px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; opacity: 0; transition: opacity .18s;
  background: radial-gradient(circle, #000 0 18%, transparent 20%), conic-gradient(#fff, var(--acc), #fff, #9aa, #fff, var(--acc), #fff); animation: pip 1.4s linear infinite; }
@keyframes pip { to { transform: rotate(360deg); } }
.mb.hi { color: var(--acc); text-shadow: 0 0 12px var(--acc-soft), 0 1px 2px #000; }
.mb.hi::before, .mb.hi .pip { opacity: 1; }
.scr.intro .btns .mb { animation: btnIn .7s both; }
.scr.intro .btns .mb:nth-child(1) { animation-delay: .9s; } .scr.intro .btns .mb:nth-child(2) { animation-delay: 1.02s; }
.scr.intro .btns .mb:nth-child(3) { animation-delay: 1.14s; } .scr.intro .btns .mb:nth-child(4) { animation-delay: 1.26s; } .scr.intro .btns .mb:nth-child(5) { animation-delay: 1.38s; }
@keyframes btnIn { from { opacity: 0; transform: translateX(-24px); } }

/* submenus */
.sub-h { position: absolute; left: 0; top: 0; right: 0; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.sub-h h2 { margin: 0; font-weight: 700; font-size: clamp(22px, 3.2vw, 44px); letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff, #efe4c8 45%, #b89c63 55%, #f5ead0); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 2px #000); }
.sub-h .of { font-size: clamp(10px, 1vw, 12px); letter-spacing: .4em; color: rgba(230, 222, 205, .7); text-transform: uppercase; }
.foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.foot .mid { display: flex; gap: 6px; }
.arrow { all: unset; cursor: pointer; width: 46px; height: 40px; display: grid; place-items: center; color: rgba(232, 228, 220, .8); font-size: 22px; position: relative; }
.arrow svg { width: 26px; height: 26px; }
.arrow.hi { color: var(--acc); filter: drop-shadow(0 0 8px var(--acc)); }
.arrow[aria-disabled="true"] { opacity: .2; pointer-events: none; }

/* scene selection: four to a page */
.scenes .grid4 { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(100%, calc((var(--vh) * .82 - 200px) * 16 / 9 + 30px)); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.scenes.turn .grid4 { animation: pageTurn .5s cubic-bezier(.2, .8, .2, 1); }
.scenes.turnb .grid4 { animation: pageTurnB .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes pageTurn { from { opacity: 0; transform: translate(-46%, -50%); } }
@keyframes pageTurnB { from { opacity: 0; transform: translate(-54%, -50%); } }
.ch { all: unset; cursor: pointer; display: grid; gap: 6px; min-width: 0; }
.ch .still { position: relative; aspect-ratio: 16 / 9; background: #000; outline: 1px solid rgba(233, 205, 140, .35); outline-offset: 3px; overflow: hidden; transition: outline-color .2s, box-shadow .2s, transform .25s; }
.ch .still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ch .still img.fill { object-fit: cover; }
.ch .lab { display: flex; justify-content: space-between; gap: 8px; font-size: clamp(10px, 1.05vw, 14px); letter-spacing: .08em; color: rgba(232, 228, 220, .85); text-shadow: 0 1px 2px #000; min-width: 0; }
.ch .lab span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch .lab .no { color: var(--acc); margin-right: .6em; }
.ch .lab .tc { font-family: var(--osd); font-size: 1.25em; letter-spacing: .04em; color: rgba(232, 228, 220, .65); }
.ch.hi .still { outline: 2px solid var(--acc); box-shadow: 0 0 22px var(--acc-soft); transform: scale(1.03); }
.ch.hi .lab { color: var(--acc); }
.ch.empty { visibility: hidden; }

/* photo gallery */
.gallery .pic { position: absolute; left: 0; right: 0; top: 64px; bottom: 96px; display: flex; align-items: center; justify-content: center; min-height: 0; }
.gallery .pic img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 12px 40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); background: #111; }
.gallery .pic img.swap { animation: picIn .55s cubic-bezier(.2, .8, .2, 1); }
.gallery .pic img.swapb { animation: picInB .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes picIn { from { opacity: 0; transform: translateX(26px); } }
@keyframes picInB { from { opacity: 0; transform: translateX(-26px); } }
.gallery .capt { position: absolute; left: 0; right: 0; bottom: 52px; text-align: center; font-size: clamp(10px, 1.05vw, 13px); letter-spacing: .14em; text-transform: uppercase; color: rgba(232, 228, 220, .8); text-shadow: 0 1px 2px #000; min-height: 1.2em; }

/* special features: the case study, in the disc's own frame */
.features .panel { position: absolute; left: 0; right: 0; top: 64px; bottom: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 4px 6px 40px 0; scrollbar-width: thin; scrollbar-color: rgba(233, 205, 140, .4) transparent; }
.features .index { display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0 0 18px; }
.features .index .mb { font-size: clamp(11px, 1.1vw, 14px); padding: 6px 16px 6px 26px; letter-spacing: .14em; }
.features .index .mb .pip { left: 6px; width: 11px; height: 11px; margin-top: -5.5px; }
.features .case { --ab-fg: #ebe6dc; --ab-muted: #b8b0a0; --ab-accent: var(--acc); --ab-chrome: 150px; font-family: var(--book); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.45; max-width: 1040px; }
.features .case .ab-lede { font-size: 1.12em; font-style: italic; color: #f1ebdd; max-width: 46em; }
.features .case .ab-heading { font-family: var(--serif); font-size: clamp(13px, 1.25vw, 16px); letter-spacing: .18em; text-transform: uppercase; color: var(--acc); padding-top: 14px; border-top: 1px solid rgba(233, 205, 140, .22); }
.features .case .ab-text { color: #d8d1c2; max-width: 46em; }
.features .case figcaption { font-family: var(--serif); letter-spacing: .1em; text-transform: uppercase; font-size: .7em; }
.features .case .ab-frame { box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.features .case .ab-audio { background: rgba(0, 0, 0, .35); padding: 10px 12px; border-left: 2px solid rgba(233, 205, 140, .4); }
.features .back-top { position: absolute; right: 0; top: 0; }
.only-port { display: none !important; }

/* credits: the roll */
.credits .roll-box { position: absolute; left: 0; right: 0; top: 0; bottom: 56px; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.credits .roll { position: absolute; left: 0; right: 0; top: 0; text-align: center; will-change: transform; }
.credits .roll h3 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 40px); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #f2ead7; }
.credits .roll .cl { font-size: 12px; letter-spacing: .5em; color: var(--mute); margin-bottom: 46px; }
.credits .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0 auto 22px; max-width: 760px; align-items: start; }
.credits .row .r { text-align: right; font-size: clamp(10px, 1vw, 12.5px); letter-spacing: .26em; text-transform: uppercase; color: #a8a090; padding-top: .35em; }
.credits .row .n { text-align: left; font-family: var(--book); font-size: clamp(17px, 1.6vw, 22px); color: #f4efe4; line-height: 1.35; }
.credits .roll .end { margin-top: 70px; font-size: 11px; letter-spacing: .5em; color: var(--mute); }

/* set up */
.setup .opts { position: absolute; left: 0; top: 96px; display: grid; gap: 10px; }
.setup .opts .mb .val { color: var(--acc); margin-left: 1.2em; }

/* the player */
.player { background: #000; }
.player .screen { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #000; }
.player .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .pctl { position: absolute; left: 0; right: 0; bottom: max(10px, env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 10px; }
.player .tmenu { position: absolute; left: max(10px, env(safe-area-inset-left)); top: max(10px, env(safe-area-inset-top)); }
.osdb { all: unset; cursor: pointer; font-family: var(--osd); font-size: 24px; letter-spacing: .1em; color: #5dff6a; text-shadow: 0 0 6px rgba(93, 255, 106, .5), 1px 1px 0 #000; padding: 6px 12px; min-height: 30px; display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .5); }
.osdb.hi, .osdb:hover { color: #000; background: #5dff6a; text-shadow: none; }

/* easter egg */
.eggscr { background: #000; }
.eggscr .eg { position: absolute; inset: 10% 8% 12%; overflow-y: auto; display: grid; align-content: center; justify-items: center; gap: 16px; text-align: center; }
.eggscr .eg .ab-media { width: min(100%, 900px); --ab-fg: #eee; --ab-muted: #aaa; --ab-chrome: 300px; }
.eggscr .eg .ab-heading { font-family: var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--acc); }
.eggscr .eg .egh { font-family: var(--osd); color: #5dff6a; font-size: 26px; letter-spacing: .12em; }

/* the booklet: About, from data.json */
.book-view { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .82); overflow-y: auto; display: grid; place-items: center; padding: 30px 14px; animation: fadeIn .4s; }
@keyframes fadeIn { from { opacity: 0; } }
.page { position: relative; width: min(640px, 100%); background: linear-gradient(160deg, #1c1a18, #121110 70%); color: #e9e2d2; padding: clamp(28px, 6vw, 56px) clamp(22px, 6vw, 60px); box-shadow: 0 30px 80px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(217, 180, 94, .28); animation: pageIn .6s cubic-bezier(.2, .8, .2, 1); }
.page::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(217, 180, 94, .22); pointer-events: none; }
@keyframes pageIn { from { opacity: 0; transform: translateY(20px) rotateX(8deg); } }
.page h2 { margin: 0; text-align: center; font-size: clamp(24px, 4vw, 36px); letter-spacing: .26em; padding-left: .26em; font-weight: 700;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3) 55%, var(--gold-4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page .role { text-align: center; margin-top: 10px; font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: #a89f8c; }
.page .bio { font-family: var(--book); font-size: 20px; line-height: 1.5; text-align: center; margin: 26px auto 22px; max-width: 30em; font-style: italic; }
.page h4 { margin: 26px 0 10px; font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-2); text-align: center; font-weight: 600; }
.page ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.page li { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; font-family: var(--book); font-size: 17px; }
.page li b { text-align: right; font-weight: 600; }
.page li span { color: #b6ad99; letter-spacing: .06em; }
.page .contact { text-align: center; font-family: var(--book); font-size: 18px; display: grid; gap: 4px; }
.page a { color: var(--gold-1); text-decoration: none; border-bottom: 1px solid rgba(217, 180, 94, .4); }
.page a:hover { color: #fff; }
.page .close { all: unset; cursor: pointer; display: block; margin: 30px auto 0; font-size: 12px; letter-spacing: .4em; padding: 10px 18px 10px calc(18px + .4em); text-transform: uppercase; color: var(--gold-2); border: 1px solid rgba(217, 180, 94, .4); }
.page .close:hover, .page .close:focus-visible { color: #000; background: var(--gold-2); }

/* the player's own screensaver */
.idle { position: fixed; inset: 0; z-index: 80; background: #000; animation: fadeIn 1.2s; cursor: none; }
.idle-logo { position: absolute; left: 0; top: 0; width: clamp(140px, 22vw, 260px); color: #3b8bff; will-change: transform; }
.idle-logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.idle-logo.corner { animation: corner 1.4s; }
@keyframes corner { 0%, 30%, 60% { filter: drop-shadow(0 0 30px currentColor) brightness(1.8); } 15%, 45% { filter: none; } }

/* phones and portrait screens */
@media (max-aspect-ratio: 1/1) {
  .safe { inset: 7% 7% 6%; }
  .frame { inset: 2.6% 3%; }
  .scrim { background: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .2) 30%, rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, .86) 100%), radial-gradient(130% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .7) 100%); }
  .titleblock { max-width: 100%; right: 0; }
  .ttl { font-size: clamp(30px, 10vw, 54px); }
  .btns { right: 0; justify-items: stretch; }
  .mb { font-size: 16px; padding: 10px 18px 10px 30px; min-height: 26px; }
  .scenes .grid4 { top: 47%; gap: 12px 12px; width: 100%; }
  .gallery .pic { top: 58px; bottom: 110px; }
  .gallery .capt { bottom: 60px; }
  .features .panel { top: 56px; }
  .features .back-top { display: none; }
  .only-port { display: flex !important; }
  .setup .opts { top: 80px; right: 0; }
}
@media (max-width: 520px) {
  .slot { gap: 5px; }
  .cap i { font-size: 11px; }
  .credits .row { grid-template-columns: 1fr; gap: 2px; text-align: center; }
  .credits .row .r, .credits .row .n { text-align: center; }
  .page li { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .page li b { text-align: center; }
  .osdb { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .bg.loop2 .kb.a, .bg.loop2 .kb.b, .bg.loop1 .kb.a { animation-duration: 16s; }
  .grain { animation: none; }
}
