/* ==========================================================================
   SBG — sbgecc.sy home page (Figma: "SBG — sbgecc.sy Website Redesign")
   LTR (EN) + RTL (AR) from one stylesheet: layout uses logical properties,
   so switching <html dir> mirrors every section.
   ========================================================================== */

:root {
  /* Brand / sbgecc.sy colour styles */
  --deep-cove: #04043d;
  --blue-21: #20204c;
  --blue-zodiac: #101f4c;
  --royal-blue: #405de6;
  --comet: #535568;
  --emerald: #61ce70;
  --spring-green: #51f2b8;
  --grey-94: #efefef;
  --ebony-clay: #1f2633;
  --pigeon-post: #bacbdb;
  --nepal: #97a8c1;
  --catskill: #f3f6f9;
  --primary-fixed: #eaddff;

  /* Tailwind-style scales used by the design system */
  --indigo-50: #eef2ff;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-700: #334155;
  --slate-900: #0f172a;

  /* Division colours */
  --div-engineering: #4f46e5;
  --div-electrical: #06b6d4;
  --div-contracting: #f59e0b;
  --div-creative: #8b5cf6;
  --div-business: #10b981;

  /* Type */
  --font-jost: "Jost", "Noto Sans Arabic", system-ui, sans-serif;
  --font-sora: "Sora", "Cairo", system-ui, sans-serif;
  --font-plex: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-cairo: "Cairo", "Noto Sans Arabic", system-ui, sans-serif;
  --font-noto-ar: "Noto Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;

  --page-max: 1440px;
  --dots: url("../img/dots.png");
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--comet);
  font-family: var(--font-jost);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--royal-blue); outline-offset: 2px; }

/* --- Bilingual text: each string is authored twice, one per language --- */
html[lang="en"] [lang="ar"]:not(html, [data-lang-switch], .lang-switch__label),
html[lang="ar"] [lang="en"]:not(html, [data-lang-switch], .lang-switch__label) { display: none !important; }

/* Arrows / chevrons point toward the inline end; mirror them in RTL */
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* Images that have not been exported from Figma yet collapse to the slot's
   background colour instead of showing a broken-image icon. */
img.is-missing { visibility: hidden; }

.container { width: 100%; max-width: var(--page-max); margin-inline: auto; position: relative; }

/* ==========================================================================
   Navigation (Figma 65:4604 / nav-menu 66:5370, dropdown 66:5381)
   ========================================================================== */
/* Sticky header: the top bar scrolls away, the logo + menu bar stay pinned.
   Once the page scrolls (.is-stuck, set by sbg.js) the tall slanted logo
   block shrinks to the bar height. */
.site-header {
  position: sticky;
  inset-block-start: -45.8px;
  z-index: 20;
  background: #fff;
  transition: box-shadow .2s ease-out;
}
.site-header.is-stuck { box-shadow: 0 8px 24px rgba(4, 4, 61, .1); }
/* the panel's edge extension must not create sideways scrolling; the dropdown and slanted logo still hang below */
.site-header { overflow-x: clip; }
html { scroll-padding-top: 124px; } /* in-page links land below the pinned bar */

.site-header .container { height: 154px; }

/* Grey top-bar strip runs the full window width (Enginery); the navy
   contact panel covers its inline-end side. */
.site-header::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 45.8px;
  background: rgba(204, 204, 204, 0.2);
  pointer-events: none;
}

.topbar {
  height: 45.8px;
  padding-inline: 19px 480px;
  gap: 24px;
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  color: #000;
}

.topbar__tagline {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  opacity: .85;
  white-space: nowrap;
  font-family: var(--font-jost);
  line-height: 23.8px;
}
.topbar__tagline i,
.topbar__lang i { color: var(--royal-blue); font-size: 14px; width: 14px; text-align: center; }

.topbar__social { display: flex; gap: 2px; padding-top: 8px; opacity: .85; }
.topbar__social a { display: block; width: 30px; height: 30px; transition: opacity .15s ease-out; }
.topbar__social a:hover { opacity: .6; }
.topbar__social img { width: 30px; height: 30px; }
.topbar__social a { display: grid; place-items: center; color: #000; font-size: 13px; }
.topbar__social a:hover { opacity: 1; color: var(--indigo-600); }
.topbar__social button { display: block; width: 30px; height: 30px; cursor: pointer; transition: opacity .15s ease-out; }
.topbar__social button:hover { opacity: .6; }

.topbar__lang {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  margin-inline-start: auto;
  font-family: var(--font-plex);
  font-weight: 700;
  font-size: 14px;
  line-height: 23.8px;
  color: #000;
}
.topbar__lang:hover .lang-switch__label { color: var(--indigo-600); }
.topbar__lang .lang-switch__label { font-family: var(--font-plex); }
html[lang="en"] .topbar__lang .lang-switch__label { font-family: "IBM Plex Sans Arabic", var(--font-plex); }

.brand {
  position: absolute;
  inset-block-start: 45.8px;
  inset-inline-start: 12px;
  width: 200px;
  height: 151px;
  padding: 50px 30px 0;
  background: var(--deep-cove);
  /* slanted bottom edge from the design (-7° skew block) */
  clip-path: polygon(0 0, 100% 0, 100% 130px, 0 100%);
  z-index: 2;
  transition: height .25s ease-out, padding .25s ease-out, clip-path .25s ease-out;
}
.site-header.is-stuck .brand { height: 108px; padding-top: 36px; clip-path: polygon(0 0, 100% 0, 100% 108px, 0 108px); }
[dir="rtl"] .site-header.is-stuck .brand { clip-path: polygon(0 0, 100% 0, 100% 108px, 0 108px); }
[dir="rtl"] .brand { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 130px); }
.brand img { width: 140px; height: 36.23px; }

.mainnav {
  position: absolute;
  inset-block-start: 45.8px;
  inset-inline-start: 212px;
  inset-inline-end: 0;
  height: 108px;
  border-bottom: 1px solid rgba(204, 204, 204, 0.3);
  padding-inline-start: 43px;
}

.mainnav__list { display: flex; height: 107px; }
.mainnav__list > li > a {
  position: relative;
  display: block;
  padding: 45px 10px 40px;
  border-bottom: 5px solid transparent;
  font-family: var(--font-jost);
  font-weight: 600;
  font-size: 17px;
  line-height: 17px;
  color: var(--deep-cove);
  white-space: nowrap;
  transition: border-color .15s ease-out, color .15s ease-out;
}
.mainnav__list > li:first-child > a { padding-inline-start: 0; }
.mainnav__list > li > a:hover { color: var(--indigo-600); }
.mainnav__list > li > a[aria-current="page"] { border-bottom-color: var(--indigo-600); }
.mainnav__list > li > a.has-sub { padding-inline-end: 25px; }
.mainnav__list > li > a.has-sub::after {
  content: "↓";
  position: absolute;
  inset-block-start: 48px;
  inset-inline-end: 12px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 12px;
  font-weight: 400;
  opacity: 0.7;
  transition: transform .15s ease-out;
}
.has-dropdown.is-open > a.has-sub::after { transform: rotate(180deg); }
html[lang="ar"] .mainnav__list > li > a { font-family: var(--font-cairo); }
html[lang="ar"] .topbar__tagline,
html[lang="ar"] .header-contact__label { font-family: var(--font-noto-ar); }

