/* =====================================================================
   AL RADAA Company for Security Services — shared stylesheet
   One stylesheet for both pages: Arabic (dir="rtl") and English (dir="ltr").
   Layout uses logical properties (margin-inline-*, inset-inline-*, …) so
   the same rules mirror automatically. Direction-specific overrides are
   kept to the few places logical properties can't reach (gradients, arrows).
   ===================================================================== */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../fonts/noto-kufi-arabic-var.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-medium.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-bold.woff2") format("woff2");
  font-weight: 700 800;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-medium.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --navy: #0B1F3A;
  --navy-2: #13294B;
  --navy-3: #081830;
  --gold: #A8865A;          /* accent on light backgrounds — never body text */
  --gold-l: #C9A86B;        /* accent / text on navy */
  --grey: #5B6676;          /* secondary text (5.6:1 on white, 5.1:1 on paper) */
  --text: #1E2B3C;
  --paper: #F5F3EF;
  --white: #FFFFFF;
  --rule: #DCD6CB;
  --rule-dark: rgba(255, 255, 255, 0.16);
  --on-dark: rgba(255, 255, 255, 0.86);
  --focus: var(--navy-2);

  --latin-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --latin-body: "Barlow", "Segoe UI", sans-serif;
  --ar-head: "Noto Kufi Arabic", "Barlow Condensed", sans-serif;
  --ar-body: "IBM Plex Sans Arabic", "Barlow", "Segoe UI", sans-serif;

  --header-h: 76px;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Language-specific type roles */
html[lang="en"] {
  --f-head: var(--latin-head);
  --f-body: var(--latin-body);
  --f-label: var(--latin-head);
  --f-statement: var(--latin-body);
  --lh-body: 1.65;
  --lh-head: 1.0;
}
html[lang="ar"] {
  --f-head: var(--ar-head);
  --f-body: var(--ar-body);
  --f-label: var(--ar-body);
  --f-statement: var(--ar-head);
  --lh-body: 1.9;
  --lh-head: 1.4;
}
/* Mixed-script fragments inherit the right family */
.ff-latin { font-family: var(--latin-head); }
html[lang="en"] [lang="ar"] { font-family: var(--ar-body); letter-spacing: 0 !important; text-transform: none !important; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
bdi, .ltr { unicode-bidi: isolate; direction: ltr; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.on-dark, .s-navy, .site-header, .site-footer, .hero, .mobile-menu, .rail { --focus: var(--gold-l); }

.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: 12px;
  inset-inline-start: 12px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--gold-l);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- type helpers */
.label {
  font-family: var(--f-label);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}
html[lang="en"] .label { text-transform: uppercase; letter-spacing: 0.16em; }
html[lang="ar"] .label { font-size: 0.9375rem; font-weight: 500; }

.num {
  font-family: var(--latin-head);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
}
.eyebrow::before { /* thin vertical bar — the mark's motif */
  content: "";
  order: 1;
  inline-size: 2px;
  block-size: 1.15em;
  background: var(--gold);
}
.eyebrow .num { order: 0; font-size: 0.875rem; }
.eyebrow .eyebrow__text { order: 2; }
.s-navy .eyebrow { color: var(--gold-l); }
.s-navy .eyebrow::before { background: var(--gold-l); }

.h2 {
  margin-block-start: 1.25rem;
  font-family: var(--f-head);
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  line-height: var(--lh-head);
  font-weight: 700;
  color: var(--navy);
  text-wrap: balance;
}
html[lang="en"] .h2 { text-transform: uppercase; font-weight: 600; letter-spacing: 0.01em; line-height: 0.98; }
html[lang="ar"] .h2 { font-size: clamp(1.9rem, 3.9vw, 3.2rem); }
.s-navy .h2 { color: var(--white); }

.h3 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--navy);
}
html[lang="en"] .h3 { text-transform: uppercase; font-weight: 600; letter-spacing: 0.035em; font-size: 1.45rem; line-height: 1.1; }
html[lang="ar"] .h3 { font-size: 1.25rem; line-height: 1.6; }

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3rem);
  line-height: 1.7;
  color: var(--text);
}
html[lang="ar"] .lead { line-height: 2; }
.muted { color: var(--grey); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-block-size: 50px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--f-label);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
html[lang="en"] .btn { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.9rem; }
html[lang="ar"] .btn { font-size: 1rem; font-weight: 500; }
.btn:active { transform: translateY(1px); }
.btn .arrow { inline-size: 18px; block-size: 18px; flex: none; transition: transform 0.3s var(--ease); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }

