/* ==========================================================================
   All Civils Management Consultancies — site styles
   Brand tokens are defined once here; components use the semantic tokens.
   ========================================================================== */

:root {
  /* Core palette (see brand.html) */
  --night: #010F24;        /* page background */
  --navy: #011733;         /* logo navy */
  --navy-raised: #0A2147;  /* cards and raised surfaces */
  --navy-line: #1C3762;    /* hairlines on dark */
  --civil-blue: #1F5BFF;   /* signature blue: panels, primary actions */
  --civil-blue-deep: #1342C8;
  --blue-text: #8FAEFF;    /* blue for text on dark backgrounds (AA) */
  --steel: #A9B6C8;        /* silver: secondary text, metal details */
  --steel-dark: #8E9AAC;
  --chalk: #EEF2F7;        /* primary text on dark, light surfaces */
  --white: #FFFFFF;

  /* Semantic */
  --bg: var(--night);
  --surface: var(--navy-raised);
  --text: var(--chalk);
  --text-muted: var(--steel);
  --line: var(--navy-line);
  --accent: var(--civil-blue);
  --focus: #FFD166;

  /* Type */
  --font-latin: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-arabic: "Noto Kufi Arabic", "Archivo", system-ui, sans-serif;
  --font: var(--font-latin);

  /* Classic typographic scale: 12 14 16 18 21 24 36 48 60 72 */
  --fs-xs: 0.875rem;   /* 14 */
  --fs-sm: 1rem;       /* 16 */
  --fs-base: 1.125rem; /* 18 */
  --fs-md: 1.3125rem;  /* 21 */
  --fs-lg: 1.5rem;     /* 24 */
  --fs-xl: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);   /* 28 → 36 */
  --fs-2xl: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);    /* 36 → 60 */
  --fs-3xl: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);  /* 44 → 84 */

  /* Space (8pt) */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4rem; --s7: 6rem; --s8: 8rem;

  --container: 76rem;
  --radius: 4px;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --dur: 200ms;
}

