/* ==========================================================================
   basemsayej.com/ar — Arabic (RTL) overrides, loaded after main.css
   ========================================================================== */

:root {
	--sans: "Lateef", "Inter Tight", system-ui, serif;
	--display-ar: "Mirza", "Lateef", serif;
}

/* Arabic letters must stay joined: no tracking, no uppercase tricks */
.eyebrow,
.hero__kicker,
.hero__hint,
.cursor__label,
.nav__links,
.stat__label {
	letter-spacing: 0;
	text-transform: none;
}

.eyebrow, .hero__kicker { font-size: .95rem; }
.cursor__label { font-size: .8rem; }

/* Lateef has a small x-height: bump Arabic body text so it reads at the
   same size as the English page */
.hero__foot, .hero__kicker, .hero__hint, .work__desc, .contact__sub, .pill,
.foot, .nav__links, .eyebrow, .cursor__label { font-size-adjust: .62; }

/* Latin bits keep the English typography */
[lang="en"] { font-family: "Inter Tight", system-ui, sans-serif; }

/* ---------- Hero ---------- */
.hero__title {
	font-family: var(--display-ar);
	font-weight: 700;
	/* sized by width AND height so the name never pushes the footer off-screen */
	font-size: clamp(5rem, min(26vw, 25vh), 24rem);
	line-height: 1;
}

/* Mirza's tails (ب ي ج) hang far below the baseline: give the clipping box
   room for them, and pull the next line back up by the same amount */
.hero__line { text-align: right; padding-bottom: .4em; margin-bottom: -.3em; }
.hero__line--r { text-align: left; }

.hero__foot p:first-child { justify-self: start; }

/* ---------- Marquee: keep the loop direction of the English page ---------- */
.marquee, .marquee__track { direction: ltr; }
.marquee__track span[lang="ar"] { font-family: var(--display-ar); }
.marquee__track span[lang="en"] { font-family: var(--display); }

/* ---------- About ---------- */
.about__lead {
	max-width: 24ch;
	font-weight: 300;
	line-height: 1.35;
	letter-spacing: 0;
}

.about__lead em { font-style: normal; font-weight: 500; }

/* ---------- Work ---------- */
.work__title {
	font-family: var(--display-ar);
	font-weight: 700;
	line-height: 1.2;
}

.work__title[lang="en"] { font-family: var(--display); font-weight: 400; line-height: .95; }

/* English name next to the Arabic title */
.work__ar {
	font-family: var(--display);
	font-weight: 400;
	font-size: .45em;
	text-transform: uppercase;
}

.work__note { font-style: normal; }

/* ↖ arrows point "forward" in RTL, so rotate the other way on hover */
.work__item > a:hover .work__arrow { transform: rotate(-45deg); }

/* ---------- Contact ---------- */
.contact__title {
	font-family: var(--display-ar);
	font-weight: 700;
	font-size: clamp(5rem, 22vw, 22rem);
	line-height: 1.1;
}

.contact__title-r { text-align: left; }

/* ---------- Loader: Arabic-Indic numerals need an Arabic font ---------- */
.curtain__count { font-family: var(--display-ar); font-weight: 700; line-height: 1; }
