/* ==========================================================================
   HCD — Hammar Contracting & Development
   Design system · follows brand book MKT-2026-024 (Aug 2026)

   Palette ....... Basalt carries, Lime Wash rests, Oxide points (once per surface)
   Type .......... Cabinet Grotesk (Latin) · Brando Arabic (Arabic)
   Geometry ...... one angle: every cut at 45°

   Contents
   01 Fonts            07 Buttons & links        13 Stats & process
   02 Tokens           08 Header & menu          14 Cards (service/project/feature)
   03 Base             09 Footer                 15 Quote, CTA band, group strip
   04 Typography       10 Heroes                 16 FAQ, forms, dialog
   05 Layout           11 Section heads, media   17 Motion
   06 Surfaces         12 Marquee & statement    18 Utilities & responsive
   ========================================================================== */

/* 01 · Fonts ============================================================== */
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

@font-face { font-family: "Brando Arabic"; src: url("../fonts/brando-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Brando Arabic"; src: url("../fonts/brando-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Brando Arabic"; src: url("../fonts/brando-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Brando Arabic"; src: url("../fonts/brando-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Brando Arabic"; src: url("../fonts/brando-700.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Brando Arabic"; src: url("../fonts/brando-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

/* "HCD Latin": Cabinet Grotesk restricted to Latin code points. Listed first in the
   Arabic stack so numbers, URLs and the odd Latin word inside Arabic copy set in the
   brand's Latin face (brand book §03 "Latin inside Arabic"), while Arabic letters fall
   through to Brando. Weights are paired so an Arabic weight gets its Latin partner. */
@font-face { font-family: "HCD Latin"; src: url("../fonts/cabinet-400.woff2") format("woff2"); font-weight: 300 400; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122; }
@font-face { font-family: "HCD Latin"; src: url("../fonts/cabinet-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122; }
@font-face { font-family: "HCD Latin"; src: url("../fonts/cabinet-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122; }
@font-face { font-family: "HCD Latin"; src: url("../fonts/cabinet-800.woff2") format("woff2"); font-weight: 800 900; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122; }

/* 02 · Tokens ============================================================= */
:root {
  /* The Hauran palette */
  --basalt: #1C1E1F;
  --basalt-2: #232627;
  --basalt-3: #2C2F30;
  --ironstone: #4A4744;
  --hauran: #8E8A82;
  --limestone: #E4DFD4;
  --limewash: #F6F3EC;
  --paper: #FBF9F5;
  --oxide: #9E4A2A;          /* on light grounds: 5.47:1 on Lime Wash */
  --oxide-deep: #83391D;
  --oxide-light: #C9724B;    /* oxide ladder tint for dark grounds: 4.77:1 on Basalt */

  --line-on-dark: rgba(246, 243, 236, .14);
  --line-on-light: rgba(28, 30, 31, .14);

  /* Type families */
  --font-latin: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "HCD Latin", "Brando Arabic", "Segoe UI", Tahoma, sans-serif;
  --font: var(--font-latin);

  /* English type scale — Extrabold caps display, tracked to zero (brand book §03) */
  --fs-display: clamp(2.5rem, 5.2vw, 5.1rem);
  --lh-display: 1;
  --fw-display: 800;
  --fs-h1: clamp(2.2rem, 4.2vw, 4rem);
  --lh-h1: 1.04;
  --fw-h1: 800;
  --fs-h2: clamp(1.7rem, 2.7vw, 2.65rem);
  --lh-h2: 1.16;
  --fw-h2: 700;
  --fs-h3: clamp(1.2rem, 1.55vw, 1.5rem);
  --lh-h3: 1.3;
  --fw-h3: 700;
  --fs-h4: clamp(1.05rem, 1.2vw, 1.15rem);
  --lh-h4: 1.4;
  --fw-h4: 700;
  --fs-lead: clamp(1.05rem, 1.2vw, 1.18rem);
  --lh-lead: 1.65;
  --fs-body: 1rem;
  --lh-body: 1.7;
  --fw-body: 400;
  --fw-strong: 700;
  --fs-small: .9rem;
  --fs-label: .72rem;
  --ls-label: .16em;
  --fw-label: 600;
  --tt-display: uppercase;
  --tt-head: none;
  --tt-label: uppercase;
  --ls-head: -.01em;

  /* Space & layout */
  --container: 1440px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --section: clamp(72px, 8vw, 128px);
  --gap: clamp(16px, 2vw, 28px);
  --header-h: 88px;

  /* Geometry — one angle */
  --cut-xs: 6px;
  --cut-sm: 12px;
  --cut: 22px;
  --cut-lg: 44px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --t-fast: .25s;
  --t: .45s;
  --t-slow: .9s;

  /* Direction helper: 1 in LTR, -1 in RTL (used to mirror arrows & motion) */
  --dir: 1;

  /* Surface defaults = light ground */
  --bg: var(--limewash);
  --fg: var(--basalt);
  --muted: var(--ironstone);
  --line: var(--line-on-light);
  --accent: var(--oxide);
  --surface: var(--paper);
  --surface-2: var(--limestone);
}

/* Arabic scale — Brando: Display Black 900, Title Bold 700, Subhead SemiBold 600,
   Body Text 500, Caption Regular 400. Never letterspaced, slanted or stretched.
   Set on the root only (not :lang) so section-level overrides are not re-reset. */
html[lang="ar"] {
  --font: var(--font-arabic);
  --dir: -1;
  --fs-display: clamp(2.3rem, 4.5vw, 4.3rem);
  --lh-display: 1.3;
  --fw-display: 700;
  --fs-h1: clamp(2rem, 3.6vw, 3.4rem);
  --lh-h1: 1.36;
  --fw-h1: 700;
  --fs-h2: clamp(1.55rem, 2.4vw, 2.3rem);
  --lh-h2: 1.5;
  --fw-h2: 700;
  --fs-h3: clamp(1.15rem, 1.45vw, 1.4rem);
  --lh-h3: 1.6;
  --fw-h3: 700;
  --fs-h4: clamp(1.02rem, 1.15vw, 1.12rem);
  --lh-h4: 1.65;
  --fw-h4: 600;
  --fs-lead: clamp(1.05rem, 1.2vw, 1.16rem);
  --lh-lead: 1.95;
  --fs-body: 1rem;
  --lh-body: 1.95;
  --fw-body: 500;
  --fw-strong: 700;
  --fs-small: .92rem;
  --fs-label: .85rem;
  --ls-label: 0;
  --fw-label: 600;
  --tt-display: none;
  --tt-head: none;
  --tt-label: none;
  --ls-head: 0;
}

/* 03 · Base =============================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--basalt);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--limewash);
  color: var(--basalt);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"], .list-reset { list-style: none; padding: 0; margin: 0; }
strong, b { font-weight: var(--fw-strong); }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--oxide); color: var(--limewash); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
[lang="en"] { font-family: var(--font-latin); }
.skip-link {
  position: fixed; inset-inline-start: 16px; top: 12px; z-index: 1000;
  padding: 12px 18px; background: var(--oxide); color: var(--limewash);
  transform: translateY(-160%); transition: transform var(--t) var(--ease-out);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 04 · Typography ========================================================= */
.t-display, .t-h1 { text-transform: var(--tt-display); letter-spacing: 0; text-wrap: balance; }
.t-h2, .t-h3 { text-transform: var(--tt-head); letter-spacing: var(--ls-head); text-wrap: balance; }
.t-display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: var(--fw-display); }
.t-h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: var(--fw-h1); }
.t-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: var(--fw-h2); }
.t-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-h3); }
.t-h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: var(--fw-h4); text-wrap: balance; }
.t-lead { font-size: var(--fs-lead); line-height: var(--lh-lead); text-wrap: pretty; }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); text-wrap: pretty; }
.t-small { font-size: var(--fs-small); line-height: 1.6; }
.t-label {
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: var(--tt-label);
  font-weight: var(--fw-label); line-height: 1.4;
}
.t-num { font-family: var(--font-latin); font-variant-numeric: lining-nums tabular-nums; font-weight: 800; letter-spacing: -.01em; }
.t-muted { color: var(--muted); }
.t-accent { color: var(--accent); }
p + p { margin-top: 1em; }
/* Working words: oxide lifts one or two words per headline, never the connectives */
.t-display em, .t-h1 em, .t-h2 em, .t-h3 em, .t-h4 em, .accent { font-style: normal; color: var(--accent); }
.prose { max-width: 68ch; }
.prose p { text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }
.prose ul { padding-inline-start: 1.2em; margin-top: 1em; }
.prose li + li { margin-top: .4em; }
/* Latin runs (phones, URLs, the mark) keep their own direction inside Arabic lines */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; font-family: var(--font-latin); }

/* Eyebrow label with the roof chip — a 45° cut square, the brand's smallest mark */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: var(--tt-label);
  font-weight: var(--fw-label); line-height: 1.3; color: var(--muted);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--accent); }
