/* Digital Academy — one stylesheet for Arabic (rtl) and English (ltr). Logical properties only.
   Tokens follow docs/research/brand-guidelines.md section 7. */

/* ---------- tokens ---------- */
:root {
  --c-maroon: #840308; --c-maroon-50: #FAF3F2; --c-maroon-100: #F5E7E5; --c-maroon-200: #E9CBC6;
  --c-maroon-600: #640204; --c-maroon-700: #460102; --c-maroon-800: #280001;
  --c-blue: #1A4081; --c-blue-100: #E6EBF3; --c-blue-200: #C9D3E4;
  --c-grey: #949494; --c-grey-100: #EDEDED; --c-grey-200: #DCDCDC; --c-grey-400: #8A8A8A;
  --c-grey-600: #666666; --c-grey-700: #4D4D4D;
  --c-ink: #1A1A1A; --c-black: #000; --c-offwhite: #F7F7F7; --c-white: #FFF;
  --c-error: #B42318; --c-error-bg: #FEF3F2; --c-success: #1B7A47; --c-success-bg: #EEF8F2;
  --c-focus: #1A4081; --c-pulse: #FFD9DB;

  --font: "Figtree", "Changa", "Segoe UI", Tahoma, system-ui, sans-serif; /* faces: fonts.css */

  /* shape rule: chips 6 / buttons + inputs 10 / cards 16 / feature panels 24 */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px;
  /* spacing rhythm (4px base): gaps and paddings pick a step */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1240px;
  --section: clamp(72px, 9vw, 128px);
  --section-end: clamp(80px, 10vw, 144px); /* optical: bottom padding a touch larger than top */
  /* shadows tinted with maroon-700, one light source from above */
  --shadow-1: 0 1px 2px rgb(70 1 2 / .06), 0 2px 8px rgb(70 1 2 / .04);
  --shadow-2: 0 2px 4px rgb(70 1 2 / .04), 0 18px 40px -12px rgb(70 1 2 / .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 72px;
  /* Sadu thread: the logo's pixel squares in the pattern-band order (method connector, problem turn) */
  --thread-seq: var(--c-maroon) 0 6px, transparent 6px 10px, var(--c-grey) 10px 16px, transparent 16px 20px,
    var(--c-blue) 20px 26px, transparent 26px 30px;

  /* v3 editorial scale: display and section heads carry the page; statements and numerals sit between */
  --fs-display: clamp(2.6rem, 1.15rem + 5.4vw, 5.6rem);
  --fs-h1: clamp(2.2rem, 1.3rem + 3.4vw, 4rem);
  --fs-h2: clamp(1.9rem, 1.2rem + 2.7vw, 3.4rem);
  --fs-statement: clamp(1.45rem, 1rem + 2vw, 2.6rem);
  --fs-numeral: clamp(2.9rem, 1.6rem + 3.9vw, 5rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --fs-lead: clamp(1.1rem, 1.04rem + .35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .8125rem;
  --lh-body: 1.6; --lh-head: 1.12; --lh-display: 1.04;
}
:root:lang(ar) { --font: "Figtree Ar", "Changa", "Segoe UI", Tahoma, system-ui, sans-serif; } /* optically centred Arabic: fonts.css */
:root:lang(ar) {
  --fs-display: clamp(2.35rem, 1.1rem + 4.9vw, 5.1rem);
  --fs-h1: clamp(2.1rem, 1.3rem + 3vw, 3.7rem);
  --fs-h2: clamp(1.85rem, 1.25rem + 2.5vw, 3.2rem);
  --fs-statement: clamp(1.4rem, 1rem + 1.8vw, 2.45rem);
  --fs-h3: clamp(1.25rem, 1.15rem + .45vw, 1.55rem);
  --fs-lead: clamp(1.15rem, 1.1rem + .3vw, 1.32rem);
  --fs-body: 1.125rem;
  --fs-small: 1rem;
  --fs-label: .875rem;
  --lh-body: 1.8; --lh-head: 1.45; --lh-display: 1.3;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-block-start: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--c-white); color: var(--c-ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body);
  font-variant-numeric: lining-nums; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-skip-ink: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: var(--r-xs); }
.on-dark :focus-visible, .on-maroon :focus-visible { outline-color: var(--c-white); }
::selection { background: var(--c-maroon); color: var(--c-white); }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: var(--lh-head); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { text-wrap: pretty; }
.display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: -.03em; }
h2 { letter-spacing: -.02em; }
:lang(en) h2 { line-height: 1.06; }
:lang(ar) .display, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; }
.lead { max-inline-size: 62ch; font-size: var(--fs-lead); color: var(--c-grey-700); }
.small { font-size: var(--fs-small); }
.muted { color: var(--c-grey-600); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font-size: var(--fs-label); font-weight: 600;
  color: var(--c-maroon); text-transform: uppercase; letter-spacing: .08em; margin-block-end: 1rem;
}
:lang(ar) .eyebrow { letter-spacing: 0; text-transform: none; }
.eyebrow::before { content: ""; inline-size: .7em; block-size: .7em; border-radius: 2px; background: currentColor; flex: none; }
.on-dark .eyebrow, .on-maroon .eyebrow { color: var(--c-maroon-200); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.prose { max-inline-size: 68ch; }
.prose > * + * { margin-block-start: 1em; }
.prose h2 { margin-block-start: 1.8em; font-size: var(--fs-h3); }
.prose ul { padding-inline-start: 1.2em; }
.prose li + li { margin-block-start: .35em; }

/* ---------- layout ---------- */
.wrap { inline-size: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { inline-size: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { padding-block: var(--section) var(--section-end); position: relative; }
.section-sm { padding-block: clamp(48px, 7vw, 88px); }
.bg-off { background: var(--c-offwhite); }
.bg-tint { background: var(--c-maroon-50); }
.on-dark { background: var(--c-ink); color: var(--c-white); }
.on-maroon { background: var(--c-maroon-700); color: var(--c-white); }
.on-dark .lead, .on-maroon .lead, .on-dark .muted, .on-maroon .muted { color: rgb(255 255 255 / .78); }
.section-head { max-inline-size: 760px; margin-block-end: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-block-start: 1rem; }
.stack > * + * { margin-block-start: var(--stack, 1rem); }
.grid { display: grid; gap: var(--gap, clamp(16px, 2.4vw, 28px)); }
.skip { position: absolute; inset-inline-start: 12px; inset-block-start: -100px; z-index: 100; padding: 12px 18px; background: var(--c-ink); color: var(--c-white); border-radius: var(--r-md); }
.skip:focus { inset-block-start: 12px; }
.sr-only { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons (radius 10; the primary carries a maroon-tinted shadow, the others stay flat) ---------- */
.btn {
  --btn-bg: var(--c-maroon); --btn-fg: var(--c-white); --btn-bd: var(--c-maroon);
  --btn-sh: inset 0 1px 0 rgb(255 255 255 / .14), 0 10px 22px -12px rgb(132 3 8 / .75);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-block-size: 52px; padding: .7em 1.4em; border-radius: var(--r-md); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--btn-sh); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, box-shadow .25s, transform .2s var(--ease);
}
.btn:hover { --btn-bg: var(--c-maroon-600); --btn-bd: var(--c-maroon-600); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-lg { min-block-size: 58px; padding-inline: 1.7em; font-size: 1.0625rem; }
@media (max-width: 359px) { .btn-lg { padding-inline: 1.15em; } }
.btn-ghost, .btn-wa { --btn-sh: none; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: var(--c-grey-200); }
.btn-ghost:hover { --btn-bg: var(--c-white); --btn-bd: var(--c-ink); }
.btn-light { --btn-bg: var(--c-white); --btn-fg: var(--c-maroon); --btn-bd: var(--c-white); --btn-sh: 0 12px 28px -14px rgb(0 0 0 / .55); }
.btn-light:hover { --btn-bg: var(--c-maroon-50); --btn-bd: var(--c-maroon-50); }
.on-dark .btn-ghost, .on-maroon .btn-ghost { --btn-fg: var(--c-white); --btn-bd: rgb(255 255 255 / .35); }
.on-dark .btn-ghost:hover, .on-maroon .btn-ghost:hover { --btn-bg: rgb(255 255 255 / .08); --btn-bd: var(--c-white); }
.btn svg { inline-size: 1.25em; block-size: 1.25em; flex: none; }
/* arrows: the glyph is mirrored with `scale`, the hover nudge uses `translate` (applied in screen space after the
   mirror), so the nudge always points the reading direction. Was: transform:translateX(-3px) on a scale(-1) arrow,
   which moved Arabic arrows backwards (right) on hover. */
.arrow { flex: none; transition: translate .25s var(--ease); }
[dir="rtl"] .arrow { scale: -1 1; }
.btn:hover .arrow, .link-arrow:hover .arrow, .area-card:hover .area-go .arrow { translate: 3px 0; }
[dir="rtl"] .btn:hover .arrow, [dir="rtl"] .link-arrow:hover .arrow, [dir="rtl"] .area-card:hover .area-go .arrow { translate: -3px 0; }
.btn.is-busy { opacity: .75; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: var(--fs-small); color: var(--c-grey-600); margin-block-start: .9rem; }
.on-dark .cta-note, .on-maroon .cta-note { color: rgb(255 255 255 / .72); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--c-maroon); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- motion ---------- */
.js.motion-ok [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js.motion-ok [data-reveal].is-in { opacity: 1; transform: none; }
.js.motion-ok [data-reveal][data-delay="1"] { transition-delay: .08s; }
.js.motion-ok [data-reveal][data-delay="2"] { transition-delay: .16s; }
.js.motion-ok [data-reveal][data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================================================================
   COMPONENTS: templates/partials + pages. Logical properties only (RTL first). Maroon is the only accent; royal blue
   appears only inside the pattern bands and the focus ring. Radius scale: chips 6 / buttons + inputs 10 / cards 16.
   ===================================================================================================================== */

/* ---------- icons (inline sprite: templates/partials/icons.html) ---------- */
.sprite { position: absolute; inline-size: 0; block-size: 0; overflow: hidden; }
.icon {
  inline-size: 1.25em; block-size: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn-sm { min-block-size: 44px; padding: .55em 1em; font-size: .9375rem; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; padding: 0; border: 0; background: none;
  color: var(--c-maroon); font-weight: 600; font-size: var(--fs-small); text-decoration: underline;
  text-underline-offset: .25em; text-decoration-thickness: 1px;
}
.link-btn:hover { color: var(--c-maroon-600); }
.px { display: inline-block; inline-size: 14px; block-size: 14px; border-radius: 4px; background: var(--c-maroon); flex: none; }

/* ---------- pattern bands (section dividers + footer edge only, never behind text) ---------- */
.band { block-size: 18px; background-repeat: repeat-x; background-position: center; background-size: auto 100%; }
.band-stitch { background-image: url("../img/pattern/stitch-mixed.svg"); }
.band-chain { block-size: 26px; background-image: url("../img/pattern/chain-mixed.svg"); }
.band-light { background-image: url("../img/pattern/stitch-white.svg"); opacity: .22; }
.band-top, .on-maroon > .band, .proof-strip > .band { position: absolute; inset-inline: 0; inset-block-start: 0; }
@media (min-width: 768px) { .band { block-size: 22px; } .band-chain { block-size: 30px; } }

/* ---------- photo slots (partials/media.html, docs/photos.md): a real photo, or a brand frame at the same ratio ---------- */
.frame { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--c-offwhite); }
.r-1x1 { aspect-ratio: 1 / 1; } .r-4x3 { aspect-ratio: 4 / 3; } .r-4x5 { aspect-ratio: 4 / 5; } .r-2x1 { aspect-ratio: 2 / 1; }
.frame-photo picture, .frame-photo img { display: block; inline-size: 100%; block-size: 100%; }
.frame-photo img { object-fit: cover; }
.frame-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); pointer-events: none; }
.focus-top img { object-position: 50% 20%; } .focus-bottom img { object-position: 50% 80%; }
.focus-start img { object-position: 20% 50%; } .focus-end img { object-position: 80% 50%; }
[dir="rtl"] .focus-start img { object-position: 80% 50%; } [dir="rtl"] .focus-end img { object-position: 20% 50%; }
/* weave: a tone-on-tone Sadu swatch, a three-square pixel cluster at the reading start, a mixed band on the bottom edge */
.frame-weave { background: var(--c-maroon-50); }
.frame-weave::before {
  content: ""; position: absolute; inset: 0; opacity: .13;
  background: url("../img/pattern/chain-maroon.svg") 0 0 / auto 22% repeat;
}
.fb-px { position: absolute; inset-block-start: 9%; inset-inline-start: 7%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; inline-size: 15%; max-inline-size: 72px; }
.fb-px i { aspect-ratio: 1; border-radius: 24%; background: var(--c-maroon); }
.fb-px i:nth-child(2) { background: var(--c-grey); }
.fb-px i:nth-child(3) { grid-column: 2; background: var(--c-blue); }
.fb-band { position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 18px; background: url("../img/pattern/stitch-mixed.svg") center / auto 100% repeat-x; }
/* grid: squared paper (the competency map's grid), the area's glyph on a white tile, the index number as decoration */
.frame-grid {
  display: grid; place-items: center; background-color: var(--c-offwhite);
  background-image: radial-gradient(var(--c-grey-200) 1.4px, transparent 1.7px); background-size: 18px 18px;
}
.fb-glyph {
  display: grid; place-items: center; inline-size: 24%; max-inline-size: 104px; aspect-ratio: 1; margin-block-end: 18px;
  border-radius: 24%; background: var(--c-white); color: var(--c-maroon); box-shadow: var(--shadow-2);
}
.fb-glyph .icon { inline-size: 46%; block-size: 46%; stroke-width: 1.6; }
.frame-grid .fb-band { block-size: 12px; background-image: url("../img/pattern/stitch-grey.svg"); opacity: .45; }
.fb-num { position: absolute; inset-block-start: 8%; inset-inline-end: 6%; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.fb-num::before { content: attr(data-n); color: var(--c-maroon-100); }
/* quote: a pixel quotation mark on maroon */
.frame-quote { display: grid; place-items: center; background: var(--c-maroon); }
.frame-quote .fb-band { background-image: url("../img/pattern/stitch-white.svg"); opacity: .3; }
.fb-quote { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 18%; row-gap: 6%; inline-size: 38%; margin-block-end: 10%; }
.fb-quote i { aspect-ratio: 1; border-radius: 24%; background: var(--c-white); }
.fb-quote i:nth-child(n+3) { scale: .5; transform-origin: top; }

/* ---------- header: logo, nav right after it, actions (language chip + primary CTA) pinned to the inline end ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50; background: rgb(255 255 255 / .97);
  border-block-end: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--c-grey-100); box-shadow: 0 10px 24px -14px rgb(70 1 2 / .18); }
.header-row { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); min-block-size: var(--header-h); }
.brand { display: block; flex: none; color: var(--c-maroon); margin-inline-end: auto; border-radius: var(--r-xs); }
.logo { inline-size: 153px; block-size: 36px; }
@media (min-width: 768px) { .logo { inline-size: 170px; block-size: 40px; } }
.nav-list { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav-list a {
  position: relative; display: block; padding-block: 8px; color: var(--c-grey-700); font-weight: 500; font-size: .975rem;
  text-decoration: none; transition: color .2s;
}
.nav-list a::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 2px; block-size: 2px; border-radius: 1px; background: var(--c-maroon);
  transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav-list a:hover, .nav-list a[aria-current] { color: var(--c-ink); }
.nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); }
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 12px; border-radius: var(--r-sm);
  border: 1px solid var(--c-grey-200); font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--c-ink);
  transition: border-color .2s, background-color .2s;
}
.lang-switch:hover { border-color: var(--c-ink); background: var(--c-white); }
.header-cta { display: none; }
.menu-toggle {
  display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; padding: 0; border-radius: var(--r-md);
  border: 1.5px solid var(--c-grey-200); background: var(--c-white); color: var(--c-ink);
}
.menu-toggle .icon { inline-size: 22px; block-size: 22px; }
.menu-toggle .i-shut, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-shut { display: block; }
.hide-sm { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } .hide-sm { display: inline; } }
@media (max-width: 1023.98px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: flex; flex-direction: column; gap: 28px;
    padding: 16px var(--gutter) 40px; background: var(--c-white); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding-block: 16px; font-size: 1.25rem; font-weight: 600; color: var(--c-ink); border-block-end: 1px solid var(--c-grey-100); }
  .nav-list a::after { display: none; }
  .nav-extra { display: grid; gap: 12px; }
  .nav-note { font-size: var(--fs-small); color: var(--c-grey-600); }
  .menu-open body { overflow: hidden; }
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .brand { margin-inline-end: 0; }
  .nav { margin-inline-start: clamp(0px, 4vw - 40px, 32px); }
  .header-actions { margin-inline-start: auto; }
}

/* ---------- home hero (signature: hero.js assembles the mark from pixel squares on a canvas) ---------- */
/* Layers inside the isolated hero: optional photo (z 0) < pixel canvas (z 1) < copy and mark (z 2), so with a photo
   the pixels still fly over it and land on the mark stamp. */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(28px, 5vw, 80px) clamp(56px, 7vw, 104px); background: var(--c-white); }
.hero-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero > .wrap { position: relative; }
.hero-copy { position: relative; z-index: 2; }
.hero-grid { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { margin-block: .12em .35em; text-wrap: balance; }
:lang(en) .hero h1 { letter-spacing: -.04em; }
.hero-sub { max-inline-size: 46ch; }
.hero .cta-row { margin-block-start: 2rem; }
/* proof next to every CTA (funnel 6.1): award in its exact words + partnership, a pair of facts under a hairline */
.proof-pair {
  display: grid; gap: var(--s-3); max-inline-size: 680px; margin-block-start: var(--s-6); padding-block-start: var(--s-5);
  border-block-start: 1px solid var(--c-grey-200);
}
.proof-pair li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-small); line-height: 1.5; color: var(--c-grey-700); }
:lang(ar) .proof-pair li { line-height: 1.7; }
.proof-pair strong { font-weight: 700; color: var(--c-ink); }
.proof-pair .icon { flex: none; inline-size: 22px; block-size: 22px; margin-block-start: .15em; color: var(--c-maroon); }
.proof-pair.is-light { border-color: rgb(255 255 255 / .2); }
.proof-pair.is-light li { color: rgb(255 255 255 / .8); }
.proof-pair.is-light strong { color: var(--c-white); }
.proof-pair.is-light .icon { color: var(--c-maroon-200); }
.hero-visual { position: relative; display: grid; inline-size: 100%; max-inline-size: 460px; justify-self: center; }
.hero-visual > * { grid-area: 1 / 1; }
.hero-photo { position: relative; z-index: 0; }
.hero-art {
  position: relative; z-index: 2; isolation: isolate; color: var(--c-maroon); will-change: transform; aspect-ratio: 256 / 224;
  inline-size: 100%; align-self: center;
}
/* photo set: the photo fills the square, the mark becomes a stamp on a white tile at its bottom inline-start corner */
.has-photo .hero-art {
  inline-size: 44%; align-self: end; justify-self: start; margin-block-end: var(--s-4); margin-inline-start: var(--s-4); padding: 6%;
  border-radius: var(--r-lg); background: var(--c-white); box-shadow: var(--shadow-2);
}
.has-photo .hero-art::before { display: none; }
/* faint dot grid behind the mark (squared paper for a competency map); texture only, never behind text */
.hero-art::before {
  content: ""; position: absolute; inset: -16% -12%; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--c-grey-200) 1.5px, transparent 1.75px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent); mask-image: radial-gradient(closest-side, #000 45%, transparent);
}
.hero-art svg { inline-size: 100%; block-size: 100%; }
.js.motion-ok .hero-art svg { opacity: 0; animation: hero-safety .4s 2.8s forwards; }
.js.motion-ok.hero-live .hero-art svg { animation: none; }
.js.motion-ok.hero-assembled .hero-art svg, .js.hero-ready .hero-art svg { opacity: 1; animation: none; transition: opacity .42s ease-out; }
@keyframes hero-safety { to { opacity: 1; } }
@media (max-width: 1023.98px) {
  .hero-visual { order: -1; max-inline-size: 150px; justify-self: start; }
  .hero-visual.has-photo { max-inline-size: min(38%, 150px); } /* stays smaller than the h1, which remains the LCP */
  .hero-art::before { display: none; }
  .hero .cta-row .btn { flex: 1 1 260px; }
}
@media (min-width: 640px) and (max-width: 1023.98px) { .hero-visual { max-inline-size: 190px; } }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero-visual { justify-self: end; }
  .hero-visual.has-photo { max-inline-size: 300px; } /* LCP stays the h1: the photo is drawn smaller than the headline */
}
/* the h1 is the LCP element: it paints at once (no fade); the lines around it rise in after it */
.js.motion-ok .hero-copy > :not(h1) { animation: rise .8s var(--ease) both; }
.js.motion-ok .hero-copy > :nth-child(3) { animation-delay: .08s; }
.js.motion-ok .hero-copy > :nth-child(n+4) { animation-delay: .16s; }
.js.motion-ok.hero-seen .hero-copy > * { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- logo wall ---------- */
.logo-wall-title { font-size: var(--fs-small); font-weight: 600; color: var(--c-grey-700); text-align: center; margin-block-end: 28px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 36px; }
.logos img {
  inline-size: auto; block-size: 60px; filter: grayscale(1) contrast(1.05); opacity: .8; mix-blend-mode: multiply;
  transition: filter .3s, opacity .3s;
}
.logos li:hover img { filter: none; opacity: 1; }
@media (min-width: 900px) {
  .logo-wall:not(.is-strip) .logos { display: grid; grid-template-columns: repeat(5, 1fr); justify-items: center; gap: 40px 32px; }
  .logos img { block-size: 76px; }
}
.is-strip .logos { justify-content: flex-start; gap: 20px 28px; }
.is-strip .logos img { block-size: 52px; }

/* ---------- trust band (home): numbers + the government logo wall straight under the hero ---------- */
.trust { padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 120px); }
.trust-logos { margin-block-start: clamp(48px, 6vw, 88px); }
.trust .logo-wall-title { font-size: var(--fs-h3); font-weight: 700; color: var(--c-ink); text-align: start; }
/* the wall as a hairline table of equal cells (calm, institutional), not a floating cloud */
@media (min-width: 900px) {
  .trust .logo-wall:not(.is-strip) .logos {
    gap: 0; border-block-start: 1px solid var(--c-grey-200); border-inline-start: 1px solid var(--c-grey-200);
  }
  .trust .logos li {
    display: grid; place-items: center; inline-size: 100%; padding: 22px 12px;
    border-inline-end: 1px solid var(--c-grey-200); border-block-end: 1px solid var(--c-grey-200);
  }
  .trust .logos img { block-size: 68px; }
}
@media (min-width: 1100px) {
  .trust .logo-wall { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
  .trust .logo-wall-title { margin: 0; max-inline-size: 14ch; }
}

/* ---------- problem: three questions, then the turn set as a statement under a short Sadu thread ---------- */
.problem-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.problem-grid > h2 { max-inline-size: 12ch; }
.problem-list { border-block-start: 1px solid var(--c-grey-200); }
.problem-list li {
  display: grid; grid-template-columns: 2.6ch minmax(0, 1fr); gap: var(--s-4); align-items: baseline;
  padding-block: clamp(18px, 2.4vw, 28px); border-block-end: 1px solid var(--c-grey-200);
  font-size: clamp(1.3rem, 1rem + 1.35vw, 2.1rem); font-weight: 600; line-height: 1.3;
}
:lang(en) .problem-list li { letter-spacing: -.01em; }
:lang(ar) .problem-list li { line-height: 1.7; }
.problem-num { font-size: var(--fs-label); font-weight: 700; color: var(--c-maroon); font-variant-numeric: tabular-nums; }
/* the turn: one big maroon statement across the grid, under a short (static) Sadu thread */
.problem-turn {
  max-inline-size: 22ch; font-size: clamp(1.7rem, 1rem + 3vw, 3.6rem); font-weight: 700; line-height: 1.12; color: var(--c-maroon);
  text-wrap: balance;
}
:lang(en) .problem-turn { letter-spacing: -.025em; }
:lang(ar) .problem-turn { line-height: 1.7; }
.problem-turn::before {
  content: ""; display: block; inline-size: 88px; block-size: 6px; margin-block-end: var(--s-5);
  background: repeating-linear-gradient(90deg, var(--thread-seq));
}
[dir="rtl"] .problem-turn::before, [dir="rtl"] .quote::before { background: repeating-linear-gradient(270deg, var(--thread-seq)); } /* thread starts at the reading start */
@media (min-width: 900px) {
  .problem-grid { grid-template-columns: 5fr 7fr; align-items: start; row-gap: clamp(56px, 7vw, 104px); }
  .problem-turn { grid-column: 1 / -1; }
}

/* ---------- offer (maroon-700) ---------- */
.offer { position: relative; padding-block: var(--section); }
.offer-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
.offer-name { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: -.02em; }
:lang(ar) .offer-name { letter-spacing: 0; }
.offer-descriptor { margin-block: .8rem 1rem; font-size: var(--fs-h3); font-weight: 600; color: var(--c-maroon-200); }
.offer-intro .cta-row { margin-block-start: 2rem; }
.offer-stack {
  padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .14);
}
.offer-stack-title { margin-block-end: 24px; }
.stack-list { display: grid; gap: 24px 32px; }
.stack-list li { display: grid; grid-template-columns: 2.4ch minmax(0, 1fr); gap: 12px; align-items: baseline; }
.stack-num { font-size: var(--fs-label); font-weight: 700; color: var(--c-maroon-200); font-variant-numeric: tabular-nums; }
.stack-list li.is-key h4::after { /* the Competency Map: the same pixel square that marks it in the method map */
  content: ""; display: inline-block; inline-size: .6em; block-size: .6em; margin-inline-start: .5em; border-radius: 2px;
  background: var(--c-maroon-200); vertical-align: .05em;
}
.stack-list h4 { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3rem); font-weight: 700; line-height: 1.35; margin-block-end: 4px; }
.stack-list p { font-size: var(--fs-small); color: rgb(255 255 255 / .74); }
.risk { display: grid; gap: 16px; padding-block-start: 28px; border-block-start: 1px solid rgb(255 255 255 / .16); }
.risk-title { display: flex; gap: .6em; align-items: center; font-size: var(--fs-h3); font-weight: 700; }
.risk-list { display: grid; gap: 10px 32px; }
.risk-list li { position: relative; padding-inline-start: 20px; color: rgb(255 255 255 / .86); }
.risk-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .62em; inline-size: 8px; block-size: 8px;
  border-radius: 2px; background: var(--c-maroon-200);
}
@media (min-width: 640px) { .stack-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .offer-grid { grid-template-columns: 5fr 7fr; align-items: start; }
  .risk { grid-column: 1 / -1; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
  .risk-list { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- method: the Competency Map (signature moment 2; partials/method.html + cmap.html, assets/js/map.js).
   The five steps sit beside a 7 x 5 map of the logo's rounded pixel squares; the 9 priority cells form the X. Each step
   adds one layer: 1 grey outline (mapped) · 2 maroon ring (priority gap) · 3 solid maroon (trained) · 4 white diamond
   (assessed, certified) · 5 a Sadu thread under the map (feedback). Only opacity / scale move. Default = finished map
   (no JS, reduced motion, the static copy on /consultation/); map.js adds .map-on and .m1..m5. RTL: the grid and the
   thread flow with dir, so the build starts at the reading start with no direction-specific rules. ---------- */
.method-map { display: grid; gap: var(--s-7); }
.cmap {
  --cgap: clamp(6px, 1vw, 10px);
  padding: clamp(18px, 2.6vw, 32px); border-radius: var(--r-xl); background: var(--c-offwhite); border: 1px solid var(--c-grey-100);
}
.cmap-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px;
  min-block-size: 28px; margin-block-end: var(--s-5);
}
.cmap-title { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 700; color: var(--c-ink); }
.cmap-title .px { inline-size: 12px; block-size: 12px; border-radius: 3px; }
.cmap-stages { display: none; }
.map-on .cmap-stages { display: grid; }
.cmap-stage {
  grid-area: 1 / 1; display: inline-flex; gap: 8px; align-items: baseline; font-size: var(--fs-label); font-weight: 600;
  color: var(--c-maroon); opacity: 0; transition: opacity .3s;
}
.cmap-stage b { font-variant-numeric: tabular-nums; }
.map-on.m1:not(.m2) .s1, .map-on.m2:not(.m3) .s2, .map-on.m3:not(.m4) .s3, .map-on.m4:not(.m5) .s4, .map-on.m5 .s5 { opacity: 1; }
.cmap-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--cgap); }
.cell { position: relative; aspect-ratio: 1; }
.cell::before, .cell i { content: ""; position: absolute; inset: 0; border-radius: 24%; }
.cell::before { border: 2px solid var(--c-grey-200); background: var(--c-white); }
.k-ring { border: 2px solid var(--c-maroon); background: var(--c-maroon-50); }
.k-fill { background: var(--c-maroon); box-shadow: 0 8px 18px -10px rgb(132 3 8 / .8); }
.cell .k-cert { inset: 35%; border-radius: 2px; background: var(--c-white); transform: rotate(45deg); }
.cmap-thread { display: flex; justify-content: space-between; margin-block-start: var(--s-5); }
.cmap-thread i { inline-size: 8px; block-size: 8px; border-radius: 2px; background: var(--c-maroon); }
.cmap-thread i:nth-child(3n+2) { background: var(--c-grey); }
.cmap-thread i:nth-child(3n) { background: var(--c-blue); }
.cmap-note { margin-block-start: var(--s-4); font-size: var(--fs-label); font-weight: 600; color: var(--c-grey-700); }
/* stagger in DOM order (= reading order in both directions): column + row, 30 ms a step */
.cell:nth-child(7n+2) { --col: 1; } .cell:nth-child(7n+3) { --col: 2; } .cell:nth-child(7n+4) { --col: 3; }
.cell:nth-child(7n+5) { --col: 4; } .cell:nth-child(7n+6) { --col: 5; } .cell:nth-child(7n) { --col: 6; }
.cell:nth-child(n+8) { --row: 1; } .cell:nth-child(n+15) { --row: 2; } .cell:nth-child(n+22) { --row: 3; } .cell:nth-child(n+29) { --row: 4; }
.cmap-thread i:nth-child(n+4) { --t: 1; } .cmap-thread i:nth-child(n+7) { --t: 2; } .cmap-thread i:nth-child(n+10) { --t: 3; }
.cmap-thread i:nth-child(n+13) { --t: 4; } .cmap-thread i:nth-child(n+16) { --t: 5; } .cmap-thread i:nth-child(n+19) { --t: 6; }
@media (prefers-reduced-motion: no-preference) {
  .map-on .cell::before { opacity: 0; scale: .4; transition: opacity .3s var(--ease), scale .45s var(--spring); }
  .map-on.m1 .cell::before { opacity: 1; scale: 1; transition-delay: calc((var(--col, 0) + var(--row, 0)) * 30ms); }
  .map-on .k-ring, .map-on .k-fill, .map-on .cell .k-cert { opacity: 0; scale: .3; transition: opacity .25s var(--ease), scale .4s var(--spring); }
  .map-on.m2 .k-ring, .map-on.m3 .k-fill, .map-on.m4 .cell .k-cert {
    opacity: 1; scale: 1; transition-delay: calc((var(--col, 0) + var(--row, 0)) * 40ms);
  }
  .map-on .cmap-thread i { opacity: 0; scale: .2; transition: opacity .2s, scale .35s var(--spring); }
  .map-on.m5 .cmap-thread i { opacity: 1; scale: 1; transition-delay: calc(var(--t, 0) * 70ms); }
}
/* the steps: big numerals (CSS content: decorative, outside the contrast audit), hairlines, step 1 marked free */
.msteps { display: grid; border-block-start: 1px solid var(--c-grey-200); }
.mstep {
  display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); column-gap: clamp(16px, 2.4vw, 32px);
  padding-block: var(--s-6); border-block-end: 1px solid var(--c-grey-200);
}
.mstep-num { min-inline-size: 2ch; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); font-weight: 700; line-height: .9; font-variant-numeric: tabular-nums; }
.mstep-num::before { content: attr(data-n); color: transparent; -webkit-text-stroke: 1.5px var(--c-maroon); }
.mstep.is-free .mstep-num::before, .mstep.is-active .mstep-num::before { color: var(--c-maroon); }
.mstep-name { font-size: var(--fs-h3); font-weight: 700; margin-block-end: 6px; }
.mstep.is-free .mstep-name { color: var(--c-maroon); }
.mstep-text { max-inline-size: 44ch; color: var(--c-grey-700); }
.free-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-block-end: 8px; padding: 4px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--c-maroon-200); background: var(--c-maroon-50); color: var(--c-maroon); font-size: var(--fs-label); font-weight: 600;
}
.free-badge .px { inline-size: 10px; block-size: 10px; border-radius: 3px; }
@media (min-width: 1024px) {
  .method-map { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(40px, 5vw, 88px); align-items: start; }
  .method-map-visual { grid-column: 2; grid-row: 1; position: sticky; inset-block-start: calc(var(--header-h) + 32px); }
  .msteps { grid-column: 1; grid-row: 1; }
  .mstep { min-block-size: 30vh; align-content: start; }
}

