/* Always-visible language navigation, shared by both editions. */
.language-switch {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  position: relative;
  z-index: 101;
  font: 700 13px/1 Arial, sans-serif;
  color: var(--muted);
}
.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.language-switch a[aria-current="page"] { color: var(--ink); font-weight: 900; }
.language-switch a:hover { color: var(--accent); }
.language-switch a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 14px;
  height: 2px;
  background: var(--accent);
}
/* The Arabic studio assets remain Arabic; their context is localized. */
.english-edition { text-align: left; }
.english-edition :is(.waitlist-form, .proof-form, .founder-intro, .service-copy, .work-stage-body) { text-align: start; }
.english-edition [data-arabic-sample] { text-align: right; }
.english-edition .english-gloss {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
  text-align: left;
}
.english-edition :is(h1,h2,h3,h4) { overflow-wrap: break-word; }
.english-edition .hero-production-notes h3 { font-size: clamp(24px, 2.7vw, 40px); line-height: 1.35; }
.english-edition .hero-work--content .hero-copy-card > p { direction: rtl; }
.english-edition .immersive-showcase .slide-caption :is(h1,h2) { font-size: clamp(42px, 5.7vw, 90px); line-height: 1.2; }
.english-edition .large-heading { line-height: 1.2; }
.english-edition .production-contrast .large-heading { font-size: clamp(46px, 6vw, 92px); }
.english-edition .work-stages button { white-space: normal; text-align: start; }
.english-edition .service-heading h3 { line-height: 1.3; }
.english-edition .summary-row { grid-template-columns: 145px minmax(0,1fr); }
.english-edition .service-price .price-amount { justify-self: start; }
@media (max-width: 1100px) and (min-width: 761px) {
  .header .header-quick { display: none; }
  .header .language-switch { margin-inline-start: auto; }
}
@media (max-width: 760px) {
  .header.wrap { gap: 8px; }
  .header .language-switch { margin-inline-start: auto; }
  .header .menu-toggle { margin-inline-start: 0; }
  .english-edition .immersive-showcase .slide-caption :is(h1,h2) { font-size: clamp(30px, 7.5vw, 46px); line-height: 1.3; }
  .english-edition .hero-production-notes h3 { font-size: 20px; }
  .english-edition .hero-work--content .hero-production-notes h3 { font-size: 20px; }
  .english-edition .large-heading { font-size: clamp(31px, 7.7vw, 46px); line-height: 1.25; }
  .english-edition .production-contrast .large-heading { font-size: clamp(34px, 8vw, 54px); }
  .english-edition #explore .portfolio-heading h2 { font-size: clamp(31px, 7.7vw, 44px); line-height: 1.25; }
  .english-edition .launch .large-heading { font-size: clamp(48px, 12vw, 80px); }
  .english-edition .work-card-title { font-size: 18px; line-height: 1.4; }
  .english-edition .service-row h3 { font-size: clamp(22px, 5.7vw, 32px); }
  .english-edition .summary-row { grid-template-columns: 90px minmax(0,1fr); }
  .english-edition .signup-row button { font-size: 15px; }
}
@media (max-width: 360px) {
  .header .brand-logo { width: 110px; height: 41.25px; }
  .language-switch { gap: 0; }
  .english-edition .hero-work--reel .hero-production-notes h3 { font-size: 18px; }
}
.english-edition :is(.showcase-slide, .gallery-navigation, .marquee-view, .marquee-line) { direction: ltr; }
.english-edition .full-footer .footer-word { text-align: start; }
.english-edition .immersive-showcase .slide-caption > span { text-align: start; }
/* Direct language link: one click, with a bilingual typographic mark. */
.language-switch .language-link {
  gap: 8px;
  min-width: 76px;
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}
.language-switch .language-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.language-switch .language-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.language-icon { display: block; flex: 0 0 24px; }
.language-icon-ar {
  fill: currentColor;
  font-family: Tajawal, sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.language-label { font-size: 13px; font-weight: 700; line-height: 1; }
.language-label[lang="ar"] { font-family: Tajawal, sans-serif; font-size: 22px; }
@media (prefers-reduced-motion: reduce) {
  .language-switch .language-link { transition: none; }
}

/* v41 — center the quick links independently of the unequal header edges. */
@media (min-width: 1101px) {
  .header .header-quick {
    position: absolute;
    left: 0;
    right: 0;
    transform: none;
    pointer-events: none;
    margin-inline: 0;
    justify-content: center;
    white-space: nowrap;
  }
  .header .language-switch { margin-inline-start: auto; }
}
/* Leave room for the centered links at narrower desktop widths. */
@media (min-width: 1101px) and (max-width: 1360px) {
  .header .brand > span { display: none; }
}
/* Compact screens retain the existing menu, with its links centered. */
@media (max-width: 1100px) {
  .header nav.open { align-items: center; text-align: center; }
  .header nav.open .menu-meta { justify-content: center; width: 100%; }
}

/* v42 — the menu opens the centered navigation group, before Services. */
.header .header-quick > .menu-toggle { margin-inline: 0; }
.header .header-quick > :is(a, button) { pointer-events: auto; }
.menu-open .header .header-quick > .menu-toggle { visibility: visible; }
@media (max-width: 1100px) {
  .header .header-quick { display: flex; margin-inline-start: auto; }
  .header .header-quick > a { display: none; }
  .header .language-switch { margin-inline-start: 0; }
}

/* Keep the direct language control beside the English wordmark at every width. */
.header .header-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.header .header-brand-group .language-switch { margin-inline: 0; }
@media (max-width: 1360px) {
  .header-brand-group .language-switch .language-link {
    min-width: 60px;
    padding-inline: 6px;
    gap: 6px;
  }
}
@media (max-width: 760px) {
  .header .header-brand-group { gap: 8px; }
}
