/* ==========================================================================
   Al-Karam United — v7.2.0
   Single-layer, mobile-first stylesheet.

   Written base-up: phone layout is the default, and every larger layout is
   added through min-width queries. Each property is declared in exactly one
   place per selector, which is what the previous stacked-override sheet could
   not guarantee — 24 of its mobile rules were being silently overwritten by
   later desktop rules.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  /* Palette */
  --ink: #07191c;
  --ink-2: #0b2428;
  --petrol-950: #041719;
  --petrol-900: #072427;
  --petrol-800: #0b3736;
  --petrol-700: #155652;
  --navy-900: #0a1c2c;
  --navy-700: #123b58;
  --gold-500: #b8842a;
  --gold-400: #d8ad62;
  --gold-200: #ecd7aa;
  --cream-50: #fbf8f1;
  --cream-100: #f5f0e6;
  --cream-200: #e9dfcf;
  --terra-600: #9f4e31;
  --terra-500: #bd6a34;
  --white: #fff;
  --muted: #5f6b6d;
  --muted-dark: rgba(255, 255, 255, .66);
  --line-light: rgba(7, 25, 28, .13);
  --line-dark: rgba(255, 255, 255, .13);

  /* Layout */
  --shell-max: 1360px;
  --gutter: 18px;
  --header-h: 62px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 30px;

  /* Type — every minimum is a size that stays readable on a 360px screen. */
  --fs-micro: 11px;
  --fs-small: 13px;
  --fs-body: 16px;
  --fs-lead: clamp(16px, 1.1vw + 13px, 20px);
  --fs-h3: clamp(21px, 2.2vw + 15px, 34px);
  --fs-h2: clamp(29px, 4vw + 16px, 62px);
  --fs-h1: clamp(34px, 6vw + 16px, 88px);

  /* Rhythm */
  --section-y: 64px;
  --stack: 22px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth: cubic-bezier(.65, 0, .35, 1);

  /* Type families */
  --font-ar-display: 'Alexandria', 'Segoe UI', sans-serif;
  --font-ar-body: 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif;
  --font-en: 'Manrope', 'Segoe UI', sans-serif;

  --shadow-md: 0 12px 30px rgba(7, 25, 28, .08);
  --shadow-xl: 0 26px 68px rgba(4, 18, 20, .2);
}

@media (min-width: 480px)  { :root { --gutter: 24px; --section-y: 76px; } }
@media (min-width: 768px)  { :root { --gutter: 32px; --section-y: 92px; --header-h: 68px; --radius-xl: 34px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --section-y: 110px; --header-h: 72px; --radius-xl: 38px; --fs-body: 17px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; --section-y: 130px; } }

/* ----------------------------------------------------------- 2. Foundation */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--petrol-950);
  scroll-behavior: smooth;
  /* Anchor targets must clear the floating header. */
  scroll-padding-top: calc(var(--header-h) + 34px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink);
  font-family: var(--font-ar-body);
  font-size: var(--fs-body);
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: never creates a scroll container, so sticky still works. */
  overflow-x: clip;
  cursor: auto;
}

html[data-site-lang="en"] body { font-family: var(--font-en); line-height: 1.7; }
body.is-nav-open { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  /* 16px minimum stops iOS Safari zooming the page on focus. */
  font-size: max(16px, 1em);
}

button { background: none; border: 0; }

::selection { background: var(--gold-400); color: var(--petrol-950); }

/* Visible keyboard focus on every interactive element. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 8px;
}

:is(.button, .nav-contact, .language-toggle, .menu-toggle, .primary-nav a, .mobile-navigation a, .brand, .contact-details a):focus-visible {
  outline-color: var(--gold-400);
}

.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;
  z-index: 9999;
  inset-inline-start: 16px;
  top: -120px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--gold-400);
  color: var(--ink);
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 14px; }

/* Bilingual visibility. */
.lang-en { display: none !important; }
html[data-site-lang="en"] .lang-ar { display: none !important; }
html[data-site-lang="en"] .lang-en { display: inline !important; }

/* ------------------------------------------------------------- 3. Layout */
.shell {
  width: min(var(--shell-max), 100% - var(--gutter) * 2);
  margin-inline: auto;
  /* viewport-fit=cover is set in the head, so content has to stay clear of the
     notch when a phone is held in landscape. */
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
}

.site-main { overflow: clip; }

.section { position: relative; padding-block: var(--section-y); }
.section-cream { background: var(--cream-50); }
section[id] { scroll-margin-top: calc(var(--header-h) + 34px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--gold-500);
  font-family: var(--font-en);
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.dark-head .eyebrow { color: var(--gold-400); }

.section-head {
  margin-bottom: clamp(32px, 5vw, 64px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-light);
}
.dark-head { color: var(--white); border-bottom-color: var(--line-dark); }

:is(.section-head, .heritage-head, .rakaz-head, .contact-copy) h2 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-ar-display);
  font-size: var(--fs-h2);
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -.02em;
  text-wrap: balance;
}
html[data-site-lang="en"] :is(.section-head, .heritage-head, .rakaz-head, .contact-copy) h2 {
  font-family: var(--font-en);
  line-height: 1.1;
  letter-spacing: -.035em;
  max-width: 22ch;
}

:is(.section-head, .rakaz-head) p {
  margin: 18px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.9;
  text-wrap: pretty;
}
.dark-head p { color: var(--muted-dark); }

.split-head { display: grid; gap: 24px; }

/* ------------------------------------------------------------ 4. Controls */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* 48px keeps every button inside the recommended touch-target size. */
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
  transition: transform .35s var(--ease-out), background .3s, color .3s, border-color .3s;
}
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold-400); color: var(--ink); box-shadow: 0 14px 34px rgba(200, 145, 47, .24); }
.button-glass { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .3); color: var(--white); backdrop-filter: blur(12px); }
.button-dark { background: var(--ink); color: var(--white); }

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 22px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--gold-200);
  font-weight: 700;
}
.dark-link { color: var(--terra-600); }

/* --------------------------------------------------------- 5. Site header */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 10px;
  inset-inline: 0;
  width: min(var(--shell-max), 100% - 20px);
  margin-inline: auto;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding: 8px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(7, 32, 35, .78), rgba(4, 22, 25, .62));
  box-shadow: 0 16px 44px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  color: var(--white);
  transition: background .35s, box-shadow .35s;
}
.site-header.is-scrolled .nav-shell {
  background: rgba(5, 25, 28, .92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream-100);
  object-fit: contain;
}
.brand-copy { display: none; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-copy b { font-family: var(--font-ar-display); font-size: 12px; white-space: nowrap; }
.brand-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .5);
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .16em;
  white-space: nowrap;
}

.primary-nav { display: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }

.language-toggle,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: var(--white);
  cursor: pointer;
}
.language-toggle { font-family: var(--font-en); font-size: 11px; font-weight: 800; }

.nav-contact { display: none; }

