@font-face {
  font-family: 'Kenyalang Jawi';
  src: url('./fonts/kenyalang-jawi.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.intro-loader { display: none; }
html.is-loading, html.is-revealing { overflow: hidden; }
.is-loading .intro-loader, .is-revealing .intro-loader,
.intro-loader[data-phase="loading"], .intro-loader[data-phase="revealing"] {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #060808;
  color: #dadcd4;
  opacity: 1;
  cursor: wait;
  transition: opacity 700ms ease;
}
.intro-center { width: min(420px, 72vw); text-align: center; }
.intro-logo {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 .65px #bdbba180);
  animation: intro-spin 3.2s linear infinite;
}
.intro-jawi {
  font-family: 'Kenyalang Jawi', 'Traditional Arabic', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  margin: 0 0 25px;
  color: #b9bdb7;
}
.intro-track { width: 100%; height: 1px; background: #ffffff24; overflow: hidden; }
.intro-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: #deded1;
  transform: scaleX(var(--intro-progress, 0));
  transform-origin: left;
  transition: transform 650ms cubic-bezier(.22, 1, .36, 1);
}
.intro-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  font-family: 'Kenyalang UI', Manrope, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .22em;
  color: #929c98;
}
#intro-percent { color: #ccd0c7; font-variant-numeric: tabular-nums; letter-spacing: .15em; }
.intro-meta p { margin: 0; }
.is-revealing .intro-loader, .intro-loader[data-phase="revealing"] { opacity: 0; }
.is-loading #cursor, .is-revealing #cursor { display: none !important; }
@keyframes intro-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .intro-logo { width: 52px; height: 52px; margin-bottom: 19px; }
  .intro-jawi { font-size: 25px; margin-bottom: 24px; }
  .intro-meta { font-size: 12px; letter-spacing: .16em; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-logo { animation: none; }
  .intro-loader, .intro-track span { transition: none !important; }
}
