@font-face {
  font-family: "SGKara";
  src: url("fonts/SGKara-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SGKara";
  src:
    url("fonts/SGKara-Regular.woff2") format("woff2"),
    url("fonts/SGKara-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SGKara";
  src:
    url("fonts/SGKara-Regular.woff2") format("woff2"),
    url("fonts/SGKara-Regular.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SGKara";
  src:
    url("fonts/SGKara-Regular.woff2") format("woff2"),
    url("fonts/SGKara-Regular.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SGKara";
  src:
    url("fonts/SGKara-Regular.woff2") format("woff2"),
    url("fonts/SGKara-Regular.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #120e0c;
  --bg-elevated: #1b1512;
  --ink: #f3ebe0;
  --ink-muted: #cbbba8;
  --gold: #c9a45c;
  --gold-soft: #e0c48a;
  --line: rgba(201, 164, 92, 0.28);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius-btn: 999px;
  --radius-panel: 1.6rem;
  --glass: rgba(28, 22, 18, 0.42);
  --glass-border: rgba(240, 217, 160, 0.18);
  --glass-shine: inset 0 1px 0 rgba(255, 248, 238, 0.14);
  --font-display: "SGKara", Tahoma, sans-serif;
  --font-arabic: "SGKara", Tahoma, sans-serif;
  --font-body: "SGKara", Tahoma, sans-serif;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  overflow-x: clip;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201, 164, 92, 0.12), transparent 55%),
    radial-gradient(900px 500px at 10% 40%, rgba(90, 55, 30, 0.35), transparent 60%),
    linear-gradient(180deg, #0d0a09 0%, var(--bg) 40%, #0f0c0a 100%);
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  top: -3rem;
  right: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: #1a120c;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  justify-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-inline: max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-left));
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 28%;
  transform: scale(1.03);
  animation: hero-zoom 14s var(--ease) both;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 6, 5, 0.2) 0%,
      rgba(8, 6, 5, 0.08) 28%,
      rgba(8, 6, 5, 0.45) 58%,
      rgba(8, 6, 5, 0.88) 82%,
      #0c0908 100%
    );
}

.hero__content {
  width: min(100%, 54rem);
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem 0.25rem max(4.75rem, calc(3.5rem + env(safe-area-inset-bottom)));
  text-align: center;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero__verse {
  position: absolute;
  top: max(1.15rem, calc(env(safe-area-inset-top) + 0.75rem));
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  width: 100%;
  padding-inline: 0.75rem;
  font-family: var(--font-arabic);
  font-size: clamp(0.95rem, 2.8vw + 0.4rem, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.hero__verse::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 1px;
  margin-top: 0.75rem;
  margin-inline: auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: line-grow 1.2s var(--ease) 0.4s both;
}

.hero__role {
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.2vw + 0.6rem, 4.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff8ee;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.hero__lead {
  margin: 1.1rem auto 0;
  max-width: 100%;
  font-size: clamp(0.5rem, 2.55vw, 1.05rem);
  color: var(--ink-muted);
  white-space: nowrap;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 1.6rem;
  height: 2.4rem;
  border: 1px solid rgba(240, 217, 160, 0.35);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 0.45rem;
  opacity: 0.85;
  background: rgba(255, 248, 238, 0.06);
  box-shadow: var(--glass-shine), 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero__scroll span {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--gold);
  animation: scroll-dot 1.6s var(--ease) infinite;
}

/* ——— Buttons ——— */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  min-width: 7.5rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 0.4vw + 0.78rem, 0.95rem);
  font-weight: 600;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.28s var(--ease),
    background 0.28s var(--ease),
    border-color 0.28s var(--ease),
    color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-3px);
  }
}

.btn--primary {
  background: linear-gradient(135deg, #e2c48a, var(--gold) 42%, #a8843d);
  color: #1a120c;
  border-color: rgba(240, 217, 160, 0.45);
  box-shadow:
    0 12px 28px rgba(201, 164, 92, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #f0d9a0, #d4b06a 50%, var(--gold));
  box-shadow:
    0 16px 36px rgba(201, 164, 92, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--ghost {
  border-color: rgba(240, 217, 160, 0.28);
  color: var(--ink);
  background: rgba(255, 248, 238, 0.06);
  box-shadow:
    var(--glass-shine),
    0 10px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.btn--ghost:hover {
  border-color: rgba(240, 217, 160, 0.55);
  color: var(--gold-soft);
  background: rgba(255, 248, 238, 0.12);
  box-shadow:
    var(--glass-shine),
    0 14px 34px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(201, 164, 92, 0.12);
}

/* ——— Sections ——— */
.section {
  padding: clamp(3.25rem, 7vw, 7rem) clamp(1rem, 3vw, 1.5rem);
  position: relative;
}

.section__inner {
  width: min(100%, 48rem);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw + 0.8rem, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff7ec;
}

.section__text {
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: clamp(0.95rem, 0.4vw + 0.9rem, 1.05rem);
  max-width: 36rem;
}

.credentials {
  background:
    linear-gradient(180deg, rgba(18, 14, 12, 0.96), rgba(22, 17, 14, 0.98)),
    radial-gradient(600px 280px at 90% 0%, rgba(201, 164, 92, 0.08), transparent 70%);
  border-block: 1px solid rgba(201, 164, 92, 0.12);
}

.cred-list {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.cred-list li {
  padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1rem, 2.5vw, 1.35rem);
  display: grid;
  gap: 0.35rem;
  border-radius: var(--radius-panel);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: var(--glass-shine), 0 14px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .cred-list li:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 217, 160, 0.35);
    box-shadow:
      var(--glass-shine),
      0 18px 40px rgba(0, 0, 0, 0.28),
      0 0 28px rgba(201, 164, 92, 0.08);
  }
}

.cred-list li:last-child {
  border-bottom: 1px solid var(--glass-border);
}

.cred-list__label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 500;
}

.cred-list strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw + 0.55rem, 1.85rem);
  font-weight: 600;
  line-height: 1.45;
  color: #fff8ee;
  overflow-wrap: anywhere;
}

.cred-list__note {
  display: inline;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-muted);
  margin-inline-start: 0.35rem;
}