/* step 1 is the free consultation itself, so the method ends in the CTA */
.method-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-block-start: clamp(40px, 5vw, 64px); padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl);
  background: var(--c-maroon-50); border: 1px solid var(--c-maroon-100);
}
.method-cta-text { max-inline-size: 38ch; font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-head); }
:lang(en) .method-cta-text { line-height: 1.3; }
.method-cta .cta-note { margin-block-start: .4rem; }
@media (max-width: 639.98px) {
  .method-cta { padding-inline: 16px; }
  .method-cta .btn { flex: 1 1 100%; padding-inline: 1em; white-space: normal; }
}

/* ---------- numbers (big numerals, small raised affix, hairline columns; home trust band + about) ---------- */
.numbers-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.numbers-grid > h2 { max-inline-size: 12ch; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); }
.stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 22px 14px;
  border-block-start: 1px solid var(--c-grey-200);
}
.stat-num {
  font-size: var(--fs-numeral); font-weight: 700; line-height: .95; color: var(--c-maroon);
  font-variant-numeric: tabular-nums; letter-spacing: -.04em; unicode-bidi: isolate;
}
:lang(ar) .stat-num { letter-spacing: 0; }
.stat-affix { font-size: .5em; font-weight: 600; vertical-align: .75em; }
.stat-label { font-size: var(--fs-small); font-weight: 500; color: var(--c-grey-700); }
.stats:has(> :nth-child(7)) .stat-num { font-size: clamp(2.5rem, 1.5rem + 3vw, 3.9rem); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .numbers-grid { grid-template-columns: 4fr 8fr; align-items: start; }
  .stats:has(> :nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- training areas: a numbered editorial index (home). Rows with hairlines; hover lays a white sheet under
   the row and nudges the name in the reading direction. ---------- */
.areas-head { max-inline-size: 820px; }
.areas { display: grid; column-gap: clamp(24px, 3vw, 48px); }
.areas li { border-block-end: 1px solid var(--c-grey-200); }
.area-card {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 2.4ch auto minmax(0, 1fr) auto; align-items: center;
  gap: 14px; min-block-size: 72px; padding-block: 14px; padding-inline: 10px; text-decoration: none;
}
.area-card::before {
  content: ""; position: absolute; inset: 4px 0; z-index: -1; border-radius: var(--r-md); background: var(--c-white);
  box-shadow: var(--shadow-1); opacity: 0; transition: opacity .25s var(--ease);
}
.area-card:hover::before { opacity: 1; }
.area-num { font-size: var(--fs-label); font-weight: 700; color: var(--c-maroon); font-variant-numeric: tabular-nums; }
.area-icon {
  display: grid; place-items: center; flex: none; inline-size: 44px; block-size: 44px; border-radius: var(--r-md);
  background: var(--c-white); color: var(--c-maroon); box-shadow: var(--shadow-1); transition: background-color .2s, color .2s;
}
.area-icon .icon { inline-size: 24px; block-size: 24px; }
.area-card:hover .area-icon { background: var(--c-maroon); color: var(--c-white); }
.area-body { display: grid; gap: 4px; min-inline-size: 0; }
.area-name { font-weight: 700; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); line-height: 1.3; transition: translate .25s var(--ease); }
:lang(ar) .area-name { line-height: 1.7; }
.area-card:hover .area-name { translate: 4px 0; }
[dir="rtl"] .area-card:hover .area-name { translate: -4px 0; }
.area-short { font-size: var(--fs-small); color: var(--c-grey-700); line-height: 1.5; }
:lang(ar) .area-short { line-height: 1.7; }
.area-go { color: var(--c-maroon); }
.areas-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-block-start: 32px; color: var(--c-grey-700); }
.areas-note .px { inline-size: 10px; block-size: 10px; border-radius: 3px; }
@media (min-width: 640px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- authority bento: the award is the large maroon tile; partners as big wordmarks; trainers (+ photo slot) ---------- */
.authority-title { max-inline-size: 18ch; margin-block-end: clamp(28px, 4vw, 48px); }
.authority-grid { display: grid; gap: 16px; }
.auth {
  position: relative; display: flex; flex-direction: column; overflow: hidden; padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-xl); background: var(--c-offwhite);
}
.auth h3 { margin-block: 18px 8px; }
.auth p { color: var(--c-grey-700); }
.auth-icon { display: block; color: var(--c-maroon); }
.auth-icon .icon { inline-size: 34px; block-size: 34px; stroke-width: 1.75; }
.auth-award { min-block-size: 340px; padding-block-end: calc(clamp(24px, 3vw, 40px) + 30px); background: var(--c-maroon-700); color: var(--c-white); }
.auth-award .auth-icon { color: var(--c-maroon-200); }
.auth-award .auth-icon .icon { inline-size: 56px; block-size: 56px; stroke-width: 1.5; }
.auth-award h3 {
  margin-block-start: auto; padding-block-start: 40px; max-inline-size: 12ch; font-size: var(--fs-h2); line-height: 1.05; color: var(--c-white);
}
:lang(en) .auth-award h3 { letter-spacing: -.025em; }
:lang(ar) .auth-award h3 { line-height: 1.4; }
.auth-award p { margin-block-start: 6px; font-size: var(--fs-lead); color: var(--c-maroon-200); }
.auth-band { position: absolute; inset-inline: 0; inset-block-end: 0; background-image: url("../img/pattern/chain-white.svg"); opacity: .28; }
.auth .partner-names {
  display: flex; flex-wrap: wrap; gap: 4px 24px; margin-block-end: 10px; font-family: "Figtree", sans-serif;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 700; line-height: 1.2; color: var(--c-ink); letter-spacing: -.02em;
}
[dir="rtl"] .partner-names { justify-content: flex-end; }
.auth-photo { margin-block-end: var(--s-5); border-radius: var(--r-lg); }
@media (min-width: 900px) {
  .authority-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .auth-award { grid-row: span 2; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: clamp(24px, 4vw, 56px); }
.faq { border-block-start: 1px solid var(--c-grey-200); }
.faq-item { border-block-end: 1px solid var(--c-grey-200); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px;
  list-style: none; cursor: pointer; font-weight: 600; font-size: 1.0625rem; line-height: 1.45; transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--c-maroon); }
