/* Motion blend adapted from index.html and about.html for AIXESL v28. */
@media (prefers-reduced-motion: no-preference) {
  html.aix-motion-ready.aix-motion-preparing body.test-page .test-hero-copy > *,
  html.aix-motion-ready.aix-motion-preparing body.test-page .test-hero-media {
    opacity: 0 !important;
  }
}

html.aix-motion-ready body.test-page [data-aix-motion] {
  opacity: 0 !important;
  transition: opacity .75s ease, transform .9s cubic-bezier(.2,.8,.2,1), clip-path .95s cubic-bezier(.2,.8,.2,1) !important;
  transition-delay: var(--aix-motion-delay,0ms) !important;
  will-change: opacity, transform, clip-path;
}

html.aix-motion-ready body.test-page [data-aix-motion="lift"] {
  transform: translate3d(0,36px,0) scale(.985) !important;
}

html.aix-motion-ready body.test-page [data-aix-motion="left"] {
  transform: translate3d(-36px,0,0) !important;
  clip-path: inset(0 0 0 92%) !important;
}

html.aix-motion-ready body.test-page [data-aix-motion="right"] {
  transform: translate3d(36px,0,0) !important;
  clip-path: inset(0 92% 0 0) !important;
}

html.aix-motion-ready body.test-page [data-aix-motion="title"] {
  transform: translate3d(0,22px,0) !important;
  clip-path: inset(0 0 92% 0) !important;
}

html.aix-motion-ready body.test-page [data-aix-motion="wipe"] {
  transform: scale(1.045) !important;
  clip-path: inset(0 92% 0 0) !important;
}

html.aix-motion-ready body.test-page [data-aix-motion="image"] {
  transform: scale(1.055) !important;
  clip-path: inset(0 0 10% 0) !important;
}

html.aix-motion-ready body.test-page [data-aix-motion="card"] {
  transform: translate3d(0,28px,0) scale(.97) !important;
}

html.aix-motion-ready body.test-page [data-aix-motion="scale"] {
  transform: scale(.94) !important;
}

html.aix-motion-ready body.test-page [data-aix-motion].is-aix-visible {
  opacity: 1 !important;
  transform: none !important;
  clip-path: inset(0) !important;
}

html.aix-motion-ready body.test-page .test-hero-media {
  translate: 0 var(--aix-hero-parallax,0px);
  transition: opacity .75s ease, transform 1.2s cubic-bezier(.2,.8,.2,1), clip-path 1.1s cubic-bezier(.2,.8,.2,1), translate .14s linear !important;
}

html.aix-motion-ready body.test-page .ai-stack-card,
html.aix-motion-ready body.test-page .ai-pillar,
html.aix-motion-ready body.test-page .ai-node {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease !important;
}

html.aix-motion-ready body.test-page .ai-stack-card:hover,
html.aix-motion-ready body.test-page .ai-pillar:hover,
html.aix-motion-ready body.test-page .ai-node:hover {
  transform: translateY(-4px) !important;
}

/* Keep the pink diagram arrows visible; the surrounding nodes carry the reveal. */
html.aix-motion-ready body.test-page .ai-architecture-nodes .ai-node-arrow {
  clip-path: none !important;
}

@media (max-width: 1100px) {
  body.test-page .aixesl-method-nodes {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  body.test-page .aixesl-method-nodes .ai-node-arrow {
    display: block !important;
    opacity: 1 !important;
    color: #F44F9E !important;
    clip-path: none !important;
    transform: rotate(90deg) !important;
    font-size: 23px;
    line-height: 1;
    width: 24px;
    padding: 0 !important;
    justify-self: center;
    text-align: center;
  }
}

@keyframes aixIndexCardDrift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 var(--aix-drift-distance,-12px); }
}

html.aix-motion-ready body.test-page .ai-stack-card.is-aix-visible,
html.aix-motion-ready body.test-page .ai-pillar.is-aix-visible {
  --aix-drift-distance: -12px;
  animation: aixIndexCardDrift 8s ease-in-out 1.2s infinite both !important;
}

html.aix-motion-ready body.test-page .ai-stack-card:nth-child(2).is-aix-visible,
html.aix-motion-ready body.test-page .ai-pillar:nth-child(2).is-aix-visible {
  animation-delay: -2.7s !important;
}

html.aix-motion-ready body.test-page .ai-stack-card:nth-child(3).is-aix-visible,
html.aix-motion-ready body.test-page .ai-pillar:nth-child(3).is-aix-visible {
  animation-delay: -5.3s !important;
}

html.aix-motion-ready body.test-page .ai-stack-card:hover,
html.aix-motion-ready body.test-page .ai-pillar:hover {
  animation-play-state: paused !important;
}

@media (max-width: 767px) {
  html.aix-motion-ready body.test-page [data-aix-motion="left"] {
    transform: translate3d(-24px,0,0) !important;
  }
  html.aix-motion-ready body.test-page [data-aix-motion="right"] {
    transform: translate3d(24px,0,0) !important;
  }
  html.aix-motion-ready body.test-page .ai-stack-card.is-aix-visible,
  html.aix-motion-ready body.test-page .ai-pillar.is-aix-visible {
    --aix-drift-distance: -18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.aix-motion-ready body.test-page [data-aix-motion],
  html.aix-motion-ready body.test-page [data-aix-motion].is-aix-visible,
  html.aix-motion-ready body.test-page .test-hero-media {
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    clip-path: none !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}