.eyebrow--plain::before { content: none; }

/* 05 · Layout ============================================================= */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(1080px + var(--gutter) * 2); }
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .62); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.stack > * + * { margin-top: var(--stack, 1.25rem); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster-gap, .75rem); align-items: center; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split {
  display: grid; gap: clamp(32px, 6vw, 112px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--center { align-items: center; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); }
.divider { height: 1px; background: var(--line); border: 0; }

/* 06 · Surfaces =========================================================== */
.theme-light { --bg: var(--limewash); --fg: var(--basalt); --muted: var(--ironstone); --line: var(--line-on-light); --accent: var(--oxide); --surface: var(--paper); --surface-2: var(--limestone); background: var(--bg); color: var(--fg); }
.theme-paper { --bg: var(--paper); --fg: var(--basalt); --muted: var(--ironstone); --line: var(--line-on-light); --accent: var(--oxide); --surface: var(--limewash); --surface-2: var(--limestone); background: var(--bg); color: var(--fg); }
.theme-stone { --bg: var(--limestone); --fg: var(--basalt); --muted: var(--ironstone); --line: rgba(28,30,31,.16); --accent: var(--oxide); --surface: var(--limewash); --surface-2: var(--paper); background: var(--bg); color: var(--fg); }
.theme-dark { --bg: var(--basalt); --fg: var(--limewash); --muted: rgba(246,243,236,.68); --line: var(--line-on-dark); --accent: var(--oxide-light); --surface: var(--basalt-2); --surface-2: var(--basalt-3); background: var(--bg); color: var(--fg); }
.theme-oxide { --bg: var(--oxide); --fg: var(--limewash); --muted: rgba(246,243,236,.82); --line: rgba(246,243,236,.24); --accent: var(--basalt); --surface: var(--oxide-deep); --surface-2: var(--oxide-deep); background: var(--bg); color: var(--fg); }

/* Grid-ruled ground from the brand book's dark spreads */
.grid-texture {
  --grid-line: rgba(246, 243, 236, .045);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}
.theme-light.grid-texture, .theme-paper.grid-texture, .theme-stone.grid-texture { --grid-line: rgba(28, 30, 31, .055); }

/* Oxide corner — the triangle that tabs every chapter opener in the brand book */
.corner-mark { position: relative; }
.corner-mark::after {
  content: ""; position: absolute; top: 0; inset-inline-end: 0; z-index: 2;
  width: var(--corner, clamp(56px, 7vw, 112px)); aspect-ratio: 1;
  background: var(--oxide);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  pointer-events: none;
}
[dir="rtl"] .corner-mark::after { clip-path: polygon(0 0, 100% 0, 0 100%); }

/* Giant ghosted HCD — inline SVG of the mark, bleeding off the section edge */
.ghost-mark {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  inset-inline: calc(var(--gutter) * -.25); bottom: -.14em;
  color: rgba(246, 243, 236, .045);
}
.theme-light .ghost-mark, .theme-paper .ghost-mark, .theme-stone .ghost-mark { color: rgba(28, 30, 31, .05); }
.ghost-mark svg { width: 100%; height: auto; }

/* 45° chamfers — default corner is top/inline-end (the icon tiles in the brand book) */
.chamfer { clip-path: polygon(0 0, calc(100% - var(--c, var(--cut))) 0, 100% var(--c, var(--cut)), 100% 100%, 0 100%); }
[dir="rtl"] .chamfer { clip-path: polygon(var(--c, var(--cut)) 0, 100% 0, 100% 100%, 0 100%, 0 var(--c, var(--cut))); }
.chamfer-end { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c, var(--cut))), calc(100% - var(--c, var(--cut))) 100%, 0 100%); }
[dir="rtl"] .chamfer-end { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--c, var(--cut)) 100%, 0 calc(100% - var(--c, var(--cut)))); }
/* Two opposite cuts, like the bowl of the D */
.chamfer-2 { clip-path: polygon(0 0, calc(100% - var(--c, var(--cut))) 0, 100% var(--c, var(--cut)), 100% 100%, var(--c, var(--cut)) 100%, 0 calc(100% - var(--c, var(--cut)))); }
[dir="rtl"] .chamfer-2 { clip-path: polygon(var(--c, var(--cut)) 0, 100% 0, 100% calc(100% - var(--c, var(--cut))), calc(100% - var(--c, var(--cut))) 100%, 0 100%, 0 var(--c, var(--cut))); }

