/* ==========================================================
   MAW FOR DESIGN — styles
   Brand colors are CSS variables, overridden from content/site.json
   ========================================================== */

/* Fonts: place licensed files in /fonts (see README). Missing files fall back gracefully. */
@font-face { font-family: "Al Jazeera Arabic"; font-weight: 300; font-display: swap;
  src: local("Al Jazeera Arabic Light"), url("../fonts/AlJazeeraArabic-Light.woff2") format("woff2"), url("../fonts/AlJazeeraArabic-Light.ttf") format("truetype"); }
@font-face { font-family: "Al Jazeera Arabic"; font-weight: 400; font-display: swap;
  src: local("Al Jazeera Arabic Regular"), url("../fonts/AlJazeeraArabic-Regular.woff2") format("woff2"), url("../fonts/AlJazeeraArabic-Regular.ttf") format("truetype"); }
@font-face { font-family: "Al Jazeera Arabic"; font-weight: 700; font-display: swap;
  src: local("Al Jazeera Arabic Bold"), url("../fonts/AlJazeeraArabic-Bold.woff2") format("woff2"), url("../fonts/AlJazeeraArabic-Bold.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-weight: 300 700; font-display: swap;
  src: local("Montserrat"), url("../fonts/Montserrat-Variable.woff2") format("woff2"); }

:root {
  --navy: #102D3F;
  --gold: #BC9662;
  --beige: #F7EDE2;
  --navy-90: rgba(16, 45, 63, .9);
  --ink: #102D3F;
  --font-ar: "Al Jazeera Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-en: "Montserrat", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --header-h: 72px;
  --hero-zoom: 28s;
  --reveal-y: 26px;
  --maxw: 1280px;
  --ease: cubic-bezier(.22, .7, .2, 1);
}
html[lang="ar"] { --font: var(--font-ar); }
html[lang="en"] { --font: var(--font-en); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-weight: 300; color: var(--ink);
  background: var(--navy); line-height: 1.8; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.7; }
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.ic { flex: none; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -60px; left: 12px; z-index: 200; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--maxw), 100% - 48px); margin-inline: auto; position: relative; z-index: 2; }

