/* Top Lines — v2
   Charcoal ground, ember glow, cream/stone surfaces as rounded panels.
   Arabic set in Lama Sans, Latin in Droid Serif.
   Logical properties throughout so one stylesheet serves RTL (primary) and LTR. */

/* ---------- fonts (self-hosted) ----------
   Latin: Droid Serif (Apache 2.0). Arabic: Lama Sans by Baianat, limited to the
   Arabic ranges so Latin text inside Arabic pages still falls through to Droid Serif. */
@font-face { font-family: 'Droid Serif'; src: url('/assets/fonts/DroidSerif.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Droid Serif'; src: url('/assets/fonts/DroidSerif-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Droid Serif'; src: url('/assets/fonts/DroidSerif-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Droid Serif'; src: url('/assets/fonts/DroidSerif-BoldItalic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lama Sans'; src: url('/assets/fonts/LamaSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'Lama Sans'; src: url('/assets/fonts/LamaSans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'Lama Sans'; src: url('/assets/fonts/LamaSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'Lama Sans'; src: url('/assets/fonts/LamaSans-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }

:root {
  --charcoal: #1a1a1a;
  --charcoal-2: #232220;
  --ember: #e8612c;
  --terracotta: #a5361b;
  --warm-grey: #8a857c;
  --stone: #e6e0d6;
  --cream: #f2ede4;

  --ink: var(--charcoal);
  --ink-soft: #57534c;          /* secondary text on light (7.0:1 on cream) */
  --on-dark: var(--cream);
  --on-dark-soft: #aaa49a;      /* secondary text on charcoal (7.4:1) */
  --line-light: rgba(26, 26, 26, 0.14);
  --line-dark: rgba(242, 237, 228, 0.14);

  /* radius scale — every surface is rounded */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: clamp(24px, 1rem + 1.6vw, 40px);
  --r-pill: 999px;

  --font-latin: 'Droid Serif', Georgia, 'Times New Roman', serif;
  --font-arabic: 'Lama Sans', 'Droid Serif', Tahoma, sans-serif;
  --font: var(--font-latin);

  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3.5rem);
  --panel-m: clamp(0.5rem, 0.2rem + 0.9vw, 1rem);
  --max: 1360px;
  --header-h: 76px;
  --section-y: clamp(5rem, 3rem + 7vw, 10rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 240ms;

  --z-mcta: 35;
  --z-header: 40;
  --z-progress: 45;
  --z-menu: 100;
}

html[lang='ar'] { --font: var(--font-arabic); }
html[lang='en'] { --font: var(--font-latin); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink);
  background: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang='ar'] body { font-size: 1.0625rem; line-height: 1.85; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
::selection { background: var(--ember); color: var(--charcoal); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; inset-block-start: 0.75rem; inset-inline-start: 0.75rem; z-index: 200;
  padding: 0.75rem 1.25rem; border-radius: var(--r-pill); background: var(--ember); color: var(--charcoal); font-weight: 600;
  transform: translateY(-200%); transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 220ms var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- type ---------- */
.display {
  font-weight: 700;
  font-size: clamp(2.5rem, 1.3rem + 5.2vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display--hero { font-size: min(clamp(2.25rem, 1.2rem + 3.4vw, 4.5rem), 8.5svh); }
.h2 {
  font-weight: 600;
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h3 { font-weight: 600; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); line-height: 1.35; }
html[lang='ar'] .display { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
html[lang='ar'] .display--hero { font-size: min(clamp(2.25rem, 1.2rem + 3.4vw, 4.25rem), 8svh); }
html[lang='ar'] .h2 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
html[lang='ar'] .h3 { font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem); line-height: 1.5; font-weight: 600; }
.lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.3125rem);
  line-height: 1.7;
  max-width: 40rem;
  color: var(--on-dark-soft);
}
html[lang='ar'] .lead { font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.375rem); line-height: 1.85; }
.eyebrow {
  font-family: var(--font-latin);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ember);
}
html[lang='ar'] .eyebrow { font-family: var(--font-arabic); letter-spacing: 0; font-size: 1rem; font-weight: 600; }
.num {
  font-family: var(--font-latin);
  font-weight: 300;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--warm-grey);
}

/* Arabic heading + English second line, aligned to the far edge of its own block */
.heading-title { display: inline-flex; flex-direction: column; max-width: 100%; }
.title-en {
  display: block;
  align-self: flex-end;
  margin-block-start: 0.4em;
  font-family: var(--font-latin);
  font-size: max(0.8125rem, 0.22em);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--warm-grey);
}
.h3 .title-en, .svc-title .title-en { display: block; align-self: auto; font-size: 0.8125rem; font-weight: 400; margin-block-start: 0.25rem; }
html[dir='rtl'] .h3 .title-en, html[dir='rtl'] .svc-title .title-en { text-align: right; }
.heading { display: grid; gap: 1.25rem; justify-items: start; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
/* Light sections float on the charcoal page as rounded panels */
.section--cream, .section--stone {
  margin-inline: var(--panel-m);
  border-radius: var(--r-xl);
  isolation: isolate;
}
.section--cream { background: var(--cream); color: var(--ink); }
.section--stone { background: var(--stone); color: var(--ink); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }
:is(.section--cream, .section--stone) + :is(.section--cream, .section--stone) { margin-block-start: var(--panel-m); }
.section--cream .eyebrow, .section--stone .eyebrow { color: var(--terracotta); }
.section--cream .lead, .section--stone .lead { color: var(--ink-soft); }
/* Title, then its paragraph directly underneath on the same edge */
.section-head { display: grid; gap: 1.5rem; justify-items: start; margin-block-end: clamp(3rem, 2rem + 4vw, 5rem); }
.section-intro { color: var(--ink-soft); max-width: 46rem; font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem); line-height: 1.75; }
html[lang='ar'] .section-intro { font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.375rem); line-height: 1.85; }
.section--dark .section-intro, .sectors .section-intro { color: rgba(242, 237, 228, 0.82); }
.sectors .section-intro { max-width: none; }
html[lang] .heading--strong .eyebrow { font-weight: 700; }

/* ---------- glow (the one ember moment per view) ---------- */
.glow {
  position: absolute; pointer-events: none; z-index: 0;
  inset-block-start: -30%; inset-inline-end: -20%;
  width: min(1100px, 110vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 97, 44, 0.55), rgba(232, 97, 44, 0.18) 45%, rgba(232, 97, 44, 0) 72%);
  filter: blur(10px);
  translate: var(--gx, 0px) var(--gy, 0px);
}
.glow--hero { inset-block-start: -35%; inset-inline-end: auto; inset-inline-start: 20%; }
.glow--cta { inset-block-start: auto; inset-block-end: -60%; inset-inline-end: -10%; }
.glow--menu { inset-block-start: auto; inset-block-end: -40%; inset-inline-start: -30%; }

.ember-line { display: block; width: 48px; height: 3px; border-radius: var(--r-pill); background: var(--ember); transform-origin: left; }
html[dir='rtl'] .ember-line { transform-origin: right; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ember); --btn-fg: var(--charcoal); --btn-bd: var(--ember);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 52px; padding: 0.875rem 1.625rem;
  border: 1px solid var(--btn-bd); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 0.9375rem; line-height: 1.2; white-space: nowrap;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  touch-action: manipulation;
}
html[lang='ar'] .btn { font-size: 1.0625rem; font-weight: 700; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--btn-hover, var(--cream));
  transform: translateY(101%); transition: transform 460ms var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn .i-arrow { width: 18px; height: 18px; transition: transform 320ms var(--ease-out); }