.services {
  background:
    radial-gradient(700px 320px at 0% 20%, rgba(120, 70, 30, 0.18), transparent 65%),
    linear-gradient(180deg, #14100e, #100d0b);
}

.service-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.service {
  padding: clamp(1.2rem, 3vw, 1.6rem) clamp(1.1rem, 3vw, 1.5rem)
    clamp(1.3rem, 3vw, 1.7rem);
  border-radius: var(--radius-panel);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(160deg, rgba(255, 248, 238, 0.07), rgba(28, 22, 18, 0.35));
  box-shadow: var(--glass-shine), 0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .service:hover {
    transform: translateY(-3px);
    border-color: rgba(240, 217, 160, 0.38);
    box-shadow:
      var(--glass-shine),
      0 22px 50px rgba(0, 0, 0, 0.34),
      0 0 32px rgba(201, 164, 92, 0.1);
  }
}

.service h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.5vw + 1rem, 1.85rem);
  font-weight: 700;
  color: #fff8ee;
}

.service h3::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.service p {
  margin: 0.85rem 0 0;
  color: var(--ink-muted);
}

.contact {
  background:
    radial-gradient(800px 360px at 50% 0%, rgba(201, 164, 92, 0.14), transparent 60%),
    linear-gradient(180deg, #16110e, #0e0b09);
  text-align: center;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 42rem);
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 3vw, 1.5rem)
    clamp(1.6rem, 4vw, 2.4rem);
  border-radius: calc(var(--radius-panel) + 0.4rem);
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(165deg, rgba(255, 248, 238, 0.08), rgba(20, 15, 12, 0.5));
  box-shadow:
    var(--glass-shine),
    0 28px 70px rgba(0, 0, 0, 0.35),
    0 0 50px rgba(201, 164, 92, 0.08);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

.contact .section__text {
  text-align: center;
}