/* Arabic switches the type family and loosens leading for the script */
html[lang="ar"] { --font: var(--font-arabic); }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { line-height: 1.85; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 var(--s2); max-width: 62ch; }
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  font-stretch: 112%;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
html[lang="ar"] :is(h1, h2, h3, h4) { font-stretch: 100%; letter-spacing: 0; line-height: 1.35; font-weight: 700; }
h1 { font-size: var(--fs-3xl); }
html[lang="ar"] h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
ul, ol.steps { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; inset-inline-start: var(--s2); top: -100px; z-index: 1000;
  background: var(--chalk); color: var(--navy); padding: var(--s1) var(--s2); font-weight: 600;
}
.skip-link:focus { top: var(--s2); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.lede { font-size: var(--fs-md); color: var(--text-muted); max-width: 52ch; }

/* --------------------------------------------------------------------------
   Survey marks: the "+" crosshairs and dotted grid borrowed from site plans
   -------------------------------------------------------------------------- */
.marked { position: relative; }
.mark {
  position: absolute; width: 14px; height: 14px; pointer-events: none;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  opacity: .9;
}
.mark--tl { top: 14px; inset-inline-start: 14px; }
.mark--tr { top: 14px; inset-inline-end: 14px; }
.mark--bl { bottom: 14px; inset-inline-start: 14px; }
.mark--br { bottom: 14px; inset-inline-end: 14px; }

.dot-grid {
  background-image: radial-gradient(circle, rgba(169,182,200,.55) 1.2px, transparent 1.6px);
  background-size: 48px 48px;
  background-position: center;
}

/* Section rule with blue survey nodes */
.rule { position: relative; height: 1px; background: var(--line); }
.rule::before, .rule::after {
  content: ""; position: absolute; top: -3.5px; width: 8px; height: 8px; background: var(--accent);
}
.rule::before { inset-inline-start: calc(50% - var(--container) / 2 + 0px); }
.rule::after { inset-inline-end: calc(50% - var(--container) / 2 + 0px); }
@media (max-width: 1260px) { .rule::before { inset-inline-start: 1.25rem; } .rule::after { inset-inline-end: 1.25rem; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: var(--white);
  display: inline-flex; align-items: stretch; gap: 3px;
  min-height: 48px; text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
  cursor: pointer; border: 0; padding: 0; background: none; color: var(--btn-fg); font-family: inherit;
}
.btn__label, .btn__icon {
  display: inline-flex; align-items: center; background: var(--btn-bg); border-radius: var(--radius);
  transition: background-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn__label { padding: 0 1.25rem; }
.btn__icon { width: 48px; justify-content: center; }
.btn__icon svg { width: 18px; height: 18px; }
html[dir="rtl"] .btn__icon svg { transform: scaleX(-1); }
.btn:hover .btn__label, .btn:hover .btn__icon { background: var(--civil-blue-deep); }
.btn:hover .btn__icon svg { transform: translateX(2px); }
html[dir="rtl"] .btn:hover .btn__icon svg { transform: scaleX(-1) translateX(2px); }
.btn__icon svg { transition: transform var(--dur) var(--ease-out); }
.btn:active .btn__label, .btn:active .btn__icon { transform: translateY(1px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--chalk); }
.btn--ghost .btn__label, .btn--ghost .btn__icon { box-shadow: inset 0 0 0 1.5px var(--steel-dark); }
.btn--ghost:hover .btn__label, .btn--ghost:hover .btn__icon { background: rgba(169,182,200,.12); }

.btn--light { --btn-bg: var(--chalk); --btn-fg: var(--navy); }
.btn--light:hover .btn__label, .btn--light:hover .btn__icon { background: var(--white); }
.btn--block { display: flex; width: 100%; }
.btn--block .btn__label { flex: 1; justify-content: flex-end; }
html[dir="rtl"] .btn--block .btn__label { justify-content: flex-start; }

.text-link { color: var(--blue-text); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   Announcement bar + navigation
   -------------------------------------------------------------------------- */
.announce {
  background: var(--accent); color: var(--white); font-size: var(--fs-xs); font-weight: 500;
  text-align: center; padding: .5rem 3rem; position: relative;
}
.announce a { color: inherit; font-weight: 700; text-underline-offset: .2em; white-space: nowrap; }
.announce__close {
  position: absolute; inset-inline-end: .5rem; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  background: none; border: 0; color: inherit; cursor: pointer; border-radius: var(--radius);
}
.announce__close:hover { background: rgba(255,255,255,.15); }
.announce[hidden] { display: none; }

.site-header { position: sticky; top: 0; z-index: 100; padding: .75rem 0; transition: background-color var(--dur); }
.site-header.is-scrolled { background: rgba(1,15,36,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav {
  display: flex; align-items: center; gap: var(--s2);
  background: var(--navy-raised); border: 1px solid var(--line); border-radius: 6px;
  padding: .375rem .375rem .375rem 1rem; min-height: 60px;
}
html[dir="rtl"] .nav { padding: .375rem 1rem .375rem .375rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; margin-inline-end: auto; }
.brand__mark { width: 52px; height: auto; }
.brand__word { width: 148px; height: auto; }
.nav__links { display: flex; gap: .25rem; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  text-decoration: none; font-size: var(--fs-sm); font-weight: 500; color: var(--chalk); border-radius: var(--radius);
}
.nav__links a:hover { background: rgba(169,182,200,.12); }
.nav__links a[aria-current="true"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--accent); }
.lang-toggle {
  min-height: 44px; padding: 0 .875rem; border-radius: var(--radius); cursor: pointer;
  background: transparent; color: var(--chalk); border: 1px solid var(--line);
  font-family: var(--font-arabic); font-size: var(--fs-sm); font-weight: 600;
}
html[lang="ar"] .lang-toggle { font-family: var(--font-latin); }
.lang-toggle:hover { border-color: var(--steel-dark); }
.nav__cta .btn__label { padding: 0 1rem; }
.nav__toggle {
  display: none; width: 48px; height: 48px; border-radius: var(--radius); cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--chalk); place-items: center;
}
.mobile-menu { display: none; }

@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .mobile-menu[data-open="true"] {
    display: block; margin-top: .5rem; background: var(--navy-raised); border: 1px solid var(--line);
    border-radius: 6px; padding: .5rem;
  }
  .mobile-menu a:not(.btn) {
    display: flex; align-items: center; min-height: 52px; padding: 0 1rem; text-decoration: none;
    font-size: var(--fs-md); font-weight: 500; border-bottom: 1px solid var(--line);
  }
  .mobile-menu .btn { margin-top: .75rem; }
}
@media (max-width: 480px) {
  .brand__word { width: 112px; }
  .brand__mark { width: 42px; }
  .lang-toggle { padding: 0 .625rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: var(--s6) 0 var(--s7); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(169,182,200,.28) 1.1px, transparent 1.5px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s5); align-items: center; }
.hero h1 { margin-bottom: var(--s3); }
.hero .lede { margin-bottom: var(--s4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__art { position: relative; justify-self: end; width: min(100%, 520px); }
.hero__art svg { width: 100%; height: auto; overflow: visible; }

.facts {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: var(--s6); border-top: 1px solid var(--line);
}
.facts li { padding: var(--s3) var(--s3) 0 0; }
html[dir="rtl"] .facts li { padding: var(--s3) 0 0 var(--s3); }
.facts li + li { border-inline-start: 1px solid var(--line); padding-inline-start: var(--s3); }
.facts strong { display: block; font-size: var(--fs-md); font-weight: 600; font-stretch: 108%; color: var(--white); }
html[lang="ar"] .facts strong { font-stretch: 100%; }
.facts span { color: var(--text-muted); font-size: var(--fs-sm); }

/* Hero build-up: one orchestrated moment on load */
@media (prefers-reduced-motion: no-preference) {
  .iso-rise { animation: rise .9s var(--ease-out) both; animation-delay: calc(250ms + var(--d) * 140ms); }
  .iso-beam { animation: drop .8s var(--ease-out) both; animation-delay: 780ms; }
  .iso-ghost { animation: fade 1s ease both; animation-delay: 1.3s; }
}
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .hero { padding-top: var(--s4); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; width: min(78%, 340px); }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { border-inline-start: 0; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--s7) 0; }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: end; margin-bottom: var(--s5); }
.section__head p { margin: 0; color: var(--text-muted); font-size: var(--fs-md); }
@media (max-width: 900px) { .section { padding: var(--s6) 0; } .section__head { grid-template-columns: 1fr; gap: var(--s2); } }

/* --------------------------------------------------------------------------
   Split panel: three services, one partner (tabs)
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); min-height: 520px; }
.split__panel {
  background: var(--accent); color: var(--white); display: flex; flex-direction: column;
  padding: var(--s5) var(--s5) var(--s4);
}
.split__kicker { font-size: var(--fs-sm); font-weight: 600; text-align: center; margin: 0 auto; }
.split__stage { flex: 1; display: grid; place-items: center; text-align: center; padding: var(--s4) 0; }
.split__statement { font-size: var(--fs-xl); font-weight: 600; font-stretch: 108%; line-height: 1.15; max-width: 20ch; margin: 0 auto; }
html[lang="ar"] .split__statement { font-stretch: 100%; line-height: 1.5; }
.split__statement[hidden] { display: none; }
.tabs { display: flex; justify-content: center; gap: .375rem; flex-wrap: wrap; }
.tab {
  min-height: 44px; padding: 0 1rem; border-radius: var(--radius); cursor: pointer;
  font: inherit; font-size: var(--fs-sm); font-weight: 600;
  background: rgba(255,255,255,.14); color: var(--white); border: 0;
  transition: background-color var(--dur) var(--ease-out);
}
.tab:hover { background: rgba(255,255,255,.24); }
.tab[aria-selected="true"] { background: var(--white); color: var(--civil-blue-deep); }
.split__art { display: grid; place-items: center; padding: var(--s5); color: var(--steel); }
.split__frame { background: var(--chalk); width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; padding: var(--s4); }
.split__frame img { width: 100%; height: auto; }
.split__frame img[hidden] { display: none; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__panel { padding: var(--s5) var(--s3) var(--s3); min-height: 380px; }
  .split__art { padding: var(--s4) var(--s3); }
}

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */
.cards { display: grid; gap: 1rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1081px) {
  .cards--3 > .card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
}
@media (max-width: 1080px) { .cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .cards--2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .5rem; display: flex; flex-direction: column; }
.card__top { padding: var(--s3) var(--s3) var(--s2); }
.card__title { font-size: var(--fs-xl); }
.card__intro { color: var(--text-muted); margin: .75rem 0 0; }
.card__list { display: grid; gap: .375rem; margin: var(--s2) 0 .5rem; flex: 1; align-content: start; }
.card__list li {
  display: flex; gap: .875rem; align-items: baseline; background: var(--night);
  padding: 1rem 1.125rem; border-radius: 3px; font-size: var(--fs-base); line-height: 1.45;
}
.card__list li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--accent); transform: translateY(-1px); }

/* Media slot: photo/video when available, isometric illustration as fallback */
.media {
  position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px;
  background-color: var(--night);
}
.media.dot-grid { background-size: 32px 32px; }
.media__fallback { position: absolute; inset: 12% 18%; width: 64%; height: 76%; object-fit: contain; }
.media__photo, .media__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.media.has-photo .media__photo, .media.has-video .media__video { opacity: 1; }
.media.has-photo .media__fallback, .media.has-video .media__fallback { visibility: hidden; }
.media__toggle {
  position: absolute; inset-inline-end: .75rem; bottom: .75rem; width: 44px; height: 44px;
  display: none; place-items: center; border-radius: var(--radius); cursor: pointer;
  background: rgba(1,15,36,.72); color: var(--white); border: 1px solid rgba(255,255,255,.25);
}
.media.has-video .media__toggle { display: grid; }
.media__toggle .icon-play { display: none; }
.media__toggle[aria-pressed="true"] .icon-play { display: block; }
.media__toggle[aria-pressed="true"] .icon-pause { display: none; }

/* Audience cards (local / international) */
.audience .card__head { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s3) var(--s2); min-height: 220px; }
.audience .card__head img { width: 46%; max-width: 230px; height: auto; align-self: center; }
.audience .card__kicker { color: var(--text-muted); font-size: var(--fs-md); margin: .75rem 0 0; }
@media (max-width: 560px) {
  .audience .card__head { flex-direction: column; min-height: 0; }
  .audience .card__head img { width: 70%; align-self: flex-end; }
}

