/* Decorative motion: content and navigation never depend on it. */
:root { --motion-ease: cubic-bezier(.2,.7,.2,1); }

/* Four depth planes move through the camera; the copy never moves. */
.space-layer{animation:space-voyage 34s linear infinite}
.space-layer:nth-child(2){animation-delay:-8.5s}
.space-layer:nth-child(3){animation-delay:-17s}
.space-layer:nth-child(4){animation-delay:-25.5s}
.space-nebula{animation:nebula-drift 38s ease-in-out infinite alternate}
@keyframes space-voyage{
  0%{transform:translateZ(-1500px) rotate(var(--star-angle,0deg));opacity:0}
  16%{opacity:.42}
  62%{opacity:.72}
  88%{opacity:.45}
  100%{transform:translateZ(330px) rotate(var(--star-angle,0deg));opacity:0}
}
@keyframes nebula-drift{
  from{transform:translate3d(-1%,-1%,0) rotate(-12deg) scale(1);opacity:.55}
  to{transform:translate3d(2%,1%,0) rotate(-8deg) scale(1.06);opacity:1}
}
.scroll-cue > span:last-child{animation:scroll-nudge 3.6s ease-in-out infinite}
@keyframes scroll-nudge{0%,45%,100%{transform:translateY(0)}65%{transform:translateY(5px)}}