/* 07 · Buttons & links ==================================================== */
.btn {
  --btn-bg: var(--basalt);
  --btn-fg: var(--limewash);
  --btn-hover-bg: var(--oxide);
  --btn-hover-fg: var(--limewash);
  --c: var(--cut-sm);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .85em;
  min-height: 52px; padding: 0 1.6em;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font); font-size: .8rem; font-weight: 700; line-height: 1;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
  transition: color var(--t) var(--ease);
}
[dir="rtl"] .btn { clip-path: polygon(var(--c) 0, 100% 0, 100% 100%, 0 100%, 0 var(--c)); }
html[lang="ar"] .btn { font-size: .95rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.btn { transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--btn-hover-bg); color: var(--btn-hover-fg); }
.btn .icon { width: 1.3em; height: 1.3em; flex: none; transform: scaleX(var(--dir)); transition: transform .5s var(--ease-out); }
.btn:hover .icon { transform: translateX(calc(3px * var(--dir))) scaleX(var(--dir)); }
.btn .icon--static { transform: none; }
.btn:hover .icon--static { transform: none; }
.btn--primary { --btn-bg: var(--oxide); --btn-fg: var(--limewash); --btn-hover-bg: var(--basalt); }
.theme-dark .btn--primary { --btn-hover-bg: var(--limewash); --btn-hover-fg: var(--basalt); }
.btn--light { --btn-bg: var(--limewash); --btn-fg: var(--basalt); --btn-hover-bg: var(--oxide); --btn-hover-fg: var(--limewash); }
.btn--dark { --btn-bg: var(--basalt); --btn-fg: var(--limewash); --btn-hover-bg: var(--oxide); }
.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--fg); --btn-hover-bg: var(--fg); --btn-hover-fg: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  /* the cut edge keeps its hairline */
  background-image: linear-gradient(to bottom left, transparent calc(50% - .75px), var(--line) calc(50% - .75px), var(--line) calc(50% + .75px), transparent calc(50% + .75px));
  background-repeat: no-repeat; background-position: top right; background-size: var(--c) var(--c);
}
[dir="rtl"] .btn--outline {
  background-image: linear-gradient(to bottom right, transparent calc(50% - .75px), var(--line) calc(50% - .75px), var(--line) calc(50% + .75px), transparent calc(50% + .75px));
  background-position: top left;
}
.btn--sm { min-height: 46px; padding: 0 1.2em; font-size: .8rem; }
html[lang="ar"] .btn--sm { font-size: .95rem; }
.btn--lg { min-height: 64px; padding: 0 2em; }
.btn--block { width: 100%; }
.btn--whatsapp { --btn-bg: #1FA855; --btn-fg: #fff; --btn-hover-bg: var(--basalt); }
.btn--square { width: 56px; min-height: 56px; padding: 0; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* Round-trip arrow button used by sliders */
.arrow-btn {
  display: inline-grid; place-items: center; width: 56px; height: 56px;
  border: 1px solid var(--line); color: var(--fg);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t);
}
.arrow-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.arrow-btn .icon { width: 22px; height: 22px; }
.arrow-btn[data-slider-prev] .icon { transform: scaleX(calc(-1 * var(--dir))); }
.arrow-btn[data-slider-next] .icon { transform: scaleX(var(--dir)); }
.arrow-btn:disabled { opacity: .35; pointer-events: none; }

/* Text link with sliding rule */
.link {
  position: relative; display: inline-flex; align-items: center; gap: .6em;
  font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: .35em;
}
html[lang="ar"] .link { font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.link::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: var(--origin-end, right); transform: scaleX(1);
  transition: transform .6s var(--ease-out);
}
[dir="rtl"] .link::after { --origin-end: left; }
.link:hover::after { transform: scaleX(0); }
.link .icon { width: 1.2em; height: 1.2em; transform: scaleX(var(--dir)); transition: transform .5s var(--ease-out); }
.link:hover .icon { transform: translateX(calc(4px * var(--dir))) scaleX(var(--dir)); }
.link--accent { color: var(--accent); }

.icon { width: 24px; height: 24px; flex: none; }
.icon--dir { transform: scaleX(var(--dir)); }

/* 08 · Header & menu ====================================================== */
.site-header {
  --fg: var(--basalt); --line: var(--line-on-light);
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--header-h); color: var(--fg);
  transition: transform .6s var(--ease-out), background-color .4s var(--ease), color .4s var(--ease), height .4s var(--ease);
}
.site-header::after { /* hairline that appears once scrolled */
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--line);
  opacity: 0; transition: opacity .4s;
}
body[data-header="overlay"] .site-header { --fg: var(--limewash); --line: var(--line-on-dark); }
body[data-header="light"] .site-header { background: var(--limewash); }
.site-header.is-scrolled {
  --fg: var(--limewash); --line: var(--line-on-dark);
  background: rgba(28, 30, 31, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.site-header.is-scrolled::after { opacity: 1; }
.site-header.is-hidden { transform: translateY(-101%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: clamp(16px, 2.5vw, 40px); }
.header__logo { display: inline-flex; align-items: center; gap: 14px; flex: none; color: var(--fg); }
.header__logo svg { height: 26px; width: auto; }
.header__logo-text {
  font-size: .72rem; line-height: 1.25; letter-spacing: .08em; text-transform: uppercase; opacity: .75;
  padding-inline-start: 14px; border-inline-start: 1px solid var(--line);
}
html[lang="ar"] .header__logo-text { font-size: .8rem; letter-spacing: 0; text-transform: none; }
.header__nav { margin-inline: auto; }
.header__nav ul { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 44px); list-style: none; margin: 0; padding: 0; }
.header__nav a {
  position: relative; display: inline-flex; align-items: center; gap: .55em; padding-block: .6em;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
html[lang="ar"] .header__nav a { font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.header__nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: .2em; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: var(--o, left); transition: transform .5s var(--ease-out);
}
[dir="rtl"] .header__nav a::after { --o: right; }
.header__nav a:hover::after { transform: scaleX(1); }
.header__nav a[aria-current="page"]::before {
  content: ""; width: 7px; height: 7px; background: var(--oxide-light);
  clip-path: polygon(0 0, 55% 0, 100% 45%, 100% 100%, 0 100%);
}
.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.lang-switch {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding-inline: 10px;
  border: 1px solid var(--line); font-size: .85rem; font-weight: 700; letter-spacing: .06em;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.lang-switch:hover { background: var(--fg); color: var(--basalt); border-color: var(--fg); }
.lang-switch[lang="ar"] { font-family: "Brando Arabic", sans-serif; font-size: 1rem; letter-spacing: 0; }
.menu-toggle {
  display: none; position: relative; width: 46px; height: 46px; border: 1px solid var(--line);
}
.menu-toggle span {
  position: absolute; inset-inline-start: 12px; width: 20px; height: 2px; background: currentColor;
  transition: transform .5s var(--ease-out), opacity .3s, top .5s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; width: 12px; }
.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 22px; width: 20px; transform: rotate(-45deg); }
.menu-open .site-header { background: transparent; --fg: var(--limewash); --line: var(--line-on-dark); }
.menu-open .site-header::after { opacity: 0; }
.menu-open { overflow: hidden; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--header-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background-color: var(--basalt); color: var(--limewash); overflow-y: auto;
  visibility: hidden; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
}
.menu-open .mobile-menu { visibility: visible; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transition: clip-path .8s var(--ease-in-out), visibility 0s 0s; }
.mobile-menu__links { list-style: none; margin: 0; padding: 0; }
.mobile-menu__links li { border-bottom: 1px solid var(--line-on-dark); overflow: hidden; }
.mobile-menu__links a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: .38em;
  font-size: clamp(1.5rem, 6.4vw, 2.2rem); font-weight: 700; line-height: 1.3; text-transform: none;
  transform: translateY(105%); transition: transform .8s var(--ease-out), color .3s;
  transition-delay: calc(.08s * var(--i, 0) + .2s);
}
.menu-open .mobile-menu__links a { transform: none; }
.mobile-menu__links a[aria-current="page"], .mobile-menu__links a:hover { color: var(--oxide-light); }
.mobile-menu__links .t-num { font-size: .8rem; font-weight: 500; color: var(--hauran); letter-spacing: .12em; }
.mobile-menu__foot { display: grid; gap: 18px; color: rgba(246,243,236,.7); font-size: var(--fs-small); }
.mobile-menu__foot a { color: var(--limewash); }

/* 09 · Footer ============================================================= */
.site-footer { position: relative; overflow: hidden; padding-top: clamp(72px, 9vw, 144px); }
.footer__top {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line);
}
.footer__brand { display: grid; gap: 28px; align-content: start; }
.footer__lockup { width: min(320px, 80%); color: var(--limewash); }
.footer__tagline { font-size: var(--fs-small); line-height: 1.8; color: var(--muted); max-width: 40ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__col h2 { margin-bottom: 20px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__col a, .footer__col li { color: var(--muted); font-size: var(--fs-small); transition: color .3s; }
.footer__col a:hover { color: var(--fg); }
.footer__col .ltr { color: var(--fg); }
.footer__mark { padding-block: clamp(32px, 5vw, 72px) 0; color: var(--limewash); opacity: .07; }
.footer__mark svg { width: 100%; height: auto; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-block: 28px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
  margin-top: clamp(24px, 3vw, 40px);
}
.to-top { display: inline-flex; align-items: center; gap: .6em; color: var(--fg); }
.to-top .icon { width: 18px; height: 18px; }

/* Floating WhatsApp */
.fab-whatsapp {
  position: fixed; z-index: 90; bottom: max(20px, env(safe-area-inset-bottom)); inset-inline-end: 20px;
  display: grid; place-items: center; width: 58px; height: 58px; color: #fff; background: #1FA855;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translateY(140%); transition: transform .6s var(--ease-out), background .3s;
}
[dir="rtl"] .fab-whatsapp { clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px); }
.fab-whatsapp.is-visible { transform: none; }
.fab-whatsapp:hover { background: var(--basalt); }
.fab-whatsapp .icon { width: 28px; height: 28px; }

/* 10 · Heroes ============================================================= */
/* Home hero — full-bleed photograph, content anchored to the bottom (Brikon rhythm) */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, 100svh); display: flex; align-items: flex-end;
  background: var(--basalt); color: var(--limewash);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img, .hero__media picture { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { transform: scale(1.1); transition: transform 2.6s var(--ease-out); }
.is-loaded .hero__media img { transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28,30,31,.55) 0%, rgba(28,30,31,0) 22%),
    linear-gradient(0deg, rgba(28,30,31,.94) 0%, rgba(28,30,31,.7) 24%, rgba(28,30,31,.05) 58%);
}
.hero__content { width: 100%; padding-block: calc(var(--header-h) + 48px) clamp(36px, 5.5vw, 80px); }

