/* OMIYAL — modern heading text animation (staggered per-letter flip-in) */
.text-anim {
  perspective: 900px;
}
/* keep whole words together (letters are inline-block, which would otherwise
   let a line break mid-word); the word also carries the 3D perspective */
.text-anim .word {
  display: inline-block;
  perspective: 600px;
}
.text-anim .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotateX(-90deg);
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.text-anim.in-view .char {
  animation: omiyalCharIn 0.62s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.035s);
}
@keyframes omiyalCharIn {
  0%   { opacity: 0; transform: translateY(0.5em) rotateX(-90deg); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotateX(0deg); }
}
/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .text-anim .char {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Decorative hero shapes — subtle motion matched to each shape's character */
.hero-banner-seven img[src*="shape_61"] { animation: shpWobble 5s ease-in-out infinite; }   /* infinity */
.hero-banner-seven img[src*="shape_62"] { animation: shpSway 4.6s ease-in-out infinite; }   /* pink wave */
.hero-banner-seven img[src*="shape_67"] { animation: shpSway 6s ease-in-out infinite; }     /* squiggle connector */

@keyframes shpSway   { 0%, 100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(6px) rotate(2deg); } }
@keyframes shpWobble { 0%, 100% { transform: rotate(-8deg); }          50% { transform: rotate(8deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero-banner-seven img[src*="shape_6"] { animation: none !important; }
}
