/*
 * Arabic (RTL) layer for the /ar/ pages. Loaded only by Arabic pages, after the shared site CSS,
 * so English pages are unaffected. Cairo is self-hosted for Arabic headlines only.
 * Most layout flips automatically from dir="rtl" (flex, grid, inline-start margins); the rules
 * below mirror the few physical left/right declarations in the shared stylesheets.
 */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/rebrand-assets/ar/fonts/cairo-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/rebrand-assets/ar/fonts/cairo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root{--ar-font:"Segoe UI","Noto Sans Arabic","Noto Naskh Arabic","SF Arabic","Geeza Pro","Arabic UI Text",Tahoma,Arial,sans-serif}
html[lang=ar]{--sans:var(--ar-font);--mono:var(--ar-font)}
html[lang=ar] body,
html[lang=ar] .agency-page,
html[lang=ar] :is(button,input,select,textarea),
html[lang=ar] :is(.tgn-invite,.tgn-invite-h,.tgn-invite-btn,.tgn-submit,.tgn-dialog),
html[lang=ar] .agency-footer .tgn-invite-btn{font-family:var(--ar-font)}
/* Arabic letters join: never track or case-transform them. */
html[lang=ar] *,html[lang=ar] *::before,html[lang=ar] *::after{letter-spacing:0!important;text-transform:none!important}
/* Taller ascenders/descenders and diacritics need more leading than the Latin display settings. */
html[lang=ar] :is(h1,h2){line-height:1.3}
html[lang=ar] h3{line-height:1.45}
html[lang=ar] :is(p,li,dd,summary,figcaption,label,td,th){line-height:1.75}
html[lang=ar] .sidebar-layout .service :is(h1,h2){line-height:1.25}
html[lang=ar] .editorial-copy h1{line-height:1.2}
html[lang=ar] :is(.eyebrow,.agency-kicker,.studio-service-name,.side-group p,.project-badge,.agency-footer-grid h2,.agency-label small,.market-card small,.agency-contact-row dt,.legal-section h3){font-size:max(13px,1em)}
html[lang=ar] .tags li{font-size:13px;line-height:1.5}
/* English or technical runs inside Arabic text keep their own direction. */
html[lang=ar] [lang=en]{font-family:"Helvetica Neue",Arial,sans-serif}
html[lang=ar] :is(a[href^="mailto:"],a[href^="tel:"]){unicode-bidi:isolate;direction:ltr}
html[lang=ar] :is(input[type=email],input[type=tel],input[type=number],input[type=url]){direction:ltr;text-align:right}
html[lang=ar] input[type=email]::placeholder{direction:rtl}