/* Inner-page hero — basalt, ruled grid, ghosted mark, oxide corner */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(48px, 6vw, 96px)) clamp(44px, 5vw, 80px);
}
.page-hero .ghost-mark { bottom: -.18em; }
.page-hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(24px, 3vw, 40px); }
.page-hero__title { max-width: 20ch; }
html[lang="ar"] .page-hero__title { max-width: 22ch; }
.page-hero__meta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end;
  padding-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line);
}
.page-hero__meta .t-lead { max-width: 56ch; color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: var(--tt-label); font-weight: var(--fw-label); color: var(--muted); }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb li { display: inline-flex; align-items: center; gap: .6em; }
.breadcrumb li + li::before { content: "/"; opacity: .5; }
.breadcrumb [aria-current] { color: var(--fg); }

/* 11 · Section heads & media ============================================== */
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.section-head__text { display: grid; gap: 18px; max-width: 900px; }
.section-head__text .t-lead { color: var(--muted); max-width: 60ch; }
.section-head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.section-head--center .section-head__text { justify-items: center; }
.section-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }

.media { position: relative; overflow: hidden; background: var(--basalt-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--landscape { aspect-ratio: 16 / 10; }
.media--wide { aspect-ratio: 21 / 9; }
.media--square { aspect-ratio: 1; }
.media__caption {
  position: absolute; inset-inline-start: 0; bottom: 0; z-index: 2;
  padding: 10px 16px; background: var(--basalt); color: var(--limewash);
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: var(--tt-label); font-weight: var(--fw-label);
}
/* image with a diagonal lime-wash corner, like the square posts */
.media--cut::after {
  content: ""; position: absolute; inset-inline-end: 0; bottom: 0; width: 38%; aspect-ratio: 1;
  background: var(--bg); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
[dir="rtl"] .media--cut::after { clip-path: polygon(0 0, 100% 100%, 0 100%); }

/* Tag / status chip */
.tag {
  display: inline-flex; align-items: center; gap: .5em; min-height: 30px; padding: 0 .8em;
  border: 1px solid var(--line); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
html[lang="ar"] .tag { font-size: .82rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.tag--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tag--accent { background: var(--oxide); color: var(--limewash); border-color: var(--oxide); }
.tag--glass { background: rgba(28,30,31,.55); color: var(--limewash); border-color: rgba(246,243,236,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tag__dot { width: 7px; height: 7px; background: currentColor; }
.tag--live .tag__dot { background: var(--oxide-light); }
@keyframes pulse { 50% { opacity: .25; } }

/* Placeholder ribbon — marks content the client must replace before launch */
.placeholder-flag {
  display: inline-flex; align-items: center; gap: .4em; padding: 3px 8px;
  background: repeating-linear-gradient(-45deg, #E9C46A 0 8px, #F2D78E 8px 16px);
  color: var(--basalt); font-family: var(--font-latin); font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

/* 12 · Marquee & statement ================================================ */
.marquee {
  --speed: 42s;
  position: relative; overflow: hidden; display: flex; user-select: none;
  border-block: 1px solid var(--line);
}
.marquee__track {
  display: flex; flex: none; align-items: center; gap: 0; min-width: 100%;
  animation: marquee var(--speed) linear infinite;
}
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); padding-inline: clamp(20px, 2.4vw, 40px);
  padding-block: clamp(20px, 2.4vw, 32px); white-space: nowrap;
  font-size: clamp(1.2rem, 2.1vw, 2rem); font-weight: var(--fw-h3); text-transform: var(--tt-head); line-height: 1.2;
}
.marquee__item .icon { width: clamp(28px, 2.6vw, 40px); height: clamp(28px, 2.6vw, 40px); color: var(--accent); }
.marquee__sep { width: 12px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 55% 0, 100% 45%, 100% 100%, 0 100%); flex: none; }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes marquee-rtl { to { transform: translateX(100%); } }

/* Scroll-lit statement — words light up as the reader scrolls (Brikon about block) */
.statement { font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.5; font-weight: 500; text-wrap: pretty; }
html[lang="ar"] .statement { line-height: 1.85; font-weight: 500; }
html[lang="en"] .statement { font-weight: 400; letter-spacing: -.005em; }
.statement em { font-style: normal; color: var(--accent); }

/* 13 · Stats & process ==================================================== */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { position: relative; padding: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 32px) clamp(24px, 3vw, 40px) 0; display: grid; gap: 14px; align-content: start; }
.stat + .stat { padding-inline-start: clamp(16px, 2vw, 32px); border-inline-start: 1px solid var(--line); }
.stat__value { display: flex; align-items: baseline; gap: .04em; font-family: var(--font-latin); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; direction: ltr; justify-content: flex-end; }
html[lang="en"] .stat__value { justify-content: flex-start; }
.stat__value sup, .stat__value .stat__unit { font-size: .45em; color: var(--accent); font-weight: 800; vertical-align: top; position: relative; top: .1em; }
.stat__label { font-size: var(--fs-small); color: var(--muted); max-width: 26ch; line-height: 1.55; }
.stat__title { font-size: var(--fs-h4); font-weight: var(--fw-h4); line-height: var(--lh-h4); }

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.process__step { position: relative; padding: 0 clamp(12px, 1.4vw, 24px) 0 0; display: grid; gap: 16px; align-content: start; }
[dir="rtl"] .process__step { padding: 0 0 0 clamp(12px, 1.4vw, 24px); }
.process__num {
  display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 8px;
  font-family: var(--font-latin); font-weight: 800; font-size: clamp(2.2rem, 3.2vw, 3.2rem); line-height: 1; color: var(--accent);
  border-bottom: 1px solid var(--line); position: relative;
}
.process__num::after { /* progress fill on the rule */
  content: ""; position: absolute; inset-inline-start: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: var(--o, left);
  transition: transform 1.2s var(--ease-out); transition-delay: var(--d, 0s);
}
[dir="rtl"] .process__num::after { --o: right; }
.process__step.is-in .process__num::after { transform: scaleX(1); }
.process__num .icon { width: 30px; height: 30px; color: var(--fg); margin-inline-start: auto; }
.process__title { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: var(--fw-h4); }
.process__text { color: var(--muted); font-size: var(--fs-small); line-height: 1.7; }

/* 14 · Cards ============================================================== */
/* Service card — dark slider tile with icon, number, title, short text */
.service-card {
  --c: var(--cut);
  position: relative; display: flex; flex-direction: column; gap: 22px; min-height: 100%;
  padding: clamp(24px, 2.6vw, 40px); background: var(--surface); color: var(--fg);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
  transition: background .5s var(--ease), color .5s var(--ease);
}
[dir="rtl"] .service-card { clip-path: polygon(var(--c) 0, 100% 0, 100% 100%, 0 100%, 0 var(--c)); }
.service-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.service-card__icon { width: 52px; height: 52px; color: var(--accent); transition: color .5s; }
.service-card__num { font-family: var(--font-latin); font-weight: 500; font-size: .8rem; letter-spacing: .16em; color: var(--muted); }
.service-card__media { margin-inline: calc(clamp(24px, 2.6vw, 40px) * -1); aspect-ratio: 16 / 10; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__title { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-h3); }
.service-card__text { color: var(--muted); font-size: var(--fs-small); line-height: 1.7; }
.service-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.service-card:hover { background: var(--oxide); --muted: rgba(246,243,236,.82); --line: rgba(246,243,236,.28); color: var(--limewash); }
.service-card:hover .service-card__icon, .service-card:hover .service-card__num { color: var(--limewash); }
.service-card .stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Horizontal slider (scroll-snap) */
.slider { position: relative; }
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--slide-w, clamp(280px, 30vw, 440px));
  gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
  scroll-padding-inline: var(--gutter);
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; }
.slider__controls { display: flex; gap: 10px; }
.slider__progress { position: relative; height: 2px; background: var(--line); margin-top: 32px; overflow: hidden; }
.slider__progress span { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: var(--p, 20%); background: var(--accent); transition: width .3s var(--ease); }
.slider--bleed .slider__track { padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); }

/* Project card — photograph first; name, place and status beneath */
.project-card { position: relative; display: grid; gap: 18px; align-content: start; color: var(--fg); }
.project-card__media {
  --c: var(--cut-lg);
  position: relative; overflow: hidden; aspect-ratio: var(--ratio, 4 / 3); background: var(--basalt-2);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
}
[dir="rtl"] .project-card__media { clip-path: polygon(var(--c) 0, 100% 0, 100% 100%, 0 100%, 0 var(--c)); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease-out), filter .8s; }
.project-card:hover .project-card__media img { transform: scale(1.08); }
.project-card__media::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28,30,31,.55), rgba(28,30,31,0) 45%);
  opacity: .8; transition: opacity .6s;
}
.project-card__tags { position: absolute; top: 18px; inset-inline-start: 18px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.project-card__go {
  position: absolute; bottom: 18px; inset-inline-end: 18px; z-index: 2;
  display: grid; place-items: center; width: 56px; height: 56px; background: var(--limewash); color: var(--basalt);
  transform: translateY(12px) scale(.9); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s, background .3s, color .3s;
}
.project-card__go .icon { width: 24px; height: 24px; transform: scaleX(var(--dir)); }
.project-card:hover .project-card__go, .project-card:focus-within .project-card__go { transform: none; opacity: 1; }
.project-card__go:hover { background: var(--oxide); color: var(--limewash); }
.project-card__body { display: grid; gap: 8px; }
.project-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: var(--fs-small); }
.project-card__meta span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--accent); margin-inline-end: 14px; vertical-align: middle; }
.project-card__title { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-h3); }
.project-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project-card__title a:focus-visible { outline: none; }
.project-card:has(.project-card__title a:focus-visible) .project-card__media { outline: 2px solid var(--accent); outline-offset: 4px; }
.project-card--lg { --ratio: 16 / 10; }
.project-card--tall { --ratio: 4 / 5; }

