/* ═══════════════════════════════════════════════════════════
   الصفحة الأولى (الهيرو): مبدّل اللغة، الجملة المكتوبة، القوس والفيديو
   ═══════════════════════════════════════════════════════════ */

/* ═══════════ الهيرو ═══════════ */
.hero { position: fixed; inset: 0; z-index: 40; background: var(--sand); overflow: hidden; }

/* مبدّل اللغة */
.lang {
  position: absolute; z-index: 3; top: 4vh; inset-inline-start: 6vw;
  display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px;
  background: var(--paper); box-shadow: 0 10px 24px -14px rgba(60, 45, 20, .45); border: 1px solid var(--line);
}
.lang button { position: relative; z-index: 1; border: 0; background: none; padding: .6rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: color .35s; }
.lang button[data-lang="en"] { font-family: var(--f-en-title); }
.lang button[data-lang="ar"] { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.lang button.is-on { color: var(--paper); }
.lang__pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; border-radius: 999px; background: var(--ink); }

.hero__shock { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 8vw; pointer-events: none; }
.hero__line { margin: 0 auto; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.4; min-height: 1.4em; max-width: 22ch; }
html[lang="en"] .hero__line { font-weight: 500; letter-spacing: -.02em; }
.hero__line .cur { display: inline-block; width: .06em; height: .9em; margin-inline: .08em; background: var(--gold); vertical-align: -.08em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__main { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr minmax(0, 46vw); visibility: hidden; }
.hero__text { align-self: center; padding: 8vh 6vw 10vh; display: grid; justify-items: start; }
.hero__eyebrow { margin: 0 0 3.2rem; max-width: 34ch; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.75; color: var(--ink-2); }
.hero__title { margin: 0; line-height: 1; }
.hero__word { display: block; font-size: 11.5rem; line-height: 1; color: var(--brand); }
html[lang="en"] .hero__word { font-size: 10rem; }
.hero__lead { margin: 4.6rem 0 3.6rem; font-family: var(--f-text); font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 1.35; }
.hero__start { min-width: 14rem; padding: 1.2rem 2.6rem; font-size: 1.15rem; }
.hero__pct { font-variant-numeric: tabular-nums; font-weight: 500; opacity: .7; font-size: .9rem; }

.hero__visual { position: relative; align-self: end; height: 92vh; margin-inline-end: 4vw; }
.hero__arch { position: absolute; inset: 0; clip-path: url(#arch-clip); overflow: hidden; background: var(--sand-2); }
.hero__poster, .hero__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 57% 50%; transform: scale(1.12); transform-origin: 50% 60%; }
html[dir="rtl"] .hero__vid, html[dir="rtl"] .hero__poster { transform: scaleX(-1) scale(1.12); }
.hero__arch-line { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: 2.5; vector-effect: non-scaling-stroke; overflow: visible; }
.hero__hint { position: absolute; bottom: 3.5vh; inset-inline-start: 6vw; margin: 0; display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--ink-2); }
.hero__hint svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html[lang="en"] .hero__word { letter-spacing: -.03em; }

/* ── الموبايل ── */
@media (max-width: 760px) {
  /* ── هيرو الموبايل: المحراب فوق في النص، والكلام تحته ── */
  .lang { top: 2.5vh; inset-inline-start: 50%; transform: translateX(50%); }
  html[dir="ltr"] .lang { transform: translateX(-50%); }
  .lang button { padding: .7rem 1.5rem; font-size: 1.2rem; }
  .hero__main { display: block; }
  .hero__visual { position: absolute; top: 10vh; left: 50%; width: 72vw; height: 50vh; margin: 0; transform: translateX(-50%); }
  .hero__text { position: absolute; left: 0; right: 0; top: 62vh; padding: 0 8vw; justify-items: center; text-align: center; }
  .hero__eyebrow { display: none; }
  .hero__word { font-size: 5.4rem; }
  html[lang="en"] .hero__word { font-size: 5.4rem; }
  .hero__word .logo-img { margin-inline: auto; }
  .hero__lead { font-size: 1.85rem; margin: 2.2rem 0 2.6rem; }
  .hero__start { min-width: 16rem; padding: 1.25rem 2.6rem; font-size: 1.4rem; }
  .hero__hint { left: 0; right: 0; justify-content: center; font-size: 1.15rem; bottom: 3vh; }
}
