/* A single practical-effects compositor. Real company objects cause physical cuts. */
.ps-transit{position:fixed;inset:0;width:100%;height:100%;max-height:none;max-width:none;margin:0;padding:0;border:0;overflow:hidden;isolation:isolate;pointer-events:none!important;background:transparent;color:#f5e5bb;z-index:2147483000;box-sizing:border-box}
.ps-transit::backdrop{background:transparent;pointer-events:none}
.ps-transit-leaf,.ps-transit-split{position:absolute;inset:0;will-change:transform;transform:translate3d(105%,0,0)}
.ps-transit-leaf{background:#121715}
.ps-transit-split{display:none}
.ps-transit-prop{position:absolute;object-fit:contain;pointer-events:none;filter:drop-shadow(0 12px 18px #0009);will-change:transform;left:50%;top:50%;width:clamp(120px,34vmin,280px);height:auto;transform:translate(-50%, -50%)}
.ps-transit[data-direction=out] .ps-transit-leaf{animation:ps-transit-shut .46s cubic-bezier(.46,.05,.25,1) both}
.ps-transit[data-direction=in] .ps-transit-leaf{animation:ps-transit-open .54s cubic-bezier(.1,.65,.25,1) both}
.ps-transit[data-direction=in] .ps-transit-prop{animation:ps-transit-prop-release .48s ease-in both}
@keyframes ps-transit-shut{0%,14%{transform:translate3d(105%,0,0)}82%{transform:translate3d(-1.8%,0,0)}100%{transform:translate3d(0,0,0)}}
@keyframes ps-transit-open{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(-105%,0,0)}}
@keyframes ps-transit-prop-release{0%{transform:translate(-50%,-50%) rotate(-2deg)}100%{transform:translate(-165vw,-35%) rotate(-16deg)}}
/* Office: painted timber door, brass handle and recessed panels. No artificial room image. */
.ps-transit[data-mode=door] .ps-transit-leaf{background:repeating-linear-gradient(90deg,#133638 0 13%,#0a2526 13.2% 13.55%,#1e4141 13.75% 14%);border-left:11px solid #9f6944;box-shadow:inset 0 0 0 8px #0d2425,inset 0 0 0 11px #2e4b4c}
.ps-transit[data-mode=door] .ps-transit-leaf:after{content:'';position:absolute;top:51%;right:10%;width:clamp(28px,7vmin,60px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 35% 30%,#edcf83,#ab8142 32%,#5c3f25 69%,#d29f5e 72%,#533c22 85%);box-shadow:5px 8px 8px #0008}
.ps-transit[data-mode=door] .prop-0{left:24%;top:54%;width:clamp(100px,23vmin,180px);transform:translate(-50%,-50%) rotate(-7deg)}
.ps-transit[data-mode=door][data-direction=out] .prop-0{animation:ps-paper-catch .46s both}
@keyframes ps-paper-catch{0%{transform:translate(120vw,-50%) rotate(18deg)}80%{transform:translate(-55%,-50%) rotate(-9deg)}100%{transform:translate(-50%,-50%) rotate(-7deg)}}
/* Yard/garage: a segmented roller shutter, then it lifts away. */
.ps-transit[data-mode=gate] .ps-transit-leaf{background:repeating-linear-gradient(0deg,#303932 0 28px,#536052 29px,#141d19 32px,#252e28 34px);border-bottom:9px solid #b48c47}
.ps-transit[data-mode=gate][data-direction=out] .ps-transit-leaf{animation:ps-gate-drop .46s cubic-bezier(.65,.08,.3,1) both}
.ps-transit[data-mode=gate][data-direction=in] .ps-transit-leaf{animation:ps-gate-lift .54s cubic-bezier(.15,.75,.22,1) both}
.ps-transit[data-mode=gate] .prop-0{top:68%;width:clamp(170px,38vmin,330px)}
.ps-transit[data-mode=gate][data-direction=out] .prop-0{animation:ps-park .46s both}
@keyframes ps-gate-drop{0%{transform:translateY(-105%)}85%{transform:translateY(1.4%)}100%{transform:none}}
@keyframes ps-gate-lift{from{transform:none}to{transform:translateY(-105%)}}
@keyframes ps-park{0%{transform:translate(-150vw,-50%) rotate(4deg)}82%{transform:translate(-48%,-50%) rotate(-2deg)}100%{transform:translate(-50%,-50%) rotate(0)}}
/* Studios: film gate closes with a genuine PS clapper and cardboard interruption. */
.ps-transit[data-mode=slate] .ps-transit-leaf{inset:0 0 50%;background:#090a09;border-bottom:4px solid #b5a37b}
.ps-transit[data-mode=slate] .ps-transit-split{display:block;inset:50% 0 0;background:#090a09;border-top:4px solid #b5a37b}
.ps-transit[data-mode=slate][data-direction=out] .ps-transit-leaf{animation:ps-gate-drop .46s both}
.ps-transit[data-mode=slate][data-direction=out] .ps-transit-split{animation:ps-film-bottom .46s both}
.ps-transit[data-mode=slate][data-direction=in] .ps-transit-leaf{animation:ps-gate-lift .54s both}
.ps-transit[data-mode=slate][data-direction=in] .ps-transit-split{animation:ps-film-bottom-out .54s both}
.ps-transit[data-mode=slate] .prop-0{width:clamp(150px,37vmin,310px);z-index:2}
.ps-transit[data-mode=slate] .prop-1{width:clamp(55px,16vmin,115px);left:66%;top:65%;z-index:3}
.ps-transit[data-mode=slate][data-direction=out] .prop-0{animation:ps-slate-impact .46s both}
.ps-transit[data-mode=slate][data-direction=out] .prop-1{animation:ps-crate-impact .46s both}
@keyframes ps-film-bottom{0%{transform:translateY(105%)}82%{transform:translateY(-2%)}100%{transform:none}}
@keyframes ps-film-bottom-out{from{transform:none}to{transform:translateY(105%)}}
@keyframes ps-slate-impact{0%{transform:translate(-50%,-145vh) rotate(-18deg)}68%{transform:translate(-50%,-46%) rotate(5deg)}83%{transform:translate(-50%,-50%) rotate(-3deg)}100%{transform:translate(-50%,-50%) rotate(0)}}
@keyframes ps-crate-impact{0%{transform:translate(100vw,-50%) rotate(50deg)}69%{transform:translate(-54%,-50%) rotate(-10deg)}100%{transform:translate(-50%,-50%) rotate(8deg)}}
/* Delivery truck carries a real crate across a continuous asphalt surface. */
.ps-transit[data-mode=truck] .ps-transit-leaf{background:linear-gradient(#282d2c 0 48%,#070908 48% 49%,#252625 49% 100%);border-block-end:5px solid #b18b41}
.ps-transit[data-mode=truck] .ps-transit-leaf:after{content:'';position:absolute;top:78%;left:0;right:0;height:5px;background:repeating-linear-gradient(90deg,#d0b15d 0 9%,transparent 9% 15%)}
.ps-transit[data-mode=truck] .prop-0{width:clamp(195px,49vmin,420px);top:53%}
.ps-transit[data-mode=truck] .prop-1{width:clamp(45px,12vmin,92px);top:74%;left:78%}
.ps-transit[data-mode=truck][data-direction=out] .prop-0{animation:ps-park .46s both}
.ps-transit[data-mode=truck][data-direction=out] .prop-1{animation:ps-crate-impact .46s both}
/* Reports: manila stock slides out of the cabinet. */
.ps-transit[data-mode=folder] .ps-transit-leaf{background:repeating-linear-gradient(0deg,#d2bd92 0 68px,#c5af83 69px,#d2bd92 70px);border-left:10px solid #9a8055;box-shadow:inset 0 0 0 16px #bba47c}
.ps-transit[data-mode=folder][data-direction=out] .prop-0{animation:ps-paper-catch .46s both}
.ps-transit[data-mode=crate] .ps-transit-leaf{background:linear-gradient(90deg,#18140d,#30271a 40%,#18140d);border-left:6px solid #c5a358}
.ps-transit[data-mode=crate][data-direction=out] .prop-0{animation:ps-crate-impact .46s both}
.ps-transit[data-mode=crate] .prop-1{width:clamp(65px,14vmin,125px);left:68%;top:65%}
.ps-transit[data-mode=crate][data-direction=out] .prop-1{animation:ps-paper-catch .46s both}
@media(prefers-reduced-motion:reduce){.ps-transit{display:none!important}.ps-transit *{animation:none!important}}

/* A physical front entrance: push into the real compound plate, then the
   weathered teal door covers the cut. Return walks out of the office instead
   of falsely entering through the garage shutter. */
.ps-transit:is([data-mode=hq-front-door],[data-mode=hq-door-return]) .ps-transit-split{
 display:block;background:repeating-linear-gradient(90deg,#192e2c 0 13.4%,#10221f 13.5% 14%,#24423d 14.2% 14.5%);
 box-shadow:inset 0 0 0 9px #60452d,inset 0 0 0 15px #122422,inset 0 0 0 20px #36514a;
}
.ps-transit:is([data-mode=hq-front-door],[data-mode=hq-door-return]) .ps-transit-split::after{
 content:"";position:absolute;right:11%;top:54%;width:clamp(26px,6vmin,50px);aspect-ratio:1;border-radius:50%;
 background:radial-gradient(circle at 34% 28%,#fff0b1,#b98b48 30%,#684c26 65%,#c59556 68%,#513821 83%);box-shadow:5px 8px 9px #0008
}
.ps-transit[data-mode=hq-front-door] .ps-transit-leaf{background:url('/assets/studios-brand/hq/yard-compound-day.webp') 25% 55%/cover no-repeat;transform-origin:26% 58%}
.ps-transit[data-mode=hq-front-door][data-lighting=night] .ps-transit-leaf{background-image:url('/assets/studios-brand/hq/yard-compound-night.webp')}
.ps-transit[data-mode=hq-front-door][data-direction=out] .ps-transit-leaf{animation:hq-front-approach .46s cubic-bezier(.35,.1,.6,1) both}
.ps-transit[data-mode=hq-front-door][data-direction=out] .ps-transit-split{animation:hq-front-close .46s cubic-bezier(.35,.06,.32,1) both}
.ps-transit[data-mode=hq-door-return] .ps-transit-leaf,.ps-transit[data-direction=in]:is([data-mode=hq-front-door],[data-mode=hq-door-return]) .ps-transit-leaf{display:none}
.ps-transit[data-mode=hq-door-return][data-direction=out] .ps-transit-split{animation:ps-transit-shut .46s cubic-bezier(.46,.05,.25,1) both}
.ps-transit[data-direction=in]:is([data-mode=hq-front-door],[data-mode=hq-door-return]) .ps-transit-split{animation:ps-transit-open .54s cubic-bezier(.1,.65,.25,1) both}
@keyframes hq-front-approach{from{transform:scale(1)}to{transform:scale(2.65)}}
@keyframes hq-front-close{0%,25%{transform:translate3d(105%,0,0)}86%{transform:translate3d(-1%,0,0)}100%{transform:none}}
@media(prefers-reduced-motion:reduce){.ps-transit{display:none!important}}

/* An actual set plate travels through a film gate; the image is never stretched
   or used to replace the destination's interactive camera. */
.ps-transit-photo{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;pointer-events:none;will-change:transform,clip-path;background:#090a09;z-index:2}
.ps-transit-photo img{display:block;width:100%;height:100%;object-fit:contain;min-width:0;min-height:0}
.ps-transit-photo-label{position:absolute;left:clamp(16px,4vw,56px);bottom:clamp(16px,5vh,60px);color:#ead9ac;font:700 10px/1.4 ui-monospace,monospace;letter-spacing:.09em;background:#15120ddd;padding:9px 13px;border-left:3px solid #ffd03c}
.ps-transit-photo-label strong{display:block;font:800 clamp(16px,3vw,27px)/1.15 Arial,sans-serif;letter-spacing:-.035em;margin-top:5px;color:#fff5db}
.ps-transit[data-mode=film-set] .ps-transit-leaf{background:#090a09}
.ps-transit[data-mode=film-set][data-direction=out] .ps-transit-photo{animation:ps-film-location-in .46s cubic-bezier(.22,.7,.18,1) both}
.ps-transit[data-mode=film-set][data-direction=in] .ps-transit-photo{animation:ps-film-location-out .54s cubic-bezier(.2,.68,.2,1) both}
.ps-transit[data-mode=film-set][data-direction=in] .ps-transit-leaf{display:none}
@keyframes ps-film-location-in{0%{clip-path:inset(50% 0 50%);transform:scale(1.07)}70%,100%{clip-path:inset(0);transform:scale(1)}}
@keyframes ps-film-location-out{0%,12%{clip-path:inset(0);transform:scale(1)}100%{clip-path:inset(0 0 0 100%);transform:translateX(8%) scale(1.05)}}
/* Report transfer: the real exhibit is carried inside a heavy manila folder.
   The folder drops out of the way of the live inspection station on arrival. */
.ps-transit[data-mode=evidence-transfer] .ps-transit-leaf{background:#a59169;box-shadow:inset 0 0 0 10px #796443}
.ps-transit[data-mode=evidence-transfer] .ps-transit-photo{inset:clamp(12px,3vmin,35px);background:#eddfbd;border:clamp(10px,3vmin,30px) solid #f4e9ce;box-shadow:0 6px 0 #806c4b,0 15px 36px #0006;transform-origin:50% 80%}
.ps-transit[data-mode=evidence-transfer] .ps-transit-photo img{width:100%;height:100%;max-height:78vh;max-width:90vw;object-fit:contain}
.ps-transit[data-mode=evidence-transfer][data-plate-kind=prop] .ps-transit-photo img{width:83%;height:82%;filter:drop-shadow(0 14px 12px #533c244a)}
.ps-transit[data-mode=evidence-transfer] .ps-transit-photo-label{background:#392b1ddd;top:clamp(12px,3vh,36px);bottom:auto}
.ps-transit[data-mode=evidence-transfer] .ps-transit-flap{position:absolute;z-index:3;inset:72% 0 0;background:linear-gradient(150deg,#d8c59b,#ad9563);clip-path:polygon(0 18%,16% 18%,20% 0,48% 0,52% 18%,100% 18%,100% 100%,0 100%);box-shadow:inset 0 -10px 0 #8a734c;transform-origin:center bottom;pointer-events:none}
.ps-transit[data-mode=evidence-transfer][data-direction=out] .ps-transit-photo{animation:ps-evidence-seat .46s cubic-bezier(.23,.7,.2,1) both}
.ps-transit[data-mode=evidence-transfer][data-direction=out] .ps-transit-flap{animation:ps-evidence-cover .46s cubic-bezier(.4,.05,.32,1) both}
.ps-transit[data-mode=evidence-transfer][data-direction=in] .ps-transit-photo{animation:ps-evidence-unfile .54s cubic-bezier(.2,.7,.22,1) both}
.ps-transit[data-mode=evidence-transfer][data-direction=in] .ps-transit-flap{animation:ps-evidence-uncover .54s cubic-bezier(.15,.65,.2,1) both}
.ps-transit[data-mode=evidence-transfer][data-direction=in] .ps-transit-leaf{animation:ps-evidence-uncover .54s cubic-bezier(.15,.65,.2,1) both}
@keyframes ps-evidence-seat{0%{transform:translateY(-110%) rotate(-8deg)}75%,100%{transform:none}}
@keyframes ps-evidence-cover{0%,52%{transform:translateY(110%) rotate(3deg)}90%,100%{transform:none}}
@keyframes ps-evidence-uncover{0%{transform:none}100%{transform:translateY(110%)}}
@keyframes ps-evidence-unfile{0%,10%{transform:none}100%{transform:translateY(125%) rotate(5deg)}}
@media(prefers-reduced-motion:reduce){.ps-transit{display:none!important}.ps-transit-photo,.ps-transit-flap{animation:none!important}}


/* Closed pose is present before the destination can paint. Use the same
   animation timeline at both sides, holding frame zero until readiness. */
html[data-ps-department-arrival]{background:#0b0b09!important}
html[data-ps-department-arrival] body{visibility:hidden!important}
html[data-ps-department-arrival] #ps-department-first-stage{visibility:visible!important}
.ps-transit[data-direction=in]:not([data-arrival-ready=true]) *{animation-play-state:paused!important}
.ps-transit[data-direction=in][data-mode=door] .prop-0{animation-name:ps-door-release}
.ps-transit[data-direction=in][data-mode=gate] .prop-0{animation-name:ps-gate-prop-release}
.ps-transit[data-direction=in][data-mode=truck] .prop-0{animation-name:ps-gate-prop-release}
.ps-transit[data-direction=in][data-mode=slate] .prop-0{animation-name:ps-slate-release}
.ps-transit[data-direction=in]:is([data-mode=slate],[data-mode=truck],[data-mode=crate]) .prop-1{animation-name:ps-box-release}
.ps-transit[data-direction=in][data-mode=folder] .prop-0{animation-name:ps-door-release}
.ps-transit[data-direction=in][data-mode=crate] .prop-0{animation-name:ps-box-release}
.ps-transit[data-direction=in][data-mode=crate] .prop-1{animation-name:ps-door-release}
@keyframes ps-door-release{from{transform:translate(-50%,-50%) rotate(-7deg)}to{transform:translate(-165vw,-35%) rotate(-16deg)}}
@keyframes ps-gate-prop-release{from{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-165vw,-35%) rotate(-8deg)}}
@keyframes ps-slate-release{from{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-165vw,-35%) rotate(-13deg)}}
@keyframes ps-box-release{from{transform:translate(-50%,-50%) rotate(8deg)}to{transform:translate(-165vw,-35%) rotate(-16deg)}}
/* The snap is at 68% of 460ms (313ms): the mastered cue's transient is 310ms. */
.ps-mechanical-slate svg{display:block;width:100%;height:auto;overflow:visible}
.ps-slate-arm{transform-origin:22px 39px;transform:rotate(0)}
.ps-transit[data-direction=out] .ps-slate-arm{animation:ps-slate-hinge .46s linear both}
@keyframes ps-slate-hinge{0%,42%{transform:rotate(-23deg)}62%{transform:rotate(-18deg)}68%{transform:rotate(0)}74%{transform:rotate(-2deg)}82%,100%{transform:rotate(0)}}
@media(prefers-reduced-motion:reduce){html[data-ps-department-arrival] body{visibility:visible!important}}
