/* Service hero illustrations: slow ambient loops for each piece of the artwork.
   Loops animate `transform` only (plus opacity on glows and sparkles); the
   one-time entrance and pointer parallax in service-hero-motion.js use the
   separate `translate` property, so the three never overwrite each other.
   Keyframes start and end at rest, so a loop starting late never jumps. */

/* Split artwork layers (marketing, website care) keep the original coordinates. */
.shm-layer{position:absolute;display:block}
.shm-layer>img{display:block;width:100%;height:100%;max-width:none}

/* Websites */
.motion-on .wh-glow{transform-origin:50% 50%;animation:shm-breathe 12s ease-in-out infinite}
.motion-on .wh-browser-position{animation:shm-browser 10s ease-in-out .3s infinite}
.motion-on .wh-content-position{animation:shm-card 11.5s ease-in-out 1.2s infinite}
.motion-on .wh-speed{transform-origin:50% 50%;animation:shm-badge 7.5s ease-in-out .6s infinite}
.motion-on .wh-sparkle{transform-origin:50% 50%;animation:shm-twinkle 6.5s ease-in-out 2s infinite}
.motion-on .wh-cursor{transform-origin:22% 14%;animation:shm-cursor 9s ease-in-out 1.6s infinite}

/* Software and apps: the three plates breathe apart, the star and particles shimmer. */
.motion-on .shm-sa-glow{transform-origin:50% 50%;animation:shm-breathe 11s ease-in-out infinite}
.motion-on .shm-sa-light{animation:shm-float-sm 12s ease-in-out .4s infinite}
.motion-on .shm-sa-nodes{animation:shm-dim 7s ease-in-out 1s infinite}
.motion-on .shm-sa-data,.motion-on .shm-sa-dots{animation:shm-float-md 10s ease-in-out .9s infinite}
.motion-on .shm-sa-glass,.motion-on .shm-sa-star{animation:shm-float-lg 9s ease-in-out 1.5s infinite}
.motion-on .shm-sa-star>img{transform-origin:620px 317.75px;animation:shm-twinkle 7s ease-in-out 2.4s infinite}
.motion-on .shm-sa-particle{animation:shm-rise 8s ease-in-out infinite}
.motion-on .shm-sa-particle:nth-child(3n){animation-duration:6.5s}
.motion-on .shm-sa-particle:nth-child(3n+1){animation-duration:9.5s}
.motion-on .shm-sa-particle:nth-child(4n){animation-delay:.8s}
.motion-on .shm-sa-particle:nth-child(4n+1){animation-delay:2.1s}
.motion-on .shm-sa-particle:nth-child(4n+2){animation-delay:3.4s}
.motion-on .shm-sa-particle:nth-child(5n){animation-name:shm-rise-alt}

/* Brand and design systems: the swatches fan open around the card's base. */
.motion-on .shm-bd-glow-pink{transform-origin:50% 50%;animation:shm-breathe 13s ease-in-out infinite}
.motion-on .shm-bd-glow-blue{transform-origin:50% 50%;animation:shm-breathe 11s ease-in-out 2s infinite}
.shm-bd-swatch-blue,.shm-bd-swatch-pink,.shm-bd-swatch-green{transform-origin:620px 800px}
.motion-on .shm-bd-swatch-blue{animation:shm-fan-left 10s ease-in-out .3s infinite}
.motion-on .shm-bd-swatch-pink{animation:shm-fan-left-sm 10s ease-in-out .55s infinite}
.motion-on .shm-bd-swatch-green{animation:shm-fan-right 10s ease-in-out .8s infinite}
.motion-on .shm-bd-card{animation:shm-float-md 9s ease-in-out 1.2s infinite}
.motion-on .shm-bd-circle{animation:shm-orb 8s ease-in-out .5s infinite}
.motion-on .shm-bd-ring{animation:shm-drift 13s ease-in-out 1s infinite}
.motion-on .shm-bd-square{transform-origin:1010px 669px;animation:shm-tilt-right 9s ease-in-out 1.8s infinite}
.motion-on .shm-bd-triangle{transform-origin:263.5px 690px;animation:shm-tilt-left 10.5s ease-in-out .9s infinite}