.menu-toggle { padding: 12px; }
.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 18px; height: 1.5px;
  margin: 3.5px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s, opacity .25s;
}
.menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-navigation {
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(4, 24, 27, .97);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(24px);
  color: var(--white);
  /* The panel must scroll rather than run off a short or landscape screen. */
  max-height: calc(100vh - var(--header-h) - 40px);
  max-height: calc(100svh - var(--header-h) - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-navigation a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 15px;
}
.mobile-navigation a:last-child { border-bottom: 0; }

.top-progress {
  position: fixed;
  z-index: 1250;
  top: 0;
  inset-inline: 0;
  height: 2px;
  pointer-events: none;
}
.top-progress i {
  display: block;
  width: 100%; height: 100%;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: right;
}
html[dir="ltr"] .top-progress i { transform-origin: left; }

/* WordPress admin bar offsets. */
body.admin-bar .site-header { top: 56px; }
body.admin-bar .skip-link:focus { top: 60px; }
@media (min-width: 783px) { body.admin-bar .site-header { top: 42px; } }

/* --------------------------------------------------------------- 6. Hero */
.hero-story {
  position: relative;
  background: var(--petrol-950);
  color: var(--white);
}

.hero-sticky {
  position: relative;
  padding: calc(var(--header-h) + 46px) 0 56px;
  overflow: hidden;
  isolation: isolate;
  --mx: 0;
  --my: 0;
}

/* On phones the artwork covers the first screen only; the stacked chapters
   below it sit on the solid petrol ground instead of stretching one image
   over several thousand pixels. */
.hero-media {
  position: absolute;
  z-index: -5;
  inset-inline: 0;
  top: 0;
  height: 100vh;
  height: 100svh;
}
.hero-media::after {
  content: '';
  position: absolute;
  z-index: 6;
  inset-inline: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(transparent, var(--petrol-950));
}

.hero-visual { position: absolute; inset: 0; margin: 0; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-visual::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  background: rgba(3, 17, 20, .8);
}
.hero-visual::after {
  content: '';
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 17, 20, .55), transparent 30%, transparent 62%, rgba(3, 17, 20, .8));
}
.hero-visual > span { display: none; }
.hero-visual:not(:first-child) { display: none; }

.hero-grid,
.hero-pointer-light,
.hero-object { display: none; }

.hero-shell { position: relative; }
.hero-copy { position: relative; }

.hero-chapter {
  position: relative;
  padding-block: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.hero-chapter:first-child { padding-top: 0; }
.hero-chapter:last-child { border-bottom: 0; }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--gold-200);
  font-size: var(--fs-small);
  font-weight: 600;
  text-wrap: pretty;
}
.hero-kicker i {
  flex: 0 0 auto;
  width: 8px; height: 8px;
  border: 2px solid var(--gold-400);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(216, 173, 98, .12);
}

.hero-chapter :is(h1, h2) {
  margin: 0;
  font-family: var(--font-ar-display);
  font-size: var(--fs-h1);
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: balance;
  /* Long unbroken Arabic compounds must never push the page sideways. */
  overflow-wrap: break-word;
}
html[data-site-lang="en"] .hero-chapter :is(h1, h2) {
  font-family: var(--font-en);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.hero-chapter > p {
  margin: 18px 0 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, .74);
  font-size: var(--fs-lead);
  line-height: 1.9;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.hero-actions .button { width: 100%; }

.source-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(5, 23, 26, .4);
  color: rgba(255, 255, 255, .68);
  font-size: var(--fs-micro);
  line-height: 1.6;
  backdrop-filter: blur(14px);
}
.source-chip::before {
  content: '';
  flex: 0 0 auto;
  width: 6px; height: 6px;
  margin-inline-end: 9px;
  border-radius: 50%;
  background: var(--gold-400);
}

.hero-hud,
.scroll-cue { display: none; }

/* --------------------------------------------------------------- 7. Group */
.group-section { background: linear-gradient(180deg, var(--cream-50), #f0eadf); }

.group-architecture {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .7);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  --mx: 0;
  --my: 0;
}
.group-architecture::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  inset-inline-end: -200px;
  top: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 145, 47, .16), transparent 66%);
  transform: translate(calc(var(--mx) * 24px), calc(var(--my) * 18px));
  pointer-events: none;
}

.group-parent {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 44px rgba(3, 20, 22, .18);
}
.group-parent img {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cream-100);
  object-fit: contain;
}
.group-parent > span { display: none; }
.group-parent p { margin: 0; color: rgba(255, 255, 255, .6); font-size: var(--fs-small); line-height: 1.7; }

:is(.group-parent, .group-company) small {
  color: var(--gold-400);
  font-family: var(--font-en);
  font-size: var(--fs-micro);
  letter-spacing: .16em;
}
:is(.group-parent, .group-company) h3 {
  margin: 5px 0 8px;
  font-family: var(--font-ar-display);
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: 1.3;
}
html[data-site-lang="en"] :is(.group-parent, .group-company) h3 { font-family: var(--font-en); line-height: 1.15; }

.group-lines {
  width: 1px;
  height: 42px;
  margin-inline: auto;
  background: var(--gold-400);
}
.group-lines i { display: none; }

.group-companies { position: relative; z-index: 2; display: grid; gap: 14px; }

.group-company {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--cream-50);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.group-company:hover { box-shadow: 0 20px 50px rgba(7, 25, 28, .12); }
.group-company::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  inset-inline-end: -110px;
  bottom: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 86, 82, .2), transparent 68%);
  pointer-events: none;
}
.rakaz-company::after { background: radial-gradient(circle, rgba(200, 145, 47, .25), transparent 68%); }
.group-company p { position: relative; z-index: 2; margin: 0; max-width: 60ch; color: var(--muted); font-size: var(--fs-small); line-height: 1.8; }

.company-index {
  position: absolute;
  inset-inline-end: 20px;
  top: 18px;
  color: rgba(7, 25, 28, .16);
  font-family: var(--font-en);
  font-size: 26px;
}

.tag-row { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag-row span {
  padding: 6px 10px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .09em;
}

.evidence-ledger { display: grid; gap: 10px; margin-top: 26px; }
.evidence-ledger article {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.evidence-ledger article:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 145, 47, .4);
  box-shadow: 0 20px 44px rgba(7, 25, 28, .08);
}
.evidence-ledger article::after {
  content: '';
  position: absolute;
  width: 130px; height: 130px;
  inset-inline-end: -72px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 145, 47, .15), transparent 68%);
  pointer-events: none;
}
.ledger-icon {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(184, 132, 42, .45);
  border-radius: var(--radius-sm);
  color: var(--gold-500);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
}
.evidence-ledger small {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-500);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.evidence-ledger b {
  display: block;
  color: var(--petrol-800);
  font-family: var(--font-ar-display);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.55;
}
html[data-site-lang="en"] .evidence-ledger b { font-family: var(--font-en); line-height: 1.4; }