/* ---------- loader ---------- */
#loader { position: fixed; inset: 0; z-index: 300; background: var(--navy); display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s; }
#loader img { width: 120px; animation: pulse 1.6s ease-in-out infinite; }
#loader.done { opacity: 0; visibility: hidden; }
@keyframes pulse { 50% { opacity: .55; transform: scale(.97); } }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: clamp(16px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(16,45,63,.88), rgba(16,45,63,.72));
  backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid rgba(188,150,98,.16);
  transition: background .4s var(--ease), height .4s var(--ease);
}
.header.scrolled { background: rgba(16,45,63,.94); --header-h: 64px; }
.brand { justify-self: start; display: flex; align-items: center; }
.brand img { width: auto; object-fit: contain; max-height: calc(var(--header-h) - 14px); }
.nav { display: flex; gap: clamp(18px, 2.6vw, 44px); justify-self: center; }
.nav a { position: relative; font-size: .88rem; color: var(--gold); padding: 6px 2px; letter-spacing: .01em; white-space: nowrap; transition: color .3s; }
html[lang="en"] .nav a { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .35s var(--ease); }
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--gold); }
.lang { justify-self: end; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; color: var(--gold); font-size: .88rem; padding: 6px 4px; transition: color .3s; }
.lang:hover { color: #fff; }
html[lang="en"] .lang { font-size: .8rem; }
.burger { display: none; justify-self: end; background: none; border: 0; color: var(--gold); cursor: pointer; padding: 6px; }
.drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: rgba(16,45,63,.97); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .4s var(--ease); }
.drawer.open { opacity: 1; visibility: visible; transform: none; }
.drawer a { font-size: 1.35rem; color: #fff; }
.drawer a.active { color: var(--gold); }
.lang-m { margin-top: 14px; font-size: 1rem; }

/* ---------- shared section bits ---------- */
.section { position: relative; overflow: hidden; isolation: isolate; }
.bg-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--gold); font-size: 1.05rem; margin-bottom: 6px; }
.eyebrow i, .h-gold i, .mini-rule { display: inline-block; width: 52px; height: 1px; background: var(--gold); }
.eyebrow.center { justify-content: center; }
.eyebrow-latin { color: var(--gold); letter-spacing: .28em; font-size: .78rem; font-family: var(--font-en); font-weight: 500; }
.display { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.25; font-weight: 700; color: var(--navy); }
html[lang="en"] .display { font-weight: 600; letter-spacing: -.01em; }
.display.gold, .gold { color: var(--gold); }
.lead { font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 2; max-width: 40em; }
.lead.center { margin-inline: auto; text-align: center; }
.sec-head { text-align: center; padding-top: calc(var(--header-h) + clamp(28px, 5vh, 56px)); }
.mini-rule { width: 44px; margin-top: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 999px; padding: 13px 30px; font-size: .98rem; cursor: pointer; border: 1px solid var(--gold); transition: transform .35s var(--ease), background .35s, color .35s, box-shadow .35s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-gold { background: linear-gradient(135deg, #D7B98A, var(--gold) 55%, #A98450); color: var(--navy); font-weight: 700; box-shadow: 0 10px 30px -12px rgba(188,150,98,.8); }
.btn-gold:hover { box-shadow: 0 14px 36px -10px rgba(188,150,98,.95); }
.btn-outline { background: rgba(16,45,63,.55); color: #fff; backdrop-filter: blur(6px); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-lg { padding: 16px 38px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-pill { padding-block: 10px; padding-inline: 34px 10px; font-size: 1.05rem; }
.btn-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); }
.btn-lg .btn-ico { width: 30px; height: 30px; background: rgba(16,45,63,.12); }

.reveal { opacity: 0; transform: translateY(var(--reveal-y)); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { height: 100vh; height: 100svh; min-height: 560px; display: grid; place-items: center; background: var(--navy); }
.hero-bg { position: absolute; inset: -4%; z-index: -2; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  animation: kenburns var(--hero-zoom) ease-in-out infinite alternate;
  translate: var(--mx, 0) var(--my, 0); transition: translate 1.2s var(--ease); }
@keyframes kenburns { from { transform: scale(1.02) translate3d(-.6%, 0, 0); } to { transform: scale(1.12) translate3d(.8%, -1.2%, 0); } }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 50% 100%, rgba(16,45,63,.78), transparent 60%), linear-gradient(180deg, rgba(16,45,63,.7), transparent 28%, transparent 55%, rgba(16,45,63,.45)); }
.hero-content { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; padding: 0 20px; margin-top: 40vh; }
.eyebrow-brand { color: var(--gold); letter-spacing: .5em; font-size: .78rem; font-family: var(--font-en); font-weight: 500; text-indent: .5em; }
.scroll-hint { position: absolute; bottom: 26px; inset-inline: 0; margin-inline: auto; width: max-content; display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: .8rem; letter-spacing: .12em; }
.scroll-hint i { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }


/* hero: the image's objects float as separate layers on a stage that keeps the image's proportions */
.hero-bg { container-type: size; }
.hero-stage { --w: max(100cqw, 100cqh * 1.7768); position: absolute; width: var(--w); aspect-ratio: 1672 / 941;
  left: calc(50% - var(--w) / 2); top: calc(50% - var(--w) / 3.5536);
  animation: kenburns var(--hero-zoom) ease-in-out infinite alternate;
  translate: var(--mx, 0) var(--my, 0); transition: translate 1.2s var(--ease); }
.hero-stage .hero-media { animation: none; translate: none; z-index: 0; }
.hero-layer { position: absolute; z-index: 2; height: auto; max-width: none; pointer-events: none; will-change: transform;
  transform-origin: 50% 50%; animation: hero-float var(--fd) ease-in-out var(--fdl) infinite alternate; }
/* Objects float toward the viewer: they grow a little and rise by less than they grow,
   so each one always covers its own place in the photo and nothing behind it is ever uncovered. */
@keyframes hero-float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, var(--fy), 0) scale(var(--fs)); }
}
.hero-layer > img { display: block; width: 100%; height: 100%; max-width: none; }


/* about: the three texts share one size, one width and one starting edge */
.about-intro { max-width: 560px; }
.about-intro .lead, .about-mission p, .about-why p { font-size: 1.05rem; line-height: 2; max-width: 560px; }
.about-mission p { margin-inline-start: -64px; }   /* back under the icon, level with the other texts */
.about-mission > div { flex: 1; min-width: 0; }
.about-mission h3 { min-height: 46px; display: flex; align-items: center; }
/* body text blocks: justified, so both edges line up (centred texts and short labels stay as they are) */
.about-intro .lead, .about-mission p, .about-why p, .founder-text p:not(.eyebrow):not(.closing):not(.founder-role), .contact-form-col .lead {
  text-align: justify; text-align-last: start; text-justify: inter-word; hyphens: none; }