/* --------------------------------------------------------------------------
   Approach: a genuine sequence, so it is numbered
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); counter-reset: step; }
.step { position: relative; padding: var(--s4) var(--s3) 0 0; counter-increment: step; }
html[dir="rtl"] .step { padding: var(--s4) 0 0 var(--s3); }
.step::before {
  content: ""; position: absolute; top: -4.5px; inset-inline-start: 0; width: 8px; height: 8px; background: var(--accent);
}
.step__num { display: block; font-size: var(--fs-2xl); font-weight: 300; font-stretch: 125%; line-height: 1; color: var(--steel-dark); margin-bottom: var(--s3); font-variant-numeric: tabular-nums; }
.step h3 { font-size: var(--fs-lg); font-stretch: 108%; margin-bottom: .5rem; letter-spacing: -0.01em; }
html[lang="ar"] .step h3 { font-stretch: 100%; }
.step p { color: var(--text-muted); font-size: var(--fs-base); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: var(--s4); }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Statement
   -------------------------------------------------------------------------- */
.statement { text-align: center; padding: var(--s7) 0 var(--s7); }
.statement__art { width: min(60%, 260px); margin: 0 auto var(--s4); }
.statement h2 { position: relative; z-index: 1; font-size: clamp(2.5rem, 1.2rem + 5.6vw, 6rem); font-stretch: 116%; line-height: .98; max-width: 16ch; margin: 0 auto var(--s3); }
html[lang="ar"] .statement h2 { font-stretch: 100%; line-height: 1.3; }
.statement p { margin: 0 auto var(--s4); color: var(--text-muted); font-size: var(--fs-md); }
.statement .hero__actions { justify-content: center; }