/* Feature item — icon, title, text, used for values / why-us */
.feature { display: grid; gap: 16px; align-content: start; padding-top: 28px; border-top: 1px solid var(--line); }
.feature__icon { width: 44px; height: 44px; color: var(--accent); }
.feature__title { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: var(--fw-h4); }
.feature__text { color: var(--muted); font-size: var(--fs-small); line-height: 1.75; }

/* Icon tile — the brand book's limestone tile with one cut corner */
.tile {
  --c: 20px;
  position: relative; display: grid; gap: 14px; align-content: start; padding: 26px;
  background: var(--surface-2); color: var(--fg);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%);
  transition: background .4s var(--ease), color .4s var(--ease);
}
[dir="rtl"] .tile { clip-path: polygon(var(--c) 0, 100% 0, 100% 100%, 0 100%, 0 var(--c)); }
.tile .icon { width: 44px; height: 44px; }
.tile__title { font-size: 1.05rem; font-weight: var(--fw-h4); line-height: 1.4; }
html[lang="en"] .tile__title { text-transform: uppercase; letter-spacing: .02em; font-weight: 800; font-size: .98rem; }
.tile__text { font-size: .92rem; color: var(--muted); line-height: 1.65; }
.tile__num { font-family: var(--font-latin); font-size: .72rem; letter-spacing: .16em; color: var(--muted); font-weight: 500; }
.tile:hover { background: var(--basalt); color: var(--limewash); --muted: rgba(246,243,236,.7); }
.tile:hover .icon { color: var(--oxide-light); }

