/* ==========================================================================
   Frequency Lab — site styles
   Brand tokens come from the identity book (Coloepalette page):
   #032f3c teal · #d34439 coral · #e5e5e5 mist · #ffffff · #1c1c1c
   Type: Roboto (Latin), Graphik Arabic (Arabic). Motif: the five lenses.
   Bilingual: every string ships as <span class="en"> + <span class="ar">;
   the <html lang> attribute decides which one shows (see site.js).
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
/* Graphik Arabic is a commercial typeface: confirm the licence covers web embedding.
   Drop-in alternative from the brand book: Alexandria (Google Fonts, OFL). */
@font-face { font-family: "Graphik Arabic"; src: url("../fonts/graphik-arabic-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Graphik Arabic"; src: url("../fonts/graphik-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Graphik Arabic"; src: url("../fonts/graphik-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Graphik Arabic"; src: url("../fonts/graphik-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Graphik Arabic"; src: url("../fonts/graphik-arabic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --teal: #032f3c;
  --teal-deep: #021f28;
  --teal-raised: #0b4253;
  --coral: #d34439;
  --coral-hover: #b8382e;
  --coral-ink: #b3362c;          /* coral for small text: 4.8:1 on mist, 6:1 on white */
  --mist: #e5e5e5;
  --white: #ffffff;
  --ink: #1c1c1c;
  /* derived, contrast-checked */
  --muted: #42626b;              /* 5.2:1 on mist, 6.6:1 on white */
  --muted-on-dark: #a9bcc2;      /* 7.2:1 on teal */
  --line: rgba(3, 47, 60, .14);
  --line-strong: #5f767d;        /* form borders: 3.8:1 on mist, 4.8:1 on white */
  --line-on-dark: rgba(229, 229, 229, .2);

  --font-latin: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-arabic: "Graphik Arabic", "Roboto", "Segoe UI", Tahoma, sans-serif;
  --font: var(--font-latin);

  /* type scale (fluid, 375 → 1440) */
  --fs-display: clamp(2.75rem, 1.25rem + 6vw, 6.75rem);
  --fs-h1: clamp(2.5rem, 1.45rem + 4.3vw, 5.25rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.4vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.12rem + .55vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1.04rem + .4vw, 1.4375rem);
  --fs-body: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-small: .875rem;
  --fs-eyebrow: .75rem;
  --lh-tight: 1.04;
  --lh-head: 1.12;
  --lh-body: 1.65;
  --track-display: -.028em;
  --track-head: -.016em;
  --track-eyebrow: .32em;        /* the brand book's wide-tracked labels */

  /* spacing: 4/8 scale */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --section-y: clamp(64px, 40px + 6vw, 136px);
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1280px;
  --header-h: 64px;

  --radius-sm: 8px; --radius: 14px; --radius-lg: 24px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(3, 47, 60, .06), 0 4px 14px rgba(3, 47, 60, .06);
  --shadow-2: 0 2px 6px rgba(3, 47, 60, .08), 0 20px 44px rgba(3, 47, 60, .14);

  /* motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 360ms; --dur-4: 680ms;

  --dir: 1;                       /* flips horizontal motion in RTL */
  --z-header: 100; --z-skip: 1000;
  --focus: var(--coral);          /* ≥3:1 on teal, mist and white */

  /* lens shapes, geometry taken from the mark (see brand book "Constructoins") */
  --mask-lens: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 0C17 15.8 0 32.8 0 50C0 67.2 17 84.2 50 100C83 84.2 100 67.2 100 50C100 32.8 83 15.8 50 0Z'/%3E%3C/svg%3E");
  --mask-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M50 0C83 31.6 100 65.6 100 100H0C0 65.6 17 31.6 50 0Z'/%3E%3C/svg%3E");
  --mask-arches: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M9 28C14.9 50.8 18 75.2 18 100H0C0 75.2 3.1 50.8 9 28ZM29.5 10C35.4 38.4 38.5 69 38.5 100H20.5C20.5 69 23.6 38.4 29.5 10ZM50 0C55.9 31.6 59 65.6 59 100H41C41 65.6 44.1 31.6 50 0ZM70.5 10C76.4 38.4 79.5 69 79.5 100H61.5C61.5 69 64.6 38.4 70.5 10ZM91 28C96.9 50.8 100 75.2 100 100H82C82 75.2 85.1 50.8 91 28Z'/%3E%3C/svg%3E");

  color-scheme: light;
}
@media (min-width: 1024px) { :root { --header-h: 76px; } }
:root[dir="rtl"] { --dir: -1; }
:root[lang="ar"] {
  --font: var(--font-arabic);
  --lh-tight: 1.24; --lh-head: 1.34; --lh-body: 1.85;
  --track-display: 0; --track-head: 0; --track-eyebrow: 0;
  --fs-eyebrow: .875rem;
}

/* ---------- Page transitions (cross-document View Transitions; browsers without support just navigate) ---------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-old(root) { animation: vt-out 220ms var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 420ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Language switching ---------- */
:root[lang="ar"] .en,
:root:not([lang="ar"]) .ar { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--teal);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--coral); color: var(--white); }
[hidden] { display: none !important; }
.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;
}
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .icon-arrow { scale: -1 1; }

/* ---------- Surfaces ---------- */
.theme-light { --fg: var(--teal); --fg-muted: var(--muted); --rule: var(--line); color: var(--fg); }
.theme-dark  { --fg: var(--mist); --fg-muted: var(--muted-on-dark); --rule: var(--line-on-dark); color: var(--fg); }
.bg-teal  { background: var(--teal); }
.bg-deep  { background: var(--teal-deep); }
.bg-mist  { background: var(--mist); }
.bg-white { background: var(--white); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: var(--section-y); }
/* single-column grids may shrink below their content's min width (large text, long words);
   component rules further down set their own multi-column layouts at breakpoints */
.hero-grid, .intro-grid, .pillars, .services-layout, .work-item, .sector-hero-grid, .bring,
.duo, .steps, .footer-top, .contact-grid, .section-head, .form-row, .service-block, .step,
.service-group, .footer-cols > div { grid-template-columns: minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: var(--gap, var(--space-5)); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--space-3)); }
.section-head {
  display: grid; gap: var(--space-5); align-items: end;
  margin-bottom: clamp(32px, 4vw, 64px);
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr) auto; }
}
.section-head .lead { max-width: 58ch; color: var(--fg-muted); }