.faq-chev { color: var(--c-maroon); transition: transform .25s var(--ease); }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a { max-inline-size: 70ch; padding-block-end: 22px; color: var(--c-grey-700); }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 4fr 8fr; align-items: start; }
  .faq-head { position: sticky; inset-block-start: calc(var(--header-h) + 40px); }
}

/* ---------- final CTA band (maroon-700) ---------- */
.final { position: relative; padding-block: var(--section); }
.final-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
.final-grid:not(.has-form) { max-inline-size: 860px; }
.final h2 { max-inline-size: 14ch; font-size: var(--fs-h2); }
.final .lead { margin-block: 16px 24px; }
.season {
  display: flex; gap: .7em; align-items: flex-start; max-inline-size: 58ch; margin-block-end: 20px; padding: 14px 18px;
  border-radius: var(--r-md); background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14);
}
.season .icon { margin-block-start: .25em; color: var(--c-maroon-200); }
.final-proof {
  display: flex; gap: 10px; align-items: baseline; margin-block-end: 24px; font-size: var(--fs-lead); font-weight: 700; color: var(--c-white);
}
.final-proof::before { content: ""; flex: none; inline-size: 10px; block-size: 10px; border-radius: 3px; background: var(--c-maroon-200); }
@media (min-width: 1024px) {
  .final-grid.has-form { grid-template-columns: 5fr 7fr; }
  .final-grid.has-form .final-copy { position: sticky; inset-block-start: calc(var(--header-h) + 40px); }
}

/* ---------- consultation form card (partials/consult-form.html + assets/js/consult-form.js) ---------- */
.consult-card {
  position: relative; container-type: inline-size; padding: clamp(20px, 3vw, 36px); border-radius: var(--r-lg);
  background: var(--c-white); color: var(--c-ink); border: 1px solid var(--c-grey-100); box-shadow: var(--shadow-2);
  scroll-margin-block-start: calc(var(--header-h) + 16px);
}
.on-maroon .consult-card { border-color: transparent; box-shadow: 0 24px 64px rgb(0 0 0 / .28); }
.on-maroon .consult-card :focus-visible { outline-color: var(--c-focus); }
.on-maroon .consult-card .btn-ghost { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: var(--c-grey-200); }
.on-maroon .consult-card .btn-ghost:hover { --btn-bg: var(--c-white); --btn-bd: var(--c-ink); }
.consult-head { margin-block-end: 18px; }
.consult-title { font-size: var(--fs-h3); font-weight: 700; }
.consult-meta { margin-block-start: 4px; font-size: var(--fs-small); color: var(--c-grey-600); }
.consult-card:has(.consult-thanks) .consult-head { display: none; }
.consult-form fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.consult-form legend { padding: 0; }