/* --------------------------------------------------------------------------
   About / credentials
   -------------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: start; }
.about h2 { margin-bottom: var(--s3); }
.about__text p { color: var(--text-muted); font-size: var(--fs-md); }
.licence { margin: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; }
.licence div { display: grid; grid-template-columns: 11rem 1fr; gap: var(--s2); padding: 1.125rem var(--s3); border-bottom: 1px solid var(--line); }
.licence div:last-child { border-bottom: 0; }
.licence dt { color: var(--text-muted); font-size: var(--fs-sm); }
.licence dd { margin: 0; font-weight: 500; }
.licence .licence__mark { display: flex; justify-content: center; padding: var(--s4) var(--s3) !important; background: var(--navy); }
.licence__mark img { width: min(100%, 420px); height: auto; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .licence div { grid-template-columns: 1fr; gap: .125rem; }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1.3fr .9fr; gap: 1rem; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: var(--s4); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s2); }
.field { display: grid; gap: .375rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field .req { color: var(--blue-text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .75rem 1rem; font: inherit; font-size: var(--fs-base);
  color: var(--white); background: var(--night); border: 1.5px solid #2A4775; border-radius: var(--radius);
  transition: border-color var(--dur);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A9B6C8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-inline-end: 2.75rem; }
html[dir="rtl"] .field select { background-position: left 1rem center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel-dark); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-text); box-shadow: 0 0 0 3px rgba(143,174,255,.35); }
.field [aria-invalid="true"] { border-color: #FF8A8A; }
.field__error { color: #FFB4B4; font-size: var(--fs-sm); display: flex; gap: .375rem; align-items: center; }
.field__error:empty { display: none; }
.field__hint { color: var(--text-muted); font-size: var(--fs-xs); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s4); }
.form__note { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); max-width: 36ch; }
.form__status { margin-top: var(--s2); padding: 1rem 1.125rem; border-radius: var(--radius); background: rgba(143,174,255,.12); border: 1px solid rgba(143,174,255,.4); }
.form__status:empty { display: none; }
@media (max-width: 640px) { .form { padding: var(--s3); } .form__grid { grid-template-columns: 1fr; } }

.direct { background: var(--accent); border-radius: 6px; padding: var(--s4); color: var(--white); display: flex; flex-direction: column; gap: var(--s3); }
.direct h3 { font-size: var(--fs-lg); font-stretch: 108%; }
html[lang="ar"] .direct h3 { font-stretch: 100%; }
.direct__item { display: grid; gap: .125rem; }
.direct__label { font-size: var(--fs-sm); }
.direct__value { font-size: var(--fs-md); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
a.direct__value:hover { text-decoration: underline; text-underline-offset: .2em; }
.direct__value[dir="ltr"] { unicode-bidi: isolate; }
.direct address { font-style: normal; font-weight: 500; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer with skyline bars
   -------------------------------------------------------------------------- */
