/* RTL / Arabic-script overrides (Sorani `ckb`, Iraqi Arabic `ar-IQ`). ADDITIVE ONLY: every rule is scoped to [dir="rtl"], so LTR output is unchanged.
   Load after site.css. Josefin Sans stays the Latin/digit face; Vazirmatn (CEO-locked, fonts.css, Arabic unicode-range only) supplies Arabic-script glyphs. */
[dir="rtl"]{--f-display:'Josefin Sans',var(--font-ar),'Geeza Pro','Segoe UI',Tahoma,system-ui,sans-serif} /* --font-ar is defined in fonts.css (single switch) */
[dir="rtl"] body{line-height:1.7} /* Vazirmatn: tall x-height, generous built-in line gap; 1.7 reads even without the Naskh-era 1.75 */
/* Arabic script must never be tracked or uppercased: tracking breaks letter joining */
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3,[dir="rtl"] .lbl,[dir="rtl"] .btn,[dir="rtl"] .eyebrow,[dir="rtl"] .reel__nav button,
[dir="rtl"] .ins .r,[dir="rtl"] .ins .t,[dir="rtl"] .nav a,[dir="rtl"] .sheet a{letter-spacing:0;text-transform:none}
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3{line-height:1.28;font-weight:600} /* .98 clips Arabic marks; Vazirmatn 700 is far heavier than Josefin 700 next to the Latin wordmark, 600 matches its colour */
[dir="rtl"] .ln{padding:.2em 0 .18em;margin:-.2em 0 -.18em}
/* mirrored absolute anchors */
[dir="rtl"] .skip{left:auto;right:12px}
[dir="rtl"] .hero__copy{left:auto;right:var(--pad)}
[dir="rtl"] .cue{right:auto;left:var(--pad)}
[dir="rtl"] .case__idx{left:auto;right:0}
[dir="rtl"] .cta{text-align:right}
[dir="rtl"] .endcap{align-items:flex-start;padding-left:0;padding-right:clamp(10px,2vw,30px)} /* MT-020: flex-start = right edge in RTL (was flex-end, which pinned the button to the left viewport edge at reel end) */
[dir="rtl"] .intro{padding-right:0;padding-left:clamp(10px,3vw,50px)}
[dir="rtl"] .introarc{left:auto;right:-18%}
/* method timeline: glyph + connector run right to left */
[dir="rtl"] .step .glyph{left:auto;right:0}
[dir="rtl"] .seg{left:calc(-1 * clamp(24px,4vw,70px) + 8px);right:92px}
[dir="rtl"] .step:last-child .seg{left:0;right:92px} /* R1: site.css .step:last-child .seg{right:0} (0,3,0) beat the plain RTL rule, so the last connector ran through its own glyph */
[dir="rtl"] .seg b{transform-origin:right}
/* proof cards: divider on the inline-end edge */
[dir="rtl"] .pr article{padding:30px 0 10px clamp(16px,2.4vw,36px);border-right:0;border-left:1px solid var(--line);margin-right:0;margin-left:clamp(16px,2.4vw,36px)}
/* insights rows */
[dir="rtl"] .ins a:hover,[dir="rtl"] .ins a:focus-visible{padding-left:0;padding-right:20px}
/* decorative corner art flips to the opposite corner */
[dir="rtl"] .t-b .bg3{right:auto;left:-14%}
[dir="rtl"] .door svg{right:auto;left:-110px}
[dir="rtl"] .reel__prog i{transform-origin:right}
/* directional icons / arrows: add class .i-dir to any arrow glyph or svg that points along the reading direction */
[dir="rtl"] .i-dir{transform:scaleX(-1)}
@media (max-width:1000px){
  [dir="rtl"] .seg,[dir="rtl"] .step:last-child .seg{left:auto;right:37px}
  [dir="rtl"] .step:last-child .seg{display:none}
  [dir="rtl"] .seg b{transform-origin:top}
}
@media (max-width:640px){
  [dir="rtl"] .hero__copy{left:var(--pad);right:var(--pad)}
}
/* hero sculpture sits on the inline-end side: mirror the framing hook (HeroSculpture reads --sculpt-x; portrait keeps its centred default) */
@media (min-aspect-ratio:21/20){[dir="rtl"] .stage{--sculpt-x:-.25}}
/* MT-020 (designer) additive: home FAQ display heading. EN is "FAQ" (3 glyphs at up to 14rem); the ku/ar words are 15 characters, so the
   Arabic-script heading runs at a smaller step and wraps. Decision still open for the CEO: keep the Latin "FAQ" in ku/ar (then this rule is simply unused). */
[dir="rtl"] .faq h2{font-size:clamp(2.6rem,6.4vw,7rem);line-height:1.2;letter-spacing:0;text-transform:none;max-width:8em}
@media (max-width:640px){[dir="rtl"] .faq h2{font-size:clamp(2.4rem,12vw,3.8rem)}}