/* partners: the logos sit on the glass railing of the background photo itself (placed by placeRail()) */
.partners .carousel { position: absolute; margin: 0; padding: 0 calc(var(--rh, 90px) * .55); background: none; border: 0; box-shadow: none; backdrop-filter: none; border-radius: 0;
  left: var(--rx, 0); top: var(--ry, 60%); width: var(--rw, 100%); height: var(--rh, 90px); display: flex; align-items: center; }
.partners .car-view { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; padding: 0; overflow: visible; clip-path: inset(-60% 0 -20% 0);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.partners .rail-fill { position: absolute; z-index: -1; pointer-events: none; overflow: visible;
  left: var(--fx, 0); top: var(--fy, 0); width: var(--fw, 100%); height: var(--fh, 100%); }
.partners .car-track { gap: 0; align-items: center; height: 100%; }
.partners .plogo { width: calc(var(--rh, 90px) * 1.65); height: var(--rh, 90px); padding: 0 14px; background: none; border: 0; border-radius: 0; position: relative; transition: none; }
.partners .plogo::after { content: ""; position: absolute; right: 0; top: 18%; bottom: 18%; width: 1px; background: linear-gradient(transparent, rgba(255, 230, 190, .55), transparent); }
.partners .plogo:hover { transform: none; box-shadow: none; }
.partners .plogo img { width: 100%; height: calc(var(--rh, 90px) * .7); max-width: none; max-height: none; object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)) drop-shadow(0 0 8px rgba(6, 18, 26, .55)); transition: transform .4s var(--ease); }
.partners .plogo:hover img { transform: scale(1.08); }
.partners .car-btn { top: 50%; width: 38px; height: 38px; background: rgba(6, 16, 24, .72); border: 1.5px solid var(--gold); color: #fff; backdrop-filter: blur(6px); box-shadow: 0 0 12px rgba(255, 190, 110, .3); }
.partners .car-prev { left: 0; } .partners .car-next { right: 0; }
@media (max-width: 760px) {
  .partners .car-btn { width: 32px; height: 32px; }
}



/* service picker: a custom list that unfolds smoothly (native select lists cannot be styled or animated) */
.control select.native-hidden { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.pick-btn { width: 100%; display: flex; align-items: center; background: rgba(16,45,63,.72); border: 1px solid rgba(188,150,98,.5); border-radius: 10px;
  color: #fff; padding: 12px 14px; padding-inline-end: 40px; font-size: .92rem; text-align: start; cursor: pointer; backdrop-filter: blur(6px);
  transition: border-color .3s, box-shadow .3s, background .3s; }
.pick-btn.ph { color: rgba(255,255,255,.55); }
.pick-btn:focus-visible, .pick.open .pick-btn { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(188,150,98,.22); background: rgba(16,45,63,.9); }
.invalid .pick-btn { border-color: #e59a8a; }
.pick .f-ico { transition: transform .35s var(--ease), color .3s; }
.pick.open .f-ico { transform: rotate(45deg); }
.pick-list { position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: rgba(13, 37, 52, .97); border: 1px solid rgba(188,150,98,.45); border-radius: 14px;
  box-shadow: 0 22px 48px rgba(0,0,0,.45), 0 2px 0 rgba(255,255,255,.04) inset; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform-origin: top center; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97);
  clip-path: inset(0 0 100% 0 round 14px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), clip-path .5s var(--ease), visibility 0s .5s; }
.pick.open .pick-list { opacity: 1; visibility: visible; transform: none; clip-path: inset(0 0 0 0 round 14px); transition-delay: 0s; }
.pick-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: #f3ebe0; font-size: .92rem; cursor: pointer;
  opacity: 0; transform: translateY(-4px); transition: background .2s, color .2s, opacity .3s var(--ease), transform .35s var(--ease); }
.pick.open .pick-list li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 35ms + 80ms), calc(var(--i) * 35ms + 80ms), 0s, 0s; }
.pick-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0; transform: scale(.4); transition: .25s var(--ease); flex: none; }
.pick-list li:hover, .pick-list li.active { background: rgba(188,150,98,.16); color: #fff; }
.pick-list li[aria-selected="true"] { color: var(--gold); font-weight: 500; }
.pick-list li[aria-selected="true"]::before { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pick-list, .pick-list li { transition: none !important; clip-path: none; } }
/* founder: a clean cut-out photo, shown as is (no blending with the office behind it), grounded by a soft shadow */
.founder .founder-photo { mix-blend-mode: normal !important; position: relative; }
.founder-photo img { filter: drop-shadow(0 18px 30px rgba(16, 45, 63, .22)) drop-shadow(0 4px 8px rgba(16, 45, 63, .12)); }
/* drone navigation lights */
.drone-light { position: absolute; width: 4.4%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; }
.drone-light::before { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: 0; animation: drone-blink 1.6s steps(1, end) infinite; }
.drone-light.red::before { background: radial-gradient(circle, #fff 0 10%, #ff3020 22%, rgba(255, 40, 20, .45) 45%, transparent 72%); }
.drone-light.green::before { background: radial-gradient(circle, #fff 0 10%, #2dff6a 22%, rgba(40, 255, 110, .4) 45%, transparent 72%); animation-delay: .8s; }
.drone-light.strobe::before { background: radial-gradient(circle, #fff 0 16%, rgba(255, 255, 255, .55) 36%, transparent 72%); animation: drone-strobe 2.4s linear infinite; }
@keyframes drone-blink { 0% { opacity: 1; } 45% { opacity: 0; } }
@keyframes drone-strobe { 0%, 100% { opacity: 0; } 2% { opacity: 1; } 6% { opacity: 0; } 10% { opacity: 1; } 14% { opacity: 0; } }
/* nav bar over the photo: brighter links with a soft shade so they read on any sky */
.header::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; transition: opacity .4s;
  background: linear-gradient(180deg, rgba(11, 30, 42, .6), rgba(11, 30, 42, .25) 60%, transparent); }
.header.scrolled::before { opacity: 0; }
.header .nav a, .header .lang { color: #e6c491; font-weight: 500; text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 12px rgba(0, 0, 0, .35); }
.header .nav a:hover, .header .lang:hover { color: #fff; }
/* lake: moving glints of light across the water */
.hero-lake::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 214, 150, .5) 26px, transparent 32px 47px, rgba(255, 236, 200, .35) 50px, transparent 55px 80px),
              repeating-linear-gradient(180deg, transparent 0 3px, rgba(0, 0, 0, .85) 4px 6px);
  -webkit-mask-image: var(--lake-mask); mask-image: var(--lake-mask); -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  animation: lake-glint 6s linear infinite; }
@keyframes lake-glint { from { background-position: 0 0, 0 0; } to { background-position: 160px 0, 0 6px; } }
/* nav bar: transparent over the hero, soft navy glass after scrolling so it stays readable */
.header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent;
  transition: background .4s var(--ease), height .4s var(--ease), border-color .4s, backdrop-filter .4s; }
.header.scrolled { background: rgba(16,45,63,.78); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1); border-bottom-color: rgba(188,150,98,.16); }
/* hero: the city lights behind the floating objects shimmer gently, as if the view were live */
.hero-lights { position: absolute; z-index: 1; pointer-events: none; }
.hero-lights img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; }
.hero-lights .on { mix-blend-mode: screen; animation: city-on var(--d) ease-in-out var(--dl) infinite alternate; }
.hero-lights .off { animation: city-off var(--d) ease-in-out var(--dl) infinite alternate; }
@keyframes city-on { 0%, 40% { opacity: 0; } 70% { opacity: .55; } 100% { opacity: .85; } }
@keyframes city-off { 0%, 55% { opacity: 0; } 100% { opacity: .6; } }
/* Burj Khalifa: the red aviation warning light at the top of the spire */
.burj-beacon { position: absolute; z-index: 3; width: 2.4%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 4%, #ffd9d2 7%, #ff2a14 13%, rgba(255, 40, 20, .5) 26%, rgba(255, 30, 10, .14) 46%, rgba(255, 30, 10, 0) 70%);
  opacity: 0; animation: beacon 2.2s linear infinite; }
.burj-beacon::after { content: ""; position: absolute; left: -60%; right: -60%; top: 48%; height: 4%; border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 70, .7), transparent); }
@keyframes beacon { 0% { opacity: 0; transform: scale(.5); } 3% { opacity: 1; transform: scale(1); } 10% { opacity: .1; transform: scale(.75); }
  15% { opacity: .95; transform: scale(.95); } 24% { opacity: 0; transform: scale(.55); } 100% { opacity: 0; transform: scale(.5); } }