.skyline { height: 200px; display: flex; align-items: flex-end; gap: 6px; padding-inline: 1rem; overflow: hidden; }
.skyline span {
  flex: 1 1 0; min-width: 4px; height: var(--h);
  background: linear-gradient(to top, var(--civil-blue) 0%, rgba(31,91,255,.55) 45%, rgba(31,91,255,0) 100%);
  transform-origin: bottom;
}
@media (prefers-reduced-motion: no-preference) {
  .skyline.is-visible span { animation: grow 1.1s var(--ease-out) both; animation-delay: calc(var(--i) * 18ms); }
  .skyline:not(.is-visible) span { transform: scaleY(0); }
}
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.footer { background: var(--civil-blue); color: var(--white); padding: var(--s6) 0 var(--s4); }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s4); }
.footer__logo { display: inline-flex; align-items: center; gap: 1rem; }
.footer__logo img:first-child { width: 84px; height: auto; }
.footer__logo img:last-child { width: 200px; height: auto; }
.footer__tag { margin-top: var(--s2); font-size: var(--fs-sm); font-weight: 500; }
.footer h2 { font-size: var(--fs-md); font-stretch: 100%; letter-spacing: 0; font-weight: 700; margin-bottom: var(--s2); }
.footer li + li { margin-top: .25rem; }
.footer a { display: inline-flex; min-height: 32px; align-items: center; text-decoration: none; font-weight: 500; }
.footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer__legal { margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid rgba(255,255,255,.35); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); font-size: var(--fs-xs); }
.footer__legal p { margin: 0; max-width: none; }
.footer :focus-visible { outline-color: var(--white); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* Scroll reveal for section heads only (kept subtle; disabled for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

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

/* --------------------------------------------------------------------------
   Reviews: client logo banner + testimonials
   -------------------------------------------------------------------------- */
.logos { position: relative; display: flex; align-items: center; gap: var(--s2); border-block: 1px solid var(--line); padding: var(--s3) 0; margin-bottom: var(--s5); }
.logos__label { flex: none; font-size: var(--fs-sm); color: var(--text-muted); max-width: 12ch; line-height: 1.35; }
.logos__viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos__track { display: flex; gap: 1rem; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  .logos__track { animation: marquee 40s linear infinite; }
  html[dir="rtl"] .logos__track { animation-name: marquee-rtl; }
  .logos[data-paused="true"] .logos__track, .logos:hover .logos__track, .logos:focus-within .logos__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.logo-tile {
  flex: none; width: 180px; height: 72px; display: grid; place-items: center; border-radius: 4px;
  background: var(--surface); border: 1px solid var(--line); color: var(--steel); font-weight: 600; font-size: var(--fs-sm);
}
.logo-tile img { max-width: 70%; max-height: 60%; width: auto; filter: grayscale(1) brightness(1.8); opacity: .85; }
.logos__pause {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--chalk);
}
.logos__pause .icon-play { display: none; }
.logos__pause[aria-pressed="true"] .icon-play { display: block; }
.logos__pause[aria-pressed="true"] .icon-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .logos__pause { display: none; } .logos__track { flex-wrap: wrap; width: auto; } .logos__track [aria-hidden="true"] { display: none; } }
@media (max-width: 640px) { .logos { flex-wrap: wrap; } .logos__label { max-width: none; flex-basis: calc(100% - 60px); } .logos__viewport { order: 3; flex-basis: 100%; } }

.reviews { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1rem; }
.review { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: var(--s4); }
.review--lead { background: var(--accent); border-color: var(--accent); }
.review blockquote { margin: 0; }
.review blockquote p { font-size: var(--fs-md); line-height: 1.5; margin: 0; }
.review--lead blockquote p { font-size: var(--fs-lg); font-weight: 500; line-height: 1.4; }
.review__quote-mark { width: 32px; height: 32px; color: var(--blue-text); margin-bottom: var(--s2); }
.review--lead .review__quote-mark { color: var(--white); }
html[dir="rtl"] .review__quote-mark { transform: scaleX(-1); }
.review figcaption { display: flex; align-items: center; gap: .875rem; }
.review__avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--steel); font-weight: 700; font-size: var(--fs-sm); }
.review--lead .review__avatar { background: rgba(1,15,36,.35); color: var(--white); }
.review__name { display: block; font-weight: 700; }
.review__role { display: block; font-size: var(--fs-sm); color: var(--text-muted); }
.review--lead .review__role { color: var(--white); }
@media (max-width: 1080px) { .reviews { grid-template-columns: 1fr 1fr; } .review--lead { grid-column: 1 / -1; } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }

/* Placeholder content: visible marker so sample reviews/logos are never published by mistake */
.is-placeholder { position: relative; outline: 1.5px dashed rgba(255, 209, 102, .7); outline-offset: -6px; }
.is-placeholder::after {
  content: attr(data-placeholder); position: absolute; top: 10px; inset-inline-end: 10px;
  background: #FFD166; color: #1A1300; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 3px; line-height: 1.5;
}
.logo-tile.is-placeholder::after { content: none; }
.logo-tile.is-placeholder { outline-offset: -4px; }

/* ==========================================================================
   Photography layer (v2): video hero, photo panels, experience section
   ========================================================================== */
:root { --header-h: 84px; --radius-photo: 10px; }

/* Header floats over the hero video */
.site-header { background: transparent; }

/* Hero video banner */
.hero--media {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 940px);
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + var(--s7)) 0 var(--s4);
  display: flex; align-items: flex-end;
}
.hero--media::before { display: none; }
.hero__media { position: absolute; inset: 0; z-index: -1; transform: scale(calc(1 + var(--p, 0) * .08)); transform-origin: 60% 40%; will-change: transform; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; }
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero--media.has-video .hero__video { opacity: 1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(1,15,36,.94) 0%, rgba(1,15,36,.78) 34%, rgba(1,15,36,.25) 68%, rgba(1,15,36,.1) 100%),
    linear-gradient(0deg, var(--night) 0%, rgba(1,15,36,0) 38%),
    linear-gradient(180deg, rgba(1,15,36,.55) 0%, rgba(1,15,36,0) 22%);
}
html[dir="rtl"] .hero__media::after {
  background:
    linear-gradient(270deg, rgba(1,15,36,.94) 0%, rgba(1,15,36,.78) 34%, rgba(1,15,36,.25) 68%, rgba(1,15,36,.1) 100%),
    linear-gradient(0deg, var(--night) 0%, rgba(1,15,36,0) 38%),
    linear-gradient(180deg, rgba(1,15,36,.55) 0%, rgba(1,15,36,0) 22%);
}
.hero__inner { position: relative; width: min(100% - 2.5rem, var(--container)); }
.hero__copy { max-width: 40rem; opacity: calc(1 - var(--p, 0) * 1.2); }
.hero--media h1 { margin-bottom: var(--s3); }
.hero--media .lede { color: #D3DBE6; }
.hero--media .facts { margin-top: var(--s6); border-top-color: rgba(238,242,247,.22); }
.hero--media .facts li + li { border-inline-start-color: rgba(238,242,247,.22); }
.hero--media .facts span { color: #C3CDDA; }
.hero__toggle {
  position: absolute; inset-inline-end: 1.25rem; bottom: 1.25rem; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: var(--radius); cursor: pointer;
  background: rgba(1,15,36,.6); color: var(--white); border: 1px solid rgba(255,255,255,.3);
}
.hero__toggle[hidden] { display: none; }
.hero__toggle .icon-play { display: none; }
.hero__toggle[aria-pressed="true"] .icon-play { display: block; }
.hero__toggle[aria-pressed="true"] .icon-pause { display: none; }
@media (max-width: 900px) {
  .hero--media { min-height: 92svh; padding-top: calc(var(--header-h) + var(--s6)); }
  .hero--media .hero__media::after { background: linear-gradient(0deg, var(--night) 8%, rgba(1,15,36,.82) 48%, rgba(1,15,36,.35) 100%); }
  .hero__poster, .hero__video { object-position: 72% 50%; }
  .hero--media .facts li, .hero--media .facts li + li { border-bottom-color: rgba(238,242,247,.18); }
}

/* Split panel: photo side */
.split__art { position: relative; padding: 0; overflow: hidden; color: var(--white); min-height: 360px; }
.split__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__photo[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .split__photo:not([hidden]) { animation: fade .6s ease both; } }
.split__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1,15,36,.35), transparent 40%); pointer-events: none; }
.split__art .mark { z-index: 1; }

