/* =============== GOKCHE · painted scenes behind each world's opening =============== */
.world-hero.has-scene{isolation:isolate;min-height:94svh}
.scene{position:absolute;top:0;bottom:-6vh;left:50%;width:100vw;margin-left:-50vw;z-index:-1;overflow:hidden;pointer-events:none;
  -webkit-mask-image:linear-gradient(to bottom,#000 58%,transparent 100%);mask-image:linear-gradient(to bottom,#000 58%,transparent 100%)}
.scene-in{position:absolute;inset:-5% -4%;will-change:transform;transform:translate3d(var(--px,0px),var(--py,0px),0)}
.scene img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--sp,50% 45%);opacity:0;transform:scale(1.12);filter:blur(10px) brightness(.55);transition:opacity 1.4s,transform 2.8s var(--ease),filter 2.2s var(--ease)}
.scene.ld img{opacity:1;transform:scale(1.02);filter:none}
.scene::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(7,10,34,.88) 0%,rgba(7,10,34,.62) 36%,rgba(7,10,34,.1) 72%),linear-gradient(to bottom,rgba(7,10,34,.5),transparent 26%)}
.scene::after{content:"";position:absolute;inset:0;z-index:1;background:radial-gradient(ellipse at var(--lx,70%) var(--ly,35%),rgba(255,243,207,.18),transparent 45%);mix-blend-mode:screen;transition:background .3s}
.scene-tw{position:absolute;z-index:2;width:var(--s,14px);height:var(--s,14px);margin:calc(var(--s,14px) / -2);opacity:0;animation:scTw var(--t,4s) var(--d,0s) ease-in-out infinite}
.scene-tw::before,.scene-tw::after{content:"";position:absolute;left:50%;top:50%;background:#fffaf0;border-radius:99px;transform:translate(-50%,-50%);box-shadow:0 0 10px #fff3cf,0 0 20px rgba(185,167,234,.8)}
.scene-tw::before{width:100%;height:2px}.scene-tw::after{width:2px;height:100%}
@keyframes scTw{0%,100%{opacity:0;transform:scale(.3) rotate(0)}50%{opacity:1;transform:scale(1) rotate(90deg)}}
.scene-cap{position:absolute;right:clamp(16px,3vw,40px);bottom:12vh;z-index:2;font:italic 400 13px var(--serif);letter-spacing:.08em;color:rgba(246,241,234,.55)}
/* the painted scene replaces the small painter homage */
.has-scene .p-mark{display:none}
@media (max-width:820px){
  .scene::before{background:linear-gradient(to top,rgba(7,10,34,.94) 0%,rgba(7,10,34,.74) 50%,rgba(7,10,34,.3) 80%),linear-gradient(to bottom,rgba(7,10,34,.55),transparent 22%)}
  .scene-cap{display:none}
}
@media (prefers-reduced-motion:reduce){.scene img{transition:opacity 1s}.scene-tw{animation:none}}
/* wide screens: the painting moves to the right, the words keep the left */
@media (min-width:900px){
  .scene-in{left:24%;right:-6%}
  .scene img{-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 26%);mask-image:linear-gradient(90deg,transparent 0%,#000 26%)}
  .scene::before{background:linear-gradient(90deg,rgba(7,10,34,.7) 0%,rgba(7,10,34,.35) 34%,transparent 60%),linear-gradient(to bottom,rgba(7,10,34,.5),transparent 26%)}
}
@media (min-width:900px){
  body[data-world="wish"] .scene-in,body[data-world="songs"] .scene-in{left:34%;right:-10%}
}

/* ---------- living scenes: depth, tilt, particles and a map for interactive things ---------- */
.scene{perspective:1400px}
.scene-in{transform:translate3d(var(--px,0px),var(--py,0px),0) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));transform-origin:60% 50%}
.scene-map{position:absolute;pointer-events:none}
.scene-map>*{position:absolute;pointer-events:auto}
.scene-map>.scene-tw{pointer-events:none}
.scene-fx{position:absolute;inset:-4%;width:108%;height:108%;pointer-events:none}
.fx-back{z-index:2}.fx-front{z-index:4;filter:blur(.6px)}
/* the words keep their place but don't block the painting's objects */
.world-hero.has-scene>*:not(.scene){pointer-events:none}
.world-hero.has-scene a,.world-hero.has-scene button,.world-hero.has-scene input,.world-hero.has-scene textarea,.world-hero.has-scene select,.world-hero.has-scene label,.world-hero.has-scene form{pointer-events:auto}
/* the crafted scenes are painted with room for words on the left: no shifting, no fade */
@media (min-width:900px){
  .scene.comp .scene-in,body[data-world] .scene.comp .scene-in{left:-4%;right:-4%}
  .scene.comp img{-webkit-mask-image:none;mask-image:none}
  .scene.comp::before{background:linear-gradient(90deg,rgba(7,10,34,.72) 0%,rgba(7,10,34,.4) 30%,transparent 55%),linear-gradient(to bottom,rgba(7,10,34,.45),transparent 22%)}
}
/* a tall opening never zooms the painting too far: it covers one screen and fades below */
.scene.comp{bottom:auto;height:max(100svh,56vw)}
body[data-world="newyear"] .scene img{--sp:50% 22%}
/* the launch stage: the opera house behind the countdown */
.launch.has-scene{position:relative;isolation:isolate}
.launch.has-scene .l-cover{box-shadow:0 0 120px rgba(255,214,140,.35),0 40px 100px rgba(0,0,0,.6)}
.launch{margin-left:auto;margin-right:auto}
.launch.has-scene .scene::before{background:radial-gradient(ellipse 60% 55% at 50% 48%,rgba(7,10,34,.72),rgba(7,10,34,.35) 70%,rgba(7,10,34,.15)),linear-gradient(to bottom,rgba(7,10,34,.5),transparent 25%)}
.launch.has-scene h1{text-shadow:0 4px 40px rgba(7,10,34,.8)}
/* phones: the crafted scenes keep their subject (on the right of the painting) in view */
@media (max-width:899px){
  .scene.comp img{--sp:72% 45%}
  body[data-world="newyear"] .scene.comp img{--sp:68% 20%}
  body[data-world="wish"] .scene.comp img{--sp:70% 40%}
  body[data-world="launch"] .scene.comp img{--sp:62% 45%}
}
.has-scene .hk-wave{display:none!important}