/* Check list */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-inline-start: 30px; line-height: 1.6; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 14px; height: 8px;
  border-inline-start: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); transform-origin: center;
}
[dir="rtl"] .check-list li::before { transform: rotate(45deg) scaleX(-1); }
.dash-list { list-style: none; margin: 0; padding: 0; display: grid; }
.dash-list li { display: flex; gap: 16px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--line); }
.dash-list li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--accent); clip-path: polygon(0 0, 55% 0, 100% 45%, 100% 100%, 0 100%); transform: translateY(-.1em); }

/* 15 · Quote, CTA band, group strip ======================================= */
.quote { position: relative; display: grid; gap: 32px; }
.quote__mark { width: 56px; height: 56px; color: var(--accent); }
[dir="rtl"] .quote__mark { transform: scaleX(-1); }
.quote__text { font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.55; font-weight: 400; text-wrap: pretty; }
html[lang="ar"] .quote__text { line-height: 1.7; font-weight: 600; }
.quote__by { display: flex; align-items: center; gap: 16px; }
.quote__by strong { display: block; font-size: 1.1rem; }
.quote__by span { color: var(--muted); font-size: var(--fs-small); }

.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,30,31,.92), rgba(28,30,31,.55)); }
[dir="rtl"] .cta-band__shade { background: linear-gradient(-90deg, rgba(28,30,31,.92), rgba(28,30,31,.55)); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 64px; }
.cta-band__title { max-width: 18ch; }

.group-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.group-item { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 32px) clamp(24px, 3vw, 40px) 0; }
.group-item + .group-item { padding-inline-start: clamp(16px, 2vw, 32px); border-inline-start: 1px solid var(--line); }
.group-item__name { font-size: var(--fs-h4); font-weight: var(--fw-h4); line-height: var(--lh-h4); }
.group-item__role { color: var(--muted); font-size: var(--fs-small); line-height: 1.7; }
.group-item.is-current .group-item__name { color: var(--accent); }

/* 16 · FAQ, forms, dialog ================================================= */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: clamp(20px, 2.2vw, 30px); cursor: pointer;
  font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: var(--fw-h4);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease-out); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--oxide); border-color: var(--oxide); color: var(--limewash); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding-bottom: clamp(20px, 2.2vw, 30px); color: var(--muted); max-width: 72ch; line-height: var(--lh-body); }
