/* =========================================================
   R Squared — brand theme
   Colors from brand guide · Typography: Aeonik Arabic (CoType web licence, r2-sa.com only)
   Licence: only the WOFF2/WOFF files may be put online, on the licensed domain.
   Weights licensed: Regular (used for 300–500) and SemiBold (used for 600–700).
   ========================================================= */
@font-face { font-family: "Aeonik"; src: url("../fonts/aeonikarabic-regular.woff2") format("woff2"), url("../fonts/aeonikarabic-regular.woff") format("woff"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Aeonik"; src: url("../fonts/aeonikarabic-semibold.woff2") format("woff2"), url("../fonts/aeonikarabic-semibold.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --navy: #15233b;      /* Deep Sea Navy  */
  --night: #263f6b;     /* Night Sky Blue */
  --mist: #91afc9;      /* Mist Blue      */
  --orange: #ff7b00;    /* Petal Orange   */
  --white: #ffffff;
  --paper: #f3f5f8;
  --ink-dim: rgba(145, 175, 201, .7);
  --font: "Aeonik", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
b, strong { font-weight: 600; }
::selection { background: var(--orange); color: var(--navy); }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.accent { color: var(--orange); }

.eyebrow {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mist); font-weight: 500; margin-bottom: 22px;
}
.eyebrow--orange { color: var(--orange); }

.h-xl  { font-size: clamp(34px, 5vw, 72px); line-height: 1.04; font-weight: 500; letter-spacing: -.025em; }
.h-xxl { font-size: clamp(46px, 8.5vw, 136px); line-height: .98; font-weight: 500; letter-spacing: -.035em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: .01em;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .3s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--orange { background: var(--orange); color: var(--navy); }
.btn--orange:hover { box-shadow: 0 12px 40px -10px rgba(255, 123, 0, .7); }
.btn--ghost { border: 1px solid rgba(145, 175, 201, .45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 20px 40px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--pad);
  transition: padding .4s var(--ease), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(21, 35, 59, .72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-color: rgba(145, 175, 201, .12);
}
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 34px; font-size: 14px; color: var(--mist); }
.nav__links a { position: relative; transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 860px) { .nav__links { display: none; } .nav__logo img { height: 24px; } }

/* ---------- Hero ---------- */
.hero { height: 260vh; background: var(--navy); }
.hero .sticky { display: flex; align-items: center; }
.hero__inner {
  position: relative; width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px;
}
.hero__copy { position: relative; z-index: 2; will-change: transform, opacity; }
.hero__title {
  font-size: clamp(54px, 8.4vw, 136px); line-height: .92; font-weight: 500; letter-spacing: -.045em;
  margin-bottom: 30px;
}
.hero__title em { font-style: normal; color: var(--orange); }
.hero__title .line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.2s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__sub { max-width: 470px; font-size: clamp(16px, 1.35vw, 19px); color: var(--mist); margin-bottom: 38px; opacity: 0; animation: fade 1s .5s var(--ease) forwards; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: fade 1s .7s var(--ease) forwards; }
.hero .eyebrow { opacity: 0; animation: fade 1s .2s var(--ease) forwards; }

.hero__mark {
  position: relative; z-index: 1; justify-self: end;
  width: min(36vw, 62vh); aspect-ratio: 98.16 / 110.31;
  transform-origin: 18% 50%;   /* inside the solid stem of the R — zooming here floods the screen */
  will-change: transform;
}
.hero__mark svg { width: 100%; height: 100%; overflow: visible; }
.hero__mark path { fill: var(--night); }
.hero__mark { animation: markIn 1.6s .1s var(--ease) both; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--mist);
}
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--mist), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes markIn { from { opacity: 0; transform: translateY(40px) scale(.94); } }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mark { position: absolute; right: -12vw; top: 50%; translate: 0 -50%; width: 78vw; opacity: .55; z-index: 0; }
}

