/* ROUND 101 - shared "4D" depth layer for storefronts, the store directory and the marketing site. CSS only changes anything once ba-4d.js has run (html.ba4d), so a page without JS looks exactly as before. */
html.ba4d [data-ba4d-r]{opacity:0;transform:translate3d(0,22px,0) scale(.985);transition:opacity .6s cubic-bezier(.2,.7,.2,1),transform .6s cubic-bezier(.2,.7,.2,1);transition-delay:var(--ba4d-d,0ms);will-change:opacity,transform}
html.ba4d [data-ba4d-r].ba4d-in{opacity:1;transform:none}
html.ba4d .ba4d-tilt{transform-style:preserve-3d;transition:transform .25s ease,box-shadow .25s ease;will-change:transform}
html.ba4d .ba4d-tilt.ba4d-hot{box-shadow:0 22px 40px -18px rgba(15,23,42,.38),0 8px 14px -8px rgba(15,23,42,.18)}
html.ba4d .ba4d-glare{position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .25s;background:radial-gradient(circle at var(--gx,50%) var(--gy,0%),rgba(255,255,255,.28),transparent 55%)}
html.ba4d .ba4d-tilt.ba4d-hot .ba4d-glare{opacity:1}
html.ba4d [data-ba4d-p]{will-change:transform}
@media (prefers-reduced-motion:reduce){
  html.ba4d [data-ba4d-r]{opacity:1!important;transform:none!important;transition:none!important}
  html.ba4d .ba4d-tilt{transform:none!important;transition:none!important}
  html.ba4d .ba4d-glare{display:none}
  html.ba4d [data-ba4d-p]{transform:none!important}
}

/* ROUND 102 - storefront hero slides in 4D: slow cinematic push-in, the picture and the headline sit at different depths and follow the pointer, a soft light glare tracks it, text rises in on each slide. */
.hero-slider.ba4d-hero{perspective:1200px}
html.ba4d .hero-slide>:first-child{transform:translate3d(calc(var(--hx,0)*-22px),calc(var(--hy,0)*-14px),0);scale:1.1;transition:transform .35s ease-out;will-change:transform}
html.ba4d .hero-slide.active>:first-child{animation:ba4d-kb 11s ease-out both}
@keyframes ba4d-kb{from{scale:1.08}to{scale:1.22}}
html.ba4d .hero-caption{transform-origin:left center;transform:perspective(900px) translate3d(calc(var(--hx,0)*12px),calc(var(--hy,0)*8px),28px) rotateY(calc(var(--hx,0)*3deg)) rotateX(calc(var(--hy,0)*-2.5deg));transition:transform .3s ease-out}
html.ba4d .hero-slide.active .hero-caption>*{animation:ba4d-rise .85s cubic-bezier(.2,.7,.2,1) both}
html.ba4d .hero-slide.active .hero-caption>*:nth-child(2){animation-delay:.12s}
html.ba4d .hero-slide.active .hero-caption>*:nth-child(3){animation-delay:.24s}
@keyframes ba4d-rise{from{opacity:0;transform:translate3d(0,22px,0)}to{opacity:1;transform:none}}
.ba4d-hglare{position:absolute;inset:0;z-index:5;pointer-events:none;opacity:0;transition:opacity .3s;background:radial-gradient(circle at var(--gx,50%) var(--gy,50%),rgba(255,255,255,.22),transparent 45%);mix-blend-mode:soft-light}
.hero-slider.ba4d-hot .ba4d-hglare{opacity:1}
@media (prefers-reduced-motion:reduce){html.ba4d .hero-slide>:first-child,html.ba4d .hero-caption{transform:none;animation:none;scale:1}html.ba4d .hero-slide.active .hero-caption>*{animation:none}}

/* ROUND 102 - product detail photo in 4D: a gentle idle float, then it tilts toward the pointer with a light glare; click-to-zoom still works. */
.ba4d-pdstage{position:relative;overflow:hidden;perspective:1000px;line-height:0}
html.ba4d .ba4d-pdstage>img{transform:rotateY(calc(var(--hx,0)*7deg)) rotateX(calc(var(--hy,0)*-6deg)) scale(1.04);transition:transform .3s ease-out;will-change:transform;animation:ba4d-float 8s ease-in-out infinite alternate}
.ba4d-pdstage.ba4d-hot>img{animation:none;transform:rotateY(calc(var(--hx,0)*7deg)) rotateX(calc(var(--hy,0)*-6deg)) scale(1.1)}
@keyframes ba4d-float{from{scale:1}to{scale:1.05}}
@media (prefers-reduced-motion:reduce){html.ba4d .ba4d-pdstage>img{transform:none;animation:none}}
.ba4d-pdstage.ba4d-hot .ba4d-hglare{opacity:1}