/* Divisions dropdown — opens under the menu bar, aligned to the logo edge */
.mega {
  position: absolute;
  inset-block-start: 108px;
  inset-inline-start: 0;
  width: 1113px;
  display: flex;
  padding: 25px 20px 33px 38px;
  padding-inline: 38px 20px;
  background: var(--deep-cove);
  box-shadow: 0 24px 48px rgba(4, 4, 61, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .15s ease-out, transform .15s ease-out, visibility 0s linear .15s;
  z-index: 5;
}
.has-dropdown:hover > .mega,
.has-dropdown:focus-within > .mega,
.has-dropdown.is-open > .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .15s ease-out, transform .15s ease-out;
}
.has-dropdown.is-closed > .mega {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}
.mega__col { width: 215px; flex: none; padding-inline-end: 10px; }
.mega__title {
  display: inline-block;
  padding: 4px 0;
  border-bottom: 2px solid var(--accent);
  font-family: var(--font-jost);
  font-weight: 600;
  font-size: 17px;
  line-height: 25.5px;
  color: #eaebff;
  white-space: nowrap;
}
html[lang="ar"] .mega__title { white-space: normal; } /* long Arabic titles wrap instead of running into the next column */
.mega__list { margin-top: 6px; }
.mega__list a {
  display: block;
  padding: 4px 0;
  font-family: var(--font-jost);
  font-size: 13px;
  line-height: 20.5px;
  color: #eaebff;
  transition: color .15s ease-out;
}
.mega__title:hover,
.mega__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
html[lang="ar"] .mega__title { font-family: var(--font-cairo); line-height: 28px; }
html[lang="ar"] .mega__list a { font-family: var(--font-noto-ar); }

.header-contact {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 456px;
  height: 154px;
  background: var(--deep-cove);
  display: flex;
  align-items: center;
  gap: 30px;
  padding-inline: 29px 20px;
  z-index: 3;
  transition: height .25s ease-out, inset-block-start .25s ease-out;
}
/* The navy panel continues to the edge of the window (Enginery) */
.header-contact::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 100%;
  width: 50vw;
  background: inherit;
}
/* Once pinned, the panel is only as tall as the menu bar so its text stays centred */
.site-header.is-stuck .header-contact { inset-block-start: 45.8px; height: 108px; }
.header-contact__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-inline-start: 56px;
  color: #fff;
}
.header-contact__icon {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 50%;
  transform: translateY(-50%);
}
.header-contact__value {
  font-weight: 600;
  font-size: 17px;
  line-height: 17px;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}
[dir="rtl"] .header-contact__value { text-align: end; }
.header-contact__label {
  font-size: 11px;
  line-height: 11px;
  letter-spacing: .22px;
  opacity: .6;
}
.header-contact__item:hover .header-contact__value { text-decoration: underline; }

.nav-toggle {
  display: none;
  position: absolute;
  inset-block-start: 45.8px;
  inset-inline-end: 0;
  width: 108px;
  height: 108px;
  font-size: 24px;
  color: var(--deep-cove);
}

/* Pages open with a full-bleed hero that runs up under the header */
@media (min-width: 1024px) {
  .hero,
  .page-hero { margin-top: -154px; }
}

/* ==========================================================================
   Home page hero (Figma 50:14333) — three-slide carousel
   ========================================================================== */
.hero {
  position: relative;
  height: 909px;
  max-height: 980px;
  background: #000;
  overflow: hidden;
  color: #fff;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .8s ease;
}

/* Hero backgrounds are the Figma frames exported as-is (1440×909), with the
   dimming and gradient washes already baked in; each language has its own
   export so the photo's focal point sits opposite the headline. */
.hero__media { position: absolute; inset: 0; overflow: hidden; background: #000; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
[dir="rtl"] .hero__media img { object-position: 30% 50%; }

.hero__content {
  position: absolute;
  inset-block-start: 272.5px;
  inset-inline-start: max(20px, calc((100% - var(--page-max)) / 2 + 20px));
  width: 850px;
  max-width: calc(100% - 40px);
}

.hero__title {
  position: relative;
  min-height: 166px;
  padding: 20px 0 26px;
  font-family: var(--font-jost);
  font-weight: 600;
  font-size: 57.6px;
  line-height: 60.48px;
  color: #fff;
}
/* underline: 40px spring-green lead + 515px grey rule */
.hero__title::before,
.hero__title::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  height: 2px;
  border-radius: 2px;
}
.hero__title::before { inset-inline-start: 37.75px; width: 515px; background: rgba(204, 204, 204, .3); }
.hero__title::after { inset-inline-start: 0; width: 40px; background: var(--spring-green); }

html[lang="ar"] .hero__title {
  min-height: 217px;
  font-family: var(--font-cairo);
  line-height: 82px;
  max-width: 739px;
}

