/* Neuractor site v2 · Brand 3.0, option 03 "Gain" (Thu 8 Oct 2026). One stylesheet for / and /ar/.
   COLOUR: every colour on this site comes from the GENERATED block below, which _tools/apply_brand.py writes from a
     palette file (brand3/colour/PALETTE-SCHEMA.md). The hand-written rules after the block use role tokens only and
     contain no colour literal (verify.py fails on a hex, rgb() or named colour outside the block).
     The spark (the small square ahead of the five bands) is the recurring device: section labels, list markers and
     the highlighter behind "page 14". On light grounds it falls back to a stronger role when the palette's spark is
     below 3:1 there (apply_brand.py decides and prints why).
   TYPE: Instrument Sans (Latin, wght 400-700, wdth 75-100) and Alexandria (Arabic, wght 100-900), self-hosted
     woff2 subsets from brand-final/fonts/web (SIL OFL 1.1; assets/fonts/SOURCES.txt). Labels use Instrument Sans at
     87.5% width; references use its tabular figures.
   LAYOUT: logical properties only, so the same rules serve left-to-right and right-to-left. The mark itself is never
     mirrored: its output always faces right, and in Arabic it sits at the line end (left).
   No external requests: no CDNs, no Google Fonts. Western digits everywhere. */

/* BEGIN GENERATED BRAND TOKENS: written by _tools/apply_brand.py. Do not edit by hand; re-run apply_brand.py. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%;
  font-display: swap; src: url("fonts/instrument-sans/InstrumentSans-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alexandria"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/alexandria/Alexandria-arabic-var.woff2") format("woff2"); }

:root {
  --bg: #F7F6F2;
  --bg-alt: #ECEDE7;
  --surface: #ECEDE7;
  --ink: #121B19;
  --muted: #4A5552;
  --caption: #5A6461;
  --accent: #007068;
  --accent-alt: #007068;
  --rule: #D8D9D2;
  --rule-strong: #8A908C;
  --btn-bg: #003A34;
  --btn-ink: #FFFFFF;
  --btn-line: transparent;
  --focus: #003A34;
  --sel-bg: #003A34;
  --sel-ink: #FFFFFF;
  --marker: #00966A;
  --chip-spark: #00966A;
  --chip-band: linear-gradient(#003A34, #003A34);
  --hl-bg: #00966A;
  --hl-ink: #121B19;
  --shadow-c: rgb(10 34 32 / 0.35);
  --d-bg: #0A2220;
  --d-surface: #192F2D;
  --d-surface-2: #253A39;
  --d-rule: #364A48;
  --d-ink: #F7F6F2;
  --d-muted: #A9BFB8;
  --d-accent: #F7F6F2;
  --d-mark: #00966A;
  --d-spark: #00966A;
  --d-band: linear-gradient(#FFFFFF, #FFFFFF);
  --d-chip: #A9BFB8;
  --d-focus: #F7F6F2;
  --d-flash: #124E3F;
  --p-bg: #F7F6F2;
  --p-ink: #121B19;
  --p-muted: #4A5552;
  --p-hl-bg: #00966A;
  --p-hl-ink: #121B19;
  --p-ring: #00966A;
  --p-ref-bg: #003A34;
  --p-ref-ink: #FFFFFF;
  --c-bg: #0A2220;
  --c-ink: #FFFFFF;
  --c-muted: #A9BFB8;
  --c-spark: #00966A;
  --c-band: linear-gradient(#FFFFFF, #FFFFFF);
  --c-rule: #364A48;
  --f-bg: #0E1F1D;
  --f-link: #FFFFFF;
  --f-muted: #A9BFB8;
  --f-line: #637772;
  --f-rule: #303E3D;
  --f-spark: #00966A;
  --f-border: #2B3A38;
  --logo-head-en-w: 219.2px;
  --logo-head-ar-w: 165.8px;
  --logo-head-en-w-sm: 208.8px;
  --logo-head-ar-w-sm: 157.9px;
  --logo-foot-en-w: 229.6px;
  --logo-foot-ar-w: 173.7px;
  --header-h: 75px;
  --header-h-ar: 78px;
  --header-h-sm: 72px;
  --header-h-ar-sm: 75px;
  --cite-mark-h: 32px;
  --fan-aspect: 1.0676;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A2220;
    --bg-alt: #132A28;
    --surface: #1A302E;
    --ink: #F7F6F2;
    --muted: #A9BFB8;
    --caption: #A9BFB8;
    --accent: #F7F6F2;
    --accent-alt: #F7F6F2;
    --rule: #2A3F3D;
    --rule-strong: #596D6A;
    --btn-bg: #00966A;
    --btn-ink: #04110F;
    --btn-line: transparent;
    --focus: #00966A;
    --sel-bg: #00966A;
    --sel-ink: #04110F;
    --marker: #00966A;
    --chip-spark: #00966A;
    --chip-band: linear-gradient(#FFFFFF, #FFFFFF);
    --hl-bg: #00966A;
    --hl-ink: #121B19;
    --shadow-c: rgb(15 30 28 / 0.6);
    --d-bg: #132A28;
    --d-surface: #213735;
    --d-surface-2: #2D4140;
    --d-rule: #3D504F;
    --d-ink: #F7F6F2;
    --d-muted: #A9BFB8;
    --d-accent: #F7F6F2;
    --d-mark: #00966A;
    --d-spark: #00966A;
    --d-band: linear-gradient(#FFFFFF, #FFFFFF);
    --d-chip: #A9BFB8;
    --d-focus: #F7F6F2;
    --d-flash: #175445;
    --p-bg: #F7F6F2;
    --p-ink: #121B19;
    --p-muted: #4A5552;
    --p-hl-bg: #00966A;
    --p-hl-ink: #121B19;
    --p-ring: #00966A;
    --p-ref-bg: #003A34;
    --p-ref-ink: #FFFFFF;
    --c-bg: #0A2220;
    --c-ink: #FFFFFF;
    --c-muted: #A9BFB8;
    --c-spark: #00966A;
    --c-band: linear-gradient(#FFFFFF, #FFFFFF);
    --c-rule: #364A48;
    --f-bg: #0E1F1D;
    --f-link: #FFFFFF;
    --f-muted: #A9BFB8;
    --f-line: #637772;
    --f-rule: #303E3D;
    --f-spark: #00966A;
    --f-border: #2B3A38;
  }
}
/* END GENERATED BRAND TOKENS */

