/* Language switcher + French / Arabic / Urdu adjustments. */

.s-lang ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.s-lang a { display: block; padding: 6px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.2; color: inherit; text-decoration: none; opacity: .62; transition: opacity .2s, background-color .2s; }
.s-lang a:hover, .s-lang a:focus-visible { opacity: 1; }
.s-lang a[aria-current] { opacity: 1; background: rgba(28, 25, 23, .08); }
.s-lang a[lang="ar"], .s-lang a[lang="ur"] { font-family: "IBM Plex Sans Arabic", "Noto Nastaliq Urdu", system-ui, sans-serif; font-size: 14px; }
.s-lang--header { display: none; margin-inline-start: 18px; }
@media (min-width: 1080px) { .s-lang--header { display: block; } }
.s-menu__foot .s-lang { grid-column: 1 / -1; margin-top: 8px; }
.s-menu__foot .s-lang ul { justify-content: center; gap: 6px; }
.s-menu__foot .s-lang a { color: var(--cream); padding: 8px 14px; font-size: 15px; }
.s-menu__foot .s-lang a[aria-current] { background: rgba(251, 247, 240, .14); }

/* ── Arabic ── */
html[lang="ar"] {
	--f-display: "Amiri", "Instrument Serif", Georgia, serif;
	--f-sans: "IBM Plex Sans Arabic", "Schibsted Grotesk", system-ui, sans-serif;
}

/* ── Urdu (Nastaliq needs room above and below the line) ── */
html[lang="ur"] {
	--f-display: "Noto Nastaliq Urdu", "Instrument Serif", Georgia, serif;
	--f-sans: "Noto Nastaliq Urdu", "Schibsted Grotesk", system-ui, sans-serif;
}
html[lang="ur"] body { line-height: 2.1; }
html[lang="ur"] p, html[lang="ur"] li, html[lang="ur"] dd { line-height: 2.2; }

/* ── Right-to-left layout ── */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] em, [dir="rtl"] i, [dir="rtl"] .s-rotator, [dir="rtl"] .s-book__kicker { font-style: normal; }
[dir="rtl"] .s-arrow { transform: scaleX(-1) !important; }
[dir="rtl"] .s-brand__name, [dir="rtl"] .s-hero__title, [dir="rtl"] .s-brand__name em { font-family: "Instrument Serif", Georgia, serif; }
[dir="rtl"] .s-brand__name em { font-style: italic; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }

[dir="rtl"] .s-skip { left: auto; right: 12px; }
[dir="rtl"] .s-dropcap::first-letter { float: none; font-size: inherit; padding: 0; line-height: inherit; color: inherit; font-family: inherit; }
[dir="rtl"] .s-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .s-sub { left: auto; right: 0; }
[dir="rtl"] .s-burger { margin-left: 0; margin-right: auto; }
[dir="rtl"] .s-menu__sub { padding-left: 0; padding-right: 32px; }
[dir="rtl"] .s-hero__blob { right: auto; left: -18%; }
[dir="rtl"] .s-hero__line--indent { padding-left: 0; padding-right: .55em; }
[dir="rtl"] .s-hero__badge { left: auto; right: -26px; }
[dir="rtl"] .s-hero__scroll { left: auto; right: var(--gut); }
@media (max-width: 899px) { [dir="rtl"] .s-hero__badge { right: auto; left: -52px; } }
[dir="rtl"] .s-disc__chips { padding-left: 0; padding-right: 90px; }
[dir="rtl"] .s-voices__list a:hover, [dir="rtl"] .s-voices__list a:focus-visible { padding-left: 20px; padding-right: 20px; }
[dir="rtl"] .s-pull { border-left: 0; border-right: 3px solid var(--crimson); padding: 4px 22px 4px 0; }
[dir="rtl"] .s-checklist li::before { left: auto; right: 2px; }
[dir="rtl"] .s-checklist li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .s-shot__zoom { right: auto; left: 12px; }
[dir="rtl"] .s-select::after { right: auto; left: 20px; }
[dir="rtl"] .s-select select { padding-right: 18px; padding-left: 48px; }
[dir="rtl"] .s-cta::before { right: auto; left: -20vw; }

/* Brand strip runs the other way in Arabic and Urdu. */
[dir="rtl"] .s-marquee__track { animation-name: sa-marquee-rtl; }
@keyframes sa-marquee-rtl { to { transform: translateX(50%); } }

/* Arabic-script display type: open up the tight Latin line-heights. */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] [class*="__title"], [dir="rtl"] [class*="__name"], [dir="rtl"] .s-rotator, [dir="rtl"] .s-quote p, [dir="rtl"] .s-review p, [dir="rtl"] .s-pull p { line-height: 1.4; }
[dir="rtl"] .s-brand__name, [dir="rtl"] .s-hero__title { line-height: .95; }

html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3,
html[lang="ur"] [class*="__title"], html[lang="ur"] [class*="__name"], html[lang="ur"] .s-rotator, html[lang="ur"] .s-quote p, html[lang="ur"] .s-review p, html[lang="ur"] .s-pull p { line-height: 1.9; }
html[lang="ur"] .s-hero__title { line-height: .95; }
html[lang="ur"] .s-pagehero__title { font-size: clamp(36px, 5vw, 72px); }
html[lang="ur"] .s-pagehero__title--project { font-size: clamp(32px, 4vw, 56px); }
html[lang="ur"] .s-sechead__title, html[lang="ur"] .s-cta__title, html[lang="ur"] .s-next__title, html[lang="ur"] .s-book__title { font-size: clamp(28px, 3.2vw, 46px); }
html[lang="ur"] .s-disc__title, html[lang="ur"] .s-client__name, html[lang="ur"] .s-voices__name, html[lang="ur"] .s-interview__name, html[lang="ur"] .s-case__title { font-size: clamp(28px, 3.6vw, 50px); }
html[lang="ur"] .s-menu__row > a { font-size: 24px; }
html[lang="ar"] .s-menu__row > a { font-size: 28px; }
