/*
 * AXORA PRO - Motion & Responsive Enhancement Layer
 * Version 34
 *
 * Non-destructive enhancement layer loaded after the compiled application CSS.
 */

:root {
  --axora-motion-ease: cubic-bezier(.2,.7,.2,1);
  --axora-motion-spring: cubic-bezier(.18,.89,.32,1.28);
  --axora-hero-x: 0px;
  --axora-hero-y: 0px;
  --axora-copy-x: 0px;
  --axora-copy-y: 0px;
  --axora-scroll-y: 0px;
}

/* -------------------------------------------------------------------------- */
/* GLOBAL RESPONSIVE SAFETY                                                   */
/* -------------------------------------------------------------------------- */

html.axora-pro-motion,
html.axora-pro-motion body {
  max-width: 100%;
  overflow-x: clip;
}

html.axora-pro-motion :where(
  main,
  section,
  article,
  div,
  header,
  footer,
  nav,
  form
) {
  min-width: 0;
}

html.axora-pro-motion :where(h1,h2,h3,p,a,span,strong) {
  overflow-wrap: break-word;
}

html.axora-pro-motion :where(img,picture,video,svg,canvas) {
  max-width: 100%;
}

/* -------------------------------------------------------------------------- */
/* HOMEPAGE HERO                                                              */
/* -------------------------------------------------------------------------- */

html.axora-pro-motion .hero {
  isolation: isolate;
}

html.axora-pro-motion .hero-overlay {
  overflow: hidden;
}

html.axora-pro-motion .hero-overlay::before {
  content: "";
  position: absolute;
  inset: -35%;
  pointer-events: none;
  opacity: .34;
  background:
    radial-gradient(circle at 28% 34%, rgba(71,200,255,.30), transparent 19%),
    radial-gradient(circle at 72% 62%, rgba(20,115,230,.24), transparent 22%);
  animation: axora-aurora-drift 14s ease-in-out infinite alternate;
}

html.axora-pro-motion .hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  animation: axora-grid-drift 24s linear infinite;
}

html.axora-pro-motion .hero-slide.is-active > img {
  transform: none;
  translate:
    var(--axora-hero-x)
    calc(var(--axora-hero-y) + var(--axora-scroll-y));
  scale: 1.055;
  animation: axora-hero-breathe 12s ease-in-out infinite alternate;
  will-change: translate, scale, filter;
}

html.axora-pro-motion .hero-content {
  transform:
    translate3d(
      var(--axora-copy-x),
      var(--axora-copy-y),
      0
    );
  transition: transform .45s var(--axora-motion-ease);
  will-change: transform;
}

html.axora-pro-motion .hero-content h1 {
  text-shadow: 0 16px 45px rgba(0,0,0,.26);
}

html.axora-pro-motion .hero .button:first-of-type {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(20,115,230,.28);
}

html.axora-pro-motion .hero .button:first-of-type::after {
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  left: -45%;
  width: 28%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.52),
    transparent
  );
  transform: skewX(-18deg);
  animation: axora-button-shine 5.8s ease-in-out infinite;
}

html.axora-pro-motion .hero-dots button.is-active::after {
  box-shadow: 0 0 16px rgba(71,200,255,.75);
  animation: axora-dot-pulse 2.4s ease-in-out infinite;
}

/* -------------------------------------------------------------------------- */
/* PREMIUM CARD INTERACTIONS                                                  */
/* -------------------------------------------------------------------------- */

html.axora-pro-motion :where(
  .service-card,
  .expertise-card,
  .training-marquee-card,
  .training-card,
  .project-card
) {
  --axora-tilt-x: 0deg;
  --axora-tilt-y: 0deg;
  --axora-lift: 0px;

  transform:
    perspective(1100px)
    rotateX(var(--axora-tilt-x))
    rotateY(var(--axora-tilt-y))
    translateY(var(--axora-lift));

  transform-style: preserve-3d;
  transition:
    transform .28s var(--axora-motion-ease),
    box-shadow .28s var(--axora-motion-ease),
    border-color .28s ease;
  will-change: transform;
}

html.axora-pro-motion :where(
  .service-card,
  .expertise-card,
  .training-marquee-card,
  .training-card,
  .project-card
):hover {
  --axora-lift: -7px;
}

html.axora-pro-motion :where(
  .expertise-card,
  .training-marquee-card,
  .training-card,
  .project-card
):hover {
  box-shadow: 0 28px 70px rgba(7,26,54,.18);
}

html.axora-pro-motion :where(
  .card-media img,
  .training-marquee-media img,
  .training-card > img,
  .project-card-media img
) {
  transition:
    scale .65s var(--axora-motion-ease),
    filter .65s var(--axora-motion-ease);
}