:root {
  --font: "Instrument Sans", "Alexandria", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --font-ar: "Alexandria", "Instrument Sans", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  --font-mono: var(--font);   /* Brand 3.0 has no mono face: references use Instrument Sans tabular figures */
  --font-label: var(--font);  /* used with font-stretch: 87.5% (Instrument Sans wdth axis) */
  --label-stretch: 87.5%;

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 10px;
  --radius-sm: 6px;
  --measure: 66ch;

  color-scheme: light dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-block-size: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
  font-size: 1.125rem;
  line-height: 1.85;
}

[lang="ar"], [lang="ar"] * { letter-spacing: 0 !important; } /* Arabic is never letter-spaced */
[lang="ar"] { font-family: var(--font-ar); }
[lang="en"] { font-family: var(--font); }
html[lang="ar"] [lang="en"] { font-family: var(--font); }

main { flex: 1 0 auto; }
img, svg { display: block; max-inline-size: 100%; block-size: auto; }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

::selection { background: var(--sel-bg); color: var(--sel-ink); }

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -5rem;
  padding: 0.6rem 1rem;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-radius: var(--radius-sm);
  z-index: 50;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { inset-block-start: 1rem; }

.wrap {
  inline-size: 100%;
  max-inline-size: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin-block: 0 0.75rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
  font-family: var(--font-ar);
  line-height: 1.45;
  font-weight: 600;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.75rem); letter-spacing: -0.025em; }
