:root {
  color-scheme: dark;
  --background: #27364b;
  --background-deep: #202d40;
  --surface: #2b3b52;
  --foreground: #f6f5f1;
  --muted: rgba(246, 245, 241, .66);
  --line: rgba(246, 245, 241, .17);
  --accent: #c8d4c5;
  --heading-muted: rgba(246, 245, 241, .47);
  --font: "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--background-deep); }
body {
  margin: 0;
  width: min(100%, 480px);
  margin-inline: auto;
  background: var(--background-deep);
  color: var(--foreground);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 480px);
  padding: 25px clamp(24px, 5.2vw, 84px);
  border-bottom: 1px solid rgba(246, 245, 241, .1);
  background: rgba(32, 45, 64, .62);
  backdrop-filter: blur(18px);
}
.logo {
  justify-self: start;
  color: inherit;
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.075em;
  text-decoration: none;
}
.primary-nav { display: flex; gap: clamp(24px, 4vw, 60px); }
.primary-nav a,
.site-footer > a:last-child {
  position: relative;
  color: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  opacity: .82;
  transition: opacity .2s ease;
}
.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.primary-nav a:hover { opacity: 1; }
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav .language-link {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--accent);
  opacity: 1;
}
.header-note {
  justify-self: end;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .07em;
}