.btn--gold { background: var(--gold-l); color: var(--navy); }
.btn--gold:hover { background: #D9C08F; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--gold-l); background: rgba(11, 31, 58, 0.45); }
.btn--sm { min-block-size: 42px; padding: 0.55rem 1.1rem; }
html[lang="en"] .btn--sm { font-size: 0.8rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------------------------------------------------------------- brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
  flex: none;
}
.brand__mark { inline-size: auto; block-size: 42px; aspect-ratio: 62 / 79; }
.brand__rule { inline-size: 1px; block-size: 30px; background: rgba(201, 168, 107, 0.6); }
.brand__word { block-size: auto; }
html[lang="ar"] .brand__word { inline-size: 66px; }
html[lang="en"] .brand__word { inline-size: 96px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  color: var(--white);
  transition: background-color 0.35s, box-shadow 0.35s;
}
.site-header::before { /* legibility scrim while transparent over the hero */
  content: "";
  position: absolute;
  inset: 0 0 -40px;
  background: linear-gradient(180deg, rgba(8, 24, 48, 0.72), rgba(8, 24, 48, 0));
  pointer-events: none;
  transition: opacity 0.35s;
}
.site-header.is-solid { background: var(--navy); box-shadow: 0 1px 0 rgba(201, 168, 107, 0.35); }
.site-header.is-solid::before { opacity: 0; }
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  block-size: var(--header-h);
}
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav a {
  position: relative;
  display: block;
  padding-block: 0.5rem;
  font-family: var(--f-label);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--on-dark);
  text-decoration: none;
  transition: color 0.2s;
}
html[lang="en"] .nav a { text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.85rem; font-weight: 600; }
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  block-size: 2px;
  background: var(--gold-l);
  transform: scaleX(0);
  transform-origin: var(--origin-start, left);
  transition: transform 0.3s var(--ease);
}
[dir="rtl"] { --origin-start: right; }
.nav a:hover, .nav a.is-active { color: var(--white); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 1.1rem; }
.nav + .header__actions { margin-inline-start: clamp(0.5rem, 1.5vw, 1.5rem); }
.lang-switch {
  display: inline-flex;
  align-items: center;
  min-block-size: 42px;
  padding-inline-start: 1.1rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
}
.lang-switch:lang(en) { font-family: var(--latin-head); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; font-weight: 600; }
.lang-switch:lang(ar) { font-family: var(--ar-body); }
.lang-switch:hover { color: var(--gold-l); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  inline-size: 46px;
  block-size: 46px;
  margin-inline-end: -8px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-toggle__icon { position: relative; inline-size: 24px; block-size: 14px; }
.menu-toggle__icon span {
  position: absolute;
  inset-inline: 0;
  block-size: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle__icon span:nth-child(1) { inset-block-start: 0; }
.menu-toggle__icon span:nth-child(2) { inset-block-start: 6px; inset-inline-start: 8px; }
.menu-toggle__icon span:nth-child(3) { inset-block-start: 12px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  overflow-y: auto;
  background: var(--navy);
  color: var(--white);
  border-block-start: 1px solid rgba(201, 168, 107, 0.35);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { animation: menuIn 0.35s var(--ease) both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu__inner { padding-block: 1.5rem 3rem; display: grid; gap: 2rem; }
.mobile-menu ol { list-style: none; padding: 0; }
.mobile-menu li { border-block-end: 1px solid var(--rule-dark); }
.mobile-menu li a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1rem;
  font-family: var(--f-head);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  text-decoration: none;
}
html[lang="en"] .mobile-menu li a { text-transform: uppercase; font-weight: 600; letter-spacing: 0.03em; font-size: 1.9rem; }
.mobile-menu li a .num { font-size: 0.85rem; color: var(--gold-l); min-inline-size: 1.6rem; }
.mobile-menu__contact { display: grid; gap: 0.35rem; color: var(--on-dark); }
.mobile-menu__contact a { text-decoration: none; justify-self: start; }

@media (max-width: 1079px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__actions { margin-inline-start: auto; }
}
@media (max-width: 599px) {
  :root { --header-h: 64px; }
  .header__cta { display: none; }
  .brand__mark { block-size: 36px; }
  .brand { gap: 11px; }
  .brand__rule { block-size: 24px; }
  html[lang="ar"] .brand__word { inline-size: 56px; }
  html[lang="en"] .brand__word { inline-size: 84px; }
  .lang-switch { padding-inline-start: 0.9rem; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-block-size: max(640px, min(100svh, 1000px));
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 62% 35%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(11, 31, 58, 0.92) 0%, rgba(11, 31, 58, 0) 42%),
    linear-gradient(var(--hero-dir, 90deg), rgba(11, 31, 58, 0.96) 0%, rgba(11, 31, 58, 0.86) 34%, rgba(11, 31, 58, 0.42) 66%, rgba(11, 31, 58, 0.22) 100%);
}
[dir="rtl"] .hero { --hero-dir: 270deg; }
.hero__content {
  position: relative;
  padding-block: calc(var(--header-h) + 3.5rem) clamp(4.5rem, 9vh, 7rem);
  max-inline-size: 50rem;
}
.hero__mark { block-size: 76px; inline-size: auto; aspect-ratio: 62 / 79; margin-block-end: 2rem; }
.hero__eyebrow { color: var(--gold-l); }
.hero__eyebrow::before { background: var(--gold-l); }
.hero__title {
  margin-block-start: 1.25rem;
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.3;
  font-size: clamp(2.6rem, 7.4vw, 6.25rem);
  text-wrap: balance;
}
html[lang="en"] .hero__title {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.9;
  font-size: clamp(3.1rem, 7vw, 7rem);
}
/* Seven bars that draw in like the mark: outer + centre in gold, centre tallest */
.hero__bars {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 1vw, 11px);
  block-size: calc(64px * var(--bs, 1));
  margin-block: 2rem 1.75rem;
  padding-block-start: calc(8px * var(--bs, 1));
}
.hero__bars span {
  inline-size: 4px;
  block-size: var(--h);
  background: var(--white);
  transform-origin: top;
  animation: barDraw 0.9s var(--ease) both;
  animation-delay: calc(0.35s + var(--i) * 0.11s);
}
.hero__bars span:nth-child(1), .hero__bars span:nth-child(7) { --h: calc(38px * var(--bs, 1)); --i: 3; background: var(--gold-l); }
.hero__bars span:nth-child(2), .hero__bars span:nth-child(6) { --h: calc(44px * var(--bs, 1)); --i: 2; }
.hero__bars span:nth-child(3), .hero__bars span:nth-child(5) { --h: calc(49px * var(--bs, 1)); --i: 1; }
.hero__bars span:nth-child(4) { --h: calc(62px * var(--bs, 1)); --i: 0; margin-block-start: calc(-8px * var(--bs, 1)); background: var(--gold-l); }
@keyframes barDraw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.hero__sub {
  max-inline-size: 36rem;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}
html[lang="ar"] .hero__sub { line-height: 1.95; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-block-start: 2.25rem; }
.hero__fade { animation: fadeUp 0.9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero__cue {
  position: absolute;
  inset-block-end: 2.25rem;
  inset-inline-end: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--on-dark);
  text-decoration: none;
}
.hero__cue-line { position: relative; inline-size: 1px; block-size: 56px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.hero__cue-line::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  block-size: 40%;
  background: var(--gold-l);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
.hero__cue:hover { color: var(--white); }

@media (max-width: 799px) {
  .hero__cue { display: none; }
  .hero::before {
    background: linear-gradient(0deg, rgba(11, 31, 58, 0.97) 0%, rgba(11, 31, 58, 0.88) 45%, rgba(11, 31, 58, 0.5) 75%, rgba(11, 31, 58, 0.55) 100%);
  }
  .hero__media img { object-position: 70% 30%; }
  .hero__mark { block-size: 60px; margin-block-end: 1.5rem; }
}
@media (max-width: 599px) {
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* Desktop: the photo occupies the inline-end ~82% and fades into the navy
   field behind the copy, so the officers sit beside the headline rather than
   under it. Mirrors automatically for RTL (copy on the right, officers left). */
@media (min-width: 1080px) {
  .hero__media {
    inset-inline-start: 18%;
    -webkit-mask-image: linear-gradient(var(--hero-dir, 90deg), transparent 0%, #000 30%);
    mask-image: linear-gradient(var(--hero-dir, 90deg), transparent 0%, #000 30%);
  }
  .hero__media img { object-position: 0% 35%; }
  [dir="rtl"] .hero__media img { object-position: 100% 35%; }
}

/* Height budget: keep both hero CTAs above the fold on short laptop screens
   (1280x720, 1366x650, 1440x790, 1536x730). */
@media (min-width: 800px) and (max-height: 900px) {
  .hero { min-block-size: max(560px, 100svh); }
  .hero__content { padding-block: calc(var(--header-h) + 2rem) max(2.5rem, 11vh); }
  .hero__mark { block-size: 56px; margin-block-end: 1.25rem; }
  .hero .hero__bars { --bs: 0.8; margin-block: 1.4rem 1.1rem; }
  html[lang="en"] .hero__title { font-size: min(clamp(2.9rem, 6.4vw, 6rem), 11.5vh); }
  html[lang="ar"] .hero__title { font-size: min(clamp(2.4rem, 6vw, 5.25rem), 12vh); line-height: 1.25; }
  .hero__ctas { margin-block-start: 1.75rem; }
  .hero__cue { inset-block-end: 1.25rem; }
  .hero__cue-line { block-size: 40px; }
}
@media (min-width: 800px) and (max-height: 760px) {
  .hero__content { padding-block-start: calc(var(--header-h) + 1.25rem); }
  .hero__mark { display: none; } /* the header already carries the mark */
  .hero .hero__bars { --bs: 0.7; margin-block: 1.1rem 0.9rem; }
  .hero__title { margin-block-start: 1rem; }
  html[lang="en"] .hero__title { font-size: min(clamp(2.8rem, 6.2vw, 5.6rem), 11vh); }
  html[lang="ar"] .hero__title { font-size: min(clamp(2.3rem, 5.6vw, 4.75rem), 11.5vh); }
  .hero__sub { font-size: 1.1rem; }
  .hero__ctas { margin-block-start: 1.4rem; }
}

/* ---------------------------------------------------------------- sections */
.section { padding-block: var(--section-y); position: relative; }
.s-paper { background: var(--paper); }
.s-white { background: var(--white); }
.s-navy { background: var(--navy); color: var(--white); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.4vw, 2rem);
}

/* About */
.about__intro { grid-column: 1 / span 6; align-self: center; }
.about__intro .lead { margin-block-start: 2rem; }
.about__intro .lead em { font-style: italic; color: var(--navy); font-weight: 500; }
.about__figure { grid-column: 8 / span 5; }

.barmask { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy); }
.barmask img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.barmask__bars {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  pointer-events: none;
}
.barmask__bars span {
  background: var(--paper);
  transform-origin: bottom;
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.barmask__bars span:nth-child(1), .barmask__bars span:nth-child(7) { --i: 0; }
.barmask__bars span:nth-child(2), .barmask__bars span:nth-child(6) { --i: 1; }
.barmask__bars span:nth-child(3), .barmask__bars span:nth-child(5) { --i: 2; }
.barmask__bars span:nth-child(4) { --i: 3; }
html:not(.js) .barmask__bars, .is-in .barmask__bars span { transform: scaleY(0); }
html:not(.js) .barmask__bars { display: none; }
.figure-accent { position: relative; }
.figure-accent::after { /* gold bar standing off the photo's inline-start edge */
  content: "";
  position: absolute;
  inset-inline-start: -14px;
  inset-block-start: 12%;
  inline-size: 3px;
  block-size: 46%;
  background: var(--gold);
}

.vm {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-block-start: clamp(4rem, 8vw, 6.5rem);
  border-block-start: 1px solid var(--rule);
}
.vm__item { padding-block: 2.25rem 0.5rem; padding-inline-end: clamp(1.5rem, 4vw, 3.5rem); }
.vm__item + .vm__item { border-inline-start: 1px solid var(--rule); padding-inline: clamp(1.5rem, 4vw, 3.5rem) 0; }
.vm__item .label { color: var(--grey); }
.statement {
  margin-block-start: 1rem;
  font-family: var(--f-statement);
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  line-height: 1.45;
  color: var(--navy);
  font-weight: 500;
  text-wrap: pretty;
}
html[lang="ar"] .statement { font-weight: 600; line-height: 1.9; font-size: clamp(1.2rem, 1.9vw, 1.5rem); }

.values-block { grid-column: 1 / -1; margin-block-start: clamp(4rem, 8vw, 6rem); }
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-start: 1.75rem;
}
.value {
  padding-block: 1.75rem 2rem;
  padding-inline: 0 clamp(1rem, 2.5vw, 2.25rem);
  border-block-start: 1px solid var(--rule);
}
.value:not(:nth-child(3n + 1)) { border-inline-start: 1px solid var(--rule); padding-inline-start: clamp(1rem, 2.5vw, 2.25rem); }
.value__head { display: flex; align-items: baseline; gap: 0.85rem; }
.value__head .num { font-size: 0.85rem; color: var(--grey); }
.value p { margin-block-start: 0.6rem; color: var(--grey); font-size: 1rem; }

/* Services ledger */
.split-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; row-gap: 1.5rem; align-items: end; }
.split-head > :first-child { grid-column: 1 / span 7; }
.split-head > :last-child { grid-column: 9 / span 4; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  border-block-start: 1px solid var(--rule);
  border-inline-start: 1px solid var(--rule);
}
.svc {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2.25rem) clamp(2rem, 3vw, 2.75rem);
  border-block-end: 1px solid var(--rule);
  border-inline-end: 1px solid var(--rule);
  background: var(--white);
  transition: background-color 0.35s;
}
.svc::before {
  content: "";
  position: absolute;
  inset-block: -1px;
  inset-inline-start: -1px;
  inline-size: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
}
.svc:hover { background: var(--paper); }
.svc:hover::before { transform: scaleY(1); }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc__icon { inline-size: 40px; block-size: 40px; color: var(--navy); }
.svc__top .num { font-size: 0.9rem; color: var(--grey); }
.svc .h3 { margin-block-start: 2.25rem; }
.svc p { margin-block-start: 0.6rem; color: var(--grey); font-size: 1rem; }

/* Sectors */
.sectors__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 6vw, 6rem);
  row-gap: clamp(3rem, 6vw, 5rem);
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
}
.sector:nth-child(even) { margin-block-start: clamp(4rem, 10vw, 9rem); }
.sector__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.sector__media img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sector:hover .sector__media img { transform: scale(1.035); }
.sector__media::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  inline-size: 4px;
  block-size: 38%;
  background: var(--gold-l);
}
.sector__body { display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; padding-block-start: 1.6rem; }
.sector__body .num { font-size: 1rem; color: var(--grey); padding-block-start: 0.35em; }
html[lang="ar"] .sector__body .num { padding-block-start: 0.55em; }
.sector__body p { grid-column: 2; margin-block-start: 0.65rem; color: var(--grey); max-inline-size: 34rem; }