/* Shared source/method note pattern. */
.content-standard {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 16px 0 0;
  padding: 15px 17px;
  border-inline-start: 2px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, .5);
  color: #586364;
  font-size: 12px;
  line-height: 1.85;
}
html[dir="ltr"] .content-standard { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.content-standard::before {
  content: 'i';
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  margin-top: 3px;
  border: 1px solid var(--gold-500);
  border-radius: 50%;
  color: var(--gold-500);
  font-family: Georgia, serif;
  font-size: 12px;
}

/* -------------------------------------------------------- 8. Capabilities */
.capabilities-section {
  background:
    radial-gradient(circle at 80% 4%, rgba(21, 86, 82, .45), transparent 30%),
    linear-gradient(180deg, var(--petrol-950), #062326);
  color: var(--white);
}

.capability-stack { position: relative; display: grid; gap: 16px; }

.capability-card {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .26);
  overflow: hidden;
  transform-origin: top center;
}
.cap-telecom { background: linear-gradient(135deg, #0b4440, #08292c); }
.cap-security { background: linear-gradient(135deg, #12364c, #081e2d); }
.cap-digital { background: linear-gradient(135deg, #251e39, #0b2431); }
.capability-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at calc(50% + var(--mx, 0) * 30%) calc(50% + var(--my, 0) * 30%), rgba(255, 255, 255, .08), transparent 65%);
  pointer-events: none;
}

.cap-copy { position: relative; z-index: 2; }
.cap-index { display: block; margin-bottom: 14px; color: rgba(255, 255, 255, .26); font-family: var(--font-en); font-size: 26px; }
.cap-copy small { color: var(--gold-400); font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.cap-copy h3 {
  margin: 8px 0 14px;
  font-family: var(--font-ar-display);
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: 1.28;
}
html[data-site-lang="en"] .cap-copy h3 { font-family: var(--font-en); line-height: 1.1; }
.cap-copy p { margin: 0; max-width: 62ch; color: rgba(255, 255, 255, .7); font-size: var(--fs-body); line-height: 1.9; }
.cap-copy ul { display: grid; gap: 9px; margin: 20px 0 0; padding: 0; list-style: none; }
.cap-copy li { position: relative; padding-inline-start: 22px; color: rgba(255, 255, 255, .76); font-size: var(--fs-small); line-height: 1.75; }
.cap-copy li::before { content: '↗'; position: absolute; inset-inline-start: 0; color: var(--gold-400); }

.cap-media {
  position: relative;
  display: grid;
  place-items: center;
  order: -1;
  min-height: 200px;
}
.cap-media::before {
  content: '';
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(255, 255, 255, .04);
}
.cap-media img { position: relative; width: min(100%, 220px); border-radius: 50%; mix-blend-mode: screen; }
.cap-media > span {
  position: absolute;
  bottom: 0;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(0, 0, 0, .24);
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .14em;
  white-space: nowrap;
}

.full-cycle {
  display: grid;
  gap: 26px;
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .04);
}
.full-cycle h3 { margin: 0; font-family: var(--font-ar-display); font-size: var(--fs-h3); font-weight: 650; line-height: 1.3; }
html[data-site-lang="en"] .full-cycle h3 { font-family: var(--font-en); }
.full-cycle p { margin: 12px 0 0; color: rgba(255, 255, 255, .6); font-size: var(--fs-small); line-height: 1.85; }
.full-cycle ol {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .1);
  list-style: none;
  overflow: hidden;
}
.full-cycle li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #092b2e; font-size: var(--fs-small); }
.full-cycle li b { color: var(--gold-400); font-family: var(--font-en); }

/* ---------------------------------------------------------- 9. Case study */
.case-section { background: linear-gradient(180deg, #ebe4d9, #e4dbcf); }
.case-layout { display: grid; gap: 28px; }

.case-visual {
  position: relative;
  height: 58vh;
  height: 58svh;
  min-height: 300px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  --mx: 0;
  --my: 0;
}
.case-image {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .75s var(--ease-smooth), transform 1.1s var(--ease-out);
}
.case-image.is-active { opacity: 1; transform: scale(1); }
.case-image img { width: 100%; height: 100%; object-fit: cover; }
.case-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 24, 27, .08), rgba(4, 24, 27, .15) 55%, rgba(4, 24, 27, .82));
}
.case-overlay {
  position: absolute;
  z-index: 4;
  inset-inline: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-en);
}
.case-overlay span { font-size: 10px; letter-spacing: .16em; }
.case-overlay i { flex: 1; height: 1px; background: rgba(255, 255, 255, .4); }
.case-overlay b { color: var(--gold-400); font-size: 28px; }
.case-map { display: none; }

.case-steps { display: grid; }
.case-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 34px;
  border-bottom: 1px solid rgba(7, 25, 28, .13);
  /* Full opacity on touch layouts: no sticky visual is tracking the steps, so
     dimming the inactive ones would just make three of four unreadable. */
  opacity: 1;
  transition: opacity .4s;
}
.case-step:last-child { border-bottom: 0; }
.case-step > span { color: var(--terra-600); font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.case-step h3 {
  margin: 12px 0 14px;
  font-family: var(--font-ar-display);
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: 1.3;
  text-wrap: balance;
}
html[data-site-lang="en"] .case-step h3 { font-family: var(--font-en); line-height: 1.12; }
.case-step p { margin: 0; color: #56605f; font-size: var(--fs-body); line-height: 1.9; }
.case-step ul { margin: 16px 0 0; padding: 0; list-style: none; }
.case-step li { padding: 8px 0; border-bottom: 1px solid rgba(7, 25, 28, .1); font-size: var(--fs-small); }

.case-source-note {
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(7, 25, 28, .11);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .5);
  color: #5d6564;
  font-size: 12px;
  line-height: 1.8;
}
.case-source-note::before {
  content: 'SOURCE NOTE';
  display: block;
  margin-bottom: 5px;
  color: var(--terra-600);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
}

/* ------------------------------------------------------- 10. Project reel */
.projects-reel { position: relative; background: #091d22; color: var(--white); }
.projects-sticky { position: relative; padding-block: var(--section-y); overflow: hidden; }

.reel-head { display: grid; gap: 20px; margin-bottom: 26px; }
.reel-head h2 {
  margin: 0;
  font-family: var(--font-ar-display);
  font-size: var(--fs-h2);
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -.02em;
  text-wrap: balance;
}
html[data-site-lang="en"] .reel-head h2 { font-family: var(--font-en); line-height: 1.08; }
.reel-head p { margin: 0; color: var(--muted-dark); font-size: var(--fs-lead); line-height: 1.9; }

/* Touch: a real swipeable carousel with scroll-snap. No JavaScript involved,
   and the same card rhythm the desktop reel uses. */
.reel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.reel-viewport::-webkit-scrollbar { display: none; }

.project-reel-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-inline: max(var(--gutter), (100% - var(--shell-max)) / 2);
  padding-block: 4px;
}

.reel-card {
  position: relative;
  flex: 0 0 min(340px, 82vw);
  display: flex;
  flex-direction: column;
  scroll-snap-align: center;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .035));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.reel-card::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  inset-inline-end: -110px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 173, 98, .2), transparent 68%);
  pointer-events: none;
}
/* Each record is tagged with its sector; colour the glow so the reel reads at
   a glance instead of as seven identical gold cards. */