/* ---------- Statement ---------- */
.statement { height: 280vh; background: var(--night); }
.statement .sticky { display: flex; align-items: center; justify-content: center; padding: 0 var(--pad); }
.statement__text {
  max-width: 1180px;
  font-size: clamp(28px, 4.4vw, 66px); line-height: 1.12; font-weight: 500; letter-spacing: -.02em;
}
.statement__text .w { opacity: .16; transition: opacity .25s linear, color .25s linear; }
.statement__text .w.is-hl { color: var(--white); }
.statement__text .w.is-hl.on { color: var(--orange); }

/* ---------- Build (3D) ---------- */
.build { height: 560vh; background: var(--navy); }
#build-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.build__fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--mist); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; pointer-events: none;
  transition: opacity .6s;
}
.build__fallback.is-hidden { opacity: 0; }
.build__hud {
  position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%);
  width: min(400px, 36vw); z-index: 2; pointer-events: none;
}
.stages { position: relative; min-height: 260px; }
.stage {
  position: absolute; inset: 0 auto auto 0;
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease);
}
.stage.is-active { opacity: 1; transform: none; filter: none; }
.stage__num { display: block; font-size: 15px; color: var(--orange); font-weight: 500; margin-bottom: 16px; letter-spacing: .1em; }
.stage h2 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.04; letter-spacing: -.03em; font-weight: 500; margin-bottom: 18px; }
.stage p { color: var(--mist); font-size: clamp(15px, 1.2vw, 18px); max-width: 360px; }

/* legibility veil behind HUD */
.build .sticky::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(21,35,59,.94) 0%, rgba(21,35,59,.7) 26%, rgba(21,35,59,0) 52%);
}

.build__rail {
  padding: 18px 18px; border-radius: 18px; background: rgba(21,35,59,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 2;
  display: flex; flex-direction: column; gap: 22px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.build__rail li { display: flex; align-items: center; gap: 12px; color: rgba(145, 175, 201, .45); transition: color .4s; justify-content: flex-end; flex-direction: row-reverse; }
.build__rail i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; transition: background .4s, border-color .4s, transform .4s var(--ease); }
.build__rail li.is-done { color: var(--mist); }
.build__rail li.is-done i { background: var(--mist); }
.build__rail li.is-active { color: var(--white); }
.build__rail li.is-active i { background: var(--orange); border-color: var(--orange); transform: scale(1.5); }
.build__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(145,175,201,.15); z-index: 2; }
.build__progress span { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); }

@media (max-width: 860px) {
  .build .sticky::before { background: linear-gradient(0deg, rgba(21,35,59,.95) 0%, rgba(21,35,59,.6) 30%, rgba(21,35,59,0) 52%); }
  .build__hud { top: auto; bottom: 48px; transform: none; width: auto; right: var(--pad); }
  .stages { min-height: 190px; }
  .build__rail { top: 88px; transform: none; gap: 10px; }
  .build__rail span { display: none; }
}

