/* HPH Dhivehi motion direction — physical right-to-left wipe. */
html[dir="rtl"] .hero-chapter > * {
  animation-name: hph-dv-hero-wipe-rtl !important;
}

@keyframes hph-dv-hero-wipe-rtl {
  0% {
    opacity: 0;
    filter: blur(3px);
    transform: translate3d(0, 18px, 0);
    clip-path: inset(0 0 0 100%);
  }
  4.8%, 27.8% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
    clip-path: inset(0 0 0 0);
  }
  31.8%, 33.333%, 100% {
    opacity: 0;
    filter: blur(1.5px);
    transform: translate3d(0, -10px, 0);
    clip-path: inset(0 0 0 0);
  }
}

html[dir="rtl"] body.interior-page .reveal {
  opacity: 0;
  transform: translate3d(24px, 0, 0);
  clip-path: inset(0 0 0 100%);
  transition:
    clip-path .9s cubic-bezier(.22, 1, .36, 1),
    transform .9s cubic-bezier(.22, 1, .36, 1),
    opacity .3s ease;
}

html[dir="rtl"] body.interior-page .reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  html[dir="rtl"] .hero-chapter > * {
    animation: none !important;
  }
  html[dir="rtl"] .hero-chapter:first-child > * {
    opacity: 1;
    filter: none;
    transform: none;
    clip-path: none;
  }
  html[dir="rtl"] body.interior-page .reveal,
  html[dir="rtl"] body.interior-page .reveal.visible {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}
