/* Motion: premium 3D spatial depth, load sequence, gentle reveals, interactive tilt. */
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes popin{from{opacity:0}to{opacity:1}}
.hero .wrap>div:first-child>*{animation:rise .7s both}
.hero .wrap>div:first-child>*:nth-child(2){animation-delay:.08s}
.hero .wrap>div:first-child>*:nth-child(3){animation-delay:.16s}
.hero .wrap>div:first-child>*:nth-child(4){animation-delay:.24s}
.ring a{animation:popin .6s both}
.ring a:nth-of-type(1){animation-delay:.3s}.ring a:nth-of-type(2){animation-delay:.4s}.ring a:nth-of-type(3){animation-delay:.5s}
.ring a:nth-of-type(4){animation-delay:.6s}.ring a:nth-of-type(5){animation-delay:.7s}.ring a:nth-of-type(6){animation-delay:.8s}
.ring a:nth-of-type(7){animation-delay:.9s}.ring a:nth-of-type(8){animation-delay:1.0s}
.js .rv{opacity:0}
.js .rv.in{opacity:1;animation:rise .65s cubic-bezier(.2,.7,.2,1) var(--d,0s) backwards}

/* ---- timeline journey animation ---- */
@keyframes logoPop {
  0% { opacity: 0; transform: scale(0.65) translateY(10px); }
  70% { transform: scale(1.08) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.js .timeline li.rv.in .tl-logo {
  animation: logoPop .6s cubic-bezier(.2, .8, .2, 1) calc(var(--d, 0s) + .08s) backwards;
}

.timeline li {
  transition: transform .25s ease;
}

.timeline li:hover .tl-logo {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--p);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .4), 0 0 0 4px rgba(123, 77, 240, .35);
}

.timeline li:hover .tl-logo img {
  transform: scale(1.08);
}

.timeline li:hover .tl-body strong a {
  color: var(--p);
}
body{animation:pagein .35s both}
body.leaving{opacity:0;transition:opacity .2s}
@keyframes pagein{from{opacity:0}to{opacity:1}}

/* ---- 3D Orbit, Float, Volumetric Drift ---- */
@property --spin{syntax:"<angle>";inherits:true;initial-value:0deg}
@keyframes spin{to{--spin:360deg}}
@keyframes float{50%{transform:translate3d(0, -10px, 15px)}}
@keyframes drift{to{transform:translate(-70px,50px) scale(1.15)}}
@keyframes marquee{to{transform:translateX(-100%)}}

/* 3D ambient floating volumetric glow orbs */
@keyframes float3d {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(25px, -35px, 40px) scale(1.08); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.35; filter: blur(70px); }
  50% { opacity: 0.65; filter: blur(95px); }
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  animation: float3d 18s ease-in-out infinite, pulseGlow 10s ease-in-out infinite alternate;
}
.ambient-orb-1 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(123, 77, 240, 0.32), transparent 70%);
  top: 5%;
  right: 5%;
}
.ambient-orb-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 239, 254, 0.22), transparent 70%);
  bottom: 8%;
  left: 3%;
  animation-duration: 22s, 12s;
  animation-delay: -5s;
}

.ring{animation:spin 80s linear infinite}
.ring:hover,.ring:focus-within{animation-play-state:paused}
.ring a{transform:rotate(calc(var(--r) + var(--spin))) translateY(-215%) rotate(calc((var(--r) + var(--spin)) * -1)) translateZ(20px);transition:scale .3s}
.ring .core{animation:float 7s ease-in-out infinite}
.hero-art .logo-hero{animation:float 7s ease-in-out infinite}
.hero::after{animation:drift 14s ease-in-out infinite alternate}
.track{animation:marquee 38s linear infinite}
.marquee:hover .track{animation-play-state:paused}
.spec-bar{background-size:300% 100%;animation:shift 6s linear infinite}
@keyframes shift{to{background-position:300% 0}}
.nav .brand img{transition:transform .4s}.brand:hover img{transform:rotate(-8deg) scale(1.06)}

/* ---- illustrations ---- */
.art svg *{transform-box:fill-box}
.sun{transform-origin:center;animation:pulse 5s ease-in-out infinite}
@keyframes pulse{50%{scale:1.07;opacity:.88}}
.flag{transform-origin:left center;animation:wave 2.4s ease-in-out infinite}
@keyframes wave{0%,100%{transform:skewY(0) scaleX(1)}50%{transform:skewY(-7deg) scaleX(.93)}}
.frames rect,.fc{animation:float 5s ease-in-out infinite}
.frames rect:nth-child(2),.fc:nth-of-type(2){animation-delay:-1s}.frames rect:nth-child(3),.fc:nth-of-type(3){animation-delay:-2s}
.frames rect:nth-child(4){animation-delay:-3s}.frames rect:nth-child(5){animation-delay:-4s}
.wires path{stroke-dasharray:10 8;animation:flow 3s linear infinite}
@keyframes flow{to{stroke-dashoffset:-72}}
.art.in .bars rect{transform-origin:bottom;animation:grow .9s cubic-bezier(.2,.8,.2,1) backwards}
.art.in .bars rect:nth-child(2){animation-delay:.12s}.art.in .bars rect:nth-child(3){animation-delay:.24s}.art.in .bars rect:nth-child(4){animation-delay:.36s}
@keyframes grow{from{transform:scaleY(0)}}

@media (prefers-reduced-motion:reduce){
 *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .js .rv{opacity:1}
 .ring a{transform:rotate(var(--r)) translateY(-215%) rotate(calc(var(--r) * -1)) translateZ(0)!important}
 .ring{transform:none!important}
 .track{flex-wrap:wrap;justify-content:center;width:100%}.marquee{mask-image:none}.track[aria-hidden]{display:none}
}
