/* A lightweight motion layer over the existing dark and gold design. */
.motion-ambience,.scroll-progress,.portrait-halo,.scroll-cue{display:none}
.motion-enabled body{position:relative;isolation:isolate}
.motion-enabled main,.motion-enabled .site-footer{position:relative;z-index:1}
.motion-enabled .motion-ambience{display:block;position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.ambient-orb{position:absolute;display:block;width:min(80vw,900px);aspect-ratio:1;border-radius:50%;opacity:.45;will-change:transform}
.ambient-orb-one{top:-25%;left:-35%;background:radial-gradient(circle,rgba(212,175,55,.12),transparent 65%);animation:ambient-drift-one 26s ease-in-out infinite alternate}
.ambient-orb-two{right:-38%;top:28%;background:radial-gradient(circle,rgba(32,104,119,.13),transparent 67%);animation:ambient-drift-two 32s ease-in-out infinite alternate}
.dust-particle{position:absolute;left:var(--dust-x);top:var(--dust-y);display:block;width:var(--dust-size);height:var(--dust-size);border-radius:50%;background:#e5ca7c;opacity:0;animation:dust-drift var(--dust-duration) ease-in-out var(--dust-delay) infinite;box-shadow:0 0 8px #d4af3729}
.motion-enabled .scroll-progress{display:block;position:fixed;inset:0 0 auto;height:3px;z-index:110;pointer-events:none;background:rgba(212,175,55,.04)}
.scroll-progress>span{display:block;width:100%;height:100%;background:linear-gradient(90deg,#8c7131,#e9d18b,#d4af37);transform:scaleX(var(--scroll-progress,0));transform-origin:left;box-shadow:0 0 12px #d4af3766}
html[dir=rtl] .scroll-progress>span{transform-origin:right}
.motion-enabled .hero{position:relative}
.motion-enabled .hero-right{translate:0 var(--hero-parallax,0px);overflow:hidden;padding:32px;margin:-32px}
.motion-enabled .portrait{animation:portrait-arrive 1s cubic-bezier(.2,.75,.2,1) both,portrait-float 7s ease-in-out infinite;animation-play-state:paused}
.motion-enabled .hero.is-motion-active .portrait{animation-play-state:running}
.motion-enabled .portrait-halo{display:block;position:absolute;inset:-14px;border:1px solid rgba(212,175,55,.28);border-radius:50%;pointer-events:none;animation:portrait-orbit 28s linear infinite;animation-play-state:paused}
.portrait-halo:after{content:'';position:absolute;top:-3px;left:calc(50% - 3px);width:6px;height:6px;border-radius:50%;background:#e2c77c;box-shadow:0 0 16px #d4af37aa}
.motion-enabled .portrait-halo-two{inset:-25px;border-color:rgba(212,175,55,.1);border-style:dashed;animation-duration:42s;animation-direction:reverse}
.portrait-halo-two:after{width:4px;height:4px;background:#9b823e;box-shadow:0 0 12px #d4af3755}
.motion-enabled .hero.is-motion-active .portrait-halo{animation-play-state:running}
.motion-enabled .hero .name{position:relative}
.motion-enabled .hero .name:after{content:'';position:absolute;inset-inline-start:0;bottom:-5px;width:62px;height:1px;background:linear-gradient(90deg,transparent,#d4af37,transparent);transform:scaleX(0);transform-origin:center;transition:transform 1s .5s}
.motion-enabled .hero .name.is-revealed:after{transform:scaleX(1)}
.motion-enabled .hero-cta .primary{position:relative;overflow:hidden;isolation:isolate;box-shadow:0 8px 28px #d4af3729;transition:box-shadow .3s,scale .25s}
.motion-enabled .hero-cta .primary:after{content:'';position:absolute;inset:-100% -40%;pointer-events:none;background:linear-gradient(115deg,transparent 42%,rgba(255,255,255,.28) 50%,transparent 58%);transform:translateX(-100%);animation:button-sheen 8s ease-in-out 1.4s infinite}
.motion-enabled .hero-cta .primary:active{scale:.98}
.motion-enabled .scroll-cue{position:absolute;left:50%;bottom:18px;display:flex;align-items:center;gap:12px;transform:translateX(-50%);white-space:nowrap;color:var(--muted);font-size:.7rem;text-decoration:none;min-height:28px;opacity:.8;transition:color .2s}
.scroll-cue:hover{color:#e4ce89}
.scroll-cue-track{position:relative;display:block;width:16px;height:25px;border:1px solid #d4af3755;border-radius:10px}
.scroll-cue-track>span{position:absolute;top:5px;left:6px;width:2px;height:5px;border-radius:2px;background:#d4af37;animation:scroll-cue-drop 1.8s ease-in-out infinite}
/* Native scrolling stays intact. Sections reveal once as they enter the viewport. */
.motion-enabled .motion-reveal{opacity:0;translate:0 24px;transition:opacity .7s cubic-bezier(.2,.65,.3,1),translate .7s cubic-bezier(.2,.65,.3,1);transition-delay:var(--reveal-delay,0ms)}
.motion-enabled .motion-reveal.is-revealed{opacity:1;translate:0 0}
.motion-enabled .section-title:after{content:'';display:block;width:62px;height:1px;margin:12px auto 0;background:linear-gradient(90deg,transparent,#d4af37,transparent);transform:scaleX(0);transition:transform .9s .2s}
.motion-enabled .section-title.is-revealed:after{transform:scaleX(1)}
.motion-card{position:relative;isolation:isolate}
.motion-enabled .motion-card:before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(320px circle at var(--spot-x,50%) var(--spot-y,35%),rgba(212,175,55,.11),transparent 70%);opacity:0;transition:opacity .35s;z-index:-1}
.motion-enabled .motion-card.is-touched:before{opacity:1}
.motion-enabled .motion-card .service-icon,.motion-enabled .motion-card .contact-icon{animation:service-icon-float 5s ease-in-out infinite;animation-play-state:paused}
.motion-enabled .motion-card.is-motion-active .service-icon,.motion-enabled .motion-card.is-motion-active .contact-icon{animation-play-state:running}
/* The original brand logos float in a bounded constellation. */
.motion-enabled .skills .tech-grid.is-constellation{position:relative;display:block;direction:ltr;min-height:240px;padding:0;border:1px solid rgba(212,175,55,.12);border-radius:20px;overflow:hidden;isolation:isolate;background-image:radial-gradient(ellipse at 50% 50%,rgba(212,175,55,.055),transparent 70%),radial-gradient(rgba(212,175,55,.12) .7px,transparent .7px);background-size:auto,26px 26px;transition:height .65s cubic-bezier(.2,.65,.3,1)}
.is-constellation:before,.is-constellation:after{content:'';position:absolute;inset:15% 6%;border:1px solid rgba(212,175,55,.07);border-radius:50%;transform:rotate(-24deg);pointer-events:none;z-index:-1}
.is-constellation:after{inset:4% 20%;transform:rotate(27deg);border-style:dashed;border-color:rgba(212,175,55,.06)}
.motion-enabled .skills .is-constellation .tech-icon{position:absolute;left:var(--skill-left);top:var(--skill-top);width:var(--skill-size,88px);height:var(--skill-size,88px);max-width:none;min-width:0;margin:0;padding:12px;aspect-ratio:1;border-radius:15px;background:linear-gradient(135deg,rgba(27,36,40,.96),rgba(9,16,20,.96));border-color:rgba(212,175,55,.22);box-shadow:0 8px 22px rgba(0,0,0,.23);transform-origin:center;animation:skill-drift var(--float-duration,7s) ease-in-out var(--float-delay,0s) infinite;animation-play-state:paused;transition:left .6s cubic-bezier(.2,.65,.3,1),top .6s cubic-bezier(.2,.65,.3,1),scale .3s,border-color .3s,box-shadow .3s;will-change:transform}
.motion-enabled .skills .is-constellation.is-motion-active .tech-icon{animation-play-state:running}
.motion-enabled .skills .is-constellation.is-layouting,.motion-enabled .skills .is-constellation.is-layouting .tech-icon{transition:none}
.is-constellation .tech-icon img{pointer-events:none;user-select:none;-webkit-user-drag:none}
.skill-ripple{position:absolute;left:var(--ripple-x);top:var(--ripple-y);width:24px;height:24px;border:1px solid rgba(212,175,55,.6);border-radius:50%;pointer-events:none;animation:skill-ripple .85s ease-out both;z-index:3}
@media(hover:hover) and (pointer:fine){
  .motion-enabled .motion-card:hover:before{opacity:1}
  .motion-enabled .motion-card:hover{transform:perspective(900px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateY(-5px)}
  .motion-enabled .skills .is-constellation .tech-icon:hover{scale:1.12;border-color:rgba(212,175,55,.75);box-shadow:0 12px 32px #d4af3729;z-index:4}
  .motion-enabled .hero-cta .primary:hover{box-shadow:0 12px 36px #d4af374d;scale:1.025}
}
@media(max-width:720px){
  .motion-enabled .hero-right{padding:32px 0;margin:-32px 0}
  .motion-enabled .scroll-cue{bottom:7px;font-size:.65rem;gap:9px}
  .motion-enabled .hero .name:after{inset-inline-start:calc(50% - 31px)}
  .motion-enabled .portrait-halo{inset:-11px}
  .motion-enabled .portrait-halo-two{inset:-20px}
  .motion-enabled .motion-reveal{translate:0 18px}
  .motion-enabled .motion-reveal.is-revealed{translate:0 0}
  .motion-enabled .skills .tech-grid.is-constellation{margin-top:1.5rem;border-radius:16px;background-size:auto,22px 22px}
  .motion-enabled .skills .is-constellation .tech-icon{padding:10px;border-radius:13px}
  .ambient-orb-one{width:110vw;left:-55%;top:-6%}
  .ambient-orb-two{width:100vw;right:-55%;top:40%}
}
.motion-paused .ambient-orb,.motion-paused .dust-particle,.motion-paused .portrait,.motion-paused .portrait-halo,.motion-paused .tech-icon,.motion-paused .service-icon,.motion-paused .contact-icon,.motion-paused .hero-cta .primary:after,.motion-paused .scroll-cue-track>span{animation-play-state:paused!important}
@keyframes ambient-drift-one{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(20vw,14vh,0) scale(1.16)}}
@keyframes ambient-drift-two{from{transform:translate3d(0,0,0)}to{transform:translate3d(-15vw,-12vh,0)}}
@keyframes dust-drift{0%,100%{opacity:0;transform:translate3d(0,14px,0)}35%,65%{opacity:var(--dust-opacity,.3)}80%{transform:translate3d(12px,-34px,0)}}
@keyframes portrait-arrive{from{opacity:0;scale:.94}to{opacity:1;scale:1}}
@keyframes portrait-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes portrait-orbit{to{transform:rotate(360deg)}}
@keyframes service-icon-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes button-sheen{0%,72%{transform:translateX(-100%)}90%,100%{transform:translateX(100%)}}
@keyframes scroll-cue-drop{0%,100%{opacity:.25;transform:translateY(0)}55%{opacity:1;transform:translateY(8px)}}
@keyframes skill-drift{
  0%,100%{transform:translate3d(calc(var(--float-x,4px)*-1),calc(var(--float-y,6px)*-1 + var(--scroll-energy,0)*6px),0) rotate(calc(var(--float-angle,2deg)*-1 + var(--scroll-energy,0)*3deg))}
  50%{transform:translate3d(var(--float-x,4px),calc(var(--float-y,6px) + var(--scroll-energy,0)*6px),0) rotate(calc(var(--float-angle,2deg) + var(--scroll-energy,0)*3deg))}
}
@keyframes skill-ripple{from{opacity:.75;transform:translate(-50%,-50%) scale(.4)}to{opacity:0;transform:translate(-50%,-50%) scale(6)}}
@media(prefers-reduced-motion:reduce){
  .motion-ambience,.scroll-progress,.portrait-halo,.scroll-cue{display:none!important}
  .motion-reveal{opacity:1!important;translate:none!important;transition:none!important}
  .motion-enabled .portrait,.motion-enabled .tech-icon,.motion-enabled .portrait-halo,.motion-enabled .service-icon,.motion-enabled .contact-icon,.motion-enabled .hero-cta .primary:after{animation:none!important}
  .motion-enabled .hero-right{translate:none!important}
  .motion-enabled .section-title:after,.motion-enabled .hero .name:after{transition:none}
  .skill-ripple{display:none}
}
