/* Saylis: Arabic (RTL) layer, loaded only by ar.html after style.css.
   Arabic type: IBM Plex Sans Arabic (text) + Readex Pro (titles); Latin words keep Manrope. */
html[dir=rtl]{--mono:Manrope,'IBM Plex Sans Arabic',sans-serif}
html[dir=rtl],html[dir=rtl] body,html[dir=rtl] button,html[dir=rtl] input,html[dir=rtl] select,html[dir=rtl] textarea{font-family:Manrope,'IBM Plex Sans Arabic','Segoe UI',Tahoma,sans-serif}
html[dir=rtl] :is(h1,h2,h3,.story-kicker,.button,.brand,.nav nav a,.svc-promise,.wk-name){font-family:Manrope,'Readex Pro','IBM Plex Sans Arabic',sans-serif}
/* Arabic letters must stay joined: no tracking, no caps */
html[dir=rtl] *{letter-spacing:0!important;text-transform:none!important}
html[dir=rtl] #headline,html[dir=rtl] .brand{letter-spacing:-.05em!important}
html[dir=rtl] h2{line-height:1.3}
html[dir=rtl] h3{line-height:1.45}
html[dir=rtl] p,html[dir=rtl] li,html[dir=rtl] .faq-a{line-height:1.85}
html[dir=rtl] .story-kicker{line-height:1.25}
html[dir=rtl] .eyebrow,html[dir=rtl] .hud,html[dir=rtl] .svc-rail a,html[dir=rtl] .proc-n,html[dir=rtl] .channels small,html[dir=rtl] .svc-time b{font-size:.84rem}

/* numbers, phone, handles keep their own order */
html[dir=rtl] :is(.svc-num,.hud-pct,.wk-host,.wk-n,.proc-n,.vnum) {direction:ltr;unicode-bidi:isolate}
html[dir=rtl] bdi{unicode-bidi:isolate}

/* mirrored positions */
html[dir=rtl] .skip{left:auto;right:12px}
html[dir=rtl] .sky{background:linear-gradient(0deg,var(--space),transparent 29%),linear-gradient(270deg,#0d0b17a8,transparent 65%),url(planet.webp) 39% 62%/cover no-repeat,#100c23;transform-origin:28% 62%}
html[dir=rtl] .chips li::after{transform-origin:right center}
html[dir=rtl] .hud b{margin:0 0 0 6px}
html[dir=rtl] .hud-bar i,html[dir=rtl] .svc-line i,html[dir=rtl] .wk-bar{transform-origin:right center}
html[dir=rtl] .svc-num{left:auto;right:24px}
html[dir=rtl] .svc-rail a b{margin:0 0 0 8px}
html[dir=rtl] .faq-a{padding:0 0 26px 54px}
html[dir=rtl] dialog ul{padding:0 20px 0 0}
html[dir=rtl] .wk-item{text-align:right}
html[dir=rtl] .wk-chrome em::before{margin:0 0 0 4px}
html[dir=rtl] .vcard-label{text-align:right}
html[dir=rtl] .vcard-play{right:auto;left:12px}
html[dir=rtl] .vlib.is-ring .vcard-play{right:auto;left:16px}
/* moving rows keep their physical direction; only their text is Arabic */
html[dir=rtl] .marquee-track,html[dir=rtl] .vlib-stage{direction:ltr}
html[dir=rtl] .vlib-stage .vcard-label{direction:rtl}

/* service cards: the photo goes right, the glass panel left */
@media(min-width:761px){
  html[dir=rtl] .svc-media{left:auto;right:0;-webkit-mask-image:linear-gradient(270deg,#000 62%,transparent);mask-image:linear-gradient(270deg,#000 62%,transparent)}
  html[dir=rtl] #web-design .svc-media{-webkit-mask-image:linear-gradient(270deg,#000 90%,transparent);mask-image:linear-gradient(270deg,#000 90%,transparent)}
  html[dir=rtl] .svc-body{right:auto;left:18px}
}

/* timeline: the beam grows from the right */
html[dir=rtl] .proc-dot{left:auto;right:-8px}
html[dir=rtl] .proc .proc-line i{background:linear-gradient(270deg,#8b5cff 0%,#b9a6ff 55%,#f4f0e6 100%);
  -webkit-mask-image:linear-gradient(270deg,#000 0,#000 calc(var(--p,1) * 100% - 90px),transparent calc(var(--p,1) * 100% + 10px));
          mask-image:linear-gradient(270deg,#000 0,#000 calc(var(--p,1) * 100% - 90px),transparent calc(var(--p,1) * 100% + 10px))}
@media(max-width:760px){
  html[dir=rtl] .proc-steps{padding-left:0;padding-right:34px}
  html[dir=rtl] .proc-line,html[dir=rtl] .proc .proc-line{left:auto;right:7px}
  html[dir=rtl] .proc-dot{left:auto;right:-42px}
  html[dir=rtl] .proc .proc-line i{background:linear-gradient(180deg,#8b5cff 0%,#b9a6ff 55%,#f4f0e6 100%);
    -webkit-mask-image:linear-gradient(180deg,#000 0,#000 calc(var(--p,1) * 100% - 70px),transparent calc(var(--p,1) * 100% + 10px));
            mask-image:linear-gradient(180deg,#000 0,#000 calc(var(--p,1) * 100% - 70px),transparent calc(var(--p,1) * 100% + 10px))}
}
/* English slogan inside the Arabic page: keep its own direction (dots stay at the end) */
html[dir=rtl] :is(#headline,.foot>span){unicode-bidi:plaintext}
html[dir=rtl] #headline{text-align:right}
html[dir=rtl] #headline,html[dir=rtl] #headline *{direction:ltr}
html[dir=rtl] .hero-copy{text-align:right}
html[dir=rtl] #headline s-line{text-align:right}

/* v3: one Arabic family (Readex Pro), heavier and brighter small text so it reads easily */
html[dir=rtl]{--mono:Manrope,'Readex Pro',sans-serif}
html[dir=rtl],html[dir=rtl] body,html[dir=rtl] button,html[dir=rtl] input,html[dir=rtl] select,html[dir=rtl] textarea,
html[dir=rtl] :is(h1,h2,h3,.story-kicker,.button,.brand,.nav nav a,.svc-promise,.wk-name){font-family:Manrope,'Readex Pro',Tahoma,sans-serif}
html[dir=rtl] :is(p,li,span,small,label,.faq-a){font-weight:500}
html[dir=rtl] .svc-inc span{font-size:.95rem;font-weight:500;color:#e4dfff}
html[dir=rtl] .svc-inc b{font-weight:700}
/* the photo sits under the glass panel here: darker glass so the text never sits on a bright image */
@media(min-width:761px){
  html[dir=rtl] .svc-body{background:linear-gradient(180deg,#140f2ad9,#1a1238c7 55%,#2a1a66b3)}
}
/* client logos: the scrolling row keeps its left-to-right track */
html[dir=rtl] .marquee-row{direction:ltr}

/* testimonials: the Darija quote is already readable in AR, no translation line */
html[dir=rtl] .tst-t{display:none}