.hero__text {
  padding-top: 26px;
  font-size: 20.4px;
  line-height: 32.64px;
}
html[lang="ar"] .hero__text { font-family: var(--font-plex); font-weight: 500; }

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14.5px;
  padding: 45px 0 25px;
  font-size: 16.32px;
  line-height: 26.11px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
  padding-inline: 28px 20px;
  font-family: var(--font-jost);
  font-weight: 600;
  font-size: 16px;
  line-height: 25.6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  transition: filter .15s ease-out, background-color .15s ease-out;
}
.btn-hero:hover { filter: brightness(1.12); }
.btn-hero__arrow { font-weight: 400; color: #efefef; display: inline-block; }
.btn-hero--explore { width: 248px; background: var(--blue-21); }
.btn-hero--quote { width: 227px; background: var(--quote-bg, var(--indigo-600)); }
.hero__slide--2 { --quote-bg: var(--div-contracting); }
.hero__slide--3 { --quote-bg: var(--div-creative); }

html[lang="ar"] .btn-hero { font-family: var(--font-plex); letter-spacing: 0; padding-inline: 27.8px 13px; }
html[lang="ar"] .btn-hero--explore { width: 192px; }
html[lang="ar"] .btn-hero--quote { width: 185px; }
html[lang="ar"] .hero__actions { gap: 24px; }

/* Slider controls */
.hero__controls {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: max(20px, calc((100% - var(--page-max)) / 2 + 20px));
  display: flex;
  height: 95px;
  z-index: 5;
}

.hero__arrow {
  width: 95px;
  height: 95px;
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 24px;
  line-height: 24px;
  color: #fff;
  display: grid;
  place-items: center;
  transition: background-color .15s ease-out;
}
.hero__arrow + .hero__arrow { border-inline-start: 0; }
.hero__arrow:hover { background: rgba(255, 255, 255, .08); }

.hero__tabs { display: flex; }
.hero__tab {
  position: relative;
  width: 260px;
  height: 95px;
  padding: 30px 30px 30px 70px;
  padding-inline: 70px 30px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  border-inline-end: 1px solid rgba(255, 255, 255, .3);
  opacity: .9;
  text-align: start;
  font-family: var(--font-jost);
  font-weight: 600;
  font-size: 12px;
  line-height: 20.4px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #fff;
}
.hero__tab-label { display: block; width: 159px; }
.hero__tab-num {
  position: absolute;
  inset-inline-start: 26px;
  inset-block-start: 22px;
  font-size: 55px;
  line-height: 50px;
  opacity: .6;
}
.hero__tab-bar {
  position: absolute;
  inset-block-start: -1px;
  inset-inline-start: -1px;
  height: 8px;
  width: 0;
  background: rgba(255, 255, 255, .6);
}
.hero__tab.is-active .hero__tab-bar { width: calc(100% + 1px); }
.hero.is-playing .hero__tab.is-active .hero__tab-bar {
  animation: hero-progress var(--hero-interval, 7s) linear forwards;
}
@keyframes hero-progress { from { width: 0; } to { width: calc(100% + 1px); } }

html[lang="ar"] .hero__tab {
  font-family: var(--font-plex);
  font-size: 16px;
  line-height: 20.4px;
  letter-spacing: .6px;
}
html[lang="ar"] .hero__tab-label { width: 105px; }

/* ==========================================================================
   Introduction (Figma 50:15907)
   ========================================================================== */
.intro { padding: 100px 0 130px; background: #fff; overflow: hidden; }
.intro .container { height: 814.13px; }

.intro__copy {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 39.74%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.intro__title {
  padding-inline: 30px 40px;
  min-height: 100px;
  font-family: var(--font-jost);
  font-weight: 600;
  font-size: 39px;
  line-height: 42.9px;
  color: var(--deep-cove);
}
.intro__title span { display: block; max-width: 462px; }
html[lang="ar"] .intro__title {
  padding-inline: 30px 40px;
  font-family: var(--font-cairo);
  font-weight: 700;
  font-size: 38px;
  line-height: 44px;
}
html[lang="ar"] .intro__title span { max-width: 334px; }
html[lang="ar"] .intro__copy { gap: 18px; }

.intro__lead {
  margin-bottom: 20px;
  padding-inline: 25px 80px;
  border-inline-start: 5px solid var(--emerald);
  font-size: 18px;
  line-height: 30.6px;
  color: var(--comet);
}
html[lang="ar"] .intro__lead { padding-inline-end: 42px; }

.steps { width: 532px; max-width: 100%; }
.step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--slate-200);
  font-family: var(--font-plex);
  font-size: 16px;
  line-height: 24px;
}
.step:first-child { border-top: 0; }
.step__marker { flex: none; width: 4px; height: 40px; background: var(--marker); }
.step__name { flex: none; width: 120px; font-weight: 600; color: var(--slate-900); }
.step__desc { flex: 1; color: var(--slate-700); }
html[lang="ar"] .step { font-family: var(--font-noto-ar); line-height: 28px; }

.intro__dots {
  position: absolute;
  inset-inline-start: 826px;
  inset-block-start: 328px;
  width: 581.65px;
  height: 528px;
  background: var(--dots) right bottom / 18px 18px repeat;
}
.intro__tower {
  position: absolute;
  inset-inline-start: 721px;
  inset-block-start: 20px;
  width: 532px;
  height: 774px;
  background: #1b2440;
}
.intro__lobby {
  position: absolute;
  inset-inline-start: 461px;
  inset-block-start: 687px;
  width: 352px;
  height: 220px;
  background: #273043;
  z-index: 1;
}
.intro__tower img,
.intro__lobby img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   What we do / Services (Figma 50:16023)
   ========================================================================== */
.services {
  padding: 100px 0 70px;
  background: rgba(246, 246, 246, .79);
}
.services .container { display: flex; align-items: flex-start; min-height: 659px; }

.services__aside {
  position: relative;
  flex: none;
  width: 397px;
  padding-inline-end: 15px;
  padding-top: 69.5px;
}
.services__aside::before {
  content: "";
  position: absolute;
  inset-inline-start: -44px;
  inset-block-start: 33px;
  width: 296px;
  height: 278px;
  background: var(--dots) left top / 18px 18px repeat;
}

.services__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 27px;
  padding: 55px 30px 50px;
  background: var(--deep-cove);
}
.services__eyebrow {
  font-weight: 500;
  font-size: 18px;
  line-height: 27px;
  color: var(--emerald);
}
.services__title {
  padding-bottom: 20px;
  font-weight: 600;
  font-size: 39px;
  line-height: 39px;
  color: #fff;
}
.services__tagline {
  max-width: 281px;
  font-family: var(--font-sora);
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -.25px;
  color: var(--primary-fixed);
}
html[lang="ar"] .services__title { font-family: var(--font-cairo); font-weight: 700; font-size: 40px; line-height: 44px; padding-bottom: 8px; }
html[lang="ar"] .services__tagline { font-family: var(--font-cairo); letter-spacing: 0; line-height: 44px; }

.services__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 30px;
  padding: 21px 15px 23px;
}

.division-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16.89px;
  min-height: 289px;
  padding: 30px 30px 60px;
  background: #fff;
  color: var(--accent);
}
.division-card:nth-child(n+4) { min-height: 298px; }
.division-card__num {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 54px;
  font-family: var(--font-sora);
  font-weight: 600;
  font-size: 37px;
  line-height: 30px;
}
.division-card__num::after { content: ""; height: 5px; background: var(--accent); }
.division-card__body { display: flex; flex-direction: column; gap: 20px; }
.division-card__title {
  font-family: var(--font-sora);
  font-weight: 600;
  font-size: 22px;
  line-height: 30px;
}
html[lang="ar"] .division-card__title { font-family: var(--font-cairo); font-weight: 700; line-height: 34px; }
.division-card__text { font-size: 16px; line-height: 25.6px; color: var(--comet); }
html[lang="ar"] .division-card__text { font-family: var(--font-noto-ar); }

.btn-readmore {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 30px;
  padding: 12px 24px;
  background: var(--slate-700);
  font-weight: 600;
  font-size: 13px;
  line-height: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  transition: background-color .15s ease-out;
}
.btn-readmore:hover { background: var(--slate-900); }
html[lang="ar"] .btn-readmore { font-family: var(--font-noto-ar); letter-spacing: 0; }

.division--engineering { --accent: var(--div-engineering); }
.division--electrical { --accent: var(--div-electrical); }
.division--contracting { --accent: var(--div-contracting); }
.division--creative { --accent: var(--div-creative); }
.division--business { --accent: var(--div-business); }

/* ==========================================================================
   Featured projects / divisions showcase (Figma 50:16283)
   ========================================================================== */
.projects { position: relative; padding: 80px 0 100px; background: #fff; overflow: hidden; }
.projects__dots {
  position: absolute;
  inset-inline-end: -11px;
  inset-block-start: 146px;
  width: 296px;
  height: 278px;
  background: var(--dots) left top / 18px 18px repeat;
}
.projects__title {
  position: relative;
  padding: 20px 20px 14px;
  height: 110px;
  font-weight: 600;
  font-size: 39px;
  line-height: 46px;
  color: var(--deep-cove);
}
.projects__title span { display: block; max-width: 670px; }
html[lang="ar"] .projects__title { font-family: var(--font-cairo); }
html[lang="ar"] .projects__title span { max-width: 970px; }

.projects__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 21.5px 40px;
  padding: 10px 20px 0;
}

