/* Access Global preview: additions loaded after styles.css (language bar, three-section nav, Arabic RTL). */

/* Arabic script: Cairo (SIL Open Font License, see ../fonts/OFL-Cairo.txt), Arabic subset only.
   Mapped onto the existing family names, so it downloads only when Arabic characters are on the page. */
@font-face{font-family:"Inter";src:url("../fonts/cairo-arabic.woff2") format("woff2");font-weight:200 1000;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"Manrope";src:url("../fonts/cairo-arabic.woff2") format("woff2");font-weight:200 1000;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}

/* Language bar at the top of the sticky header */
.lang-bar{background:var(--navy-950);color:#c7d1ea;font-size:.82rem;line-height:1}
.lang-bar .container{display:flex;justify-content:flex-end;align-items:center;height:32px}
.lang-switch{display:flex;align-items:center;list-style:none;margin:0;padding:0}
.lang-switch li{display:flex;align-items:center}
.lang-switch li+li::before{content:"|";color:rgba(255,255,255,.35);padding:0 .6rem}
.lang-switch a{color:#c7d1ea;text-decoration:none;font-weight:600;padding:.35rem .1rem}
.lang-switch a:hover{color:#fff;text-decoration:underline}
.lang-switch a[aria-current="true"]{color:var(--amber)}
.lang-switch a[lang="ar"]{font-size:.9rem}
/* header is 32px taller: keep the mobile menu panel directly under it */
@media (max-width:1060px){.primary-nav{inset:108px 0 0 0}}
@media (max-width:520px){.primary-nav{inset:100px 0 0 0}}

/* Six-item nav with long labels */
@media (min-width:1061px) and (max-width:1250px){
  .site-header .brand-sub{display:none}
  .primary-nav ul{gap:.1rem}
  .primary-nav a{font-size:.9rem;padding-inline:.48rem}
}

/* Small layout helpers */
.grid--start{align-items:start}
.locations--3{grid-template-columns:repeat(3,1fr)}
@media (max-width:900px){.locations--3{grid-template-columns:1fr}}
.timeline .when{font-family:var(--font-head);font-weight:800;font-size:1.3rem;color:var(--amber-600);text-align:right;line-height:1.5}
@media (max-width:640px){.timeline .when{text-align:left;font-size:1.1rem}}
.contact-grid > .contact-list{margin:0}
.aside-contact{font-size:.95rem}
a[href^="tel:"]{white-space:nowrap}

/* ---------- Arabic, right to left ---------- */
html[dir="rtl"] body{line-height:1.8}
html[dir="rtl"] *{letter-spacing:0!important}   /* letter-spacing breaks Arabic letter joining */
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3,html[dir="rtl"] h4{line-height:1.4}
html[dir="rtl"] .hero h1{max-width:16ch}
html[dir="rtl"] .eyebrow,html[dir="rtl"] .card__meta,html[dir="rtl"] .site-footer h2,html[dir="rtl"] .contact-list small,html[dir="rtl"] .facts-list dt,html[dir="rtl"] .timeline .region,html[dir="rtl"] .hero__focus-tag,html[dir="rtl"] .brand-sub{text-transform:none}
html[dir="rtl"] .eyebrow{font-size:.9rem}
html[dir="rtl"] .brand-sub{font-size:.74rem}
html[dir="rtl"] .primary-nav a{font-size:1rem}
html[dir="rtl"] .lang-switch a[lang="en"]{font-size:.8rem}
/* lists */
ul,ol{padding-left:0;padding-inline-start:1.2em}
html[dir="rtl"] .prose ul{padding-right:0}
html[dir="rtl"] .prose ul li{padding-left:0;padding-right:1.7rem}
html[dir="rtl"] .prose ul li::before{left:auto;right:0}
html[dir="rtl"] .prose .tags li{padding-right:.6rem}
/* skip link */
html[dir="rtl"] .skip-link{left:auto;right:1rem}
/* nav */
@media (min-width:1061px){html[dir="rtl"] .primary-nav .nav-cta{margin-left:0;margin-right:.4rem}}
@media (max-width:1060px){html[dir="rtl"] .primary-nav a[aria-current="page"]{box-shadow:inset -3px 0 0 var(--brand);padding-left:.25rem;padding-right:.9rem}}
/* arrows and chevrons point the reading direction */
html[dir="rtl"] svg.flip{transform:scaleX(-1)}
html[dir="rtl"] .text-link:hover svg.flip,html[dir="rtl"] .hero__focus:hover svg.flip{transform:scaleX(-1) translateX(3px)}
/* hero overlays: dark side under the text, which now sits on the right */
@media (min-width:701px){
  html[dir="rtl"] .hero::before{background:linear-gradient(270deg,rgba(7,16,38,.96) 0%,rgba(10,22,51,.88) 38%,rgba(16,33,77,.55) 70%,rgba(16,33,77,.25) 100%),linear-gradient(0deg,rgba(7,16,38,.6),transparent 40%)}
  html[dir="rtl"] .page-hero--image::before{background:linear-gradient(270deg,rgba(7,16,38,.95) 0%,rgba(10,22,51,.85) 45%,rgba(16,33,77,.45) 100%)}
}
html[dir="rtl"] .hero__media img{object-position:30% 30%}
html[dir="rtl"] .hero__focus{padding:.35rem .35rem .35rem .9rem}
/* decorative globes and frames */
html[dir="rtl"] .page-hero__globe{right:auto;left:-80px}
@media (max-width:700px){html[dir="rtl"] .page-hero__globe{left:-120px}}
html[dir="rtl"] .cta-band__globe{right:auto;left:-60px}
html[dir="rtl"] .focus-card__globe{right:auto;left:-70px}
html[dir="rtl"] .img-frame::after{inset:auto auto -14px -14px}
/* facts band dividers */
html[dir="rtl"] .fact{border-left:0;border-right:1px solid var(--line)}
html[dir="rtl"] .fact:first-child{border-right:0}
@media (max-width:900px){html[dir="rtl"] .fact:nth-child(3){border-right:0}}
@media (max-width:460px){html[dir="rtl"] .fact{border-right:0}}
/* breadcrumb separator */
html[dir="rtl"] .breadcrumb li+li::before{margin-right:0;margin-left:.4rem}
/* timelines */
html[dir="rtl"] .timeline::before{left:auto;right:7.1rem}
html[dir="rtl"] .timeline li::before{left:auto;right:calc(7.1rem - 7px)}
html[dir="rtl"] .timeline time,html[dir="rtl"] .timeline .when{text-align:left}
@media (max-width:640px){
  html[dir="rtl"] .timeline::before{right:7px}
  html[dir="rtl"] .timeline li{padding-left:0;padding-right:2.2rem}
  html[dir="rtl"] .timeline li::before{right:0}
  html[dir="rtl"] .timeline time,html[dir="rtl"] .timeline .when{text-align:right}
}
html[dir="rtl"] .milestones li{padding:2.2rem 0 0 1rem}
html[dir="rtl"] .milestones li::before{left:auto;right:0}
/* drawn icons keep their geometry */
html[dir="rtl"] svg{direction:ltr}
/* emails, phone numbers and URLs stay left to right */
html[dir="rtl"] a[dir="ltr"],html[dir="rtl"] bdi{unicode-bidi:isolate}
html[dir="rtl"] input[type="email"]{text-align:right}
html[dir="rtl"] .footer-contact a[dir="ltr"]{text-align:right}
.nw{white-space:nowrap}

/* Spaced collage of modest card-sized images (replaces full-bleed page heroes) */
.photo-collage{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
  margin:0 0 2rem;
}
.photo-collage--2{grid-template-columns:repeat(2,1fr);max-width:720px}
.photo-collage__item{margin:0;overflow:hidden;border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);background:var(--bg-tint)}
.photo-collage__item img{display:block;width:100%;height:180px;object-fit:cover}
@media (max-width:700px){
  .photo-collage,.photo-collage--2{grid-template-columns:1fr;max-width:none}
  .photo-collage__item img{height:200px}
}
.section > .container > .photo-collage:first-child{margin-top:0}
/* Team cards: names only, linked; no monogram badges */
.team-card{padding:1.5rem 1.2rem}
.team-card h3{margin:0;font-size:1.05rem}
.team-card h3 a{color:inherit;text-decoration:none;border-bottom:1px solid transparent}
.team-card h3 a:hover{color:var(--brand);border-bottom-color:var(--brand)}
.lead--soft{opacity:.92;font-size:1.05rem;max-width:42rem}
.section--collage{padding-block:1.5rem}
.section--collage + .section{padding-top:1.5rem}
/* About split: collage sits in the media column */
.split .photo-collage{margin:0}
.split .photo-collage__item img{height:140px}
@media (max-width:900px){.split .photo-collage{margin-top:1rem}}
.facts__grid--3{grid-template-columns:repeat(3,1fr)}
@media (max-width:900px){.facts__grid--3{grid-template-columns:1fr}.facts__grid--3 .fact{border-left:0}.facts__grid--3 .fact:nth-child(n+2){border-top:1px solid var(--line)}}
.locations--2{grid-template-columns:repeat(2,1fr)}
@media (max-width:600px){.locations--2{grid-template-columns:1fr}}

/* AI consultancy focus and livelier hero imagery. */
.ai-focus{background:#f5f7fc;border-bottom:1px solid var(--line)}
.ai-focus__grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(16rem,.85fr);gap:2.5rem;align-items:center}
.ai-focus__copy{max-width:42rem}
.ai-focus h2{max-width:22ch}
.ai-focus .lead{max-width:62ch;color:var(--ink)}
.ai-focus__note{max-width:62ch;margin:0}
.ai-focus__media{margin:0;overflow:hidden;border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);aspect-ratio:16/9;background:var(--navy-900)}
.ai-focus__media img{display:block;width:100%;height:100%;object-fit:cover;object-position:60% 50%}
.ai-focus__points{list-style:none;margin:2rem 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.ai-focus__points li{padding-block:1.2rem;border-top:2px solid var(--amber)}
.ai-focus__points h3{font-size:1.15rem}
.ai-focus__points p{margin-bottom:0}
.ai-focus .btn-row{margin-top:1.6rem}
.focus--following{margin-top:0;padding-top:2rem}
@media(max-width:800px){.ai-focus__grid{grid-template-columns:1fr;gap:1.4rem}.ai-focus__points{grid-template-columns:1fr;gap:0}}

/* Slow pan and zoom on selected images; disabled when the user prefers less motion. */
.page-hero__media,.hero__media,.ai-focus__media{overflow:hidden}
img.media-live{
  transform-origin:center center;
  animation:media-live 32s ease-in-out infinite alternate;
  will-change:transform;
}
@keyframes media-live{
  from{transform:scale(1.06) translate3d(-1.2%,.4%,0)}
  to{transform:scale(1.14) translate3d(1.4%,-1%,0)}
}
@media (prefers-reduced-motion:reduce){
  img.media-live{animation:none;transform:scale(1.06)}
}
/* Seven navigation links, with room for Arabic labels on smaller desktops. */
@media(min-width:1061px){.site-header .header-inner{gap:.7rem}.site-header .brand-sub{display:none}.primary-nav ul{gap:0}.primary-nav a{font-size:.82rem;padding-inline:.4rem}.primary-nav .nav-cta a{padding-inline:.7rem}html[dir="rtl"] .primary-nav a{font-size:.85rem}}
@media(min-width:1400px){.primary-nav a{font-size:.91rem;padding-inline:.6rem}html[dir="rtl"] .primary-nav a{font-size:.95rem}}

/* Rapidlink MVNO licence callout */
.licence-feature{
  margin:0 0 1.6rem;
  padding:1.55rem 1.7rem 1.6rem;
  border-radius:var(--radius-lg);
  background:linear-gradient(145deg,var(--navy-900) 0%,var(--navy-800) 100%);
  color:#d5def3;
  border:1px solid rgba(245,165,36,.4);
  box-shadow:var(--shadow);
}
.licence-feature .eyebrow{color:var(--amber);margin-bottom:.45rem}
.licence-feature h2{color:#fff;font-size:clamp(1.4rem,2.4vw,1.85rem);margin-bottom:.45rem;max-width:22ch}
.licence-feature p{margin:0;max-width:54ch;color:#e8edf8}

/* Extra room so a subtle hero parallax does not show edges. */
.hero__media,.page-hero__media{inset:-36px 0;overflow:hidden}
.hero__media img{object-position:50% 45%}
html[dir="rtl"] .hero__media img{object-position:50% 45%}

/* Scroll reveal: class is applied by JS, so content stays visible if JS is off. */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s ease,transform .7s ease;
}
.reveal.is-visible{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .hero__media,.page-hero__media{inset:0;transform:none!important}
  .reveal,.reveal.is-visible{opacity:1;transform:none;transition:none}
}

/* ---------- 3D globe mark (assets/js/logo3d.js); the PNG stays as the fallback ---------- */
.brand-mark{position:relative;display:block;flex:none;width:48px;height:40px}
.brand .brand-mark img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;margin:0}
.footer-brand .brand-mark{width:56px;height:46px}
.footer-brand .brand .brand-mark img{width:100%;height:100%;box-sizing:border-box}
.brand-mark.is-3d img{visibility:hidden}
.logo3d-canvas{position:absolute;display:block;pointer-events:none}
.hero__globe{position:absolute;z-index:0;pointer-events:none;top:3.1rem;inset-inline-end:.75rem;
  width:clamp(0px,calc(100vw - 296px),150px);aspect-ratio:1/1}
@media (max-width:339px){.hero__globe{display:none}}
@media (max-width:520px){.brand-mark{width:42px;height:35px}}
@media (min-width:1100px){
  .hero__globe{top:50%;transform:translateY(-50%);
    inset-inline-end:max(1.5rem,calc((100% - 1200px) / 2));
    width:clamp(240px,calc(100vw - 860px),430px);aspect-ratio:1/1}
}
/* Compact header (20 Nov 2026) */
.lang-bar .container{height:28px}
.site-header .header-inner{min-height:64px}
.site-header .brand{gap:.55rem}
.site-header .brand-mark{width:40px;height:33px}
.site-header .brand-name{font-size:1.15rem}
.site-header .primary-nav .nav-cta a{padding-block:.5rem}
.nav-toggle{min-height:40px;padding:.4rem .7rem}
@media (max-width:1060px){.primary-nav{inset:93px 0 0 0}}
@media (max-width:520px){
  .site-header .header-inner{min-height:56px}
  .site-header .brand-mark{width:36px;height:30px}
  .site-header .brand-name{font-size:1.05rem}
  .primary-nav{inset:85px 0 0 0}
}

/* Smaller header, static logo (20 Nov 2026, 16:27) */
.site-header .header-inner{min-height:54px}
.site-header .brand{gap:.45rem}
.site-header .brand-mark{width:32px;height:27px}
.site-header .brand-name{font-size:1rem}
.site-header .primary-nav .nav-cta a{padding-block:.4rem}
.nav-toggle{min-height:36px;padding:.3rem .6rem}
@media (max-width:1060px){.primary-nav{inset:82px 0 0 0}}
@media (max-width:520px){ .site-header .header-inner{min-height:50px} .site-header .brand-mark{width:30px;height:25px} .site-header .brand-name{font-size:.98rem} .primary-nav{inset:78px 0 0 0} }

/* Contact form (20 Nov 2026) */
body.page-contact .footer-cta{display:none}
.contact-intro h2{font-size:1.35rem;margin-bottom:.85rem}
.contact-intro > p{margin-bottom:1.25rem;max-width:46ch}
.contact-steps{list-style:none;margin:0;padding:0;display:grid;gap:1rem}
.contact-steps li{display:grid;grid-template-columns:2rem 1fr;gap:.85rem;align-items:start}
.contact-steps .step-num{
  width:2rem;height:2rem;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--bg-tint);color:var(--brand);
  font-family:var(--font-head);font-weight:800;font-size:.95rem;line-height:1
}
.contact-steps p{margin:.2rem 0 0}
.field .optional{font-weight:500;color:var(--muted);font-size:.88rem}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea{border-color:#b42318}
.field-error{color:#b42318;font-size:.88rem;margin-top:.35rem}
.field-error:empty{display:none}
.btn:disabled,
.btn[disabled],
.btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none;pointer-events:none}
.btn:disabled:hover,
.btn[disabled]:hover,
.btn[aria-disabled="true"]:hover{transform:none;box-shadow:none}
.contact-form > h2{margin-bottom:.35rem}
.contact-form .form-note{display:block;margin:0 0 1.25rem}
.contact-form .form-hint{font-size:.88rem;color:var(--muted);margin:.75rem 0 0}
.contact-form .form-privacy{font-size:.88rem;color:var(--muted);margin-top:1rem}
@media (min-width:901px){
  .page-contact .contact-grid{grid-template-columns:.85fr 1.15fr}
}
