body > #arabic-loader {
  display: none;
  position: fixed !important;
  inset: 0;
  z-index: 2147483647 !important;
  place-items: center;
  margin: 0;
  padding: 24px;
  background: #fcfafc;
  isolation: isolate;
  opacity: 1;
  transition: opacity 220ms ease;
}

html.arabic-loading #arabic-loader {
  display: grid;
  animation: arabicLoaderSafety 0s 4s forwards;
}

#arabic-loader img {
  display: block;
  width: 300px;
  max-width: 64vw;
  height: auto;
  max-height: 52svh;
  object-fit: contain;
  aspect-ratio: 1;
  filter: brightness(1.05);
  mix-blend-mode: multiply;
  clip-path: inset(100% 0 0 0);
}

#arabic-loader.is-revealing img {
  animation: arabicNameReveal 2.4s cubic-bezier(.08, .68, .18, 1) both;
}

#arabic-loader.is-leaving {
  opacity: 0;
  pointer-events: none;
}

html.arabic-loading .hero-title {
  animation-play-state: paused !important;
}

@keyframes arabicNameReveal {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes arabicLoaderSafety {
  to { visibility: hidden; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.arabic-loading #arabic-loader { display: none; }
  html.arabic-loading .hero-title { animation-play-state: running !important; }
}