/* Navigation rail on the right */
[dir=rtl] .side-rail{inset:0 0 0 auto;border-right:0;border-left:1px solid #b2a5f630}
html[dir=rtl].reveal-enabled .reveal-layout .side-rail{transform:translateX(calc((1 - var(--rail-reveal)) * 100%))}
[dir=rtl] .side-skip{left:auto;right:calc(var(--rail) + 8px)}
[dir=rtl] .side-group p{margin:0 10px 4px 0}
[dir=rtl] .agency-skip{left:auto;right:16px}
[dir=rtl] .agency-mobile-nav nav{right:auto;left:0}

/* Homepage hero */
[dir=rtl] .hero-logo-led .tile-arrow{right:auto;left:10px}
[dir=rtl] .hero-logo-led .service-tile + .service-tile::before{left:auto;right:0}
[dir=rtl] .reveal-layout .hero-logo-led .hero-services::before{inset:0 42% 0 -2%;background:radial-gradient(ellipse at 20% 63%,#0e1028a6,transparent 73%)}
.tile-label-text{display:block;font-size:clamp(14px,1.45vw,22px);font-weight:700;line-height:1.35;color:#f4efff;text-align:center;text-shadow:0 1px 3px #080b21}
@media(max-width:760px){.tile-label-text{font-size:12px;line-height:1.3}}
[dir=rtl] .service-foot>a:last-child,[dir=rtl] .browser-bar span{margin-left:0;margin-right:auto}
[dir=rtl] .home-link span{margin-left:0;margin-right:6px}
[dir=rtl] .header-cta span{margin-left:0;margin-right:5px}
[dir=rtl] .editorial-tile + .editorial-tile{border-left:0;border-right:1px solid var(--editorial-line)}

/* Service pages */
/* Put the dark scrim behind RTL copy, without mirroring the approved artwork. */
[dir=rtl] .studio-language .studio-hero::before{background:linear-gradient(270deg,#0c0b21 0%,#0c0b21ee 37%,#0c0b21b8 59%,#0c0b2110 100%)}
[dir=rtl] .studio-motion .studio-hero::before{background:linear-gradient(0deg,#0a0b1bf7 0%,#0a0b1b9e 43%,transparent 88%),linear-gradient(270deg,#0a0b1bd9,transparent 77%)}
[dir=rtl] .interactive-layout .studio-hero::before{background:linear-gradient(255deg,#090a1cef 0%,#0b0b22c7 50%,#0a0a1e84 100%)}
@media(max-width:760px){[dir=rtl] .studio-language .studio-hero::before,[dir=rtl] .studio-motion .studio-hero::before{background:linear-gradient(270deg,#0a0b1bf2,#0a0b1b90)}}
[dir=rtl] .detail-facts li::before{margin-right:0;margin-left:10px}
[dir=rtl] .studio-facts li::before{margin-right:0;margin-left:9px}
[dir=rtl] .studio-language .studio-cap-list li:nth-child(odd){margin-right:0;margin-left:22px}
@media(max-width:760px){[dir=rtl] .studio-language .studio-cap-list li:nth-child(odd){margin-left:0}}
[dir=rtl] .studio-web .studio-steps li:not(:last-child)::after{left:0;right:52px}
[dir=rtl] .studio-motion .studio-steps li:not(:last-child)::after{left:-8px;right:27px}
[dir=rtl] .studio-prices{text-align:right}
[dir=rtl] .detail-faq p{padding:0 16px 16px 0}
[dir=rtl] .studio-faq p{padding:0 16px 15px 0}
[dir=rtl] .studio-audio .studio-photo{border-radius:90px 14px 14px 14px}
[dir=rtl] .language-stages details p{margin:0 48px 24px 0}
[dir=rtl] .language-stages summary span::after{margin-left:0;margin-right:8px}
[dir=rtl] .interactive-layout .studio-detail::before{inset:0 var(--rail) auto 0;transform-origin:right}
[dir=rtl] .journey-number{right:auto;left:19px}
[dir=rtl] .market-connector i{background:linear-gradient(270deg,#d49fff66,#5fe3f099)}
@media(max-width:640px){[dir=rtl] .market-connector b{transform:rotate(-90deg)}}
html[lang=ar] .market-output strong,html[lang=ar] .market-fallback-greeting{line-height:1.6}

/* Portfolio, project dialogs and galleries */
[dir=rtl] .project-cta{margin-left:0;margin-right:auto}
[dir=rtl] .project-dialog .agency-kicker .project-badge{margin-left:0;margin-right:10px}
[dir=rtl] .project-dialog h3 small{margin-left:0;margin-right:8px}
[dir=rtl] .project-scope{padding-left:0;padding-right:20px}
[dir=rtl] .project-retry{margin-left:0;margin-right:6px}
[dir=rtl] .agency-footer-bottom p{margin:0 0 0 auto}
[dir=rtl] .agency-footer-bottom span a{margin-right:0;margin-left:2px}

/* Legal pages */
[dir=rtl] .legal-list{padding-left:0;padding-right:1.2rem}
.legal-translation-note{margin-top:.6rem;opacity:.8;font-size:.95em}

/* Newsletter popup */
[dir=rtl] .tgn-success{text-align:right}
[dir=rtl] .tgn-hp{left:auto;right:-9999px}
.tgn-consent-en{display:block;margin-top:4px;opacity:.75;font-size:.9em}

/* Newsletter pages (/ar/email/*) */
html[lang=ar] body[data-page]{--font-body:var(--ar-font);--font-head:var(--ar-font)}
[dir=rtl] .skip-link{left:auto;right:1rem}
[dir=rtl] .hp-field{left:auto!important;right:-10000px}
[dir=rtl] .result{padding:1.15rem 3.6rem 1.15rem 1.15rem}
[dir=rtl] .result::before{left:auto;right:1rem}
.consent-en{display:block;margin-top:.3rem;color:var(--muted);font-weight:400;font-size:.92em}

/* Owner-selected Arabic headline typeface; body copy retains its existing font. */
html[lang=ar] :is(h1,h2,h3,h4,h5,h6,.tile-label-text,.tgn-invite-h,.tgn-dialog-title){font-family:"Cairo",var(--ar-font)}