/* Approach */
.approach__text { grid-column: 1 / span 5; align-self: center; }
.approach__text .lead { margin-block-start: 2rem; }
.approach__figure { grid-column: 7 / span 6; }
.approach__figure .frame { aspect-ratio: 16 / 11; overflow: hidden; background: var(--navy); }
.approach__figure img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 30% 50%; }
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-block-start: clamp(4.5rem, 8vw, 6.5rem);
  counter-reset: step;
}
.step {
  position: relative;
  padding-block-start: 1.75rem;
  padding-inline-end: 1.5rem;
  border-block-start: 1px solid var(--rule);
}
.step__bar {
  position: absolute;
  inset-block-end: 100%;
  inset-inline-start: 0;
  inline-size: 3px;
  block-size: var(--h);
  background: var(--gold);
  transform-origin: bottom;
  transition: transform 0.8s var(--ease);
  transition-delay: calc(var(--n) * 0.12s);
}
html.js .steps:not(.is-in) .step__bar { transform: scaleY(0); }
.step:nth-child(1) { --h: 14px; --n: 0; }
.step:nth-child(2) { --h: 22px; --n: 1; }
.step:nth-child(3) { --h: 30px; --n: 2; }
.step:nth-child(4) { --h: 38px; --n: 3; }
.step:nth-child(5) { --h: 46px; --n: 4; }
.step .num { font-size: 0.9rem; color: var(--grey); }
.step .h3 { margin-block-start: 0.5rem; }
.step p { margin-block-start: 0.4rem; color: var(--grey); font-size: 1rem; }