.phone {
  margin-top: 1.75rem;
  max-width: 100%;
  padding: 0.35rem clamp(0.7rem, 2vw, 1.1rem);
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw + 0.4rem, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  background: rgba(255, 248, 238, 0.04);
  border: 1px solid rgba(240, 217, 160, 0.16);
  box-shadow: var(--glass-shine);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.phone:hover {
  color: #f0d9a0;
}

.instagram {
  margin-top: 0.85rem;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw + 0.55rem, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  transition: color 0.25s var(--ease);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.instagram:hover {
  color: var(--gold-soft);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.75rem;
}

/* ——— Footer ——— */
.footer {
  padding: 2.5rem 1.25rem max(3rem, calc(2rem + env(safe-area-inset-bottom)));
  text-align: center;
  border-top: 1px solid rgba(201, 164, 92, 0.14);
  background:
    linear-gradient(180deg, rgba(18, 14, 12, 0.55), #0a0807 70%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer__verse {
  margin: 0;
  font-family: var(--font-arabic);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--gold);
}

.footer__brand {
  margin: 0.65rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink);
}

.footer__instagram {
  display: inline-block;
  margin-top: 0.55rem;
  max-width: 100%;
  padding-inline: 0.5rem;
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  color: var(--gold-soft);
  transition: color 0.25s var(--ease);
  overflow-wrap: anywhere;
}

.footer__instagram:hover {
  color: #f0d9a0;
}

.footer__copy {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: rgba(203, 187, 168, 0.65);
}

/* ——— Motion ——— */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

.fade-in--delay-1 {
  animation-delay: 0.15s;
}
.fade-in--delay-2 {
  animation-delay: 0.3s;
}
.fade-in--delay-3 {
  animation-delay: 0.45s;
}
.fade-in--delay-4 {
  animation-delay: 0.6s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1.04);
  }
}

@keyframes line-grow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 4.5rem;
    opacity: 1;
  }
}

@keyframes scroll-dot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(12px);
    opacity: 0.2;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in,
  .hero__image,
  .hero__verse::after,
  .hero__scroll span {
    animation: none !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ——— Responsive breakpoints ——— */
@media (min-width: 1024px) {
  .hero__image {
    object-position: 42% 28%;
  }
}

@media (max-width: 1023px) {
  .hero__image {
    object-position: 50% 20%;
  }

  .hero__veil {
    background:
      linear-gradient(
        180deg,
        rgba(8, 6, 5, 0.12) 0%,
        rgba(8, 6, 5, 0.05) 30%,
        rgba(8, 6, 5, 0.55) 62%,
        rgba(8, 6, 5, 0.9) 85%,
        #0c0908 100%
      );
  }
}

@media (max-width: 768px) {
  .hero__actions {
    width: 100%;
    gap: 0.65rem;
  }

  .hero__actions .btn {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 0;
  }

  .contact__actions {
    width: 100%;
  }

  .contact__actions .btn {
    flex: 1 1 calc(50% - 0.45rem);
    min-width: 0;
  }

  .cred-list__note {
    display: block;
    margin-inline-start: 0;
    margin-top: 0.2rem;
  }
}

@media (max-width: 520px) {
  .hero__actions .btn,
  .contact__actions .btn {
    flex: 1 1 100%;
  }

  .hero__lead {
    white-space: nowrap !important;
    font-size: min(0.78rem, 2.5vw);
    letter-spacing: -0.015em;
  }

  .hero__role {
    letter-spacing: 0.08em;
  }

  .instagram {
    white-space: normal;
  }

  .service-grid {
    gap: 0.9rem;
  }

  .eyebrow {
    letter-spacing: 0.12em;
  }
}

@media (max-width: 360px) {
  .hero__brand {
    font-size: clamp(1.25rem, 9vw, 1.7rem);
  }

  .hero__verse {
    font-size: 0.9rem;
  }

  .hero__lead {
    font-size: min(0.7rem, 2.35vw);
  }

  .phone {
    font-size: 1.4rem;
    letter-spacing: 0.03em;
  }
}

@media (min-width: 1400px) {
  .hero__content,
  .section__inner,
  .contact__inner {
    width: min(100%, 56rem);
  }
}

/* ——— Intro splash ——— */
.intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.intro__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(201, 164, 92, 0.22), transparent 42%),
    radial-gradient(circle at 50% 50%, #1a1410 0%, #0a0807 70%);
  transition: opacity 0.9s var(--ease);
}

.intro__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.intro__glow {
  position: absolute;
  width: min(70vw, 28rem);
  height: min(70vw, 28rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.28), transparent 68%);
  filter: blur(8px);
  animation: intro-pulse 2.4s ease-in-out infinite;
  transition: opacity 0.7s var(--ease);
}