.reel-card-telecom::after { background: radial-gradient(circle, rgba(216, 173, 98, .22), transparent 68%); }
.reel-card-networks::after { background: radial-gradient(circle, rgba(90, 166, 158, .22), transparent 68%); }
.reel-card-security::after { background: radial-gradient(circle, rgba(93, 144, 196, .22), transparent 68%); }
.reel-card-healthcare::after { background: radial-gradient(circle, rgba(122, 178, 142, .2), transparent 68%); }
.reel-card-heritage::after { background: radial-gradient(circle, rgba(189, 106, 52, .22), transparent 68%); }
.reel-card-collaboration::after { background: radial-gradient(circle, rgba(150, 132, 196, .2), transparent 68%); }

.reel-card-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reel-card-top > span { color: rgba(255, 255, 255, .22); font-family: var(--font-en); font-size: 30px; line-height: 1; }
.reel-card-top small { color: var(--gold-400); font-size: var(--fs-micro); text-align: end; }
.reel-card h3 {
  position: relative;
  z-index: 2;
  margin: 22px 0 12px;
  font-family: var(--font-ar-display);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.45;
}
html[data-site-lang="en"] .reel-card h3 { font-family: var(--font-en); line-height: 1.2; }
.reel-card p { position: relative; z-index: 2; margin: 0; color: rgba(255, 255, 255, .6); font-size: var(--fs-small); line-height: 1.8; }
.reel-card footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.reel-card footer > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.reel-card footer b { font-family: var(--font-en); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-card footer small { color: rgba(255, 255, 255, .44); font-size: 10px; line-height: 1.5; }
.reel-card footer i { margin-inline-start: auto; color: var(--gold-400); font-style: normal; }

.reel-footer { display: none; }

/* ---------------------------------------------------------- 11. Work index */
.archive-section { background: linear-gradient(180deg, #f7f2e9, var(--cream-50)); }

.record-method {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .64);
  box-shadow: var(--shadow-md);
}
.record-method > span { color: var(--gold-500); font-family: var(--font-en); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.record-method p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }

.archive-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .58);
}

/* The filter row scrolls sideways on a phone rather than wrapping into four
   ragged lines. */
.project-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.project-filters::-webkit-scrollbar { display: none; }
.project-filters button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: transparent;
  font-size: var(--fs-small);
  white-space: nowrap;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.project-filters button:is(.is-active, :hover) { background: var(--ink); border-color: var(--ink); color: var(--white); }

.project-search { position: relative; display: block; width: 100%; }
.project-search input {
  width: 100%;
  height: 48px;
  padding-inline: 44px 18px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: #fff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.project-search input:focus-visible { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(184, 132, 42, .14); outline: none; }
.project-search i {
  position: absolute;
  inset-inline-start: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-style: normal;
  pointer-events: none;
}

.project-count-line { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 20px; color: var(--muted); }
.project-count-line b { color: var(--ink); font-family: var(--font-en); font-size: 22px; }
.project-count-line span { font-size: 12px; }

.project-grid { display: grid; gap: 12px; }

.project-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 25, 28, .035);
  transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(184, 132, 42, .55); box-shadow: 0 20px 48px rgba(7, 25, 28, .1); }
.project-card::before { content: ''; display: block; width: 30px; height: 2px; margin-bottom: 20px; background: var(--gold-500); }
.project-card[hidden],
.project-card.is-extra:not(.is-force-visible) { display: none !important; }

.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.project-top > span { color: rgba(7, 25, 28, .22); font-family: var(--font-en); font-size: 24px; line-height: 1; }
.project-top small { color: var(--terra-600); font-size: var(--fs-micro); text-align: end; }
.project-card h3 { margin: 0 0 10px; font-family: var(--font-ar-display); font-size: 19px; font-weight: 650; line-height: 1.5; }
html[data-site-lang="en"] .project-card h3 { font-family: var(--font-en); line-height: 1.25; }
.project-card p { margin: 0; color: var(--muted); font-size: var(--fs-small); line-height: 1.8; }
.project-card footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-light); }
.project-card footer > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.project-card footer b { font-family: var(--font-en); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card footer small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.project-card footer i { margin-inline-start: auto; color: var(--gold-500); font-style: normal; font-size: 17px; }

.archive-empty {
  padding: 32px 20px;
  border: 1px dashed var(--line-light);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}
.projects-more { display: flex; justify-content: center; margin-top: 28px; }
.projects-more .button { width: 100%; max-width: 340px; }
.projects-more i { font-style: normal; font-size: 19px; }

/* ------------------------------------------------------------ 12. Heritage */
.heritage-section { position: relative; background: #271b15; color: #f5ecdf; overflow: hidden; }
.heritage-texture {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: radial-gradient(rgba(255, 255, 255, .1) .7px, transparent .7px);
  background-size: 5px 5px;
  mask-image: linear-gradient(black, transparent 96%);
  pointer-events: none;
}
.heritage-section::before {
  content: '';
  position: absolute;
  width: 70vw; height: 70vw;
  inset-inline-end: -35vw;
  top: -30vw;
  border: 1px solid rgba(216, 173, 98, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(216, 173, 98, .025), 0 0 0 120px rgba(216, 173, 98, .018);
  pointer-events: none;
}

.heritage-head { position: relative; z-index: 2; margin-bottom: 44px; }
.heritage-head blockquote {
  margin: 22px 0 0;
  padding-inline-start: 20px;
  border-inline-start: 2px solid var(--gold-400);
  color: rgba(245, 236, 223, .66);
  font-size: var(--fs-lead);
  line-height: 1.85;
}

.qantara-feature,
.museum-feature { position: relative; z-index: 2; display: grid; gap: 28px; }
.qantara-feature { margin-bottom: 56px; }

.heritage-copy > span { color: var(--gold-400); font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.heritage-copy h3 {
  margin: 12px 0 14px;
  font-family: var(--font-ar-display);
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: 1.3;
  text-wrap: balance;
}
html[data-site-lang="en"] .heritage-copy h3 { font-family: var(--font-en); line-height: 1.12; }
.heritage-copy p { margin: 0; color: rgba(245, 236, 223, .68); font-size: var(--fs-body); line-height: 1.9; }

.heritage-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.heritage-tags > span {
  padding: 7px 12px;
  border: 1px solid rgba(245, 236, 223, .16);
  border-radius: 999px;
  color: rgba(245, 236, 223, .74);
  font-size: var(--fs-micro);
}

.heritage-mosaic { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; --mx: 0; --my: 0; }
.heritage-photo { position: relative; margin: 0; height: 180px; border-radius: var(--radius-md); overflow: hidden; }
.heritage-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-main { grid-column: 1 / -1; height: 240px; }
.photo-float { display: none; }

.museum-feature {
  padding: 22px;
  border: 1px solid rgba(245, 236, 223, .14);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .035);
}
.museum-media { position: relative; height: 260px; border-radius: var(--radius-lg); overflow: hidden; }
.museum-media > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) sepia(.15); }
.museum-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(39, 27, 21, .45)); }