/* People & fleet */
.people__media { grid-column: 1 / span 7; position: relative; padding-block-end: 22%; }
.people__media .frame-a { aspect-ratio: 16 / 11; overflow: hidden; background: var(--navy); }
.people__media .frame-a img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 60% 50%; }
.people__media .frame-b {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: -2.5rem;
  inline-size: 56%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 10px solid var(--paper);
  background: var(--navy);
}
.people__media .frame-b img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 62% 60%; }
.people__text { grid-column: 9 / span 4; align-self: center; }
.people__text p { margin-block-start: 1.75rem; }
.specs { margin-block-start: 2.25rem; border-block-start: 1px solid var(--rule); }
.spec {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding-block: 0.85rem;
  border-block-end: 1px solid var(--rule);
}
.spec dt { color: var(--navy); }
.spec dd { color: var(--grey); font-size: 1rem; }

/* Clients */
.logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-block-start: clamp(2.5rem, 5vw, 3.5rem);
}
.logo-tile {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--white);
  border: 1px solid var(--rule);
  transition: border-color 0.3s;
}
.logo-tile img {
  position: absolute;
  inset: 18% 12%;
  inline-size: 76%;
  block-size: 64%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.82;
  transition: filter 0.4s, opacity 0.4s;
}
.logo-tile img.is-square { inset: 11% 12%; block-size: 78%; }
.client:hover .logo-tile { border-color: var(--gold); }
.client:hover .logo-tile img { filter: none; opacity: 1; }
.client figcaption { margin-block-start: 0.85rem; font-size: 0.9375rem; line-height: 1.6; color: var(--grey); }

