/* ============================================================
   RIGHT-TO-LEFT (Arabic). Loaded only when is_rtl().
   ============================================================ */
:root{
  --display:'IBM Plex Sans Arabic','Archivo',system-ui,sans-serif;
  --serif:'Amiri','Cormorant Garamond',Georgia,serif;
  --mono:'IBM Plex Mono','IBM Plex Sans Arabic',ui-monospace,monospace;
}
html[dir="rtl"] body{line-height:1.8}

/* Arabic is a connected script: no tracking, no capitals */
html[dir="rtl"] body *:not(.foot-mark):not(code):not(.ws-url){letter-spacing:0 !important}
html[dir="rtl"] body *{text-transform:none !important}

/* headings: serif voice uses Amiri, which needs more room than Cormorant */
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3{line-height:1.35}
html[dir="rtl"] em{font-style:normal}

/* handwritten section labels: Caveat has no Arabic, Aref Ruqaa does */
html[dir="rtl"] .kicker,html[dir="rtl"] .crumb,html[dir="rtl"] .eyebrow-lab,html[dir="rtl"] .cta-band--shader .cta-eyebrow{
  font-family:'Aref Ruqaa','Caveat',cursive;line-height:1.5;
}
html[dir="rtl"] .kicker .num{font-family:'Caveat',cursive}

/* arrows point the reading direction */
html[dir="rtl"] .arw,html[dir="rtl"] .tarrow{display:inline-block;scale:-1 1}

/* nav underline grows from the right */
html[dir="rtl"] .nav-links a:hover::after,html[dir="rtl"] .nav-links a.here::after{transform-origin:right}

/* the logo, emails and links stay left-to-right inside Arabic text */
html[dir="rtl"] .nav-logo,html[dir="rtl"] .foot-logo,html[dir="rtl"] .foot-mail,html[dir="rtl"] .ws-url{direction:ltr}
html[dir="rtl"] .foot-mark{direction:ltr}
/* the skip link parks off-screen on the right, where RTL does not scroll */
html[dir="rtl"] .skip{left:auto;right:-9999px}
html[dir="rtl"] .skip:focus{right:12px;left:auto}

/* hover nudges move with the reading direction */
html[dir="rtl"] .triplet div:hover{transform:translateX(-6px)}

/* films section portrait: sits on the left, mirrored, so it faces the text */
html[dir="rtl"] .home-work::before{right:auto;left:0;transform:scaleX(-1)}

/* vision headline: Amiri runs much larger than Cormorant at the same size */
html[dir="rtl"] .vision-head{font-size:clamp(2.2rem,4.2vw,3.6rem);line-height:1.4}

/* web service page: process timeline starts on the right */
html[dir="rtl"] .ws-step{padding:30px 0 0 24px}
html[dir="rtl"] .ws-step::before{left:auto;right:0}
@media (max-width:1000px){
  html[dir="rtl"] .ws-steps{border-left:0;border-right:1px solid var(--line);margin-left:0;margin-right:6px}
  html[dir="rtl"] .ws-step{padding:0 30px 34px 0}
  html[dir="rtl"] .ws-step::before{right:-6px}
}

/* web service page: headings use the site's heading font (Amiri), like every other page */
html[dir="rtl"] .ws-h1,html[dir="rtl"] .ws-h2,html[dir="rtl"] .ws-cell h3,html[dir="rtl"] .ws-step h3,html[dir="rtl"] .ws-check h3,html[dir="rtl"] .ws-faq summary{font-family:var(--serif);font-weight:400;line-height:1.35}
html[dir="rtl"] .ws-h1{font-size:clamp(2.2rem,4vw,3.6rem)}
html[dir="rtl"] .ws-h2{font-size:clamp(1.9rem,3.4vw,3rem)}
html[dir="rtl"] .ws-cell h3{font-size:clamp(1.4rem,1.8vw,1.75rem)}
html[dir="rtl"] .ws-cell--lg h3{font-size:clamp(1.7rem,2.4vw,2.3rem)}
html[dir="rtl"] .ws-step h3,html[dir="rtl"] .ws-check h3{font-size:1.4rem}
html[dir="rtl"] .ws-faq summary{font-size:clamp(1.2rem,1.6vw,1.45rem)}
html[dir="rtl"] .ws-stack li{font-family:var(--display)}

/* readability sizes for Arabic (client review 2026-11-16) */
html[dir="rtl"] .nav-links a{font-size:15px}
html[dir="rtl"] .nav-cta{font-size:15px}
html[dir="rtl"] .founder-role{font-family:var(--display);font-size:16px;line-height:1.6}
html[dir="rtl"] .lede{font-size:clamp(18px,1.4vw,20px);line-height:1.8}
@media (max-width:460px){html[dir="rtl"] .nav-cta{font-size:13px}}

/* home hero final slide: brand label above the headline (Arabic) */
html[dir="rtl"] .band-settle .band-inner::before,html[dir="rtl"] .static-hero::before{
  content:"ALLGOSHY PRODUCTION";display:block;direction:ltr;margin-bottom:1.1em;
  font-family:'Archivo',sans-serif;font-size:13px;font-weight:500;letter-spacing:.18em !important;
  color:var(--accent);opacity:.9;text-align:center;
}

/* films carousel arrows: point the reading direction (previous on the right, next on the left) */
html[dir="rtl"] .ct-arrow svg{scale:-1 1}

/* remaining arrows: project cards and projects pagination */
html[dir="rtl"] .pbc-btn svg,html[dir="rtl"] .pj-page--nav svg{scale:-1 1}