/* progress: 4 rounded pixel squares (done = maroon, current = maroon outline, next = grey) */
.consult-progress {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-block-end: 22px; padding-block-end: 16px;
  border-block-end: 1px solid var(--c-grey-100);
}
.px-steps { display: flex; align-items: center; gap: 8px; }
.px-steps li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-label); color: var(--c-grey-600); }
.px-steps li + li::before { content: ""; inline-size: 14px; block-size: 2px; border-radius: 1px; background: var(--c-grey-200); }
.px-dot { display: inline-block; flex: none; inline-size: 14px; block-size: 14px; border-radius: 4px; border: 2px solid var(--c-grey); background: var(--c-grey-100); }
.px-steps li.is-done .px-dot { background: var(--c-maroon); border-color: var(--c-maroon); }
.px-steps li.is-done + li::before { background: var(--c-maroon); }
.px-steps li.is-current .px-dot { background: var(--c-white); border-color: var(--c-maroon); }
.px-steps li.is-current { color: var(--c-ink); font-weight: 600; }
.px-name { display: none; }
/* own line on narrow cards: the label no longer jumps between lines when the web font arrives (was CLS 0.06 on /consultation/) */
.step-label { flex-basis: 100%; font-size: var(--fs-small); font-weight: 600; color: var(--c-ink); }
@container (min-width: 600px) {
  .px-name { display: inline; }
  .step-label { display: none; }
}