html[dir='rtl'] .i-arrow { scale: -1 1; }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--cream); --btn-bd: var(--line-dark); --btn-hover: var(--cream); }
.btn--ghost:hover, .btn--ghost:focus-visible { --btn-fg: var(--charcoal); border-color: var(--cream); }
.btn--sm { min-height: 44px; padding: 0.5rem 1.25rem; font-size: 0.875rem; }
html[lang='ar'] .btn--sm { font-size: 1rem; }
.btn[aria-busy='true'] { opacity: 0.6; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--terracotta); font-weight: 600; border-block-end: 1px solid currentColor; padding-block: 0.25rem; }
.link .i-arrow { width: 16px; height: 16px; }
.round-btn {
  width: 48px; height: 48px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line-dark); color: var(--cream);
  transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { background: var(--cream); color: var(--charcoal); border-color: var(--cream); }
.round-btn--prev svg { rotate: 180deg; }

/* ---------- header: full-width solid bar, fixed and identical at every scroll position ---------- */
.site-header {
  position: fixed; inset-inline: 0; inset-block-start: 0; z-index: var(--z-header); color: var(--cream);
  background: rgba(26, 26, 26, 0.94); border-block-end: 1px solid var(--line-dark);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.header-bar { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; color: inherit; flex-shrink: 0; min-height: 44px; align-items: center; }
.header-bar .logo { width: clamp(150px, 8vw + 96px, 196px); }
.logo { width: clamp(124px, 9vw + 60px, 160px); height: auto; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 0.125rem; }
.nav a {
  display: inline-flex; align-items: center; min-height: 36px; padding-inline: 0.85rem; border-radius: var(--r-pill);
  font-size: 0.875rem; font-weight: 500; color: var(--on-dark-soft); transition: color var(--dur), background-color var(--dur);
}
html[lang='ar'] .nav a { font-size: 1rem; font-weight: 600; }
.header-bar .lang-switch { min-height: 36px; font-size: 0.875rem; }
html .header-bar .lang-switch[lang='ar'] { font-size: 1rem; }
.header-bar .btn--sm { min-height: 38px; padding: 0.375rem 1.1rem; }
.nav a:hover { color: var(--cream); background: rgba(242, 237, 228, 0.07); }
.nav a[aria-current='page'] { color: var(--charcoal); background: var(--cream); }
.header-actions { display: flex; align-items: center; gap: 0.375rem; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: 0.875rem;
  border-radius: var(--r-pill); font-size: 0.9375rem; font-weight: 500; transition: color var(--dur), background-color var(--dur);
}
.lang-switch[lang='ar'] { font-family: var(--font-arabic); font-size: 1.0625rem; font-weight: 600; }
.lang-switch[lang='en'] { font-family: var(--font-latin); }
.lang-switch:hover { color: var(--ember); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; color: inherit; }
.menu-btn:hover { background: rgba(242, 237, 228, 0.08); }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 1023px) {
  .nav, .header-cta { display: none; }
  .header-actions { margin-inline-start: auto; }
  .menu-btn { display: inline-flex; }
  .header-bar { gap: 1rem; }
  .header-bar .lang-switch { min-height: 44px; }
}

