/* Hero scene in 3D — categories lift out of the picture */

/* the old flat glass is replaced by a lifted copy of the item */
.scene-regions.has-pop .sr-glass{display:none}
.scene-regions.has-active .sr-dim{opacity:.58}

.sr-pop{position:absolute;inset:0;pointer-events:none;opacity:0;transform:none;
 transition:transform .75s cubic-bezier(.2,1.35,.35,1),opacity .35s ease,filter .5s ease;will-change:transform}
.sr-pop-in{position:absolute;inset:0;background-size:100% 100%;background-repeat:no-repeat;filter:brightness(1.14) saturate(1.2) contrast(1.06)}
.sr-pop-in::after{content:"";position:absolute;inset:0;opacity:0;
 background:linear-gradient(110deg,rgba(255,255,255,0) 40%,rgba(255,248,230,.55) 48%,rgba(255,255,255,.85) 50%,rgba(255,248,230,.55) 52%,rgba(255,255,255,0) 60%) 0 0 / 300% 100% no-repeat}
.sr-pop.is-active{opacity:1;
 transform:translate3d(var(--px,0px),calc(var(--py,0px) + var(--lift,-1.2%)),0) scale(var(--s,1.075));
 filter:drop-shadow(0 0 1.5px rgba(255,232,180,.95)) drop-shadow(0 0 16px rgba(255,196,110,.5)) drop-shadow(0 26px 22px rgba(0,0,0,.55))}
.sr-pop.is-active .sr-pop-in::after{animation:sr-pop-shine 1.6s cubic-bezier(.4,0,.2,1) .15s both}
@keyframes sr-pop-shine{0%{opacity:1;background-position:0 0}100%{opacity:1;background-position:100% 0}}

/* labels flip in */
.sr-label.is-active{animation:sr-label-glow 2.4s ease-in-out infinite}
@keyframes sr-label-glow{50%{box-shadow:0 8px 24px rgba(0,0,0,.35),0 0 28px rgba(255,214,150,.55),inset 0 1px 0 rgba(255,255,255,.3)}}

/* whole picture: tilt with the pointer */
.scene{--tx:0deg;--ty:0deg;transform-origin:50% 60%}
.scene.fx-3d{transform:perspective(1600px) rotateX(var(--tx)) rotateY(var(--ty));transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.scene.fx-3d::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:4;opacity:.5;
 background:radial-gradient(600px circle at var(--gx,50%) var(--gy,40%),rgba(255,240,210,.14),transparent 60%)}


@media (prefers-reduced-motion:reduce){.sr-pop{transition:none}.sr-pop.is-active .sr-pop-in::after,.sr-label.is-active{animation:none}}

/* less space above the picture so all of it shows on the first screen */
.home .hero-section{padding-top:14px}
.home .hero-section .scene-help{margin-top:10px}

/* let a lifted item rise over the picture's edge instead of being cut off */
.home .hero-section .scene-scroll{overflow:visible;overflow-x:clip;overflow-clip-margin:0}
.home .hero-section .scene:not(.is-fitted)>picture{display:block;clip-path:inset(0 round var(--scene-r,18px))}
.home .hero-section .scene-regions{z-index:2}