/* MT-020 hero mirror (desktop/tablet-landscape): the v3 scrim is left-weighted for an LTR hero. In RTL the copy sits on the RIGHT, so the same ramp is mirrored (270deg) and the
   radial vignette centre flips to 32%. Hero copy still sits on >= .9 charcoal. Mobile (<=640px) keeps the site.css vertical scrim (no change needed). */
@media (min-width:641px){
  [dir="rtl"] .stage__scrim{background:
    linear-gradient(180deg,rgba(47,47,47,.92) 0,rgba(47,47,47,0) 20%),
    linear-gradient(270deg,#2F2F2F 0,rgba(47,47,47,.98) 44%,rgba(47,47,47,.96) 54%,rgba(47,47,47,.8) 60%,rgba(47,47,47,.48) 67%,rgba(47,47,47,.14) 79%,rgba(47,47,47,0) 90%), /* R1: .96 held to 54% so the whole copy box (starts ~48%) sits on >= .96 ink: H1 >= 11:1, eyebrow >= 4.5:1 measured */
    radial-gradient(130% 120% at 32% 50%,rgba(20,20,20,0) 62%,rgba(20,20,20,.5) 100%)}
  /* no-WebGL / no-JS poster is rendered with the sculpture on the right: flip it so the ridge sits opposite the RTL copy */
  html[dir="rtl"][data-gl="off"] .poster,html[dir="rtl"]:not(.js) .poster{transform:scaleX(-1)}
}
/* Arabic-script hero eyebrow: .74rem Latin-caps size is illegible in Naskh; step up (sage on >= .9 charcoal = 5.5:1) */
[dir="rtl"] .hero .eyebrow{font-size:1rem;color:var(--sage);font-weight:500}
@media (max-width:640px){[dir="rtl"] .hero .eyebrow{font-size:.95rem}}
/* MT-020: reduced-motion reel is a native scroller; in RTL its snap origin is the right edge, so the snap padding must be on the right (site.css only sets scroll-padding-left) */
html[dir="rtl"].rm .reel__track{scroll-padding-left:0;scroll-padding-right:var(--pad)}
/* MT-020: <=1000px method timeline: site.css pads the step's LEFT for the glyph; in RTL the glyph sits on the right, so the text padding moves with it */
@media (max-width:1000px){[dir="rtl"] .step{padding:0 104px 56px 0}}

/* ===== R1 (designer, MT-020 revision 1) ===== */
/* home service tiles: decorative art sits on the inline-START side so it never runs under the right-aligned Arabic-script title/body */
[dir="rtl"] .t-c .tart{right:auto;left:12px}
[dir="rtl"] .t-b .bg3{opacity:.8}
/* R1: 1001-1180px header: Sorani nav labels are long ("خزمەتگوزارییەکان"), at 1001px "کارەکان" touched the logo. Guaranteed logo gutter + tighter link gap in RTL only */
@media (min-width:1001px){
  [dir="rtl"] .nav__logo{margin-inline-end:clamp(20px,2.6vw,48px)}
  [dir="rtl"] .nav__links{gap:clamp(14px,2.2vw,44px)}
  [dir="rtl"] .nav__cta{padding-inline:1.1em}
}

/* ===== R2 (designer, MT-020): Vazirmatn retune. Variable 400-700, large x-height, Josefin Sans stays Latin/digits ===== */
[dir="rtl"] .hero h1{font-size:clamp(2.1rem,3.7vw,4.3rem);line-height:1.3;font-weight:600} /* x-height larger than Naskh: one notch down from the Latin 4.7rem cap; ku H1 stays 2 lines */
[dir="rtl"] .hero .sub{line-height:1.6}
[dir="rtl"] .btn,[dir="rtl"] .nav a,[dir="rtl"] .nav__cta{font-weight:600}
[dir="rtl"] .nav a{font-size:1rem}
@media (max-width:640px){[dir="rtl"] .hero h1{font-size:clamp(1.85rem,8.4vw,2.3rem);line-height:1.32}}
[dir="rtl"] .sheet a{font-weight:600}

/* ===== R4 (designer, MT-020 follow-up): /services compact stacked card at phone widths (<=520px; wider cards are tall enough and were clear). The converging-line art + node circle filled the whole short card (slice) and ran through the two-line Sorani title. RTL only: confine the art to its own top band and reserve that band with padding so the title always starts below it ===== */
@media (max-width:520px){
  [dir="rtl"] .svc-grid .t-a{padding-top:clamp(150px,38vw,190px)}
  [dir="rtl"] .svc-grid .t-a svg.tart{inset:0 0 auto 0;height:clamp(140px,36vw,176px);-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}
}