.scroll-progress { position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: var(--z-progress); pointer-events: none; }
.scroll-progress i { display: block; height: 100%; border-radius: 0 var(--r-pill) var(--r-pill) 0; background: var(--ember); transform: scaleX(0); transform-origin: left; }
html[dir='rtl'] .scroll-progress i { transform-origin: right; border-radius: var(--r-pill) 0 0 var(--r-pill); }
html:not(.motion) .scroll-progress { display: none; }

/* full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--charcoal); color: var(--cream);
  overflow: hidden auto; overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu-inner { position: relative; z-index: 1; min-height: 100%; display: flex; flex-direction: column; }
.menu-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu-top .logo { width: clamp(150px, 8vw + 96px, 196px); }
.menu-links { margin-block: auto; padding-block: 2rem; display: grid; gap: 0.5rem; }
.menu-links a {
  display: flex; align-items: baseline; gap: 1rem; padding: 0.75rem 1.25rem; border-radius: var(--r-lg);
  font-size: clamp(2rem, 1.2rem + 4vw, 3.5rem); font-weight: 600; line-height: 1.3;
  background: rgba(242, 237, 228, 0.04); transition: background-color var(--dur);
}
html[lang='ar'] .menu-links a { font-weight: 700; line-height: 1.5; }
.menu-links a:hover { background: rgba(242, 237, 228, 0.09); }
.menu-links a[aria-current='page'] { background: var(--ember); color: var(--charcoal); }
.menu-links a[aria-current='page'] .num { color: var(--charcoal); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-block: 1.5rem 2rem; color: var(--on-dark-soft); }
.menu-foot a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- hero: full-bleed build video with the copy on top ---------- */
/* The hero is taller than the screen: its inner layer sticks while scrolling
   plays the build, then the page moves on. --build (0→1) is set from JS. */