/* lake: a slow, flowing ripple on the water's reflections */
.hero-lake { position: absolute; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-lake img { width: 100%; height: 100%; max-width: none; display: block; filter: url(#lake-ripple); }
@media (prefers-reduced-motion: reduce) { .hero-lights, .burj-beacon, .hero-lake, .drone-light { display: none; } }
/* contact: icons centred in their gold circles (.info span made them block) */
.info .info-ico { display: grid; }
/* phone field: browsers force tel inputs to LTR, so keep the room for the icon on the icon's side */
html[dir="rtl"] .control input[type="tel"] { padding-left: 40px; padding-right: 14px; text-align: right; }
html[dir="ltr"] .control input[type="tel"] { padding-left: 14px; padding-right: 40px; }

/* ---------- about ---------- */
.about { min-height: 100vh; display: flex; flex-direction: column; background: var(--beige); }
.about .bg-media { object-position: 30% 40%; }
.about-grad { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(to bottom, rgba(247,237,226,0) 0%, rgba(247,237,226,0) 45%, rgba(247,237,226,.55) 62%, rgba(247,237,226,.92) 100%),
  linear-gradient(to left, rgba(247,237,226,.94) 0%, rgba(247,237,226,.72) 40%, transparent 68%); }
html[dir="ltr"] .about-grad { background:
  linear-gradient(to bottom, rgba(247,237,226,0) 0%, rgba(247,237,226,0) 45%, rgba(247,237,226,.55) 62%, rgba(247,237,226,.92) 100%),
  linear-gradient(to right, rgba(247,237,226,.94) 0%, rgba(247,237,226,.72) 40%, transparent 68%); }
.about-top { flex: 1; display: flex; align-items: center; padding-top: calc(var(--header-h) + 36px); padding-bottom: 36px; }
.about-intro { max-width: 520px; }
.about-intro .display { margin: 4px 0 18px; }
.about-band { background: rgba(247,237,226,.84); backdrop-filter: blur(8px); border-block: 1px solid rgba(188,150,98,.25); }
.about-band-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; align-items: center; padding-block: 26px; }
.about-mission { display: flex; align-items: flex-start; gap: 18px; padding-inline-end: 40px; border-inline-end: 1px solid rgba(188,150,98,.5); }
.mission-ico { color: var(--gold); margin-top: 6px; }
.h-gold { display: flex; align-items: center; gap: 16px; color: var(--gold); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 700; margin-bottom: 8px; }
.h-gold.center { justify-content: center; margin-bottom: 18px; font-size: 1.6rem; }
.h-gold.center i { width: clamp(60px, 9vw, 190px); }
.about-mission p, .about-why p { font-size: 1.02rem; line-height: 2; max-width: 34em; }
.about-values { padding-inline-start: 40px; }
.about-values ul { display: flex; justify-content: center; align-items: stretch; }
.about-values li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--gold); text-align: center; padding-inline: 12px; font-size: .95rem; }
.about-values li span { color: var(--navy); font-weight: 400; }
.about-values li + li { border-inline-start: 1px solid rgba(188,150,98,.5); }
.about-why { padding-block: 34px 56px; }
html[dir="rtl"] .about-why { text-align: start; }