html.axora-pro-motion :where(
  .expertise-card,
  .training-marquee-card,
  .training-card,
  .project-card
):hover img {
  scale: 1.045;
  filter: saturate(1.06) contrast(1.02);
}

/* -------------------------------------------------------------------------- */
/* CONTINUOUS SUBTLE MOTION                                                   */
/* -------------------------------------------------------------------------- */

html.axora-pro-motion .meaning-card {
  animation: axora-card-float 7s ease-in-out infinite;
}

html.axora-pro-motion .meaning-card::before {
  animation: axora-glow-breathe 6s ease-in-out infinite alternate;
}

html.axora-pro-motion .final-cta {
  isolation: isolate;
  position: relative;
  overflow: hidden;
}

html.axora-pro-motion .final-cta::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .26;
  background: radial-gradient(
    circle,
    rgba(71,200,255,.52),
    transparent 67%
  );
  top: -230px;
  right: -110px;
  animation: axora-cta-orbit 9s ease-in-out infinite alternate;
}

html.axora-pro-motion .final-cta-inner {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------------------- */
/* KEYFRAMES                                                                  */
/* -------------------------------------------------------------------------- */

@keyframes axora-aurora-drift {
  0% {
    transform: translate3d(-2%, -2%, 0) rotate(0deg) scale(1);
  }
  100% {
    transform: translate3d(5%, 4%, 0) rotate(7deg) scale(1.08);
  }
}

@keyframes axora-grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 64px 64px, 64px 64px;
  }
}

@keyframes axora-hero-breathe {
  0% {
    scale: 1.045;
    filter: saturate(1) contrast(1);
  }
  100% {
    scale: 1.085;
    filter: saturate(1.07) contrast(1.025);
  }
}

@keyframes axora-button-shine {
  0%,
  64% {
    left: -45%;
    opacity: 0;
  }
  72% {
    opacity: .75;
  }
  88%,
  100% {
    left: 125%;
    opacity: 0;
  }
}

@keyframes axora-dot-pulse {
  0%,
  100% {
    opacity: .72;
  }
  50% {
    opacity: 1;
  }
}

@keyframes axora-card-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

@keyframes axora-glow-breathe {
  from {
    transform: scale(.92);
    opacity: .72;
  }
  to {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes axora-cta-orbit {
  from {
    transform: translate3d(0,0,0) scale(.9);
  }
  to {
    transform: translate3d(-90px,70px,0) scale(1.18);
  }
}

/* -------------------------------------------------------------------------- */
/* TABLET                                                                     */
/* -------------------------------------------------------------------------- */

@media (max-width: 820px) {
  html.axora-pro-motion .hero-slide.is-active > img {
    translate: 0 var(--axora-scroll-y);
    scale: 1.035;
  }

  html.axora-pro-motion .hero-content {
    transform: none;
  }

  html.axora-pro-motion :where(
    .service-card,
    .expertise-card,
    .training-marquee-card,
    .training-card,
    .project-card
  ) {
    --axora-tilt-x: 0deg !important;
    --axora-tilt-y: 0deg !important;
  }
}

/* -------------------------------------------------------------------------- */
/* MOBILE                                                                     */
/* -------------------------------------------------------------------------- */

@media (max-width: 560px) {
  html.axora-pro-motion .hero {
    min-height: 600px;
  }

  html.axora-pro-motion .hero-overlay::after {
    background-size: 44px 44px;
    opacity: .10;
  }

  html.axora-pro-motion .hero-content h1 {
    max-width: 14ch;
  }

  html.axora-pro-motion .hero .button {
    width: 100%;
  }

  html.axora-pro-motion .meaning-card {
    animation-duration: 8.5s;
  }

  html.axora-pro-motion .final-cta::before {
    width: 330px;
    height: 330px;
    top: -180px;
    right: -170px;
  }
}

/* -------------------------------------------------------------------------- */
/* TOUCH DEVICES                                                              */
/* -------------------------------------------------------------------------- */

@media (hover: none), (pointer: coarse) {
  html.axora-pro-motion :where(
    .service-card,
    .expertise-card,
    .training-marquee-card,
    .training-card,
    .project-card
  ) {
    transform: none;
  }
}

/* -------------------------------------------------------------------------- */
/* ACCESSIBILITY                                                              */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html.axora-pro-motion *,
  html.axora-pro-motion *::before,
  html.axora-pro-motion *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html.axora-pro-motion .hero-slide.is-active > img {
    translate: 0 0;
    scale: 1;
    filter: none;
  }

  html.axora-pro-motion .hero-content,
  html.axora-pro-motion :where(
    .service-card,
    .expertise-card,
    .training-marquee-card,
    .training-card,
    .project-card
  ) {
    transform: none !important;
  }
}