.hero { position: relative; background: var(--charcoal); color: var(--cream); --build: 0; }
.hero-sticky {
  position: relative; overflow: clip; isolation: isolate;
  min-height: 100svh; display: grid;
  padding-block: calc(var(--header-h) + 1rem) calc(2rem + var(--panel-m));
}
/* Pin only when the copy fits the screen; short landscape phones scroll normally */
@media (min-height: 700px) {
  .js.motion .hero { height: 240svh; }
  .js.motion .hero-sticky { position: sticky; inset-block-start: 0; height: 100svh; }
}

/* video layer: a rounded panel inset from the screen edge, like the other panels */
.hero-bg { position: absolute; inset: var(--panel-m); z-index: -1; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; background: #111; }
.hero-frames { position: absolute; inset: 0; transform-origin: 50% 60%; }
.hero-poster, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-poster--start, .hero-canvas { display: none; }
.js.motion .hero-poster--start { display: block; }
/* sharp still of the finished room; fades in over the last video frames (main.js) */
.js.motion .hero-poster--end { z-index: 1; opacity: 0; }
.js.motion .hero-canvas--wide { display: block; }
@media (orientation: portrait) {
  .js.motion .hero-canvas--wide { display: none; }
  .js.motion .hero-canvas--tall { display: block; }
}
.hero-frames.is-ready .hero-poster--start { opacity: 0; }

/* brand colour: an ember wash over the grey shell that gives way to the real colours */
.hero-tint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, var(--ember), var(--terracotta) 70%);
  mix-blend-mode: color; opacity: calc(0.55 - var(--build) * 0.45);
}
html:not(.motion) .hero-tint { opacity: 0.1; }
/* charcoal shading keeps the copy readable over any frame */
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0) 22%),
    linear-gradient(to top, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.25) 45%, rgba(26, 26, 26, 0) 70%),
    linear-gradient(var(--shade-dir, to right), rgba(26, 26, 26, 0.88) 0%, rgba(26, 26, 26, 0.55) 38%, rgba(26, 26, 26, 0) 72%);
}
html[dir='rtl'] .hero-shade { --shade-dir: to left; }
.glow--hero { inset-block-start: -45%; inset-inline-start: auto; inset-inline-end: -25%; width: min(1000px, 100vw); opacity: 0.85; mix-blend-mode: screen; }

.hero-content { position: relative; display: grid; align-items: end; padding-block-end: 1rem; }
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; max-width: 46rem; }
.hero-copy .display--hero { color: var(--cream); text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25); }
.hero-copy .lead { max-width: 36rem; color: rgba(242, 237, 228, 0.86); }
@media (max-height: 760px) and (min-width: 1024px) {
  .hero-copy { gap: 1rem; }
  .hero-copy .lead { font-size: 1rem; line-height: 1.6; }
}
.hero-copy .title-en { color: rgba(242, 237, 228, 0.6); }
@media (min-width: 1024px) {
  .hero-content { align-items: center; padding-block-end: 0; }
}

@media (max-width: 767px) {
  .hero-copy .ember-line, .hero-copy .title-en { display: none; }
  .hero-copy { gap: 0.875rem; }
  .hero-copy .lead { font-size: 1rem; line-height: 1.65; }
  .hero-sticky { padding-block-start: calc(var(--header-h) + 0.5rem); }
  .hero-shade {
    background:
      linear-gradient(to bottom, rgba(26, 26, 26, 0.7) 0%, rgba(26, 26, 26, 0) 20%),
      linear-gradient(to top, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.8) 55%, rgba(26, 26, 26, 0.15) 88%);
  }
}

