/* All keyframes & animation classes: scroll reveal, CMS loading skeleton */

/* Sequential scroll reveal — elements rise, unblur and fade in on enter */
.aura-reveal {
  opacity: 0;
  transform: translate3d(0, 1.4rem, 0) scale(0.98);
  filter: blur(16px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.22, 1, 0.36, 1), filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--aura-delay, 0ms);
  will-change: opacity, transform, filter;
}
.aura-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

/* Word-by-word staggered reveal */
.aura-words .aura-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.85em, 0);
  filter: blur(12px);
  transition: opacity 850ms cubic-bezier(0.22, 1, 0.36, 1), transform 850ms cubic-bezier(0.22, 1, 0.36, 1), filter 850ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--aura-delay, 0ms) + (var(--aura-word-index, 0) * 64ms));
  will-change: opacity, transform, filter;
}
.aura-words.is-visible .aura-word,
.aura-reveal.is-visible .aura-words .aura-word,
.aura-reveal.is-visible.aura-words .aura-word {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .aura-reveal,
  .aura-words .aura-word {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* CMS loading skeleton — shimmering placeholder while content streams in */
@keyframes cms-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.cms-loading {
  position: relative;
  color: transparent !important;
  /* Override any background-image (inline styles, Tailwind bg-[url(...)]) */
  background-image: none !important;
  background-color: transparent !important;
  background: linear-gradient(90deg,
    rgba(128, 128, 128, 0.1) 25%,
    rgba(128, 128, 128, 0.2) 50%,
    rgba(128, 128, 128, 0.1) 75%
  ) !important;
  background-size: 200% 100% !important;
  animation: cms-shimmer 1.5s infinite !important;
  border-radius: 12px;
  min-height: 1em;
  min-width: 3em;
  overflow: hidden;
}
.cms-loading * {
  visibility: hidden !important;
}
.cms-loading img {
  opacity: 0 !important;
}