/* ---------- Typography ---------- */
.display, .h1, .h2, .h3 { font-weight: 500; text-wrap: balance; }
/* very large user font sizes: let a single long word break instead of overflowing */
.display, .h1, .h2, .h3, .cta-title, .intro-title, .lead { overflow-wrap: break-word; }
.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--track-display); }
.h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--track-display); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-head); letter-spacing: var(--track-head); }
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.005em; }
:root[lang="ar"] .display, :root[lang="ar"] .h1 { font-weight: 600; }
:root[lang="ar"] .h2, :root[lang="ar"] .h3 { font-weight: 600; letter-spacing: 0; }
.lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.55; text-wrap: pretty; }
:root[lang="ar"] .lead { font-weight: 400; line-height: 1.8; }
.prose { display: flex; flex-direction: column; gap: 1em; max-width: 64ch; text-wrap: pretty; }
.muted { color: var(--fg-muted); }
.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--fg-muted);
}
:root[lang="ar"] .eyebrow { text-transform: none; font-weight: 500; }
/* the deck's short bar under headings */
.bar::after {
  content: ""; display: block;
  width: 56px; height: 5px; margin-top: .45em;
  border-radius: 3px; background: var(--coral);
}
.center { text-align: center; }
.center .bar::after { margin-inline: auto; }
.accent { color: var(--coral); }
em.it { font-style: italic; font-weight: 700; }
:root[lang="ar"] em.it { font-style: normal; }
.text-link {
  color: inherit; font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--coral);
  text-decoration-thickness: 2px; text-underline-offset: .3em;
  transition: color var(--dur-2);
}
.text-link:hover { color: var(--coral-ink); }
.theme-dark .text-link:hover { color: var(--white); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -100px; z-index: var(--z-skip);
  padding: 12px 18px; border-radius: var(--radius-pill);
  background: var(--coral); color: var(--white); font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--coral); --btn-fg: var(--white); --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid var(--btn-bd); border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  max-width: 100%; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.btn:hover { --btn-bg: var(--coral-hover); }
.btn [dir="ltr"] { overflow-wrap: anywhere; }
.btn:active { transform: scale(.97); }
.btn .icon { width: 20px; height: 20px; transition: translate var(--dur-2) var(--ease-out); }
.btn:hover .icon-arrow { translate: calc(var(--dir) * 3px) 0; }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor; }
.btn--ghost:hover { --btn-bg: var(--fg); --btn-fg: var(--btn-ink, var(--teal)); --btn-bd: var(--fg); }
.theme-light .btn--ghost:hover { --btn-ink: var(--white); }
.btn--dark { --btn-bg: var(--teal); --btn-fg: var(--white); }
.btn--dark:hover { --btn-bg: var(--teal-raised); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 500; text-decoration: none; color: inherit;
}
.link-arrow > span:not(.icon) {
  text-decoration: underline; text-decoration-color: var(--coral);
  text-decoration-thickness: 2px; text-underline-offset: .35em;
}
.link-arrow .icon { transition: translate var(--dur-2) var(--ease-out); }
.link-arrow:hover .icon-arrow { translate: calc(var(--dir) * 4px) 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--teal); color: var(--mist);
  transition: box-shadow var(--dur-3) var(--ease-out);
  view-transition-name: site-header;   /* stays put while the page underneath changes */
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line-on-dark), 0 12px 32px rgba(2, 31, 40, .28); }
.header-inner { display: flex; align-items: center; gap: var(--space-3); min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 44px; margin-inline-end: auto;
  color: var(--mist); text-decoration: none;
}
.brand-mark { height: 30px; width: 33.4px; fill: currentColor; overflow: visible; }
.brand-mark path { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .brand:hover .brand-mark path { animation: ripple 760ms var(--ease-in-out); }
  .brand:hover .brand-mark path:nth-child(2), .brand:hover .brand-mark path:nth-child(4) { animation-delay: 70ms; }
  .brand:hover .brand-mark path:nth-child(1), .brand:hover .brand-mark path:nth-child(5) { animation-delay: 140ms; }
}
@keyframes ripple { 45% { transform: scaleY(.68); } }
.brand-word { height: 14px; width: 94px; fill: currentColor; }
@media (min-width: 1024px) {
  .brand-mark { height: 34px; width: 37.9px; }
  .brand-word { height: 16px; width: 107.4px; }
}
.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; padding-inline: 14px; border-radius: var(--radius-pill);
  color: var(--mist); text-decoration: none; font-weight: 500; font-size: .9375rem;
  transition: background-color var(--dur-2) var(--ease-out);
}
.primary-nav a::before {
  content: ""; position: absolute; inset-inline: 14px; bottom: 7px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: .45; scale: 0 1; transition: scale var(--dur-3) var(--ease-out);
}
.primary-nav a:hover::before { scale: 1 1; }
.primary-nav a[aria-current="page"]::after,
.primary-nav a.is-active::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 7px;
  height: 2px; border-radius: 2px; background: var(--coral);
}
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-cta { display: none; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding-inline: 14px;
  border: 1px solid var(--line-on-dark); border-radius: var(--radius-pill);
  background: transparent; color: var(--mist);
  font-size: .9375rem; font-weight: 500; line-height: 1;
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2);
}
.lang-toggle:hover { background: rgba(229, 229, 229, .09); border-color: rgba(229, 229, 229, .4); }
.lang-toggle .en { font-family: var(--font-arabic); }   /* shows "العربية" */
.lang-toggle .ar { font-family: var(--font-latin); }    /* shows "English" */
.menu-toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-on-dark); color: var(--mist); text-decoration: none;
}
.menu-toggle:hover { background: rgba(229, 229, 229, .09); }
.menu-toggle .icon { width: 22px; height: 22px; }
@media (min-width: 1024px) {
  .primary-nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .header-inner { gap: var(--space-5); }
}

