/* Cinematic windows: the scene stays in viewport space as the page reveals it. */
.scene-window {
  position:relative;isolation:isolate;overflow:hidden;overflow:clip;
  width:100%;max-width:none;min-height:0;height:clamp(310px,48svh,560px);
  margin:0;border-radius:0;opacity:1;mask-image:none;-webkit-mask-image:none;
  background-attachment:fixed;border-block:1px solid #c1a7f51a;
}
.scene-window.scene-enhanced{background-image:none!important}
.scene-backdrop{position:absolute;left:-36px;top:0;width:calc(100% + 72px);height:calc(var(--scene-vh,100svh) + 120px);background-position:center;background-size:cover;background-repeat:no-repeat;transform:translate3d(var(--scene-x,0px),var(--scene-y,0px),0);will-change:transform;z-index:-2}
.scene-window::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(0deg,#0c091987,transparent 55%,#0c091929),radial-gradient(500px circle at var(--scene-light-x,50%) var(--scene-light-y,50%),#b78cff17,transparent 70%)}
.scene-window::after{content:'';position:absolute;left:0;bottom:0;height:2px;width:100%;transform:scaleX(var(--scene-progress,0));transform-origin:left;background:linear-gradient(90deg,#8f56eb,#7df9ff);opacity:.7;pointer-events:none}
.scene-frame{position:absolute;inset:20px 28px;pointer-events:none;background:linear-gradient(#d1bbff80,#d1bbff80) left top/24px 1px no-repeat,linear-gradient(#d1bbff80,#d1bbff80) left top/1px 24px no-repeat,linear-gradient(#d1bbff80,#d1bbff80) right bottom/24px 1px no-repeat,linear-gradient(#d1bbff80,#d1bbff80) right bottom/1px 24px no-repeat}
.scene-caption{position:absolute;left:max(6vw,28px);bottom:34px;right:28px;color:white;text-shadow:0 2px 20px #0008;pointer-events:none;transform:translateY(calc((1 - var(--scene-reveal,1))*12px));opacity:var(--scene-reveal,1)}
.scene-caption small{display:block;font:9px/1.8 monospace;letter-spacing:2.3px;color:#d0c0e9;margin-bottom:10px}
.scene-caption strong{font:500 clamp(23px,3vw,42px)/1.1 Arial,sans-serif;letter-spacing:-1px}
/* Remove the old large stacks of padding between each story beat. */
section.p-5{padding:52px 28px!important}
#history{padding-top:62px!important}
#UEFN{padding:52px 28px!important}
.new-section{padding:64px 25px}
.release-section{margin-top:0;padding-top:58px}
.history{padding:18px}
.history .d-sm-flex{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center}
.history .d-sm-flex>div{min-width:0;width:auto;margin:0}
.history .d-sm-flex>.p-4{padding:12px!important}
.history .d-sm-flex>.p-2{padding:4px!important}
.history .bg-dark.p-5{padding:28px!important}
section.bg-dark,section.bg-secondary{margin-block:16px}
.inspiration-section{padding:48px 24px!important}
#history video{height:auto;aspect-ratio:16/10;object-fit:cover}
/* Own posters stay visible before the external player is requested. */
.video-embed{width:100%;min-width:0;position:relative;line-height:1.4}
.video-stage{position:relative;width:100%;aspect-ratio:16/9;min-height:200px;background:#080610;overflow:hidden;border:1px solid #aa82eb33;border-radius:12px;box-shadow:0 12px 40px #0004}
.video-stage iframe,.video-stage>div,.video-stage video{position:absolute!important;inset:0;width:100%!important;height:100%!important;max-width:none!important;min-height:200px;border:0;border-radius:0;margin:0;box-shadow:none;object-fit:contain}
.video-preview{position:absolute;inset:0;width:100%;height:100%;display:block;padding:0;margin:0;border:0;border-radius:0;background:#0b0815;overflow:hidden;color:white;text-align:left;cursor:pointer}
.video-preview>img{width:100%;height:100%;object-fit:cover;filter:brightness(.76);transition:transform .6s,filter .3s}
.video-preview:hover>img,.video-preview:focus-visible>img{transform:scale(1.035);filter:brightness(.92)}
.video-preview::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#070510c9,transparent 70%);pointer-events:none}
.video-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:62px;height:62px;border:1px solid #dac5ff9c;border-radius:50%;background:#2a1748c9;color:white;display:grid;place-items:center;font-size:20px;backdrop-filter:blur(8px);z-index:1;box-shadow:0 0 35px #9458db4d}
.video-preview-title{position:absolute;bottom:18px;left:20px;right:16px;z-index:1;font:13px/1.5 Arial,sans-serif;font-weight:600;letter-spacing:0}
.video-external{display:inline-block;margin-top:11px;color:#ad94d4;font-size:10px;min-height:24px;padding-block:4px}
.video-status{display:block;color:#aa9aba;font-size:10px;line-height:1.6;margin-top:4px}
.video-embed.is-loading .video-play{opacity:.5}
.modal-media>video[data-playback]{width:100%;height:auto!important;max-height:70svh;aspect-ratio:16/9;display:block;background:#080610;object-fit:contain;margin-bottom:18px}
.modal-media .video-embed{margin-bottom:22px}
.modal-media .video-stage iframe{margin-bottom:0}
.portfolio-modal .modal-dialog{max-width:960px}
.portfolio-modal .modal-content{overflow:hidden}
@media(max-width:767px){
  section.p-5,#UEFN{padding:36px 18px!important}
  #history{padding-top:44px!important}
  .new-section{padding:44px 20px}
  .scene-window{height:clamp(250px,43svh,400px);background-attachment:scroll;min-height:0;margin:0}
  .scene-caption{left:25px;bottom:30px}
  .scene-caption small{font-size:8px;letter-spacing:1.5px}
  .scene-frame{inset:15px}
  .history{padding:15px}
  .history .d-sm-flex{grid-template-columns:minmax(0,1fr);gap:18px}
  .history .d-sm-flex>.p-4,.history .d-sm-flex>.p-2{padding:3px!important}
  .history .bg-dark.p-5{padding:18px!important}
  .video-stage{min-height:200px}
  .video-preview-title{font-size:12px;left:15px;bottom:15px}
  .video-play{width:54px;height:54px}
  .producer-layout{gap:22px}
  .portfolio-grid{gap:18px}
}
.motion-off .scene-backdrop{height:100%;transform:none!important;will-change:auto}
.motion-off .scene-caption{transform:none;opacity:1}
@media(prefers-reduced-motion:reduce){.scene-backdrop{height:100%;transform:none!important;will-change:auto}.scene-caption{transform:none;opacity:1}.video-preview>img{transition:none}}
/* One document scroller: original overflow-x:hidden + height:100% created a
   nested body scroller, hiding scroll events from all of the page effects. */
html,body{height:auto;min-height:100%;overflow-x:clip;overflow-y:visible}

/* Native clipped fixed layers: no scroll handlers or compensating transforms. */
.scene-window{clip-path:inset(0);background-attachment:scroll;transform:none!important;contain:none}
.scene-backdrop{position:fixed;inset:0;left:0;top:0;width:100%;height:100vh;height:100lvh;transform:none!important;will-change:auto;background-position:center;background-size:cover;pointer-events:none}
.scene-caption{opacity:1;transform:none}
.scene-window::after{transform:none;opacity:.35}
.scene-window::before{background:linear-gradient(0deg,#0c09199c,transparent 65%,#0c091929)}
.motion-off .scene-backdrop{position:absolute;inset:0;height:100%}
@media(hover:none),(pointer:coarse),(max-width:767px){.scene-backdrop{position:absolute;inset:0;height:100%;background-position:center}.scene-window{clip-path:none}.scene-caption{bottom:28px}}
@media(prefers-reduced-motion:reduce){.scene-backdrop{position:absolute;inset:0;height:100%}.scene-window{clip-path:none}}