.faq__q:hover { color: var(--accent); }

.form { display: grid; gap: 22px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 10px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field .field__label { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: var(--tt-label); font-weight: var(--fw-label); color: var(--muted); }
.field label .req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%; min-height: 58px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 0;
  background: var(--surface); color: var(--fg); font-size: 1rem; line-height: 1.5; font-weight: 500;
  transition: border-color .3s, box-shadow .3s, background .3s; appearance: none; -webkit-appearance: none;
}
.textarea { min-height: 150px; resize: vertical; }
.select {
  padding-inline-end: 48px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
[dir="rtl"] .select { background-position: 16px 50%, 22px 50%; }
.input::placeholder, .textarea::placeholder { color: var(--hauran); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--fg); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: #B3261E; box-shadow: 0 0 0 1px #B3261E; }
.field__error { color: #B3261E; font-size: .85rem; min-height: 0; }
.theme-dark .field__error { color: #F2A89A; }
.theme-dark .field.is-invalid .input, .theme-dark .field.is-invalid .select, .theme-dark .field.is-invalid .textarea { border-color: #F2A89A; box-shadow: 0 0 0 1px #F2A89A; }
.input[type="tel"], .input[type="email"] { direction: ltr; text-align: start; }
[dir="rtl"] .input[type="tel"], [dir="rtl"] .input[type="email"] { text-align: right; }
.dropzone {
  position: relative; display: grid; justify-items: center; gap: 10px; padding: 32px 20px; text-align: center;
  border: 1px dashed var(--hauran); background: var(--surface); color: var(--muted); cursor: pointer;
  transition: border-color .3s, background .3s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: var(--surface-2); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon { width: 36px; height: 36px; color: var(--accent); }
.dropzone__files { font-size: .9rem; color: var(--fg); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); line-height: 1.6; }
.consent input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin-top: .1em; border: 1px solid var(--fg); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.consent input:checked { background: var(--oxide); border-color: var(--oxide); }
.consent input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.form__status { grid-column: 1 / -1; padding: 18px 20px; border-inline-start: 3px solid var(--accent); background: var(--surface-2); }
.form__status[data-state="error"] { border-color: #B3261E; }

/* Project dialog (drawer) */
.drawer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--limewash); overflow: hidden;
}
.drawer::backdrop { background: rgba(28, 30, 31, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(980px, 100%);
  background: var(--basalt); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(calc(100% * var(--dir))); transition: transform .8s var(--ease-out);
}
.drawer[open] .drawer__panel.is-in { transform: none; }
.drawer__close {
  position: sticky; top: 0; z-index: 5; display: flex; justify-content: flex-end; padding: 16px;
  background: linear-gradient(var(--basalt), rgba(28,30,31,0));
}
.drawer__close button { display: grid; place-items: center; width: 52px; height: 52px; background: var(--limewash); color: var(--basalt); transition: background .3s, color .3s; }
.drawer__close button:hover { background: var(--oxide); color: var(--limewash); }
.drawer__body { padding: 0 clamp(20px, 4vw, 56px) clamp(40px, 6vw, 72px); margin-top: -84px; }
.fact-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { padding-inline-end: 20px; }
.fact:nth-child(even) { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.fact dt { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: var(--tt-label); font-weight: var(--fw-label); color: var(--muted); }
.fact dd { font-size: 1.05rem; font-weight: 600; }

/* 17 · Motion ============================================================= */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(calc(-40px * var(--dir))); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Image wipe along the reading direction, with the photo settling inside */
.js [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-in-out); transition-delay: var(--d, 0s); }
.js[dir="rtl"] [data-reveal="wipe"] { clip-path: inset(0 0 0 100%); }
.js [data-reveal="wipe"] img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="wipe"].is-in img { transform: scale(1); }
/* Line-by-line headline rise */
.js [data-lines] .line { display: block; overflow: hidden; padding-block: .14em .08em; margin-block: -.14em -.08em; }
.js [data-lines] .line > span { display: block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--i, 0) * .09s); }
.js [data-lines].is-in .line > span { transform: none; }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal="wipe"], .js [data-lines] .line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-reveal="wipe"] img { transform: none !important; }
  .marquee__track { animation: none !important; }
}

/* 17b · Scroll-scrubbed depth ========================================= */
/* Scroll-scrubbed depth: JS writes --p (0 → 1) as the element travels up the viewport */
[data-scrub] { --p: 1; }
.scrub-rise { transform: translate3d(0, calc((1 - var(--p)) * var(--rise, 220px)), 0); }
.scrub-zoom { overflow: hidden; }
.scrub-zoom img { transform: scale(calc(1 + (1 - var(--p)) * var(--zoom, .25))); transform-origin: center; }
.scrub-deal {
  transform:
    translate3d(calc((1 - var(--p)) * var(--dx, 0px) * var(--dir)), calc((1 - var(--p)) * var(--dy, 0px)), 0)
    rotate(calc((1 - var(--p)) * var(--rot, 0deg) * var(--dir)));
}
.scrub-hinge { transform: perspective(1600px) rotateY(calc((1 - var(--p)) * var(--hinge, 55deg) * var(--dir))); transform-origin: 0% 50%; }
[dir="rtl"] .scrub-hinge { transform-origin: 100% 50%; }
.scrub-scale { transform: scale(calc(var(--from, .7) + (1 - var(--from, .7)) * var(--p))); transform-origin: 50% 100%; }
.scrub-fade { opacity: calc(.15 + .85 * var(--p)); }

@media (prefers-reduced-motion: reduce) {
  [data-scrub] { --p: 1 !important; }
}

/* 18 · Utilities & responsive ============================================= */
.mt-0 { margin-top: 0 !important; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: clamp(40px, 5vw, 72px); }
.mb-l { margin-bottom: clamp(40px, 5vw, 72px); }
.text-center { text-align: center; }
.text-end { text-align: end; }
.w-full { width: 100%; }
.relative { position: relative; }
.z-1 { position: relative; z-index: 1; }
.nowrap { white-space: nowrap; }
.hide-mobile { }
.show-mobile { display: none; }