.intro__rings {
  position: absolute;
  width: min(58vw, 22rem);
  height: min(58vw, 22rem);
}

.intro__rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 92, 0.28);
  animation: intro-ring 2.8s var(--ease) infinite;
}

.intro__rings span:nth-child(2) {
  inset: 8%;
  animation-delay: 0.35s;
  border-color: rgba(201, 164, 92, 0.2);
}

.intro__rings span:nth-child(3) {
  inset: 16%;
  animation-delay: 0.7s;
  border-color: rgba(201, 164, 92, 0.12);
}

.intro__mark {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 90;
  width: min(52vw, 15.5rem);
  aspect-ratio: 1;
  transform: translate(-50%, -54%) scale(1);
  transform-origin: center center;
  pointer-events: none;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.35));
  transition:
    top 1.1s var(--ease),
    left 1.1s var(--ease),
    right 1.1s var(--ease),
    width 1.1s var(--ease),
    transform 1.1s var(--ease),
    filter 1.1s var(--ease);
}

.intro__mark .emblem {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  animation:
    emblem-enter 1.1s var(--ease) both,
    emblem-float 2.6s ease-in-out 1.1s infinite;
}

.site {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.85s var(--ease) 0.15s,
    visibility 0s linear 1s;
}

body.intro-pending {
  overflow: hidden;
}

body.intro-pending .fade-in {
  animation: none !important;
  opacity: 0;
  transform: translateY(18px);
}

body.intro-exit .intro__backdrop,
body.intro-exit .intro__glow,
body.intro-exit .intro__rings {
  opacity: 0;
}

body.intro-exit .intro__mark,
body.is-ready .intro__mark {
  top: max(0.85rem, env(safe-area-inset-top));
  left: auto;
  right: max(0.85rem, env(safe-area-inset-right));
  width: clamp(2.6rem, 7vw, 3.35rem);
  transform: translate(0, 0) scale(1);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
  pointer-events: auto;
}

body.is-ready {
  overflow: auto;
}

body.is-ready .site {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.85s var(--ease) 0.1s,
    visibility 0s linear 0s;
}

body.is-ready .fade-in {
  animation: rise 0.9s var(--ease) forwards;
}

body.is-ready .fade-in--delay-1 {
  animation-delay: 0.15s;
}
body.is-ready .fade-in--delay-2 {
  animation-delay: 0.3s;
}
body.is-ready .fade-in--delay-3 {
  animation-delay: 0.45s;
}
body.is-ready .fade-in--delay-4 {
  animation-delay: 0.6s;
}

body.is-ready .intro.intro--settled .intro__backdrop,
body.is-ready .intro.intro--settled .intro__stage {
  display: none;
}

body.is-ready .intro.intro--settled {
  pointer-events: none;
}

body.is-ready .intro.intro--settled .intro__mark {
  pointer-events: auto;
  z-index: 100;
}

body.is-ready .intro.intro--settled .emblem {
  animation: none;
}

@keyframes intro-pulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes intro-ring {
  0% {
    transform: scale(0.86);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

@keyframes emblem-enter {
  from {
    opacity: 0;
    transform: scale(0.72) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes emblem-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro__glow,
  .intro__rings span,
  .intro__mark .emblem {
    animation: none !important;
  }

  .intro__mark,
  .intro__backdrop,
  .site {
    transition-duration: 0.2s !important;
  }
}

/* نوار مدیریت وردپرس */
body.admin-bar .hero__verse {
  top: max(3.25rem, calc(env(safe-area-inset-top) + 2.75rem));
}

body.admin-bar.intro-exit .intro__mark,
body.admin-bar.is-ready .intro__mark {
  top: max(2.75rem, calc(env(safe-area-inset-top) + 2.35rem));
}

@media screen and (max-width: 782px) {
  body.admin-bar .hero__verse {
    top: max(3.75rem, calc(env(safe-area-inset-top) + 3.25rem));
  }

  body.admin-bar.intro-exit .intro__mark,
  body.admin-bar.is-ready .intro__mark {
    top: max(3.35rem, calc(env(safe-area-inset-top) + 2.85rem));
  }
}
