/* Tokens, reset, typography and layout primitives */
:root {
  --navy: #10325b;
  --navy-900: #0a2142;
  --navy-700: #1d4c86;
  --gold: #f2b966;
  --gold-600: #d99a3e;
  --gold-700: #8f5d12;
  --gold-100: #fdf1dc;
  --ink: #14213a;
  --text: #4b4b4b;
  --muted: #5f6b7f;
  --bg: #ffffff;
  --tint: #f6f3ec;
  --line: #e7e1d4;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(14, 32, 64, .28);
  --shadow-sm: 0 10px 30px -14px rgba(14, 32, 64, .25);
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 110px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-heading: 'Soliden', 'Neue Haas Grotesk Text', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Neue Haas Grotesk Text', 'Helvetica Neue', Arial, system-ui, sans-serif;
}

html[lang='ar'] {
  --font-heading: 'Almarai', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'Almarai', 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, address { margin: 0; font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--navy-900); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 200; background: var(--gold); color: var(--navy-900); padding: .75rem 1.25rem; border-radius: 999px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 16px; }

/* Icons */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--navy); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
html[lang='ar'] h1, html[lang='ar'] h2, html[lang='ar'] h3, html[lang='ar'] h4 { letter-spacing: 0; line-height: 1.35; font-weight: 800; }
.h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.h4 { font-size: 1.15rem; }
html[lang='ar'] .h2 { font-weight: 800; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--ink); }
.eyebrow { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700); margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--gold); }
html[lang='ar'] .eyebrow { letter-spacing: 0; font-size: .9rem; text-transform: none; }
.center { text-align: center; }

/* Layout */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: rgba(255, 255, 255, .85); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head__title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; }
html[lang='ar'] .section-head__title { font-weight: 800; }
.section-head__text { margin-top: 1rem; font-size: 1.1rem; color: var(--text); }
.section--dark .section-head__text { color: rgba(255, 255, 255, .7); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--groups { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--services, .grid--projects { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--posts { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--posts-lead { grid-template-columns: repeat(3, 1fr); }
.grid--posts-lead .card--large { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; }
@media (max-width: 900px) { .grid--posts-lead { grid-template-columns: 1fr 1fr; } .grid--posts-lead .card--large { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid--posts-lead { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split__text > * + * { margin-top: 1.25rem; }
.split__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem !important; }
.split__media { position: relative; border-radius: var(--radius); overflow: visible; }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
@media (max-width: 1000px) { .layout-side { grid-template-columns: 1fr; } .side { position: static; } }