.museum-radar {
  position: absolute;
  z-index: 3;
  left: 50%; top: 50%;
  width: 160px; height: 160px;
  border: 1px solid rgba(216, 173, 98, .5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.museum-radar i { position: absolute; inset: 16%; border: 1px solid rgba(216, 173, 98, .35); border-radius: 50%; }
.museum-radar i:nth-child(2) { inset: 32%; }
.museum-radar i:nth-child(3) { inset: 48%; background: var(--gold-400); box-shadow: 0 0 22px var(--gold-400); }
.museum-radar::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 50%; height: 1px;
  background: linear-gradient(90deg, var(--gold-400), transparent);
  transform-origin: left;
  animation: radar 5s linear infinite;
}
@keyframes radar { to { transform: rotate(360deg); } }

.museum-metrics { display: grid; gap: 8px; margin-top: 22px; }
.museum-metrics > span { padding: 13px 15px; border: 1px solid rgba(245, 236, 223, .14); border-radius: var(--radius-sm); }
.museum-metrics b { display: block; color: var(--gold-400); font-family: var(--font-en); font-size: 18px; }
.museum-metrics .lang { display: block; margin-top: 4px; color: rgba(245, 236, 223, .56); font-size: var(--fs-micro); }

.heritage-source-note { display: block; margin-top: 14px; color: rgba(245, 236, 223, .5); font-size: var(--fs-micro); line-height: 1.75; }

/* ------------------------------------------------------------- 13. Digital */
.digital-section { position: relative; background: #071722; color: var(--white); isolation: isolate; }
.digital-background { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.digital-background img { width: 100%; height: 100%; object-fit: cover; opacity: .18; filter: saturate(.7); }
.digital-background span { position: absolute; inset: 0; background: linear-gradient(180deg, #071722 6%, rgba(7, 23, 34, .92) 45%, rgba(7, 23, 34, .8)); }

.digital-layout { display: grid; gap: 22px; --mx: 0; --my: 0; }
.digital-services { display: grid; gap: 9px; }
.digital-services article {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 14px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
  transition: background .3s;
}
.digital-services article:hover { background: rgba(255, 255, 255, .08); }
.digital-services article > span { grid-row: 1 / 3; color: var(--gold-400); font-family: var(--font-en); font-size: 11px; }
.digital-services h3 { margin: 0; font-family: var(--font-ar-display); font-size: 17px; font-weight: 650; line-height: 1.4; }
html[data-site-lang="en"] .digital-services h3 { font-family: var(--font-en); }
.digital-services p { margin: 4px 0 0; color: rgba(255, 255, 255, .55); font-size: 12px; line-height: 1.7; }

.erp-console {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  background: rgba(5, 20, 31, .88);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .36);
  overflow: hidden;
}
.console-top {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding-inline: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: .12em;
}
.console-top > span { display: flex; gap: 5px; }
.console-top i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.console-top i:first-child { background: var(--terra-500); }
.console-top i:nth-child(2) { background: var(--gold-400); }
.console-top i:nth-child(3) { background: var(--petrol-700); }
.console-top b { display: none; }
.console-top small { margin-inline-start: auto; color: rgba(255, 255, 255, .38); }

.console-body { display: grid; }
.console-body > aside { display: none; }
.console-content { padding: 18px; }

.console-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.console-title small { color: rgba(255, 255, 255, .42); font-size: var(--fs-micro); }
.console-title h4 { margin: 4px 0 0; font-family: var(--font-ar-display); font-size: 19px; font-weight: 650; line-height: 1.35; }
html[data-site-lang="en"] .console-title h4 { font-family: var(--font-en); }
.console-title > span { color: var(--gold-400); font-family: var(--font-en); font-size: var(--fs-small); }

.console-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.console-kpis > span { padding: 13px; border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .035); }
.console-kpis small { display: block; color: rgba(255, 255, 255, .42); font-size: 10px; }
.console-kpis b { display: block; margin-top: 6px; font-family: var(--font-en); font-size: 20px; }

.console-chart {
  height: 130px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px;
}
.console-chart svg { width: 100%; height: 100%; overflow: visible; }
.console-chart path { fill: none; stroke: var(--gold-400); stroke-width: 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 8px rgba(216, 173, 98, .35)); }

.console-list { display: grid; gap: 7px; margin-top: 16px; }
.console-list > span { display: grid; grid-template-columns: 8px 1fr; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; background: rgba(255, 255, 255, .035); font-size: var(--fs-micro); }
.console-list i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); }
.console-demo-note { display: block; margin-top: 14px; color: rgba(255, 255, 255, .5); font-size: 10px; line-height: 1.6; text-align: center; }
.console-object { display: none; }

/* ------------------------------------------- 14. Training, partners, clients */
.training-layout { display: grid; gap: 22px; }
.training-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--line-light);
  overflow: hidden;
}
.training-list > span { display: flex; align-items: center; gap: 14px; padding: 15px 18px; background: var(--cream-50); font-size: var(--fs-small); }
.training-list b { flex: 0 0 auto; color: var(--gold-500); font-family: var(--font-en); font-size: 11px; }

.training-copy { padding: 24px; border-radius: var(--radius-md); background: var(--ink); color: var(--white); }
.training-copy .eyebrow { color: var(--gold-400); font-size: 10px; }
.training-copy h3 { margin: 0; font-family: var(--font-ar-display); font-size: var(--fs-h3); font-weight: 650; line-height: 1.3; }
html[data-site-lang="en"] .training-copy h3 { font-family: var(--font-en); }
.training-copy p { margin: 14px 0 0; color: rgba(255, 255, 255, .6); font-size: var(--fs-small); line-height: 1.9; }

.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 34px; }
.partners > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: #fff;
}
.partners b { font-family: var(--font-en); font-size: 16px; }
.partners span { color: var(--muted); font-size: var(--fs-micro); line-height: 1.7; }

.reference-label { display: grid; gap: 8px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-light); }
.reference-label > span { color: var(--gold-500); font-family: var(--font-en); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.reference-label p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }

