.foyer-canvas{position:absolute;inset:0;z-index:-3;opacity:0;transition:opacity .42s ease;pointer-events:none;background:#1a1412}
.foyer-canvas canvas,#cinema-canvas canvas{display:block;width:100%;height:100%}
.hero[data-spatial=true] .foyer-canvas{opacity:1}
.hero[data-spatial=true] .hero-picture{opacity:0}
.hero[data-spatial=true] .hero-wash{background:linear-gradient(90deg,#090706eb 0%,#0b0806c7 26%,#0d0a0873 46%,#0a08060a 68%),linear-gradient(0deg,#0b0908 0%,#0b090822 24%,transparent 73%)}
.hero[data-spatial=true] .frame-cut{border-color:#bca3985e;background:repeating-linear-gradient(180deg,transparent 0 3px,#00000013 4px 5px)}
.hero[data-spatial=true] .hero-edge{right:1px;color:#eddfce}
.light .foyer-canvas{display:none}
body:has(.cinema[open]){overflow:hidden}
dialog.cinema{position:fixed;inset:0;margin:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;border:0;background:#0d0b0a;overflow:auto;overscroll-behavior:none}
.cinema::backdrop{background:#090707}
.cinema-shell{width:100%;min-width:0;height:100%;min-height:440px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}
.cinema-header{padding:9px max(16px,3vw) 9px max(16px,3vw);display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid #453930;background:#12100e}
.cinema-header p{min-width:0;margin:0;display:flex;align-items:center;gap:12px;font:800 clamp(20px,3vw,34px)/1 var(--display);letter-spacing:.04em;text-transform:uppercase}
.cinema-header .marker{flex:none}
.cinema-actions{display:flex;flex:none;align-items:center;gap:8px}
.cinema-actions .close{color:#f4e3d3}
.cinema-viewport{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 60% 41%,#3e2b25 0,#1d1714 43%,#110f0d 80%)}
#cinema-canvas{position:absolute;inset:0;z-index:-4}
#cinema-flat{display:none;position:absolute;inset:0;z-index:-4;perspective:710px;perspective-origin:50% 43%;overflow:hidden;pointer-events:none}
.cinema-viewport[data-status=failed] #cinema-flat{display:block}
.cinema-flat-shot{position:absolute;top:44%;left:50%;width:min(53vw,650px);aspect-ratio:4/3;translate:-50% -50%;overflow:hidden;border:clamp(4px,1vw,12px) solid #514138;box-shadow:0 12px 34px #0504039c,0 0 42px #ff633e19;background:repeating-linear-gradient(130deg,#171311 0 6px,#26201d 7px 10px);display:grid;place-items:center}
.cinema-flat-shot img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.cinema-flat-shot span{font:800 clamp(66px,15vw,180px) var(--display);color:#ab8c7d}
.cinema-flat-shot[data-offset="-1"]{transform:translateX(-104%) translateZ(-160px) rotateY(23deg);filter:brightness(.63)}
.cinema-flat-shot[data-offset="1"]{transform:translateX(104%) translateZ(-160px) rotateY(-23deg);filter:brightness(.63)}
.cinema-flat-shot::after{content:'';position:absolute;inset:7px;border:1px solid #d2baa274;background:repeating-linear-gradient(0deg,#0806041a 0 1px,transparent 1px 5px)}
@media(max-width:530px){.cinema-flat-shot{width:77vw;top:42%}}
#cinema-canvas canvas{touch-action:pan-y;cursor:grab}
#cinema-canvas canvas:active{cursor:grabbing}
.cinema-bounds{position:absolute;inset:14px;z-index:-3;border:1px solid #ebc7a845;pointer-events:none}
.cinema-viewport::after{content:'';position:absolute;inset:0;z-index:-2;pointer-events:none;background:linear-gradient(0deg,#0e0a09 0%,#0e0a09c2 13%,#0e0a0900 44%),radial-gradient(ellipse at center,#1c110b00 40%,#0b090873 100%),repeating-linear-gradient(0deg,#0a07070b 0 1px,transparent 1px 5px)}
.cinema-timecode{margin:0;position:absolute;top:31px;right:max(28px,4vw);color:#e8cbbb;display:flex;gap:10px;align-items:center;font:13px var(--mono);pointer-events:none;padding:7px 8px;background:#1a120fc7}
.cinema-timecode i{height:7px;width:7px;background:var(--accent);border-radius:50%;box-shadow:0 0 13px var(--accent)}
.cinema-load{position:absolute;top:17%;left:50%;translate:-50% -50%;width:max-content;max-width:85%;margin:0;text-align:center;padding:11px 15px;background:#15110fe8;border-block:1px solid #966451;color:#f8e3d9;font:15px/1.5 var(--mono);pointer-events:none}
.cinema-viewport[data-status=ready] .cinema-load{display:none}
.cinema-scene{position:absolute;inset:auto max(24px,5.25%) max(24px,5.5%) max(24px,5.25%);display:flex;align-items:end;justify-content:space-between;gap:18px;pointer-events:none}
.cinema-scene .hot{pointer-events:auto}
.cinema-scene .hot:disabled{background:#2c2521;border-color:#857062;color:#eee1d4;opacity:1}
.cinema-copy{min-width:0}
.cinema-copy h2{font-size:clamp(44px,7vw,107px);text-transform:uppercase;overflow-wrap:anywhere;line-height:.82;max-width:16ch}
.cinema-copy .eye{color:#ffd7c7;letter-spacing:.1em;margin-bottom:10px}
#cinema-scene-note{color:#dfcabc;font:13px/1.35 var(--mono);letter-spacing:.06em;text-transform:uppercase;margin:10px 0 0}
#cinema-scene-note:empty{display:none}
.cinema-control{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:0 9px;border-top:1px solid #574238;background:#110d0b;padding:9px max(14px,3vw) max(9px,env(safe-area-inset-bottom))}
#cinema-film{position:relative;display:flex;flex:0 1 auto;width:max-content;min-width:0;max-width:min(calc(100% - 108px),920px);list-style:none;padding:2px 3px;margin:0;gap:4px;overflow-x:auto;scrollbar-color:#614738 transparent}
#cinema-film:empty{display:none}
#cinema-film li{flex:none}
#cinema-film button{height:44px;min-width:44px;display:grid;place-items:center;background:#201814;border:1px solid #ae897344;color:#e3c9b9;font:14px var(--mono)}
#cinema-film button:hover{border-color:#f0b29d}
#cinema-film button[aria-current=step]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#120c09)}
.cinema-control>button{width:44px;padding:0;min-height:44px;font-size:19px}
#cinema-hint{flex:1 0 100%;text-align:center;color:#c1a99c;font:12px/1.4 var(--mono);margin:7px 0 0}
@media(max-width:780px){
  .hero[data-spatial=true] .hero-wash{background:linear-gradient(0deg,#0b0908 3%,#0b0908e8 25%,#0b090864 49%,transparent 80%),linear-gradient(90deg,#09070666,transparent 60%)}
  .cinema-scene{bottom:27px}
}
@media(max-width:530px){
  .cinema-shell{min-height:420px}
  .cinema-header{padding-inline:11px;gap:6px}
  .cinema-header p{font-size:20px;gap:6px}
  .cinema-header .marker{width:19px;height:15px;border-inline-width:4px}
  .cinema-header .marker:after{inset:1px 4px;width:3px}
  .cinema-actions{gap:4px}
  .cinema-actions .outline{font:11px var(--mono);padding-inline:8px}
  .cinema-actions .close{width:39px}
  .cinema-scene{inset:auto 21px 24px;row-gap:11px;align-items:start;flex-direction:column}
  .cinema-copy h2{font-size:clamp(42px,11vw,60px)}
  .cinema-copy .eye{margin-bottom:5px}
  #cinema-scene-note{font-size:11px;margin-top:8px}
  .cinema-bounds{inset:9px}
  .cinema-timecode{right:20px;top:20px}
  .cinema-viewport::after{background:linear-gradient(0deg,#0e0a09 0%,#0e0a09df 15%,#0e0a0900 51%),radial-gradient(ellipse at center,#1c110b00 37%,#0b090861 100%)}
}
@media(max-width:355px){.cinema-header p{font-size:17px}.cinema-header .marker{display:none}.cinema-header{padding-inline:8px;gap:4px}}
@media(max-height:500px) and (orientation:landscape){
 .cinema-shell{min-height:340px}
 .cinema-header{padding-block:3px}
 .cinema-scene{inset:auto 30px 15px;align-items:end;flex-direction:row}
 .cinema-copy h2{font-size:44px}
 .cinema-bounds{inset:7px}
}