/* ---------- trust marquee ---------- */
.trust { background: var(--charcoal); color: var(--cream); }
.trust-inner { display: grid; gap: 1rem; padding-block: 1.75rem; align-items: center; }
.trust .eyebrow { color: var(--on-dark-soft); }
@media (min-width: 900px) { .trust-inner { grid-template-columns: auto 1fr; gap: 3rem; } }
.marquee {
  overflow: hidden; border-radius: var(--r-pill); background: rgba(242, 237, 228, 0.04); padding-block: 0.875rem;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
html[dir='rtl'] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: flex; align-items: center; padding-inline: 2rem; white-space: nowrap;
  font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.375rem); font-weight: 500; color: var(--cream);
}
html[lang='ar'] .marquee-track li { font-weight: 600; font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem); }
.marquee-track li::after { content: ''; width: 7px; height: 7px; border-radius: 50%; margin-inline-start: 4rem; background: var(--ember); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- story (scroll-scrubbed sequence) ---------- */
.story { position: relative; background: var(--charcoal); color: var(--cream); }
.story-pin { position: relative; height: 100svh; overflow: hidden; }
.js.motion .story { height: 420svh; }
.js.motion .story-pin { position: sticky; inset-block-start: 0; }
.story-media { position: absolute; inset: var(--panel-m); border-radius: var(--r-xl); overflow: hidden; isolation: isolate; background: #111; }
.story-canvas, .story-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js.motion .story-fallback { opacity: 0; }
.story-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.96) 0%, rgba(26, 26, 26, 0.78) 30%, rgba(26, 26, 26, 0.2) 65%, rgba(26, 26, 26, 0.5) 100%);
}
.story-ui {
  position: relative; z-index: 1; height: 100%; display: grid; align-content: space-between;
  padding-block: calc(var(--header-h) + 2.5rem) calc(3rem + var(--panel-m));
}
.story-steps { display: grid; gap: 1rem; }
.story-step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; max-width: 32rem; }
.story-step p { color: var(--on-dark-soft); }
.story-step .num { padding-block-start: 0.3rem; color: var(--ember); }
.story-progress { height: 3px; border-radius: var(--r-pill); background: var(--line-dark); margin-block-start: 2rem; overflow: hidden; }
.story-progress i { display: block; height: 100%; border-radius: inherit; background: var(--ember); transform: scaleX(0); transform-origin: left; }
html[dir='rtl'] .story-progress i { transform-origin: right; }
/* With motion the steps swap in place instead of stacking */
.js.motion .story-step { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
.js.motion .story-step.is-active { opacity: 1; transform: none; }
html:not(.motion) .story-progress { display: none; }
@media (min-width: 1024px) {
  .story-ui { grid-template-columns: 1fr 1fr; align-content: end; align-items: end; }
  .story-ui .heading { align-self: start; grid-column: 1 / -1; }
  .story-steps { grid-column: 2; }
  .story-progress { grid-column: 1 / -1; }
}

/* ---------- services list ---------- */
.svc-list { display: grid; border-block-start: 1px solid var(--line-light); }
.svc-row { display: grid; gap: 0.75rem 3rem; padding-block: 2rem; border-block-end: 1px solid var(--line-light); }
.svc-title { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.625rem); font-weight: 600; line-height: 1.3; }
html[lang='ar'] .svc-title { font-weight: 700; line-height: 1.5; }
.svc-desc { color: var(--ink-soft); max-width: 46rem; font-size: 1.0625rem; line-height: 1.75; }
html[lang='ar'] .svc-desc { font-size: 1.125rem; line-height: 1.85; }
@media (min-width: 1024px) { .svc-row { grid-template-columns: 5fr 7fr; align-items: baseline; } }

/* ---------- sectors ---------- */
.sectors { position: relative; background: var(--charcoal); color: var(--cream); padding-block: var(--section-y); overflow: clip; }
.sectors-head { display: grid; gap: 1.5rem; justify-items: start; margin-block-end: 3rem; }
.sectors-viewport { padding-inline: var(--gutter); }
.sectors-track { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0.75rem; }
@media (min-width: 768px) { .sectors-track { grid-template-columns: repeat(3, 1fr); gap: 2rem 1rem; } }
.sector-card { position: relative; }
.sector-card figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); isolation: isolate; background: #111; }
.sector-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 600ms var(--ease-out), transform 900ms var(--ease-out); }
.sector-card:hover img { filter: grayscale(0); transform: scale(1.05); }
.sector-meta { display: flex; gap: 0.75rem; align-items: baseline; padding: 0.875rem 0.25rem 0; }
/* Static grid: two rows of three on desktop */
@media (min-width: 1024px) {
  .sectors-track { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.25rem; }
  .sector-card figure { aspect-ratio: 4 / 3; }
}