.clients-marquee { margin-top: 24px; padding-block: 16px; border-block: 1px solid var(--line-light); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track > span { display: flex; align-items: center; gap: 22px; padding-inline: 22px; font-family: var(--font-en); font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
.marquee-track i { color: var(--gold-500); font-size: 7px; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* --------------------------------------------------------------- 15. Rakaz */
.rakaz-section { background: #eee8dd; }
.rakaz-head { display: grid; gap: 20px; margin-bottom: 22px; }

.rakaz-source-note {
  margin: 0 0 34px;
  padding: 14px 16px;
  border: 1px solid rgba(7, 25, 28, .15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .55);
  color: #576061;
  font-size: 12px;
  line-height: 1.85;
}

.rakaz-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 34px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--line-light);
  overflow: hidden;
}
.rakaz-services article { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 120px; padding: 16px; background: #f8f4ed; transition: background .3s, color .3s; }
.rakaz-services article:hover { background: var(--navy-900); color: var(--white); }
.rakaz-services span { color: var(--gold-500); font-family: var(--font-en); font-size: 10px; }
.rakaz-services article:hover span { color: var(--gold-400); }
.rakaz-services h3 { margin: 0; font-family: var(--font-ar-display); font-size: 15px; font-weight: 650; line-height: 1.5; }
html[data-site-lang="en"] .rakaz-services h3 { font-family: var(--font-en); line-height: 1.3; }

.rakaz-gallery { display: grid; gap: 10px; }
.rakaz-gallery figure { position: relative; margin: 0; height: 220px; border-radius: var(--radius-md); overflow: hidden; }
.rakaz-gallery img { width: 100%; height: 100%; object-fit: cover; }
.rakaz-large { height: 280px; }
.rakaz-gallery figcaption {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(5, 20, 25, .58);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: var(--fs-micro);
  text-align: center;
}

/* ------------------------------------------------- 16. Contact and footer */
.contact-section { position: relative; background: var(--petrol-950); color: var(--white); overflow: hidden; }
.contact-background { position: absolute; inset: 0; }
.contact-background img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.contact-background span { position: absolute; inset: 0; background: linear-gradient(180deg, var(--petrol-950) 10%, rgba(4, 23, 25, .9) 50%, rgba(4, 23, 25, .8)); }

.contact-layout { position: relative; z-index: 2; display: grid; gap: 34px; }
.contact-copy p { margin: 18px 0 0; max-width: 60ch; color: rgba(255, 255, 255, .62); font-size: var(--fs-lead); line-height: 1.9; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.contact-actions .button { width: 100%; }

.contact-details { display: grid; }
.contact-details > a,
.contact-details > div { display: flex; flex-direction: column; gap: 5px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.contact-details span { color: var(--gold-400); font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.contact-details b { font-family: var(--font-en); font-size: 15px; word-break: break-word; }

.site-footer { background: #031416; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .66); }
.footer-layout { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-block: 30px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: var(--cream-100); object-fit: contain; }
.footer-brand > div { display: flex; flex-direction: column; gap: 4px; }
.footer-brand b { color: var(--white); font-size: 15px; }
.footer-brand span { font-size: 12px; line-height: 1.6; }
.footer-meta { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-en); font-size: var(--fs-micro); letter-spacing: .08em; }
.footer-meta a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-version { margin-inline-start: 8px; color: var(--gold-400); font-family: var(--font-en); font-size: 10px; letter-spacing: .12em; }

.generic-page,
.error-page { min-height: 70vh; min-height: 70svh; padding-top: calc(var(--header-h) + 70px); padding-bottom: 70px; }
.error-page { text-align: center; }
.error-page > span { display: block; color: var(--gold-500); font-family: var(--font-en); font-size: clamp(64px, 18vw, 140px); font-weight: 800; line-height: 1; }
.error-page h1 { margin: 12px 0 26px; font-family: var(--font-ar-display); font-size: var(--fs-h3); }
.generic-page h1 { font-family: var(--font-ar-display); font-size: var(--fs-h2); line-height: 1.25; }

/* ---------------------------------------------------------- 17. Reveal FX */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-tilt],
[data-parallax] { will-change: transform; }

/* ==========================================================================
   18. Large phone — 480px and up
   ========================================================================== */
@media (min-width: 480px) {
  .brand-copy { display: flex; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .button { width: auto; }
  .contact-actions { flex-direction: row; flex-wrap: wrap; }
  .contact-actions .button { width: auto; }
  .heritage-photo { height: 200px; }
  .photo-main { height: 260px; }
  .museum-metrics { grid-template-columns: repeat(3, 1fr); }
  .museum-media { height: 320px; }
  .rakaz-gallery figure { height: 250px; }
  .rakaz-large { height: 320px; }
  .case-visual { min-height: 340px; }
  .reel-card { flex-basis: min(380px, 78vw); }
  .footer-meta { flex-direction: row; align-items: center; gap: 22px; }
}

/* ==========================================================================
   19. Tablet — 768px and up
   ========================================================================== */
@media (min-width: 768px) {
  .split-head,
  .reel-head,
  .rakaz-head { grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); gap: 40px; align-items: end; }
  .split-head p,
  .reel-head p,
  .rakaz-head p { margin-top: 0; }

  .hero-sticky { padding-top: calc(var(--header-h) + 70px); }
  .hero-chapter { padding-block: 52px; }

  .group-architecture { padding: 32px; }
  .group-parent { width: min(680px, 100%); margin-inline: auto; padding: 22px 26px; }
  .group-parent > span { display: block; margin-inline-start: auto; color: rgba(255, 255, 255, .18); font-family: var(--font-en); font-size: 30px; }
  .group-lines { height: 60px; }
  .group-companies { grid-template-columns: 1fr 1fr; gap: 18px; }
  .group-company { padding: 28px; }
  .evidence-ledger { grid-template-columns: 1fr 1fr; gap: 12px; }

  .capability-card { padding: 34px; gap: 32px; }
  .cap-media { min-height: 260px; }
  .cap-media img { width: min(100%, 280px); }
  .full-cycle { padding: 32px; }
  .full-cycle ol { grid-template-columns: 1fr 1fr; }

  .case-visual { height: 62vh; height: 62svh; min-height: 420px; }
  .case-step { padding-block: 44px; }

  .reel-card { flex-basis: min(440px, 58vw); padding: 28px; }
  .reel-card h3 { font-size: 23px; }

  .archive-toolbar { grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); align-items: center; }
  .project-filters { flex-wrap: wrap; overflow: visible; }
  .record-method,
  .reference-label { grid-template-columns: 160px 1fr; gap: 24px; align-items: start; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .projects-more .button { width: auto; }

  .qantara-feature { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; margin-bottom: 90px; }
  .heritage-mosaic { grid-template-columns: 1.05fr .75fr; grid-template-rows: 190px 170px; }
  .heritage-photo { height: auto; }
  .photo-main { grid-column: auto; grid-row: 1 / 3; height: auto; }
  .museum-feature { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 40px; align-items: center; padding: 34px; }
  .museum-media { height: 100%; min-height: 380px; }
  .museum-radar { width: 200px; height: 200px; }

  .digital-layout { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 26px; align-items: center; }
  .console-body { grid-template-columns: 60px 1fr; }
  .console-body > aside { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 22px; border-inline-end: 1px solid rgba(255, 255, 255, .08); }
  .console-body aside b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--gold-400); color: var(--ink); font-family: var(--font-en); }
  .console-body aside i { width: 20px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
  .console-body aside i.is-active { background: var(--gold-400); }
  .console-top b { display: block; }
  .console-content { padding: 26px; }
  .console-chart { height: 180px; }

  .training-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 30px; align-items: start; }
  .training-list { grid-template-columns: 1fr 1fr; }
  .training-copy { padding: 30px; }
  .partners { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .rakaz-services { grid-template-columns: repeat(4, 1fr); }
  .rakaz-services article { min-height: 150px; padding: 20px; }
  .rakaz-gallery { grid-template-columns: 1fr 1fr; }
  .rakaz-large { grid-column: 1 / -1; height: 380px; }

  .contact-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); gap: 50px; align-items: center; }
  .contact-background img { inset-inline-start: auto; width: 60%; opacity: .24; }
  .contact-background span { background: linear-gradient(to left, rgba(4, 23, 25, .35), rgba(4, 23, 25, .9) 45%, var(--petrol-950) 78%); }
  html[dir="ltr"] .contact-background span { background: linear-gradient(to right, rgba(4, 23, 25, .35), rgba(4, 23, 25, .9) 45%, var(--petrol-950) 78%); }

  .footer-layout { flex-direction: row; align-items: center; justify-content: space-between; padding-block: 34px; }
}

/* ==========================================================================
   20. Laptop — 1024px and up. The cinematic scroll behaviour starts here,
   matching the media query the JavaScript uses.
   ========================================================================== */
@media (min-width: 1024px) {
  .primary-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 24px);
  }
  .primary-nav a {
    position: relative;
    padding-block: 12px;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .25s;
  }
  .primary-nav a::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 4px;
    height: 1px;
    background: var(--gold-400);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .28s var(--ease-out);
  }
  .primary-nav a:is(:hover, .is-active) { color: var(--white); }
  .primary-nav a:is(:hover, .is-active)::after { transform: scaleX(1); }
  .brand { min-width: 190px; }
  .brand img { width: 45px; height: 45px; }
  .brand-copy b { font-size: 13px; }
  .menu-toggle { display: none; }
  .mobile-navigation { display: none !important; }
  .nav-contact {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 18px;
    border-radius: 999px;
    background: var(--gold-400);
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
  }
  .site-header { top: clamp(14px, 1.5vw, 22px); width: min(var(--shell-max), 100% - 48px); }
  body.admin-bar .site-header { top: calc(clamp(14px, 1.5vw, 22px) + 32px); }
  .nav-shell { padding: 9px 10px 9px 16px; border-radius: 24px; }

  /* Sticky five-chapter hero. */
  .hero-story { height: 440vh; }
  .hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    min-height: 640px;
    padding: 0;
  }
  .hero-media { inset: 0; height: auto; }
  .hero-media::after { display: none; }
  .hero-visual { opacity: 0; transform: scale(1.08); will-change: opacity, transform; }
  .hero-visual:not(:first-child) { display: block; }
  .hero-visual::before {
    background: linear-gradient(to left, rgba(3, 17, 20, .96) 0%, rgba(3, 17, 20, .78) 42%, rgba(3, 17, 20, .28) 74%, rgba(3, 17, 20, .6) 100%);
  }
  html[dir="ltr"] .hero-visual::before {
    background: linear-gradient(to right, rgba(3, 17, 20, .96) 0%, rgba(3, 17, 20, .78) 42%, rgba(3, 17, 20, .28) 74%, rgba(3, 17, 20, .6) 100%);
  }
  .hero-visual > span {
    display: block;
    position: absolute;
    z-index: 4;
    inset: 0;
    background: radial-gradient(circle at calc(50% + var(--mx) * 12%) calc(50% + var(--my) * 12%), rgba(216, 173, 98, .14), transparent 36%);
  }
  .hero-grid {
    display: block;
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: .17;
    background-image:
      linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: linear-gradient(90deg, black, transparent 85%);
  }
  .hero-pointer-light {
    display: block;
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(520px circle at calc(50% + var(--mx) * 25%) calc(50% + var(--my) * 25%), rgba(216, 173, 98, .13), transparent 64%);
    pointer-events: none;
  }
  .hero-object {
    display: block;
    position: absolute;
    z-index: -1;
    width: clamp(130px, 14vw, 240px);
    border-radius: 50%;
    opacity: .18;
    mix-blend-mode: screen;
    pointer-events: none;
  }
  .hero-object-radio { inset-inline-end: 15%; top: 20%; }
  .hero-object-shield { inset-inline-end: 5%; bottom: 6%; width: clamp(100px, 11vw, 180px); }

  .hero-shell { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: center; padding-top: 90px; }
  .hero-copy { width: min(820px, 68vw); min-height: 520px; }
  .hero-chapter {
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    width: 100%;
    padding-block: 0;
    border-bottom: 0;
    opacity: 0;
    visibility: hidden;
    filter: blur(6px);
    transform: translateY(calc(-50% + 40px));
    will-change: transform, opacity, filter;
  }
  .hero-chapter.is-active { visibility: visible; }

  .hero-hud {
    display: grid;
    gap: 18px;
    align-self: center;
    justify-self: end;
    padding: 20px 16px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-md);
    background: rgba(3, 20, 22, .42);
    backdrop-filter: blur(16px);
  }
  .hero-count { display: flex; align-items: baseline; gap: 5px; font-family: var(--font-en); }
  .hero-count b { color: var(--gold-400); font-size: 30px; }
  .hero-count span { color: rgba(255, 255, 255, .44); font-size: 12px; }
  .hero-progress { width: 100%; height: 2px; background: rgba(255, 255, 255, .16); overflow: hidden; }
  .hero-progress i { display: block; width: 0; height: 100%; background: var(--gold-400); }
  .hero-labels { display: flex; flex-direction: column; gap: 9px; }
  .hero-labels > span { color: rgba(255, 255, 255, .38); font-family: var(--font-en); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; transition: color .25s; }
  .hero-labels > span.is-active { color: var(--white); }

  .scroll-cue {
    display: flex;
    position: absolute;
    z-index: 5;
    inset-inline-start: 50%;
    bottom: 18px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
    letter-spacing: .08em;
  }
  .scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--gold-400), transparent); animation: cue 1.8s ease-in-out infinite; }
  @keyframes cue {
    0%, 100% { transform: scaleY(.45); transform-origin: top; opacity: .4; }
    50% { transform: scaleY(1); opacity: 1; }
  }

  /* Stacking capability cards. */
  .capability-stack { display: block; }
  .capability-card {
    position: sticky;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .68fr);
    gap: 48px;
    min-height: 540px;
    align-items: center;
    margin-bottom: 32px;
    padding: clamp(34px, 4vw, 58px);
  }
  .cap-telecom { top: 108px; }
  .cap-security { top: 122px; }
  .cap-digital { top: 136px; }
  body.admin-bar .cap-telecom { top: 140px; }
  body.admin-bar .cap-security { top: 154px; }
  body.admin-bar .cap-digital { top: 168px; }
  .cap-index { margin-bottom: 20px; font-size: 30px; }
  .cap-media { order: 0; min-height: 340px; }
  .cap-media img { width: min(100%, 420px); }
  .cap-media > span { bottom: 14px; }
  .full-cycle { grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); gap: 44px; margin-top: 64px; align-items: center; }

  /* Sticky case-study visual, dimmed inactive steps. */
  .case-layout { grid-template-columns: minmax(0, 1.03fr) minmax(320px, .72fr); gap: clamp(38px, 6vw, 84px); align-items: start; }
  .case-visual { position: sticky; top: calc(var(--header-h) + 40px); height: calc(100vh - var(--header-h) - 78px); height: calc(100svh - var(--header-h) - 78px); min-height: 560px; }
  body.admin-bar .case-visual { top: calc(var(--header-h) + 72px); }
  .case-map {
    display: block;
    position: absolute;
    z-index: 3;
    inset-inline-end: -80px;
    top: -46px;
    width: 280px;
    border-radius: 50%;
    opacity: .18;
    mix-blend-mode: screen;
  }
  .case-steps { padding-bottom: 22vh; }
  .case-step { min-height: 68vh; padding-block: 60px; opacity: .42; }
  .case-step.is-active { opacity: 1; }

  /* Scroll-driven horizontal reel. */
  .projects-reel { height: 460vh; }
  .projects-sticky { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 100px 24px; }
  .reel-viewport { overflow: visible; scroll-snap-type: none; }
  .project-reel-track { gap: 22px; transform: translate3d(calc(var(--reel-x, 0) * -1px), 0, 0); will-change: transform; }
  .reel-card { flex-basis: min(520px, 40vw); scroll-snap-align: none; padding: 30px; min-height: 400px; }
  .reel-card h3 { margin-top: 32px; font-size: clamp(24px, 2vw, 34px); }
  .reel-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    color: rgba(255, 255, 255, .52);
    font-family: var(--font-en);
  }
  .reel-progress { flex: 1; height: 2px; background: rgba(255, 255, 255, .16); overflow: hidden; }
  .reel-progress b { display: block; width: 100%; height: 100%; background: var(--gold-400); transform: scaleX(0); transform-origin: right; }
  html[dir="ltr"] .reel-progress b { transform-origin: left; }

  .heritage-mosaic { grid-template-rows: 260px 230px; gap: 14px; }
  .photo-float {
    display: block;
    position: absolute;
    width: 170px; height: 225px;
    inset-inline-start: 42%;
    bottom: -50px;
    border: 8px solid #271b15;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .34);
  }
  .qantara-feature { margin-bottom: 120px; }
  .museum-media { min-height: 460px; }
  .museum-radar { width: 230px; height: 230px; }
  .museum-metrics { grid-template-columns: .7fr 1.1fr .9fr; }

  .console-object {
    display: block;
    position: absolute;
    inset-inline-end: -80px;
    bottom: -85px;
    width: 270px;
    border-radius: 50%;
    opacity: .24;
    mix-blend-mode: screen;
  }
  .console-chart { height: 200px; }

  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .rakaz-gallery { grid-template-columns: 1.3fr .7fr .7fr; grid-auto-rows: 260px; }
  .rakaz-gallery figure { height: auto; }
  .rakaz-large { grid-column: auto; grid-row: span 2; height: auto; }
  .contact-section { min-height: 88vh; min-height: 88svh; display: flex; align-items: center; }
}