/* Creditos: independent depths and a slow reflection across the glass. */
.device { translate: var(--pointer-x,0px) var(--pointer-y,0px); transition: translate .6s var(--motion-ease); }
.device-front { animation: device-front-float 10s ease-in-out infinite; }
.device-back { animation: device-back-float 12s ease-in-out infinite; }
.product-glow { animation: product-light 10s ease-in-out infinite; }
.device-screen::after {
  content: ""; position: absolute; inset: -20%; pointer-events: none;
  background: linear-gradient(115deg,transparent 36%,#e1e9ff12 45%,#e1e9ff25 49%,transparent 60%);
  transform: translateX(-140%); animation: glass-reflection 13s ease-in-out infinite;
}
.device-back .device-screen::after { animation-delay: -5s; }
@keyframes device-front-float {
  0%,100% { transform: translate3d(0,0,0) rotate(9deg); }
  50% { transform: translate3d(0,-16px,0) rotate(7deg); }
}
@keyframes device-back-float {
  0%,100% { transform: translate3d(0,0,0) rotate(-10deg); }
  50% { transform: translate3d(0,10px,0) rotate(-8deg); }
}
@keyframes product-light {
  0%,100% { transform: scale(.96); opacity: .65; }
  50% { transform: scale(1.07); opacity: 1; }
}
@keyframes glass-reflection {
  0%,38% { transform: translateX(-140%); opacity: 0; }
  43% { opacity: 1; }
  63%,100% { transform: translateX(140%); opacity: 0; }
}

/* A wave travels through the existing six bars. */
.intelligence i { animation: signal-wave 4.8s ease-in-out infinite; transform-origin: center; }
.intelligence i:nth-child(2) { animation-delay: -.55s; }
.intelligence i:nth-child(3) { animation-delay: -1.1s; }
.intelligence i:nth-child(4) { animation-delay: -1.65s; }
.intelligence i:nth-child(5) { animation-delay: -2.2s; }
.intelligence i:nth-child(6) { animation-delay: -2.75s; }
.intelligence::before { animation: signal-glow 6s ease-in-out infinite; }
@keyframes signal-wave {
  0%,100% { transform: scaleY(.58); opacity: .65; }
  40% { transform: scaleY(1.04); opacity: 1; }
  70% { transform: scaleY(.78); opacity: .85; }
}
@keyframes signal-glow {
  0%,100% { transform: scale(.8); opacity: .55; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* Precessing rings with two small points of light. */
.orbit i { --ring-angle: -28deg; animation: orbit-precession 38s linear infinite; }
.orbit i:nth-child(2) { --ring-angle: 35deg; animation-duration: 52s; animation-direction: reverse; }
.orbit i:nth-child(3) { --ring-angle: 85deg; animation-duration: 68s; }
.orbit i:first-child::after, .orbit i:nth-child(2)::after {
  content: ""; position: absolute; width: 6px; height: 6px;
  left: calc(50% - 3px); top: -3px; border-radius: 50%;
  background: #d8e5ff; box-shadow: 0 0 12px #ceddff;
}
.orbit i:nth-child(2)::after { width: 4px; height: 4px; top: -2px; opacity: .7; }
@keyframes orbit-precession {
  from { transform: translate(-50%,-50%) rotate(var(--ring-angle)); }
  to { transform: translate(-50%,-50%) rotate(calc(var(--ring-angle) + 360deg)); }
}

/* A calm, attentive robot: subtle head movement, eyes and chest light. */
.robot-head{transform-box:fill-box;transform-origin:50% 90%;animation:robot-look 9s ease-in-out infinite}
.robot-eyes{transform-box:fill-box;transform-origin:center;animation:robot-eyes 8s ease-in-out infinite}
.robot-heart{animation:robot-heart 4.8s ease-in-out infinite}
@keyframes robot-look{0%,20%,100%{transform:rotate(0)}40%,60%{transform:rotate(-3deg)}80%{transform:rotate(2deg)}}
@keyframes robot-eyes{0%,42%,47%,100%{transform:scaleY(1);opacity:1}44%,45%{transform:scaleY(.35);opacity:.6}}
@keyframes robot-heart{0%,100%{opacity:.35}50%{opacity:1}}

.arrived { animation: reveal-lift .8s var(--motion-ease) backwards; }
.interest-card:nth-child(2).arrived { animation-delay: .09s; }
.interest-card:nth-child(3).arrived { animation-delay: .18s; }
@keyframes reveal-lift {
  from { opacity: .6; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}
.connection-line { position: relative; overflow: hidden; }
.connection-line::after {
  content: ""; position: absolute; inset: -40% 0 60%;
  background: linear-gradient(transparent,#edf2ff,transparent);
  animation: connection-flow 4s ease-in-out infinite;
}
@keyframes connection-flow { to { transform: translateY(130px); } }
.button span, .text-link span { transition: transform .3s var(--motion-ease); }
.button:focus-visible span, .text-link:focus-visible span { transform: translate(2px,-2px); }
.interest-card { transition: transform .45s var(--motion-ease), border-color .45s ease; }
@media(hover:hover) and (pointer:fine) {
  .interest-card:hover { transform: translateY(-5px); border-color: #b8c9fc45; }
  .button:hover span, .text-link:hover span { transform: translate(2px,-2px); }
}

/* Pause offscreen illustrations and background tabs without a JS render loop. */
.motion-enabled { --motion-state: running; }
.motion-ready [data-motion-region] { --motion-state: paused; }
.motion-ready [data-motion-region].in-view { --motion-state: running; }
[data-motion-region], [data-motion-region] *,
[data-motion-region]::before, [data-motion-region]::after,
[data-motion-region] *::before, [data-motion-region] *::after {
  animation-play-state: var(--motion-state,paused);
}
.page-idle *, .page-idle *::before, .page-idle *::after { animation-play-state: paused !important; }
.motion-toggle:disabled { cursor: default; opacity: .8; }
.motion-paused, .motion-paused *, .motion-paused *::before, .motion-paused *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
.motion-paused .device, .motion-paused .arrived { translate: none !important; }
.motion-paused .interest-card:hover, .motion-paused .button:hover,
.motion-paused .button span, .motion-paused .text-link span { transform: none !important; }
@media(prefers-reduced-motion:reduce) {
  html, *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .device, .arrived { translate: none !important; }
  .interest-card:hover, .button:hover, .button span, .text-link span { transform: none !important; }
}