/* ---------- founder ---------- */
.founder { min-height: 100vh; display: flex; align-items: center; background: var(--beige); }
.founder::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(247,237,226,.72) 0%, rgba(247,237,226,.55) 45%, rgba(247,237,226,.12) 100%); }
html[dir="ltr"] .founder::after { background: linear-gradient(90deg, rgba(247,237,226,.72) 0%, rgba(247,237,226,.55) 45%, rgba(247,237,226,.12) 100%); }
.founder-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 80px); align-items: end; padding-top: calc(var(--header-h) + 20px); }
.founder-text { align-self: center; padding-bottom: 56px; padding-inline-start: 36px; border-inline-start: 1px solid rgba(188,150,98,.65); }
.founder-text .display { margin: 2px 0 22px; }
.founder-text p { font-size: clamp(.98rem, 1.15vw, 1.1rem); line-height: 2.1; margin-bottom: 14px; max-width: 40em; }
.founder-text .closing { font-weight: 700; margin-top: 18px; }
.signature { margin-top: 10px; max-width: 360px; border-top: 1px solid rgba(188,150,98,.7); padding-top: 14px; }
.signature-name { font-size: 1.9rem; font-weight: 700; color: var(--navy); line-height: 1.4; margin: 0; }
.signature-img { height: 70px; width: auto; }
.founder-role { color: var(--gold); font-size: 1.05rem; margin: 2px 0 0 !important; }
.founder .container { z-index: auto; } /* lets the photo blend with the background */
.founder-photo { margin: 0; mix-blend-mode: multiply; align-self: end; justify-self: center; width: min(520px, 100%); }
.founder-photo img { width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
/* photo sits on the physical left in Arabic (as in the approved design) */
html[dir="rtl"] .founder-photo { order: 2; }

/* ---------- services ---------- */
.services { min-height: 100vh; background: var(--navy); padding-bottom: 56px; }
.services .bg-media { object-position: 50% 30%; }
.services-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(247,237,226,.35) 0%, rgba(16,45,63,.15) 30%, rgba(16,45,63,.78) 72%, rgba(16,45,63,.92) 100%); }
.services .sec-head .eyebrow { color: var(--navy); font-weight: 700; }
.services .sec-head .eyebrow i { background: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 34px; }
.card { grid-column: span 3; position: relative; overflow: hidden; border-radius: 16px; background: rgba(16,45,63,.92); border: 1px solid rgba(188,150,98,.35); display: flex; flex-direction: column; min-height: 100%;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s; }
.card:nth-child(n+5) { grid-column: span 4; }
.card:hover, .card:focus-within { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 24px 50px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(188,150,98,.3); }
.card-img { position: relative; height: clamp(150px, 15vw, 210px); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-img img { transform: scale(1.08); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--navy) 100%); }
.card-body { position: relative; padding: 0 18px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: -26px; flex: 1; }
.card-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .5s var(--ease); }
.card:hover .card-ico { transform: rotate(-8deg) scale(1.06); }
.card h3 { color: #fff; font-size: 1.15rem; font-weight: 700; margin-top: 6px; line-height: 1.5; }
.card p { color: rgba(255,255,255,.82); font-size: .88rem; line-height: 1.8; flex: 1; }
.round-btn { margin-top: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); transition: .35s var(--ease); }
.round-btn:hover, .card:hover .round-btn { background: var(--gold); color: var(--navy); }
.services-cta, .partners-cta { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 28px; }
.services-cta i, .partners-cta i { flex: 1; max-width: 160px; height: 1px; background: rgba(188,150,98,.7); }