/* ==========================================================================
   21. Desktop — 1280px and up
   ========================================================================== */
@media (min-width: 1280px) {
  .evidence-ledger { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .evidence-ledger b { font-size: 16px; }
  .heritage-mosaic { grid-template-rows: 300px 260px; }
  .museum-media { min-height: 520px; }
  .reel-card { flex-basis: min(540px, 34vw); }
  .rakaz-gallery { grid-auto-rows: 300px; }
}

/* ==========================================================================
   22. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }

  /* Undo every scroll-driven layout so the page reads as a plain document. */
  .hero-story,
  .projects-reel { height: auto !important; }
  .hero-sticky {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    padding: calc(var(--header-h) + 60px) 0 60px !important;
  }
  .hero-media { position: absolute; inset-inline: 0; top: 0; height: 100vh; height: 100svh; }
  .hero-visual:not(:first-child) { display: none !important; }
  .hero-visual:first-child { opacity: 1 !important; transform: none !important; }
  .hero-shell { display: block !important; height: auto !important; padding-top: 0 !important; }
  .hero-copy { width: 100% !important; min-height: 0 !important; }
  .hero-chapter {
    position: relative !important;
    top: auto !important;
    padding-block: 44px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    transform: none !important;
  }
  .hero-hud,
  .scroll-cue,
  .hero-object { display: none !important; }
  .capability-stack { display: grid !important; gap: 16px; }
  .capability-card { position: relative !important; top: auto !important; min-height: 0 !important; margin-bottom: 0 !important; }
  .case-visual { position: relative !important; top: auto !important; height: 60vh !important; height: 60svh !important; min-height: 320px !important; }
  .case-step { min-height: 0 !important; opacity: 1 !important; }
  .projects-sticky { position: relative !important; min-height: 0 !important; }
  .reel-viewport { overflow-x: auto !important; }
  .project-reel-track { transform: none !important; }
}