.hero {
  --hero-image-offset: 125px;
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 760px;
  height: 100svh;
  place-items: center;
  overflow: hidden;
  background: var(--background);
}
.hero-picture,
.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-picture { display: block; background: linear-gradient(180deg, #283746 0%, #2c3b49 65%, #3b4856 100%); }
.hero-image {
  position: absolute;
  top: var(--hero-image-offset);
  left: 0;
  width: 100%;
  height: calc(100% - var(--hero-image-offset));
  object-fit: cover;
  object-position: center 65%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%);
  mask-image: linear-gradient(to bottom, transparent, #000 9%);
}
.hero-shade {
  background: linear-gradient(180deg, rgba(18, 27, 42, .36), rgba(18, 27, 42, 0) 42%);
}
.hero-copy {
  position: absolute;
  z-index: 1;
  top: 94px;
  left: 50%;
  width: calc(100% - 34px);
  margin: 0;
  text-align: center;
  transform: translateX(-50%);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-copy > .eyebrow { justify-content: center; margin-bottom: 22px; color: rgba(255,255,255,.82); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(200, 212, 197, .55); }
.hero h1 {
  margin: 0;
  font-size: clamp(28px, 2.9vw, 42px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.title-secondary { display: block; color: var(--heading-muted); }
.hero-intro {
  max-width: 340px;
  margin: 10px auto 0;
  color: rgba(255,255,255,.83);
  font-size: clamp(11px, .9vw, 13px);
  font-weight: 300;
  line-height: 1.65;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 9px 18px;
  border: 1px solid rgba(246, 245, 241, .65);
  border-radius: 99px;
  background: rgba(32, 45, 64, .38);
  color: var(--foreground);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.hero-cta:hover, .hero-cta:focus-visible { border-color: var(--accent); background: rgba(32, 45, 64, .8); }
.section { position: relative; padding: clamp(100px, 13vw, 190px) clamp(24px, 9vw, 144px); }
.section-inner { width: min(100%, 1250px); margin: 0 auto; }
.work-section { background: var(--background-deep); }
.section-heading { display: flex; flex-direction: column; align-items: center; gap: 26px; margin-bottom: clamp(48px, 8vw, 100px); text-align: center; }
.section-heading h2 { width: 100%; min-width: 0; }
.section-kicker { justify-content: center; color: var(--accent); }
.section-heading h2,
.contact-inner h2 {
  margin: 0;
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.075em;
}
.section-heading h2 { font-size: clamp(36px, 4.2vw, 56px); }
.section-lead {
  max-width: 610px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
}
.service-list { display: grid; gap: 60px; }
.service-card {
  padding: 0 8px;
  text-align: center;
}
.service-copy { width: min(100%, 350px); margin: 0 auto; }
.service-copy h3 { margin: 0; font-size: clamp(24px, 2.8vw, 34px); font-weight: 400; line-height: 1.2; letter-spacing: -.04em; }
.service-copy p { margin: 16px auto 0; color: var(--muted); font-size: 14px; font-weight: 300; line-height: 1.8; }
.inline-service-link { color: var(--foreground); text-decoration: none; }
.inline-service-link:hover, .inline-service-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 5px 0;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}
.service-cta::after { margin-left: 7px; content: "\2197\FE0E"; font-family: Arial, sans-serif; transition: transform .2s ease; }
.service-cta:hover::after, .service-cta:focus-visible::after { transform: translate(2px, -2px); }
.service-cta:hover, .service-cta:focus-visible { color: var(--foreground); }


.about-section { padding-top: clamp(80px, 8vw, 120px); padding-bottom: clamp(72px, 7vw, 110px); background: var(--background-deep); }
.about-layout { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.about-copy { width: 100%; min-width: 0; }
.about-label { min-height: 0; }
.about-mark { display: none; }
.about-copy h2 { width: 100%; max-width: 850px; margin: 0 auto; font-size: clamp(27px, 2.8vw, 38px); font-weight: 400; line-height: 1.3; letter-spacing: -.045em; }
.about-copy p { max-width: 690px; margin: 32px auto 0; color: var(--muted); font-size: 15px; font-weight: 300; line-height: 1.9; }
.about-copy p + p { margin-top: 17px; }

.contact-section { padding-top: clamp(76px, 8vw, 120px); padding-bottom: 0; background: #202d40; }
.contact-inner { width: min(100%, 1050px); margin: 0 auto; padding: 0 0 28px; text-align: center; }
.contact-inner .eyebrow { justify-content: center; margin-bottom: 25px; }
.contact-inner h2 { font-size: clamp(42px, 4.8vw, 60px); }
.contact-lead { max-width: 670px; margin: 28px auto 0; color: var(--muted); font-size: 15px; font-weight: 300; line-height: 1.8; }
.contact-last { margin: 15px 0 0; color: rgba(246,245,241,.88); font-size: 14px; }
.contact-button {
  display: inline-flex;
  align-items: center;
  margin-top: 36px;
  padding: 15px 24px;
  border: 1px solid rgba(246,245,241,.56);
  border-radius: 99px;
  color: var(--foreground);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.contact-button:hover { border-color: var(--accent); background: var(--accent); color: var(--background-deep); }
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px clamp(24px, 9vw, 144px) 28px;
  border-top: 1px solid var(--line);
  background: var(--background-deep);
}
.site-footer .logo { font-size: 23px; }
.site-footer span { color: var(--muted); font-size: 10px; letter-spacing: .05em; text-align: center; }
.site-footer > a:last-child { justify-self: end; }
.client-strip { margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.client-strip > .eyebrow { font-size: 9px; letter-spacing: .13em; }
.client-regions { max-width: 390px; margin: 15px auto 0; color: var(--muted); font-size: 12.5px; font-weight: 300; line-height: 1.75; text-align: center; }
.client-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 28px 24px;
  max-width: 720px;
  margin: 30px auto 0;
}
.client-logos img {
  display: block;
  width: 100%;
  height: 32px;
  object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .65;
  transition: opacity .2s ease;
}
.client-logos > img { width: 75%; justify-self: center; }
.client-logos a { display: flex; align-items: center; justify-content: center; min-width: 0; }
.client-logos a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.client-logos img:hover { opacity: .95; }
.about-cta {
  width: min(100%, 760px);
  margin: clamp(44px, 5vw, 70px) auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.about-cta .eyebrow { justify-content: center; }
.about-cta h3 {
  margin: 22px 0 0;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.04em;
}
.about-cta-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 34px; margin-top: 32px; }
.about-cta-links a {
  color: var(--foreground);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  transition: border-color .2s ease;
}
.about-cta-links a:hover { border-color: var(--foreground); }

/* Keep the same compact type scale on desktop and phone. */
  html { scroll-padding-top: 78px; }
  .site-header { grid-template-columns: 1fr auto; padding: 19px 20px; }
  .logo { font-size: 25px; }
  .primary-nav { grid-column: 2; gap: 15px; }
  .primary-nav a { font-size: 9px; }
  .header-note { display: none; }
  .section { padding: 94px 24px; }
  .about-section { padding-top: 72px; padding-bottom: 72px; }
  .section-heading { display: flex; gap: 14px; margin-bottom: 56px; }
  .section-heading h2 { font-size: clamp(36px, 10vw, 42px); }
  .section-lead { margin: 0 auto; font-size: 13px; }
  .service-card { padding: 0 8px; }
  .service-copy h3 { font-size: clamp(23px, 6vw, 28px); line-height: 1.22; }
  .service-copy p { margin-top: 14px; font-size: 12px; line-height: 1.75; }
  .service-cta { margin-top: 16px; font-size: 10px; }
  .about-layout { gap: 24px; }
  .about-copy h2 { font-size: clamp(25px, 7vw, 30px); }
  .about-copy p { margin-top: 22px; font-size: 13px; line-height: 1.8; }
  .contact-section { padding: 72px 24px 0; }
  .contact-inner { padding: 15px 0 22px; }
  .contact-inner h2 { font-size: clamp(38px, 9.5vw, 46px); }
  .client-strip { margin-top: 48px; padding-top: 22px; }
  .client-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; margin-top: 24px; }
  .client-logos img { height: 32px; }
  .about-cta { margin-top: 50px; padding-top: 30px; }
  .about-cta h3 { margin-top: 18px; }
  .about-cta-links { flex-direction: column; align-items: center; gap: 18px; margin-top: 26px; }
  .about-cta-links a { font-size: 11px; }
  .contact-lead { margin-top: 22px; font-size: 13px; line-height: 1.75; }
  .contact-last { font-size: 12px; line-height: 1.6; }
  .site-footer { grid-template-columns: 1fr auto; gap: 14px; padding: 18px 24px 26px; }
  .site-footer .logo { font-size: 21px; }
  .site-footer span { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .site-footer span, .site-footer > a:last-child { font-size: 9px; }

/* Keep the Arabic page in the same layout with a font and rhythm suited to RTL text. */
[dir="rtl"] { --font: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif; }
[dir="rtl"] .site-header,
[dir="rtl"] .site-footer { direction: ltr; }
[dir="rtl"] .primary-nav { direction: rtl; }
[dir="rtl"] .logo { font-family: "Manrope", sans-serif; direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .site-footer span { text-align: right; }
[dir="rtl"] .site-footer > a:last-child { direction: rtl; }
[dir="rtl"] .service-cta::after { margin-right: 7px; margin-left: 0; content: "\2196\FE0E"; }
[dir="rtl"] .primary-nav .language-link { padding-right: 10px; padding-left: 0; border-right: 1px solid var(--line); border-left: 0; }
[dir="rtl"] .eyebrow,
[dir="rtl"] .primary-nav a,
[dir="rtl"] .service-cta,
[dir="rtl"] .contact-button { letter-spacing: 0; }
[dir="rtl"] .hero h1,
[dir="rtl"] .section-heading h2,
[dir="rtl"] .service-copy h3,
[dir="rtl"] .about-copy h2,
[dir="rtl"] .about-cta h3,
[dir="rtl"] .contact-inner h2 { font-weight: 500; line-height: 1.5; letter-spacing: 0; }
[dir="rtl"] .hero-intro,
[dir="rtl"] .section-lead,
[dir="rtl"] .service-copy p,
[dir="rtl"] .about-copy p,
[dir="rtl"] .contact-lead,
[dir="rtl"] .contact-last { font-weight: 400; line-height: 1.9; }

/* Keep desktop at the same type scale and rhythm as the phone layout. */
  .hero h1,
  .section-heading h2,
  .service-copy h3,
  .about-copy h2,
  .about-cta h3,
  .contact-inner h2 {
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.045em;
  }
  .hero-intro,
  .section-lead,
  .service-copy p,
  .about-copy p,
  .contact-lead,
  .contact-last {
    font-size: 12.5px;
    line-height: 1.7;
  }
  .hero .hero-intro { font-size: 11px; line-height: 1.5; }

/* Focused service pages use the same restrained type and spacing. */
.detail-page main { background: var(--background-deep); }
.detail-hero,
.detail-section { padding: 72px 24px; text-align: center; }
.detail-hero {
  padding-top: 132px;
  padding-bottom: 82px;
  background: linear-gradient(160deg, #27364b 0%, var(--background-deep) 100%);
}
.detail-section { border-top: 1px solid var(--line); }
.detail-page .eyebrow { justify-content: center; margin-bottom: 22px; }
.detail-page h1,
.detail-page h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.045em;
}
.detail-lead {
  max-width: 390px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.75;
}
.detail-lead a { color: var(--foreground); text-underline-offset: 3px; }
.detail-page .contact-button { margin-top: 28px; }
.detail-points { max-width: 390px; margin: 38px auto 0; }
.detail-points article { padding: 23px 8px; border-top: 1px solid var(--line); }
.detail-points h3 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.45; }
.detail-points p { margin: 10px auto 0; color: var(--muted); font-size: 12px; font-weight: 300; line-height: 1.75; }
.detail-contact { padding-bottom: 78px; }
.detail-email,
.detail-phone { display: block; width: fit-content; margin: 18px auto 0; color: var(--muted); font-size: 11px; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.detail-phone { margin-top: 10px; }
.detail-email:hover,
.detail-phone:hover { color: var(--foreground); border-color: var(--foreground); }
[dir="rtl"] .detail-page h1,
[dir="rtl"] .detail-page h2 { font-weight: 500; line-height: 1.55; letter-spacing: 0; }
[dir="rtl"] .detail-lead,
[dir="rtl"] .detail-points p,
[dir="rtl"] .client-regions { font-weight: 400; line-height: 1.9; }

/* Use the font's natural Arabic letter and word spacing. */
[dir="rtl"] .client-strip > .eyebrow,
[dir="rtl"] .site-footer span { letter-spacing: 0; }
[dir="rtl"] .hero h1,
[dir="rtl"] .section-heading h2,
[dir="rtl"] .service-copy h3,
[dir="rtl"] .about-copy h2,
[dir="rtl"] .about-cta h3,
[dir="rtl"] .contact-inner h2,
[dir="rtl"] .detail-page h1,
[dir="rtl"] .detail-page h2 {
  font-size: 18px;
  overflow-wrap: normal;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
}
[dir="rtl"] .section-heading { gap: 14px; }
[dir="rtl"] .section-lead { margin: 0 auto; }
[dir="rtl"] .about-copy p { margin-top: 18px; }
[dir="rtl"] .about-copy p + p { margin-top: 14px; }
[dir="rtl"] .contact-lead { margin-top: 16px; }
[dir="rtl"] .detail-page .eyebrow { margin-bottom: 16px; }
[dir="rtl"] .detail-lead { margin-top: 16px; }
@media (max-width: 360px) {
  .site-header { padding-inline: 15px; }
  .logo { font-size: 21px; }
  .primary-nav { gap: 8px; }
  .primary-nav a { font-size: 8px; }
  .primary-nav .language-link { padding-left: 7px; }
  [dir="rtl"] .primary-nav .language-link { padding-right: 7px; padding-left: 0; }
  .section { padding-inline: 19px; }
  .hero-copy { width: calc(100% - 28px); }
  .detail-hero,
  .detail-section { padding-right: 19px; padding-left: 19px; }
}

@media (max-width: 480px) {
  .hero { min-height: 0; height: max(100svh, calc(270px + 134vw)); }
  .hero-image {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    transform: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 5%);
    mask-image: linear-gradient(to bottom, transparent, #000 5%);
  }
  .hero-copy { top: 88px; }
  .hero-cta { margin-top: 12px; }
  .detail-hero { padding-top: 112px; }
}

@media (max-width: 360px) {
  .hero-copy { top: 78px; }
}

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