:root {
  --bg: #f3f6fb;
  --bg-2: #e7edf6;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --ink-2: #4a5870;
  --muted: #6b7a92;
  --line: #dbe3ef;
  --accent: #1565d8;
  --accent-2: #0f4fb0;
  --accent-soft: #e2edfd;
  --pine: #0a2342;
  --pine-2: #1d4f91;
  --pine-soft: #e3ebf7;
  --sun: #f4b942;
  --danger: #b42318;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 35, 66, .06), 0 8px 24px -14px rgba(10, 35, 66, .22);
  --shadow-lg: 0 24px 60px -24px rgba(10, 35, 66, .38);
  --max: 1200px;
  --f-display: "Readex Pro", "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif;
  --f-body: "Inter", "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif;
}
html[lang="ar"] { --f-body: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Inter", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Nothing may widen the page sideways (no white strip at the edge); clip keeps sticky bars working */
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { line-height: 1.75; }
img, video { max-width: 100%; display: block; }
img { height: auto; }
/* <picture> only picks the file; the <img> inside lays out as if it were the direct child. */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 600; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
.display { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 600; }
.h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
.h3 { font-size: 1.2rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.caption { font-size: .82rem; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font: 600 .8rem/1 var(--f-display);
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--ink-2); }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--ink-2); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
