/* Motion is isolated to the home page; content stays visible without JavaScript. */
body[data-active="home"] .home-hero{position:relative;isolation:isolate;overflow:hidden}
body[data-active="home"] .home-hero::before{content:"";position:absolute;z-index:-1;width:65vw;height:65vw;right:-24vw;top:-25vw;border-radius:50%;background:radial-gradient(circle,#b6d59c14,transparent 67%);pointer-events:none;animation:hero-glow 4.5s ease-out both}
.hero-layout>div:first-child{position:relative;z-index:2}
body[data-active="home"] .hero-visual{position:relative;perspective:1100px;isolation:isolate}
body[data-active="home"] .hero-visual::before,body[data-active="home"] .hero-visual::after{content:"";position:absolute;z-index:-1;width:112%;aspect-ratio:1;border:1px solid #b6d59c26;border-radius:50%;transform:rotate(-28deg) scaleY(.65);pointer-events:none;animation:orbit-arrive 1.8s cubic-bezier(.16,1,.3,1) .25s both}
body[data-active="home"] .hero-visual::after{width:132%;border-color:#b6d59c12;transform:rotate(30deg) scaleY(.75);animation-delay:.45s}
body[data-active="home"] .hero-visual img{transition:transform .7s cubic-bezier(.22,1,.36,1);animation:product-arrive 1.6s cubic-bezier(.16,1,.3,1) .25s both;will-change:auto}
body[data-active="home"] .hero-visual.is-interactive img{transform:translate3d(var(--motion-x,0px),var(--motion-y,0px),0) rotateX(var(--motion-rx,0deg)) rotateY(var(--motion-ry,0deg)) rotate(3deg);animation:none}
body[data-active="home"] .home-hero .eyebrow{animation:hero-enter .9s cubic-bezier(.16,1,.3,1) .05s both}
body[data-active="home"] .home-hero h1{animation:hero-enter 1.1s cubic-bezier(.16,1,.3,1) .15s both}
body[data-active="home"] .home-hero h1 em{display:inline-block;animation:hero-enter 1.2s cubic-bezier(.16,1,.3,1) .35s both}
body[data-active="home"] .home-hero p{animation:hero-enter 1s cubic-bezier(.16,1,.3,1) .45s both}
body[data-active="home"] .home-hero .hero-actions{animation:hero-enter 1s cubic-bezier(.16,1,.3,1) .6s both}
body[data-active="home"] .hero-note{animation:hero-enter 1s cubic-bezier(.16,1,.3,1) .75s both}
body[data-active="home"] .button{transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease}
body[data-active="home"] .button:hover{transform:translateY(-3px);box-shadow:0 10px 24px #0002}
.home-motion .motion-reveal{opacity:0;transform:translateY(26px);transition:opacity .8s ease,transform 1s cubic-bezier(.16,1,.3,1);transition-delay:var(--reveal-delay,0ms)}
.home-motion .motion-reveal.is-visible{opacity:1;transform:none}
@keyframes hero-enter{from{opacity:0;transform:translate3d(0,24px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes product-arrive{from{opacity:0;transform:translate3d(24px,30px,0) rotate(7deg) scale(.94)}to{opacity:1;transform:translate3d(0,0,0) rotate(3deg) scale(1)}}
@keyframes orbit-arrive{from{opacity:0;scale:.85}to{opacity:1;scale:1}}
@keyframes hero-glow{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}
@media(max-width:900px){body[data-active="home"] .hero-visual::before{width:300px}body[data-active="home"] .hero-visual::after{width:350px}}
@media(prefers-reduced-motion:reduce){body[data-active="home"] *,body[data-active="home"] *::before,body[data-active="home"] *::after{animation:none!important;transition:none!important}.home-motion .motion-reveal{opacity:1;transform:none}body[data-active="home"] .hero-visual.is-interactive img{transform:rotate(3deg)}}

/* Keep motion perceptible when the preview opens after the entrance has finished. */
@media(prefers-reduced-motion:no-preference){
 body[data-active="home"] .hero-visual{animation:hero-float 6s ease-in-out 1.9s infinite}
 body[data-active="home"] .hero-visual::after{animation:orbit-arrive 1.8s ease-out .45s both,orbit-breathe 7s ease-in-out 2.3s infinite}
}
@keyframes hero-float{0%,100%{translate:0 0}50%{translate:0 -14px}}
@keyframes orbit-breathe{0%,100%{opacity:.45;scale:1}50%{opacity:1;scale:1.045}}
.motion-controls{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.motion-controls[hidden]{display:none}
.motion-controls button{border:1px solid #ffffff38;border-radius:100px;padding:8px 14px;background:#ffffff08;color:#e2e7ee;font:inherit;font-size:.78rem;cursor:pointer;min-height:40px;transition:background .2s ease}
.motion-controls button:hover{background:#ffffff18}
.home-hero.motion-paused .hero-visual,.home-hero.motion-paused .hero-visual::after{animation-play-state:paused}
.home-hero.motion-restarting *,.home-hero.motion-restarting *::before,.home-hero.motion-restarting *::after{animation:none!important}
@media(prefers-reduced-motion:reduce){.motion-controls{display:none}}