.step-legend { display: block; inline-size: 100%; margin-block-end: 6px; font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
.step-helper { margin-block-end: 18px; font-size: var(--fs-small); color: var(--c-grey-600); }
.field { position: relative; margin-block-end: 20px; }
.field-label { display: block; margin-block-end: 8px; font-size: .9375rem; font-weight: 600; }
:lang(ar) .field-label { font-size: 1rem; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.counter { font-size: var(--fs-label); color: var(--c-grey-600); font-variant-numeric: tabular-nums; }
.input {
  display: block; inline-size: 100%; min-block-size: 52px; padding: 12px 14px; border: 1.5px solid var(--c-grey-200);
  border-radius: var(--r-md); background: var(--c-white); font-size: 1rem; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
:lang(ar) .input { font-size: 1.0625rem; }
.input::placeholder { color: #767676; opacity: 1; }
.input:hover { border-color: var(--c-grey-400); }
.input:focus { outline: none; border-color: var(--c-focus); box-shadow: 0 0 0 3px rgb(26 64 129 / .18); }
.input[aria-invalid="true"] { border-color: var(--c-error); }
.textarea { min-block-size: 96px; resize: vertical; }
.phone-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; }
.input-cc { text-align: center; }
.field-hint { margin-block-start: 6px; font-size: var(--fs-label); color: var(--c-grey-600); }
.field-hint[data-email-hint] { color: var(--c-maroon); font-weight: 600; }
.field-error {
  margin-block-start: 8px; padding-inline-start: 10px; border-inline-start: 3px solid var(--c-error);
  font-size: var(--fs-small); font-weight: 500; color: var(--c-error);
}

/* chips: visually hidden input + label; checked = solid maroon (luminance change, not hue only) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding: 8px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--c-grey-200); background: var(--c-white); font-size: .9375rem; font-weight: 500; line-height: 1.3;
  cursor: pointer; user-select: none; transition: border-color .15s, background-color .15s, color .15s;
}
.chip .icon { inline-size: 18px; block-size: 18px; color: var(--c-maroon); }
.chip:hover { border-color: var(--c-grey-400); }
.chip-input:checked + .chip { border-color: var(--c-maroon); background: var(--c-maroon); color: var(--c-white); }
.chip-input:checked + .chip .icon { color: var(--c-white); }
.chip-input:focus-visible + .chip, .chip-input:focus-visible + .seg { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.chip-input[aria-invalid="true"] + .chip { border-color: var(--c-error); }
.chip-unsure { border-style: dashed; }
.chips-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.chip-card { justify-content: flex-start; min-block-size: 52px; padding: 12px 16px; }
.chip-card::before {
  content: ""; flex: none; inline-size: 14px; block-size: 14px; border-radius: 4px; border: 2px solid var(--c-grey); background: var(--c-white);
}
.chip-input:checked + .chip-card::before { border-color: var(--c-white); background: var(--c-white); box-shadow: inset 0 0 0 3px var(--c-maroon); }
@container (min-width: 520px) { .chips-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.segmented {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--r-md);
  border: 1.5px solid var(--c-grey-200); background: var(--c-offwhite);
}
.seg {
  display: flex; align-items: center; justify-content: center; min-block-size: 44px; border-radius: 7px; cursor: pointer;
  font-size: .9375rem; font-weight: 600; color: var(--c-grey-700); transition: background-color .15s, color .15s;
}
.chip-input:checked + .seg { background: var(--c-white); color: var(--c-maroon); box-shadow: var(--shadow-1); }

.step-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block-start: 24px; }
.wa-route {
  display: inline-flex; flex-basis: 100%; align-items: center; gap: 8px; min-block-size: 44px; font-size: var(--fs-small);
  font-weight: 600; color: var(--c-grey-700); text-decoration-color: var(--c-grey-200);
}
.wa-route:hover { color: var(--c-maroon); text-decoration-color: currentColor; }
.individual { margin-block: -6px 4px; }
.individual-note, .nojs-fallback, .thanks-prepare, .thanks-handoff {
  padding: 12px 14px; border-radius: var(--r-md); background: var(--c-offwhite); font-size: var(--fs-small);
}
.individual-note { margin-block-end: 12px; }
.resume-note {
  display: flex; align-items: center; gap: 8px; margin-block-end: 18px; padding: 10px 14px; border-radius: var(--r-md);
  background: var(--c-maroon-50); color: var(--c-maroon-600); font-size: var(--fs-small); font-weight: 600;
}
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-block-start: 8px; }
.btn-submit { flex: 1 1 260px; }
.privacy-line { display: flex; gap: 8px; align-items: flex-start; margin-block-start: 14px; font-size: var(--fs-label); color: var(--c-grey-600); }
.privacy-line .icon { inline-size: 16px; block-size: 16px; margin-block-start: .25em; }
.privacy-line a { color: var(--c-ink); }
.send-error { margin-block-start: 16px; padding: 16px 18px; border-radius: var(--r-md); background: var(--c-error-bg); border: 1px solid #F5C2BC; }
.send-error-title { display: flex; gap: 8px; margin-block-end: 6px; font-weight: 700; color: var(--c-error); }
.send-error .cta-row { margin-block-start: 12px; }
.send-error:focus { outline: none; }

/* no-JS: one long form (or the WhatsApp / phone / email fallback when the endpoint is not ready) */
.nojs-note { display: none; }
.no-js .nojs-note { display: block; margin-block-end: 18px; font-size: var(--fs-small); color: var(--c-grey-700); }
.no-js .consult-progress, .no-js [data-next], .no-js [data-back] { display: none; }
.no-js .consult-form[data-endpoint-ready="false"] { display: none; }
.js .consult-form:not(.is-enhanced) [data-step] ~ [data-step] { display: none; }
.consult-form:not(.is-enhanced) .step + .step { margin-block-start: 32px; padding-block-start: 28px; border-block-start: 1px dashed var(--c-grey-200); }
.nojs-fallback { display: grid; gap: 10px; }
.nojs-title { font-weight: 700; }

/* thank-you view (replaces the form in place) + /consultation/thanks/ */
.consult-thanks:focus { outline: none; }
.thanks-view, .thanks-page .wrap-narrow { display: grid; gap: 14px; justify-items: start; }
.thanks-badge { display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 12px; background: var(--c-maroon); color: var(--c-white); }
.thanks-badge .icon { inline-size: 26px; block-size: 26px; stroke-width: 2.5; }
.thanks-title { font-size: var(--fs-h3); }
.thanks-ref strong { padding: 2px 8px; border-radius: var(--r-xs); background: var(--c-offwhite); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.thanks-sub { margin-block-start: 6px; font-size: 1.0625rem; font-weight: 700; }
.thanks-steps { display: grid; gap: 10px; }
.thanks-steps li { display: flex; gap: 12px; align-items: flex-start; }
.thanks-steps .px-dot { margin-block-start: .5em; background: var(--c-maroon); border-color: var(--c-maroon); }
.thanks-handoff { background: var(--c-maroon-50); }
.thanks-view .cta-row { margin-block-start: 6px; }

/* ---------- floating: mobile sticky CTA bar + desktop WhatsApp button ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40; display: grid; grid-template-columns: 3fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .97);
  border-block-start: 1px solid var(--c-grey-200); box-shadow: 0 -8px 24px rgb(26 26 26 / .06);
  transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s;
}
.sticky-cta.is-shown { transform: none; visibility: visible; transition: transform .3s var(--ease); }
.sticky-cta .btn { min-block-size: 50px; padding-inline: .6em; font-size: .9375rem; }
.btn-wa { --btn-bg: var(--c-white); --btn-fg: var(--c-ink); --btn-bd: var(--c-grey-200); }
.btn-wa:hover { --btn-bg: var(--c-offwhite); --btn-bd: var(--c-ink); }
.btn-wa .icon { inline-size: 24px; block-size: 24px; }
.wa-fab { display: none; }
@media (max-width: 767.98px) { body { padding-block-end: 76px; } }
@media (min-width: 768px) {
  .sticky-cta { display: none; }
  .wa-fab {
    position: fixed; inset-inline-end: 24px; inset-block-end: 24px; z-index: 40; display: grid; place-items: center;
    inline-size: 56px; block-size: 56px; border-radius: 16px; border: 1px solid var(--c-grey-200); background: var(--c-white);
    color: var(--c-maroon); box-shadow: var(--shadow-2); text-decoration: none;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s, border-color .2s;
  }
  .wa-fab.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease), border-color .2s; }
  .wa-fab:hover { border-color: var(--c-maroon); }
  .wa-fab .icon { inline-size: 26px; block-size: 26px; }
  .wa-fab-label {
    position: absolute; inset-inline-end: calc(100% + 10px); padding: 6px 10px; border-radius: var(--r-sm); background: var(--c-ink);
    color: var(--c-white); font-size: var(--fs-label); font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .wa-fab:hover .wa-fab-label, .wa-fab:focus-visible .wa-fab-label { opacity: 1; }
}

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--c-offwhite); padding-block-end: 28px; }
.footer-grid { display: grid; gap: 40px; padding-block: clamp(56px, 7vw, 88px) 48px; }
.footer-logo { display: inline-block; margin-block-end: 18px; color: var(--c-maroon); }
.logo-stacked { inline-size: 140px; block-size: auto; aspect-ratio: 1114.4 / 933.2; }
.footer-brand p { max-inline-size: 38ch; font-size: var(--fs-small); color: var(--c-grey-700); }
.footer-title { margin-block-end: 14px; font-size: var(--fs-label); font-weight: 600; color: var(--c-grey-600); }
.footer-contact { display: grid; gap: 4px; }
.footer-contact a { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; padding-block: 6px; text-decoration: none; }
.footer-contact .icon {
  grid-row: span 2; inline-size: 40px; block-size: 40px; padding: 9px; border-radius: var(--r-md); background: var(--c-white);
  color: var(--c-maroon); box-shadow: var(--shadow-1); transition: background-color .2s, color .2s;
}
.footer-contact a:hover .icon { background: var(--c-maroon); color: var(--c-white); }
.fc-label { font-size: var(--fs-label); color: var(--c-grey-600); }
.fc-value { justify-self: start; font-weight: 600; font-size: 1.0625rem; unicode-bidi: isolate; }
.footer-contact a:hover .fc-value { color: var(--c-maroon); text-decoration: underline; }
.footer-links { display: grid; gap: 2px; }
.footer-links a { display: inline-block; padding-block: 6px; color: var(--c-grey-700); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--c-maroon); text-decoration: underline; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-block-start: 20px;
  border-block-start: 1px solid var(--c-grey-200); font-size: var(--fs-label); color: var(--c-grey-600);
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 5fr 4fr 3fr; } }

/* ---------- inner page hero (programs, about, brand, privacy) ---------- */
.page-hero { padding-block: clamp(36px, 6vw, 88px) clamp(40px, 6vw, 80px); }
.page-hero-sm { padding-block-end: 8px; }
.page-hero-grid { display: grid; gap: 32px; align-items: center; }
.page-hero h1 { max-inline-size: 18ch; font-size: var(--fs-h1); line-height: var(--lh-display); margin-block-end: .4em; text-wrap: balance; }
:lang(en) .page-hero h1 { letter-spacing: -.035em; }
:lang(ar) .page-hero h1 { line-height: var(--lh-head); }
.page-hero .lead { max-inline-size: 60ch; }
.page-hero .cta-row { margin-block-start: 28px; }
.page-hero-art, .nf-art { display: none; color: var(--c-maroon); inline-size: 100%; max-inline-size: 260px; justify-self: center; }
.page-hero-art svg, .nf-art svg { inline-size: 100%; block-size: auto; aspect-ratio: 256 / 224; }
@media (min-width: 900px) {
  .page-hero-grid.has-art { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .page-hero-art, .nf-art { display: block; }
}

/* ---------- programs: numbered area index (2/3-col grid on small screens, sticky rail + scrollspy on wide screens),
   cards in the area-card pattern (off-white at rest, white + tinted shadow + 3px lift on hover), CTA panel at the end ---------- */
.programs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.programs-index-title { margin-block-end: var(--s-3); font-size: var(--fs-label); font-weight: 700; color: var(--c-grey-600); }
.programs-index ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
.programs-index a {
  display: flex; align-items: center; gap: 10px; block-size: 100%; min-block-size: 44px; padding: 8px 12px; border-radius: var(--r-md);
  border: 1px solid transparent; background: var(--c-offwhite); font-size: var(--fs-label); font-weight: 600; line-height: 1.35;
  text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
:lang(ar) .programs-index a { line-height: 1.7; }
.programs-index a:hover { background: var(--c-maroon-50); color: var(--c-maroon); }
.programs-index a[aria-current="true"] { background: var(--c-white); border-color: var(--c-maroon-200); color: var(--c-maroon); }
.pi-num { flex: none; min-inline-size: 2ch; font-size: var(--fs-label); font-weight: 700; color: var(--c-maroon); font-variant-numeric: tabular-nums; }
.programs-list { display: grid; gap: var(--s-4); }
.programs-note {
  display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); border-radius: var(--r-lg);
  background: var(--c-maroon-50); color: var(--c-grey-700);
}
.programs-note .px { inline-size: 12px; block-size: 12px; border-radius: 3px; margin-block-start: .45em; }
:lang(ar) .programs-note .px { margin-block-start: .65em; }
.program {
  display: flex; flex-direction: column; gap: var(--s-3); padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg);
  border: 1px solid transparent; background: var(--c-offwhite); scroll-margin-block-start: calc(var(--header-h) + 24px);
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease), background-color .2s;
}
.program:hover { background: var(--c-white); border-color: var(--c-maroon-200); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.program:hover .area-icon { background: var(--c-maroon); color: var(--c-white); }
.program:target { background: var(--c-white); border-color: var(--c-maroon-200); }
.program-frame { margin-block-end: var(--s-2); border-radius: var(--r-md); }
.program-frame.frame-brand ~ .program-head .area-icon, .program-frame.frame-brand ~ .program-head .program-num { display: none; }
.program-head { display: flex; align-items: center; gap: 14px; }
.program-head h2 { flex: 1; font-size: var(--fs-h3); }
.program-num {
  align-self: flex-start; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 700; line-height: 1; color: #BB7477; /* maroon 55% tint: 3.3:1 on off-white (AA large) */
  font-variant-numeric: tabular-nums;
}
.program-short { color: var(--c-grey-700); }
.program-label { margin-block-start: var(--s-1); font-size: var(--fs-label); font-weight: 700; color: var(--c-grey-600); }
.program-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.program-topics li { padding: 4px 10px; border-radius: var(--r-sm); border: 1px solid var(--c-grey-200); background: var(--c-white); font-size: var(--fs-small); }
.program .link-arrow { margin-block-start: auto; padding-block-start: var(--s-2); }
.programs-end { margin-block-start: var(--s-2); }
.programs-end > div:first-child { flex: 1 1 320px; }
.programs-end-text { margin-block-start: var(--s-2); max-inline-size: 52ch; color: var(--c-grey-700); }
.programs-end .cta-note { margin-block-start: var(--s-3); }
@media (max-width: 639.98px) { .programs-end-actions { flex: 1 1 100%; } }
@media (min-width: 640px) { .programs-index ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) {
  .programs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programs-note { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .programs-grid { grid-template-columns: 250px minmax(0, 1fr); column-gap: 56px; row-gap: var(--s-7); align-items: start; }
  .programs-index { grid-row: span 2; position: sticky; inset-block-start: calc(var(--header-h) + 24px); }
  .programs-index ol { grid-template-columns: minmax(0, 1fr); gap: 0; border-inline-start: 1px solid var(--c-grey-200); }
  .programs-index a {
    min-block-size: 40px; border: 0; border-radius: 0; background: none; margin-inline-start: -1px; font-size: var(--fs-small);
    border-inline-start: 2px solid transparent;
  }
  .programs-index a:hover { background: var(--c-maroon-50); }
  .programs-index a[aria-current="true"] { background: none; border-inline-start-color: var(--c-maroon); }
  .programs-end { grid-column: 2; margin-block-start: 0; }
}

/* ---------- CTA band (programs, about) ---------- */
.cta-band { position: relative; padding-block: clamp(64px, 8vw, 104px); }
.cta-band-grid { display: grid; gap: 28px; align-items: center; }
.cta-band .lead { margin-block-start: 10px; max-inline-size: 60ch; }
@media (min-width: 900px) { .cta-band-grid { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- consultation page ---------- */
.consult-hero { padding-block: clamp(24px, 5vw, 64px) clamp(48px, 6vw, 88px); background: var(--c-offwhite); }
.consult-hero-grid { display: grid; gap: 28px; }
.consult-copy h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem); line-height: var(--lh-display); margin-block: .2em .45em; text-wrap: balance; }
:lang(en) .consult-copy h1 { letter-spacing: -.035em; }
.consult-note { display: flex; gap: 8px; align-items: center; margin-block-start: 18px; font-weight: 600; color: var(--c-maroon); }
.consult-risk { display: none; gap: 10px; margin-block-start: 24px; }
.consult-risk li { display: flex; gap: 10px; font-size: var(--fs-small); color: var(--c-grey-700); }
.consult-risk .icon { margin-block-start: .2em; color: var(--c-maroon); }
/* desktop: copy + proof stacked in the start column, the form spans both rows in the end column */
.consult-proof { display: none; }
.proof-facts { gap: var(--s-3); padding-block-start: var(--s-5); border-block-start: 1px solid var(--c-grey-200); }
.proof-facts p { display: flex; gap: var(--s-3); align-items: center; font-size: var(--fs-small); line-height: 1.5; color: var(--c-grey-700); }
:lang(ar) .proof-facts p { line-height: 1.7; }
.proof-facts p:first-child { font-weight: 600; color: var(--c-ink); }
.proof-facts .icon {
  flex: none; inline-size: 40px; block-size: 40px; padding: 9px; border-radius: var(--r-sm); background: var(--c-white);
  color: var(--c-maroon); box-shadow: var(--shadow-1);
}
@media (min-width: 1024px) {
  .consult-hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; grid-template-areas: "copy form" "proof form";
    column-gap: 56px; row-gap: var(--s-6); align-items: start;
  }
  .consult-copy { grid-area: copy; padding-block-start: 20px; }
  .consult-form-col { grid-area: form; }
  .consult-proof { grid-area: proof; display: grid; }
  .consult-risk { display: grid; }
}
/* trust by the submit button (consultation page only; desktop shows .consult-proof beside the form instead) */
.submit-proof {
  display: flex; gap: 8px; align-items: flex-start; margin-block-start: 14px; padding: 10px 12px; border-radius: var(--r-md);
  background: var(--c-maroon-50); font-size: var(--fs-label); font-weight: 600; line-height: 1.5; color: var(--c-ink);
}
:lang(ar) .submit-proof { line-height: 1.7; }
.submit-proof .icon { flex: none; inline-size: 18px; block-size: 18px; margin-block-start: .2em; color: var(--c-maroon); }
@media (min-width: 1024px) { .submit-proof { display: none; } }
/* proof strip: one row of government logos straight under the hero */
.proof-strip { position: relative; padding-block: var(--s-8) var(--s-7); }
.proof-logos { display: grid; gap: var(--s-5); }
.proof-logos .logo-wall-title { margin-block-end: 0; text-align: start; color: var(--c-ink); }
.proof-logos .link-arrow { justify-self: start; }
@media (min-width: 1024px) {
  .proof-logos {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr); grid-template-areas: "t l" "m l";
    column-gap: var(--s-8); row-gap: var(--s-3); align-items: center;
  }
  .proof-logos .logo-wall-title { grid-area: t; align-self: end; }
  .proof-logos > .logo-wall { grid-area: l; }
  .proof-logos .logos { justify-content: space-between; }
  .proof-logos .link-arrow { grid-area: m; align-self: start; }
}
.get-list { display: grid; gap: 16px; }
.get-item { padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-lg); background: var(--c-offwhite); }
.get-item.is-key, .get-item:nth-child(2) { background: var(--c-maroon-50); }
.get-item.is-key { box-shadow: inset 0 0 0 1px var(--c-maroon-200); }
.get-item.is-key .get-num { background: var(--c-maroon); color: var(--c-white); }
.get-num {
  display: inline-grid; place-items: center; inline-size: 34px; block-size: 34px; margin-block-end: var(--s-4); border-radius: var(--r-md);
  border: 1.5px solid var(--c-maroon); color: var(--c-maroon); font-size: var(--fs-label); font-weight: 700;
}
.get-item h3 { margin-block-end: 6px; font-size: 1.125rem; }
.get-item p { font-size: var(--fs-small); color: var(--c-grey-700); }
.get-item .cmap { margin-block-start: var(--s-5); padding: clamp(12px, 2vw, 18px); border-radius: var(--r-lg); background: var(--c-white); }
.get-item .cmap-thread { margin-block-start: var(--s-3); }
.get-item .cmap-thread i { inline-size: 6px; block-size: 6px; }
@media (min-width: 640px) {
  .get-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .get-item.is-key { grid-column: 1 / -1; }
}
/* desktop bento, 4 items in 4 cells: three short tiles on the reading-start side, the Competency Map tall beside them */
@media (min-width: 1024px) {
  .get-list { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.25fr); }
  .get-item:nth-child(3) { grid-column: 1 / span 2; }
  .get-item.is-key { grid-column: 3; grid-row: 1 / span 2; }
}
.after-grid { display: grid; gap: 32px; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 20px; padding-block-end: 28px; }
.timeline li:last-child { padding-block-end: 0; }
.timeline li:not(:last-child)::before {
  content: ""; position: absolute; inset-inline-start: 12.5px; inset-block: 34px 4px; inline-size: 3px;
  background: repeating-linear-gradient(180deg, var(--thread-seq));
}
.tl-node { inline-size: 28px; block-size: 28px; margin-block-start: 2px; border-radius: 8px; border: 2px solid var(--c-maroon); background: var(--c-white); }
.timeline li:first-child .tl-node { background: var(--c-maroon); }
.timeline h3 { margin-block-end: 4px; font-size: 1.125rem; }
.timeline p { font-size: var(--fs-small); color: var(--c-grey-700); }
@media (min-width: 900px) { .after-grid { grid-template-columns: 5fr 7fr; align-items: start; } }
.fit-grid { display: grid; gap: 16px; }
.fit-col { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); border: 1px solid var(--c-grey-200); }
.fit-yes { border-color: var(--c-maroon-200); }
.fit-no { background: var(--c-offwhite); border-color: transparent; }
.fit-col h2 { margin-block-end: 18px; font-size: var(--fs-h3); }
.fit-col ul { display: grid; gap: 12px; }
.fit-col li { display: flex; gap: 12px; }
.fit-col .icon { margin-block-start: .2em; }
.fit-yes .icon { color: var(--c-maroon); }
.fit-no .icon { color: var(--c-grey); }
.fit-no li { color: var(--c-grey-700); }
@media (min-width: 900px) { .fit-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- about ---------- */
.story-grid { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
.story-copy h2 { margin-block-end: var(--s-5); }
.story .prose > p:first-child { font-size: var(--fs-statement); font-weight: 600; line-height: 1.25; color: var(--c-ink); text-wrap: balance; }
:lang(en) .story .prose > p:first-child { letter-spacing: -.02em; }
:lang(ar) .story .prose > p:first-child { line-height: 1.7; }
.story-photo { inline-size: min(78%, 360px); justify-self: end; margin-block-start: var(--s-6); }
@media (min-width: 900px) {
  /* the photo hangs lower than the copy, so it starts below the first screen and the h1 stays the LCP */
  .story-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .story-photo { inline-size: min(100%, 360px); justify-self: end; margin-block-start: clamp(64px, 10vw, 160px); }
}
.quote-grid { display: grid; gap: var(--s-5); align-items: center; }
.quote-photo { inline-size: 96px; border-radius: var(--r-lg); }
@media (min-width: 640px) {
  .quote-grid { grid-template-columns: 160px minmax(0, 1fr); gap: var(--s-7); }
  .quote-photo { inline-size: 160px; }
}
.quote::before {
  content: ""; display: block; inline-size: 88px; block-size: 6px; margin-block-end: var(--s-5);
  background: repeating-linear-gradient(90deg, var(--thread-seq));
}
.quote blockquote { margin: 0; }
.quote p { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); font-weight: 600; line-height: 1.45; }
:lang(ar) .quote p { line-height: 1.75; }
.quote figcaption { display: flex; align-items: center; gap: 10px; margin-block-start: 18px; font-size: var(--fs-small); color: var(--c-grey-600); }
.quote figcaption::before { content: ""; inline-size: 24px; block-size: 2px; background: var(--c-maroon); }

/* ---------- brand placeholder, privacy, thanks, 404 ---------- */
.coming { display: grid; gap: 20px; }
.legal h2 { margin-block-start: var(--s-7); padding-block-start: var(--s-5); border-block-start: 1px solid var(--c-grey-100); font-size: var(--fs-h3); }
.legal h2:first-child { margin-block-start: 0; padding-block-start: 0; border: 0; }
.legal h2 + p { margin-block-start: var(--s-3); }
.thanks-page .cta-row { margin-block-start: var(--s-3); }
.thanks-page .thanks-sub { margin-block-start: var(--s-4); }
.notfound-grid { display: grid; gap: 32px; align-items: center; }
.nf-code::before { content: "404"; }
.nf-code { font-size: clamp(4rem, 3rem + 5vw, 7.5rem); font-weight: 800; line-height: 1; color: var(--c-maroon-100); letter-spacing: -.03em; }
.notfound .cta-row { margin-block-start: 28px; }
:lang(ar) .nf-code { letter-spacing: 0; }
[dir="rtl"] .nf-code { text-align: right; } /* the numeral is an LTR run; in Arabic it hangs from the reading start (right) like the h1 */
@media (min-width: 900px) { .notfound-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); } }

/* ---------- focus targets moved by script (step legends, thank-you heading, skip target): no ring ---------- */
legend[tabindex="-1"]:focus, .consult-thanks [tabindex="-1"]:focus, main:focus { outline: none; }
.auth-award .auth-icon .icon { inline-size: 56px; block-size: 56px; stroke-width: 1.5; }

/* =====================================================================================================================
   BRAND GUIDELINES PAGE (templates/pages/brand.html). Prefix .bk-. Swatch colors are classes (CSP: no style="").
   ===================================================================================================================== */
