/* Arabic version: type and right-to-left layout.
   Loaded after type.css. Everything here is scoped to html[lang="ar"] (type)
   or html[dir="rtl"] (layout), so the French and English pages are untouched.

   Faces: Amiri for display lines, IBM Plex Sans Arabic for text. Both are
   declared for the Arabic block only (unicode-range), so Latin letters and
   digits inside an Arabic line (Baharia Bridge International, Maria Bahar,
   20:21) still come from Instrument Serif and Jost, like the rest of the site.
   size-adjust lifts the Arabic glyphs to the optical size of the Latin ones
   without touching any of the font-size steps in type.css. */

@font-face {
  font-family: "Amiri"; src: url("../fonts/amiri-arabic.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; size-adjust: 108%;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-400-arabic.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; size-adjust: 104%;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-500-arabic.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap; size-adjust: 104%;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-600-arabic.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap; size-adjust: 104%;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* =========================================================
   Arabic type
   ========================================================= */
html[lang="ar"] {
  --f-display: "Instrument Serif", "Amiri", "Times New Roman", serif;
  --f-sans: "Jost", "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Geist Mono", "IBM Plex Sans Arabic", ui-monospace, "SF Mono", Menlo, monospace;
}

/* tracking breaks the joins between Arabic letters; capitals and italics do not exist */
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-style: normal !important;
}
html[lang="ar"] body { line-height: 1.7; }

/* display lines: open leading so the tall Arabic ascenders and the dots below never touch */
html[lang="ar"] .hero__title { line-height: 1.38; }
html[lang="ar"] .hero__tag { line-height: 1.45; }
html[lang="ar"] .h2 { line-height: 1.38; }
html[lang="ar"] .why__k { line-height: 1.35; }
html[lang="ar"] .contact__title { line-height: 1.35; }
html[lang="ar"] .ft__line { line-height: 1.4; }
/* the gradient is clipped to the text inside the box: the tail of a final meem
   (الفهم, التقدّم) hangs ~0.15em below it, so the box reaches lower and the
   negative margin gives the extra room back to the layout */
html[lang="ar"] .valeur__word { line-height: 1.4; padding-block: 0.06em 0.34em; margin-bottom: -0.22em; }
html[lang="ar"] .valeur__title { line-height: 1.5; }
html[lang="ar"] .svc-card__name { line-height: 1.4; }
html[lang="ar"] .drawer__title { line-height: 1.4; }
html[lang="ar"] .drawer__item h3 { line-height: 1.45; }
html[lang="ar"] .form__title { line-height: 1.45; }
html[lang="ar"] .menu__list a { line-height: 1.5; }
html[lang="ar"] .world__en { line-height: 1.55; }
html[lang="ar"] .founder__quote p { line-height: 1.65; }
html[lang="ar"] .ft__brand p { line-height: 1.6; }
html[lang="ar"] .flight__w { line-height: 1.35; }
/* 1.5: the dots under a final yaa (استراتيجي) reach below the line box and the
   section's clip edge sits close under it on phones */
html[lang="ar"] .founder__track span { line-height: 1.5; }

/* text: a touch more air between lines */
html[lang="ar"] .lede,
html[lang="ar"] .hero__slogan { line-height: 1.7; }
html[lang="ar"] .hero__keys { line-height: 1.6; }
/* the Arabic slogan is shorter than the French one: one line, rather than a
   break in the middle of its second clause (it still wraps below ~340px) */
html[lang="ar"] .hero__slogan { max-width: 21em; }
html[lang="ar"] .svc-card__line,
html[lang="ar"] .why__t,
html[lang="ar"] .valeur__line,
html[lang="ar"] .drawer__item li,
html[lang="ar"] .menu__foot p { line-height: 1.65; }
html[lang="ar"] .field__help,
html[lang="ar"] .form__legal,
html[lang="ar"] .form__notice,
html[lang="ar"] .founder__later { line-height: 1.6; }
html[lang="ar"] .field__label { line-height: 1.5; }
html[lang="ar"] .btn,
html[lang="ar"] .chip span,
html[lang="ar"] .kw li,
html[lang="ar"] .dir__tab,
html[lang="ar"] .nav__links a { line-height: 1.4; }
html[lang="ar"] .g3d-label { line-height: 1.3; padding: 0.3em 0.85em 0.36em; }
html[lang="ar"] .note { line-height: 1.5; }

/* the smallest labels: Arabic dots need a little more size than Latin capitals,
   and the mono face lends its wide space to the words of the clock */
html[lang="ar"] .clock { font-size: 0.8rem; word-spacing: -0.28em; }
html[lang="ar"] .contact__clock .clock { font-size: 0.86rem; }
html[lang="ar"] .motion-toggle { font-size: 0.8rem; }
html[lang="ar"] .ft__col h2 { font-size: 0.86rem; }
html[lang="ar"] .lang__btn { text-indent: 0; }

/* =========================================================
   Right to left
   Flex and grid already follow the writing direction; below are
   the physical lefts and rights that have to be mirrored.
   ========================================================= */
html[dir="rtl"] .skip { left: auto; right: 1rem; }

/* arrows point the way the line reads (scale composes with the hover nudge) */
html[dir="rtl"] .btn__arrow { scale: -1 1; }

/* header */
html[dir="rtl"] .nav__burger { padding: 0 0.9rem 0 1.1rem; }

/* hero: the film, its poster and the fly-through are mirrored, so the dark,
   quiet side of the picture sits behind the text, now on the right */
html[dir="rtl"] .hero__frame { scale: -1 1; }
@media not all and (max-aspect-ratio: 4/5) {
  html[dir="rtl"] .hero__scrim {
    background:
      linear-gradient(270deg, rgba(6, 9, 13, 0.78) 0%, rgba(6, 9, 13, 0.55) 30%, rgba(6, 9, 13, 0.12) 54%, rgba(6, 9, 13, 0) 66%),
      linear-gradient(180deg, rgba(6, 9, 13, 0.5) 0%, rgba(6, 9, 13, 0) 22%, rgba(6, 9, 13, 0) 66%, rgba(6, 9, 13, 0.72) 100%);
  }
}
html[dir="rtl"] .hero__keys li + li::before { margin: 0 0.55em 0 0.75em; }
@media (min-width: 1024px) {
  html[dir="rtl"] .hero__keys li + li::before { margin: 0 0.9em 0 1.05em; }
}
@media (max-width: 1023px) {
  html[dir="rtl"] .hero__keys li::before,
  html[dir="rtl"] .hero__keys li + li::before { margin: 0 0 0 0.9em; }
}
@media (min-width: 700px) {
  html[dir="rtl"] .hero__meta .note { right: auto; left: var(--gutter); }
  html[dir="rtl"] .hero__meta .clock { right: auto; left: var(--gutter); }
}

/* notre valeur: film and its shade mirrored, rows step in from the right */
html[dir="rtl"] .valeur__film { scale: -1 1; }
html[dir="rtl"] .valeur__note { right: auto; left: var(--gutter); }
html[dir="rtl"] .valeur__word {
  background-image: linear-gradient(260deg, #fff6e6 0%, var(--champagne) calc(var(--lit) - 14%), rgba(239, 230, 218, 0.2) var(--lit));
}
@media (min-width: 900px) {
  html[dir="rtl"] .valeur__row:nth-child(2) { margin-left: 0; margin-right: 9vw; }
  html[dir="rtl"] .valeur__row:nth-child(3) { margin-left: 0; margin-right: 18vw; }
}

/* what we do: the bronze objects keep their bleed toward the corner */
html[dir="rtl"] .svc-card .svc-ico { margin: -18px -18px 0 0; }
@media (max-width: 699px) {
  html[dir="rtl"] .svc-card .svc-ico { margin: -6px 0 0 -8px; }
}

/* services drawer: slides in from the left edge */
html[dir="rtl"] .drawer { inset: 0 auto 0 0; box-shadow: 40px 0 90px -40px rgba(0, 0, 0, 0.6); }
html[dir="rtl"] .drawer[open] { animation-name: drawer-in-rtl; }
html[dir="rtl"] .drawer.is-closing { animation-name: drawer-out-rtl; }
@keyframes drawer-in-rtl { from { translate: -100% 0; } }
@keyframes drawer-out-rtl { to { translate: -100% 0; } }
html[dir="rtl"] .drawer__item li { padding-left: 0; padding-right: 1.3rem; }
html[dir="rtl"] .drawer__item li::before { left: auto; right: 0; }

/* deux directions */
html[dir="rtl"] .world { background: radial-gradient(90% 75% at 26% 50%, #34281d 0%, #231a13 46%, #19130e 100%); }
html[dir="rtl"] .kw li { padding: 0 1.05rem 0 1.25rem; }
@media (max-width: 699px) {
  html[dir="rtl"] .kw li { padding: 0 0.9rem 0 1rem; }
}

/* pourquoi: the bronze rule draws from the right */
html[dir="rtl"] .why__rule::after { background: linear-gradient(270deg, var(--bronze-deep), var(--bronze-light)); transform-origin: right; }
html[dir="rtl"] .why__item:hover .why__k { translate: -0.35rem 0; }

/* la fondatrice */
html[dir="rtl"] .founder.ink::after { background: radial-gradient(46% 60% at 72% 44%, rgba(201, 150, 90, 0.2), transparent 70%); }
html[dir="rtl"] .founder__nm + .founder__nm { padding-left: 0; padding-right: 0.42em; }
html[dir="rtl"] .founder__quote::before { background: linear-gradient(270deg, var(--champagne), transparent); }
html[dir="rtl"] .founder__marquee { left: auto; right: 0; }
html[dir="rtl"] .founder__track { animation-name: marquee-rtl; }
html[dir="rtl"] .founder__track span { padding-right: 0; padding-left: 0.5em; }
html[dir="rtl"] .founder__track span::after { padding-left: 0; padding-right: 0.5em; }
@keyframes marquee-rtl { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(50%, 0, 0); } }

/* contact: film and shade mirrored, the form now sits on the left */
html[dir="rtl"] .contact__film { scale: -1 1; }
html[dir="rtl"] .contact__note { right: auto; left: var(--gutter); }
html[dir="rtl"] .req { margin-left: 0; margin-right: 0.18rem; }
html[dir="rtl"] .opt-tag { margin-left: 0; margin-right: 0.55rem; }
html[dir="rtl"] .field__meter { direction: ltr; text-align: left; }
html[dir="rtl"] .field input[type="email"] { direction: ltr; text-align: right; }
html[dir="rtl"] .bbi-hp { left: auto; right: -9999px; }

/* footer */
html[dir="rtl"] .ft__col a { background-position: 100% 100%; }
html[dir="rtl"] .ft__film .note { right: auto; left: 1rem; }
/* "© 2026 Baharia Bridge International" is a Latin line: it keeps its own order */
html[dir="rtl"] .ft__bottom p { direction: ltr; unicode-bidi: isolate; }