/* ---------- partners ---------- */
.partners { min-height: 100vh; background: var(--navy); display: flex; }
.partners-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 45% at 50% 22%, rgba(16,45,63,.82), transparent 75%), linear-gradient(180deg, rgba(16,45,63,.55), rgba(16,45,63,.05) 40%, rgba(16,45,63,.35)); }
.partners-in { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 56px; }
.partners .sec-head { color: #fff; }
.partners .display { color: #fff; }
.partners .eyebrow { color: var(--gold); }
.partners .lead { color: rgba(255,255,255,.92); }
.carousel { position: relative; margin-block: 44px; padding-inline: 70px; border-block: 1px solid rgba(215,185,138,.6);
  background: linear-gradient(180deg, rgba(16,45,63,.62), rgba(16,45,63,.78)); backdrop-filter: blur(10px); border-radius: 999px / 70px;
  box-shadow: 0 0 40px -6px rgba(215,185,138,.45), inset 0 0 30px rgba(215,185,138,.12); }
.car-view { direction: ltr; overflow: hidden; padding-block: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.car-view.manual { overflow-x: auto; scrollbar-width: none; }
.car-track { display: flex; gap: 22px; width: max-content; will-change: transform; direction: ltr; }
.plogo { flex: none; width: 168px; height: 88px; display: flex; align-items: center; justify-content: center; padding: 12px 18px; background: rgba(247,237,226,.96); border-radius: 14px; border: 1px solid rgba(188,150,98,.5); transition: transform .4s var(--ease), box-shadow .4s; }
.plogo:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 26px -10px rgba(0,0,0,.6); }
.plogo img { max-width: 136px; max-height: 62px; width: auto; height: auto; object-fit: contain; user-select: none; }
.car-btn { position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(16,45,63,.9); border: 1px solid var(--gold); color: var(--gold); z-index: 3; transition: .3s; }
.car-btn:hover { background: var(--gold); color: var(--navy); }
.car-prev { left: 16px; } .car-next { right: 16px; }

/* ---------- contact ---------- */
.contact { min-height: 100vh; background: var(--navy); display: flex; flex-direction: column; justify-content: space-between; }
.contact .bg-media { object-position: 70% 50%; }
.contact-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,45,63,.97) 0%, rgba(16,45,63,.92) 34%, rgba(16,45,63,.82) 58%, rgba(16,45,63,.1) 84%), linear-gradient(180deg, rgba(16,45,63,.55), transparent 25%, transparent 70%, rgba(16,45,63,.7)); }
/* layout is physically fixed (form left, photo right) in both languages, as in the approved design */
.contact-grid { direction: ltr; display: grid; grid-template-columns: minmax(300px, 1.05fr) minmax(280px, .9fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 56px); padding-top: calc(var(--header-h) + 36px); padding-bottom: 28px; flex: 1; align-items: center; }
.contact-grid > * { direction: var(--dir, rtl); }
html[dir="ltr"] .contact-grid > * { direction: ltr; }
.contact-form-col .display { margin: 2px 0 14px; }
.contact-form-col .lead { color: rgba(255,255,255,.9); font-size: .98rem; line-height: 2; margin-bottom: 22px; max-width: 28em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .85rem; color: #fff; margin-bottom: 6px; }
.field label b { color: var(--gold); }
.control { position: relative; }
.control input, .control select, .control textarea { width: 100%; background: rgba(16,45,63,.72); border: 1px solid rgba(188,150,98,.5); border-radius: 10px; color: #fff; padding: 12px 14px; padding-inline-end: 40px; font-size: .92rem; outline: none; transition: border-color .3s, box-shadow .3s, background .3s; backdrop-filter: blur(6px); }
.control textarea { resize: vertical; min-height: 120px; }
.control select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.control select option { color: var(--navy); }
.control input::placeholder, .control textarea::placeholder { color: rgba(255,255,255,.45); }
.control input:focus, .control select:focus, .control textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(188,150,98,.22); background: rgba(16,45,63,.9); }
.f-ico { position: absolute; inset-inline-end: 13px; top: 14px; color: var(--gold); pointer-events: none; }
.invalid .control input, .invalid .control select, .invalid .control textarea { border-color: #e59a8a; }
.err { display: block; min-height: 0; color: #f0b4a6; font-size: .78rem; margin-top: 4px; }
.form-status { margin-top: 14px; font-size: .92rem; }
.form-status p { margin-bottom: 12px; }
.form-status.ok { color: #cfe8c9; } .form-status.bad { color: #f0b4a6; }
.form-status.warn { background: rgba(16,45,63,.8); border: 1px solid rgba(188,150,98,.6); border-radius: 12px; padding: 14px 16px; color: #fff; }
.fallback { display: flex; gap: 10px; flex-wrap: wrap; }
.fallback .btn { padding: 10px 20px; font-size: .88rem; }

.contact-info-col { padding-inline-start: clamp(16px, 2.5vw, 40px); border-inline-start: 1px solid rgba(188,150,98,.55); color: #fff; }
.contact-info-col h3 { color: var(--gold); font-size: 1.5rem; font-weight: 700; }
.contact-info-col .sub { font-size: .88rem; color: rgba(255,255,255,.85); margin: 4px 0 20px; }
.info li { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.info-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(188,150,98,.92); color: var(--navy); }
.info b { display: block; font-size: .85rem; font-weight: 700; }
.info a, .info span { display: block; font-size: .85rem; color: rgba(255,255,255,.9); line-height: 1.7; }
.info a:hover { color: var(--gold); }
.follow { border-top: 1px solid rgba(188,150,98,.5); padding-top: 14px; }
.follow b { font-size: .88rem; }
.socs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.soc { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); transition: .3s; }
.soc:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 14px 20px 18px; color: rgba(255,255,255,.65); font-size: .78rem; border-top: 1px solid rgba(188,150,98,.18); background: rgba(16,45,63,.55); }
.footer img { height: 36px; width: auto; object-fit: contain; }

/* ---------- WhatsApp (brand colors, never green) ---------- */
.wa { position: fixed; z-index: 90; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px;
  background: rgba(16,45,63,.92); border: 1px solid var(--gold); color: #fff; font-size: .9rem; backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); transition: transform .35s var(--ease), box-shadow .35s; }
.wa:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -10px rgba(188,150,98,.55); }
.wa-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #D7B98A, var(--gold)); color: var(--navy); }
html[dir="rtl"] .wa { padding: 6px 6px 6px 18px; flex-direction: row; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(6, 1fr); }
  .card, .card:nth-child(n+5) { grid-column: span 3; }
  .card:last-child { grid-column: 2 / span 4; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .contact-form-col { grid-column: 1 / -1; }
  .contact-shade { background: linear-gradient(180deg, rgba(16,45,63,.94), rgba(16,45,63,.86)); }
}
@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .header { grid-template-columns: 1fr auto; }
  .nav, .header .lang { display: none; }
  .burger { display: block; }
  .about-band-in { grid-template-columns: 1fr; gap: 22px; }
  .about-mission { border-inline-end: 0; padding-inline-end: 0; border-bottom: 1px solid rgba(188,150,98,.5); padding-bottom: 22px; }
  .about-values { padding-inline-start: 0; }
  .about-grad { background: linear-gradient(180deg, rgba(247,237,226,.5), rgba(247,237,226,.82) 45%, rgba(247,237,226,.95)) !important; }
  .founder-grid { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 24px); }
  .founder-text { padding-inline-start: 18px; padding-bottom: 0; }
  html[dir="rtl"] .founder-photo { order: 0; }
  .founder-photo { width: min(380px, 80%); margin-top: 10px; }
  .carousel { padding-inline: 46px; border-radius: 40px; }
  .car-btn { width: 34px; height: 34px; } .car-prev { left: 6px; } .car-next { right: 6px; }
  .plogo { width: 132px; height: 74px; padding: 10px 12px; }
  .plogo img { max-width: 104px; max-height: 50px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card, .card:nth-child(n+5), .card:last-child { grid-column: span 1; }
  .card:last-child { grid-column: 1 / -1; }
  .card-img { height: 120px; } .card h3 { font-size: .98rem; } .card p { font-size: .8rem; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-col { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid rgba(188,150,98,.5); padding-top: 22px; }
  .about-values li { padding-inline: 4px; font-size: .78rem; }
  .about-values li .ic { width: 30px; height: 30px; }
  .hero-content { margin-top: 46vh; }
  .wa { left: 12px; bottom: 12px; padding: 5px; }
  .wa-label { display: none; }
  html[dir="rtl"] .wa { padding: 5px; }
  .services-cta i, .partners-cta i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- service cards with work (managed from the system) ---------- */
.card.has-work { cursor: pointer; }
.work-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(188,150,98,.16); border: 1px solid rgba(188,150,98,.6); color: #e6c491; transition: background .3s, color .3s; }
.work-pill b { font-weight: 700; opacity: .8; }
.card.has-work:hover .work-pill, .card.has-work:focus-visible .work-pill { background: var(--gold); color: var(--navy); }
.lb-service { position: absolute; top: 22px; inset-inline: 80px; text-align: center; color: var(--gold); font-size: .95rem; letter-spacing: .04em; }

/* viewer */
.lb { position: fixed; inset: 0; z-index: 400; background: rgba(6,16,24,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; grid-template-rows: 1fr auto; padding: 64px 72px 20px; opacity: 0; transition: opacity .3s var(--ease); }
.lb.in { opacity: 1; }
.lb-stage { display: grid; place-items: center; min-height: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-stage iframe { width: min(100%, calc((100vh - 200px) * 16 / 9)); aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; }
.lb-cap { color: #fff; text-align: center; padding-top: 14px; max-width: 760px; margin-inline: auto; }
.lb-cap b { display: block; font-size: 1.1rem; font-weight: 600; }
.lb-cap p { color: rgba(255,255,255,.78); font-size: .92rem; line-height: 1.9; margin-top: 4px; }
.lb-count { display: inline-block; margin-top: 6px; color: var(--gold); font-size: .8rem; letter-spacing: .1em; direction: ltr; }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(188,150,98,.7); background: rgba(16,45,63,.7); color: #fff; cursor: pointer; transition: background .3s, color .3s; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: var(--navy); }
.lb-close { top: 14px; right: 16px; }
.lb-nav { top: 50%; translate: 0 -50%; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
@media (max-width: 760px) { .lb { padding: 64px 10px 16px; } .lb-nav { top: auto; bottom: 18px; translate: none; width: 40px; height: 40px; } .lb-close { width: 40px; height: 40px; } }

/* contact form: field only bots fill in */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