/* ---------- expertise ---------- */
.expertise-grid { display: grid; gap: 1.5rem; justify-items: start; }
.expertise-body { display: grid; gap: 2rem; justify-items: start; }
.expertise-list { display: flex; flex-wrap: wrap; gap: 0.625rem; max-width: 52rem; }
.expertise-list li {
  padding: 0.6rem 1.15rem; border-radius: var(--r-pill); border: 1px solid var(--line-dark);
  background: rgba(242, 237, 228, 0.04); color: var(--cream); font-weight: 600; font-size: 0.9375rem;
}
html[lang='ar'] .expertise-list li { font-size: 1rem; }

/* ---------- why ---------- */
.why-grid { display: grid; gap: 3rem; }
.why-list { display: grid; gap: 0.75rem; }
.why-list li { display: grid; gap: 0.875rem; align-content: start; padding: 2rem 1.75rem; border-radius: var(--r-lg); background: var(--stone); }
.why-list p { color: var(--ink-soft); }
@media (min-width: 720px) { .why-list { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 5fr 7fr; gap: 5rem; }
  .why-head { position: sticky; inset-block-start: calc(var(--header-h) + 2rem); align-self: start; }
}

/* ---------- projects ---------- */
.work-grid { display: grid; gap: 2.5rem 1.5rem; }
.work-more { display: flex; justify-content: center; margin-block-start: clamp(3rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 720px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid .project-card--lg { grid-column: 1 / -1; }
  .work-grid .project-card:nth-child(odd):not(:first-child) { margin-block-start: 5rem; }
}
.project-link { display: grid; gap: 1rem; border-radius: var(--r-lg); }
.project-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-lg); isolation: isolate; background: #cfc8bc; }
.project-card--lg .project-media { aspect-ratio: 16 / 8; }
.project-media img {
  position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover;
  filter: grayscale(1) contrast(1.06); transition: filter 700ms var(--ease-out), scale 900ms var(--ease-out);
}
.project-card--top .project-media img { inset: 0; height: 100%; object-position: 50% 0; transform-origin: 50% 0; }
.project-media::after {
  content: '+'; position: absolute; inset-block-start: 1rem; inset-inline-end: 1rem; z-index: 2;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--cream); color: var(--charcoal); font: 300 1.75rem/1 var(--font-latin);
  opacity: 0; transform: scale(0.6); transition: opacity 300ms var(--ease-out), transform 500ms var(--ease-out);
}
.project-link:hover .project-media img, .project-link:focus-visible .project-media img { filter: grayscale(0); scale: 1.04; }
.project-link:hover .project-media::after, .project-link:focus-visible .project-media::after { opacity: 1; transform: none; }
.project-meta { display: grid; padding-inline: 0.25rem; }
.project-name { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem); font-weight: 600; line-height: 1.3; justify-self: start; }
html[lang='ar'] .project-name { font-weight: 700; line-height: 1.55; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem); }
.project-tags { color: var(--ink-soft); font-size: 0.9375rem; }
html[lang='ar'] .project-tags { font-size: 1rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-block-end: 3rem; }
.chip {
  min-height: 44px; padding: 0.5rem 1.25rem; border: 1px solid rgba(26, 26, 26, 0.2); border-radius: var(--r-pill);
  font-size: 0.9375rem; font-weight: 500; transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}
