/* Motion enhances the existing layout; all content remains visible without JS. */
.motion-enabled .profile,.motion-enabled .links{animation:none}
.motion-enabled body{transition:background-color .38s ease,color .38s ease}
.motion-enabled .motion-reveal{opacity:0;translate:0 18px;filter:blur(6px);transition:opacity .9s cubic-bezier(.16,1,.3,1),translate 1s cubic-bezier(.16,1,.3,1),filter .9s cubic-bezier(.16,1,.3,1),transform .45s cubic-bezier(.22,1,.36,1),border-color .25s ease;transition-delay:var(--motion-delay,0ms),var(--motion-delay,0ms),var(--motion-delay,0ms),0ms,0ms}
.motion-enabled .motion-reveal.motion-seen,.motion-enabled .motion-reveal:focus-within{opacity:1;translate:0 0;filter:none}
.motion-enabled .motion-hover{transform:perspective(1100px) translate3d(0,var(--motion-lift,0px),0) rotateX(var(--motion-rx,0deg)) rotateY(var(--motion-ry,0deg));transform-origin:center;transition:opacity .9s cubic-bezier(.16,1,.3,1),translate 1s cubic-bezier(.16,1,.3,1),filter .9s cubic-bezier(.16,1,.3,1),transform .6s cubic-bezier(.16,1,.3,1),border-color .3s ease,background-color .38s ease,color .38s ease,box-shadow .5s cubic-bezier(.16,1,.3,1);transition-delay:var(--motion-delay,0ms),var(--motion-delay,0ms),var(--motion-delay,0ms),0ms,0ms,0ms,0ms,0ms;backface-visibility:hidden}
.motion-enabled .avatar,.motion-enabled .avatar>span{transition:background-color .38s ease,color .38s ease}
.motion-enabled .contact-card .contact-arrow,.motion-enabled .portfolio-card>.link-arrow,.motion-enabled .social-top>.link-arrow,.motion-enabled .work-circle-arrow .icon,.motion-enabled .service-cta .icon{transition:transform .4s cubic-bezier(.16,1,.3,1)}
.motion-enabled .contact-card:hover .contact-arrow,.motion-enabled .portfolio-card:hover>.link-arrow,.motion-enabled .social-card:hover .social-top>.link-arrow,.motion-enabled .work-category:hover .work-circle-arrow .icon,.motion-enabled .services-card:hover .service-cta .icon{transform:translate(3px,-3px)}
.motion-enabled .social-top>.icon:first-child{transition:transform .4s cubic-bezier(.16,1,.3,1)}.motion-enabled .social-card:hover .social-top>.icon:first-child{transform:rotate(-7deg) scale(1.08)}
.motion-enabled .top-actions .icon-button>.icon,.motion-enabled .close-dialog>.icon{transition:transform .4s cubic-bezier(.16,1,.3,1)}.motion-enabled .top-actions .icon-button:hover>.icon{transform:rotate(-12deg)}.motion-enabled .close-dialog:hover>.icon{transform:rotate(90deg)}
.motion-enabled .avatar{animation:avatar-drift 7s ease-in-out infinite}
.motion-enabled .tiny-star{animation:star-turn 24s linear infinite;display:inline-block}
.motion-enabled .avatar-sticker{animation:sticker-turn 8s ease-in-out infinite}
.motion-enabled .orbit-art>svg{animation:orbit-turn 26s linear infinite;transform-origin:center}
.motion-enabled .service-slide[aria-hidden=true] .orbit-art>svg{animation-play-state:paused}
.motion-enabled .orbit-plus{animation:orbit-plus-turn 9s ease-in-out infinite}
.motion-enabled .motion-seen .note-art path{stroke-dasharray:1;stroke-dashoffset:1;animation:note-draw 1.25s .2s cubic-bezier(.3,0,.2,1) forwards}
.motion-enabled .motion-ripple-host{position:relative;overflow:hidden}
.motion-ripple{position:absolute;z-index:6;pointer-events:none;border-radius:50%;border:1px solid currentColor;background:currentColor;opacity:0;transform:scale(.02);animation:ink-ripple .65s cubic-bezier(.16,1,.3,1) forwards}
.motion-enabled dialog[open]{animation:dialog-arrive .44s cubic-bezier(.16,1,.3,1) backwards}
.motion-enabled dialog[open]::backdrop{animation:backdrop-arrive .3s ease-out backwards}
.motion-enabled #gallery-grid>.media-card{animation:gallery-arrive .5s cubic-bezier(.16,1,.3,1) backwards;animation-delay:calc(var(--motion-index,0)*35ms)}
.motion-enabled .gallery-tabs{position:relative;isolation:isolate}
.motion-enabled .gallery-tabs>button{position:relative;z-index:1}
.motion-enabled .gallery-tabs.motion-tabs-ready>button[aria-selected=true]{background:transparent}
.motion-tab-indicator{display:none}
.motion-enabled .gallery-tabs.motion-tabs-ready>.motion-tab-indicator{display:block;position:absolute;z-index:0;left:0;top:4px;bottom:4px;border-radius:9px;background:var(--ink);pointer-events:none;transition:transform .45s cubic-bezier(.16,1,.3,1),width .45s cubic-bezier(.16,1,.3,1)}
.motion-suspended *{animation-play-state:paused!important}
@keyframes avatar-drift{0%,100%{transform:rotate(-6deg) translateY(0)}50%{transform:rotate(-5deg) translateY(-3px)}}
@keyframes star-turn{to{transform:rotate(360deg)}}
@keyframes sticker-turn{0%,100%{transform:rotate(11deg)}50%{transform:rotate(28deg)}}
@keyframes orbit-turn{to{transform:rotate(360deg)}}
@keyframes orbit-plus-turn{0%,100%{rotate:0deg}50%{rotate:90deg}}
@keyframes note-draw{to{stroke-dashoffset:0}}
@keyframes ink-ripple{from{opacity:.13;transform:scale(.02)}to{opacity:0;transform:scale(1)}}
@keyframes dialog-arrive{from{opacity:.25;translate:0 18px;scale:.965}to{opacity:1;translate:0 0;scale:1}}
@keyframes backdrop-arrive{from{opacity:0}to{opacity:1}}
@keyframes gallery-arrive{from{opacity:.5;translate:0 13px}to{opacity:1;translate:0 0}}
@media(max-width:760px){.motion-enabled .motion-reveal{translate:0 17px}.motion-enabled .motion-reveal.motion-seen{translate:0 0}}
/* Brand motion: light, slow, never moves layout. */
.motion-enabled .motion-hover{position:relative;isolation:isolate}
.motion-enabled .motion-hover::after{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;opacity:0;background:radial-gradient(260px circle at var(--motion-mx,50%) var(--motion-my,50%),#8f86ff26,transparent 70%);transition:opacity .5s ease}
.motion-enabled .contact-card.motion-hover::after{z-index:0;background:radial-gradient(300px circle at var(--motion-mx,50%) var(--motion-my,50%),#ffffff59,transparent 70%)}
.motion-enabled .contact-card>*{position:relative;z-index:1}
.motion-enabled .motion-hover.motion-lit::after{opacity:1}
.motion-enabled .motion-hover:hover{box-shadow:0 14px 34px -18px #5e04e559}
.motion-enabled .contact-card{animation:brand-flow 14s ease-in-out infinite}
.motion-enabled .contact-card:hover .contact-arrow,.motion-enabled .portfolio-card:hover>.link-arrow,.motion-enabled .social-card:hover .social-top>.link-arrow,.motion-enabled .work-category:hover .work-circle-arrow .icon,.motion-enabled .services-card:hover .service-cta .icon{transform:none;animation:arrow-swap .55s cubic-bezier(.16,1,.3,1)}
.motion-enabled .contact-bubble{animation:bubble-float 5s ease-in-out infinite}
.motion-enabled .brand-dot{animation:dot-pulse 3.2s ease-in-out infinite}
.motion-enabled body::after{content:'';position:fixed;inset:-20vmax;z-index:-2;pointer-events:none;background:radial-gradient(38vmax 30vmax at 18% 22%,#5e04e514,transparent 70%),radial-gradient(34vmax 28vmax at 82% 70%,#245bfd12,transparent 70%);animation:ambient-drift 28s ease-in-out infinite alternate}
.motion-enabled body.dark::after{background:radial-gradient(38vmax 30vmax at 18% 22%,#5e04e52e,transparent 70%),radial-gradient(34vmax 28vmax at 82% 70%,#245bfd24,transparent 70%)}
@keyframes brand-flow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@keyframes arrow-swap{0%{transform:translate(0,0);opacity:1}45%{transform:translate(9px,-9px);opacity:0}46%{transform:translate(-9px,9px);opacity:0}100%{transform:translate(0,0);opacity:1}}
@keyframes bubble-float{0%,100%{translate:0 0}50%{translate:0 -3px}}
@keyframes dot-pulse{0%,100%{scale:1;opacity:1}50%{scale:.7;opacity:.6}}
@keyframes ambient-drift{from{transform:translate3d(-2%,-1%,0)}to{transform:translate3d(2%,2%,0)}}
@media(prefers-reduced-motion:reduce){.motion-enabled .motion-reveal{filter:none}.motion-enabled .motion-reveal{opacity:1;translate:none;transition:none!important}.motion-enabled .motion-hover{transform:none!important}*,*::before,*::after{animation:none!important;transition:none!important}.motion-ripple{display:none}}