/* Partner section: copy and principles left, framed photo with a badge right */
.exp { display: grid; grid-template-columns: .95fr 1.05fr; gap: var(--s6); align-items: center; }
.exp h2 { margin-bottom: var(--s3); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s4); margin-top: var(--s4); }
.pillars li { position: relative; padding-top: var(--s2); border-top: 1px solid var(--line); }
.pillars li::before { content: ""; position: absolute; top: -4.5px; inset-inline-start: 0; width: 8px; height: 8px; background: var(--accent); }
.pillars h3 { font-size: var(--fs-md); font-stretch: 108%; letter-spacing: -0.01em; margin-bottom: .375rem; }
html[lang="ar"] .pillars h3 { font-stretch: 100%; }
.pillars p { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.5; }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* Engagement options, under "How we work" */
.engage { margin-top: var(--s6); padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.engage__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: end; margin-bottom: var(--s4); }
.engage__head h3 { font-size: var(--fs-xl); }
.engage__head p { margin: 0; color: var(--text-muted); font-size: var(--fs-md); }
.engage__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.engage__list li { background: var(--night); border-radius: 3px; padding: var(--s3); border-top: 3px solid var(--accent); }
.engage__list h4 { font-size: var(--fs-lg); font-stretch: 108%; letter-spacing: -0.01em; margin: 0 0 .5rem; }
html[lang="ar"] .engage__list h4 { font-stretch: 100%; }
.engage__list p { margin: 0; color: var(--text-muted); font-size: var(--fs-base); line-height: 1.5; }
@media (max-width: 900px) {
  .engage { padding: var(--s4) var(--s3); }
  .engage__head { grid-template-columns: 1fr; gap: var(--s2); }
  .engage__list { grid-template-columns: 1fr; }
}
.exp__photo { position: relative; margin: 0; border-radius: var(--radius-photo); overflow: visible; }
.exp__photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-photo); }
.exp__badge {
  position: absolute; inset-inline-start: -1.5rem; bottom: 1.5rem; max-width: 19rem;
  background: var(--chalk); color: var(--navy); border-radius: 8px; padding: 1rem 1.25rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.35); display: grid; gap: .25rem;
}
.exp__badge strong { font-size: var(--fs-lg); font-stretch: 110%; line-height: 1.15; color: var(--civil-blue-deep); }
html[lang="ar"] .exp__badge strong { font-stretch: 100%; }
.exp__badge span { font-size: var(--fs-sm); line-height: 1.4; }
@media (max-width: 900px) {
  .exp { grid-template-columns: 1fr; gap: var(--s4); }
  .exp__badge { inset-inline-start: .75rem; bottom: .75rem; max-width: calc(100% - 1.5rem); }
}

