/* =========================================================
   Arabic (right-to-left) — loaded last, on the /ar/ pages only.
   Spacing already mirrors through logical properties in the other
   stylesheets; this file covers what direction alone can't:
   the Arabic typeface, letter-spacing, the notched corner, glyph
   directions and the origin of drawn or moving things.
   ========================================================= */

/* Expo Arabic, hosted with the site (assets/fonts); it covers Latin and digits too */
@font-face { font-family: "Expo Arabic"; font-weight: 300; font-display: swap; src: url("../assets/fonts/ExpoArabic-Light.woff2") format("woff2"); }
@font-face { font-family: "Expo Arabic"; font-weight: 400; font-display: swap; src: url("../assets/fonts/ExpoArabic-Book.woff2") format("woff2"); }
@font-face { font-family: "Expo Arabic"; font-weight: 500; font-display: swap; src: url("../assets/fonts/ExpoArabic-Medium.woff2") format("woff2"); }
@font-face { font-family: "Expo Arabic"; font-weight: 600; font-display: swap; src: url("../assets/fonts/ExpoArabic-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Expo Arabic"; font-weight: 700; font-display: swap; src: url("../assets/fonts/ExpoArabic-Bold.woff2") format("woff2"); }

:root {
  --font-sans: "Expo Arabic", system-ui, sans-serif;
  --font-display: "Expo Arabic", system-ui, sans-serif;

  /* Arabic needs more room between lines than Latin */
  --lh-display: 1.25;
  --lh-tight: 1.3;
  --lh-heading: 1.3;
  --lh-statement: 1.5;
  --lh-snug: 1.45;
  --lh-lead: 1.65;
  --lh-body: 1.8;

  /* the raised corner moves to the top-left (top-right in English) */
  --shape-control: var(--notch-sm) var(--radius-sm) var(--radius-sm) var(--radius-sm);
  --shape-panel:   var(--notch-md) var(--radius-sm) var(--radius-sm) var(--radius-sm);
  --shape-card:    var(--notch-lg) var(--radius-sm) var(--radius-sm) var(--radius-sm);
}

/* Arabic letters join: any letter-spacing breaks the words apart */
[dir="rtl"] * { letter-spacing: 0 !important; }
.ab-hero__title { line-height: 1.2; }

/* ---------- Glyphs point the other way ---------- */
.arr { scale: -1 1; }                 /* → becomes ← (forward in Arabic) */
.arr--back { scale: 1 1; }            /* ← becomes → */
.arr--up { rotate: 45deg; }           /* ↗ becomes ↖ */
.arr--down { rotate: -90deg; }        /* stays ↓ under the mirror */

/* ---------- Menu panel opens from its own corner ---------- */
.menu__panel { clip-path: inset(0 30% 100% 0 round var(--radius-sm)); }
.menu.is-open .menu__panel { clip-path: inset(0 0 0 0 round var(--radius-sm)); }
.menu__list a:hover { transform: translateX(calc(-1 * var(--space-2))); }

/* ---------- Decorative light and glass sit on the mirrored side ---------- */
.services__glow--1 { left: auto; right: 59.72%; }
.services__glow--2 { left: auto; right: -420px; }
.contact__glass { left: auto; right: 49.03%; scale: -1 1; }
@media (max-width: 991px) { .contact__glass { left: auto; right: 20%; } }

/* ---------- Things that grow or move start from the right ---------- */
.vals-progress span { transform-origin: 100% 50%; background: linear-gradient(270deg, var(--cyan), var(--sky)); }
.vals-progress::after { left: auto; right: calc(var(--p, 0) * 100% - 3.5px); }
.sv-title { transform-origin: 100% 0; }
.sv-row__media { -webkit-mask-image: linear-gradient(to right, #000 20%, transparent); mask-image: linear-gradient(to right, #000 20%, transparent); }
@media (max-width: 991px) { .sv-row__media { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); } }
.logo-marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Project artwork is laid out in design pixels: keep it as drawn ---------- */
.stage { direction: ltr; }

/* About, our approach: the first label reads from the right */
.venn__label--start { left: 73.5%; }
.venn__label--end { left: 26.5%; }

/* Project pages: the title is a Latin product name (dir="auto" keeps its words in order); it still lines up on the right */
.cs-title { text-align: right; }