/* Marketing */
.motion-on .shm-mk-glow{transform-origin:50% 50%;animation:shm-breathe 12s ease-in-out infinite}
.motion-on .shm-mk-capsule{transform-origin:50% 50%;animation:shm-capsule 13s ease-in-out .6s infinite}
.motion-on .shm-mk-pill{transform-origin:50% 50%;animation:shm-pill 10s ease-in-out 1.1s infinite}
.motion-on .shm-mk-check{transform-origin:50% 50%;animation:shm-badge 8s ease-in-out .3s infinite}
.motion-on .shm-mk-arrow{animation:shm-nudge 7s ease-in-out 1.6s infinite}

/* Website care: the rings turn slightly against each other around a floating core. */
.motion-on .shm-wc-blob-blue{transform-origin:50% 50%;animation:shm-blob-a 14s ease-in-out infinite}
.motion-on .shm-wc-blob-green{transform-origin:50% 50%;animation:shm-blob-b 13s ease-in-out 1s infinite}
.motion-on .shm-wc-blob-teal{transform-origin:50% 50%;animation:shm-blob-c 12s ease-in-out 2s infinite}
/* The launch trail runs into the outer ring, so it turns with it (around the ring's centre). */
.motion-on .shm-wc-trail{transform-origin:578.567px -169.81px;animation:shm-turn-back 12s ease-in-out .4s infinite,shm-dim 10s ease-in-out .8s infinite}
.motion-on .shm-wc-orbit{transform-origin:50% 50%;animation:shm-turn-back 12s ease-in-out .4s infinite}
.motion-on .shm-wc-orbit-inner{transform-origin:50% 50%;animation:shm-turn 9s ease-in-out .9s infinite}
.motion-on .shm-wc-core-glow{transform-origin:50% 50%;animation:shm-glow 6s ease-in-out infinite}
.motion-on .shm-wc-core{transform-origin:50% 50%;animation:shm-core 8s ease-in-out 1.4s infinite}

/* Pointer parallax depth (px at full scene size), applied by the script. */
.wh-browser-position{--shm-d:4px}.wh-content-position{--shm-d:8px}.wh-speed{--shm-d:10px}.wh-sparkle{--shm-d:7px}.wh-cursor{--shm-d:9px}
.shm-sa-light{--shm-d:3px}.shm-sa-data,.shm-sa-dots{--shm-d:6px}.shm-sa-glass,.shm-sa-star{--shm-d:9px}
.shm-bd-swatch-blue,.shm-bd-swatch-pink,.shm-bd-swatch-green{--shm-d:4px}.shm-bd-card{--shm-d:7px}.shm-bd-circle{--shm-d:10px}.shm-bd-ring,.shm-bd-triangle{--shm-d:6px}.shm-bd-square{--shm-d:9px}
.shm-mk-capsule{--shm-d:4px}.shm-mk-pill{--shm-d:6px}.shm-mk-check{--shm-d:9px}.shm-mk-arrow{--shm-d:10px}
.shm-wc-orbit,.shm-wc-trail{--shm-d:4px}.shm-wc-orbit-inner{--shm-d:6px}.shm-wc-core,.shm-wc-core-glow{--shm-d:9px}
.shm-parallax [data-shm-in]{translate:calc(var(--shm-x,0) * var(--shm-d,0px)) calc(var(--shm-y,0) * var(--shm-d,0px))}