/* Service and audience photos */
.media { aspect-ratio: 16 / 10; }
.media__photo { transition: opacity .6s ease, transform .8s var(--ease-out); }
.card:hover .media__photo { transform: scale(1.03); }
.card__photo { margin: 0; overflow: hidden; border-radius: 3px; aspect-ratio: 16 / 9; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.card:hover .card__photo img { transform: scale(1.03); }
.audience .card__top { padding: var(--s3) var(--s3) var(--s2); }
.audience .card__kicker { color: var(--text-muted); font-size: var(--fs-md); margin: .5rem 0 0; }

/* Statement over a full-bleed skyline */
.statement--photo { position: relative; isolation: isolate; overflow: hidden; padding: var(--s8) 0; }
.statement__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; z-index: -2; }
.statement--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(1,15,36,.62) 0%, rgba(1,15,36,.78) 70%), linear-gradient(0deg, var(--night), transparent 25%, transparent 75%, var(--night)); }
.statement--photo p { color: #D3DBE6; }

/* About photo */
.about__photo { margin: var(--s4) 0 0; }
.about__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-photo); }

@media (prefers-reduced-motion: reduce) {
  .hero__media { transform: none; }
  .hero__copy { opacity: 1; }
  .card:hover .media__photo, .card:hover .card__photo img { transform: none; }
}

/* Living photos: slow cinematic zoom on the service photos until real clips exist */
.media--live .media__toggle { display: grid; }
#service-admin .media { --kb-origin: 38% 62%; --kb-x: -2.5%; --kb-y: -1%; }
#service-management .media { --kb-origin: 50% 40%; --kb-x: 0%; --kb-y: -2%; }
#service-hr .media { --kb-origin: 56% 48%; --kb-x: 2.5%; --kb-y: -1%; }
@media (prefers-reduced-motion: no-preference) {
  .media--live .media__photo {
    transform-origin: var(--kb-origin, 50% 50%);
    animation: kenburns 18s ease-in-out infinite alternate;
    animation-play-state: paused;
  }
  .media--live.is-playing .media__photo { animation-play-state: running; }
  .media--live.is-paused .media__photo { animation-play-state: paused; }
  .card:hover .media--live .media__photo { transform: none; }
}
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(var(--kb-x, 0%), var(--kb-y, 0%), 0); }
}