@media (max-width: 1180px) {
  .header__nav { display: none; }
  .menu-toggle { display: inline-block; }
  .header__actions { margin-inline-start: auto; }
  .header__actions .btn { display: none; }
  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (min-width: 1181px) {
  .mobile-menu { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .split, .split--even { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-head, .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .page-hero__meta { grid-template-columns: 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; align-items: start; }
  .group-strip { grid-template-columns: 1fr; }
  .group-item + .group-item { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .sticky-col { position: static; }
  .header__logo-text { display: none; }
}
@media (max-width: 720px) {
  :root { --cut-lg: 28px; --cut: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process__step, [dir="rtl"] .process__step { padding: 0; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols .footer__col:last-child { grid-column: 1 / -1; }
  .fact-sheet { grid-template-columns: 1fr; }
  .fact:nth-child(even) { padding-inline-start: 0; border-inline-start: 0; }
  .hide-mobile { display: none !important; }
  .show-mobile { display: initial; }
  .btn { min-height: 52px; }
  .lang-switch, .menu-toggle { width: 44px; min-width: 44px; height: 44px; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* 19 · Corporate components (v2) ========================================== */
/* Section header: label, title, optional intro; action link aligned to the end */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 48px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head__text { display: grid; gap: 14px; max-width: 760px; }
.sec-head__text .t-lead, .sec-head__text p:not(.eyebrow) { color: var(--muted); }
.sec-head--rule { padding-bottom: clamp(20px, 2.4vw, 32px); border-bottom: 1px solid var(--line); }

/* Arrow link (formal) */
.more { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); white-space: nowrap; }
html[lang="ar"] .more { font-size: .95rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.more .icon { width: 1.15em; height: 1.15em; color: var(--accent); transform: scaleX(var(--dir)); transition: transform .4s var(--ease-out); }
.more:hover .icon { transform: translateX(calc(3px * var(--dir))) scaleX(var(--dir)); }
.more:hover { color: var(--accent); }

/* Key figures band */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.kpi { padding: clamp(20px, 2.4vw, 32px) clamp(12px, 1.6vw, 28px) 4px 0; display: grid; gap: 8px; align-content: start; }
.kpi + .kpi { padding-inline-start: clamp(12px, 1.6vw, 28px); border-inline-start: 1px solid var(--line); }
.kpi__value { font-family: var(--font-latin); font-weight: 700; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.05; letter-spacing: -.01em; direction: ltr; text-align: start; }
html[lang="ar"] .kpi__value { text-align: right; }
.kpi__value span { color: var(--accent); }
.kpi__label { font-size: var(--fs-small); color: var(--muted); line-height: 1.6; max-width: 26ch; }

/* Service tile: image, number, title, text, link */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2vw, 28px); }
.svc-tile { position: relative; display: grid; align-content: start; gap: 14px; }
.svc-tile__media { --c: var(--cut); position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--basalt-2);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%); }
[dir="rtl"] .svc-tile__media { clip-path: polygon(var(--c) 0, 100% 0, 100% 100%, 0 100%, 0 var(--c)); }
.svc-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.svc-tile:hover .svc-tile__media img { transform: scale(1.04); }
.svc-tile__num { font-family: var(--font-latin); font-size: .75rem; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.svc-tile__title { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: var(--fw-h3); }
.svc-tile__title a::after { content: ""; position: absolute; inset: 0; }
.svc-tile__text { color: var(--muted); font-size: var(--fs-small); line-height: 1.75; }
.svc-tile--wide { grid-column: span 2; }
.svc-tile--wide .svc-tile__media { aspect-ratio: 16 / 7.4; }

/* Commitments list: icon, title, text in ruled rows */
.commits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); border-top: 1px solid var(--line); }
.commit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; padding-block: clamp(18px, 2vw, 26px); border-bottom: 1px solid var(--line); }
.commit .icon { grid-row: 1 / 3; width: 32px; height: 32px; color: var(--accent); margin-top: 2px; }
.commit__title { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: var(--fw-h4); }
.commit__text { color: var(--muted); font-size: var(--fs-small); line-height: 1.75; }

/* Group company cards */
.companies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.company { --c: var(--cut-sm); display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.4vw, 32px); background: var(--surface); border-top: 2px solid var(--line); }
.company.is-current { border-top-color: var(--accent); }
.company__sector { font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: var(--tt-label); font-weight: var(--fw-label); color: var(--muted); }
.company__name { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: 700; }
.company__text { color: var(--muted); font-size: var(--fs-small); line-height: 1.75; }

/* Illustrative-content caption (formal, replaces the striped dev flags) */
.illus { display: inline-block; font-size: .72rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.project-card__tags .illus, .media .illus { padding: 4px 9px; background: rgba(28,30,31,.62); color: rgba(246,243,236,.82); }
html[lang="ar"] .illus { font-size: .8rem; letter-spacing: 0; }

/* Formal hero */
.hero__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(246,243,236,.2); }
.hero__fact { padding: 18px 16px 0 0; display: grid; gap: 4px; color: rgba(246,243,236,.72); font-size: .88rem; line-height: 1.5; }
[dir="rtl"] .hero__fact { padding: 18px 0 0 16px; }
.hero__fact + .hero__fact { padding-inline-start: 16px; border-inline-start: 1px solid rgba(246,243,236,.16); }
.hero__fact strong { color: var(--limewash); font-weight: 600; font-size: .95rem; }

@media (max-width: 960px) {
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-tile--wide { grid-column: span 2; }
  .commits { grid-template-columns: 1fr; }
  .companies { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__fact:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
}
@media (max-width: 620px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-tile--wide { grid-column: auto; }
  .svc-tile--wide .svc-tile__media { aspect-ratio: 16 / 10; }
}

/* Photographic layer for inner-page heroes (subdued, text stays on basalt) */
.page-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(.25); }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--basalt) 18%, rgba(28,30,31,.55) 62%, rgba(28,30,31,.25) 100%);
}
[dir="rtl"] .page-hero__bg::after { background: linear-gradient(-90deg, var(--basalt) 18%, rgba(28,30,31,.55) 62%, rgba(28,30,31,.25) 100%); }
@media (max-width: 720px) {
  .page-hero__bg img { opacity: .26; }
  .page-hero__bg::after, [dir="rtl"] .page-hero__bg::after { background: linear-gradient(0deg, var(--basalt) 10%, rgba(28,30,31,.5) 100%); }
}
