/* Arabic pages: Cairo type, no Latin letter-spacing or capitals, and the
   layout read right to left. The scenes and their artwork stay as they are;
   only the words and their blocks swap sides. Loaded after styles.css/page.css. */
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] .viewer,
html[lang="ar"] .menu,
html[lang="ar"] body.page,
html[lang="ar"] .menu :is(button, input, a) {
  font-family: "Cairo", "Geeza Pro", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "slnt" 0;
}
html[lang="ar"] *:not(svg):not(path) { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="ar"] .lang { font-family: "Inter", system-ui, sans-serif; font-size: 12px; font-weight: 700; }
/* same weights as English (Cairo runs 200 to 1000); Arabic needs taller lines */
html[lang="ar"] .headline { line-height: 1.2; }
html[lang="ar"] :is(.page__title, .viewer__contact-title, .page__cta p, .story__title) { line-height: 1.3; }
html[lang="ar"] .line { padding: .28em 0 .36em; margin: -.28em 0 -.36em; }   /* room in the reveal mask for Cairo's tall letters and dots */
html[lang="ar"] .counter, html[lang="ar"] [dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
/* department slides: the headline moves to the right, the paragraph to the left */
@media (min-width: 761px) {
  html[lang="ar"] .slide:not(.home):not(.finale) .title { left: auto; right: var(--col); }
  html[lang="ar"] .slide:not(.home):not(.finale) .copy { right: auto; left: var(--col); text-align: left; }
  html[lang="ar"] .slide:not(.home):not(.finale) .copy p { text-align: right; }
  html[lang="ar"] .s4 .title { left: 50%; right: auto; }   /* Technology stays centred under the plane */
}
/* phones: the stack reads from the right */
@media (max-width: 760px) {
  html[lang="ar"] .slide:not(.home):not(.finale) :is(.title, .copy, .services) { text-align: right; }
}
/* the floating contact button stays in the bottom-right corner */
html[lang="ar"] .reach { align-items: flex-start; }
/* arrows point the way Arabic reads */
html[lang="ar"] svg:has(path[d="M5 12h13M13 6l6 6-6 6"]),
html[lang="ar"] svg:has(path[d="M19 12H6M11 6l-6 6 6 6"]) { scale: -1 1; }
html[lang="ar"] .menu__lang, html[lang="ar"] .topnav .topnav__lang { font-family: "Inter", system-ui, sans-serif; }
html[lang="ar"] .topnav .topnav__lang { padding: 0 9px 0 7px; font-family: "Inter", system-ui, sans-serif; font-size: 10px; font-weight: 700; }
html[lang="ar"] .topnav__lang::before { left: auto; right: 0; }
html[lang="ar"] .topnav { --dir: -1; }