html[lang='ar'] .chip { font-size: 1.0625rem; font-weight: 600; }
.chip:hover { border-color: var(--charcoal); }
.chip[aria-pressed='true'] { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.filters-count { margin-inline-start: auto; color: var(--ink-soft); font-size: 0.9375rem; }
.projects-grid { display: grid; gap: 2.5rem 1.5rem; }
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card[hidden] { display: none; }
.project-card:target .project-media { outline: 2px solid var(--ember); outline-offset: 4px; }

/* ---------- lightbox ---------- */
.lightbox {
  width: min(1180px, 100% - 2rem); max-width: none; max-height: calc(100svh - 2rem); margin: auto; padding: 0;
  border: 1px solid var(--line-dark); border-radius: var(--r-xl); background: var(--charcoal-2); color: var(--cream);
  overflow: hidden auto;
}
.lightbox::backdrop { background: rgba(12, 12, 12, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox[open] { animation: lb-in 360ms var(--ease-out); }
.lightbox[open]::backdrop { animation: lb-in 360ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } }
.lb-media { margin: 0.75rem; aspect-ratio: 16 / 10; max-height: calc(100svh - 12rem); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; background: #111; transform-origin: 0 0; }
.lb-media img { width: 100%; height: 100%; object-fit: contain; }
.lb-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 1.5rem 1.5rem; }
.lb-text { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; }
.lb-title { font-size: clamp(1.25rem, 1rem + 1vw, 2rem); font-weight: 600; line-height: 1.3; }
html[lang='ar'] .lb-title { font-weight: 700; line-height: 1.55; }
.lb-tags { grid-column: 2; color: var(--on-dark-soft); }
.lb-nav { display: flex; gap: 0.5rem; }

/* ---------- page hero ---------- */
.page-hero {
  position: relative; overflow: clip; background: var(--charcoal); color: var(--cream);
  padding-block: calc(var(--header-h) + clamp(3.5rem, 2rem + 6vw, 7rem)) clamp(3.5rem, 2rem + 4vw, 6rem);
}
.page-hero-inner { position: relative; z-index: 1; display: grid; gap: 1.5rem; justify-items: start; }
.page-hero-text { display: grid; gap: 1rem; max-width: 46rem; }
.page-hero-text .lead { max-width: none; color: rgba(242, 237, 228, 0.82); }
.page-hero-media { position: relative; z-index: 1; margin-block-start: clamp(3rem, 2rem + 4vw, 5rem); aspect-ratio: 16 / 7; overflow: hidden; border-radius: var(--r-xl); isolation: isolate; }
.page-hero-media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
@media (max-width: 639px) { .page-hero-media { aspect-ratio: 4 / 3; } }

/* ---------- about ---------- */
.mv-grid { display: grid; gap: 1rem; }
.mv { display: grid; gap: 1rem; align-content: start; padding: clamp(1.75rem, 1rem + 2vw, 3rem); border-radius: var(--r-lg); background: var(--stone); }
.mv-label { font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta); }
html[lang='ar'] .mv-label { font-size: 1.125rem; letter-spacing: 0; }
.mv-text { font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem); line-height: 1.75; color: var(--ink); text-wrap: pretty; }
html[lang='ar'] .mv-text { font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.375rem); line-height: 1.85; }
@media (min-width: 900px) { .mv-grid { grid-template-columns: 1fr 1fr; } }

/* About "Meet our team" and the Services notes: title with a paragraph under it */
.text-block { display: grid; gap: 1.5rem; justify-items: start; }
.notes-grid { display: grid; gap: clamp(3rem, 2rem + 3vw, 4.5rem); }
.note { display: grid; gap: 1.5rem; justify-items: start; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.contact-info { display: grid; gap: 0.75rem; align-content: start; }
.info-block { display: grid; gap: 0.625rem; justify-items: start; padding: 1.5rem 1.75rem; border-radius: var(--r-lg); background: var(--charcoal-2); border: 1px solid var(--line-dark); }
.contact-section .eyebrow { color: var(--ember); }
html[lang] .contact-section .eyebrow { font-weight: 700; }
.info-text { font-size: 1.125rem; line-height: 1.6; font-weight: 500; color: var(--cream); }
.info-text a { transition: color var(--dur); }
.info-text a:hover { color: var(--ember); }
.contact-section .link { color: var(--ember); }
.contact-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); isolation: isolate; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }

.form { display: grid; gap: 1.5rem 1.25rem; align-content: start; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .field--wide, .form-actions, .form-status, .form-summary { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.5rem; align-content: start; }
.field label { font-weight: 600; font-size: 0.9375rem; color: var(--cream); }
html[lang='ar'] .field label { font-size: 1.0625rem; font-weight: 700; }
.req { color: var(--ember); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 0.875rem 1.125rem; background: var(--charcoal-2); color: var(--cream);
  border: 1px solid rgba(242, 237, 228, 0.18); border-radius: var(--r-md); font-size: 1rem; line-height: 1.5;
  transition: border-color var(--dur), background-color var(--dur), box-shadow var(--dur);
}
.field select option { background: var(--charcoal-2); color: var(--cream); }
.field input[dir='ltr'] { text-align: left; }
html[dir='rtl'] .field input[dir='ltr'] { text-align: right; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(242, 237, 228, 0.4); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px rgba(232, 97, 44, 0.22);
}
.select { position: relative; }
.select select { appearance: none; padding-inline-end: 2.75rem; cursor: pointer; }
.select::after {
  content: ''; position: absolute; inset-inline-end: 1.2rem; inset-block-start: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--cream); border-bottom: 1.5px solid var(--cream); transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.help { font-size: 0.875rem; color: var(--on-dark-soft); }
html[lang='ar'] .help, html[lang='ar'] .error, html[lang='ar'] .req-note { font-size: 1rem; }
.error { font-size: 0.875rem; color: #ff9b78; font-weight: 500; }
.error:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff9b78; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-block-start: 0.5rem; }
.req-note { color: var(--on-dark-soft); font-size: 0.875rem; }
.form-summary { padding: 1rem 1.25rem; border-radius: var(--r-md); background: rgba(232, 97, 44, 0.14); color: #ffb79c; font-weight: 600; }
.form-status:empty { display: none; }
.form-status { padding: 1.25rem 1.5rem; border-radius: var(--r-md); background: var(--charcoal-2); border: 1px solid var(--line-dark); color: var(--cream); }
.form-status.is-error { background: rgba(232, 97, 44, 0.14); color: #ffb79c; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; margin: var(--panel-m); border-radius: var(--r-xl);
  background: var(--charcoal-2); color: var(--cream); padding-block: clamp(6rem, 4rem + 8vw, 12rem);
}
.cta-inner { position: relative; z-index: 1; display: grid; gap: 2rem; justify-items: start; }
.cta .h2 { max-width: 20ch; }
.cta .section-intro { color: rgba(242, 237, 228, 0.82); }
.cta--button { padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.cta--button .cta-inner { justify-items: center; }

/* ---------- mobile call-to-action bar ---------- */
.mcta {
  position: fixed; inset-inline: 0.75rem; inset-block-end: max(0.75rem, env(safe-area-inset-bottom)); z-index: var(--z-mcta);
  display: flex; gap: 0.5rem; padding: 0.5rem; border-radius: var(--r-pill);
  background: rgba(30, 29, 28, 0.86); border: 1px solid var(--line-dark);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transform: translateY(160%); transition: transform 560ms var(--ease-out);
}
.mcta.is-visible { transform: none; }
.mcta .btn { flex: 1; }
.mcta-call { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--charcoal); }
.mcta-call svg { width: 22px; height: 22px; }
@media (min-width: 1024px) { .mcta { display: none; } }

/* ---------- footer ---------- */
.site-footer { background: var(--charcoal); color: var(--on-dark-soft); padding-block: 4.5rem 2rem; font-size: 0.9375rem; }
html[lang='ar'] .site-footer { font-size: 1.0625rem; }
@media (max-width: 1023px) { .site-footer { padding-block-end: 7rem; } }
.footer-top { display: grid; gap: 3rem; }
.footer-brand { display: grid; place-items: center; color: var(--cream); }
.footer-brand .logo { width: clamp(190px, 12vw + 110px, 260px); }
.footer-col { display: grid; gap: 1rem; align-content: start; }
.footer-col .eyebrow { color: var(--warm-grey); }
.footer-col a { display: inline-flex; min-height: 44px; align-items: center; transition: color var(--dur); }
.footer-col ul, .footer-col address { gap: 0; }
.footer-col a:hover { color: var(--cream); }
.footer-col address { display: grid; gap: 0.25rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-block-start: 4rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line-dark); font-size: 0.875rem; }
.footer-bottom p { margin-inline-end: auto; }
.footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-bottom a:hover { color: var(--cream); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 2fr 1fr 1.5fr; } }

/* ---------- motion hooks (only when JS + motion are available) ---------- */
.js.motion [data-reveal] { opacity: 0; transform: translateY(24px); }
.js.motion [data-split] .w { display: inline-block; overflow: clip; vertical-align: top; padding-block: 0.12em; margin-block: -0.12em; }
.js.motion [data-split] .w > span { display: inline-block; transform: translateY(110%); }
.js.motion [data-reveal-media] { clip-path: inset(100% 0 0 0); }
.js.motion [data-hero-fade] { opacity: 0; }
.js.motion [data-hero-lines] { transform: scaleX(0); }
.js.motion .hero-bg { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track li[aria-hidden] { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .story-canvas { display: none; }
  .story-pin { height: auto; min-height: 100svh; }
  .process-step { position: static; }
}