@keyframes shm-breathe{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.78;transform:scale(1.045)}}
@keyframes shm-glow{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.12)}}
@keyframes shm-dim{0%,100%{opacity:1}50%{opacity:.62}}
@keyframes shm-browser{0%,100%{transform:none}50%{transform:translate3d(0,-9px,0) rotate(-.5deg)}}
@keyframes shm-card{0%,100%{transform:none}50%{transform:translate3d(-6px,-12px,0) rotate(1.5deg)}}
@keyframes shm-badge{0%,100%{transform:none}50%{transform:translate3d(0,-12px,0) rotate(-3deg)}}
@keyframes shm-twinkle{0%,100%{opacity:1;transform:none}50%{opacity:.7;transform:rotate(30deg) scale(.82)}}
@keyframes shm-cursor{
 0%,100%{transform:none}
 32%{transform:translate3d(-16px,-11px,0)}
 40%{transform:translate3d(-16px,-11px,0) scale(1)}
 44%{transform:translate3d(-16px,-11px,0) scale(.86)}
 50%{transform:translate3d(-16px,-11px,0) scale(1)}
 62%{transform:translate3d(-16px,-11px,0)}
}
@keyframes shm-float-sm{0%,100%{transform:none}50%{transform:translate3d(0,-5px,0)}}
@keyframes shm-float-md{0%,100%{transform:none}50%{transform:translate3d(0,-9px,0)}}
@keyframes shm-float-lg{0%,100%{transform:none}50%{transform:translate3d(0,-14px,0)}}
@keyframes shm-rise{0%,100%{opacity:1;transform:none}50%{opacity:.4;transform:translate3d(0,-12px,0)}}
@keyframes shm-rise-alt{0%,100%{opacity:1;transform:none}50%{opacity:.55;transform:translate3d(5px,-8px,0)}}
@keyframes shm-fan-left{0%,100%{transform:none}50%{transform:rotate(-2.5deg)}}
@keyframes shm-fan-left-sm{0%,100%{transform:none}50%{transform:rotate(-1.2deg)}}
@keyframes shm-fan-right{0%,100%{transform:none}50%{transform:rotate(2deg)}}
@keyframes shm-orb{0%,100%{transform:none}50%{transform:translate3d(-6px,-14px,0)}}
@keyframes shm-drift{0%,100%{transform:none}50%{transform:translate3d(8px,6px,0)}}
@keyframes shm-tilt-right{0%,100%{transform:none}50%{transform:translate3d(0,-10px,0) rotate(3deg)}}
@keyframes shm-tilt-left{0%,100%{transform:none}50%{transform:translate3d(4px,-10px,0) rotate(-3deg)}}
@keyframes shm-capsule{0%,100%{transform:none}50%{transform:translate3d(-8px,6px,0) rotate(-1deg)}}
@keyframes shm-pill{0%,100%{transform:none}50%{transform:translate3d(6px,-10px,0) rotate(1deg)}}
@keyframes shm-nudge{0%,100%{transform:none}50%{transform:translate3d(6px,-9px,0)}}
@keyframes shm-blob-a{0%,100%{transform:none}50%{transform:translate3d(14px,-10px,0) scale(1.04)}}
@keyframes shm-blob-b{0%,100%{transform:none}50%{transform:translate3d(-12px,-8px,0) scale(1.05)}}
@keyframes shm-blob-c{0%,100%{transform:none}50%{transform:translate3d(-10px,10px,0) scale(.97)}}
@keyframes shm-turn{0%,100%{transform:none}50%{transform:rotate(3deg)}}
@keyframes shm-turn-back{0%,100%{transform:none}50%{transform:rotate(-2.5deg)}}
@keyframes shm-core{0%,100%{transform:none}50%{transform:translate3d(0,-8px,0) rotate(3deg)}}

/* Pause button, off-screen hero, and reduced motion: hold still where they are. */
.sd-hero-art[data-shm-off] *,
html.paused-motion .sd-hero-art *{animation-play-state:paused!important}
html.reduced-motion .sd-hero-art *{animation:none!important;translate:none!important}
@media(prefers-reduced-motion:reduce){.sd-hero-art *{animation:none!important;translate:none!important}}
