/* GS Graphx global navigation — unified connected pill bar & editorial fullscreen menu (lime branding) */
.gs-site-header.o-header {
  position: fixed !important;
  inset: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  z-index: 230 !important;
  pointer-events: none;
  background: transparent !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  padding: clamp(18px, 2.4vw, 34px) clamp(22px, 3.2vw, 58px) !important;
  box-sizing: border-box;
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.65, 0, 0.35, 1) !important;
}

.gs-site-header .gs-header-grid {
  width: 100%;
  max-width: 1800px;
  margin: auto;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  pointer-events: none;
}

.gs-site-header .gs-header-brand,
.gs-site-header .gs-header-middle,
.gs-site-header .gs-header-action {
  pointer-events: auto;
}

.gs-site-header .gs-header-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  isolation: isolate;
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.gs-site-header .gs-header-brand:hover {
  transform: translateY(-2px);
}

.gs-site-header .gs-header-action {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.gs-site-header .o-header__cta {
  position: relative;
  z-index: 2;
}

.gs-site-header .is-intro-hidden {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* ==========================================================================
   Unified Connected Navigation Pill Bar (Language + Menu)
   ========================================================================== */
.gs-site-header .gs-header-middle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 100px;
  background: rgba(18, 21, 24, 0.84);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  isolation: isolate;
  direction: ltr;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.3s ease, box-shadow 0.35s ease, background-color 0.3s ease;
}

body.gs-global-menu-open .gs-site-header .gs-header-middle {
  border-color: rgba(182, 244, 25, 0.48);
  box-shadow: none;
}

.gs-site-header .gs-header-divider {
  width: 1px;
  height: 20px;
  flex: none;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.gs-site-header .gs-header-middle .gs-header-language,
.gs-site-header .gs-header-middle .gs-site-menu-toggle {
  appearance: none;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  margin: 0;
  border: 0;
  border-radius: 100px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
  font: 500 13.5px/1 "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
}

/* Language button — rising lime flair matching "Start a Partnership" */
.gs-site-header .gs-header-middle .gs-header-language {
  min-width: 78px;
  padding: 0 18px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: #f5f7f6 !important;
  transition: color 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.gs-site-header .gs-header-middle .gs-header-language:before,
.gs-site-header .gs-header-middle .gs-header-language:after {
  content: none !important;
  display: none !important;
}

.gs-site-header .gs-lang-flair {
  position: absolute;
  inset: -45% -20%;
  border-radius: 50%;
  background-color: var(--green, #b6f419);
  transform: scale(0);
  transform-origin: left center;
  transition: transform 0.5s var(--circle-ease, cubic-bezier(0.22, 1, 0.36, 1));
  pointer-events: none;
  z-index: 0;
}

.gs-site-header .gs-lang-label {
  position: relative;
  z-index: 1;
}

.gs-site-header .gs-header-middle .gs-header-language:hover,
.gs-site-header .gs-header-middle .gs-header-language:focus-visible {
  color: #0c0e10 !important;
}

.gs-site-header .gs-header-middle .gs-header-language:hover .gs-lang-flair,
.gs-site-header .gs-header-middle .gs-header-language:focus-visible .gs-lang-flair {
  transform: scale(1.15);
}

/* Menu toggle button inside the same unified bar */
.gs-site-header .gs-header-middle .gs-site-menu-toggle {
  gap: 13px;
  padding: 0 20px 0 18px;
  color: #f5f7f6 !important;
  transition: color 0.25s ease, background-color 0.28s ease;
}

.gs-site-header .gs-header-middle .gs-site-menu-toggle:hover,
.gs-site-header .gs-header-middle .gs-site-menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
}

body.gs-global-menu-open .gs-site-header .gs-header-middle .gs-site-menu-toggle {
  color: #ffffff !important;
}

/* Masked vertical text roll: Menu <-> Close */
.gs-site-header .gs-menu-word-wrap {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  line-height: 1.25;
  height: 1.25em;
  vertical-align: middle;
}

.gs-site-header .gs-menu-word {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.gs-site-header .gs-menu-word--open {
  transform: translateY(0);
  opacity: 1;
}

.gs-site-header .gs-menu-word--close {
  transform: translateY(115%);
  opacity: 0;
  color: var(--green, #b6f419);
}

body.gs-global-menu-open .gs-site-header .gs-menu-word--open {
  transform: translateY(-115%);
  opacity: 0;
}

body.gs-global-menu-open .gs-site-header .gs-menu-word--close {
  transform: translateY(0);
  opacity: 1;
}

/* Architectural 2-line hamburger -> crisp lime X */
.gs-site-header .gs-menu-lines {
  width: 18px;
  height: 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.gs-site-header .gs-menu-lines i {
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  width: 100%;
  display: block;
  transform-origin: center;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease;
}

.gs-site-header .gs-menu-lines i:last-child {
  width: 72%;
}

.gs-site-header .gs-site-menu-toggle:hover .gs-menu-lines i:last-child,
.gs-site-header .gs-site-menu-toggle:focus-visible .gs-menu-lines i:last-child {
  width: 100%;
  background-color: var(--green, #b6f419);
}

.gs-site-header .gs-site-menu-toggle:hover .gs-menu-lines i:first-child,
.gs-site-header .gs-site-menu-toggle:focus-visible .gs-menu-lines i:first-child {
  background-color: var(--green, #b6f419);
}

body.gs-global-menu-open .gs-site-header .gs-menu-lines i {
  width: 100%;
  background-color: var(--green, #b6f419);
}

body.gs-global-menu-open .gs-site-header .gs-menu-lines i:first-child {
  transform: translateY(4.7px) rotate(45deg);
}

body.gs-global-menu-open .gs-site-header .gs-menu-lines i:last-child {
  transform: translateY(-4.7px) rotate(-45deg);
}

/* ==========================================================================
   Editorial Fullscreen Global Menu Overlay
   ========================================================================== */
.gs-site-menu {
  position: fixed;
  inset: 0;
  z-index: 225;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 14, 0.96);
  backdrop-filter: blur(32px) saturate(1.1);
  -webkit-backdrop-filter: blur(32px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.42s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.34s ease,
              visibility 0.42s;
}

body.gs-global-menu-open .gs-site-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0% 0);
  transition: clip-path 0.58s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.32s ease,
              visibility 0s;
}

.gs-site-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 82% 18%, rgba(182, 244, 25, 0.1), transparent 65%),
    radial-gradient(ellipse 45% 40% at 14% 86%, rgba(182, 244, 25, 0.05), transparent 65%);
}

.gs-site-menu__inner {
  width: min(1080px, calc(100% - 64px));
  position: relative;
  z-index: 1;
  padding: clamp(92px, 11vh, 128px) 0 clamp(36px, 5vh, 56px);
}

.gs-site-menu__links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.gs-site-menu__links li {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.gs-site-menu__links li::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--green, #b6f419);
  transform: scaleX(0);
  transform-origin: 0% 50%;
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

[dir="rtl"] .gs-site-menu__links li::after {
  transform-origin: 100% 50%;
}

.gs-site-menu__links li:hover::after,
.gs-site-menu__links li:focus-within::after {
  transform: scaleX(1);
}

.gs-site-menu__links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(14px, 2.2vh, 22px) 0;
  color: #f5f7f6;
  text-decoration: none;
  font: 500 clamp(28px, 4.6vw, 62px)/1.22 "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(105%);
  transition: transform 0.56s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              color 0.25s ease,
              padding-inline-start 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .gs-site-menu__links a {
  letter-spacing: 0;
  line-height: 1.3;
}

body.gs-global-menu-open .gs-site-menu__links a {
  opacity: 1;
  transform: translateY(0);
}

body.gs-global-menu-open .gs-site-menu__links li:nth-child(1) a { transition-delay: 0.08s, 0.08s, 0s, 0s; }
body.gs-global-menu-open .gs-site-menu__links li:nth-child(2) a { transition-delay: 0.125s, 0.125s, 0s, 0s; }
body.gs-global-menu-open .gs-site-menu__links li:nth-child(3) a { transition-delay: 0.17s, 0.17s, 0s, 0s; }
body.gs-global-menu-open .gs-site-menu__links li:nth-child(4) a { transition-delay: 0.215s, 0.215s, 0s, 0s; }
body.gs-global-menu-open .gs-site-menu__links li:nth-child(5) a { transition-delay: 0.26s, 0.26s, 0s, 0s; }

/* Editorial sibling dimming on hover for crisp focus */
.gs-site-menu__links:hover a {
  opacity: 0.34;
}

.gs-site-menu__links a:hover,
.gs-site-menu__links a:focus-visible {
  opacity: 1;
  color: #ffffff;
  padding-inline-start: 16px;
}

.gs-site-menu__link-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: rgba(245, 247, 246, 0.45);
  transition: color 0.25s ease;
}

.gs-site-menu__links a:hover .gs-site-menu__link-meta,
.gs-site-menu__links a:focus-visible .gs-site-menu__link-meta {
  color: var(--green, #b6f419);
}

.gs-site-menu__arrow {
  width: 22px;
  height: 22px;
  opacity: 0;
  transform: translate(-8px, 6px);
  transition: opacity 0.28s ease, transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .gs-site-menu__arrow {
  transform: scaleX(-1) translate(-8px, 6px);
}

.gs-site-menu__links a:hover .gs-site-menu__arrow,
.gs-site-menu__links a:focus-visible .gs-site-menu__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

[dir="rtl"] .gs-site-menu__links a:hover .gs-site-menu__arrow,
[dir="rtl"] .gs-site-menu__links a:focus-visible .gs-site-menu__arrow {
  transform: scaleX(-1) translate(0, 0);
}

.gs-site-menu__bottom {
  margin-top: clamp(24px, 4vh, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

body.gs-global-menu-open .gs-site-menu__bottom {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}

.gs-site-menu__footer {
  margin: 0;
  color: #9ca6b5;
  font: 400 13.5px/1.7 "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;
}

.gs-site-menu__actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.gs-site-menu__cta {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid rgba(182, 244, 25, 0.55);
  background: rgba(182, 244, 25, 0.12);
  color: var(--green, #b6f419);
  text-decoration: none;
  font: 500 13px/1.2 "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.gs-site-menu__cta:hover,
.gs-site-menu__cta:focus-visible {
  background: var(--green, #b6f419);
  color: #0c0e10;
}

body.gs-global-menu-open {
  overflow: hidden;
}

.gs-site-header :focus-visible,
.gs-site-menu :focus-visible {
  outline: 2px solid var(--green, #b6f419);
  outline-offset: 4px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 760px) {
  .gs-site-header.o-header {
    padding: 16px 16px !important;
  }

  .gs-site-header .gs-header-grid {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .gs-site-header .gs-header-action {
    display: none !important;
  }

  .gs-site-header .gs-header-middle {
    padding: 4px;
    gap: 2px;
    justify-self: end;
  }

  .gs-site-header .gs-header-divider {
    height: 16px;
  }

  .gs-site-header .gs-header-middle .gs-header-language,
  .gs-site-header .gs-header-middle .gs-site-menu-toggle {
    height: 38px;
  }

  .gs-site-header .gs-header-middle .gs-header-language {
    min-width: 60px;
    padding: 0 13px;
    font-size: 14px;
  }

  .gs-site-header .gs-header-middle .gs-site-menu-toggle {
    padding: 0 14px 0 12px;
    gap: 9px;
    font-size: 14px;
  }

  .gs-site-header .gs-menu-lines {
    width: 15px;
    height: 10px;
  }

  .gs-site-menu__inner {
    width: calc(100% - 40px);
  }

  .gs-site-menu__links a {
    padding: 16px 0;
  }

  .gs-site-menu__cta {
    display: inline-flex;
  }
}

@media (max-width: 390px) {
  .gs-site-header.o-header {
    padding-inline: 12px !important;
  }

  .gs-site-header .gs-header-middle .gs-header-language {
    min-width: 54px;
    padding: 0 11px;
    font-size: 14px;
  }

  .gs-site-header .gs-header-middle .gs-site-menu-toggle {
    padding: 0 12px 0 10px;
    gap: 7px;
    font-size: 14px;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .gs-site-header *,
  .gs-site-menu,
  .gs-site-menu * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .gs-site-menu {
    clip-path: none !important;
  }

  .gs-site-menu__links a,
  .gs-site-menu__bottom {
    transform: none !important;
  }
}

/* Keep the complete header synchronized with the existing scroll controller. */
.gs-site-header.o-header.is-hidden { transform: translate3d(0,-120%,0) !important; opacity: 1 !important; visibility: visible !important; }
.gs-site-header.o-header.is-hidden .gs-header-grid * { pointer-events: none !important; }
.gs-site-header .gs-header-brand .gs-brand-header { width: clamp(112px,13vw,180px); height: auto; }