.project-card { position: relative; background: #1e1e1e; aspect-ratio: 690 / 490; }
.project-card__media { position: absolute; inset: 0; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-card__media img { transform: scale(1.03); }

.project-card__tag {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 30px;
  padding: 4.5px 12px 4.9px;
  background: var(--accent);
  font-weight: 500;
  font-size: 12px;
  line-height: 20.4px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.project-card__panel {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 48.59%;
  inset-inline-end: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px 30px 23px;
  background: #fff;
  box-shadow: 0 10px 50px rgba(0, 0, 0, .12);
}
.project-card__title {
  max-width: 300px;
  padding-block: 2.7px;
  font-weight: 600;
  font-size: 22px;
  line-height: 26.4px;
  color: var(--blue-zodiac);
}
html[lang="ar"] .project-card__title { font-family: var(--font-cairo); }
.project-card__text { padding-top: 4.4px; font-size: 15.3px; line-height: 26px; color: var(--comet); }
html[lang="ar"] .project-card__text { font-family: var(--font-noto-ar); }
.project-card__more {
  display: grid;
  place-items: center;
  width: 50px;
  height: 49px;
  margin-bottom: 6.4px;
  background: var(--blue-21);
  font-weight: 500;
  font-size: 12px;
  line-height: 20.4px;
  color: #fff;
  transition: background-color .15s ease-out;
}
.project-card__more:hover { background: var(--indigo-600); }

/* ==========================================================================
   Company overview (Figma 50:16419)
   ========================================================================== */
.overview { padding: 120px 0; background: var(--grey-94); }
.overview__panel {
  position: relative;
  max-width: 1500px;
  height: 563.9px;
  margin-inline: auto;
  padding: 10px;
  background: #fff;
  overflow: hidden;
}
.overview__media {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 474px;
  inset-inline-end: 0;
  background: #10141f;
  overflow: hidden;
}
.overview__media img { width: 100%; height: 100%; object-fit: cover; }

.overview__card {
  position: relative;
  width: 598.875px;
  margin-inline-start: 210px;
  margin-block-start: 99.39px;
  padding: 80px 50px 90px;
  background: var(--indigo-700);
}
.overview__title {
  padding: 0 40px 20px;
  font-weight: 600;
  font-size: 39px;
  line-height: 42.9px;
  color: var(--slate-100);
  white-space: nowrap;
}
.overview__text {
  padding-inline: 40px;
  max-width: 499px;
  font-weight: 600;
  font-size: 22px;
  line-height: 37.4px;
  color: var(--slate-200);
}
.overview__text span { display: block; max-width: 419px; }
html[lang="ar"] .overview__text { font-family: var(--font-cairo); }

/* ==========================================================================
   Quote CTA (Figma 50:12971)
   ========================================================================== */
.site-footer { background: var(--ebony-clay); display: flex; flex-direction: column; gap: 1px; }

.quote-cta { background: var(--indigo-800); }
.quote-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 200px;
  padding: 64px 80px;
}
.quote-cta__copy { display: flex; flex-direction: column; gap: 12px; width: 720px; max-width: 100%; }
.quote-cta__title {
  font-family: var(--font-sora);
  font-weight: 700;
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -.25px;
  color: #fff;
}
.quote-cta__text { font-family: var(--font-plex); font-size: 16px; line-height: 24px; color: var(--indigo-50); }
html[lang="ar"] .quote-cta__title { font-family: var(--font-cairo); line-height: 44px; letter-spacing: 0; }
html[lang="ar"] .quote-cta__text { font-family: var(--font-noto-ar); line-height: 28px; }

.quote-cta__actions { display: flex; gap: 16px; flex: none; }

/* Button (Figma 9:27) — square corners, 150ms ease-out hover */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding-inline: 24px;
  font-family: var(--font-plex);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out;
}
.btn img { width: 20px; height: 20px; }
.btn--primary { background: var(--indigo-600); color: #fff; }
.btn--primary:hover { background: var(--indigo-700); }
.btn--on-dark { background: #fff; color: var(--indigo-800); }
.btn--on-dark:hover { background: var(--indigo-50); }
.btn--outline { border: 1.5px solid #fff; color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, .1); }
html[lang="ar"] .btn { font-family: var(--font-noto-ar); line-height: 24px; }

/* ==========================================================================
   Footer (Figma 50:13068 / div#footer 50:12950)
   ========================================================================== */
.footer-main { background: var(--slate-900); overflow: hidden; }
.footer-main .container { min-height: 637.6px; }

.footer-cols { display: flex; align-items: flex-start; min-height: 411.6px; }
.footer-col--about {
  width: 514px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 70px 10px 75px 73px;
  padding-inline: 73px 10px;
}
.footer-col--about img { width: 166px; height: 43px; }
.footer-col--about p { font-size: 15.3px; line-height: 26px; color: var(--nepal); }
html[lang="ar"] .footer-col--about p { font-family: var(--font-noto-ar); }

.footer-col--divisions { width: 576px; padding: 50px 20px 70px 308px; padding-inline: 308px 20px; }
.footer-col--links { width: 288px; padding: 50px 20px 75px; }

.footer-widget-title {
  position: relative;
  padding: 20px 0 14px;
  font-weight: 600;
  font-size: 18px;
  line-height: 21.6px;
  color: var(--pigeon-post);
}
.footer-widget-title::before,
.footer-widget-title::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  height: 2px;
  border-radius: 2px;
}
.footer-widget-title::before { inset-inline-start: 38px; inset-inline-end: 0; background: rgba(204, 204, 204, .3); }
.footer-widget-title::after { inset-inline-start: 0; width: 40px; background: var(--royal-blue); }
html[lang="ar"] .footer-widget-title { font-family: var(--font-noto-ar); }

.footer-list a {
  font-size: 15.3px;
  color: var(--pigeon-post);
  transition: color .15s ease-out;
}
.footer-list a:hover { color: #fff; }
.footer-col--divisions .footer-list { margin-top: 19px; }
.footer-col--divisions .footer-list li { line-height: 43px; }
.footer-col--links .footer-list { margin-top: 23px; }
.footer-col--links .footer-list li { padding: 3.5px 0; line-height: 26px; }
html[lang="ar"] .footer-list a { font-family: var(--font-noto-ar); }

.footer-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 102px;
  background: var(--royal-blue);
}
/* blue bar runs to the window edge on the inline-end side (Enginery) */
.footer-bar::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 100%;
  width: 50vw;
  background: var(--royal-blue);
}
.footer-bar__social {
  display: flex;
  gap: 5px;
  align-self: stretch;
  width: 449px;
  padding: 33px 35px 33px 102px;
  padding-inline: 102px 35px;
  background: var(--ebony-clay);
  position: relative;
}
/* dark social strip runs to the window edge on the inline-start side */
.footer-bar__social::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 100%;
  width: 50vw;
  background: var(--ebony-clay);
}
.footer-bar__social a {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 36px;
  padding: 10px 12px;
  font-weight: 500;
  font-size: 12px;
  line-height: 12px;
  text-transform: uppercase;
  color: var(--pigeon-post);
  transition: color .15s ease-out;
}
.footer-bar__social a i { font-size: 16px; line-height: 16px; }
/* six networks: icon-only buttons (names are in aria-label) */
.footer-bar__social { align-items: center; gap: 8px; }
.footer-bar__social a {
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(186, 203, 219, .25);
  border-radius: 50%;
}
.footer-bar__social a:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* email / phone / WhatsApp / Telegram under the footer logo */
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 12px; font-size: 15.3px; line-height: 24px; color: var(--pigeon-post); transition: color .15s ease-out; }
.footer-contact a:hover { color: #fff; }
.footer-contact i { width: 18px; text-align: center; font-size: 16px; color: var(--royal-blue); }
.footer-contact [dir="ltr"] { unicode-bidi: isolate; }
html[lang="ar"] .footer-contact a { font-family: var(--font-noto-ar); }
.footer-bar__social a:hover { color: #fff; }
.footer-bar__tagline {
  margin-inline-start: auto;
  min-width: 360px;
  margin-inline-end: 39.8px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 22px;
  line-height: 26.4px;
  color: var(--catskill);
}
html[lang="ar"] .footer-bar__tagline { font-family: var(--font-noto-ar); }

.footer-bottom { padding: 30px 20px 25px; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.footer-menu { display: flex; justify-content: center; align-items: flex-start; gap: 4.6px; padding-top: 1px; }
.footer-menu a,
.footer-menu button {
  display: block;
  padding: 3.5px 10px;
  font-family: var(--font-jost);
  font-size: 11px;
  line-height: 18.7px;
  text-transform: uppercase;
  color: var(--pigeon-post);
  transition: color .15s ease-out;
}
.footer-menu li:first-child a { padding-inline-start: 0; }
.footer-menu a:hover,
.footer-menu button:hover { color: #fff; }
.footer-menu .lang-switch { text-transform: none; font-family: var(--font-noto-ar); font-weight: 600; font-size: 14px; line-height: 24px; padding-block: 0; }
html[lang="ar"] .footer-menu a { font-family: var(--font-noto-ar); }
html[lang="ar"] .footer-menu .lang-switch { text-transform: none; font-family: var(--font-plex); line-height: 20px; padding-block: 3.5px; }
.footer-credits { font-size: 12px; line-height: 20.4px; color: var(--nepal); text-align: center; }
html[lang="ar"] .footer-credits { font-family: var(--font-noto-ar); }

/* ==========================================================================
   About page (Figma 80:11694 LTR / 82:12997 RTL)
   ========================================================================== */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  height: 650px;
  background: #303056;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/about-hero-bg.jpg") center / cover no-repeat;
  mix-blend-mode: luminosity;
  opacity: .29;
}
.page-hero .container { height: 100%; }
.page-hero__text {
  position: absolute;
  inset-block-start: 395px;
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-inline: 50px;
  color: #fff;
}
.page-hero__crumbs { font-family: var(--font-plex); font-size: 16px; line-height: 20px; color: #94a3b8; }
.page-hero__crumbs a:hover { color: #fff; }
.page-hero__title {
  font-family: var(--font-sora);
  font-weight: 700;
  font-size: 47px;
  line-height: 44px;
  letter-spacing: -.5px;
}
html[lang="ar"] .page-hero__title { font-family: var(--font-cairo); letter-spacing: 0; line-height: 60px; }
.page-hero__lead { font-family: var(--font-plex); font-size: 16px; line-height: 24px; color: var(--slate-200); }

/* ---------- Our story ---------- */
.story {
  position: relative;
  z-index: 1; /* the section starts 145px up, under the hero's bottom edge */
  margin-top: -145px;
  background: linear-gradient(transparent 145px, #c2cbd7 145px);
}
.story .container { height: 952px; }
.story__copy {
  position: absolute;
  inset-block-start: 255px;
  inset-inline-start: 50px;
  width: 466px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.story__head {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
  padding-inline: 20px;
}
.story__title {
  width: 348px;
  font-family: var(--font-jost);
  font-weight: 600;
  font-size: 39px;
  line-height: 42.9px;
  color: var(--deep-cove);
}
html[lang="ar"] .story__title { font-family: var(--font-cairo); font-weight: 700; line-height: 56px; }
.story__text {
  width: 454px;
  max-width: 100%;
  border-inline-start: 5px solid var(--indigo-600);
  padding-inline-start: 25px;
  font-size: 18px;
  line-height: 30.6px;
  color: var(--comet);
}
.purpose { position: relative; color: var(--indigo-50); }
.purpose--mission { min-height: 153px; background: var(--slate-900); border-top: 4px solid var(--indigo-600); padding-top: 27px; }
.purpose--vision { min-height: 118px; background: var(--indigo-600); padding-top: 15px; }
.purpose__title {
  width: 272px;
  margin-inline: 33px;
  padding-bottom: 6px;
  border-bottom: 2px solid #334155;
  font-family: "DM Sans", var(--font-plex);
  font-weight: 600;
  font-size: 28px;
  line-height: 42.9px;
}
.purpose--vision .purpose__title { border-bottom-color: var(--slate-900); }
html[lang="ar"] .purpose__title { font-family: var(--font-cairo); }
.purpose__text {
  margin-top: 12px;
  padding: 12px 31px;
  font-family: var(--font-plex);
  font-weight: 300;
  font-size: 12px;
  line-height: 17px;
  color: #94a3b8;
}
.purpose--mission .purpose__text { background: #111827; min-height: 59px; }
.purpose--vision .purpose__text { margin-top: 0; color: var(--slate-100); }
.purpose__text span { display: block; max-width: 341px; }

.story__media { position: absolute; inset: 0; pointer-events: none; }
.story__copy { z-index: 1; }
.story__dots {
  position: absolute;
  inset-block-start: 168px;
  inset-inline-start: 631.5px;
  width: 436px;
  height: 719px;
  background: var(--dots) 0 0 / 15.09px 15.09px;
}
.story__team {
  position: absolute;
  inset-block-start: -46px;
  inset-inline-start: 718px;
  width: 591px;
  height: 811px;
  border: 8.38px solid #fff;
  background: #fff;
}
.story__team img { width: 100%; height: 100%; object-fit: cover; }
.story__datacenter {
  position: absolute;
  inset-block-start: 618px;
  inset-inline-start: 902px;
  width: 485px;
  height: 272px;
  object-fit: cover;
  filter: drop-shadow(23px 32px 8px rgba(0, 0, 0, .24));
}

/* ---------- Our values ---------- */
.values {
  position: relative;
  height: 679px;
  background: #fff;
  overflow: hidden;
}
.values__bg {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 1091px;
  height: 100%;
  object-fit: cover;
}
.values::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 1091px;
  z-index: 1;
  background: linear-gradient(var(--values-angle, 65.86deg), rgba(0, 0, 0, .584) 49.5%, rgba(102, 102, 102, 0) 98.2%);
}
[dir="rtl"] .values { --values-angle: 294.14deg; }
[dir="rtl"] .values__bg { transform: scaleX(-1); }
.values .container { height: 100%; z-index: 2; }
.values__panel {
  position: absolute;
  inset-block-start: 161px;
  inset-inline-start: 526px;
  width: 877px;
  height: 477px;
  padding: 38px 60px 0;
  background: #626c7b;
}
.values__eyebrow {
  font-family: var(--font-jost);
  font-weight: 600;
  font-size: 26.26px;
  line-height: 51.2px;
  color: #94a3b8;
}
.values__title {
  width: 375px;
  font-family: var(--font-jost);
  font-weight: 600;
  font-size: 46.55px;
  line-height: 51.2px;
  color: var(--indigo-50);
}
html[lang="ar"] .values__eyebrow,
html[lang="ar"] .values__title { font-family: var(--font-cairo); }
.values__actions {
  position: absolute;
  inset-block-start: 112px;
  inset-inline-start: 443px;
  display: flex;
  gap: 19px;
}
.values__actions .btn {
  height: 57px;
  padding-inline: 28.6px;
  font-family: var(--font-plex);
  font-weight: 600;
  font-size: 16.71px;
}
.values__actions .btn--outline { border-width: 1.79px; }
.values__actions .btn img { width: 24px; height: 24px; }
.values__band {
  position: absolute;
  inset-block-start: 227px;
  inset-inline-start: 60px;
  width: 924px;
  height: 205px;
  background: var(--indigo-800);
}
.values__list {
  position: absolute;
  inset-block-start: 23.6px;
  inset-inline-start: 36.7px;
  display: grid;
  grid-template-columns: 103px 105px 115px 164px;
  gap: 69px;
}
.value { display: flex; flex-direction: column; align-items: flex-start; gap: 14.3px; }
.value__icon { width: 38px; height: 38px; }
.value__title,
.value__text { font-family: var(--font-plex); font-size: 19.1px; line-height: 28.6px; }
.value__title { font-weight: 600; color: var(--slate-100); }
.value__text { margin-top: -14.3px; color: #94a3b8; font-size: 16px; line-height: 28.6px; }

/* ---------- Leadership ---------- */
.leadership { position: relative; background: #f8f8f8; overflow: hidden; }
.leadership .container { height: 605px; }
.leadership__intro {
  position: absolute;
  inset-block-start: 120px;
  inset-inline-start: 0;
  width: 377px;
  padding: 65px 30px 60px;
  background: var(--deep-cove);
}
.leadership__dots {
  position: absolute;
  inset-block-start: 228px;
  inset-inline-start: -41px;
  width: 296px;
  height: 278px;
  z-index: -1;
  background: var(--dots) 0 0 / 15.09px 15.09px;
}
.leadership__title {
  padding-bottom: 20px;
  font-family: var(--font-jost);
  font-weight: 600;
  font-size: 39px;
  line-height: 39px;
  color: #fff;
}
.leadership__eyebrow { font-family: var(--font-jost); font-weight: 500; font-size: 18px; line-height: 27px; color: var(--emerald); }
html[lang="ar"] .leadership__title { font-family: var(--font-cairo); line-height: 52px; padding-bottom: 8px; }

.leader__photo {
  position: absolute;
  inset-block-start: 54px;
  inset-inline-start: 433px;
  width: 436px;
  height: 531px;
  padding: 15px 15px 6px 13.5px;
  background: #fff;
}
.leader__photo img { width: 407px; height: 510px; object-fit: cover; }
.leader__photo::after {
  content: "";
  position: absolute;
  inset-block-start: 15px;
  inset-inline-start: 13.5px;
  width: 407px;
  height: 510px;
  mix-blend-mode: multiply;
  background: linear-gradient(236.2deg, rgba(0, 0, 0, .38) 12.6%, rgba(79, 70, 229, .38) 49%);
}
.leader__bar {
  position: absolute;
  inset-block-start: 443px;
  inset-inline-start: 869px;
  inset-inline-end: calc((100vw - min(100vw, var(--page-max))) / -2);
  height: 103px;
  background: var(--div-creative);
}
.leader__name {
  position: absolute;
  inset-block-start: 465px;
  inset-inline-start: 421px;
  width: 977px;
  min-height: 141px;
  padding: 18px 24.5px 16px;
  background: var(--slate-900);
}
.leader__heading { font-family: var(--font-jost); font-weight: 600; font-size: 31.8px; line-height: 38.4px; color: #fff; }
.leader__role { width: 282px; margin-top: 6px; font-family: var(--font-jost); font-weight: 500; font-size: 14px; line-height: 22px; color: var(--div-creative); }
html[lang="ar"] .leader__role { width: 340px; }

.leader__division {
  position: absolute;
  inset-block-start: 100px;
  inset-inline-start: 889px;
  width: 530px;
}
.leader__kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 12px;
  font-family: var(--font-sora);
  font-weight: 800;
  font-size: 10.27px;
  line-height: 14px;
  letter-spacing: 1.47px;
  color: var(--deep-cove);
}
.leader__kicker i { color: var(--div-creative); font-size: 12px; }
html[lang="ar"] .leader__kicker { font-family: var(--font-cairo); letter-spacing: 0; }
.leader__division-title { display: flex; align-items: center; gap: 12px; margin: 22px 0 0 9px; margin-inline: 9px 0; }
.leader__division-num { white-space: nowrap; font-family: var(--font-sora); font-weight: 600; font-size: 37px; line-height: 30px; color: var(--div-creative); }
.leader__division-label {
  display: flex;
  align-items: center;
  width: 283px;
  height: 35px;
  padding-inline: 8px;
  background: var(--div-creative);
  font-family: var(--font-sora);
  font-weight: 600;
  font-size: 21px;
  color: #fcfaff;
}
html[lang="ar"] .leader__division-num,
html[lang="ar"] .leader__division-label { font-family: var(--font-cairo); font-weight: 700; }
.capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  gap: 11px 6px;
  margin-top: 30px;
}
.capability {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9.33px;
  background: #f8fafc;
  border: .58px solid var(--slate-200);
  font-family: "DM Sans", var(--font-plex);
}
.capability__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 16.3px;
  height: 16.3px;
  border-radius: 50%;
  background: #f5f3ff;
  font-weight: 700;
  font-size: 7.17px;
  color: var(--div-creative);
}
.capability__title { font-weight: 700; font-size: 8.33px; line-height: 1.4; color: var(--slate-900); }
.capability__text { margin-top: 2px; font-size: 7.75px; line-height: 1.6; color: var(--slate-700); }
html[lang="ar"] .capability { font-family: var(--font-plex); }

/* ---------- Divisions (about variant) ---------- */
.about-divisions { position: relative; background: #e9e9ec; }
.about-divisions .container { min-height: 695px; padding-top: 37.5px; padding-bottom: 70px; }
.about-divisions__intro {
  position: relative;
  z-index: 1;
  width: 733px;
  height: 329px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 37.5px 30px 50px 51px;
  padding-inline: 51px 30px;
  background: var(--deep-cove);
}
.about-divisions__eyebrow { font-family: var(--font-jost); font-weight: 500; font-size: 18px; line-height: 27px; color: var(--emerald); }
.about-divisions__tagline { font-family: var(--font-sora); font-weight: 700; font-size: 28px; line-height: 36px; letter-spacing: -.25px; color: var(--primary-fixed); }
.about-divisions__title { width: 294px; padding-bottom: 20px; font-family: var(--font-jost); font-weight: 600; font-size: 39px; line-height: 39px; color: #fff; }
html[lang="ar"] .about-divisions__tagline,
html[lang="ar"] .about-divisions__title { font-family: var(--font-cairo); letter-spacing: 0; line-height: 52px; }
.about-divisions__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 264.6px);
  justify-content: center;
  gap: 17px;
  margin-top: -97.5px; /* cards overlap the intro box by 97.5px */
}
.div-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 254.9px;
  padding: 26.5px 26.5px 52.9px;
  background: #fff;
  color: var(--accent);
}
.div-tile__num {
  display: flex;
  flex-direction: column;
  gap: 8.8px;
  width: 47.6px;
  font-family: var(--font-sora);
  font-weight: 600;
  font-size: 32.6px;
  line-height: 26.5px;
}
.div-tile__num::after { content: ""; height: 4.41px; background: var(--accent); }
.div-tile__title { font-family: var(--font-sora); font-weight: 600; font-size: 19.4px; line-height: 26.5px; }
html[lang="ar"] .div-tile__title { font-family: var(--font-cairo); font-weight: 700; line-height: 32px; }
.div-tile__text { font-size: 14.1px; line-height: 22.6px; color: var(--comet); }
.div-tile__more { inset-inline-end: 27.3px; padding: 10.6px 21.2px; font-size: 11.47px; line-height: 11.47px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-end: 54px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 50px;
  height: 52px;
  background: var(--blue-21);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease-out, transform .2s ease-out, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--indigo-600); }

/* ==========================================================================
   Site search overlay (opened from the top bar search icon)
   ========================================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  overflow-y: auto;
  padding: 0 20px;
  background: #fff;
  animation: search-in .2s ease-out;
}
.search-overlay[hidden] { display: none; }
@keyframes search-in { from { opacity: 0; } to { opacity: 1; } }
.search-overlay__inner { width: 100%; max-width: 652px; padding-top: calc(50vh - 35px); padding-bottom: 60px; }
.search-form { display: flex; align-items: center; }
.search-form__input {
  flex: 1;
  min-width: 0;
  height: 70px;
  padding-inline: 35px;
  border: 1px solid #e6e6e6;
  border-inline-end: 0;
  border-radius: 0;
  background: #f9f9f9;
  font: 400 20px/1 var(--font-jost);
  color: var(--comet);
  -webkit-appearance: none;
  appearance: none;
}
.search-form__input::placeholder { color: var(--comet); opacity: 1; }
.search-form__input:focus { outline: 2px solid var(--indigo-600); outline-offset: -2px; }
.search-form__input::-webkit-search-cancel-button { display: none; }
.search-form__submit {
  flex: none;
  width: 110px;
  height: 70px;
  background: var(--blue-21);
  font: 500 16px/1 var(--font-jost);
  color: #fff;
  cursor: pointer;
  transition: background-color .15s ease-out;
}
.search-form__submit:hover { background: var(--indigo-600); }
.search-overlay__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-inline-start: 53px;
  font-size: 18px;
  color: var(--deep-cove);
  cursor: pointer;
}
.search-overlay__close:hover { color: var(--indigo-600); }
html[lang="ar"] .search-form__input,
html[lang="ar"] .search-form__submit { font-family: var(--font-noto-ar); }
.search-overlay__status { max-width: 570px; margin-top: 16px; font-size: 15px; color: var(--comet); }
.search-overlay__status:empty { display: none; }
.search-results { max-width: 570px; margin-top: 8px; }
.search-results a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-200);
  color: var(--deep-cove);
}
.search-results a:hover,
.search-results a:focus-visible { color: var(--indigo-600); }
.search-results__title { display: block; font-weight: 600; font-size: 17px; line-height: 24px; }
.search-results__context { display: block; font-size: 13px; line-height: 20px; color: var(--comet); }
.search-results mark { background: none; color: var(--indigo-600); }
html.search-open { overflow: hidden; }

@media (max-width: 767px) {
  .search-overlay__inner { padding-top: 120px; }
  .search-form__input { height: 56px; padding-inline: 16px; font-size: 17px; }
  .search-form__submit { width: 84px; height: 56px; }
  .search-overlay__close { margin-inline-start: 8px; }
}

/* ==========================================================================
   Responsive — the Figma frames are 1440 desktop; below that the absolute
   compositions reflow into stacked layouts.
   ========================================================================== */
@media (max-width: 1439px) {
  .mega { width: auto; max-width: calc(100vw - 275px); }
  .mega__col { width: auto; flex: 1 1 0; min-width: 0; }
  .intro__tower { inset-inline-start: auto; inset-inline-end: 187px; }
  .intro__dots { inset-inline-start: auto; inset-inline-end: 32px; }
  .intro__lobby { inset-inline-start: auto; inset-inline-end: 627px; }
}

@media (max-width: 1279px) {
  .header-contact { width: 250px; padding-inline: 24px 16px; }
  .header-contact__item--mail { display: none; }
  .topbar { padding-inline-end: 274px; }
  .mainnav { padding-inline-start: 28px; }
  .mainnav__list > li > a { padding-inline: 8px; font-size: 16px; }
  .mainnav__list > li > a.has-sub { padding-inline-end: 22px; }
  .mainnav__list > li > a.has-sub::after { inset-inline-end: 8px; }
  .mega { width: auto; max-width: calc(100vw - 236px); flex-wrap: wrap; row-gap: 22px; }
  .mega__col { flex: 1 1 170px; }

  .intro .container { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding-inline: 20px; }
  .intro__copy { position: static; width: auto; padding: 0; }
  .intro__visual { position: relative; min-height: 700px; }
  .intro__tower { inset-inline-end: 0; inset-block-start: 0; width: 80%; height: 600px; }
  .intro__lobby { inset-inline-end: auto; inset-inline-start: 0; inset-block-start: auto; inset-block-end: 0; width: 60%; height: 200px; }
  .intro__dots { inset-inline-end: -20px; inset-block-start: 260px; width: 60%; height: 460px; }

  .services .container { flex-direction: column; padding-inline: 20px; }
  .services__aside { width: 100%; max-width: 520px; padding: 0; }
  .services__grid { width: 100%; padding-inline: 0; gap: 28px 20px; margin-top: 40px; }

  .overview__card { margin-inline-start: 60px; }
  .overview__media { inset-inline-start: 320px; }

  .footer-cols { flex-wrap: wrap; }
  .footer-col--about { width: 100%; padding: 60px 40px 20px; }
  .footer-col--divisions { width: 50%; padding: 20px 40px 40px; }
  .footer-col--links { width: 50%; padding: 20px 40px 40px; }
  .footer-bar__social { width: auto; padding-inline: 40px 20px; }
}

@media (max-width: 1023px) {
  .site-header .container { height: 154px; }
  .header-contact { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .mainnav { inset-inline-end: 108px; padding: 0; border: 0; z-index: 3; }
  .mainnav__list {
    display: none;
    position: absolute;
    inset-block-start: 108px;
    inset-inline: -200px -108px;
    height: auto;
    flex-direction: column;
    max-height: calc(100vh - 154px);
    max-height: calc(100dvh - 154px);
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 20px 40px rgba(4, 4, 61, .12);
  }
  .site-header.nav-open .mainnav__list { display: flex; }
  .mainnav__list > li > a,
  .mainnav__list > li:first-child > a { padding: 18px 24px; border-bottom: 1px solid var(--slate-200); border-inline-start: 5px solid transparent; }
  .mainnav__list > li > a[aria-current="page"] { border-bottom-color: var(--slate-200); border-inline-start-color: var(--indigo-600); }
  .mainnav__list > li > a.has-sub::after { inset-block-start: 21px; }
  .topbar { padding-inline-end: 19px; }
  .mega {
    position: static;
    display: none;
    width: auto;
    max-width: none;
    flex-direction: column;
    gap: 18px;
    padding: 18px 24px 22px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .has-dropdown:hover > .mega,
  .has-dropdown:focus-within > .mega { display: none; }
  .has-dropdown.is-open > .mega { display: flex; }
  .mega__col { width: auto; }

  .hero { height: 760px; }
  .hero__content { inset-block-start: 160px; }
  .hero__title,
  html[lang="ar"] .hero__title { font-size: 44px; line-height: 1.2; min-height: 0; padding-bottom: 30px; }
  .hero__title::before { width: min(515px, 60%); }
  .hero__text { font-size: 18px; line-height: 1.6; }
  .hero__actions { flex-wrap: wrap; }
  .hero__tabs { display: none; }

  .intro .container { grid-template-columns: minmax(0, 1fr); }
  .steps { width: 100%; }
  .intro__visual { min-height: 640px; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .projects__title { height: auto; padding-bottom: 30px; font-size: 32px; line-height: 40px; }
  .projects__grid { grid-template-columns: 1fr; gap: 24px; }

  .overview { padding: 60px 0; }
  .overview__panel { height: auto; padding: 0; display: flex; flex-direction: column-reverse; }
  .overview__media { position: relative; inset: auto; height: 360px; }
  .overview__card { width: auto; margin: -80px 20px 20px; }

  .quote-cta .container { flex-direction: column; align-items: flex-start; padding: 48px 20px; }
  .quote-cta__actions { flex-wrap: wrap; }

  .footer-bar { flex-direction: column; height: auto; margin-inline: 0; }
  .footer-bar::after,
  .footer-bar__social::before { display: none; }
  .footer-bar__social { width: 100%; margin: 0; justify-content: center; padding: 20px; }
  .footer-bar__tagline { margin: 0; min-width: 0; white-space: normal; padding: 24px 20px; text-align: center; }
  .footer-menu { flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .topbar__tagline { width: auto; }
  .topbar { gap: 12px; }
  .topbar__social li:not(.topbar__search) { display: none; }
  .brand { width: 170px; padding-inline: 20px; }
  .mainnav { inset-inline-start: 170px; }
  .mainnav__list { inset-inline-start: -170px; }

  .hero { height: 720px; }
  .hero__content { inset-block-start: 110px; }
  .hero__title,
  html[lang="ar"] .hero__title { font-size: 34px; }
  .hero__text { font-size: 16px; }
  .btn-hero,
  html[lang="ar"] .btn-hero { width: auto; height: 56px; }
  .hero__controls { inset-inline-start: 0; }
  .hero__arrow { width: 72px; height: 72px; }

  .intro { padding: 60px 0 80px; }
  .intro__title,
  html[lang="ar"] .intro__title { font-size: 30px; line-height: 1.3; padding-inline: 0; min-height: 0; margin-bottom: 20px; }
  .intro__lead { padding-inline-end: 0; }
  .step__name { width: 90px; }
  .intro__visual { min-height: 520px; }
  .intro__tower { height: 440px; width: 85%; }
  .intro__lobby { height: 160px; width: 70%; }

  .services { padding: 60px 0; }
  .services__grid { grid-template-columns: 1fr; }
  .services__title { font-size: 32px; }

  .projects { padding: 60px 0; }
  .projects__grid { padding-inline: 12px; }
  .project-card { aspect-ratio: auto; display: flex; flex-direction: column; }
  .project-card__media { position: relative; aspect-ratio: 690 / 490; }
  .project-card__panel { position: relative; inset: auto; }

  .overview__title { white-space: normal; font-size: 32px; padding-inline: 0; }
  .overview__text { padding-inline: 0; font-size: 19px; line-height: 1.6; }
  .overview__card { padding: 48px 28px; }

  .footer-col--divisions,
  .footer-col--links { width: 100%; padding-inline: 20px; }
  .footer-col--about { padding-inline: 20px; }
  .footer-bar__social { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- About page — responsive ---------- */
@media (max-width: 1439px) {
  .story__team { inset-inline-start: auto; inset-inline-end: 60px; width: min(591px, calc(100% - 610px)); }
  .story__datacenter { inset-inline-start: auto; inset-inline-end: 20px; }
  .leader__division-label { width: auto; flex: 1; min-width: 0; }
  .story__dots { inset-inline-start: auto; inset-inline-end: 372.5px; }
  .values__panel { inset-inline-start: auto; inset-inline-end: 37px; }
  .leadership__intro { width: 300px; }
  .leader__photo { inset-inline-start: 330px; }
  .leader__name { inset-inline-start: 318px; inset-inline-end: 42px; width: auto; }
  .leader__bar { inset-inline-start: 766px; }
  .leader__division { inset-inline-start: 786px; inset-inline-end: 20px; width: auto; }
  .about-divisions__grid { grid-template-columns: repeat(5, minmax(0, 264.6px)); padding-inline: 20px; }
}

@media (max-width: 1279px) {
  .page-hero { height: auto; }
  .story { margin-top: 0; background: #c2cbd7; }
  .page-hero__text { position: relative; inset: auto; padding: 300px 20px 72px; }

  .story .container { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; padding: 80px 20px; }
  .story__copy { position: static; width: auto; }
  .story__head { padding-inline: 0; }
  .story__title { width: auto; }
  .story__media { position: relative; inset: auto; min-height: 560px; }
  .story__team { inset-block-start: 0; inset-inline-end: 40px; width: 75%; height: 470px; }
  .story__datacenter { inset-block-start: auto; inset-block-end: 0; inset-inline-end: 0; width: 60%; height: auto; aspect-ratio: 485 / 272; }
  .story__dots { inset-block-start: 40px; inset-inline-start: 0; inset-inline-end: auto; width: 50%; height: 85%; }

  .values { height: auto; }
  .values__bg,
  .values::before { width: 100%; }
  .values .container { padding: 80px 20px; }
  .values__panel { position: relative; inset: auto; width: auto; height: auto; padding: 38px 40px 40px; }
  .values__title { width: auto; }
  .values__actions { position: static; flex-wrap: wrap; margin-top: 24px; }
  .values__band { position: static; width: auto; height: auto; margin: 32px -40px -40px; padding: 32px 40px; }
  .values__list { position: static; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }

  .leadership .container { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 80px 20px; }
  .leadership__intro { position: relative; inset: auto; width: auto; max-width: 377px; grid-column: 1 / -1; }
  .leader__photo { position: relative; inset: auto; width: auto; height: auto; padding: 15px; grid-column: 1; grid-row: 2; }
  .leader__photo img { width: 100%; height: auto; aspect-ratio: 407 / 510; }
  .leader__photo::after { inset: 15px; width: auto; height: auto; }
  .leader__bar { display: none; }
  .leader__name { position: relative; inset: auto; width: auto; height: auto; grid-column: 1; grid-row: 3; margin-top: -110px; }
  .leader__role,
  html[lang="ar"] .leader__role { width: auto; }
  .leader__division { position: relative; inset: auto; width: auto; grid-column: 2; grid-row: 2 / span 2; }
  .capabilities { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; }
  .capability { gap: 10px; padding: 12px; }
  .capability__num { width: 24px; height: 24px; font-size: 10px; }
  .capability__title { font-size: 14px; }
  .capability__text { font-size: 13px; }

  .about-divisions .container { min-height: 0; padding-top: 0; }
  .about-divisions__intro { width: auto; max-width: 733px; height: auto; padding: 48px 20px 140px; }
  .about-divisions__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .page-hero__text { padding-top: 140px; }
}

@media (max-width: 479px) {
  .topbar__tagline { display: none; }
}

@media (max-width: 767px) {
  .page-hero__title { font-size: 38px; }
  .story .container { grid-template-columns: minmax(0, 1fr); padding-block: 64px; }
  .story__text { width: auto; }
  .purpose__title { width: auto; }
  .story__media { min-height: 440px; }
  .story__team { inset-inline-end: 24px; width: 85%; height: 360px; }
  .values .container { padding-block: 64px; }
  .values__panel { padding: 28px 20px; }
  .values__title { font-size: 36px; line-height: 42px; }
  .values__band { margin: 28px -20px -28px; padding: 28px 20px; }
  .values__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leadership .container { grid-template-columns: minmax(0, 1fr); padding-block: 64px; }
  .leader__photo,
  .leader__name,
  .leader__division { grid-column: 1; grid-row: auto; }
  .leader__division-title { flex-wrap: wrap; }
  .leader__division-label { width: auto; }
  .about-divisions__grid { grid-template-columns: minmax(0, 1fr); }
  .to-top { inset-inline-end: 16px; }
}