/* ---------- Mobile menu (native <dialog>) ---------- */
.menu-dialog {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--teal); color: var(--mist);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-dialog[open] { display: flex; flex-direction: column; animation: menu-in var(--dur-3) var(--ease-out); }
.menu-dialog::backdrop { background: rgba(2, 31, 40, .6); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.menu-close {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-on-dark);
  background: transparent; color: var(--mist);
}
.menu-close .icon { width: 22px; height: 22px; }
.menu-links { list-style: none; margin: var(--space-5) 0 0; padding: 0; }
.menu-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; border-bottom: 1px solid var(--line-on-dark);
  font-size: clamp(1.625rem, 6.5vw, 2.25rem); font-weight: 500; text-decoration: none;
}
.menu-links a[aria-current="page"], .menu-links a.is-active { color: var(--white); }
.menu-links a[aria-current="page"] .icon, .menu-links a.is-active .icon { color: var(--coral); }
.menu-foot { margin-top: auto; padding-block: var(--space-7) var(--space-6); display: grid; gap: var(--space-4); }
.menu-foot .btn { width: 100%; }
.menu-contact { display: grid; gap: 4px; color: var(--muted-on-dark); font-size: var(--fs-small); }
.menu-contact a { color: var(--mist); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Decorative brand pieces ---------- */
.arches {
  position: absolute; inset-inline: 0; bottom: -1px;
  width: 100%; height: auto; max-height: var(--arches-max, 230px);
  color: var(--arches-color, var(--mist)); fill: currentColor; pointer-events: none;
}
.arches path { transform-box: fill-box; transform-origin: 50% 100%; }
.arches.to-white { --arches-color: var(--white); }
.arches.to-deep { --arches-color: var(--teal-deep); }
.freq-field {
  position: absolute; inset: -12% -40%; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(229, 229, 229, .1) 0 2px, transparent 2px 11px);
  -webkit-mask: radial-gradient(closest-side, #000 15%, transparent 100%);
          mask: radial-gradient(closest-side, #000 15%, transparent 100%);
}
.lens-outline { fill: none; stroke: currentColor; stroke-width: 1.25px; vector-effect: non-scaling-stroke; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(28px, 5vw, 80px); }
.hero-grid {
  position: relative; display: grid; gap: var(--space-6); align-items: center;
  padding-bottom: clamp(96px, 15vw, 250px);
}
.hero-copy { --gap: var(--space-5); max-width: 820px; position: relative; z-index: 1; }
.hero-copy .lead { max-width: 36ch; color: var(--mist); opacity: .92; }
/* The thesis: a quiet kicker and one word that resonates. Both sit on Light; site.js
   thickens individual letters with a text stroke, so the weight moves but spacing never does. */
.hero-title { display: grid; gap: .02em; font-weight: 300; }
.hero-kicker { display: block; font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em; }
/* one unbreakable word: capped by viewport width so a large user font size can't push it off screen */
.hero-word { display: block; font-size: min(clamp(4.2rem, 1rem + 9.4vw, 9.5rem), 18vw); line-height: .94; letter-spacing: -.03em; white-space: nowrap; }
:root[lang="ar"] .hero-kicker { letter-spacing: 0; line-height: 1.35; }
:root[lang="ar"] .hero-word { letter-spacing: 0; line-height: 1.2; }
.wave .g { -webkit-text-stroke-color: currentColor; -webkit-text-stroke-width: 0; }
.hero-actions { margin-top: var(--space-2); }
@media (max-width: 639.98px) {
  .hero-actions .btn, .cta-band .cluster .btn, .page-hero .cluster .btn { flex: 1 1 100%; }
}
.hero-visual { position: relative; display: grid; place-items: center; min-height: 230px; }
.hero-mark { position: relative; width: min(64vw, 300px); height: auto; fill: var(--mist); overflow: visible; }
.hero-mark path { transform-box: fill-box; transform-origin: 50% 50%; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7); }
  .hero-visual { min-height: 520px; }
  .hero-mark { width: min(100%, 420px); }
}
@media (prefers-reduced-motion: no-preference) {
  /* on load the lenses open from hairlines, centre first; afterwards site.js sets their height */
  .hero-mark path { animation: lens-open 1.25s var(--ease-out) both; }
  .hero-mark path:nth-child(3) { animation-delay: .18s; }
  .hero-mark path:nth-child(2), .hero-mark path:nth-child(4) { animation-delay: .3s; }
  .hero-mark path:nth-child(1), .hero-mark path:nth-child(5) { animation-delay: .42s; }
  .js .arches--rise path { scale: 1 .35; transition: scale 1.1s var(--ease-out); }
  .js .arches--rise.is-visible path { scale: 1 1; }
  .js .arches--rise path:nth-child(2), .js .arches--rise path:nth-child(4) { transition-delay: 80ms; }
  .js .arches--rise path:nth-child(1), .js .arches--rise path:nth-child(5) { transition-delay: 160ms; }

  /* load sequence: every hero arrives line by line */
  .hero-copy > :not(.hero-title), .page-hero-inner > *, .sector-hero-copy > * { animation: rise-in .9s var(--ease-out) both; }
  .hero-copy > .eyebrow { animation-delay: .05s; }
  .hero-copy > .lead { animation-delay: .62s; }
  .hero-copy > .hero-actions { animation-delay: .76s; }
  .hero-kicker { animation: line-up .95s var(--ease-out) .14s both; }
  .hero-word { animation: line-up 1.1s var(--ease-out) .26s both; }
  .page-hero-inner > :nth-child(2), .sector-hero-copy > :nth-child(2) { animation-delay: .08s; }
  .page-hero-inner > :nth-child(3), .sector-hero-copy > :nth-child(3) { animation-delay: .16s; }
  .page-hero-inner > :nth-child(4), .sector-hero-copy > :nth-child(4) { animation-delay: .26s; }
  .page-hero-inner > :nth-child(5) { animation-delay: .34s; }
  .sector-hero-media { animation: arch-rise 1.4s var(--ease-out) .2s both; }
  .page-hero-deco .lens-outline { stroke-dasharray: 1; animation: draw 2.2s var(--ease-in-out) .15s both; }
  .page-hero-deco .lens-2, .page-hero-deco .lens-4 { animation-delay: .3s; }
  .page-hero-deco .lens-1, .page-hero-deco .lens-5 { animation-delay: .45s; }
}
@keyframes lens-open { from { scale: .03 1; opacity: 0; } 35% { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; translate: 0 26px; } }
@keyframes line-up { from { clip-path: inset(-.5em -.5em 100% -.5em); translate: 0 .35em; } to { clip-path: inset(-.5em); translate: 0 0; } }
@keyframes arch-rise { from { -webkit-mask-size: 100% 0%; mask-size: 100% 0%; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding-top: clamp(36px, 5vw, 88px); padding-bottom: clamp(92px, 13vw, 200px); --arches-max: 170px; }
.page-hero .container { position: relative; }
.page-hero-inner { --gap: var(--space-5); position: relative; z-index: 1; max-width: 900px; }
.page-hero .lead { max-width: 52ch; color: var(--mist); opacity: .92; }
.page-hero-deco {
  position: absolute; inset-inline-end: calc(var(--gutter) * -1 + 2%); top: 50%; translate: 0 -55%;
  width: clamp(180px, 30vw, 440px); color: var(--muted-on-dark); opacity: .35; display: none;
}
@media (min-width: 900px) { .page-hero-deco { display: block; } }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); color: var(--muted-on-dark); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; opacity: .6; }
.breadcrumbs a { color: var(--mist); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.breadcrumbs a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: .3em; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .intro-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-9); } }
.intro-title { font-size: clamp(3rem, 1.6rem + 6vw, 7.5rem); line-height: .98; font-weight: 300; letter-spacing: -.035em; }
:root[lang="ar"] .intro-title { font-weight: 500; letter-spacing: 0; line-height: 1.2; }

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .pillars { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-9); } }
.pillars-figure {
  direction: ltr;                 /* the diagram keeps its layout in both languages */
  display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto auto auto;
  align-items: center; row-gap: 14px; max-width: 560px; width: 100%; margin-inline: auto;
}
@media (max-width: 1023.98px) { .pillars-figure { max-width: 300px; } }
.pillars-figure svg { grid-column: 1 / -1; grid-row: 2; width: 100%; height: auto; overflow: visible; }
.pillars-figure .lens-outline { fill: rgba(229, 229, 229, .03); transition: fill var(--dur-3) var(--ease-out), stroke var(--dur-3); }
/* the diagram strokes scale with the drawing (user units) so they can draw themselves on reveal */
.pillars-figure .lens-outline, .page-hero-deco .lens-outline { vector-effect: none; stroke-width: .3; }
.p-label {   /* decorative duplicate of the list below (aria-hidden), so its size is fixed to the diagram */
  grid-row: var(--row); grid-column: var(--col); justify-self: center;
  font-size: clamp(9px, 2.6vw, 11px); font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-on-dark); white-space: nowrap; transition: color var(--dur-3);
}
:root[lang="ar"] .p-label { font-size: clamp(11px, 3.4vw, 14px); letter-spacing: 0; }
.pillars-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.pillars-list li { display: grid; gap: 4px; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.pillars-list h3 { font-size: 1.25rem; font-weight: 500; }
.pillars-list p { color: var(--fg-muted); }
/* hovering a pillar lights its lens */
.pillars:has(li[data-p="1"]:hover) .lens-1, .pillars:has(li[data-p="2"]:hover) .lens-2,
.pillars:has(li[data-p="3"]:hover) .lens-3, .pillars:has(li[data-p="4"]:hover) .lens-4,
.pillars:has(li[data-p="5"]:hover) .lens-5 { fill: var(--coral); stroke: var(--coral); }
.pillars:has(li[data-p="1"]:hover) .p-1, .pillars:has(li[data-p="2"]:hover) .p-2,
.pillars:has(li[data-p="3"]:hover) .p-3, .pillars:has(li[data-p="4"]:hover) .p-4,
.pillars:has(li[data-p="5"]:hover) .p-5 { color: var(--white); }
.pillars-list li { transition: background-color var(--dur-2); }
.pillars-list li:hover h3 { color: var(--white); }
.theme-light .pillars-list li:hover h3 { color: var(--teal); }
.theme-light .pillars-figure .lens-outline { fill: rgba(3, 47, 60, .03); }
.theme-light .p-label { color: var(--muted); }
.theme-light .pillars:has(li:hover) .p-label[class*="p-"] { color: var(--muted); }

/* ---------- Service cards ---------- */
.card-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card-grid > li { display: flex; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; width: 100%;
  padding: clamp(24px, 2.4vw, 32px); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); color: var(--teal);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.service-card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.service-card a { text-decoration: none; color: inherit; }
.service-card a:focus-visible { outline: none; }
.service-card .stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card p { color: var(--muted); }
.card-bar { display: block; width: 72px; height: 4px; border-radius: 2px; background: var(--coral); scale: .45 1; transform-origin: 0 50%; transition: scale var(--dur-3) var(--ease-out); }
[dir="rtl"] .card-bar { transform-origin: 100% 50%; }
.service-card:hover .card-bar { scale: 1 1; }
.card-foot { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .9375rem; }
.card-foot .icon { transition: translate var(--dur-2) var(--ease-out); }
.service-card:hover .card-foot .icon-arrow { translate: calc(var(--dir) * 4px) 0; }

/* ---------- Sector lenses ("Frequency in …") ---------- */
.sector-lenses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.sector-lenses a { display: flex; align-items: center; gap: 18px; padding-block: 12px; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.sector-lenses li:first-child a { border-top: 1px solid var(--rule); }
.lens-media {
  position: relative; display: block; flex: none; width: 56px; aspect-ratio: .5; overflow: hidden;
  background: var(--teal-raised);
  -webkit-mask: var(--mask-lens) center / 100% 100% no-repeat;
          mask: var(--mask-lens) center / 100% 100% no-repeat;
}
.lens-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
.sector-name { font-size: 1.375rem; font-weight: 500; flex: 1; min-width: 0; overflow-wrap: break-word; }
.sector-lenses .icon-arrow { color: var(--coral); }
.lens-slot { display: block; flex: none; }
@media (min-width: 768px) {
  .sector-lenses { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.8vw, 24px); align-items: start; }
  .sector-lenses li:first-child a, .sector-lenses a { border: 0; }
  .sector-lenses a { flex-direction: column; gap: 20px; padding: 0; }
  /* every lens sits in a slot as tall as the centre one, so the labels share a baseline */
  .lens-slot { display: flex; align-items: center; width: 100%; aspect-ratio: .5; }
  .lens-slot .lens-media { width: 100%; aspect-ratio: calc(.5 / var(--h, 1)); }
  .sector-name { font-size: clamp(.9375rem, .8rem + .4vw, 1.125rem); text-align: center; }
  .sector-name span { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: .4em; transition: text-decoration-color var(--dur-2); }
  .sector-lenses a:hover .sector-name span, .sector-lenses a:focus-visible .sector-name span { text-decoration-color: var(--coral); }
  .sector-lenses .icon-arrow { display: none; }
}
.sector-lenses a:hover img { transform: scale(1.07); }
@media (hover: hover) and (min-width: 768px) {
  .sector-lenses a { transition: opacity var(--dur-3) var(--ease-out); }
  .sector-lenses:has(a:hover) a:not(:hover) { opacity: .45; }
}

/* ---------- Logos ---------- */
.logo-tile {
  flex: none; display: grid; place-items: center;
  width: 172px; height: 104px; padding: 14px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.logo-tile img { width: auto; height: auto; max-width: 100%; max-height: 70px; object-fit: contain; }
.marquee { position: relative; display: grid; gap: 14px; }
.marquee-row {
  display: flex; gap: 14px; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; gap: 14px; flex: none; min-width: 100%; list-style: none; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee var(--marquee-dur, 70s) linear infinite; }
  .marquee-row--reverse .marquee-track { animation-direction: reverse; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track,
  .marquee.is-paused .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(calc(var(--dir) * (-100% - 14px))); } }
.marquee-controls { display: flex; justify-content: flex-end; margin-top: 4px; }
.marquee-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding-inline: 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: transparent; color: var(--teal);
  font-size: var(--fs-small); font-weight: 500;
}
.marquee-toggle:hover { background: var(--mist); }
.marquee-toggle .icon { width: 18px; height: 18px; }
.marquee-toggle > span { display: inline-flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) {
  .marquee-row { flex-wrap: wrap; justify-content: center; -webkit-mask: none; mask: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; min-width: 0; }
  .marquee-track[aria-hidden="true"], .marquee-toggle { display: none; }
}
.client-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .client-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.client-grid .logo-tile { width: 100%; height: clamp(96px, 9vw, 124px); }
.logo-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.logo-row .logo-tile { width: 100%; height: 100px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .stack { --gap: var(--space-6); align-items: center; }
.cta-title {
  font-size: min(clamp(3.75rem, 1.5rem + 9.5vw, 11rem), 17vw); font-weight: 300; line-height: .9;
  letter-spacing: -.04em; text-transform: uppercase;
}
:root[lang="ar"] .cta-title { font-weight: 400; letter-spacing: 0; line-height: 1.15; text-transform: none; }
.cta-band p { max-width: 44ch; color: var(--fg-muted); font-size: var(--fs-lead); font-weight: 300; }
:root[lang="ar"] .cta-band p { font-weight: 400; }
.cta-mark { width: 92px; height: auto; color: var(--teal); }
.cta-mark .lens-outline { stroke-width: 1.5px; }
.cta-mark .lens-3 { fill: var(--coral); stroke: var(--coral); }
.theme-dark .cta-mark { color: var(--mist); }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(64px, 8vw, 112px); padding-bottom: var(--space-6); }
.footer-top { display: grid; gap: var(--space-8); }
@media (min-width: 1024px) { .footer-top { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.footer-brand { --gap: var(--space-5); align-items: flex-start; }
.footer-logo { width: 132px; height: auto; fill: var(--mist); }
.footer-brand p { max-width: 34ch; color: var(--muted-on-dark); }
.footer-cols { display: grid; gap: var(--space-7) var(--space-6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer-cols h2 {
  margin-bottom: 14px; font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--muted-on-dark);
}
:root[lang="ar"] .footer-cols h2 { text-transform: none; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-cols a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--mist); text-decoration: none; overflow-wrap: anywhere;
  text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: .35em;
}
.footer-cols a:hover { text-decoration-line: underline; }
.footer-cols address { font-style: normal; color: var(--muted-on-dark); padding-top: 8px; max-width: 24ch; }
.footer-bottom {
  margin-top: clamp(48px, 6vw, 88px); padding-top: var(--space-5);
  border-top: 1px solid var(--line-on-dark);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  color: var(--muted-on-dark); font-size: var(--fs-small);
}
.footer-bottom .lang-toggle { min-height: 40px; }

/* ---------- Services page ---------- */
.services-layout { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .services-layout { grid-template-columns: 250px minmax(0, 1fr); gap: var(--space-9); } }
.services-index ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.services-index a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-inline: 16px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--teal);
  transition: background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2);
}
.services-index a:hover { background: var(--white); }
.services-index a[aria-current="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
@media (min-width: 1024px) {
  .services-index { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .services-index ol { flex-direction: column; flex-wrap: nowrap; gap: 4px; }
  .services-index a { width: 100%; border-color: transparent; border-radius: 12px; }
}
.service-block { display: grid; gap: var(--space-5); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block .lead { max-width: 56ch; color: var(--muted); }
.service-groups { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }
.service-group { display: grid; gap: 14px; align-content: start; padding: 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.service-group h3 { font-size: 1.0625rem; font-weight: 500; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; align-items: baseline; color: var(--teal); }
.check-list li::before {
  content: ""; width: 8px; height: 14px; translate: 0 2px; background: var(--coral);
  -webkit-mask: var(--mask-lens) center / 100% 100% no-repeat; mask: var(--mask-lens) center / 100% 100% no-repeat;
}
.quote-line { font-size: var(--fs-h3); font-weight: 300; font-style: italic; color: var(--teal); }
:root[lang="ar"] .quote-line { font-style: normal; font-weight: 400; }
.note-panel { padding: 24px; border-radius: var(--radius-lg); background: var(--teal); color: var(--mist); }
.note-panel p { max-width: 70ch; }

/* ---------- Work index ---------- */
.work-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 7vw, 112px); }
.work-item { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) {
  .work-item { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-8); }
  .work-item:nth-child(even) .work-media { order: 2; }
}
.work-media {
  position: relative; display: block; aspect-ratio: 6 / 5; overflow: hidden;
  -webkit-mask: var(--mask-arches) center bottom / 100% 100% no-repeat;
          mask: var(--mask-arches) center bottom / 100% 100% no-repeat;
  background: var(--teal-raised);
}
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
.work-item:hover .work-media img { transform: scale(1.04); }
.work-copy { --gap: var(--space-4); }
.work-copy p { color: var(--muted); max-width: 50ch; }
.work-copy .h2 a { text-decoration: none; }
.work-copy .h2 a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: .18em; }