html[lang="ar"] h1 { font-size: clamp(1.85rem, 3.9vw, 3.05rem); }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.45rem); }
html[lang="ar"] h2 { font-size: clamp(1.45rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { margin-block: 0 1rem; max-inline-size: var(--measure); }
p:last-child { margin-block-end: 0; }
.lead { font-size: clamp(1.13rem, 1.7vw, 1.32rem); line-height: 1.55; color: var(--ink); max-inline-size: 58ch; }
html[lang="ar"] .lead { line-height: 1.85; }
.muted, .note { color: var(--muted); }
.small { font-size: 0.92rem; }
strong { font-weight: 600; }
bdi { unicode-bidi: isolate; }
code, .mono { font-family: var(--font-mono); font-size: 0.95em; font-variant-numeric: tabular-nums; }

/* Eyebrow label with the chip: the spark square ahead of one band, a small echo of the mark (never mirrored) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-block-end: 1rem;
  color: var(--muted);
  font-family: var(--font-label);
  font-stretch: var(--label-stretch);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
html[lang="ar"] .eyebrow, [lang="ar"] .eyebrow {
  font-family: var(--font-ar);
  font-size: 0.95rem;
  text-transform: none;
}
.alt .eyebrow { color: var(--muted); }
.alt a:not(.btn) { color: var(--accent-alt); }

.chip::before {
  content: "";
  flex: none;
  inline-size: 1.6rem;
  block-size: 0.55rem;
  background:
    linear-gradient(var(--chip-spark), var(--chip-spark)) 0 50% / 0.55rem 0.55rem no-repeat,
    var(--chip-band) 100% 50% / 0.9rem 0.42rem no-repeat;
}
/* List and section markers: the spark square on its own */
.chips > li::before, .marker::before {
  content: "";
  flex: none;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  background: var(--marker);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--bg);
  border-block-end: 1px solid var(--rule);
}
@media (min-width: 1100px) {
  .site-header { position: sticky; inset-block-start: 0; }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-block-size: var(--header-h); /* lockup height + 2x the spark side above and below (brand-sheet §5) */
  padding-block: 0.2rem;
}
.brand { display: inline-flex; flex: none; border-radius: 6px; }
html[lang="ar"] .site-header .wrap { min-block-size: var(--header-h-ar); }
.brand img { inline-size: var(--logo-head-en-w); } /* full lockup, mark >= 40 px tall (brand-sheet §5) */
.brand--ar img { inline-size: var(--logo-head-ar-w); }
@media (max-width: 480px) {
  .site-header .wrap { min-block-size: var(--header-h-sm); }
  html[lang="ar"] .site-header .wrap { min-block-size: var(--header-h-ar-sm); }
  .brand img { inline-size: var(--logo-head-en-w-sm); }
  .brand--ar img { inline-size: var(--logo-head-ar-w-sm); }
}

.nav-desktop { display: none; margin-inline-start: auto; }
.nav-desktop ul, .nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop ul { display: flex; align-items: center; gap: 0.15rem; }
.nav-desktop a:not(.btn), .nav-mobile a:not(.btn) {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
html[lang="ar"] .nav-desktop a { font-size: 1rem; }
.nav-desktop a:hover { background: var(--bg-alt); }
.nav-desktop a[aria-current="page"], .nav-mobile a[aria-current="page"] {
  background: var(--bg-alt);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.nav-desktop .lang a, .nav-mobile .lang a { border: 1px solid var(--rule-strong); font-weight: 600; }
.site-header .header-cta { display: none; }

.nav-mobile { margin-inline-start: auto; }
.nav-mobile > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile > summary .bars {
  inline-size: 1rem; block-size: 0.7rem;
  background:
    linear-gradient(currentColor 0 0) top / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat;
}
.nav-mobile[open] > summary .bars {
  background: linear-gradient(currentColor 0 0) center / 100% 2px no-repeat;
}
.nav-mobile .panel {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  background: var(--bg);
  border-block-end: 1px solid var(--rule);
  box-shadow: 0 18px 30px -18px var(--shadow-c);
  padding: 0.75rem var(--gutter) 1.25rem;
}
.nav-mobile .panel ul { display: grid; gap: 0.15rem; }
.nav-mobile .panel a:not(.btn) { font-size: 1.05rem; padding: 0.7rem 0.8rem; border-radius: var(--radius-sm); }
.nav-mobile .panel .btn { display: flex; margin-block-start: 0.75rem; text-align: center; color: var(--btn-ink); white-space: normal; }

@media (min-width: 1100px) {
  .nav-desktop { display: block; }
  .site-header .header-cta { display: inline-flex; }
  .nav-mobile { display: none; }
}
/* Arabic labels are wider: keep the menu button until 1180 px so «راسلونا» keeps the page gutter */
@media (min-width: 1100px) and (max-width: 1179.98px) {
  html[lang="ar"] .nav-desktop, html[lang="ar"] .site-header .header-cta { display: none; }
  html[lang="ar"] .nav-mobile { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.25rem;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1px solid var(--btn-line);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.arrow { display: inline-block; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-block-start: 1.75rem;
}
.textlink { font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.section + .section { border-block-start: 1px solid var(--rule); }
.alt { background: var(--bg-alt); }
.section-head { max-inline-size: 46rem; margin-block-end: clamp(1.75rem, 3vw, 2.75rem); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.25rem, 2.6vw, 2.5rem) clamp(1.25rem, 2.2vw, 2rem); }
.hero .wrap { display: grid; gap: 1.25rem clamp(2rem, 4vw, 4rem); align-items: end; }
.hero h1 { max-inline-size: 14ch; margin: 0; font-size: clamp(2.4rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.03em; }
html[lang="ar"] .hero h1 { max-inline-size: 14ch; font-size: clamp(2.3rem, 5vw, 4.1rem); line-height: 1.3; }
.hero .eyebrow { margin-block-end: 0.9rem; }

/* The example citation under the headline. The symbol opens into the citation: a question goes in, an ordered
   reference comes out. In Arabic it sits at the line's end (its left) and still faces right (brand-sheet §1). */
.cite-line { margin: clamp(1rem, 2vw, 1.5rem) 0 0; max-inline-size: none; }
.cite-label { display: block; margin-block-end: 0.4rem; font-family: var(--font-label); font-stretch: var(--label-stretch); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .cite-label { font-family: var(--font-ar); font-size: 0.92rem; letter-spacing: 0; text-transform: none; }
.cite-ref { display: inline-flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; row-gap: 0.3rem; }
.cite-mark { flex: none; display: block; block-size: var(--cite-mark-h); inline-size: auto; } /* symbol >= 24 px tall (brand-sheet §5) */
.cite-mark img { block-size: var(--cite-mark-h); inline-size: auto; }
.cite-text { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(0.95rem, 0.55rem + 1.6vw, 1.32rem); font-weight: 500; color: var(--ink); white-space: nowrap; }
html[lang="ar"] .cite-text { font-family: var(--font-ar); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.28rem); white-space: normal; }
html[lang="ar"] .cite-ref { flex-wrap: nowrap; } /* the text wraps; the mark stays at the line end (left), never on a line of its own */
html[lang="ar"] .cite-text { min-inline-size: 0; }
.cite-text .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.cite-text .sep { color: var(--muted); padding-inline: 0.15em; }
/* "Look here": the page reference is highlighted in the spark colour, like a highlighter pen (class kept from Brand 2.0) */
.redline {
  white-space: nowrap; /* "page 14" / «الصفحة 14» never splits */
  padding: 0.04em 0.22em;
  margin-inline: -0.08em;
  color: var(--hl-ink);
  border-radius: 2px;
  background: linear-gradient(var(--hl-bg), var(--hl-bg)) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
html[dir="rtl"] .redline { background-position: 100% 0; }
@media (prefers-reduced-motion: no-preference) {
  /* Motion: the symbol settles (0-520 ms), then the highlight sweeps once along the reading direction. No bounce. */
  .cite-mark { animation: nx-in 520ms cubic-bezier(.2, .7, .2, 1) 200ms both; }
  .redline { animation: nx-hl 240ms ease-out 620ms both; }
}
@keyframes nx-in { 0% { opacity: 0; transform: scale(0.86); } 60%, 100% { opacity: 1; transform: none; } }
@keyframes nx-hl { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.hero .lead { margin: 0; font-size: clamp(1.05rem, 1.4vw, 1.18rem); }
.hero .actions { margin-block-start: 1.1rem; }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  html[lang="ar"] .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html[lang="ar"] .hero .lead { line-height: 1.75; }
}
.facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-block-start: 1px solid var(--rule-strong);
}
.facts > div { padding-block: 0.9rem; border-block-end: 1px solid var(--rule); }
.facts dt { font-weight: 600; display: flex; align-items: center; gap: 0.6rem; }
.facts dt::before {
  content: ""; flex: none; inline-size: 0.45rem; block-size: 0.45rem; background: var(--marker);
}
.facts dd { margin: 0.15rem 0 0; padding-inline-start: 1.05rem; color: var(--muted); font-size: 0.97rem; }

.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.page-hero h1 { max-inline-size: 24ch; }
.page-hero .lead { margin-block-start: 1rem; }
.page-hero + .section { padding-block-start: clamp(2rem, 4vw, 3rem); }
.page-hero .wrap.two-col { align-items: center; }
.mail-line { margin-block-start: 0.9rem; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 640px) { .hero .lead { font-size: 1rem; } .mail-line { font-size: 0.88rem; margin-block-start: 0.7rem; } .hero .actions { gap: 0.6rem 1rem; } }
.addr { color: var(--ink); font-weight: 600; user-select: all; white-space: nowrap; }

/* Breadcrumbs */
.crumbs { font-size: 0.9rem; color: var(--muted); margin-block-end: 1.25rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; gap: 0.4rem; align-items: center; }
.crumbs li + li::before { content: "/"; color: var(--rule-strong); }
.crumbs a { color: var(--muted); }

/* ---------- Demo (Night band, dark in both modes) ---------- */
.demo-band {
  background: var(--d-bg);
  color: var(--d-ink);
  padding-block: clamp(1.25rem, 2.5vw, 2.5rem) clamp(2.5rem, 5vw, 4.5rem);
}
@media (prefers-color-scheme: dark) {
  .demo-band { border-block: 1px solid var(--d-rule); }
}
.demo-band { --chip-spark: var(--d-spark); --chip-band: var(--d-band); --marker: var(--d-spark); }
.demo-band .eyebrow { color: var(--d-muted); }
.demo-band h2 { color: var(--d-ink); }
.demo-band a { color: var(--d-accent); }
.demo-intro { display: grid; gap: 0.75rem 3rem; align-items: end; margin-block-end: 1.1rem; }
.demo-intro h2 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.7rem); max-inline-size: 44ch; }
html[lang="ar"] .demo-intro h2 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.5; }
.demo-intro .eyebrow { margin-block-end: 0.5rem; }
.demo-intro > p { max-inline-size: 34ch; }
.demo-intro p { color: var(--d-muted); margin: 0; }
@media (min-width: 960px) { .demo-intro { grid-template-columns: 1fr auto; } }

.demo { margin: 0; }
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--d-rule);
  border-block-end: 0;
  border-start-start-radius: var(--radius);
  border-start-end-radius: var(--radius);
  background: var(--d-surface);
}
.demo-label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.85rem; color: var(--d-muted); margin: 0;
}
.demo-label::before { flex: none;
  content: ""; inline-size: 0.9rem; block-size: 2px; background: var(--d-chip);
}
/* Progress line, not buttons: plain labels joined by a rule; the current one is underlined in the spark colour ("look here") */
.demo-steps { display: flex; align-items: center; gap: 0.5rem; list-style: none; margin: 0; padding: 0; font-size: 0.82rem; }
.demo-steps li { color: var(--d-muted); padding-block: 0.15rem; border-block-end: 2px solid transparent; transition: color .3s, border-color .3s; }
.demo-steps li + li::before { content: ""; display: inline-block; vertical-align: middle; inline-size: 1.25rem; block-size: 1px; background: var(--d-rule); margin-inline-end: 0.5rem; }
.demo-steps li.is-current { color: var(--d-ink); border-block-end-color: var(--d-mark); }
.demo-steps li.is-done { color: var(--d-ink); }
.demo-controls { display: flex; gap: 0.4rem; }
.demo-controls[hidden] { display: none; }
.demo-btn {
  font: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--d-ink); background: transparent;
  border: 1px solid var(--d-muted); border-radius: var(--radius-sm);
  padding: 0.3rem 0.8rem; cursor: pointer;
}
.demo-btn:hover { border-color: var(--d-muted); }
.demo-btn:focus-visible { outline: 3px solid var(--d-focus); outline-offset: 2px; }

