:root { color-scheme:dark; background:#000; color:#f3e9d6; font-family:system-ui,sans-serif; --ivory:#f3e9d6; }
* { box-sizing:border-box; }
body,p,h1 { margin:0; }
[hidden] { display:none !important; }
#stage { position:relative; isolation:isolate; width:100%; height:100vh; height:100dvh; min-height:240px; overflow:hidden; background:#000; }
#film,.drape,#curtain,.opening { position:absolute; inset:0; width:100%; height:100%; }
#film { object-fit:contain; background:#000; visibility:hidden; }
#stage[data-state="playing"] #film,#stage[data-state="paused"] #film { visibility:visible; }
.drape { pointer-events:none; overflow:hidden; }
#curtain { display:block; opacity:0; }
.drape.rendered #curtain { opacity:1; }
.drape.rendered .cloth { visibility:hidden; }
.cloth { position:absolute; inset:0 50% 0 0; background:linear-gradient(175deg,#54777532,transparent 34%,#03161775),repeating-linear-gradient(93deg,#041e20 0%,#0b3436 6%,#144647 9%,#0a3032 13%,#031819 17%,#062729 20%); box-shadow:inset -7px 0 14px #00101190; transform:translateX(calc(-101% * var(--open,0))); }
.cloth.right { inset:0 0 0 50%; transform:translateX(calc(101% * var(--open,0))) scaleX(-1); }
.opening { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px; text-align:center; background:radial-gradient(ellipse at center,#00141365,transparent 68%); }
.eyebrow { display:flex; align-items:center; gap:1.1em; font-size:clamp(.63rem,1vw,.76rem); font-weight:550; text-transform:uppercase; letter-spacing:.24em; }
.eyebrow::before,.eyebrow::after { content:""; width:2.6em; height:1px; background:currentColor; opacity:.48; }
h1 { margin:.15em 0 .36em; font:400 clamp(4rem,12vw,12rem)/1.05 Georgia,'Times New Roman',serif; letter-spacing:-.065em; text-shadow:0 2px 16px #05181950; }
button { color:inherit; font:500 .88rem/1 system-ui,sans-serif; cursor:pointer; touch-action:manipulation; min-height:44px; min-width:44px; }
button:focus-visible { outline:2px solid var(--ivory); outline-offset:4px; }
.launch { border:1px solid #f7eedb; border-radius:100px; padding:0 1.65rem; min-height:48px; background:var(--ivory); color:#092b2b; display:flex; align-items:center; gap:.7rem; transition:background 140ms,transform 140ms; }
.play-icon { width:0; height:0; border:5px solid transparent; border-left:8px solid currentColor; border-right:0; }
button:active { transform:scale(.97); }
@media(hover:hover) { .launch:hover { background:#fff9ed; } #transport button:hover,#full:hover { background:#263433; } }
#message { max-width:min(32rem,85vw); font-size:.88rem; line-height:1.5; margin-top:.8rem; }
#message:empty { display:none; }
#transport,#full { position:absolute; bottom:max(16px,env(safe-area-inset-bottom)); }
#transport { left:max(16px,env(safe-area-inset-left)); display:flex; gap:6px; }
#transport button,#full { border:1px solid #f3e9d63d; border-radius:100px; background:#071110dc; color:var(--ivory); }
#transport button { padding:0 18px; }
#full { right:max(16px,env(safe-area-inset-right)); display:grid; place-items:center; }
#stage.quiet #transport:not(:focus-within),#stage.quiet #full:not(:focus-visible) { opacity:0; pointer-events:none; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
noscript { position:absolute; left:1rem; bottom:1rem; }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; } button:active { transform:none; } }