.bk-c-maroon { background: #840308; color: #fff; } .bk-c-m50 { background: #FAF3F2; } .bk-c-m100 { background: #F5E7E5; }
.bk-c-m200 { background: #E9CBC6; } .bk-c-m300 { background: #D4A19A; } .bk-c-m600 { background: #640204; color: #fff; }
.bk-c-m700 { background: #460102; color: #fff; } .bk-c-m800 { background: #280001; color: #fff; }
.bk-c-blue { background: #1A4081; color: #fff; } .bk-c-b50 { background: #F2F5F9; } .bk-c-b100 { background: #E6EBF3; }
.bk-c-b200 { background: #C9D3E4; } .bk-c-b300 { background: #9EB0CE; } .bk-c-b600 { background: #112F62; color: #fff; }
.bk-c-b700 { background: #091F44; color: #fff; } .bk-c-b800 { background: #030F27; color: #fff; }
.bk-c-grey { background: #949494; color: #000; } .bk-c-g100 { background: #EDEDED; } .bk-c-g200 { background: #DCDCDC; }
.bk-c-g400 { background: #8A8A8A; } .bk-c-g600 { background: #666; color: #fff; } .bk-c-g700 { background: #4D4D4D; color: #fff; }
.bk-c-ink { background: #1A1A1A; color: #fff; } .bk-c-black { background: #000; color: #fff; } .bk-c-white { background: #fff; }
.bk-c-offwhite { background: #F7F7F7; } .bk-c-error { background: #B42318; } .bk-c-errorbg { background: #FEF3F2; }
.bk-c-success { background: #1B7A47; } .bk-c-successbg { background: #EEF8F2; }
.bk-c-busy { background: #fff url("../img/pattern/stitch-mixed.svg") repeat; background-size: auto 24px; }
.bk-t-maroon { color: #840308; } .bk-t-m200 { color: #E9CBC6; } .bk-t-blue { color: #1A4081; } .bk-t-b200 { color: #C9D3E4; }
.bk-t-grey { color: #949494; } .bk-t-g600 { color: #666; } .bk-t-g700 { color: #4D4D4D; } .bk-t-ink { color: #1A1A1A; }
.bk-t-black { color: #000; } .bk-t-white { color: #fff; } .bk-t-error { color: #B42318; } .bk-t-success { color: #1B7A47; }

/* ---------- layout + table of contents ---------- */
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: clamp(28px, 5vw, 56px) var(--section); }
.bk-toc-title { font-size: var(--fs-label); font-weight: 700; color: var(--c-grey-600); margin-block-end: 8px; }
.bk-toc ol {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-block-end: 6px;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin;
}
.bk-toc li { flex: none; scroll-snap-align: start; }
.bk-toc a {
  display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding: 8px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--c-grey-200); font-size: var(--fs-small); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bk-toc a:hover { background: var(--c-maroon-50); color: var(--c-maroon); }
.bk-toc a[aria-current="true"] { background: var(--c-maroon-50); border-color: var(--c-maroon-200); color: var(--c-maroon); }
.bk-toc-n { font-size: var(--fs-label); font-weight: 700; color: var(--c-maroon); font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) {
  .bk-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 64px; align-items: start; }
  .bk-toc { position: sticky; inset-block-start: calc(var(--header-h) + 24px); padding-block-start: clamp(48px, 7vw, 88px); }
  .bk-toc ol { flex-direction: column; gap: 0; overflow: visible; margin-inline: 0; padding-inline: 0; border-inline-start: 1px solid var(--c-grey-200); }
  .bk-toc a { inline-size: 100%; min-block-size: 40px; border: 0; border-radius: 0; margin-inline-start: -1px; border-inline-start: 2px solid transparent; white-space: normal; }
  .bk-toc a[aria-current="true"] { border-inline-start-color: var(--c-maroon); background: none; }
}

/* ---------- sections ---------- */
.bk-sec { padding-block: clamp(48px, 7vw, 88px); border-block-end: 1px solid var(--c-grey-200); scroll-margin-block-start: var(--header-h); }
.bk-sec:last-child { border-block-end: 0; padding-block-end: 0; }
.bk-sec > * + * { margin-block-start: 16px; }
.bk-sec > .bk-h3 { margin-block-start: clamp(36px, 5vw, 56px); }
.bk-sec > .bk-h3 + * { margin-block-start: 12px; }
.bk-head { display: flex; align-items: baseline; gap: 14px; }
.bk-num { font-size: clamp(2.4rem, 1.9rem + 2vw, 3.4rem); font-weight: 300; line-height: 1; color: var(--c-maroon); font-variant-numeric: lining-nums tabular-nums; }
.bk-head h2 { font-size: var(--fs-h2); }
.bk-h3 { font-size: var(--fs-h3); }
.bk-lead { font-size: var(--fs-lead); color: var(--c-grey-700); max-inline-size: 62ch; }
.bk-sec p { max-inline-size: 68ch; }
.bk-two { display: grid; gap: 20px 32px; }
@media (min-width: 720px) { .bk-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bk-prose h3, .bk-card h3 { font-size: 1.15rem; margin-block-end: 6px; }
:lang(ar) .bk-prose h3, :lang(ar) .bk-card h3 { font-size: 1.25rem; }
.bk-card { padding: 20px 24px; border-radius: var(--r-lg); border: 1px solid var(--c-grey-200); }
.bk-tag {
  display: inline-block; padding: 1px 10px; border-radius: var(--r-sm); background: var(--c-maroon-50); color: var(--c-maroon);
  font-size: var(--fs-label); font-weight: 600; line-height: 1.7; vertical-align: middle; margin-inline-start: 6px; white-space: nowrap;
}
.bk-note { font-size: var(--fs-small); color: var(--c-grey-600); }
.bk-list { display: grid; gap: 10px; max-inline-size: 74ch; }
.bk-list li { position: relative; padding-inline-start: 22px; }
.bk-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .62em; inline-size: 8px; block-size: 8px;
  border-radius: 2px; background: var(--c-maroon);
}
:lang(ar) .bk-list li::before { inset-block-start: .78em; }
.bk-list-do li::before { background: var(--c-success); }
.bk-list-dont li::before { background: var(--c-error); }
.bk-pass, .bk-fail { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }
.bk-pass { color: var(--c-success); }
.bk-fail { padding: 1px 9px 1px 7px; border-radius: var(--r-sm); background: var(--c-error-bg); color: var(--c-error); font-size: var(--fs-label); }
.bk-pass .icon, .bk-fail .icon { inline-size: 15px; block-size: 15px; stroke-width: 2.6; }

/* ---------- tables ---------- */
.bk-table-wrap { overflow-x: auto; border: 1px solid var(--c-grey-200); border-radius: var(--r-md); }
.bk-table { inline-size: 100%; min-inline-size: 620px; border-collapse: collapse; font-size: var(--fs-small); }
.bk-table th, .bk-table td { padding: 10px 14px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--c-grey-200); }
.bk-table thead th { background: var(--c-offwhite); font-size: var(--fs-label); font-weight: 700; color: var(--c-grey-700); white-space: nowrap; }
.bk-table tbody th { font-weight: 600; }
.bk-table tbody tr:last-child > * { border-block-end: 0; }
.bk-table-pairs, .bk-table-glossary { min-inline-size: 0; }
.bk-table-pairs thead th .icon { inline-size: 16px; block-size: 16px; margin-inline-end: 6px; vertical-align: -3px; stroke-width: 2.6; }
.bk-table-pairs thead th:first-child .icon { color: var(--c-success); }
.bk-table-pairs thead th:last-child .icon { color: var(--c-error); }
.bk-table-contrast td, .bk-table-contrast th { vertical-align: middle; }
.bk-table-dl td { white-space: nowrap; }

/* ---------- 01 essence ---------- */
.bk-statements { display: grid; gap: 16px; }
@media (min-width: 720px) { .bk-statements { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bk-statement { margin: 0; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--c-maroon-50); }
.bk-statement figcaption { font-size: var(--fs-label); font-weight: 700; color: var(--c-maroon); margin-block-end: 10px; }
.bk-statement.on-maroon { background: var(--c-maroon-700); }
.bk-statement.on-maroon figcaption { color: var(--c-maroon-200); }
.bk-statement blockquote { margin: 0; }
.bk-statement p { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); font-weight: 600; line-height: 1.4; }
:lang(ar) .bk-statement p { line-height: 1.75; }
.bk-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.bk-pillars li { padding: 20px; border: 1px solid var(--c-grey-200); border-radius: var(--r-md); }
.bk-pillar-n {
  display: grid; place-items: center; inline-size: 32px; block-size: 32px; border-radius: 6px; background: var(--c-maroon);
  color: var(--c-white); font-weight: 700; font-variant-numeric: tabular-nums;
}
.bk-pillars h4 { font-size: 1.05rem; margin-block: 14px 4px; }
.bk-pillars p { font-size: var(--fs-small); }
.bk-pillars .bk-pillar-step { margin-block-start: 10px; font-size: var(--fs-label); color: var(--c-grey-600); }
.bk-traits-row > * + * { margin-block-start: 12px; }
.bk-sec > .bk-traits-row { margin-block-start: clamp(36px, 5vw, 56px); }
.bk-traits { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-traits li { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--c-maroon-200); color: var(--c-maroon); font-weight: 600; }
.bk-proof {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; overflow: hidden;
  background: var(--c-grey-200); border: 1px solid var(--c-grey-200); border-radius: var(--r-md);
}
.bk-proof li { display: grid; gap: 4px; align-content: start; padding: 16px 18px; background: var(--c-white); }
.bk-proof-v { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); font-weight: 700; line-height: 1.1; color: var(--c-maroon); font-variant-numeric: tabular-nums; }
.bk-proof li > span { font-size: var(--fs-small); color: var(--c-grey-700); }
.bk-proof-text { display: grid; gap: 12px; }
.bk-proof-text li { display: flex; gap: 12px; align-items: flex-start; max-inline-size: 74ch; }
.bk-proof-text .icon { inline-size: 24px; block-size: 24px; color: var(--c-maroon); margin-block-start: .15em; }
.bk-reading { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.bk-read { padding: 20px; border: 1px solid var(--c-grey-200); border-radius: var(--r-lg); }
.bk-read h4 { font-size: 1.05rem; margin-block: 14px 4px; }
.bk-read p { font-size: var(--fs-small); color: var(--c-grey-700); }
.bk-parts { inline-size: 100%; max-inline-size: 150px; block-size: auto; aspect-ratio: 256 / 224; }
.bk-parts path { fill: var(--c-grey-200); }
.bk-read-pixels .mk-L, .bk-read-pixels .mk-M, .bk-read-pixels .mk-S { fill: var(--c-maroon); }
.bk-read-growth .mk-S { fill: var(--c-maroon-200); }
.bk-read-growth .mk-M { fill: #D4A19A; }
.bk-read-growth .mk-L { fill: var(--c-maroon); }
.bk-read-learner .mk-diamond, .bk-read-learner .mk-stem, .bk-read-learner .mk-core { fill: var(--c-maroon); }
.bk-read-craft .mk-diamond, .bk-read-craft .mk-link { fill: var(--c-maroon); }

/* ---------- 02 logo versions + anatomy ---------- */
.bk-lockup { display: grid; gap: 20px; padding-block: 28px; border-block-start: 1px solid var(--c-grey-200); }
.bk-lead + .bk-lockup { margin-block-start: 28px; }
.bk-lockup-info h3 { font-size: var(--fs-h3); margin-block-end: 6px; }
.bk-lockup-info p { color: var(--c-grey-700); }
.bk-dl > div { margin-block-start: 10px; }
.bk-dl dt { font-size: var(--fs-label); font-weight: 700; color: var(--c-grey-600); }
.bk-dl dd { margin: 0; font-size: var(--fs-small); }
@media (min-width: 1100px) { .bk-lockup { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; } }
.bk-versions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .bk-versions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bk-swatch { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-md); border: 1px solid var(--c-grey-200); background: var(--c-white); }
.bk-on-white { background: var(--c-maroon-700); border-color: var(--c-maroon-700); }
.bk-swatch img { block-size: auto; }
.bk-lockup-horizontal .bk-swatch img { inline-size: 84%; }
.bk-lockup-stacked .bk-swatch img { inline-size: 54%; }
.bk-lockup-mark .bk-swatch img { inline-size: 38%; }
.bk-version-name { font-size: var(--fs-small); font-weight: 600; margin-block: 8px 6px; }
.bk-files { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-files a {
  display: inline-flex; align-items: center; min-block-size: 32px; padding: 2px 10px; border-radius: var(--r-xs);
  border: 1px solid var(--c-grey-200); color: var(--c-maroon); font-size: var(--fs-label); font-weight: 600; text-decoration: none;
}
.bk-files a:hover { background: var(--c-maroon-50); border-color: var(--c-maroon-200); }
.bk-anatomy { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .bk-anatomy { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.bk-construct-fig { margin: 0; padding: clamp(16px, 3vw, 32px); border-radius: var(--r-lg); background: var(--c-offwhite); }
.bk-construct { inline-size: 100%; block-size: auto; direction: ltr; }
.bk-grid line { stroke: var(--c-grey-200); stroke-width: .8; }
.bk-axis line { stroke: var(--c-blue); stroke-width: .9; stroke-dasharray: 4 3; }
.bk-construct .mk-L, .bk-construct .mk-M, .bk-construct .mk-S { fill: var(--c-maroon); }
.bk-construct .mk-link { fill: var(--c-blue); }
.bk-construct .mk-core, .bk-construct .mk-stem, .bk-construct .mk-diamond { fill: var(--c-ink); }
.bk-dim path { fill: none; stroke: var(--c-grey-600); stroke-width: .8; }
.bk-dim text { fill: var(--c-grey-700); font-family: var(--font); font-size: 11px; font-weight: 600; text-anchor: middle; }
.bk-dim .bk-dim-v { text-anchor: start; }
.bk-legend { display: grid; gap: 10px; }
.bk-legend li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-small); }
.bk-chip { flex: none; inline-size: 16px; block-size: 16px; border-radius: 3px; background: var(--c-maroon); }
.bk-chip-M { inline-size: 11px; block-size: 11px; margin-inline: 2.5px; border-radius: 2px; }
.bk-chip-S { inline-size: 7px; block-size: 7px; margin-inline: 4.5px; border-radius: 1.5px; }
.bk-chip-link { block-size: 4px; border-radius: 2px; background: var(--c-blue); rotate: -45deg; }
.bk-chip-core { background: var(--c-ink); clip-path: polygon(0 30%, 50% 0, 100% 30%, 100% 100%, 0 100%); border-radius: 0; }
.bk-chip-stem { inline-size: 4px; margin-inline: 6px; background: var(--c-ink); border-radius: 0; }
.bk-chip-diamond { inline-size: 11px; block-size: 11px; margin-inline: 2.5px; background: var(--c-ink); rotate: 45deg; border-radius: 2px; }
.bk-chip-axis { block-size: 0; border-radius: 0; background: none; border-block-start: 2px dashed var(--c-blue); }

/* ---------- 03 clear space ---------- */
.bk-clear-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .bk-clear-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: stretch; } }
.bk-clear { display: grid; align-content: center; margin: 0; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--c-offwhite); }
.bk-clear svg { inline-size: 100%; block-size: auto; direction: ltr; }
.bk-clear-stacked svg { max-inline-size: 260px; margin-inline: auto; }
.bk-zone { fill: var(--c-maroon-50); stroke: var(--c-maroon); stroke-width: 1.2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.bk-inkbox { fill: none; stroke: var(--c-maroon-200); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.bk-xbox { fill: var(--c-maroon-100); stroke: var(--c-maroon-200); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bk-xlabel { fill: var(--c-maroon); font-family: var(--font); font-weight: 700; text-anchor: middle; }
.bk-clear figcaption { margin-block-start: 12px; font-size: var(--fs-small); color: var(--c-grey-700); text-align: center; }

/* ---------- 04 minimum sizes ---------- */
.bk-actual { padding: 24px; border-radius: var(--r-lg); border: 1px dashed var(--c-grey-400); }
.bk-actual-label { font-size: var(--fs-label); font-weight: 700; color: var(--c-grey-600); }
.bk-actual ul { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 40px; margin-block-start: 16px; }
.bk-actual li { display: grid; gap: 10px; justify-items: start; font-size: var(--fs-small); color: var(--c-grey-700); }
.bk-min-horizontal { inline-size: 160px; }
.bk-min-stacked { inline-size: 96px; }
.bk-min-mark { inline-size: 32px; }

/* ---------- 05 backgrounds ---------- */
.bk-bgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bk-bg { display: grid; align-content: space-between; gap: 14px; min-block-size: 164px; padding: 16px; border-radius: var(--r-md); border: 1px solid rgb(0 0 0 / .08); }
@media (min-width: 560px) { .bk-bg-wide { grid-column: span 2; } }
.bk-bg-marks { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.bk-bg-marks figure { display: grid; gap: 6px; justify-items: center; margin: 0; }
.bk-bg-marks img { inline-size: 56px; }
.bk-bg-marks figcaption { font-size: var(--fs-label); font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-bg-name { font-size: var(--fs-small); font-weight: 600; }
.bk-bg-note { font-size: var(--fs-label); }
.bk-bgs-never .bk-bg-name { display: grid; gap: 6px; justify-items: start; }

/* ---------- 06 misuse ---------- */
.bk-misuse { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px 16px; }
.bk-mis { display: grid; gap: 12px; align-content: start; }
.bk-mis p { font-size: var(--fs-small); }
.bk-dont { font-size: var(--fs-label); font-weight: 700; color: var(--c-error); margin-inline-end: 2px; }
.bk-mis-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: var(--r-md); background: var(--c-offwhite); overflow: hidden; }
.bk-mis-art > img { inline-size: 76%; }
.bk-x {
  position: absolute; inset-block-start: 10px; inset-inline-end: 10px; display: grid; place-items: center;
  inline-size: 28px; block-size: 28px; border-radius: 50%; background: var(--c-error); color: var(--c-white);
}
.bk-x .icon { inline-size: 16px; block-size: 16px; stroke-width: 2.6; }
.bk-mis-1 > img { filter: hue-rotate(150deg) saturate(1.6) brightness(1.5); }
.bk-mis-2 > img { transform: scale(1.28, .7); }
.bk-mis-3 > img { transform: scaleX(-1) rotate(-8deg); }
.bk-mis-row { display: flex; align-items: center; gap: 6%; inline-size: 80%; direction: ltr; }
.bk-mis-4 .bk-mis-row img:first-child { inline-size: 64%; }
.bk-mis-4 .bk-mis-row img:last-child { inline-size: 28%; }
.bk-mis-5 .bk-mis-row img { inline-size: 26%; }
.bk-mis-type { display: grid; gap: 2px; font-family: Georgia, "Times New Roman", serif; color: var(--c-maroon); font-size: 1.05rem; line-height: 1.3; }
.bk-mis-alone { font-family: var(--font); font-size: 1.6rem; font-weight: 700; }
.bk-mis-7 > img { filter: drop-shadow(3px 4px 2px rgb(0 0 0 / .45)) drop-shadow(0 0 8px rgb(255 190 0 / .9)); }
.bk-mis-8 { background: var(--c-white) url("../img/pattern/stitch-mixed.svg") repeat; background-size: auto 22px; }
.bk-mis-9 .bk-parts { inline-size: 38%; max-inline-size: none; }
.bk-mis-9 .bk-parts path { fill: var(--c-maroon); }
.bk-mis-redraw .mk-link { display: none; }
.bk-mis-redraw .mk-S, .bk-mis-redraw .mk-M { transform-box: fill-box; transform-origin: center; transform: scale(1.5); }
.bk-mis-badge {
  display: grid; place-items: center; inline-size: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--c-maroon);
  box-shadow: 0 0 0 4px var(--c-offwhite), 0 0 0 6px var(--c-maroon);
}
.bk-mis-badge img { inline-size: 58%; }
.bk-mis-11 > img { inline-size: 32%; filter: blur(1.6px); opacity: .85; }

/* ---------- 07 color ---------- */
.bk-brand-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.bk-color { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--c-grey-200); border-radius: var(--r-lg); }
.bk-color-chip { block-size: 112px; border-block-end: 1px solid rgb(0 0 0 / .06); }
.bk-color-info { padding: 16px 18px 18px; }
.bk-color-info h3 { font-size: 1.15rem; }
.bk-codes { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin-block: 10px; font-size: var(--fs-small); }
.bk-codes > div { display: contents; }
.bk-codes dt { align-self: center; font-size: var(--fs-label); font-weight: 700; color: var(--c-grey-600); }
.bk-codes dd { margin: 0; font-variant-numeric: tabular-nums; }
.bk-color-role { font-size: var(--fs-small); color: var(--c-grey-700); }
.bk-balance { display: flex; block-size: 40px; overflow: hidden; border: 1px solid var(--c-grey-200); border-radius: var(--r-md); }
.bk-balance span { display: block; }
.bk-bal-light { flex: 65; background: var(--c-offwhite); }
.bk-bal-maroon { flex: 20; background: var(--c-maroon); }
.bk-bal-ink { flex: 10; background: var(--c-ink); }
.bk-bal-blue { flex: 5; background: var(--c-blue); }
.bk-balance-key { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-small); }
.bk-balance-key li { display: flex; align-items: center; gap: 8px; }
.bk-chip-bal-light { background: var(--c-offwhite); border: 1px solid var(--c-grey-200); }
.bk-chip-bal-maroon { background: var(--c-maroon); } .bk-chip-bal-ink { background: var(--c-ink); } .bk-chip-bal-blue { background: var(--c-blue); }
.bk-ramp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border-radius: var(--r-md); border: 1px solid rgb(0 0 0 / .06); }
.bk-ramp + .bk-ramp { margin-block-start: 10px; }
@media (min-width: 720px) { .bk-ramp { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.bk-ramp li { display: grid; align-content: space-between; gap: 4px; min-block-size: 92px; padding: 10px 12px; color: var(--c-ink); font-size: var(--fs-label); }
.bk-ramp li.is-dark { color: var(--c-white); }
.bk-ramp-step { font-size: var(--fs-small); font-weight: 700; }
.bk-ramp .is-base .bk-ramp-step::after { content: " ●"; }
.bk-ramp-use { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 24px; font-size: var(--fs-small); }
.bk-ramp-use > div { display: flex; gap: 10px; }
.bk-ramp-use dt { min-inline-size: 32px; font-weight: 700; color: var(--c-maroon); font-variant-numeric: tabular-nums; }
.bk-ramp-use dd { margin: 0; color: var(--c-grey-700); }
.bk-neutrals { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 12px; }
.bk-neutrals li { display: grid; gap: 6px; align-content: start; font-size: var(--fs-label); }
.bk-neutral-chip { block-size: 56px; border-radius: var(--r-sm); border: 1px solid rgb(0 0 0 / .08); }
.bk-neutral-hex { font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-neutral-use { color: var(--c-grey-700); }
.bk-functional { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bk-functional li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 16px; border-radius: var(--r-md); font-size: var(--fs-small); }
.bk-functional li > bdi { flex-basis: 100%; font-size: var(--fs-label); color: var(--c-grey-700); }
.bk-func-dot { inline-size: 14px; block-size: 14px; border-radius: 50%; }
.bk-func-focus { border: 1px solid var(--c-grey-200); }
.bk-func-ring { inline-size: 24px; block-size: 24px; border-radius: 6px; border: 1px solid var(--c-grey-200); outline: 2px solid var(--c-blue); outline-offset: 2px; margin: 4px; }
.bk-sample {
  display: inline-grid; place-items: center; min-inline-size: 76px; padding: 6px 10px; border-radius: var(--r-sm);
  border: 1px solid rgb(0 0 0 / .08); font-size: 1rem; font-weight: 700; white-space: nowrap;
}
/* sample text is generated content: it demonstrates failing pairs on purpose, so it is decoration, not page text */
.bk-sample::before { content: "Aa \0623\0628"; }

/* ---------- 08 typography ---------- */
.bk-fonts { display: grid; gap: 16px; }
@media (min-width: 900px) { .bk-fonts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bk-font { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--c-offwhite); }
.bk-font h3 { font-size: var(--fs-h3); }
.bk-font-glyphs { font-size: clamp(3.6rem, 2.8rem + 4vw, 6rem); font-weight: 600; line-height: 1.15; color: var(--c-maroon); }
.bk-font-ar .bk-font-glyphs { line-height: 1.5; }
.bk-font-sample { font-size: 1.2rem; line-height: 1.6; }
.bk-font-ar .bk-font-sample { line-height: 1.8; }
.bk-weights { display: grid; gap: 8px; padding-block-start: 12px; border-block-start: 1px solid var(--c-grey-200); }
.bk-weights li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; font-size: 1.15rem; }
.bk-weights small { font-size: var(--fs-label); color: var(--c-grey-600); }
.bk-w-400 > span { font-weight: 400; } .bk-w-600 > span { font-weight: 600; } .bk-w-700 > span { font-weight: 700; }
.bk-scale { border-block-start: 1px solid var(--c-grey-200); }
.bk-scale li { display: grid; gap: 6px; padding-block: 16px; border-block-end: 1px solid var(--c-grey-200); }
@media (min-width: 900px) { .bk-scale li { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: baseline; } }
.bk-scale-meta { font-size: var(--fs-label); color: var(--c-grey-600); }
.bk-scale-meta strong { display: block; font-size: var(--fs-small); color: var(--c-ink); }
.bk-ts { overflow-wrap: anywhere; }
.bk-ts-display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 700; letter-spacing: -.02em; }
.bk-ts-h1 { font-size: var(--fs-h1); line-height: var(--lh-head); font-weight: 700; }
.bk-ts-h2 { font-size: var(--fs-h2); line-height: var(--lh-head); font-weight: 700; }
.bk-ts-h3 { font-size: var(--fs-h3); line-height: var(--lh-head); font-weight: 600; }
.bk-ts-lead { font-size: var(--fs-lead); }
.bk-ts-body { font-size: var(--fs-body); }
.bk-ts-small { font-size: var(--fs-small); }
.bk-ts-label { font-size: var(--fs-label); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.bk-ts-stat { font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); line-height: 1; font-weight: 700; color: var(--c-maroon); font-variant-numeric: lining-nums tabular-nums; }
:lang(ar) .bk-ts-display, :lang(ar) .bk-ts-label { letter-spacing: 0; text-transform: none; }
.bk-rules { display: grid; gap: 14px 32px; counter-reset: bk-rule; }
@media (min-width: 900px) { .bk-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bk-rules li { position: relative; padding-inline-start: 38px; font-size: var(--fs-small); counter-increment: bk-rule; }
.bk-rules li::before {
  content: counter(bk-rule, decimal-leading-zero); position: absolute; inset-inline-start: 0; inset-block-start: 0;
  font-weight: 700; color: var(--c-maroon); font-variant-numeric: tabular-nums;
}

/* ---------- 09 pattern ---------- */
.bk-module-art { block-size: 48px; border-radius: var(--r-sm); background-repeat: repeat-x; background-position: center; margin-block-end: 14px; }
.bk-module-stitch { background-image: url("../img/pattern/stitch-maroon.svg"); background-size: auto 30px; }
.bk-module-chain { background-image: url("../img/pattern/chain-blue.svg"); background-size: auto 40px; }
.bk-strips { display: grid; gap: 18px; }
.bk-strips li { display: grid; gap: 8px; }
.bk-strip { overflow: hidden; padding: 16px; border: 1px solid var(--c-grey-200); border-radius: var(--r-md); }
.bk-strip img { inline-size: 513px; max-inline-size: 100%; }
.bk-strips p { font-size: var(--fs-small); color: var(--c-grey-700); }
.bk-dodont h3 { display: flex; align-items: center; gap: 8px; margin-block-end: 12px; }
.bk-dodont h3 .icon { stroke-width: 2.6; }
.bk-do-t .icon { color: var(--c-success); }
.bk-dont-t .icon { color: var(--c-error); }
.bk-sec > .bk-dodont { margin-block-start: clamp(28px, 4vw, 44px); }

/* ---------- 10 icons + imagery ---------- */
.bk-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.bk-icons li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--c-grey-200); border-radius: var(--r-md); font-size: var(--fs-small); font-weight: 500; }
.bk-icons .icon { inline-size: 32px; block-size: 32px; color: var(--c-maroon); }
.bk-photo { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.bk-photo > div { padding: 18px; border-radius: var(--r-md); background: var(--c-offwhite); }
.bk-photo dt { font-weight: 700; margin-block-end: 4px; }
.bk-photo dd { margin: 0; font-size: var(--fs-small); color: var(--c-grey-700); }

/* ---------- 11 voice ---------- */
.bk-examples { display: grid; gap: 12px; }
.bk-examples li { display: grid; overflow: hidden; border: 1px solid var(--c-grey-200); border-radius: var(--r-md); }
@media (min-width: 720px) { .bk-examples li { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bk-examples p { padding: 14px 16px; font-size: var(--fs-small); max-inline-size: none; }
.bk-examples .bk-pass, .bk-examples .bk-fail { display: flex; inline-size: fit-content; margin-block-end: 6px; font-size: var(--fs-label); }
.bk-ex-do { background: var(--c-success-bg); }
.bk-ex-dont { background: var(--c-error-bg); }
.bk-ex-dont s { color: var(--c-grey-700); text-decoration-color: rgb(180 35 24 / .55); }

/* ---------- 12 downloads ---------- */
.bk-kit { display: grid; gap: 20px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); }
@media (min-width: 900px) { .bk-kit { grid-template-columns: minmax(0, 1fr) auto; } }
.bk-kit h3 { font-size: var(--fs-h3); margin-block-end: 6px; }
.bk-kit p { color: rgb(255 255 255 / .8); }
.bk-kit .btn { flex-wrap: wrap; }
.bk-size { font-size: .8125rem; font-weight: 500; opacity: .8; }
.bk-dl-groups { display: grid; gap: 28px 40px; }
@media (min-width: 900px) { .bk-dl-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bk-sec > .bk-dl-groups { margin-block-start: clamp(28px, 4vw, 44px); }
.bk-dl-group > * + * { margin-block-start: 10px; }
.bk-dl-list { border-block-start: 1px solid var(--c-grey-200); }
.bk-dl-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding-block: 10px; border-block-end: 1px solid var(--c-grey-200); font-size: var(--fs-small); }
.bk-dl-list li > a { display: inline-flex; align-items: center; gap: 8px; min-block-size: 32px; font-weight: 600; color: var(--c-maroon); text-decoration: none; }
.bk-dl-list li > a:hover { text-decoration: underline; }
.bk-dl-list .icon { inline-size: 18px; block-size: 18px; }
.bk-dl-meta { font-size: var(--fs-label); color: var(--c-grey-600); }
.bk-contact { font-weight: 600; }
.bk-contact a { color: var(--c-maroon); }

/* ---------- people cutouts (acquisition.com-style): real event photos, background removed, high-contrast grayscale,
   bottom edge faded so each figure rises out of a section edge. Never over text; decorative ones are aria-hidden.
   Files + sources: docs/photos.md ("Cutouts"). ---------- */
.cutout { display: block; max-inline-size: none; block-size: auto; pointer-events: none; user-select: none; }
/* problem: the trainer stands on the section's bottom edge, inline-end, beside the turn statement */
.problem.has-cutout { overflow: hidden; padding-block-end: 0; }
.cutout-problem { inline-size: auto; block-size: 230px; margin-block-start: 28px; margin-inline: auto var(--gutter); }
[dir="ltr"] .cutout-problem { scale: -1 1; } /* he faces the copy in both directions */
@media (min-width: 900px) {
  .problem.has-cutout { --cut-h: clamp(270px, 25vw, 360px); padding-block-end: var(--section-end); }
  .cutout-problem {
    position: absolute; inset-block-end: 0; inset-inline-end: max(var(--gutter), calc((100% - var(--wrap)) / 2));
    block-size: var(--cut-h); margin: 0;
  }
  .has-cutout .problem-turn { max-inline-size: min(22ch, calc(100% - var(--cut-h) * .9 - 32px)); }
}
/* final band (home, with the form): a participant at work under the copy, standing on the band's bottom edge */
.cutout-final { display: none; }
@media (min-width: 1024px) {
  .final-grid.has-cutout { align-items: stretch; }
  .final-grid.has-cutout .final-copy { position: static; display: flex; flex-direction: column; }
  .final-grid.has-cutout .consult-card { align-self: start; }
  .cutout-final {
    display: block; align-self: center; inline-size: auto; block-size: clamp(280px, 24vw, 360px); object-fit: contain;
    margin-block: auto calc(-1 * var(--section)); padding-block-start: 32px; box-sizing: content-box;
  }
  [dir="rtl"] .cutout-final { scale: -1 1; } /* faces the form in both directions */
}

/* ---------- from our sessions (home): dark maroon band, rounded pixel-square tiles, group cutout behind them ---------- */
.sessions.on-maroon { position: relative; overflow: hidden; background: var(--c-maroon-800); }
.sessions-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sessions-copy { max-inline-size: 620px; padding-block-end: clamp(24px, 4vw, 44px); }
.sessions-copy .lead { margin-block-start: .8rem; }
.cutout-team { display: none; }
.sessions-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
.session { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: clamp(14px, 2vw, 26px); background: var(--c-maroon-700); }
.session img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.session:hover img { scale: 1.045; }
.s-room { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.s-room::after { /* the logo's pixel square, stamped on the large tile */
  content: ""; position: absolute; inset-block-start: clamp(12px, 1.6vw, 20px); inset-inline-start: clamp(12px, 1.6vw, 20px);
  inline-size: clamp(12px, 1.4vw, 18px); block-size: clamp(12px, 1.4vw, 18px); border-radius: 24%; background: var(--c-maroon);
  box-shadow: 0 0 0 3px rgb(255 255 255 / .9);
}
@media (min-width: 900px) {
  .cutout-team { display: block; flex: none; position: relative; z-index: 0; inline-size: clamp(300px, 30vw, 400px); margin-block-end: -40px; margin-inline-end: clamp(0px, 2vw, 32px); }
}
@media (min-width: 1024px) {
  .sessions-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s-room { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; border-radius: clamp(20px, 2.6vw, 36px); }
}

/* ---------- home area index: the area's photo as a rounded pixel-square thumbnail, its icon as a small badge ---------- */
.area-icon.has-thumb { position: relative; overflow: hidden; inline-size: 56px; block-size: 56px; border-radius: 24%; background: var(--c-grey-100); }
.area-thumb { inline-size: 100%; block-size: 100%; object-fit: cover; transition: scale .4s var(--ease); }
.area-icon.has-thumb .icon {
  position: absolute; inset-block-end: 4px; inset-inline-end: 4px; inline-size: 22px; block-size: 22px; padding: 3px;
  border-radius: 6px; background: var(--c-maroon); color: var(--c-white);
}
.area-card:hover .area-icon.has-thumb { background: var(--c-grey-100); }
.area-card:hover .area-thumb { scale: 1.08; }

/* =====================================================================================================================
   COURSE PHOTO GALLERIES (templates/pages/gallery*.html; built only when content/galleries.json has courses):
   index cards, course grid, the lightbox <dialog> driven by assets/js/gallery.js, the home "sessions" link.
   ===================================================================================================================== */
.sessions-link { min-block-size: 44px; margin-block-start: .9rem; color: var(--c-white); }
.gal-i-prev { scale: -1 1; } /* the arrow glyph turned to point back: left in LTR, right in RTL */
[dir="rtl"] .gal-i-prev { scale: 1 1; }
.gal-back { min-block-size: 44px; margin-block-end: 12px; font-size: var(--fs-small); }
.gal-back .gal-i-prev { transition: translate .25s var(--ease); }
.gal-back:hover .gal-i-prev { translate: -3px 0; }
[dir="rtl"] .gal-back:hover .gal-i-prev { translate: 3px 0; }
.gal-hero-course h1 { max-inline-size: 28ch; font-size: var(--fs-h2); } /* course names can run long */
.gal-meta { font-size: var(--fs-lead); font-weight: 600; color: var(--c-grey-700); }
.gal-area { display: flex; flex-wrap: wrap; align-items: center; column-gap: .5em; margin-block-start: 4px; color: var(--c-grey-700); }
.gal-area .link-arrow { min-block-size: 44px; }
.gal-hero .cta-row { margin-block-start: 20px; }

/* index: one card per course (cover, title = stretched link, date + count) */
.gal-index { padding-block-start: 16px; }
.gal-cards { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gal-card {
  position: relative; display: flex; flex-direction: column; border: 1px solid var(--c-grey-100); border-radius: var(--r-lg);
  background: var(--c-white); box-shadow: var(--shadow-1); transition: box-shadow .25s, transform .25s var(--ease);
}
.gal-card-img {
  inline-size: 100%; block-size: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--c-grey-100);
  border-start-start-radius: calc(var(--r-lg) - 1px); border-start-end-radius: calc(var(--r-lg) - 1px);
}
.gal-card-body { display: grid; gap: 6px; padding: 18px 20px 22px; }
.gal-card-title { font-size: var(--fs-h3); }
.gal-card-title a { text-decoration: none; transition: color .2s; }
.gal-card-title a::after { content: ""; position: absolute; inset: -1px; border-radius: var(--r-lg); }
.gal-card-title a:focus-visible { outline: none; }
.gal-card-title a:focus-visible::after { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.gal-card:hover { box-shadow: var(--shadow-2); }
.gal-card:hover .gal-card-title a { color: var(--c-maroon); }
.motion-ok .gal-card:hover { transform: translateY(-2px); }
.gal-card-meta { font-size: var(--fs-small); color: var(--c-grey-600); }

/* course page: the thumbnail grid (2 / 3 / 4 columns), each thumb a link to the full image */
.gal-photos { padding-block-start: 8px; }
.gal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(6px, 1vw, 12px); }
@media (min-width: 640px) { .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gal-thumb { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: clamp(8px, 1.2vw, 14px); background: var(--c-grey-100); }
.gal-thumb img { inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 35%; transition: scale .5s var(--ease); }
.motion-ok .gal-thumb:hover img { scale: 1.04; }
.gal-thumb:focus-visible { outline-offset: 3px; }
.gal-removal { margin-block-start: 28px; font-size: var(--fs-small); color: var(--c-grey-600); }
.gal-removal a { color: var(--c-maroon); font-weight: 600; }

/* lightbox: full-screen native <dialog> (inert page + Esc from showModal; focus trap, keys, swipe in gallery.js) */
html.gal-open { overflow: hidden; }
.gal-lb {
  inline-size: 100%; block-size: 100%; block-size: 100dvh; max-inline-size: 100%; max-block-size: 100%; margin: 0; padding: 0;
  border: 0; background: rgb(28 0 1 / .97); color: var(--c-white); overflow: hidden;
}
.gal-lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.gal-lb::backdrop { background: rgb(28 0 1 / .85); }
.motion-ok .gal-lb[open] { animation: gal-in .22s var(--ease); }
@keyframes gal-in { from { opacity: 0; } }
.gal-lb :focus-visible { outline-color: var(--c-white); }
.gal-lb-bar {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) clamp(10px, 2vw, 20px) 10px;
}
.gal-lb-count { padding-inline: 6px; font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; color: rgb(255 255 255 / .85); }
.gal-lb-actions { display: flex; align-items: center; gap: 6px; }
.gal-lb-btn, .gal-lb-nav {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-block-size: 44px; min-inline-size: 44px;
  padding: 0 12px; border: 1px solid rgb(255 255 255 / .22); border-radius: var(--r-md); background: rgb(255 255 255 / .06);
  color: var(--c-white); font-weight: 600; font-size: .9375rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.gal-lb-btn:hover, .gal-lb-nav:hover { background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .55); }
.gal-lb-btn .icon { inline-size: 20px; block-size: 20px; }
.gal-lb-close { padding: 0; }
@media (max-width: 559.98px) { /* icon-only buttons on phones; the label stays for screen readers */
  .gal-lb-btn { padding: 0; }
  .gal-lb-txt { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.gal-share-wrap { position: relative; }
.gal-share {
  position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 3; display: grid; gap: 2px;
  min-inline-size: 210px; padding: 6px; border-radius: var(--r-lg); background: var(--c-white); color: var(--c-ink);
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / .55);
}
.gal-share a, .gal-share button {
  display: flex; align-items: center; gap: 10px; inline-size: 100%; min-block-size: 44px; padding: 0 12px; border: 0;
  border-radius: var(--r-md); background: none; color: inherit; font-weight: 600; font-size: .9375rem; text-align: start;
  text-decoration: none; cursor: pointer;
}
.gal-share a:hover, .gal-share button:hover { background: var(--c-maroon-50); color: var(--c-maroon); }
.gal-share .icon { color: var(--c-maroon); }
.gal-lb .gal-share :focus-visible { outline-color: var(--c-focus); outline-offset: -2px; }
.gal-lb-stage {
  position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-block-size: 0;
  padding-inline: clamp(8px, 7vw, 88px); touch-action: pan-y pinch-zoom; user-select: none;
}
.gal-lb-img {
  inline-size: auto; block-size: auto; max-inline-size: 100%; max-block-size: 100%; border-radius: var(--r-sm);
  -webkit-user-drag: none; transition: opacity .2s var(--ease), translate .28s var(--ease);
}
.gal-lb-img.is-loading { opacity: .35; }
.gal-lb-state {
  position: absolute; inset-block-end: 16px; inset-inline: 0; inline-size: max-content; max-inline-size: 90%; margin-inline: auto;
  padding: 8px 14px; border-radius: var(--r-md); background: rgb(0 0 0 / .6); font-size: var(--fs-small);
}
.gal-lb-nav { position: absolute; inset-block-start: 50%; inline-size: 48px; block-size: 48px; padding: 0; translate: 0 -50%; background: rgb(28 0 1 / .6); }
.gal-lb-nav .icon { inline-size: 24px; block-size: 24px; }
.gal-lb-prev { inset-inline-start: clamp(4px, 1.5vw, 20px); }
.gal-lb-next { inset-inline-end: clamp(4px, 1.5vw, 20px); }
.gal-lb-foot {
  padding: 10px clamp(12px, 2vw, 20px) max(12px, env(safe-area-inset-bottom)); text-align: center; font-size: var(--fs-label);
  color: rgb(255 255 255 / .72);
}
.gal-lb-foot a { color: var(--c-white); font-weight: 600; }
.gal-toast {
  position: absolute; inset-block-start: 68px; inset-inline: 0; z-index: 4; inline-size: max-content; max-inline-size: 90%;
  margin-inline: auto; padding: 8px 16px; border-radius: var(--r-md); background: var(--c-white); color: var(--c-ink);
  font-size: var(--fs-small); font-weight: 600; box-shadow: var(--shadow-2); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.gal-toast.is-on { opacity: 1; }
.gal-copy-buf { position: fixed; inset-block-start: 0; inset-inline-start: 0; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