.demo-stage {
  display: grid;
  gap: 1px;
  background: var(--d-rule);
  border: 1px solid var(--d-rule);
  border-end-start-radius: var(--radius);
  border-end-end-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 1040px) {
  .demo-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr) minmax(0, 0.95fr); }
}
.demo-panel { background: var(--d-bg); padding: 0.9rem 1.1rem 1.3rem; min-inline-size: 0; }
.demo-panel h3 {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-label); font-stretch: var(--label-stretch); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--d-muted);
  margin-block-end: 0.7rem;
}
html[lang="ar"] .demo-panel h3 { font-family: var(--font-ar); font-size: 0.92rem; text-transform: none; }
.demo-panel h3 .n {
  display: inline-grid; place-items: center; inline-size: 1.35rem; block-size: 1.35rem;
  border-radius: 50%; background: var(--d-surface-2); color: var(--d-ink); font-size: 0.75rem;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0;
}

.mail {
  background: var(--d-surface); border: 1px solid var(--d-rule); border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem; font-size: 0.86rem;
}
/* Each label sits above its value, so an address or an RFQ number never breaks mid-token */
.mail dl { display: grid; grid-template-columns: 1fr; gap: 0 0.6rem; margin: 0 0 0.6rem; }
.mail dt { color: var(--d-muted); font-size: 0.78rem; }
.mail dd { margin: 0 0 0.35rem; color: var(--d-ink); min-inline-size: 0; overflow-wrap: normal; }
.nowrap { white-space: nowrap; }
.mail p { color: var(--d-ink); margin: 0 0 0.7rem; font-size: 0.86rem; }
.attach { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.attach li {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.8rem; color: var(--d-ink);
  background: var(--d-surface-2); border: 1px solid var(--d-rule);
  padding: 0.2rem 0.5rem; border-radius: 6px;
}
.pdf {
  margin-block-start: 0.8rem; background: var(--p-bg); color: var(--p-ink);
  border-radius: 6px; padding: 0.75rem 0.85rem; font-size: 0.78rem; line-height: 1.5;
}
.pdf .pdf-head { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--p-muted); font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.74rem; margin-block-end: 0.4rem; }
.pdf p { margin: 0 0 0.3rem; max-inline-size: none; color: var(--p-ink); }
.pdf mark { background: var(--p-hl-bg); color: var(--p-hl-ink); font-weight: 600; padding-inline: 0.15em; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pdf .faint { color: var(--p-muted); }
.ref {
  display: inline-grid; place-items: center; inline-size: 1.15rem; block-size: 1.15rem; border-radius: 50%;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.72rem; font-weight: 500; line-height: 1; letter-spacing: 0;
  background: var(--d-surface-2); color: var(--d-ink); vertical-align: 0.1em;
}
.pdf .ref { background: var(--p-ref-bg); color: var(--p-ref-ink); margin-inline-end: 0.35rem; }
.pdf p { border-radius: 4px; transition: box-shadow .3s; }
.pdf p.is-linked { box-shadow: 0 0 0 2px var(--p-ring); }
@media (prefers-reduced-motion: no-preference) {
  .pdf p.is-linked { animation: src-pulse 1.1s ease 1; }
}
@keyframes src-pulse { 0% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 2px var(--p-ring); } }