/* ---------- Services ---------- */
.services { background: var(--paper); color: var(--navy); padding: clamp(100px, 14vw, 200px) 0; }
.services .eyebrow { margin-bottom: 26px; }
.section-head { margin-bottom: clamp(56px, 7vw, 100px); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--white); border-radius: 26px; padding: 40px 34px 38px;
  border: 1px solid rgba(21, 35, 59, .06);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), background .5s, color .5s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; right: -40px; bottom: -48px; width: 160px; aspect-ratio: 98/110;
  background: url("../assets/logomark-white.svg") center/contain no-repeat;
  opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .8s var(--ease);
}
.card:hover { transform: translateY(-8px); background: var(--navy); color: var(--white); box-shadow: 0 40px 80px -40px rgba(21,35,59,.6); }
.card:hover::after { opacity: .08; transform: none; }
.card__num { display: block; color: var(--orange); font-weight: 500; font-size: 14px; letter-spacing: .1em; margin-bottom: 70px; }
.card h3 { font-size: 30px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 16px; }
.card p { color: #4c5d78; margin-bottom: 28px; transition: color .5s; }
.card:hover p { color: var(--mist); }
.card ul { border-top: 1px solid rgba(21,35,59,.1); transition: border-color .5s; }
.card:hover ul { border-color: rgba(145,175,201,.2); }
.card li { padding: 12px 0; border-bottom: 1px solid rgba(21,35,59,.1); font-size: 15px; transition: border-color .5s; }
.card:hover li { border-color: rgba(145,175,201,.2); }
@media (max-width: 960px) { .services__grid { grid-template-columns: 1fr; } .card__num { margin-bottom: 36px; } }

/* ---------- Sectors (horizontal) ---------- */
.sectors { background: var(--navy); } /* height set in JS */
.sectors .sticky { display: flex; flex-direction: column; justify-content: center; gap: clamp(36px, 6vh, 70px); }
.sectors__head { padding: 0 var(--pad); }
.sectors__track { display: flex; gap: 24px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.sector {
  position: relative; overflow: hidden; flex: 0 0 auto;
  width: clamp(290px, 34vw, 480px); height: clamp(340px, 48vh, 520px);
  border-radius: 28px; padding: 36px;
  background: var(--night); display: flex; flex-direction: column; justify-content: flex-end;
  transition: background .5s;
}
.sector:nth-child(2) { background: #1d3157; }
.sector:nth-child(4) { background: #1d3157; }
.sector:hover { background: #2d4b80; }
.sector__num { position: absolute; top: 32px; left: 36px; color: var(--orange); font-size: 14px; letter-spacing: .1em; }
.sector h3 { position: relative; z-index: 1; font-size: clamp(28px, 2.8vw, 42px); font-weight: 500; letter-spacing: -.025em; margin-bottom: 12px; }
.sector p { position: relative; z-index: 1; color: var(--mist); max-width: 330px; }
.sector__mark {
  position: absolute; right: -18%; top: -14%; width: 72%; aspect-ratio: 98/110;
  background: url("../assets/logomark-white.svg") center/contain no-repeat; opacity: .06;
  transition: transform 1.2s var(--ease), opacity .6s;
}
.sector:hover .sector__mark { transform: translate(-6%, 6%) scale(1.06); opacity: .12; }
.sector:nth-child(2) .sector__mark { right: auto; left: -30%; top: -30%; }
.sector:nth-child(3) .sector__mark { top: -40%; right: -40%; width: 110%; }
.sector:nth-child(5) .sector__mark { right: -10%; top: auto; bottom: 30%; }

/* ---------- Values ---------- */
.values { background: var(--mist); color: var(--navy); padding: clamp(100px, 14vw, 200px) 0; }
.values .eyebrow { color: var(--navy); opacity: .7; }
.values__list li {
  display: grid; grid-template-columns: 80px 1.1fr 1fr; gap: 30px; align-items: baseline;
  padding: clamp(28px, 4vw, 52px) 0; border-top: 1px solid rgba(21,35,59,.25);
}
.values__list li:last-child { border-bottom: 1px solid rgba(21,35,59,.25); }
.values__list span { font-weight: 500; color: var(--navy); opacity: .55; }
.values__list h3 { font-size: clamp(30px, 4.6vw, 68px); font-weight: 500; letter-spacing: -.03em; line-height: 1; transition: transform .6s var(--ease), color .4s; }
.values__list li:hover h3 { transform: translateX(14px); color: var(--white); }
.values__list p { font-size: 17px; max-width: 420px; color: #22385d; }
@media (max-width: 860px) { .values__list li { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--navy); padding: clamp(140px, 18vw, 260px) 0; text-align: center; }
.cta__mark {
  position: absolute; left: 50%; top: 50%; width: min(70vw, 760px); aspect-ratio: 98/110;
  transform: translate(-50%, -50%);
  background: url("../assets/logomark-white.svg") center/contain no-repeat; opacity: .04;
}
.cta__inner { position: relative; }
.cta h2 { margin-bottom: 50px; }

/* ---------- Footer ---------- */
.footer { background: #0f1a2d; padding: 70px 0 34px; color: var(--mist); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 50px; border-bottom: 1px solid rgba(145,175,201,.15); }
.footer__logo { height: 34px; width: auto; }
.footer__url { font-size: 24px; color: var(--white); }
.footer__url:hover { color: var(--orange); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 13px; opacity: .7; }

/* ---------- Contact details ---------- */
button.btn { font-family: inherit; border: 0; cursor: pointer; }
button.btn--ghost { background: transparent; border: 1px solid rgba(145, 175, 201, .45); }
.cta__details { margin-top: 34px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 16px; color: var(--mist); font-size: 17px; }
.cta__details a { color: var(--white); border-bottom: 1px solid rgba(145,175,201,.35); transition: color .3s, border-color .3s; user-select: all; }
.cta__details a:hover { color: var(--orange); border-color: var(--orange); }
.footer__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer__contact a { transition: color .3s; }
.footer__contact a:hover { color: var(--orange); }
@media (max-width: 700px) { .footer__contact { align-items: flex-start; } }

/* ---------- Contact chooser ---------- */
.contact {
  border: 0; padding: 0; margin: auto; background: transparent; color: var(--white);
  width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: visible;
}
.contact::backdrop { background: rgba(10, 18, 32, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.contact[open] { animation: dlgIn .5s var(--ease); }
.contact[open]::backdrop { animation: fade .4s ease both; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.contact__panel {
  position: relative; background: var(--navy); border: 1px solid rgba(145,175,201,.18);
  border-radius: 28px; padding: 38px 30px 26px; box-shadow: 0 40px 120px -30px rgba(0,0,0,.7);
}
.contact h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: -8px 0 26px; padding-right: 30px; }
.contact__close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(145,175,201,.1); border: 0; cursor: pointer; color: var(--mist);
  transition: background .3s, color .3s;
}
.contact__close:hover { background: rgba(145,175,201,.2); color: var(--white); }
.contact__close svg, .contact__icon svg, .contact__arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact__options { display: grid; gap: 10px; }
.contact__opt {
  display: grid; grid-template-columns: 48px 1fr 20px; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 18px; background: var(--night);
  border: 1px solid transparent; transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.contact__opt:hover, .contact__opt:focus-visible { background: #2d4b80; border-color: rgba(255,123,0,.6); transform: translateX(4px); outline: none; }
.contact__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(145,175,201,.14); color: var(--white); }
.contact__icon--wa { color: #5fd27c; }
.contact__opt:hover .contact__icon { background: var(--orange); color: var(--navy); }
.contact__text { display: flex; flex-direction: column; min-width: 0; }
.contact__text strong { font-weight: 500; font-size: 17px; }
.contact__text span { color: var(--mist); font-size: 14px; overflow-wrap: anywhere; }
.contact__arrow { color: var(--mist); transition: color .3s, transform .4s var(--ease); }
.contact__opt:hover .contact__arrow { color: var(--orange); transform: translate(2px, -2px); }
.contact__copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.contact__copy button {
  font: inherit; font-size: 13px; color: var(--mist); background: transparent; cursor: pointer;
  border: 1px solid rgba(145,175,201,.3); border-radius: 999px; padding: 7px 14px; transition: color .3s, border-color .3s;
}
.contact__copy button:hover { color: var(--white); border-color: var(--white); }
.contact__toast { font-size: 13px; color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Legal (CR / VAT) ---------- */
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal b { font-weight: 500; color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: .02em; margin-left: 4px; user-select: all; }

/* ---------- Reveal ---------- */
.reveal { opacity: .35; transform: translateY(50px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.services__grid .reveal:nth-child(2) { transition-delay: .1s; }
.services__grid .reveal:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Language switch (top bar)
   ========================================================= */
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 34px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1; color: var(--white);
  border: 1px solid rgba(145, 175, 201, .4); transition: border-color .3s, color .3s, background .3s;
}
.lang-btn:hover { border-color: var(--orange); color: var(--orange); }
.lang-btn[lang="ar"] { font-size: 14px; padding-bottom: 2px; }
@media (max-width: 860px) { .lang-btn { height: 30px; min-width: 40px; padding: 0 10px; font-size: 12px; } }

/* =========================================================
   Arabic / right-to-left
   Arabic letters join, so no letter-spacing; taller line heights so
   ascenders and dots are never clipped by the reveal masks.
   ========================================================= */
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] .eyebrow { text-transform: none; font-size: 14px; }
[dir="rtl"] .hero__title { line-height: 1.22; }
[dir="rtl"] .hero__title .line { padding-bottom: .12em; }
[dir="rtl"] .h-xl, [dir="rtl"] .h-xxl, [dir="rtl"] .stage h2 { line-height: 1.3; }
[dir="rtl"] .statement__text { line-height: 1.55; }
[dir="rtl"] .values__list h3 { line-height: 1.25; }
[dir="rtl"] .card h3, [dir="rtl"] .sector h3 { line-height: 1.35; }
[dir="rtl"] .hero__sub, [dir="rtl"] .stage p, [dir="rtl"] .card p, [dir="rtl"] .sector p, [dir="rtl"] .values__list p { line-height: 1.85; }
[dir="rtl"] .scroll-cue { letter-spacing: 0; text-transform: none; font-size: 12px; }

/* mirrored placements */
[dir="rtl"] .nav__links a::after { transform-origin: right; }
[dir="rtl"] .build__hud { left: auto; right: var(--pad); }
[dir="rtl"] .build__rail { right: auto; left: var(--pad); }
[dir="rtl"] .build .sticky::before { background: linear-gradient(270deg, rgba(21,35,59,.94) 0%, rgba(21,35,59,.7) 26%, rgba(21,35,59,0) 52%); }
[dir="rtl"] .build__progress span { transform-origin: right; }
[dir="rtl"] .sector__num { left: auto; right: 36px; }
[dir="rtl"] .values__list li:hover h3 { transform: translateX(-14px); }
[dir="rtl"] .contact__opt:hover, [dir="rtl"] .contact__opt:focus-visible { transform: translateX(-4px); }
[dir="rtl"] .contact__arrow { transform: scaleX(-1); }
[dir="rtl"] .contact__opt:hover .contact__arrow { transform: scaleX(-1) translate(2px, -2px); }
[dir="rtl"] .contact h2 { padding-right: 0; padding-left: 30px; }
[dir="rtl"] .contact__close { right: auto; left: 18px; }
[dir="rtl"] .footer__legal b { margin-left: 0; margin-right: 4px; }
[dir="rtl"] .footer__contact a[dir="ltr"] { text-align: left; }
[dir="rtl"] .cta__details a { unicode-bidi: isolate; }
@media (max-width: 860px) {
  [dir="rtl"] .hero__mark { right: auto; left: -12vw; }
  [dir="rtl"] .build .sticky::before { background: linear-gradient(0deg, rgba(21,35,59,.95) 0%, rgba(21,35,59,.6) 30%, rgba(21,35,59,0) 52%); }
  [dir="rtl"] .build__rail { left: var(--pad); right: auto; }
  [dir="rtl"] .build__hud { left: var(--pad); right: var(--pad); }
}
/* Arabic glyphs read smaller at the same size: nudge small UI text up */
[dir="rtl"] .nav__links { font-size: 15.5px; }
[dir="rtl"] .btn { font-size: 16px; }
[dir="rtl"] .btn--sm { font-size: 15px; }
[dir="rtl"] .btn--lg { font-size: 18px; }
[dir="rtl"] .eyebrow { font-size: 15px; }
[dir="rtl"] .card li, [dir="rtl"] .footer__bottom { font-size: 15px; }
[dir="rtl"] .build__rail { font-size: 13.5px; }

/* ---------- Head office (footer) ---------- */
.footer__office { display: flex; flex-direction: column; gap: 6px; color: var(--mist); transition: color .3s; }
.footer__office-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.footer__office-city { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; color: var(--white); }
.footer__office-city svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--orange); stroke-width: 1.7; stroke-linejoin: round; }
.footer__office-code { font-size: 14px; }
.footer__office-arrow { display: inline-block; transition: transform .4s var(--ease); }
.footer__office:hover .footer__office-city { color: var(--orange); }
.footer__office:hover .footer__office-arrow { transform: translateX(4px); }
[dir="rtl"] .footer__office:hover .footer__office-arrow { transform: translateX(-4px); }
[dir="rtl"] .footer__office-label { font-size: 14px; text-transform: none; }
[dir="rtl"] .footer__office-city { font-size: 18px; }
