/* Entrance and scroll animation are handled together in motion.js. */
.hero-copy{animation:none}
/* Motion is decorative: all content stays visible if scripts fail. */

html.has-motion .primary-btn{position:relative;overflow:hidden;transition:box-shadow .3s,translate .3s}
html.has-motion .primary-btn::after{content:"";position:absolute;inset:-100% -60%;background:linear-gradient(110deg,transparent 42%,#ffffff75 50%,transparent 58%);transform:translateX(-65%);pointer-events:none}
html.has-motion .primary-btn:hover::after,html.has-motion .primary-btn:focus-visible::after{animation:button-sweep .75s ease-out}
html.has-motion .primary-btn:hover{translate:0 -3px;box-shadow:0 8px 28px #ffffff1c}
html.has-motion .primary-btn:active{translate:0 0}
html.has-motion .motion-surface{position:relative;isolation:isolate;transition:rotate .45s,scale .45s,box-shadow .45s}
html.has-motion .motion-surface::before{content:"";position:absolute;z-index:2;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(360px circle at var(--spot-x,50%) var(--spot-y,50%),#ffffff1c,transparent 65%);opacity:0;transition:opacity .35s}
html.has-motion .motion-surface.motion-active{rotate:1 0 0 var(--tilt-x,0deg);scale:1.015;box-shadow:0 18px 40px #0005}
html.has-motion .gear-card-image.motion-active{transform:perspective(800px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));rotate:none}
html.has-motion .motion-surface.motion-active::before{opacity:1}
html.has-motion .my-gear-more[open]>.my-gear-category{animation:gear-unfold .55s cubic-bezier(.16,1,.3,1) both}
@keyframes button-sweep{to{transform:translateX(65%)}}
@keyframes gear-unfold{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}
html:not(.has-motion) .motion-surface{transform:none!important;rotate:none!important;scale:none!important}
@media(hover:none),(pointer:coarse){.motion-surface{transform:none!important;rotate:none!important;scale:none!important}}

.motion-toggle{position:fixed;bottom:16px;right:16px;z-index:50;padding:9px 13px;border:1px solid #555;border-radius:999px;background:#111e;color:#ddd;font:11px system-ui;cursor:pointer;min-height:40px}.motion-toggle:hover{background:#292929}.motion-toggle:focus-visible{outline:2px solid white;outline-offset:3px}

html:not(.has-motion) .primary-btn,html:not(.has-motion) .primary-btn::after,html:not(.has-motion) .my-gear-more[open]>.my-gear-category{animation:none!important;transition:none!important}

/* Button feedback shares the gear-card spotlight without changing layout. */
html.has-motion .motion-control{transition:transform .3s ease,scale .3s ease,box-shadow .3s ease,background-color .3s ease,border-color .3s ease}
html.has-motion .motion-control.motion-active{transform:perspective(800px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));rotate:none;scale:1.025;box-shadow:0 6px 20px #0004}
html.has-motion .motion-control:focus-visible::before{opacity:1}
html.has-motion .motion-control:active:not(:disabled):not([aria-disabled="true"]){scale:.97;transform:none;rotate:none}
html.has-motion .motion-control:is(:disabled,[aria-disabled="true"]){transform:none;rotate:none;scale:1;box-shadow:none}
html.has-motion .motion-control:is(:disabled,[aria-disabled="true"])::before{opacity:0}
html.has-motion .motion-toggle{transition:scale .25s,background-color .25s}
@media(hover:hover) and (pointer:fine){html.has-motion .motion-toggle:hover{scale:1.04}}
html.has-motion .motion-toggle:active{scale:.97}