.req { inline-size: 100%; border-collapse: collapse; font-size: 0.84rem; }
.req caption { text-align: start; color: var(--d-muted); font-size: 0.8rem; padding-block-end: 0.35rem; }
.req th, .req td { text-align: start; padding: 0.55rem 0.45rem; border-block-end: 1px solid var(--d-rule); vertical-align: top; }
.req thead th { color: var(--d-muted); font-weight: 600; font-size: 0.76rem; }
.req td.src { color: var(--d-muted); white-space: nowrap; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.8rem; }
html[lang="ar"] .req td.src { font-family: var(--font-ar); font-size: 0.82rem; }
.req td.idx { color: var(--d-muted); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.req td:nth-child(2) { min-inline-size: 10rem; }
@media (max-width: 640px) {
  .req thead { display: none; }
  .req, .req tbody, .req caption { display: block; }
  .req tr { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.35rem 0.5rem; padding-block: 0.7rem; border-block-end: 1px solid var(--d-rule); }
  .req td { border: 0; padding: 0; min-inline-size: 0; }
  .req td.idx { grid-row: span 3; }
  .req td.src { white-space: normal; }
}
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
  font-size: 0.82rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px;
  background: var(--d-surface-2); color: var(--d-ink); border: 1px solid var(--d-rule);
}
.pill::before { content: ""; flex: none; inline-size: 0.42rem; block-size: 0.42rem; border-radius: 50%; background: var(--d-chip); }
.req .pill, .diff .pill { white-space: normal; border-radius: 10px; }
html[lang="ar"] .req td.src { white-space: normal; min-inline-size: 6.5rem; }
html[lang="ar"] .req td:last-child { min-inline-size: 8.25rem; }
.pill--gap { background: transparent; border-style: dashed; border-color: var(--d-mark); } /* what is missing: the one spark-coloured mark in the table */
.pill--gap::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--d-mark); }
.pill--ask::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--d-ink); }

.qa { display: grid; gap: 0.7rem; font-size: 0.9rem; }
.bubble { border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; }
.bubble p { margin: 0; max-inline-size: none; }
.bubble .who { display: block; font-size: 0.78rem; color: var(--d-muted); margin-block-end: 0.25rem; font-family: var(--font-label); font-stretch: var(--label-stretch); font-weight: 600; letter-spacing: 0.04em; }
html[lang="ar"] .bubble .who { font-family: var(--font-ar); font-size: 0.8rem; }
.bubble--q { background: var(--d-surface-2); }
.bubble--a { background: var(--d-surface); border: 1px solid var(--d-rule); }
.bubble--a p + p { margin-block-start: 0.5rem; padding-block-start: 0.5rem; border-block-start: 1px dashed var(--d-rule); }
.cite {
  display: inline-block; margin-inline-start: 0.3rem; font-size: 0.82rem; font-weight: 600;
  color: var(--d-ink); border: 1px solid var(--d-rule); border-block-end: 2px solid var(--d-mark); border-radius: 4px; padding: 0 0.35rem; white-space: nowrap;
}
.handoff { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.84rem; color: var(--d-muted); margin: 0; }
.handoff::before { content: ""; flex: none; margin-block-start: 0.7rem; inline-size: 0.9rem; block-size: 2px; background: var(--d-muted); }
.demo-foot { margin-block-start: 1rem; color: var(--d-muted); font-size: 0.9rem; }

/* Demo motion. Content is fully visible by default (no JS, reduced motion, crawlers).
   demo.js adds .is-playing and reveals [data-step] items one by one. */
