@font-face { font-family: Collage; src: url('./assets/collage.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url('./assets/figtree.ttf') format('truetype'); font-style: normal; font-weight: 300 900; font-display: swap; }
:root {
  color-scheme: dark;
  --ink: #fff2d3;
  --muted: #ecd8c6;
  --night: #241727;
  --focus: #fce1a0;
  --gutter: clamp(26px, 3.1vw, 54px);
  --edge-top: max(26px, env(safe-area-inset-top));
  --edge-bottom: max(20px, env(safe-area-inset-bottom));
  font-family: Figtree, sans-serif;
  font-synthesis: none;
  font-weight: 450;
  color: var(--ink);
  background: var(--night);
  scrollbar-color: #8c6455 var(--night);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; height: 100%; overscroll-behavior: none; }
body { overflow: hidden; }
button, input, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: .25em; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
::selection { background: #ffce7e; color: #392331; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.theatre { position: fixed; inset: 0; width: 100%; height: 100svh; isolation: isolate; overflow: clip; }
.scene-world { position: absolute; inset: 0; z-index: -2; isolation: isolate; }
.scene-world .artwork { z-index: 0; }
.optics-definitions { position: absolute; overflow: hidden; pointer-events: none; }
/* Apply optics AFTER the planes are composited. Per-cutout RGB splitting
   stacks semi-transparent alpha and outlines every mountain/character edge.
   Width alone includes landscape phones; keep this extra full-scene pass on
   larger fine-pointer screens. The underlying painted layers stay animated. */
@media (min-width: 801px) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .layered-home { filter: url('#lens-separation'); } }
.scene-world .hotspots { z-index: 3; }
.scene-world .tv-screen { z-index: 2; }
.layered-home { position: absolute; inset: 0; z-index: 1; pointer-events: none; visibility: hidden; }
.layered-home[data-ready="true"] { visibility: visible; }
.theatre[data-mode="home"][data-layers="ready"] .artwork { visibility: hidden; }
.theatre[data-mode="home"][data-layers="ready"][data-performing="true"] .artwork { visibility: visible; }
.set-layer { position: absolute; transform-origin: center; }
/* Bound each reflected plate to the visible set before compositing it. This
   viewport stays still while its registered rig and inner sky surface move. */
.scenery-viewport { position: absolute; inset: 0; overflow: clip; contain: paint; pointer-events: none; }
.set-image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; pointer-events: none; user-select: none; }
.contact-shadow { position: absolute; border-radius: 50%; background: radial-gradient(ellipse, #321c1c 4%, rgb(50 28 28 / .84) 32%, transparent 72%); pointer-events: none; mix-blend-mode: multiply; }
.ground-shadow { position: absolute; border-radius: 50%; background: radial-gradient(ellipse at 38% 50%, #382022 2%, rgb(56 32 34 / .72) 32%, transparent 72%); transform: rotate(7deg); transform-origin: 20% 50%; pointer-events: none; mix-blend-mode: multiply; }
.set-layer[data-layer="foreground"] .set-image { filter: blur(3.5px) saturate(.72) brightness(.76); }
.set-actor .hotspot { z-index: 5; }
.set-actor .tv-screen { z-index: 2; pointer-events: auto; }
.set-label { position: absolute; top: 8px; left: 8px; padding: 5px 8px; font-size: 12px; line-height: 1.2; color: #fff2d3; background: rgb(33 19 27 / .82); opacity: 0; pointer-events: none; }
.layered-home[data-debug="true"] .set-layer { outline: 1px dashed rgb(255 243 211 / .6); outline-offset: -1px; }
.layered-home[data-debug="true"] .set-label { opacity: 1; }
.trial-position { position: absolute; z-index: 3; width: 1px; border-left: 1px dashed rgb(255 237 202 / .9); display: none; pointer-events: none; }
.trial-position::before, .trial-position::after { content: ''; position: absolute; left: -10px; width: 20px; border-top: 1px solid currentColor; }
.trial-position::before { top: 0; } .trial-position::after { bottom: 0; }
.trial-label { position: absolute; top: 0; left: 12px; font-size: 12px; line-height: 1.3; width: 135px; padding: 6px 8px; background: rgb(33 19 27 / .82); }
.layered-home[data-debug="true"] .trial-position { display: block; }
.theatre[data-information="true"] .set-actor .hotspot { visibility: hidden; }
.lens-chroma { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .16; background: radial-gradient(ellipse at center, transparent 65%, rgb(108 73 185 / .28) 93%, rgb(255 153 102 / .3)); }
.artwork, .poster, .video-layers, .scene-video, .edge-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.artwork { z-index: -3; background: var(--night); }
.poster, .scene-video { display: block; object-fit: cover; object-position: 50% 50%; }
.scene-video { opacity: 0; pointer-events: none; }
.scene-video[data-visible="true"] { opacity: 1; }
.scene-video[data-clip="idle"], .scene-video[data-clip="rusty"], .scene-video[data-clip="zorp"] { transition: opacity 140ms ease-out; }
.edge-shade { z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(18 11 28 / .5), transparent 22%, transparent 68%, rgb(28 15 24 / .8)); }
.masthead { position: absolute; left: var(--gutter); right: var(--gutter); top: var(--edge-top); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { width: 140px; height: auto; display: block; flex-shrink: 0; }
.top-controls { display: flex; align-items: center; gap: 25px; }
.quiet-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 0; border: 0; background: transparent; white-space: nowrap; font-size: 14px; line-height: 1.3; text-shadow: 0 2px 8px rgb(0 0 0 / .78); }
.quiet-button:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.watch-button { border: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 11px 17px 11px 13px; color: #3b2630; background: var(--ink); border-radius: 3px; font-size: 14px; font-weight: 650; transition: background-color .16s; }
.watch-button:hover { background: #fffaf0; }
.watch-button .icon { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.sound-wave, .play-icon { display: none; }
.sound-button[aria-pressed="true"] .sound-wave { display: initial; }
.sound-button[aria-pressed="true"] .sound-slash { display: none; }
.film-title { position: absolute; left: 8%; top: 18%; margin: 0; width: 42%; color: #fff0cd; font-family: Collage, sans-serif; font-size: clamp(100px, 11.4vw, 188px); font-weight: 400; line-height: .94; letter-spacing: -.025em; pointer-events: none; text-shadow: 0 4px 20px rgb(0 0 0 / .18); }
.title-row { display: flex; align-items: baseline; white-space: nowrap; }
.title-row + .title-row { padding-left: .06em; }
.letter { display: inline-block; transform-origin: 50% 80%; will-change: transform; }
.ampersand { font-size: .61em; margin-left: .17em; }
.theatre[data-mode="home"] .film-title { left: var(--gutter); top: 17%; width: auto; font-size: clamp(82px, 8.2vw, 132px); }
.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot { position: absolute; width: 54px; height: 54px; padding: 0; border: 0; background: none; color: #fff7e4; transform: translate(-50%, -50%); pointer-events: auto; }
.hotspot:disabled { visibility: hidden; }
.hotspot-dot { display: block; width: 11px; height: 11px; border: 1px solid currentColor; border-radius: 50%; margin: auto; background: rgb(41 25 28 / .64); box-shadow: 0 2px 8px rgb(40 21 16 / .4); transition: transform .2s, background-color .2s; }
.hotspot:hover .hotspot-dot, .hotspot:focus-visible .hotspot-dot { transform: scale(1.3); background: #fff0cd; }
.hotspot-label { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); padding: 7px 10px; color: var(--ink); background: #39222e; font-size: 13px; white-space: nowrap; border-radius: 3px; opacity: 0; transition: opacity .16s; }
.hotspot:hover .hotspot-label, .hotspot:focus-visible .hotspot-label { opacity: 1; }
.home-actions { position: absolute; left: var(--gutter); bottom: calc(var(--edge-bottom) + 86px); }
.home-invitation { margin: 0 0 12px; font-size: clamp(20px, 1.75vw, 28px); line-height: 1.25; text-shadow: 0 2px 9px rgb(0 0 0 / .8); }
.home-invitation span { color: var(--muted); }
.home-links { display: flex; gap: 24px; }
.home-links .quiet-button { font-size: 14px; }
.home-links .quiet-button:disabled { display: none; }
.action-controls { position: absolute; left: var(--gutter); bottom: calc(var(--edge-bottom) + 67px); display: flex; gap: 22px; align-items: center; font-size: 14px; }
.action-controls > span { text-shadow: 0 2px 8px #21131b; }
.transport { position: absolute; bottom: var(--edge-bottom); left: var(--gutter); right: var(--gutter); display: flex; align-items: center; gap: 20px; min-height: 44px; }
.pause-button { min-width: 74px; justify-content: flex-start; }
.pause-button[aria-pressed="true"] .pause-icon { display: none; }
.pause-button[aria-pressed="true"] .play-icon { display: initial; }
.timeline { display: flex; width: clamp(100px, 13vw, 210px); }
#scrub { --played: 0%; display: block; width: 100%; height: 44px; margin: 0; appearance: none; background: transparent; cursor: pointer; accent-color: var(--ink); }
#scrub::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--ink) var(--played), rgb(255 237 215 / .4) var(--played)); }
#scrub::-webkit-slider-thumb { appearance: none; width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--ink); margin-top: -2.5px; }
#scrub::-moz-range-track { height: 2px; background: rgb(255 237 215 / .4); }
#scrub::-moz-range-progress { height: 2px; background: var(--ink); }
#scrub::-moz-range-thumb { width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--ink); }
.scroll-hint { font-size: 12px; color: var(--muted); text-shadow: 0 2px 8px #21131b; }
.end-button { margin-left: auto; }
.tv-screen { position: absolute; z-index: -2; display: block; padding: 0; border: 0; border-radius: 14%; overflow: hidden; background: #13141c; transform-origin: center; }
.tv-screen:focus-visible { z-index: 1; }
.tv-screen video { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.74) contrast(1.12) brightness(.87); pointer-events: none; }
.tv-glass { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 30px 8px rgb(12 9 18 / .6); background: linear-gradient(145deg, rgb(255 215 184 / .12), transparent 45%); }
.tv-tuning { position: absolute; inset: 0; background: #f4e9d6; pointer-events: none; transform: scaleY(0); opacity: 0; }
.load-note { position: absolute; left: var(--gutter); bottom: calc(var(--edge-bottom) + 65px); display: flex; gap: 18px; align-items: center; max-width: min(560px, calc(100% - var(--gutter) * 2)); padding: 10px 14px; background: #33202c; color: var(--muted); font-size: 13px; line-height: 1.5; }
.theatre[data-mode="home"] .load-note { left: auto; right: var(--gutter); top: calc(var(--edge-top) + 62px); bottom: auto; max-width: 310px; font-size: 12px; background: rgb(36 23 39 / .72); border-left: 1px solid rgb(255 240 205 / .3); }
.about-panel { position: absolute; z-index: 10; top: 0; bottom: 0; right: 0; width: min(510px, 100%); padding: 84px 42px 32px; overflow-y: auto; overscroll-behavior: contain; background: #f2e1bf; color: #39252a; box-shadow: -20px 0 50px rgb(28 12 17 / .24); }
.about-close { position: absolute; top: 24px; right: 25px; width: 44px; height: 44px; padding: 10px; border: 0; color: inherit; background: transparent; }
.about-panel h2 { font-size: clamp(27px, 2.5vw, 38px); font-weight: 650; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 24px; }
.about-panel p { font-size: 16px; line-height: 1.6; margin: 0 0 18px; }
.pair-notes { margin: 35px 0; }
.pair-notes > div { display: grid; grid-template-columns: 62px 1fr; gap: 16px; margin-top: 20px; }
.pair-notes dt { font-weight: 700; font-size: 16px; }
.pair-notes dd { margin: 0; font-size: 15px; line-height: 1.5; }
.about-watch { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; font-size: 14px; }
.about-watch .watch-button { color: #f8ebd1; background: #4b2e38; }
.about-footer { border-top: 1px solid #b9987c; margin-top: 38px; padding-top: 22px; }
.about-footer p, .about-footer nav { font-size: 13px; line-height: 1.65; }
.about-footer nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.about-panel :focus-visible { outline-color: #684350; }
.theatre[data-information="true"] .home-actions, .theatre[data-information="true"] .hotspots { visibility: hidden; }
.text-button { min-height: 32px; color: var(--ink); background: none; border: none; padding: 0; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.cinema { width: 100%; height: 100%; max-width: none; max-height: none; padding: 0; margin: 0; border: 0; color: var(--ink); background: #130e15; }
.cinema::backdrop { background: #130e15; }
.cinema-shell { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 78px var(--gutter) 45px; }
.cinema-header { position: absolute; top: var(--edge-top); left: var(--gutter); right: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cinema-header h2 { margin: 0; font-size: 15px; font-weight: 550; line-height: 1.5; }
.cinema-header h2 span { color: var(--muted); font-weight: 400; }
#film { display: block; width: 100%; max-width: 1600px; max-height: calc(100svh - 140px); margin: 0 auto; background: #000; }
.film-note, .film-fallback { text-align: center; margin: 18px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.noscript-message { position: absolute; left: var(--gutter); bottom: 100px; padding: 14px; background: #33202c; }
@media (max-width: 800px) {
  :root { --gutter: 22px; --edge-top: max(18px, env(safe-area-inset-top)); }
  .wordmark { width: 107px; }
  .top-controls { gap: 14px; }
  .sound-button { width: 44px; }
  .sound-button > span { display: none; }
  .watch-button { font-size: 13px; padding: 11px 13px 11px 10px; }
  .film-title, .theatre[data-mode="home"] .film-title { left: var(--gutter); top: 18%; width: auto; font-size: clamp(72px, 15vw, 108px); }
  .home-actions { bottom: calc(var(--edge-bottom) + 82px); }
  .home-invitation { font-size: 22px; }
  .home-links { gap: 20px; }
  .home-links .quiet-button { font-size: 13px; }
  .transport { gap: 12px; }
  .transport .quiet-button { font-size: 12px; }
  .pause-button { min-width: 48px; }
  .pause-button > span, .scroll-hint { display: none; }
  .timeline { width: min(150px, 28vw); }
  .theatre[data-mode="home"] .load-note { top: auto; bottom: calc(var(--edge-bottom) + 220px); }
  #about-toggle { font-size: 12px; }
  .top-controls { gap: 9px; }
  .about-panel { padding: 80px 28px 28px; }
  .load-note { flex-wrap: wrap; gap: 3px 16px; font-size: 12px; }
  .cinema-shell { padding: 84px 0 50px; }
  .cinema-header h2, .cinema-header .quiet-button { font-size: 13px; }
  .film-note, .film-fallback { margin-left: 22px; margin-right: 22px; }
}
@media (max-height: 650px) and (min-width: 801px) {
  .film-title { top: 17%; font-size: 112px; }
  .theatre[data-mode="home"] .film-title { top: 18%; font-size: 82px; }
  .home-invitation { font-size: 20px; }
  .home-actions { bottom: calc(var(--edge-bottom) + 60px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
/* Narrow-window safety, not the final mobile cinematic direction. The actor
   layout uses its own viewport frame; do not crop a desktop stage to a sliver. */
@media (max-width: 600px) {
  .masthead { align-items: flex-start; gap: 12px; }
  .wordmark { margin-top: 13px; width: 100px; }
  .top-controls { flex-wrap: wrap; justify-content: flex-end; max-width: 210px; gap: 0 12px; }
  .home-actions { bottom: calc(var(--edge-bottom) + 100px); max-width: 58%; }
  .home-invitation { font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
  .theatre[data-mode="home"] .load-note { left: var(--gutter); right: var(--gutter); top: auto; bottom: calc(var(--edge-bottom) + 44px); max-width: none; font-size: 10px; line-height: 1.3; padding: 5px 8px; }
  .action-controls { max-width: calc(100% - var(--gutter) * 2); bottom: calc(var(--edge-bottom) + 93px); gap: 12px; font-size: 12px; }
  .action-controls .quiet-button { font-size: 12px; }
}