/* Contact */
.contact__info { grid-column: 1 / span 5; }
.contact__info > p { margin-block-start: 1.5rem; color: var(--on-dark); max-inline-size: 28rem; }
.contact__list { margin-block-start: 2.5rem; border-block-start: 1px solid var(--rule-dark); }
.contact__item {
  display: grid;
  gap: 0.25rem;
  padding-block: 1.15rem;
  border-block-end: 1px solid var(--rule-dark);
}
.contact__item .label { color: var(--gold-l); }
.contact__item a {
  justify-self: start;
  font-family: var(--latin-head);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(var(--gold-l), var(--gold-l)) no-repeat 0 100% / 0 1px;
  transition: background-size 0.4s var(--ease);
}
[dir="rtl"] .contact__item a { background-position: 100% 100%; }
.contact__item a:hover { background-size: 100% 1px; }

.form {
  grid-column: 7 / span 6;
  align-self: start;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--navy-2);
  border-block-start: 3px solid var(--gold-l);
}
.form__title { font-family: var(--f-head); font-size: 1.5rem; font-weight: 700; line-height: 1.4; }
html[lang="en"] .form__title { text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.75rem; margin-block-start: 1.75rem; }
.field { display: grid; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field label { color: rgba(255, 255, 255, 0.82); }
.field label .req { color: var(--gold-l); }
.field input, .field textarea {
  inline-size: 100%;
  padding: 0.65rem 0;
  background: transparent;
  border: 0;
  border-block-end: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
  color: var(--white);
  font-size: 1.0625rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-block-size: 120px; resize: vertical; line-height: 1.6; }
.field input:hover, .field textarea:hover { border-block-end-color: rgba(255, 255, 255, 0.7); }
.field input:focus, .field textarea:focus { outline: none; border-block-end-color: var(--gold-l); box-shadow: 0 2px 0 var(--gold-l); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field.has-error input, .field.has-error textarea { border-block-end-color: #F4A79D; box-shadow: 0 2px 0 #F4A79D; }
.field__error { font-size: 0.875rem; color: #F8C2BA; min-block-size: 0; }
.field__error:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-block-start: 2rem; }
.form__note { flex: 1 1 16rem; font-size: 0.9rem; line-height: 1.6; color: rgba(255, 255, 255, 0.74); }
.form__status { margin-block-start: 1.25rem; font-size: 0.95rem; color: var(--gold-l); }
.form__status:empty { display: none; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-3); color: var(--on-dark); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; border-block-start: 1px solid var(--rule-dark); }
.footer__top { row-gap: 2.5rem; }
.footer__brand { grid-column: 1 / span 5; }
.footer__brand .brand__mark { block-size: 56px; }
.footer__brand .brand__rule { block-size: 40px; }
html[lang="ar"] .footer__brand .brand__word { inline-size: 88px; }
html[lang="en"] .footer__brand .brand__word { inline-size: 128px; }
.footer__tagline { margin-block-start: 1.5rem; font-family: var(--f-head); font-size: 1.35rem; font-weight: 700; color: var(--white); line-height: 1.5; }
html[lang="en"] .footer__tagline { text-transform: uppercase; font-weight: 600; letter-spacing: 0.06em; }
.footer__name { margin-block-start: 0.35rem; font-size: 0.95rem; }
.footer__col { grid-column: span 3; }
.footer__col:first-of-type { grid-column: 7 / span 3; }
.footer__col h2 { color: var(--gold-l); margin-block-end: 1rem; }
.footer__col li + li { margin-block-start: 0.45rem; }
.footer__col a { text-decoration: none; color: var(--on-dark); transition: color 0.2s; }
.footer__col a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold-l); text-underline-offset: 4px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-block-start: clamp(3rem, 6vw, 4.5rem);
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--rule-dark);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------------------------------------------------------------- 7-bar progress / back-to-top */
.rail {
  position: fixed;
  inset-block-end: 20px;
  inset-inline-end: 20px;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  inline-size: 54px;
  block-size: 54px;
  padding-block-start: 15px;
  background: var(--navy);
  box-shadow: 0 0 0 1px rgba(201, 168, 107, 0.35);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0.35s;
}
.rail.is-visible { opacity: 1; visibility: visible; transform: none; }
.rail span {
  inline-size: 2px;
  block-size: var(--h);
  background: rgba(255, 255, 255, 0.32);
  transition: background-color 0.3s, transform 0.3s;
}
.rail span:nth-child(1), .rail span:nth-child(7) { --h: 16px; }
.rail span:nth-child(2), .rail span:nth-child(6) { --h: 19px; }
.rail span:nth-child(3), .rail span:nth-child(5) { --h: 22px; }
.rail span:nth-child(4) { --h: 27px; margin-block-start: -4px; }
.rail span.is-past { background: rgba(255, 255, 255, 0.9); }
.rail span.is-active { background: var(--gold-l); }
.rail:hover span { background: var(--gold-l); }