.demo.is-playing [data-step] { opacity: 0; transform: translateY(6px); }
.demo.is-playing [data-step].is-on {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s ease;
}
.demo.is-playing .cite.is-on { animation: cite-flash 1.2s ease 0.4s 1; }
@keyframes cite-flash { 0%, 100% { background: transparent; } 40% { background: var(--d-flash); } }
.demo.is-paused [data-step].is-on { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .demo [data-step] { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.grid-3 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
}
.alt .card { background: var(--bg); }
.card h3 { margin-block-end: 0.6rem; }
.card > p { color: var(--muted); }
.card .card-link { margin-block-start: 1.1rem; display: inline-flex; gap: 0.4rem; font-weight: 600; }
.card--offer { display: flex; flex-direction: column; }
.card--offer .io { margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.card--offer .io div { display: grid; gap: 0.1rem; }
.card--offer .io dt { font-family: var(--font-label); font-stretch: var(--label-stretch); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .card--offer .io dt { font-family: var(--font-ar); font-size: 0.88rem; text-transform: none; }
.card--offer .io dd { margin: 0; }
.card--offer .card-link { margin-block-start: auto; padding-block-start: 1.25rem; }

.pain { border-block-start: 2px solid var(--ink); padding-block-start: 1rem; }
.pain .n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.pain p { font-size: 1.12rem; line-height: 1.5; margin-block-start: 0.4rem; color: var(--ink); }
html[lang="ar"] .pain p { line-height: 1.8; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.tiles li {
  position: relative;
  padding-block: 1rem; padding-inline: 2.1rem 1.1rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-sm);
  font-weight: 600;
}
.alt .tiles li { background: var(--bg); }
.tiles li::before { content: ""; position: absolute; inset-inline-start: 1.05rem; inset-block-start: calc(1rem + 0.55em); inline-size: 0.5rem; block-size: 0.5rem; background: var(--marker); }

.chips { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.chips > li { position: relative; padding-inline-start: 1.25rem; }
.chips > li::before { position: absolute; inset-inline-start: 0.05rem; inset-block-start: 0.6em; }
html[lang="ar"] .chips > li::before, [lang="ar"] .chips > li::before { inset-block-start: 0.7em; }

.systems-strip {
  margin-block-start: 1.25rem;
  display: grid; gap: 0.5rem 2rem; align-items: center;
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--rule-strong);
  background: var(--bg);
}
.systems-strip p { margin: 0; color: var(--muted); }
.systems-strip h3 { margin: 0; }
@media (min-width: 800px) { .systems-strip { grid-template-columns: auto 1fr auto; } }

/* ---------- Ladder (how we work) ---------- */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 900px) { .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; } }
.ladder > li {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 0 0;
  border-block-start: 2px solid var(--ink);
}
@media (min-width: 900px) {
  .ladder > li { padding-inline-end: 2rem; }
  .ladder > li + li { padding-inline-start: 0; }
}
.ladder > li::before {
  content: counter(step);
  position: absolute; inset-block-start: -1.05rem; inset-inline-start: 0;
  display: grid; place-items: center;
  inline-size: 2rem; block-size: 2rem; border-radius: 50%;
  background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 0 0 1px var(--btn-line); font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.95rem;
}
.ladder .when { display: block; font-family: var(--font-label); font-stretch: var(--label-stretch); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-block-end: 0.35rem; }
html[lang="ar"] .ladder .when { font-family: var(--font-ar); font-size: 0.92rem; text-transform: none; }
.ladder p { color: var(--muted); }
.ladder ul, .io-cols ul { list-style: none; margin: 0.75rem 0 0; padding: 0; color: var(--ink); }
.ladder ul li, .io-cols ul li { position: relative; padding-inline-start: 1.15rem; margin-block-end: 0.35rem; }
.ladder ul li::before, .io-cols ul li::before {
  content: ""; position: absolute; inset-inline-start: 0.05rem; inset-block-start: 0.6em;
  inline-size: 0.45rem; block-size: 0.45rem; background: var(--marker);
}
html[lang="ar"] .ladder ul li::before, html[lang="ar"] .io-cols ul li::before { inset-block-start: 0.72em; }
.ladder h4 { margin-block: 1rem 0.35rem; font-size: 0.95rem; }

.candour {
  margin-block-start: 2.25rem;
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.1rem 1.25rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--rule);
  max-inline-size: 48rem;
}
.alt .candour { background: var(--bg); }
.candour::before { content: ""; flex: none; margin-block-start: 0.55rem; inline-size: 0.5rem; block-size: 0.5rem; background: var(--marker); }
.candour p { margin: 0; }