/* ---------- Sector pages ---------- */
.sector-hero { position: relative; overflow: hidden; padding-top: clamp(36px, 5vw, 88px); padding-bottom: clamp(92px, 13vw, 200px); --arches-max: 170px; }
.sector-hero-grid { position: relative; z-index: 1; display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .sector-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-8); } }
.sector-hero-copy { --gap: var(--space-5); }
.sector-hero-copy .lead { max-width: 46ch; color: var(--mist); opacity: .92; }
.sector-hero-media {
  position: relative; aspect-ratio: 4 / 5; max-height: 640px; width: 100%; overflow: hidden;
  -webkit-mask: var(--mask-arch) center bottom / 100% 100% no-repeat;
          mask: var(--mask-arch) center bottom / 100% 100% no-repeat;
  background: var(--teal-raised);
}
.sector-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023.98px) { .sector-hero-media { max-width: 420px; aspect-ratio: 5 / 6; } }
/* phones: one column, so odd photo counts never leave holes; desktop: a mosaic on fixed rows */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.gallery li { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--mist); aspect-ratio: 4 / 3; }
.gallery li.tall { aspect-ratio: 4 / 5; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 19vw, 290px); grid-auto-flow: dense; gap: 16px; }
  .gallery li, .gallery li.tall { aspect-ratio: auto; }
  .gallery li.tall { grid-row: span 2; }
  .gallery li.wide { grid-column: span 2; }
}
.sector-nav { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .sector-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sector-nav a > span:not(.lens-media) { min-width: 0; overflow-wrap: break-word; }
.sector-nav a {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; min-height: 96px;
  border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line);
  text-decoration: none; transition: box-shadow var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.sector-nav a:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.sector-nav .next { justify-content: flex-end; text-align: end; }
.sector-nav .lens-media { width: 30px; }
.sector-nav small { display: block; color: var(--muted); font-size: var(--fs-small); }
.sector-nav strong { font-weight: 500; font-size: 1.25rem; }
.sector-nav .prev .icon-arrow { scale: -1 1; }
[dir="rtl"] .sector-nav .prev .icon-arrow { scale: 1 1; }

/* ---------- About ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 5vw, 80px); border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
:root[dir="rtl"] .facts div { padding: 20px 0 20px 16px; }
.facts dt { color: var(--fg-muted); font-size: var(--fs-small); }
.facts dd { font-size: 1.125rem; font-weight: 500; }
.duo { display: grid; gap: 16px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-panel { --gap: var(--space-5); padding: clamp(32px, 4.5vw, 64px); border-radius: var(--radius-lg); min-height: 320px; justify-content: flex-end; }
.duo-panel .h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.duo-panel p { font-size: var(--fs-lead); font-weight: 300; max-width: 30ch; }
:root[lang="ar"] .duo-panel p { font-weight: 400; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); } }
.step { display: grid; gap: var(--space-4); align-content: start; }
.step-icon { height: 84px; display: flex; align-items: center; color: var(--teal); }
.step-icon svg { height: 100%; width: auto; max-width: 150px; }
.step-icon .fill { fill: currentColor; }
.step .num { font-size: .8125rem; font-weight: 500; letter-spacing: .2em; color: var(--coral-ink); }
.step p { color: var(--muted); max-width: 34ch; }
.bring { display: grid; gap: var(--space-7); align-items: end; }
@media (min-width: 1024px) { .bring { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-9); } }
.bring-visual {
  position: relative; width: 100%; aspect-ratio: 6 / 5; overflow: hidden; background: var(--teal);
  -webkit-mask: var(--mask-arches) center bottom / 100% 100% no-repeat;
          mask: var(--mask-arches) center bottom / 100% 100% no-repeat;
}
.bring-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); } }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; padding: 22px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.contact-card .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mist); color: var(--teal); }
.contact-card .ic .icon { width: 22px; height: 22px; }
.contact-card h3 { font-size: var(--fs-small); font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-bottom: 4px; }
.contact-card ul { list-style: none; margin: 0; padding: 0; display: grid; }
.contact-card a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 1.125rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.contact-card address { font-style: normal; font-size: 1.125rem; font-weight: 500; }
.form-panel { padding: clamp(24px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; }
.field .req { color: var(--coral-ink); margin-inline-start: 2px; }
.field .hint { color: var(--muted); font-size: var(--fs-small); }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: var(--white); color: var(--teal); font-size: 1rem;
  transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.input::placeholder { color: #6d8389; }
.input:hover { border-color: var(--teal); }
/* teal, not coral, so a focused field never reads as an error */
.input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-color: var(--teal); }
textarea.input { min-height: 160px; resize: vertical; line-height: 1.6; }
select.input {
  appearance: none; -webkit-appearance: none; padding-inline-end: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23032f3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 16px center;
}
[dir="rtl"] select.input { background-position: left 16px center; }
.input[aria-invalid="true"] { border-color: var(--coral-ink); }
.field-error { display: flex; align-items: center; gap: 6px; color: var(--coral-ink); font-size: var(--fs-small); font-weight: 500; }
.field-error .icon { width: 18px; height: 18px; }
.error-summary { padding: 18px 20px; border: 2px solid var(--coral-ink); border-radius: 14px; background: var(--white); }
.error-summary:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.error-summary h2 { font-size: 1.0625rem; font-weight: 500; color: var(--coral-ink); margin-bottom: 8px; }
.error-summary ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.error-summary a { color: var(--teal); font-weight: 500; text-decoration-color: var(--coral); text-underline-offset: .25em; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { color: var(--muted); font-size: var(--fs-small); max-width: 44ch; }
.form-status { padding: 14px 16px; border-radius: 12px; background: var(--mist); border-inline-start: 4px solid var(--teal); font-size: .9375rem; }
.form-status:empty { display: none; }

/* ---------- 404 ---------- */
.not-found { min-height: 70vh; min-height: 70dvh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; }

/* ---------- Scroll reveal (progressive: content is visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; translate: 0 22px;
    transition: opacity var(--dur-4) var(--ease-out), translate var(--dur-4) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 60ms);
  }
  .js [data-reveal].is-visible { opacity: 1; translate: 0 0; }

  /* headings wipe up from their baseline; the coral bar grows once the words have landed */
  /* (clip the heading, never the observed element itself: a clipped target never "intersects") */
  .js [data-reveal] .h2, .js [data-reveal] .cta-title { clip-path: inset(-.5em -.5em 100% -.5em); transition: clip-path 1.1s var(--ease-out) .08s; }
  .js [data-reveal].is-visible .h2, .js [data-reveal].is-visible .cta-title { clip-path: inset(-.5em); }
  .js [data-reveal] .bar::after { scale: 0 1; transform-origin: 0 50%; transition: scale .8s var(--ease-out) .55s; }
  .js [data-reveal].is-visible .bar::after { scale: 1 1; }
  :root[dir="rtl"] [data-reveal] .bar::after { transform-origin: 100% 50%; }
  .center [data-reveal] .bar::after, [data-reveal].center .bar::after { transform-origin: 50% 50%; }

  /* photo lenses open from a hairline, the way the mark is constructed */
  .js [data-reveal] .lens-media {
    -webkit-mask-size: 6% 100%; mask-size: 6% 100%;
    transition: -webkit-mask-size 1.2s var(--ease-out), mask-size 1.2s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 110ms);
  }
  .js [data-reveal].is-visible .lens-media { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
  .js [data-reveal] .lens-media img {
    scale: 1.2; transition: scale 1.6s var(--ease-out), transform var(--dur-4) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 110ms), 0s;
  }
  .js [data-reveal].is-visible .lens-media img { scale: 1; }

  /* arch windows rise from the ground line */
  .js [data-reveal] .work-media, .js [data-reveal] .bring-visual {
    -webkit-mask-size: 100% 0%; mask-size: 100% 0%;
    transition: -webkit-mask-size 1.3s var(--ease-out) .1s, mask-size 1.3s var(--ease-out) .1s;
  }
  .js [data-reveal].is-visible .work-media, .js [data-reveal].is-visible .bring-visual { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
  .js .gallery li[data-reveal] img { scale: 1.12; transition: scale 1.5s var(--ease-out); }
  .js .gallery li[data-reveal].is-visible img { scale: 1; }

  /* the pillar lenses draw themselves, centre first */
  .js .pillars-figure[data-reveal] .lens-outline {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.8s var(--ease-in-out), fill var(--dur-3) var(--ease-out), stroke var(--dur-3);
  }
  .js .pillars-figure[data-reveal] .lens-3 { transition-delay: .2s, 0s, 0s; }
  .js .pillars-figure[data-reveal] .lens-2, .js .pillars-figure[data-reveal] .lens-4 { transition-delay: .35s, 0s, 0s; }
  .js .pillars-figure[data-reveal] .lens-1, .js .pillars-figure[data-reveal] .lens-5 { transition-delay: .5s, 0s, 0s; }
  .js .pillars-figure[data-reveal].is-visible .lens-outline { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .service-card:hover, .sector-nav a:hover { transform: none; }
  .lens-media img, .work-media img, .sector-lenses a:hover img, .work-item:hover .work-media img { transform: none !important; transition: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .menu-dialog, .arches, .freq-field, .marquee-toggle, .hero-visual, .page-hero-deco, .skip-link { display: none !important; }
  body, .bg-teal, .bg-deep, .bg-mist, .bg-white { background: #fff !important; color: #000 !important; }
  .theme-dark { --fg: #000; --fg-muted: #333; color: #000; }
  .section, .page-hero, .sector-hero, .hero { padding-block: 24px !important; }
  [data-reveal] { opacity: 1 !important; translate: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