/* ---------------------------------------------------------------- scroll reveal */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1079px) {
  .split-head > :first-child, .split-head > :last-child { grid-column: 1 / -1; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 4.5rem; }
  .people__text { grid-column: 8 / span 5; }
}
@media (max-width: 959px) {
  .about__intro, .about__figure,
  .approach__text, .approach__figure,
  .people__media, .people__text,
  .contact__info, .form,
  .footer__brand, .footer__col, .footer__col:first-of-type { grid-column: 1 / -1; }
  .about__figure { margin-block-start: 3rem; max-inline-size: 560px; }
  .barmask { aspect-ratio: 4 / 3; }
  .approach__figure { margin-block-start: 3rem; }
  .people__media { margin-block-end: 3.5rem; }
  .people__media .frame-b { inset-inline-end: 0; }
  .form { margin-block-start: 3rem; }
  .footer__col, .footer__col:first-of-type { grid-column: span 6; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value:not(:nth-child(3n + 1)) { border-inline-start: 0; padding-inline-start: 0; }
  .value:nth-child(even) { border-inline-start: 1px solid var(--rule); padding-inline-start: clamp(1rem, 2.5vw, 2.25rem); }
}
@media (max-width: 719px) {
  .vm { grid-template-columns: 1fr; }
  .vm__item + .vm__item { border-inline-start: 0; padding-inline: 0; border-block-start: 1px solid var(--rule); margin-block-start: 2rem; }
  .vm__item { padding-inline: 0; }
  .values { grid-template-columns: 1fr; }
  .value:nth-child(even) { border-inline-start: 0; padding-inline-start: 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
    padding: 1.4rem 1.25rem 1.5rem;
  }
  .svc__top { display: contents; }
  .svc__icon { grid-column: 1; grid-row: 1 / span 2; inline-size: 32px; block-size: 32px; }
  /* .num is direction:ltr (isolated digits), so logical insets would resolve LTR - use physical sides */
  .svc__top .num { position: absolute; inset-block-start: 1.55rem; right: 1.25rem; font-size: 0.8rem; }
  [dir="rtl"] .svc__top .num { right: auto; left: 1.25rem; }
  .svc .h3 { grid-column: 2; margin-block-start: 0.15rem; padding-inline-end: 2rem; }
  html[lang="en"] .svc .h3 { font-size: 1.3rem; }
  html[lang="ar"] .svc .h3 { font-size: 1.15rem; margin-block-start: 0; }
  .svc p { grid-column: 2; margin-block-start: 0.3rem; font-size: 0.97rem; }
  .sectors__list { grid-template-columns: 1fr; }
  .sector:nth-child(even) { margin-block-start: 0; }
  .steps { grid-template-columns: 1fr; row-gap: 0; margin-block-start: 3.5rem; }
  .step {
    border-block-start: 0;
    border-inline-start: 1px solid var(--rule);
    padding-block: 0 2.25rem;
    padding-inline: 1.5rem 0;
  }
  .step__bar { inset-block-end: auto; inset-block-start: 0; inset-inline-start: -2px; transform-origin: top; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__grid { grid-template-columns: 1fr; }
  .footer__col, .footer__col:first-of-type { grid-column: 1 / -1; }
  .spec { grid-template-columns: 6.5rem 1fr; }
  .figure-accent::after { inset-inline-start: -8px; }
  .rail { inline-size: 48px; block-size: 48px; padding-block-start: 12px; inset-block-end: 14px; inset-inline-end: 14px; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .barmask__bars { display: none; }
  .hero__cue-line::after { display: none; }
}

@media print {
  .site-header, .rail, .hero__cue, .mobile-menu, .form { display: none !important; }
  .hero { min-block-size: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