/* ---------- Promises panel ---------- */
.promises { display: grid; gap: 2rem; }
@media (min-width: 900px) { .promises { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; }
.promise-list li { display: flex; gap: 0.9rem; padding-block: 0.95rem; border-block-end: 1px solid var(--rule); }
.promise-list li:first-child { border-block-start: 1px solid var(--rule); }
.promise-list li::before { content: ""; flex: none; margin-block-start: 0.55rem; inline-size: 0.5rem; block-size: 0.5rem; background: var(--marker); }
.promise-list strong { display: block; }
.promise-list span { color: var(--muted); }

/* ---------- In / Out / Human columns ---------- */
.io-cols { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .io-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.io-cols > div { background: var(--surface); padding: 1.4rem 1.5rem; }
.alt .io-cols > div { background: var(--bg); }
.io-cols h3 { display: flex; align-items: center; gap: 0.6rem; }
.io-cols ul { margin: 0; }
.io-cols .human h3::after { content: ""; }

/* ---------- Static answer card (document Q&A page) ---------- */
.answer-card {
  --chip-spark: var(--d-spark); --chip-band: var(--d-band); --marker: var(--d-spark);
  margin: 0; background: var(--d-bg); color: var(--d-ink);
  border-radius: var(--radius); padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--d-rule);
}
.answer-card figcaption { color: var(--d-muted); font-size: 0.85rem; margin-block-end: 0.9rem; display: flex; gap: 0.55rem; align-items: center; }
.answer-card figcaption::before { content: ""; flex: none; inline-size: 0.9rem; block-size: 2px; background: var(--d-chip); }

/* ---------- FAQ ---------- */
.faq { display: grid; border-block-start: 1px solid var(--rule-strong); max-inline-size: 52rem; }
.faq details { border-block-end: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding-block: 1.05rem; font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; inline-size: 0.8rem; block-size: 0.8rem;
  background:
    linear-gradient(currentColor 0 0) center / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-block-end: 1.15rem; color: var(--muted); }
.faq .answer p { max-inline-size: 60ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Closing band: the brand moment. The mark opens into the tagline: always on the left, facing right ---------- */
.closing {
  --chip-spark: var(--c-spark); --chip-band: var(--c-band); --marker: var(--c-spark);
  background: var(--c-bg);
  color: var(--c-ink);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
@media (prefers-color-scheme: dark) { .closing { border-block: 1px solid var(--c-rule); } }
/* The fan is a motif, not a logo: large, quiet bands with the spark leading in. English: it bleeds off the right edge.
   Arabic: it sits whole on the left (the line end) and opens into the text. Physical sides on purpose: never mirrored. */
.closing { position: relative; overflow: hidden; isolation: isolate; }
.closing .wrap { position: relative; }
.closing-fan { display: flex; justify-content: flex-end; margin-block: -1rem 1.75rem; margin-inline-end: -2.5rem; pointer-events: none; }
.closing-fan img { block-size: 6.5rem; inline-size: auto; max-inline-size: none; }
html[dir="rtl"] .closing-fan { margin-inline-end: var(--gutter); } /* inline-end is the left in Arabic */
@media (min-width: 900px) {
  .closing { --fan-h: clamp(18rem, 27vw, 25rem); --fan-w: calc(var(--fan-h) * var(--fan-aspect)); }
  .closing-fan { position: absolute; z-index: -1; inset-block-start: 50%; translate: 0 -50%; margin: 0; inset-inline-end: -7%; }
  .closing-fan img { block-size: var(--fan-h); }
  .closing .wrap { padding-inline-end: calc(var(--fan-w) * 0.8 + var(--gutter)); } /* text never runs under the fan */
  html[dir="rtl"] .closing-fan { inset-inline-end: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
  html[dir="rtl"] .closing .wrap { padding-inline-end: calc(var(--fan-w) + 3rem + var(--gutter)); }
}
.closing .eyebrow { color: var(--c-muted); }
.closing h2 { color: var(--c-ink); max-inline-size: 22ch; font-size: clamp(1.9rem, 4vw, 3.1rem); margin-block-end: 0.4rem; }
html[lang="ar"] .closing h2 { max-inline-size: 24ch; line-height: 1.5; font-size: clamp(1.9rem, 4vw, 3rem); }
.closing .eyebrow { text-transform: none; letter-spacing: 0.02em; }
.closing .next { color: var(--c-ink); font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; margin-block-end: 1rem; }
.closing p { color: var(--c-muted); }
.closing a { color: var(--c-ink); }
.closing .mailbig {
  display: inline-block; margin-block-start: 1.25rem;
  font-family: var(--font-display); font-size: clamp(1.5rem, 4.5vw, 2.6rem); font-weight: 600;
  color: var(--c-ink); text-decoration-thickness: 2px; text-underline-offset: 0.18em; overflow-wrap: anywhere;
}
.closing .mailbig:hover { text-decoration-color: var(--c-spark); }
.closing :focus-visible { outline-color: var(--c-ink); }

/* ---------- Prose (articles, privacy) ---------- */
.prose { max-inline-size: 44rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-block: 2.5rem 0.75rem; }
.prose h3 { margin-block: 1.75rem 0.5rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-inline-start: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin-block-end: 0.4rem; }
.prose blockquote {
  margin: 1.25rem 0; padding: 0.25rem 0 0.25rem 1.1rem; padding-inline: 1.1rem 0;
  border-inline-start: 3px solid var(--marker); color: var(--ink);
}
.prose blockquote p { font-size: 1.05rem; }
.prose .table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.prose table, .data-table { inline-size: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td, .data-table th, .data-table td { text-align: start; vertical-align: top; padding: 0.7rem 0.85rem; border-block-end: 1px solid var(--rule); }
.prose thead th, .data-table thead th { background: var(--bg-alt); font-weight: 600; }
.prose tr:last-child td { border-block-end: 0; }
.inshort {
  margin: 0 0 2rem; padding: 1.25rem 1.4rem; background: var(--bg-alt); border-radius: var(--radius);
  border-inline-start: 4px solid var(--marker);
}
.inshort h2 { margin: 0 0 0.5rem !important; font-size: 1rem !important; font-family: var(--font-label); font-stretch: var(--label-stretch); letter-spacing: 0.06em; text-transform: uppercase; }
html[lang="ar"] .inshort h2 { font-family: var(--font-ar); text-transform: none; font-size: 1.1rem !important; }
.inshort p { margin: 0; }
.article-meta { color: var(--muted); font-size: 0.92rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-block-start: 1rem; }
.sources { font-size: 0.92rem; }
.sources li { color: var(--muted) !important; }
.article-layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
.article-layout > * { min-inline-size: 0; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); gap: 4rem; } }
.aside-card { position: sticky; inset-block-start: 6rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.4rem; align-self: start; }
.aside-card h2 { font-size: 1.05rem; margin-block-end: 0.6rem; }
.aside-card ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.4rem; }

/* Insights list */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.post-list li a.card { display: block; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.post-list li a.card:hover { border-color: var(--rule-strong); }
.post-list h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-block-end: 0.5rem; }
.post-list p { color: var(--muted); }
.post-list .meta { font-size: 0.9rem; color: var(--muted); font-family: var(--font-label); font-stretch: var(--label-stretch); letter-spacing: 0.02em; }
html[lang="ar"] .post-list .meta { font-family: var(--font-ar); }

/* Name block (about) */
.name-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem;
}
.name-card .big { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.name-card .big-ar { font-family: var(--font-ar); font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; line-height: 1.4; margin: 0; }
.name-card dl { margin: 0; display: grid; gap: 0.75rem; }
.name-card dt { color: var(--muted); font-size: 0.9rem; }
.name-card dd { margin: 0; font-weight: 600; }
.pron strong { color: var(--accent); }
.mark-figure { margin: 0; display: grid; gap: 0.75rem; justify-items: stretch; }
.mark-panel {
  display: grid; place-items: center; padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  background-color: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
} /* plain ground: no grid may show through the symbol's slot (brand-sheet, social kit Don't 5) */
.mark-panel picture { display: block; inline-size: min(100%, 13rem); }
.alt .mark-panel { background-color: var(--bg); }
.mark-figure img { inline-size: 100%; }
.mark-figure figcaption { color: var(--muted); font-size: 0.92rem; max-inline-size: 36ch; }
.plate { background: var(--bg); border-radius: var(--radius); padding: 1rem 1.25rem; display: inline-block; }
.plate img { inline-size: 15rem; }

.two-col { display: grid; gap: 2rem 3rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

.contact-box {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.contact-box .mailbig { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 4vw, 2.2rem); overflow-wrap: anywhere; letter-spacing: -0.02em; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: start; }
.steps-list li::before {
  content: counter(s); display: grid; place-items: center; inline-size: 2rem; block-size: 2rem; border-radius: 50%;
  background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 0 0 1px var(--btn-line); font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.95rem;
}
.steps-list p { margin: 0; color: var(--muted); }
.steps-list strong { display: block; color: var(--ink); }

/* ---------- Footer (the palette's dark surface) ---------- */
.site-footer {
  --marker: var(--f-spark);
  background: var(--f-bg);
  color: var(--f-muted);
  padding-block: 3.5rem 2rem;
  font-size: 0.95rem;
  border-block-start: 1px solid var(--f-border);
}
.site-footer a { color: var(--f-link); text-decoration-color: var(--f-line); }
.site-footer a:hover { text-decoration-color: var(--f-link); }
.site-footer a:focus-visible { outline-color: var(--f-link); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-brand img { inline-size: var(--logo-foot-en-w); } /* full lockup, mark >= 40 px tall (brand-sheet §5) */
html[lang="ar"] .footer-brand img { inline-size: var(--logo-foot-ar-w); }
.footer-brand p { margin-block-start: 1.5rem; max-inline-size: 32ch; } /* >= 2x the spark side below the lockup */
.site-footer h2 { font-size: 0.86rem; font-family: var(--font-label); font-stretch: var(--label-stretch); letter-spacing: 0.06em; text-transform: uppercase; color: var(--f-muted); margin-block-end: 0.9rem; font-weight: 600; }
html[lang="ar"] .site-footer h2 { font-family: var(--font-ar); font-size: 0.95rem; text-transform: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-base {
  margin-block-start: 2.5rem; padding-block-start: 1.25rem; border-block-start: 1px solid var(--f-rule);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
}
.footer-base p { margin: 0; max-inline-size: none; }
.footer-base:only-child { margin-block-start: 0; padding-block-start: 0; border: 0; }
.nocookie { display: inline-flex; gap: 0.55rem; align-items: center; }
.nocookie::before { content: ""; flex: none; inline-size: 0.5rem; block-size: 0.5rem; background: var(--marker); }

/* ---------- 404 ---------- */
.notfound { min-block-size: 60vh; display: grid; align-content: center; }
.notfound .pair { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .notfound .pair { grid-template-columns: 1fr 1fr; } }
.notfound ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.4rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@media print {
  .skip, .nav-desktop, .nav-mobile, .header-cta, .demo-controls { display: none !important; }
  .site-header { position: static; }
  body { background: Canvas; color: CanvasText; }
}
.mt { margin-block-start: 1.25rem; }
.bubble .tr { color: var(--d-muted); font-size: 0.82rem; margin-block-start: 0.2rem; }
html[lang="ar"] .tiles li::before { inset-block-start: calc(1rem + 0.7em); }
@media (min-width: 1100px) { [id] { scroll-margin-block-start: 6rem; } html[lang="ar"] [id] { scroll-margin-block-start: 7rem; } }

/* ---------- Additions (review 5 Oct 2026) ---------- */
/* Arabic labels never below 0.9rem (Arabic needs ~1.15-1.2x the Latin size to read equally well) */
[lang="ar"] .cite, [lang="ar"] .pill, html[lang="ar"] .bubble .who, html[lang="ar"] .req td.src,
html[lang="ar"] .req caption, html[lang="ar"] .req thead th, html[lang="ar"] .demo-label, html[lang="ar"] .demo-steps,
html[lang="ar"] .handoff, html[lang="ar"] .mail, html[lang="ar"] .mail p, html[lang="ar"] .mail dt, html[lang="ar"] .pdf,
html[lang="ar"] .card--offer .io dt, html[lang="ar"] .demo-panel h3, html[lang="ar"] .answer-card figcaption { font-size: 0.9rem; }
html[lang="ar"] .attach li { font-size: 0.9rem; }

.name-card .dd-line { display: block; text-align: match-parent; }

/* Datasheet-vs-specification illustration (systems hero) */
.diff-card { align-self: center; }
.diff { inline-size: 100%; border-collapse: collapse; font-size: 0.88rem; margin-block-end: 0.9rem; }
.diff th, .diff td { text-align: start; vertical-align: top; padding: 0.5rem 0.45rem; border-block-end: 1px solid var(--d-rule); }
.diff thead th { color: var(--d-muted); font-weight: 600; font-size: 0.8rem; }
.diff td:first-child { color: var(--d-muted); }
@media (max-width: 520px) { .diff { font-size: 0.8rem; } .diff th, .diff td { padding-inline: 0.3rem; } }

/* Schedule bar (how we work): the format EPC managers plan in */
.schedule { list-style: none; margin: 0 0 2.75rem; padding: 0; display: grid; gap: 0.4rem; }
.schedule li { display: grid; gap: 0.1rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--rule); border-inline-start: 4px solid var(--marker); }
.schedule .s-when { font-family: var(--font-label); font-stretch: var(--label-stretch); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .schedule .s-when { font-family: var(--font-ar); font-size: 0.9rem; text-transform: none; }
.schedule .s-what { font-weight: 600; }
.schedule .s3 { border-style: dashed; border-inline-start-style: solid; }
@media (min-width: 900px) { .schedule { grid-template-columns: 1fr 8fr 3fr; gap: 0.3rem; } }

/* Contact: copy-address button (assets/copy.js) */
.contact-box .demo-btn { color: var(--ink); border-color: var(--rule-strong); font-size: 0.92rem; }
.copy-status { color: var(--muted); font-size: 0.92rem; }
@media print { .demo [data-step] { opacity: 1 !important; transform: none !important; } }