/* ==========================================================================
   23. Print — the profile is a document first
   ========================================================================== */
@media print {
  .site-header,
  .top-progress,
  .mobile-navigation,
  .scroll-cue,
  .hero-hud,
  .clients-marquee,
  .archive-toolbar,
  .projects-more,
  .heritage-texture,
  .museum-radar,
  .hero-object,
  .console-object,
  .case-map { display: none !important; }

  html,
  body { background: #fff !important; color: #000 !important; font-size: 10.5pt; }
  * { background-image: none !important; box-shadow: none !important; text-shadow: none !important; }
  :is(section, .section, footer, article, div) { background-color: transparent !important; color: #14181a !important; }
  :is(h1, h2, h3, h4, b, .eyebrow) { color: #07191c !important; }

  .hero-story,
  .projects-reel { height: auto !important; }
  .hero-sticky,
  .projects-sticky,
  .case-visual,
  .capability-card { position: static !important; height: auto !important; min-height: 0 !important; }
  .hero-media,
  .digital-background,
  .contact-background { display: none !important; }
  .hero-chapter { position: static !important; opacity: 1 !important; visibility: visible !important; filter: none !important; transform: none !important; }
  .case-image:not(.is-active) { display: none !important; }
  .case-step { min-height: 0 !important; opacity: 1 !important; }
  .reel-viewport { overflow: visible !important; }
  .project-reel-track { display: grid !important; grid-template-columns: 1fr 1fr; width: auto !important; transform: none !important; }
  .reel-card { break-inside: avoid; }
  .project-card.is-extra { display: flex !important; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .section { padding-block: 18pt; }
  section { break-inside: avoid-page; }
}
