/*
Theme Name: Meridian Advisory
Theme URI: https://meridianadvisory.ai
Author: Meridian Advisory LLC
Description: Institutional Learning Systems - AI Governance - International Education.
Version: 7.1.3
Text Domain: meridian
*/
/* =========================================================
   1. TOKENS
   ========================================================= */

:root {
  /* Brand colors */
  --dark: #002244;
  --mid: #1d4b8f;
  --blue: #1870b5;
  --sky: #41b7ee;
  --sky-text: #0077b6;
  --link: #005ea8;
  --danger: #b91c1c;

  /* Visual redesign v8 tokens */
  --gold:                #C49A3C;
  --gold-light:          #E8C96A;
  --gold-muted:          rgba(196, 154, 60, .15);
  --dark-anchor:         #001830;
  --dark-anchor-surface: #0d2d52;

  /* Hero / dark-section colors */
  --hero-text: #ffffff;
  --hero-text-strong: #ffffff;
  --hero-text-soft: rgba(255, 255, 255, .96);
  --hero-text-muted: rgba(255, 255, 255, .9);
  --surface-dark: #062b4d;
  --surface-dark-strong: #032645;
  --surface-dark-deep: #06223d;
  --footer-link-color: rgba(255, 255, 255, .9);
  --footer-link-muted: rgba(255, 255, 255, .78);

  /* Neutrals */
  --white: #ffffff;
  --off: #f7f9fb;
  --light: #e7edf3;
  --border: #bdccdb;
  --border-light: #dae3eb;
  --page-bg: #d7e1ea;
  --lang-active-bg: #e9f4fb;

  /* Text */
  --text: #142033;
  --muted: #334b66;
  --subtle: #455a6f;

  /* Type — font stack tokens */
  --sans:            "Inter", Arial, sans-serif;
  --display:         "Playfair Display", Georgia, serif;
  --arabic:          "IBM Plex Sans Arabic", "Noto Sans Arabic", Arial, sans-serif;
  --arabic-display:  var(--arabic);

  /* Semantic typography tokens (spec 2026-05-29) */
  --font-display:          var(--display);
  --font-body:             var(--sans);
  --font-hero:             var(--font-body);
  --size-h1:               2.45rem;
  --size-h2:               1.95rem;
  --size-h3:               1.25rem;
  --size-body:             1.0625rem;
  --size-small:            0.875rem;
  --size-eyebrow:          0.75rem;
  --lh-h1:                 1.14;
  --lh-h2:                 1.22;
  --lh-h3:                 1.45;
  --lh-body:               1.7;
  --lh-small:              1.5;
  --ls-h1:                 -0.02em;
  --ls-eyebrow:            0.15em;
  --text-transform-eyebrow: uppercase;

  /* English type scale (responsive wrappers around semantic tokens) */
  --fs-h1: var(--size-h1);
  --fs-h2: var(--size-h2);
  --fs-h3: 1.16rem;
  --fs-card-title: 1.05rem;
  --fs-body: var(--size-body);
  --fs-small: .88rem;
  --fs-label: var(--size-eyebrow);
  --fs-section-title: 1.9rem;
  --lh-section-title: 1.22;
  --fs-cta-title: 1.95rem;
  --fs-card-body: clamp(.95rem, 1vw, 1rem);
  --fs-proof-label: clamp(.88rem, .95vw, .98rem);
  --fs-craft-letter: clamp(1.45rem, 1.85vw, 1.75rem);
  --fs-craft-title: clamp(1.05rem, 1.15vw, 1.16rem);
  --fs-craft-body: clamp(.9rem, .95vw, .96rem);

  /* Hero type scale */
  --fs-hero-title: 2.35rem;
  --fs-hero-title-interior: 2.05rem;
  --fs-hero-subtitle: 1.12rem;
  --fs-hero-kicker: clamp(.76rem, .84vw, .9rem);

  /* Arabic type scale */
  --fs-ar-h1: 2.08rem;
  --fs-ar-h2: 1.72rem;
  --fs-ar-h3: 1.24rem;
  --fs-ar-body: 1.1rem;
  --fs-ar-label: 1rem;
  --fs-ar-kicker: clamp(.82rem, .95vw, .94rem);
  --fs-ar-hero-title: 2.16rem;
  --fs-ar-hero-title-interior: 1.9rem;
  --fs-ar-hero-subtitle: 1.1rem;

  /* Spacing */
  --space-2xs: .25rem;
  --space-xs: .5rem;
  --space-sm: .75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.25rem;
  --space-2xl: 4.25rem;
  --space-card-gap: 1.5rem;
  --space-wrapper-gap: 3rem;
  --space-subsection: var(--space-xl);
  --space-grid-bottom: var(--space-subsection);
  --space-grid-action-gap: 1.4rem;

  /* Section rhythm */
  --section-y: clamp(3rem, 5vw, 4.2rem);
  --section-y-compact: clamp(2.45rem, 4vw, 3.35rem);
  --section-y-mobile: 2.45rem;
  --cta-button-min-width: clamp(13.5rem, 24vw, 17.5rem);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Effects */
  --shadow-site: 0 10px 34px rgba(0, 34, 68, .08); /* Retained: used by .site container */

  /* Layout */
  --site-width: 1160px;
  --wide: 1080px;
  --prose: 760px;
  --reading-measure: 65ch;
  --hero-prose: 64ch;
  --hero-prose-ar: 58ch;
  --hero-title-measure: min(100%, 24ch);
  --hero-title-measure-ar: min(100%, 21em);
  --hero-title-measure-narrow: min(100%, 18ch);
  --hero-title-measure-ar-narrow: min(100%, 14em);

  /* Header */
  --header-height: 76px;
  --header-logo-width: 325px;
  --header-logo-width-tablet: 220px;
  --header-logo-width-mobile: 190px;
  --header-padding-x: 1.75rem;
  --card-accent-border-width: 3px;
}

html[lang^="fr"],
html.lang-fr,
body.lang-fr {
  --fs-hero-title: 2.2rem;
  --fs-hero-title-interior: 1.9rem;
  --hero-title-measure: min(100%, 26ch);
}

@media (max-width: 680px) {
  :root {
    --size-h1: 2.05rem;
    --size-h2: 1.65rem;
    --size-body: 1rem;
    --fs-section-title: 1.58rem;
    --fs-cta-title: 1.68rem;
    --fs-hero-title: 2rem;
    --fs-hero-title-interior: 1.76rem;
    --fs-hero-subtitle: 1.04rem;
    --fs-ar-h1: 1.86rem;
    --fs-ar-h2: 1.56rem;
    --fs-ar-hero-title: 1.94rem;
    --fs-ar-hero-title-interior: 1.72rem;
    --fs-ar-hero-subtitle: 1.04rem;
  }

  html[lang^="fr"],
  html.lang-fr,
  body.lang-fr {
    --fs-hero-title: 1.9rem;
    --fs-hero-title-interior: 1.68rem;
  }
}

/* =========================================================
   2. BASE
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--text);
  background: var(--page-bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Media should never break the site width. */

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Links */

a {
  color: var(--link);
  text-underline-offset: .16em;
  text-decoration-thickness: .08em;
}

a:hover,
a:focus {
  color: var(--dark);
}

/* Form elements */

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* WordPress / theme shell reset */

body > .site,
body > .wp-site-blocks {
  margin-top: 0;
  margin-block-start: 0;
}

/* Accessibility helper */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;

  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  top: 1rem;
  inset-inline-start: 1rem;
  z-index: 10050;

  width: auto;
  height: auto;
  padding: .6rem 1rem;
  margin: 0;

  overflow: visible;
  clip: auto;
  white-space: normal;

  background: var(--dark);
  color: var(--white);
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

/* =========================================================
   3. TYPOGRAPHY
   ========================================================= */

h1,
h2 {
  font-family: var(--font-hero);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  margin: 0 0 1rem;
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  margin: 0 0 .7rem;
}

h3 {
  margin: 0 0 .42rem;
  font-family: var(--font-body);
  font-size: var(--size-h3);
  font-weight: 700;
  line-height: var(--lh-h3);
  color: var(--dark);
}

p {
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 400;
  margin: 0 0 .95rem;
  color: var(--muted);
  line-height: var(--lh-body);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--dark);
  font-weight: 700;
}

/* Eyebrow / section labels */

.pretitle {
  display: block;
  margin-bottom: .65rem;

  font-family: var(--font-body);
  font-size: var(--size-eyebrow);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: var(--ls-eyebrow);
  text-transform: var(--text-transform-eyebrow);

  color: var(--subtle);
}

/* ── Arabic typography overrides (:lang(ar)) ──────────────────────────────
   Applied when <html lang="ar"> — set by meridian_i18n_filter_frontend_locale.
   All letter-spacing set to 0: spacing breaks Arabic cursive connections.
   Line-heights increased: Arabic script clips at Latin line-heights.
   font-weight 400 body: corrects bold-flattening regression from prior build.
   text-transform none on eyebrow: Arabic has no uppercase.
──────────────────────────────────────────────────────────────────────────── */

:lang(ar) {
  --font-display:           var(--arabic);
  --font-body:              var(--arabic);
  --size-h1:                var(--fs-ar-h1);
  --size-h2:                var(--fs-ar-h2);
  --size-h3:                var(--fs-ar-h3);
  --size-body:              var(--fs-ar-body);
  --size-small:             0.975rem;
  --lh-h1:                  1.4;
  --lh-h2:                  1.45;
  --lh-h3:                  1.55;
  --lh-body:                1.85;
  --lh-small:               1.7;
  --ls-h1:                  0;
  --ls-eyebrow:             0;
  --text-transform-eyebrow: none;
}

:lang(ar) h1,
:lang(ar) h2 {
  font-family: var(--arabic);
  font-weight: 700;
  letter-spacing: 0;
}

:lang(ar) h3 {
  font-family: var(--arabic);
  letter-spacing: 0;
}

:lang(ar) p {
  font-family: var(--arabic);
  font-size: var(--size-body);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: 0;
}

:lang(ar) .pretitle {
  font-family: var(--arabic);
  letter-spacing: 0;
  text-transform: none;
}

.pretitle--blue {
  color: var(--blue);
}

.pretitle--sky {
  color: var(--sky-text);
}

.on-dark .pretitle--sky,
.section--mid .pretitle--sky,
.section--dark .pretitle--sky,
.cta-band .pretitle--sky,
.site-footer .pretitle--sky {
  color: var(--sky);
}

.pretitle--light {
  color: var(--hero-text-muted);
}

/* Width utilities */

.mw-prose {
  max-width: min(var(--reading-measure), 100%);
}

.mw-table {
  max-width: 820px;
}

.mw-steps {
  max-width: 600px;
}

/* Text on dark sections */

.on-dark,
.section--mid,
.section--dark,
.cta-band,
.site-footer {
  color: var(--white);
}

.on-dark h1,
.on-dark h2,
.on-dark h3,
.section--mid h1,
.section--mid h2,
.section--mid h3,
.section--dark h1,
.section--dark h2,
.section--dark h3,
.cta-band h2 {
  color: var(--white);
}

.on-dark p,
.section--mid p,
.section--dark p,
.cta-band p {
  color: var(--hero-text-soft);
}

/* Text-heavy links */

.prose-content a,
.card p a,
.asset-body a,
.text-card-body a {
  text-decoration: underline;
}
/* =========================================================
   4. SITE SHELL
   ========================================================= */

.site {
  width: min(100%, var(--site-width));
  margin: 0 auto;

  background: var(--white);
  box-shadow: var(--shadow-site);
}

.site-content {
  background: var(--white);
}

/* Skip link */

.skip-link {
  position: fixed;
  top: -100%;
  left: 0;
  z-index: 10050;

  padding: .55rem 1.25rem;

  background: var(--dark);
  color: var(--white);

  font-size: .875rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}
/* =========================================================
   5. HEADER / NAV
   Single source of truth.

   English / French desktop:
   [Logo] [Menu] ........ [Language] [CTA]

   Arabic desktop:
   [CTA] [Language] ........ [Menu] [Logo]

   Mobile English / French:
   [Logo] ........ [Menu button]

   Mobile Arabic:
   [Menu button] ........ [Logo]
   ========================================================= */


/* ---------- Header shell ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10000;

  display: grid;
  grid-template-columns: var(--header-logo-width) minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;

  min-height: var(--header-height);
  padding: 6px var(--header-padding-x) 10px;

  background: var(--dark-anchor-surface);
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 1px 8px rgba(196, 154, 60, .32);
  overflow: visible;
}

.admin-bar .site-nav {
  top: 32px;
}

/* Home: nav same as all other pages — gold separator divides nav from hero */

/* Hamburger bars white on dark nav */
.menu-toggle .menu-bar {
  background: #ffffff;
}


/* ---------- Logo ---------- */

.nav-logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  width: var(--header-logo-width);
  min-width: var(--header-logo-width);
  max-width: var(--header-logo-width);

  color: inherit;
  text-decoration: none;
  overflow: visible;
}

.nav-logo-tagline {
  display: block;
  max-width: 100%;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .52);
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
  margin-block-start: 3px;
}

.footer-logo-tagline {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
  margin-block-start: 5px;
  margin-block-end: 0.65rem;
}

html[dir="rtl"] .nav-logo-tagline,
html.lang-ar .nav-logo-tagline {
  font-family: var(--arabic);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  overflow: visible;
}

html[dir="rtl"] .footer-logo-tagline,
html.lang-ar .footer-logo-tagline {
  font-family: var(--arabic);
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
}

.nav-logo svg,
.nav-logo-svg {
  display: block;
  width: var(--header-logo-width);
  min-width: var(--header-logo-width);
  max-width: var(--header-logo-width);
  height: auto;
  overflow: visible;
}


/* ---------- Navigation cluster ---------- */

.site-nav .nav-links {
  grid-column: 2;
  grid-row: 1;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.15rem;

  min-width: 0;
  margin: 0;
  padding: 0;

  direction: ltr;
}


/* ---------- Standard menu links ---------- */

.site-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;

  min-height: 2.45rem;
  padding: .45rem .08rem;
  border-bottom: 0;

  font-family: var(--sans);
  font-size: var(--size-small);
  font-weight: 800;
  line-height: 1.25;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  white-space: nowrap;

  transition:
    color .15s ease,
    background-color .15s ease;
}

.site-nav .nav-link::after {
  content: "";
  position: absolute;
  inset-inline: .08rem;
  bottom: .22rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.55);
  transform-origin: center;
  transition:
    opacity .15s ease,
    transform .15s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
  color: var(--white);
  text-decoration: none;
}

.site-nav .nav-link:hover::after,
.site-nav .nav-link:focus-visible::after,
.site-nav .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav .nav-link.active {
  color: var(--white);
}

.site-nav .nav-link--assessment {
  flex: 0 1 auto;
  max-width: 8.75rem;
  min-height: 2.35rem;
  padding: .42rem .78rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  font-size: .78rem;
  line-height: 1.12;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
}

.site-nav .nav-link--assessment::after {
  display: none;
}

.site-nav .nav-link--assessment:hover,
.site-nav .nav-link--assessment:focus-visible,
.site-nav .nav-link--assessment.active {
  border-color: rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .12);
  color: var(--white);
}


/* English / French: push language selector and CTA to the far right. */

.site-nav .nav-links .lang-wrap {
  margin-inline-start: auto;
}

.site-nav .nav-links .nav-cta {
  margin-inline-start: 0;
}


/* ---------- Language selector ---------- */

.lang-wrap {
  position: relative;
  z-index: 10001;
  flex: 0 0 auto;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: .42rem;

  min-height: 2.25rem;
  padding: .38rem .72rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill);
  background: transparent;

  font-family: var(--arabic);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;

  cursor: pointer;
  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease,
    box-shadow .15s ease;
}

.lang-trigger:hover,
.lang-wrap:hover .lang-trigger,
.lang-wrap.is-open .lang-trigger {
  border-color: rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .82);
  box-shadow: none;
}

.lang-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: currentColor;
}

.lang-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-trigger .caret {
  font-size: .58rem;
  line-height: 1;
  transition: transform .2s ease;
}

.lang-wrap.is-open .lang-trigger .caret {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  z-index: 10002;

  min-width: 11rem;
  padding: .35rem;

  background: var(--white);
  border: 1px solid rgba(0, 34, 68, .14);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 38px rgba(0, 34, 68, .14);

  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  transition:
    opacity .15s ease,
    visibility .15s ease;
}

.lang-wrap.is-open .lang-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;

  padding: .58rem .65rem;
  border: 1px solid transparent;
  border-radius: calc(var(--radius-sm) - 2px);

  background: transparent;
  color: var(--dark);

  font-family: var(--arabic);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;

  cursor: pointer;
  transition:
    color .12s ease,
    background-color .12s ease,
    border-color .12s ease;
}

.lang-option:hover,
.lang-option:focus {
  background: rgba(0, 113, 188, .08);
  border-color: rgba(0, 113, 188, .12);
  color: var(--blue);
  text-decoration: none;
}

.lang-option:focus-visible {
  outline: 2px solid var(--sky-text);
  outline-offset: -2px;
}

.lang-option.active {
  background: rgba(0, 113, 188, .09);
  border-color: rgba(0, 113, 188, .14);
  color: var(--dark);
}

.lang-option.active::after {
  content: "✓";
  color: var(--blue);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 900;
}

.lang-current[lang="ar"],
.lang-option[lang="ar"] {
  font-family: var(--arabic);
  font-size: .94rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
}


/* ---------- Header CTA ---------- */

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;

  min-height: 2.55rem;
  padding: .6rem 1.22rem;
  white-space: nowrap;
  border: 2px solid #1565FF;
  border-radius: var(--radius-pill);

  background: #1565FF;
  color: var(--white);

  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 8px 18px rgba(0, 34, 68, .14);
  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: #0F52CC;
  border-color: #0F52CC;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 64, 122, .18);
  transform: translateY(-1px);
}

.site-nav .nav-cta.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}


/* ---------- Mobile menu button ---------- */

.menu-toggle {
  display: none;

  width: 2.2rem;
  height: 2.2rem;
  padding: .25rem;
  border: 0;
  background: transparent;

  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition:
    transform .2s ease,
    opacity .2s ease;
}


/* ---------- Arabic / RTL desktop ---------- */

@media (min-width: 1081px) {
  html[dir="rtl"] .site-nav,
  html.lang-ar .site-nav {
    --header-logo-width: 285px;

    grid-template-columns: minmax(0, 1fr) var(--header-logo-width);
    direction: ltr;
    padding-inline: var(--header-padding-x);
    padding-block-end: 14px;
  }

  html[dir="rtl"] .nav-logo,
  html.lang-ar .nav-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    justify-content: flex-end;
    margin: 0;
  }

  html[dir="rtl"] .site-nav .nav-links,
  html.lang-ar .site-nav .nav-links {
    grid-column: 1;
    grid-row: 1;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.05rem;

    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;

    direction: ltr;
    text-align: right;
  }

  /*
     Arabic desktop visual order:
     [CTA] [Language] ........ [Menu links] [Logo]
  */

  html[dir="rtl"] .site-nav .nav-cta,
  html.lang-ar .site-nav .nav-cta {
    order: 1;
    margin: 0;
    font-family: var(--arabic);
    font-size: 1rem;
    line-height: 1.45;
    letter-spacing: 0;
    min-height: 2.9rem;
    padding: .62rem 1.15rem;
  }

  html[dir="rtl"] .site-nav .lang-wrap,
  html.lang-ar .site-nav .lang-wrap {
    order: 2;
    margin-inline-start: 0;
    margin-inline-end: auto;
  }

  html[dir="rtl"] .site-nav .nav-link,
  html.lang-ar .site-nav .nav-link {
    order: 3;

    direction: rtl;
    font-family: var(--arabic);
    font-size: 1rem;
    line-height: 1.45;
    letter-spacing: 0;
    text-align: right;
  }

  html[dir="rtl"] .lang-trigger,
  html[dir="rtl"] .lang-option,
  html.lang-ar .lang-trigger,
  html.lang-ar .lang-option {
    font-family: var(--arabic);
    font-size: 1rem;
    line-height: 1.45;
    letter-spacing: 0;
  }

  html[dir="rtl"] .lang-dropdown,
  html.lang-ar .lang-dropdown {
    right: 0;
    left: auto;
    text-align: right;
  }

  html[dir="rtl"] .lang-option,
  html.lang-ar .lang-option {
    text-align: right;
  }
}


/* ---------- Header compression before tablet ---------- */

@media (min-width: 1081px) and (max-width: 1160px) {
  .site-nav {
    --header-logo-width: 235px;
    gap: .75rem;
    padding-inline: 1rem;
  }

  .site-nav .nav-links {
    gap: .55rem;
  }

  .site-nav .nav-link,
  .lang-trigger,
  .nav-cta {
    font-size: .76rem;
  }

  html[dir="rtl"] .site-nav .nav-link,
  html[dir="rtl"] .lang-trigger,
  html[dir="rtl"] .nav-cta,
  html.lang-ar .site-nav .nav-link,
  html.lang-ar .lang-trigger,
  html.lang-ar .nav-cta {
    font-size: .94rem;
  }

  html[dir="rtl"] .site-nav,
  html.lang-ar .site-nav {
    --header-logo-width: 250px;
  }

  .site-nav .nav-cta {
    padding-inline: .72rem;
  }

  html[dir="rtl"] .site-nav .nav-cta,
  html.lang-ar .site-nav .nav-cta {
    padding-inline: .95rem;
  }

  html.lang-fr .site-nav .nav-links {
    gap: .42rem;
  }

  html.lang-fr .site-nav .nav-cta {
    padding-inline: .55rem;
  }
}


/* ---------- Tablet / mobile header ---------- */

@media (max-width: 1080px) {
  .site-nav {
    --header-logo-width: var(--header-logo-width-tablet);

    grid-template-columns: var(--header-logo-width) minmax(0, 1fr);
    min-height: 72px;
    padding-inline: 1.15rem;
  }

  .nav-logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .menu-toggle {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .site-nav .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: .15rem;

    padding: .9rem 1.15rem 1.05rem;
    background: var(--dark-anchor-surface);
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 16px 32px rgba(0, 24, 48, .22);

    direction: ltr;
  }

  .site-nav .nav-links.nav-open {
    display: flex;
  }

  .site-nav .nav-link {
    width: 100%;
    max-width: none;
    min-height: 44px;
    padding: .7rem .15rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: .95rem;
  }

  .site-nav .nav-link--assessment {
    border-radius: var(--radius-sm);
    justify-content: center;
    margin-top: .35rem;
    padding: .72rem .85rem;
  }

  .site-nav .nav-link::after {
    inset-inline: .15rem;
    bottom: .35rem;
  }

  .lang-wrap {
    width: 100%;
    margin-inline-start: 0;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .lang-trigger {
    width: 100%;
    justify-content: space-between;
    font-size: .95rem;
  }

  .lang-dropdown {
    position: relative;
    top: auto;
    right: auto;
    left: auto;

    min-width: 100%;
    margin-top: .45rem;

    border-radius: var(--radius-sm);
    box-shadow: none;
  }

  .site-nav .nav-cta {
    width: 100%;
    margin-top: .75rem;
    margin-inline-start: 0;
    justify-content: center;
  }

  html[dir="rtl"] .site-nav,
  html.lang-ar .site-nav {
    --header-logo-width: 240px;

    grid-template-columns: minmax(0, 1fr) var(--header-logo-width);
    direction: rtl;
  }

  html[dir="rtl"] .nav-logo,
  html.lang-ar .nav-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    justify-content: flex-end;
  }

  html[dir="rtl"] .menu-toggle,
  html.lang-ar .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  html[dir="rtl"] .site-nav .nav-links,
  html.lang-ar .site-nav .nav-links {
    direction: rtl;
    text-align: right;
  }

  html[dir="rtl"] .site-nav .nav-links .lang-wrap,
  html.lang-ar .site-nav .nav-links .lang-wrap {
    margin-inline: 0;
  }

  html[dir="rtl"] .lang-option,
  html.lang-ar .lang-option {
    text-align: right;
  }

  html[dir="rtl"] .site-nav .nav-cta,
  html.lang-ar .site-nav .nav-cta {
    font-family: var(--arabic);
    letter-spacing: 0;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-nav {
    top: 46px;
  }
}

@media (max-width: 680px) {
  .site-nav {
    --header-logo-width: var(--header-logo-width-mobile);

    min-height: 68px;
    padding-inline: 1rem;
  }

  .nav-logo svg,
  .nav-logo-svg {
    max-height: 54px;
  }

  html[dir="rtl"] .site-nav,
  html.lang-ar .site-nav {
    --header-logo-width: 205px;
  }
}
/* =========================================================
   6. SECTIONS / WRAPPERS / HERO
   ========================================================= */


/* ---------- Section shells ---------- */

.section {
  padding: var(--section-y) 2.5rem;
}

.section--white {
  background: var(--white);
}

.section--off {
  background: var(--off);
}

.section--light {
  background: var(--light);
}

.section--dark {
  background: var(--dark);
}

/* ── Dark anchor section ─────────────────────────────────────────────────── */

.section--anchor {
  background: var(--dark-anchor);
  border-block-start: 1px solid var(--gold);
  color: var(--white);
}

.section--anchor :is(h1, h2, h3, .wp-block-heading) {
  color: var(--white);
}

.section--anchor p {
  color: rgba(255, 255, 255, .87);
}

.section--anchor .pretitle,
.section--anchor .pretitle--blue,
.section--anchor .pretitle--light {
  color: var(--gold-light);
}

.section--anchor .pretitle::before,
.section--anchor .pretitle--blue::before {
  background: var(--gold-light);
}

/* Proof metrics on dark anchor */
.section--anchor .proof-metric {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .1);
}

.section--anchor .proof-metric dt {
  color: var(--white);
  font-weight: 800;
}

.section--anchor .proof-metric dd {
  color: var(--hero-text-muted);
}

.section--mid {
  background:
    radial-gradient(circle at 86% 30%, rgba(65, 183, 238, .12) 0%, rgba(65, 183, 238, 0) 34%),
    linear-gradient(150deg, #163f7b 0%, #1f5798 55%, #3676b6 100%);
  padding-top: clamp(3rem, 5.2vw, 4.25rem);
  padding-bottom: clamp(3rem, 5vw, 4.2rem);
}

.section--visual-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section--visual-masthead::before {
  content: '';
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: clamp(-4.5rem, -6vw, -2rem);
  z-index: 0;
  inline-size: clamp(20rem, 34vw, 34rem);
  aspect-ratio: 1;
  background: rgba(126, 218, 255, .18);
  pointer-events: none;
  transform: translateY(-50%);
}

.section--visual-masthead > :is(.wrap, .wrap-wide) {
  position: relative;
  z-index: 1;
}

.section--how-we-work-masthead::before {
  aspect-ratio: 10 / 7;
  inline-size: clamp(22rem, 38vw, 38rem);
  background: rgba(126, 218, 255, .15);
  -webkit-mask: url('assets/vectors/meridian-watermark-blueprint.svg') center / contain no-repeat;
  mask: url('assets/vectors/meridian-watermark-blueprint.svg') center / contain no-repeat;
}

.section--evidence-masthead::before,
.section--assessment-masthead::before {
  -webkit-mask: url('assets/vectors/meridian-watermark-infrastructure.svg') center / contain no-repeat;
  mask: url('assets/vectors/meridian-watermark-infrastructure.svg') center / contain no-repeat;
}

.section--insights-masthead::before {
  background: rgba(126, 218, 255, .16);
  -webkit-mask: url('assets/vectors/meridian-watermark-data-stream.svg') center / contain no-repeat;
  mask: url('assets/vectors/meridian-watermark-data-stream.svg') center / contain no-repeat;
}

.section--mid.section--masthead-compact,
.section--dark.section--masthead-compact {
  padding-top: clamp(2.45rem, 4.2vw, 3.4rem);
  padding-bottom: clamp(1.65rem, 3vw, 2.45rem);
}

.section.section--after-compact-masthead {
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
}

.section--border {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}


/* ---------- Width wrappers ---------- */

.wrap {
  max-width: var(--prose);
  margin-inline: auto;
  overflow-wrap: break-word;
}

.wrap-wide {
  max-width: var(--wide);
  margin-inline: auto;
  overflow-wrap: break-word;
}


/* ---------- Section headers ---------- */

.section-header {
  max-width: var(--prose);
  margin-bottom: 1.6rem;
}

.section-header > .pretitle {
  display: inline-block;
  margin-bottom: .7rem;
}

.section-header > :is(h1, h2, h3) {
  margin-bottom: .65rem;
  max-width: none;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-header--center .mw-prose {
  margin-inline: auto;
}

.section-header--dark {
  color: var(--white);
}

.section-header--dark :is(h1, h2, h3) {
  color: var(--white);
}

.section-header--dark :is(p, .mw-prose) {
  color: var(--hero-text-soft);
}


/* ---------- Compact section rhythm ---------- */

.section--white,
.section--off,
.section--light {
  padding-top: var(--section-y-compact);
  padding-bottom: var(--section-y-compact);
}

.section--white + .section--off,
.section--off + .section--white,
.section--white + .section--light,
.section--light + .section--white {
  padding-top: 3rem;
}


/* ---------- Section labels ---------- */

.section--white .pretitle,
.section--off .pretitle,
.section--light .pretitle,
.pretitle--blue {
  position: relative;
  color: var(--link);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.section--white .pretitle::before,
.section--off .pretitle::before,
.section--light .pretitle::before,
.pretitle--blue::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: -28px;
  margin-block: auto;
  width: 20px;
  height: 2px;
  background: var(--gold);
}

/* French: tighter tracking prevents overflow (~25% text expansion) */
html[lang^="fr"] .section--white .pretitle,
html[lang^="fr"] .section--off .pretitle,
html[lang^="fr"] .section--light .pretitle,
html[lang^="fr"] .pretitle--blue,
html.lang-fr .section--white .pretitle,
html.lang-fr .section--off .pretitle,
html.lang-fr .section--light .pretitle,
html.lang-fr .pretitle--blue,
body.lang-fr .section--white .pretitle,
body.lang-fr .section--off .pretitle,
body.lang-fr .section--light .pretitle,
body.lang-fr .pretitle--blue {
  letter-spacing: 0.12em;
}

.section :is(h1, h2, .wp-block-heading) {
  font-family: var(--font-hero);
  font-size: var(--fs-section-title);
  font-weight: 700;
  line-height: var(--lh-section-title);
  letter-spacing: 0;
}


/* ---------- Argument sections ---------- */

.section-argument {
  background: #f4f8fb;
  padding-top: clamp(3rem, 4.5vw, 4.2rem);
  padding-bottom: clamp(3rem, 4.5vw, 4.2rem);
}

.section-argument__inner {
  max-width: min(100%, 68rem);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.section-argument__lead,
.section-argument__content {
  min-width: 0;
}

.section-argument__eyebrow {
  display: inline-block;
  margin-bottom: .7rem;
}

.section-argument__title {
  max-width: 22ch;
  margin-bottom: 0;
  font-size: var(--fs-section-title);
  line-height: var(--lh-section-title);
}

.section-argument__content {
  max-width: 44rem;
  padding-top: 0;
}

.section-argument__body {
  color: var(--dark);
  font-size: clamp(1rem, 1.08vw, 1.1rem);
  font-weight: 400;
  line-height: 1.68;
}

.section-argument__body :is(p, ul, ol) {
  margin-bottom: 1rem;
}

.section-argument__body :is(strong, b) {
  color: var(--blue);
  font-weight: 800;
}

.section-argument__thesis {
  margin-top: .7rem;
  color: var(--blue);
  font-weight: 700;
}

.section-argument__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1rem;
  margin-top: 1.35rem;
  align-items: center;
}

.section-argument__actions .btn {
  min-height: 2.9rem;
  padding: .65rem 1.35rem;
  white-space: normal;
}

.section-argument__actions .icon--directional {
  margin-inline-start: .2rem;
}

.section-argument__actions .btn-secondary {
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  color: var(--link);
  padding-inline: 0;
}

.section-argument__actions .btn-secondary:hover,
.section-argument__actions .btn-secondary:focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.card-title-with-icon,
.comp-card-title,
.service-card-title-with-icon {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.card-title-icon,
.comp-card-title__icon,
.service-card-title__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  color: var(--sky-text);
  font-size: 1.25rem;
  line-height: 1;
}

.comp-card-title__icon {
  font-size: 1.12rem;
}

.service-card-title__icon {
  font-size: 1.16rem;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .section-argument__inner {
  direction: rtl;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .section-argument :is(.section-argument__lead, .section-argument__content) {
  text-align: right;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .section-argument__actions {
  justify-content: flex-start;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .section-argument__actions .icon--directional {
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  .section-argument__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-argument__title,
  .section-argument__content {
    max-width: 100%;
  }
}


/* ---------- Proof metrics ---------- */

.proof-section .wrap-wide {
  max-width: min(var(--wide), 68rem);
}

.proof-section p {
  max-width: 72ch;
}

.proof-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin: 1.35rem 0 1.45rem;
}

.proof-metric {
  min-width: 0;
  padding: 1rem .95rem;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(40, 123, 197, .14);
  border-radius: var(--radius-sm);
}

.proof-metric dt {
  margin: 0 0 .25rem;
  color: var(--blue);
  font-family: var(--font-hero);
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
}

.proof-metric dd {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-proof-label);
  font-weight: 600;
  line-height: 1.35;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .proof-section {
  direction: rtl;
  text-align: right;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .proof-metric dt {
  font-family: var(--arabic);
}


/* ---------- Entry cards ---------- */

.entry-card-label {
  display: block;
  margin-bottom: .7rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .entry-card-label {
  letter-spacing: 0;
}

.entry-card {
  border-block-start: var(--card-accent-border-width) solid var(--blue);
  transition: transform .2s ease;
}

.entry-card:hover {
  transform: translateY(-2px);
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .entry-card .icon--directional {
  transform: scaleX(-1);
}

@media (max-width: 900px) {
  .section-argument__inner {
    gap: 1.35rem;
  }

  .section-argument__title,
  .section-argument__content {
    max-width: var(--prose);
  }

  .proof-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .section-argument {
    padding-top: clamp(2.75rem, 12vw, 3.5rem);
    padding-bottom: clamp(2.75rem, 12vw, 3.5rem);
  }

  .section-argument__title {
    font-size: clamp(1.8rem, 8.5vw, 2.25rem);
  }

  .section-argument__actions .btn {
    width: 100%;
  }

  .proof-metrics {
    grid-template-columns: 1fr;
  }
}


/* ---------- Wrapper-to-wrapper spacing ---------- */

.section > :is(.wrap, .wrap-wide, .wp-block-group) + :is(.wrap, .wrap-wide, .wp-block-group) {
  margin-top: 3rem;
}

.section > :is(.grid-2, .grid-3, .grid-4) + :is(.wrap, .wrap-wide, .wp-block-group, .section-header) {
  margin-top: 3rem;
}

.section > :is(.wrap, .wrap-wide, .wp-block-group) + :is(.grid-2, .grid-3, .grid-4) {
  margin-top: 1.5rem;
}


/* ---------- Spacing after dense visual content ---------- */

.section > :is(.wrap, .wrap-wide, .wp-block-group):has(:is(
  .grid-2,
  .grid-3,
  .grid-4,
  .card,
  .asset-card,
  .case-card,
  .insight-card,
  .competency-grid,
  .clients-grid
)) + :is(.wrap, .wrap-wide, .wp-block-group, .section-header) {
  margin-top: 3.25rem;
}

.section :is(
  .grid-2,
  .grid-3,
  .grid-4,
  .card,
  .asset-card,
  .case-card,
  .insight-card,
  .competency-grid,
  .clients-grid
) ~ :is(.section-header, .pretitle, h2, h3, .wp-block-heading) {
  margin-top: 3.25rem;
}


/* ---------- Spacing after normal content ---------- */

.section :is(p, ul, ol, .testimonial, .cred-grid, .cred-table, .wp-block-table, .wp-block-quote) ~ :is(
  .section-header,
  .pretitle,
  h2,
  h3,
  .wp-block-heading
) {
  margin-top: 2.5rem;
}


/* ---------- Publications / Work Samples explicit blocks ---------- */

.section-break,
.publications-block,
.work-samples-block,
.researchgate-block {
  margin-top: 3.25rem;
}

.section-break > :first-child,
.publications-block > :first-child,
.work-samples-block > :first-child,
.researchgate-block > :first-child {
  margin-top: 0;
}


/* ---------- Pretitle and heading rhythm ---------- */

.section .pretitle + :is(h1, h2, h3, .wp-block-heading) {
  margin-top: 0;
}

.section-header > :first-child,
.wrap > :first-child,
.wrap-wide > :first-child,
.wp-block-group > :first-child {
  margin-top: 0;
}

.section-header > :last-child,
.wrap > :last-child,
.wrap-wide > :last-child,
.wp-block-group > :last-child {
  margin-bottom: 0;
}


/* ---------- Action row spacing ---------- */

.grid-2 + .cta-inline,
.grid-2 + .action-row,
.grid-3 + .cta-inline,
.grid-3 + .action-row,
.grid-4 + .cta-inline,
.grid-4 + .action-row,
.wrap + .cta-inline,
.wrap + .action-row,
.wrap-wide + .cta-inline,
.wrap-wide + .action-row,
.wp-block-group + .cta-inline,
.wp-block-group + .action-row {
  margin-top: 1.4rem;
}


/* ---------- Flow utility ---------- */

.flow > * + * {
  margin-top: var(--flow-space, 1.25rem);
}

.flow-tight {
  --flow-space: .75rem;
}

.flow-loose {
  --flow-space: 2rem;
}


/* ---------- Page masthead / dark section header ---------- */
/* Used by PHP templates such as:
   <div class="section section--mid">
     <div class="wrap-wide on-dark">
       <span class="pretitle pretitle--light">...</span>
       <h1>...</h1>
       <p class="mw-prose">...</p>
     </div>
   </div>

   This is NOT the same component as .hero.
   Keep .pretitle small. Only rebalance h1 and paragraph.
*/

.section--mid > :is(.wrap, .wrap-wide, .wp-block-group),
.section--dark > :is(.wrap, .wrap-wide, .wp-block-group) {
  position: relative;
}

.section--mid > .wrap-wide.on-dark,
.section--mid > .wrap.on-dark,
.section--dark > .wrap-wide.on-dark,
.section--dark > .wrap.on-dark {
  max-width: var(--wide);
}


/* Keep page-header eyebrow labels small and restrained. */

.section--mid .pretitle,
.section--dark .pretitle,
.section--mid .pretitle--light,
.section--dark .pretitle--light {
  display: block;
  width: 100%;
  margin: 0 0 .65rem;

  color: rgba(255, 255, 255, .88);

  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
}


/* Page-header title: smaller than .hero h1. */

.section--mid h1,
.section--dark h1 {
  max-width: 15ch;
  margin: 0 0 1rem;

  color: var(--white);

  font-family: var(--font-hero);
  font-size: clamp(2rem, 3.35vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-shadow: 0 2px 14px rgba(0, 23, 47, .14);
}

.section--mid h1.masthead-title--single-line,
.section--dark h1.masthead-title--single-line {
  max-width: none;
  font-size: clamp(1.38rem, 3.65vw, 3.1rem);
  white-space: nowrap;
}


/* Page-header subtitle. */

.section--mid p,
.section--dark p {
  max-width: 62ch;
  margin: 0;

  color: rgba(255, 255, 255, .92);

  font-size: clamp(1rem, 1.25vw, 1.08rem);
  font-weight: 500;
  line-height: 1.78;
}


/* Arabic page masthead.
   Preserve small label; only rebalance h1 and subtitle. */

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--mid > .wrap-wide.on-dark,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--mid > .wrap.on-dark,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--dark > .wrap-wide.on-dark,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--dark > .wrap.on-dark,
body:where(.rtl, .lang-ar) .section--mid > .wrap-wide.on-dark,
body:where(.rtl, .lang-ar) .section--mid > .wrap.on-dark,
body:where(.rtl, .lang-ar) .section--dark > .wrap-wide.on-dark,
body:where(.rtl, .lang-ar) .section--dark > .wrap.on-dark {
  direction: rtl;
  text-align: right;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .back-link .icon--directional {
  transform: scaleX(-1);
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--mid :is(.pretitle, .pretitle--light),
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--dark :is(.pretitle, .pretitle--light),
body:where(.rtl, .lang-ar) .section--mid :is(.pretitle, .pretitle--light),
body:where(.rtl, .lang-ar) .section--dark :is(.pretitle, .pretitle--light) {
  margin: 0 0 .6rem auto;

  color: rgba(255, 255, 255, .9);

  font-family: var(--arabic);
  font-size: clamp(.88rem, .96vw, .98rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--mid h1,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--dark h1,
body:where(.rtl, .lang-ar) .section--mid h1,
body:where(.rtl, .lang-ar) .section--dark h1 {
  max-width: 16ch;
  margin: 0 0 .95rem auto;

  font-family: var(--arabic);
  font-size: clamp(2rem, 3.35vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: right;
  text-wrap: balance;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--mid p,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--dark p,
body:where(.rtl, .lang-ar) .section--mid p,
body:where(.rtl, .lang-ar) .section--dark p {
  max-width: 58ch;
  margin: 0 0 0 auto;

  color: rgba(255, 255, 255, .93);

  font-family: var(--arabic);
  font-size: clamp(.98rem, 1.25vw, 1.08rem);
  font-weight: 500;
  line-height: 1.85;
  text-align: right;
}


/* Mixed Arabic / English masthead title.
   Prevents Latin brand names from overpowering Arabic text. */

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--mid h1 :lang(en),
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--dark h1 :lang(en),
body:where(.rtl, .lang-ar) .section--mid h1 :lang(en),
body:where(.rtl, .lang-ar) .section--dark h1 :lang(en),
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--mid h1 .latin,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--dark h1 .latin,
body:where(.rtl, .lang-ar) .section--mid h1 .latin,
body:where(.rtl, .lang-ar) .section--dark h1 .latin {
  font-family: var(--display);
  font-size: .88em;
  letter-spacing: -.01em;
  vertical-align: baseline;
}


/* ---------- Hero shell ---------- */
/* Used only when template markup includes .hero.
   Do not rely on this for .section--mid page headers. */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding: clamp(4rem, 7vw, 5.5rem) 2.5rem clamp(3.65rem, 6.5vw, 5rem);

  background: var(--dark-anchor);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: min(100%, 68rem);
}

.hero :is(.pretitle, .hero-kicker) {
  position: relative;
  color: rgba(230, 248, 255, .94);
  font-size: var(--fs-hero-kicker);
  font-weight: 700;
  letter-spacing: .12em;
  text-shadow: none;
}

.hero :is(.pretitle, .hero-kicker)::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: -28px;
  margin-block: auto;
  width: 20px;
  height: 2px;
  background: var(--gold-light);
}

.hero :is(h1, .hero-title, .wp-block-heading) {
  max-width: var(--hero-title-measure);
  margin: 0 0 1rem;

  color: var(--white);

  font-family: var(--font-hero);
  font-size: var(--fs-hero-title);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero :is(h1, .hero-title, .wp-block-heading) em,
.hero :is(h1, .hero-title, .wp-block-heading) .text-sky,
.hero :is(h1, .hero-title, .wp-block-heading) .highlight {
  color: var(--sky);
  font-style: normal;
}

body:not(.home) .hero :is(h1, .hero-title, .wp-block-heading) {
  font-size: var(--fs-hero-title-interior);
  line-height: 1.14;
}

.hero-subtitle,
.hero :is(.hero-subtitle, .hero-description, .hero-copy, .wp-block-paragraph) {
  max-width: var(--hero-prose);
  margin-bottom: 1.7rem;

  color: rgba(255, 255, 255, .91);

  font-size: var(--fs-hero-subtitle);
  font-weight: 400;
  line-height: 1.66;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}

.hero-principal {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem .62rem;
  align-items: center;
  max-width: 62ch;
  margin: -.55rem 0 1.35rem;
  color: rgba(255, 255, 255, .82);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.45;
}

.hero-principal span + span::before {
  content: "·";
  margin-inline-end: .62rem;
  color: rgba(126, 218, 255, .72);
}

.hero-micro {
  margin-top: .8rem;
  color: rgba(255, 255, 255, .78);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.45;
}

.hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  max-width: min(100%, 58rem);
  margin-block-start: 1.4rem;
  margin-bottom: 1.45rem;
  border-block-start: 1px solid var(--gold-light);
  padding-block-start: 1.1rem;
}

.hero-proof-strip__item {
  display: grid;
  align-content: start;
  gap: .18rem;
  min-width: 0;
  padding: .75rem .82rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-sm);
  background: rgba(0, 34, 68, .22);
}

.hero-proof-strip__item strong {
  color: var(--sky);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
}

.hero-proof-strip__item span {
  color: rgba(255, 255, 255, .9);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.32;
}

@media (max-width: 480px) {
  .hero-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home .hero::before {
  content: '';
  position: absolute;
  inset-block-end: clamp(-6rem, -8vw, -3rem);
  inset-inline-end: clamp(-7rem, -9vw, -3rem);
  z-index: 0;
  inline-size: clamp(24rem, 45vw, 38rem);
  aspect-ratio: 1;
  background: rgba(126, 218, 255, .24);
  pointer-events: none;
  -webkit-mask: url('assets/vectors/meridian-watermark-neural-tree.svg') center / contain no-repeat;
  mask: url('assets/vectors/meridian-watermark-neural-tree.svg') center / contain no-repeat;
}

.hero::after {
  display: none;
}

.hero__watermark {
  position: absolute;
  inset-block-start: -8%;
  inset-inline-end: -4%;
  z-index: 0;
  width: 52%;
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}

.hero__watermark img {
  display: block;
  width: 100%;
  height: auto;
}

@media (prefers-contrast: more) {
  .hero__watermark {
    display: none;
  }

  /* Remove decorative eyebrow bars under high contrast */
  .section--white .pretitle::before,
  .section--off .pretitle::before,
  .section--light .pretitle::before,
  .pretitle--blue::before,
  .hero :is(.pretitle, .hero-kicker)::before {
    display: none;
  }

  /* Strengthen dark section border */
  .section--anchor {
    border-block-start-width: 2px;
  }
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero::after,
body:where(.rtl, .lang-ar) .hero::after {
  display: none;
}


/* ---------- Arabic hero system ---------- */

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero,
body:where(.rtl, .lang-ar) .hero {
  direction: rtl;
  background: var(--dark-anchor);
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero-inner,
body:where(.rtl, .lang-ar) .hero-inner {
  inline-size: min(100%, 62rem);
  max-width: none;
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero :is(.pretitle, .hero-kicker),
body:where(.rtl, .lang-ar) .hero :is(.pretitle, .hero-kicker) {
  max-width: 52ch;
  margin: 0 0 .75rem auto;

  color: rgba(231, 248, 255, .96);

  font-family: var(--arabic);
  font-size: clamp(1.18rem, 1.55vw, 1.38rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0, 23, 47, .24);
  text-transform: none;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading),
body:where(.rtl, .lang-ar) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading) {
  max-width: var(--hero-title-measure-ar);
  margin: 0 0 1rem auto;

  color: var(--white);

  font-family: var(--arabic);
  font-size: var(--fs-ar-hero-title);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: right;
  text-wrap: balance;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body:not(.home) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading),
body:where(.rtl, .lang-ar):not(.home) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading) {
  font-size: var(--fs-ar-hero-title-interior);
  line-height: 1.28;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading) em,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading) .text-sky,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading) .highlight,
body:where(.rtl, .lang-ar) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading) em,
body:where(.rtl, .lang-ar) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading) .text-sky,
body:where(.rtl, .lang-ar) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading) .highlight {
  color: var(--sky);
  font-style: normal;
  line-height: inherit;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero :is(.hero-subtitle, .hero-description, .hero-copy, p),
body:where(.rtl, .lang-ar) .hero :is(.hero-subtitle, .hero-description, .hero-copy, p) {
  max-width: min(100%, var(--hero-prose-ar));
  margin: 0 0 1.75rem auto;

  color: rgba(255, 255, 255, .94);

  font-family: var(--arabic);
  font-size: var(--fs-ar-hero-subtitle);
  font-weight: 600;
  line-height: 1.9;
  text-align: right;
}


/* Mixed Arabic / English hero headings. */

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading) :lang(en),
body:where(.rtl, .lang-ar) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading) :lang(en),
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading) .latin,
body:where(.rtl, .lang-ar) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading) .latin {
  font-family: var(--font-hero);
  font-size: .9em;
  letter-spacing: 0;
  vertical-align: baseline;
}


/* Arabic hero buttons and microcopy */

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero-buttons,
body:where(.rtl, .lang-ar) .hero-buttons {
  justify-content: flex-start;
  direction: rtl;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero-buttons .icon--directional,
body:where(.rtl, .lang-ar) .hero-buttons .icon--directional {
  transform: scaleX(-1);
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero-micro,
body:where(.rtl, .lang-ar) .hero-micro {
  color: rgba(255, 255, 255, .78);
  font-family: var(--arabic);
  text-align: right;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: clamp(3rem, 5vw, 4.1rem) 2.5rem clamp(3rem, 5vw, 4.1rem);

  background:
    radial-gradient(ellipse 64% 120% at 50% 0%, rgba(65, 183, 238, .12) 0%, rgba(65, 183, 238, 0) 58%),
    linear-gradient(180deg, var(--surface-dark-strong) 0%, var(--surface-dark) 100%);
  color: var(--white);

  text-align: center;
}

.cta-band h2 {
  max-width: 18ch;
  margin: 0 auto .55rem;
  color: var(--white);

  font-family: var(--font-hero);
  font-size: var(--fs-cta-title);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-align: center;
}

.cta-band > p {
  max-width: min(100%, 42rem);
  margin: 0 auto 1.45rem;

  color: rgba(255, 255, 255, .9);
  font-size: clamp(1rem, 1.22vw, 1.13rem);
  font-weight: 400;
  line-height: 1.58;
  text-align: center;
}

.cta-band > .btn {
  min-width: var(--cta-button-min-width);
  min-height: 3.15rem;
  padding: .78rem 1.9rem;
  font-size: .94rem;
}

.cta-secondary-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .45rem 1.35rem;

  margin-top: 1.35rem;
}

.cta-secondary-links a {
  color: rgba(255, 255, 255, .84);
  font-size: var(--size-small);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(77, 188, 236, .52);
  text-underline-offset: .22em;
}

.cta-secondary-links a:hover,
.cta-secondary-links a:focus {
  color: var(--white);
  text-decoration: underline;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .cta-band {
  direction: rtl;
  text-align: center;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .cta-band h2 {
  font-family: var(--arabic);
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .cta-band > p {
  margin-inline: auto;
  text-align: center;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .cta-band .icon--directional {
  transform: scaleX(-1);
}


/* ---------- Hero and masthead responsive refinement ---------- */

@media (max-width: 782px) {
  .section {
    padding-inline: 1.5rem;
  }

  .section--mid {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section--mid h1,
  .section--dark h1 {
    max-width: 14ch;
    font-size: clamp(1.85rem, 7vw, 2.45rem);
  }

  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--mid h1,
  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--dark h1,
  body:where(.rtl, .lang-ar) .section--mid h1,
  body:where(.rtl, .lang-ar) .section--dark h1 {
    max-width: 14.5ch;
    font-size: clamp(1.75rem, 7.2vw, 2.35rem);
    line-height: 1.25;
  }

  .hero {
    padding: 3.75rem 1.5rem 3.6rem;
  }

  .hero :is(h1, .hero-title, .wp-block-heading) {
    max-width: var(--hero-title-measure-narrow);
    font-size: var(--fs-hero-title);
  }

  .hero-subtitle,
  .hero :is(.hero-subtitle, .hero-description, .hero-copy, .wp-block-paragraph) {
    font-size: 1rem;
    line-height: 1.75;
  }

  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading),
  body:where(.rtl, .lang-ar) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading) {
    max-width: var(--hero-title-measure-ar-narrow);
    font-size: var(--fs-ar-hero-title);
    line-height: 1.24;
  }

  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero :is(.pretitle, .hero-kicker),
  body:where(.rtl, .lang-ar) .hero :is(.pretitle, .hero-kicker) {
    font-size: var(--fs-ar-kicker);
  }

  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero :is(.hero-subtitle, .hero-description, .hero-copy, p),
  body:where(.rtl, .lang-ar) .hero :is(.hero-subtitle, .hero-description, .hero-copy, p) {
    max-width: 100%;
    font-size: var(--fs-ar-hero-subtitle);
    line-height: 1.85;
  }
}

@media (max-width: 480px) {
  .section {
    padding-inline: 1.15rem;
  }

  .section--mid {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--mid :is(.pretitle, .pretitle--light),
  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--dark :is(.pretitle, .pretitle--light),
  body:where(.rtl, .lang-ar) .section--mid :is(.pretitle, .pretitle--light),
  body:where(.rtl, .lang-ar) .section--dark :is(.pretitle, .pretitle--light) {
    font-size: .76rem;
  }

  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--mid h1,
  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .section--dark h1,
  body:where(.rtl, .lang-ar) .section--mid h1,
  body:where(.rtl, .lang-ar) .section--dark h1 {
    max-width: 12.5ch;
    font-size: clamp(1.65rem, 8.2vw, 2.1rem);
  }

  .hero {
    padding: 3.25rem 1.15rem 3.15rem;
  }

  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading),
  body:where(.rtl, .lang-ar) .hero :is(h1, .hero-title, .entry-title, .wp-block-heading) {
    max-width: var(--hero-title-measure-ar-narrow);
    font-size: var(--fs-ar-hero-title);
  }
}
/* =========================================================
   7. BUTTONS
   ========================================================= */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  margin-inline-start: .15rem;
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: normal;
  font-size: 1.1em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  -webkit-font-smoothing: antialiased;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;

  min-height: 2.75rem;
  padding: .65rem 1.55rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);

  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;

  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 34, 68, .09);
  transition:
    color .15s ease,
    background-color .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 34, 68, .13);
}

.btn:has(.icon) {
  gap: .5rem;
}

.btn:has(.icon) .icon {
  margin-inline-start: 0;
}

.btn:focus-visible {
  outline: 2px solid var(--sky-text);
  outline-offset: 3px;
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: .55;
  pointer-events: none;
  cursor: not-allowed;
}

.assessment-dim-title {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.assessment-dim-title .icon,
.eflow-connector .icon {
  margin-inline-start: 0;
}

.card-title-with-icon .icon,
.comp-card-title .icon,
.service-card-title-with-icon .icon {
  margin-inline-start: 0;
}

.ai-readiness-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 58rem);
  margin-top: 1.35rem;
}

.ai-readiness-option {
  padding: 1.15rem;
  border: 1px solid rgba(0, 64, 122, .16);
  border-radius: .45rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 34, 68, .06);
}

.ai-readiness-option h3 {
  margin: 0 0 .45rem;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.25;
}

.ai-readiness-option p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .ai-readiness-options {
    grid-template-columns: 1fr;
  }
}

/* Button variants */

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 34, 68, .18);
}

.btn-secondary {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(0, 34, 68, .38);
  color: var(--dark);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--dark);
  border-color: var(--blue);
  color: var(--white);
}

.btn-sky {
  background: var(--sky);
  border-color: var(--sky);
  color: var(--dark);
  box-shadow: 0 8px 18px rgba(0, 119, 182, .14);
}

.btn-sky:hover,
.btn-sky:focus-visible {
  background: var(--sky-text);
  border-color: var(--sky-text);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 119, 182, .22);
}

/* Primary CTA gold hover */
.btn-sky:hover,
.btn-sky:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: var(--gold);
}

/* Gold-light on dark backgrounds */
.hero .btn-sky:hover,
.hero .btn-sky:focus-visible,
.section--anchor .btn-sky:hover,
.section--anchor .btn-sky:focus-visible,
.section--dark .btn-sky:hover,
.section--dark .btn-sky:focus-visible,
.section--mid .btn-sky:hover,
.section--mid .btn-sky:focus-visible {
  border-color: var(--gold-light);
}

.btn-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .72);
  color: var(--white);
  box-shadow: none;
}

.btn-light:hover,
.btn-light:focus-visible {
  background: rgba(255, 255, 255, .12);
  border-color: var(--white);
  color: var(--white);
}

/* Button sizing and layout helpers */

.btn--full {
  width: 100%;
}

.btn--bottom {
  margin-top: auto;
}

.btn--lg {
  padding: .75rem 1.6rem;
  font-size: .86rem;
}

.btn--primary-action {
  min-width: var(--cta-button-min-width);
  min-height: 3rem;
  padding: .72rem 1.75rem;
  font-size: .9rem;
}

.btn--sm {
  padding: .44rem 1rem;
  font-size: .76rem;
}

/* Arabic button refinement */

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :is(.btn, .wp-block-button__link) {
  font-family: var(--arabic);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
  min-height: 3.1rem;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :is(.btn--lg, .btn--primary-action) {
  font-size: 1.08rem;
  min-height: 3.35rem;
}

/* Full-width Arabic buttons (resource cards, etc.) allow text to wrap so
   longer Arabic labels are not clipped or squeezed at 100% zoom. */
:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .btn--full {
  white-space: normal;
}

/* =========================================================
   8. GRIDS / CARDS
   ========================================================= */


/* ---------- Grid systems ---------- */

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--space-card-gap);
  width: 100%;

  margin-block-start: var(--space-card-gap);
  margin-block-end: var(--space-grid-bottom);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Keep action rows close to grids when the grid intentionally ends with CTA controls.
   Uses :has() to adjust the grid's own bottom rhythm instead of relying on
   negative margins on the following action row. */

.grid-2:has(+ .cta-inline),
.grid-2:has(+ .action-row),
.grid-3:has(+ .cta-inline),
.grid-3:has(+ .action-row),
.grid-4:has(+ .cta-inline),
.grid-4:has(+ .action-row) {
  margin-block-end: var(--space-grid-action-gap);
}

.grid-2 + .cta-inline,
.grid-2 + .action-row,
.grid-3 + .cta-inline,
.grid-3 + .action-row,
.grid-4 + .cta-inline,
.grid-4 + .action-row {
  margin-top: 0;
}


/* ---------- Standard card ---------- */

.card {
  min-width: 0;
  padding: 1.5rem 1.4rem;

  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);

  color: var(--text);

  transition:
    border-color .2s ease,
    transform .2s ease;
}

.card:hover {
  border-color: rgba(40, 123, 197, .28);
}

.card:focus-within {
  border-color: rgba(40, 123, 197, .36);
}

.card--sky {
  border-top-color: var(--sky);
}

.card--dark {
  border-top-color: var(--dark);
}

.card--institutional {
  padding: 1.55rem 1.4rem 1.65rem;
  background: var(--white);
  border-block-start: var(--card-accent-border-width) solid var(--blue);
}

.card--institutional h3 {
  margin-bottom: .55rem;
}

.card--institutional .text-card-body {
  font-size: var(--fs-card-body);
  line-height: 1.68;
}

.card h1,
.card h2,
.card h3 {
  color: var(--dark);
}

.card h3 {
  margin-bottom: .45rem;
  font-size: var(--fs-card-title);
  line-height: 1.35;
}

.card p,
.card .text-card-body,
.card .text-sub-tight,
.card .card-note {
  color: var(--muted);
}


/* ---------- Flexible card pattern ---------- */

.card--flex,
.card:has(.card-duration),
.asset-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 100%;
}

.card:has(.card-duration) .text-card-body,
.asset-card .asset-body,
.card--flex .asset-body,
.asset-card .flex-grow,
.card--flex .flex-grow {
  flex: 1 1 auto;
}

.card-duration {
  align-self: center;
  padding: .25rem .85rem;
  background: rgba(40, 123, 197, .08);
  border: 1px solid rgba(40, 123, 197, .22);
  border-radius: var(--radius-pill);
  color: var(--link);
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
}

.asset-card .btn,
.card--flex .btn {
  margin-top: auto;
}

.asset-card .card-note,
.card--flex .card-note,
.asset-card .text-sub-tight,
.card--flex .text-sub-tight {
  margin-top: .25rem;
  margin-bottom: 0;
}


/* ---------- Dark transparent card ---------- */

.card-ghost {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.1rem 1rem 1.1rem 1.25rem;

  border-inline-start: 3px solid rgba(255, 255, 255, .2);

  transition: border-color .2s ease;
}

.card-ghost:hover {
  border-inline-start-color: var(--gold);
}


/* ---------- Asset / insight card elements ---------- */

.asset-tag {
  display: inline-block;
  align-self: flex-start;

  margin-bottom: .2rem;
  padding: 4px 11px;

  background: rgba(238, 246, 252, .88);
  border: 1px solid rgba(40, 123, 197, .46);
  border-radius: var(--radius-pill);
  color: var(--dark);

  font-size: .72rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.asset-title,
.asset-title-link {
  display: block;
  margin-bottom: .1rem;

  color: var(--dark);
  font-family: var(--sans);
  font-size: var(--fs-card-title);
  font-weight: 800;
  line-height: 1.38;
  text-align: left;
  text-decoration: none;
}

.asset-title:hover,
.asset-title-link:hover,
.asset-title-link:focus {
  color: var(--blue);
  text-decoration: none;
}

.asset-body {
  color: var(--muted);
  font-size: var(--size-small);
  line-height: var(--lh-body);
  text-align: left;
}

/* Resource cards in dark anchor section */
.section--anchor .asset-card {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .1);
  color: var(--white);
}

.section--anchor .asset-card .asset-title,
.section--anchor .asset-card .asset-title-link {
  color: var(--white);
}

.section--anchor .asset-card .asset-card__meta,
.section--anchor .asset-card .asset-type-label {
  color: rgba(255, 255, 255, .7);
}


/* ---------- Archive cards ---------- */

.case-card,
.insight-card {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-width: 0;

  padding: 1.55rem 1.45rem;

  background: var(--white);
  border: 1px solid rgba(0, 34, 68, .09);
  border-top: 3px solid rgba(40, 123, 197, .72);
  border-radius: var(--radius-md);

  transition:
    box-shadow .2s ease,
    transform .2s ease,
    border-color .2s ease;
}

.insight-card {
  border-top-color: var(--sky);
}

.case-card:hover,
.insight-card:hover {
  border-color: rgba(0, 34, 68, .14);
  transform: translateY(-1px);
}

.case-card:focus-within,
.insight-card:focus-within {
  border-color: rgba(40, 123, 197, .36);
}

.case-card-meta,
.insight-card-date {
  color: var(--blue);
  font-size: var(--size-eyebrow);
  font-weight: 800;
  line-height: var(--lh-small);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.case-card-title,
.insight-card-title,
.card-title-link {
  display: block;

  color: var(--dark);
  font-family: var(--display);
  font-size: var(--fs-card-title);
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
}

.case-card-title:hover,
.case-card-title:focus,
.insight-card-title:hover,
.insight-card-title:focus,
.card-title-link:hover,
.card-title-link:focus {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.case-card-excerpt,
.insight-card-excerpt {
  flex: 1;

  color: var(--muted);
  font-size: var(--size-small);
  line-height: var(--lh-body);
  text-align: left;
}

.case-card-link,
.text-action-link {
  margin-top: auto;

  color: var(--blue);
  font-size: var(--size-eyebrow);
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.case-card-link:hover,
.case-card-link:focus,
.text-action-link:hover,
.text-action-link:focus {
  color: var(--dark);
  text-decoration: underline;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .case-card-link .icon--directional {
  transform: scaleX(-1);
}


/* ---------- Arabic grid / card refinements ---------- */

html[dir="rtl"] :is(.grid-2, .grid-3, .grid-4),
html.lang-ar :is(.grid-2, .grid-3, .grid-4),
html[lang^="ar"] :is(.grid-2, .grid-3, .grid-4),
body.rtl :is(.grid-2, .grid-3, .grid-4),
body.lang-ar :is(.grid-2, .grid-3, .grid-4) {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] :is(.card, .asset-card, .case-card, .insight-card),
html.lang-ar :is(.card, .asset-card, .case-card, .insight-card),
html[lang^="ar"] :is(.card, .asset-card, .case-card, .insight-card),
body.rtl :is(.card, .asset-card, .case-card, .insight-card),
body.lang-ar :is(.card, .asset-card, .case-card, .insight-card) {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .card-ghost,
html.lang-ar .card-ghost,
html[lang^="ar"] .card-ghost,
body.rtl .card-ghost,
body.lang-ar .card-ghost {
  text-align: right;
}

html[dir="rtl"] :is(.asset-tag, .badge),
html.lang-ar :is(.asset-tag, .badge),
html[lang^="ar"] :is(.asset-tag, .badge),
body.rtl :is(.asset-tag, .badge),
body.lang-ar :is(.asset-tag, .badge) {
  align-self: flex-start;
  margin-inline-start: 0;
  margin-inline-end: auto;

  font-family: var(--arabic);
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}

html[dir="rtl"] :is(.asset-title, .asset-title-link, .case-card-title, .insight-card-title),
html.lang-ar :is(.asset-title, .asset-title-link, .case-card-title, .insight-card-title),
html[lang^="ar"] :is(.asset-title, .asset-title-link, .case-card-title, .insight-card-title),
body.rtl :is(.asset-title, .asset-title-link, .case-card-title, .insight-card-title),
body.lang-ar :is(.asset-title, .asset-title-link, .case-card-title, .insight-card-title) {
  font-family: var(--arabic);
  line-height: 1.5;
  text-align: right;
}

html[dir="rtl"] :is(.asset-body, .text-card-body, .case-card-excerpt, .insight-card-excerpt, .card-note, .text-sub-tight),
html.lang-ar :is(.asset-body, .text-card-body, .case-card-excerpt, .insight-card-excerpt, .card-note, .text-sub-tight),
html[lang^="ar"] :is(.asset-body, .text-card-body, .case-card-excerpt, .insight-card-excerpt, .card-note, .text-sub-tight),
body.rtl :is(.asset-body, .text-card-body, .case-card-excerpt, .insight-card-excerpt, .card-note, .text-sub-tight),
body.lang-ar :is(.asset-body, .text-card-body, .case-card-excerpt, .insight-card-excerpt, .card-note, .text-sub-tight) {
  font-family: var(--arabic);
  line-height: 1.9;
  text-align: right;
}

html[dir="rtl"] :is(.case-card-meta, .insight-card-date),
html.lang-ar :is(.case-card-meta, .insight-card-date),
html[lang^="ar"] :is(.case-card-meta, .insight-card-date),
body.rtl :is(.case-card-meta, .insight-card-date),
body.lang-ar :is(.case-card-meta, .insight-card-date) {
  font-family: var(--arabic);
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}

html[dir="rtl"] :is(.asset-card .btn, .card--flex .btn),
html.lang-ar :is(.asset-card .btn, .card--flex .btn),
html[lang^="ar"] :is(.asset-card .btn, .card--flex .btn),
body.rtl :is(.asset-card .btn, .card--flex .btn),
body.lang-ar :is(.asset-card .btn, .card--flex .btn) {
  align-self: stretch;
  justify-content: center;
  text-align: center;
}

/* =========================================================
   9. COMPONENTS
   ========================================================= */


/* ---------- Text utilities ---------- */

.text-sm-r {
  font-size: var(--size-small);
}

.text-card-body {
  color: var(--muted);
  font-size: var(--size-small);
  line-height: var(--lh-body);
}

.text-sub-note {
  color: var(--subtle);
  font-size: var(--size-small);
  line-height: var(--lh-small);
}

.text-sub-tight {
  margin: 0;
  color: var(--subtle);
  font-size: var(--size-small);
  line-height: var(--lh-small);
}

.text-blue {
  color: var(--blue);
}

.text-sky {
  color: var(--sky-text);
}

.on-dark .text-sky,
.section--mid .text-sky,
.section--dark .text-sky,
.cta-band .text-sky,
.site-footer .text-sky {
  color: var(--sky);
}

.text-white {
  color: var(--white);
}

.text-onmid {
  color: var(--hero-text-soft);
}

.text-role {
  color: var(--blue);
  font-size: var(--size-small);
  line-height: var(--lh-small);
  text-align: center;
}

.text-org {
  color: var(--subtle);
  font-size: var(--size-small);
  line-height: var(--lh-small);
  text-align: center;
}

.text-craft-note {
  margin-top: 1.6rem;
  color: var(--hero-text-muted);
  font-size: var(--size-small);
  line-height: 1.68;
}

.text-footer-note {
  margin-top: 1.5rem;
  font-size: var(--size-small);
  line-height: 1.6;
}


/* ---------- Spacing utilities ---------- */

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: 1.75rem;
}

.mt-xl {
  margin-top: var(--space-lg);
}

.mb-sm {
  margin-bottom: var(--space-xs);
}

.mb-md {
  margin-bottom: 1.5rem;
}

.gap-sm {
  gap: .9rem;
}

.flex-grow {
  flex: 1 1 auto;
}


/* ---------- Action rows ---------- */

.cta-inline,
.action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}

.cta-inline {
  margin-top: var(--space-md);
}

.action-row {
  margin-top: 1rem;
}


/* ---------- Decorative divider ---------- */

.divider {
  display: block;
  width: 42px;
  height: 4px;
  margin-bottom: .9rem;
  border: 0;
  background: var(--sky);
}


/* ---------- Stats ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.05rem, 2.15vw, 1.75rem);
  width: 100%;
  margin-top: 1.35rem;
}

.stat-card {
  min-width: 0;
  padding: 1.2rem 1.05rem 1.25rem;
  border: 1px solid rgba(161, 219, 246, .24);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .035) 100%),
    rgba(3, 38, 69, .28);
}

.stat-number {
  display: block;

  color: var(--sky);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.05rem, 3vw, 2.55rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
}

.section--dark .stat-card .stat-number {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.stat-label {
  display: block;
  max-width: 22ch;
  margin-top: .65rem;

  color: rgba(255, 255, 255, .96);
  font-family: var(--font-body);
  font-size: clamp(.98rem, 1.08vw, 1.07rem);
  font-weight: 600;
  line-height: 1.42;
  text-wrap: balance;
}

.stat-card:nth-child(n+5):nth-child(-n+8) {
  background:
    linear-gradient(180deg, rgba(65, 183, 238, .13) 0%, rgba(65, 183, 238, .055) 100%),
    rgba(3, 38, 69, .34);
  border-color: rgba(65, 183, 238, .36);
}

.stat-card:nth-child(n+5):nth-child(-n+8) .stat-number {
  color: #68ccf5;
}


/* ---------- Pathway ---------- */

.pathway {
  position: relative;
  display: flex;
  margin-top: 2.5rem;
}

.pathway::before {
  content: "";
  position: absolute;
  top: 1.62rem;
  left: 12%;
  right: 12%;

  height: 2px;
  background: var(--border-light);
}

.pathway-step {
  position: relative;
  flex: 1;
  padding: 0 .5rem;
  text-align: center;
}

.pathway-icon {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 3.3rem;
  height: 3.3rem;
  margin: 0 auto .8rem;

  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--dark);
  box-shadow: 0 0 0 2px var(--dark);

  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1;
}

.pathway-label {
  margin-bottom: .2rem;
  color: var(--dark);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.35;
}

.pathway-dur {
  margin-bottom: .35rem;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
}

.pathway-desc {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.6;
}


/* ---------- Engagement Flow ---------- */

.engagement-graphic {
  margin: 0;
}

.engagement-graphic img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.engagement-flow--mobile {
  display: none;
}

.engagement-flow {
  margin-top: 2.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.eflow-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 560px;
}

.eflow-node {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.eflow-connector {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  padding: 1.65rem .45rem 0;
  color: var(--blue);
  font-size: 1.3rem;
  line-height: 1;
}

.eflow-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .85rem 1rem;
  border-radius: 8px;
  background: var(--dark);
  color: var(--white);
}

.eflow-num {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky);
  font-family: var(--font-body);
  margin-bottom: .15rem;
}

.eflow-label {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  font-family: var(--font-body);
  color: var(--white);
  line-height: 1.2;
}

.eflow-dur {
  display: block;
  margin-top: .2rem;
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .02em;
}

.eflow-outputs {
  list-style: none;
  padding: 0;
  margin: .45rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.eflow-outputs li {
  padding: .28rem .6rem;
  border-radius: 5px;
  background: var(--off);
  border: 1px solid var(--border-light);
  font-size: .77rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.4;
}

.eflow-outcome {
  flex: 0 0 auto;
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.1rem;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  text-align: center;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.4;
  min-width: 108px;
}

/* RTL */
:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .eflow-track {
  direction: rtl;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .eflow-connector {
  transform: none;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .eflow-connector .icon--directional {
  transform: scaleX(-1);
}

@media (max-width: 680px) {
  .engagement-graphic {
    display: none;
  }
  .engagement-flow--mobile {
    display: block;
  }
  .eflow-track {
    flex-direction: column;
    align-items: center;
    min-width: 0;
  }
  .eflow-node {
    width: 100%;
  }
  .eflow-connector {
    transform: rotate(90deg);
    padding: .15rem 0;
  }
  .eflow-outcome {
    width: 100%;
    align-self: stretch;
  }
}


/* ---------- CRAFT ---------- */

.section--craft {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section--craft::before {
  content: '';
  position: absolute;
  inset-block-end: clamp(1rem, 2.2vw, 2rem);
  inset-inline-end: clamp(.75rem, 2vw, 1.75rem);
  z-index: 0;
  inline-size: clamp(24rem, 38vw, 36rem);
  aspect-ratio: 10 / 7;
  background: rgba(126, 218, 255, .22);
  pointer-events: none;
  -webkit-mask: url('assets/vectors/meridian-watermark-blueprint.svg') center / contain no-repeat;
  mask: url('assets/vectors/meridian-watermark-blueprint.svg') center / contain no-repeat;
}

.section--craft > .wrap-wide {
  position: relative;
  z-index: 1;
}

.craft-grid {
  gap: clamp(1.15rem, 2vw, 1.55rem);
  align-items: stretch;
  margin-block-start: 1.8rem;
}

.craft-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  align-self: flex-start;

  background: rgba(255, 255, 255, .14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: var(--fs-craft-letter);
  font-weight: 800;
  line-height: 1;
  border-radius: 4px;
}

.craft-title {
  color: var(--white);
  font-size: var(--fs-craft-title);
  font-weight: 700;
  line-height: 1.3;
}

.craft-body {
  color: rgba(255, 255, 255, .82);
  font-size: var(--fs-craft-body);
  line-height: 1.6;
}

.craft-example {
  color: rgba(255, 255, 255, .6);
  font-size: .82rem;
  line-height: 1.5;
  font-style: italic;
}

.on-dark-h2 {
  max-width: min(100%, 24ch);
  margin-bottom: .65rem;
  color: var(--white);
  font-family: var(--font-hero);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.craft-intro {
  max-width: 68ch;

  color: var(--hero-text-soft);
  font-size: clamp(1.02rem, 1.28vw, 1.14rem);
  font-weight: 520;
  line-height: 1.62;
}


/* ---------- Narrative ---------- */

.narrative + .narrative {
  margin-top: 1.9rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--border-light);
}

.grid-2 .narrative {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem;
  background: var(--white);
  border: 1px solid rgba(0, 34, 68, .10);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius-md);
  margin-top: 0;
}

.grid-2 .narrative + .narrative {
  margin-top: 0;
  padding-top: 1.5rem;
  border-top: 4px solid var(--blue);
}

.narrative-context {
  margin-bottom: .4rem;

  color: var(--link);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.narrative-title {
  margin-bottom: .45rem;
  color: var(--dark);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.4;
}


/* ---------- Client list ---------- */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;

  margin: 0;
  padding: 0;
  list-style: none;
}

.client-context-groups {
  display: grid;
  gap: 1rem;
}

.client-context-group {
  padding: .85rem;
  border: 1px solid rgba(0, 34, 68, .08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .56);
}

.client-context-group--alternate {
  background: rgba(231, 237, 243, .58);
}

.clients-grid li,
.client-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: .25rem;
  min-width: 0;
  min-height: 100%;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(0, 34, 68, .09);
  border-top: 3px solid rgba(0, 113, 188, .42);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(0, 34, 68, .055);

  color: var(--muted);
  font-size: .94rem;
  line-height: 1.58;
}

.client-card__number {
  display: none;
}

.clients-grid .client-item-name {
  display: block;
  color: var(--dark);
  font-weight: 800;
  font-size: .98rem;
  line-height: 1.35;
}

.clients-grid .client-item-desc {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
  margin-top: .25rem;
}


/* ---------- Evidence prototype preview ---------- */

.evidence-prototype {
  direction: ltr;
  text-align: left;
  background:
    radial-gradient(circle at 18% 0%, rgba(65, 183, 238, .08), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.evidence-prototype__hero {
  padding: clamp(2.6rem, 4.5vw, 4.1rem) 1.5rem clamp(2rem, 3.6vw, 3rem);
  border-bottom: 1px solid rgba(0, 34, 68, .08);
  background: rgba(255, 255, 255, .9);
}

.evidence-prototype__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .52fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.evidence-prototype__hero-copy {
  max-width: 52rem;
}

.evidence-prototype__preview-label {
  margin-bottom: .65rem;
  color: var(--link);
  font-size: var(--size-eyebrow);
  font-weight: 800;
  letter-spacing: 0;
  line-height: var(--lh-small);
  text-transform: uppercase;
}

.evidence-prototype__hero h1 {
  margin-bottom: .85rem;
  color: var(--dark);
  font-family: var(--sans);
  font-size: 3.65rem;
  font-weight: 800;
  line-height: 1.08;
}

.evidence-prototype__hero h1 em {
  color: #1f66df;
  font-style: italic;
  font-weight: 700;
}

.evidence-prototype__hero p:not(.evidence-prototype__preview-label) {
  max-width: 56rem;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.72;
}

.evidence-prototype__shapes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
  align-items: center;
  justify-items: center;
  min-height: 8.5rem;
}

.evidence-prototype__shapes .shape {
  display: block;
  opacity: .86;
}

.evidence-prototype__shapes .shape--arc {
  inline-size: 5.8rem;
  aspect-ratio: 1;
  border-radius: 0 0 100% 0;
  background: linear-gradient(135deg, #69cfb2, #b5e6dd);
  transform: rotate(90deg);
}

.evidence-prototype__shapes .shape--triangle {
  inline-size: 0;
  block-size: 0;
  border-inline-start: 2.1rem solid transparent;
  border-inline-end: 2.1rem solid transparent;
  border-block-start: 4.7rem solid #72a8e8;
}

.evidence-prototype__shapes .shape--square {
  inline-size: 4.8rem;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #8ed8c8, #d4f0eb);
}

.evidence-prototype__shapes .shape--dots {
  inline-size: 4.7rem;
  aspect-ratio: 1;
  background-image: radial-gradient(circle, #65c7b3 0 .33rem, transparent .36rem);
  background-size: 1.25rem 1.25rem;
}

.evidence-prototype__section-head {
  max-width: 58rem;
  margin-bottom: 1.35rem;
}

.evidence-prototype__section-head h2 {
  margin-bottom: .35rem;
  color: var(--dark);
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.18;
}

.evidence-prototype__section-head h2::after {
  content: '';
  display: block;
  inline-size: 2.65rem;
  block-size: 2px;
  margin-top: .35rem;
  background: #174ee8;
}

.evidence-prototype__section-head p {
  color: var(--text);
  font-size: .98rem;
  line-height: 1.6;
}

.evidence-prototype__cases {
  padding-top: clamp(2.5rem, 4vw, 3.6rem);
}

.evidence-prototype__case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.evidence-prototype__case {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 1.35rem 1.25rem 1.2rem;
  border: 1px solid rgba(0, 34, 68, .14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 26px rgba(0, 34, 68, .055);
  border-inline-start: 4px solid var(--blue);
  padding-inline-start: 1.25rem;
}

.evidence-prototype__case--featured {
  border-top: 4px solid rgba(40, 123, 197, .65);
}

.evidence-prototype__case--secondary {
  border-top-color: rgba(0, 34, 68, .08);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 7px 18px rgba(0, 34, 68, .04);
}

.evidence-prototype__case--secondary .evidence-prototype__case-icon {
  inline-size: 2.7rem;
}

.evidence-prototype__case--secondary .evidence-prototype__case-icon .icon {
  font-size: 1.45rem;
}

.evidence-prototype__case-head {
  display: grid;
  grid-template-columns: 3.65rem minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  margin-bottom: 1.05rem;
}

.evidence-prototype__case-icon {
  display: inline-grid;
  place-items: center;
  inline-size: 3.15rem;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--white);
}

.evidence-prototype__case-icon .icon {
  font-size: 1.75rem;
}

.evidence-prototype__case-icon--blue {
  background: linear-gradient(135deg, #174ee8, #2446b8);
}

.evidence-prototype__case-icon--violet {
  background: linear-gradient(135deg, #9b45ce, #6d29a8);
}

.evidence-prototype__case-icon--teal {
  background: linear-gradient(135deg, #16a4b3, #087d8b);
}

.evidence-prototype__case-icon--orange {
  background: linear-gradient(135deg, #ffad3d, #f27a1a);
}

.evidence-prototype__case-context {
  margin-bottom: .12rem;
  color: var(--dark);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.evidence-prototype__case h3 {
  color: var(--link);
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.3;
}

.evidence-prototype__case-body {
  display: grid;
  gap: .85rem;
  margin-bottom: 1rem;
}

.evidence-prototype__case-body span {
  display: block;
  margin-bottom: .2rem;
  color: var(--subtle);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.evidence-prototype__case-body p {
  color: var(--text);
  font-size: .92rem;
  line-height: 1.58;
}

.evidence-prototype__outcome {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  margin-top: auto;
  padding-top: .95rem;
  border-top: 1px solid rgba(0, 34, 68, .14);
}

.evidence-prototype__outcome .icon {
  color: #174ee8;
  font-size: 1.55rem;
}

.evidence-prototype__outcome p {
  color: var(--text);
  font-size: .88rem;
  line-height: 1.55;
}

.evidence-prototype__clients-section {
  padding-top: .2rem;
}

.evidence-prototype__client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(0, 34, 68, .14);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}

.evidence-prototype__client {
  display: grid;
  grid-template-columns: minmax(7rem, .46fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 7.4rem;
  padding: 1rem 1.1rem;
  border-inline-end: 1px solid rgba(0, 34, 68, .1);
  border-block-end: 1px solid rgba(0, 34, 68, .1);
}

.evidence-prototype__client:nth-child(3n) {
  border-inline-end: 0;
}

.evidence-prototype__client-logo {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 3.5rem;
}

.evidence-prototype__client-logo img {
  display: block;
  inline-size: min(100%, 9rem);
  max-height: 3.25rem;
  object-fit: contain;
}

.evidence-prototype__client-logo img[src$="aacsb.png"] {
  inline-size: min(100%, 7.75rem);
  max-height: 2.9rem;
  padding: .45rem .6rem;
  border-radius: .25rem;
  background: #00416b;
}

.evidence-prototype__client-logo img[src$="odu.svg"] {
  inline-size: min(100%, 7.75rem);
  max-height: 2.9rem;
  padding: .45rem .6rem;
  border-radius: .25rem;
  background: #003057;
}

.evidence-prototype__client h3 {
  margin-bottom: .2rem;
  color: var(--dark);
  font-size: .85rem;
  font-weight: 800;
  line-height: 1.32;
}

.evidence-prototype__client p {
  color: var(--text);
  font-size: .78rem;
  line-height: 1.45;
}

.evidence-prototype__logo-disclaimer {
  max-width: 56rem;
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.5;
}

.evidence-prototype__client--summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  background: linear-gradient(180deg, #f8fbfe, #edf6fc);
}

.evidence-prototype__client--summary strong {
  display: block;
  color: var(--dark);
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1;
}

.evidence-prototype__client--summary span {
  color: var(--dark);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.25;
}

.evidence-prototype__client--summary p {
  max-width: 13rem;
}

.evidence-prototype__stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 2.2rem;
  border: 1px solid rgba(40, 123, 197, .22);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff, #eef6fd);
  box-shadow: 0 14px 30px rgba(0, 34, 68, .06);
  overflow: hidden;
}

.evidence-prototype__stat {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
  min-width: 0;
  padding: 1.15rem 1rem;
  border-inline-end: 1px solid rgba(0, 34, 68, .08);
}

.evidence-prototype__stat:last-child {
  border-inline-end: 0;
}

.evidence-prototype__stat-icon.icon {
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  inline-size: 2.9rem;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  background: #dceeff;
  color: #1263ba;
  font-size: 2rem;
}

/* Evidence stats band on dark anchor */
.evidence-prototype__stats-band .evidence-prototype__stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem 1.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.evidence-prototype__stats-band .evidence-prototype__stat strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: .25rem;
}

.evidence-prototype__stats-band .evidence-prototype__stat span {
  display: block;
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
}

.evidence-prototype__stats-band .evidence-prototype__stat small {
  display: block;
  color: rgba(255, 255, 255, .6);
  font-size: .78rem;
  margin-top: .2rem;
}

.evidence-prototype__stats-band .evidence-prototype__stat-icon {
  color: var(--gold-light);
  font-size: 1.75rem;
  margin-bottom: .5rem;
}

.evidence-prototype__stat strong {
  display: block;
  color: var(--dark);
  font-family: var(--sans);
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1;
}

.evidence-prototype__stat span,
.evidence-prototype__stat small {
  display: block;
  color: var(--dark);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.25;
}

.evidence-prototype__stat small {
  margin-top: .1rem;
  color: var(--text);
  font-size: .75rem;
  font-weight: 500;
}

.evidence-prototype__testimonials {
  margin-top: 2.25rem;
}

.evidence-prototype__testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.evidence-prototype__quote {
  min-width: 0;
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-inline-start: 4px solid rgba(40, 123, 197, .55);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 10px 24px rgba(0, 34, 68, .045);
}

.evidence-prototype__quote blockquote {
  margin: 0;
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
}

.evidence-prototype__quote figcaption {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.45;
}

html[dir="rtl"] .evidence-prototype__hero-copy,
html[dir="rtl"] .evidence-prototype__section-head,
html[dir="rtl"] .evidence-prototype__case,
html[dir="rtl"] .evidence-prototype__client,
html[dir="rtl"] .evidence-prototype__stat,
html[dir="rtl"] .evidence-prototype__quote {
  text-align: right;
}

html[dir="rtl"] .evidence-prototype__case-body span {
  text-transform: none;
}

html[dir="rtl"] .evidence-prototype__outcome {
  border-inline-start: 0;
  border-inline-end: 3px solid rgba(40, 123, 197, .55);
}

html[dir="rtl"] .evidence-prototype__quote {
  border-inline-start: 0;
  border-inline-end: 4px solid rgba(40, 123, 197, .55);
}


/* ---------- Competency grid ---------- */

.competency-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.55rem 2rem;

  margin-top: 1.5rem;
}

.competency-item {
  padding: .2rem 0 .25rem;

  border-top: 2px solid rgba(40, 123, 197, .28);

  color: #263f5c;
  font-size: var(--size-small);
  line-height: var(--lh-body);
}

.competency-item strong {
  display: block;
  margin-bottom: .25rem;

  color: var(--dark);
  font-size: var(--size-body);
  font-weight: 700;
  line-height: var(--lh-h3);
}


/* ---------- Competency cards (home Section 1.3 grid) ---------- */

.competency-list {
  display: grid;
  gap: 1rem;
}

.comp-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, .88fr);
  gap: 1.15rem;
  align-items: start;
  min-height: 100%;
  padding: 1.1rem 1.15rem;

  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--border-light);
  border-inline-start: var(--card-accent-border-width) solid var(--border);
  border-radius: var(--radius-sm);

  transition:
    border-color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.comp-card:hover {
  border-inline-start-color: var(--gold);
  background: var(--gold-muted);
  transform: translateY(-2px);
}

.comp-card-title {
  margin-bottom: .4rem;

  color: var(--dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.comp-card-body {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.62;
}

.comp-card-body p {
  margin: 0 0 .72rem;
}

.comp-card-body p:last-child {
  margin-bottom: 0;
}

/* Questions panel */
.comp-card-questions {
  margin-top: 0;
  padding: .85rem .95rem .95rem;
  background: rgba(40, 123, 197, .07);
  border: 1px solid rgba(40, 123, 197, .22);
  border-inline-start: 2px solid rgba(40, 123, 197, .48);
  border-radius: var(--radius-sm);
}

.comp-card-questions h4 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .7rem;

  color: var(--link);

  font-size: .88rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.comp-card-questions h4::before {
  content: none;
}

.comp-card-questions h4 .icon {
  margin: 0;
  color: var(--sky-text);
  font-size: 1.05rem;
}

.comp-card-questions ul {
  margin: 0;
  padding-inline-start: 1.1rem;

  color: var(--muted);
  font-size: .85rem;
  line-height: 1.65;
}

.comp-card-questions li {
  margin-bottom: .5rem;
}


/* ---------- Testimonial ---------- */

.testimonial {
  max-width: 840px;
  margin: 1.15rem 0;
  padding: 1.55rem 1.65rem 1.6rem;

  border: 1px solid rgba(0, 34, 68, .08);
  border-inline-start: 4px solid var(--blue);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #f9fbfd 0%, #f3f7fb 100%);
}

.testimonial q {
  display: block;
  margin-bottom: .95rem;

  color: var(--dark);
  font-family: var(--font-body);
  font-size: clamp(1.04rem, 1.16vw, 1.14rem);
  font-weight: 560;
  font-style: normal;
  line-height: 1.68;
}

.testimonial cite {
  color: var(--blue);
  font-family: var(--font-body);
  font-size: clamp(.8rem, .9vw, .88rem);
  font-style: normal;
  font-weight: 800;
  line-height: var(--lh-small);
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* ---------- Badge ---------- */

.badge {
  display: inline-block;
  margin: .18rem .25rem .18rem 0;
  padding: 5px 13px;

  border: 1.5px solid var(--blue);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--blue);

  font-size: .72rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .04em;
  text-transform: uppercase;
}


/* ---------- Founder / About ---------- */

.founder-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: start;
  gap: var(--space-xl);
}

.founder-photo-wrap {
  padding-top: 1.5rem;
  text-align: center;
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 160px;
  height: 160px;
  margin: 0 auto;

  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--light);
}

.photo-placeholder svg {
  width: 100%;
  height: 100%;
}

.founder-photo {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--border);
  margin: 0 auto;
}

.founder-name {
  margin-top: .75rem;
  margin-bottom: .1rem;

  color: var(--dark);
  font-family: var(--font-hero);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}


/* ---------- Credentials ---------- */

.cred-table {
  width: 100%;
  border-collapse: collapse;
}

.cred-th {
  width: clamp(11rem, 22vw, 15rem);
  padding: .65rem 1.25rem .65rem 0;

  border-bottom: 1px solid var(--border-light);

  color: var(--dark);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .05em;
  text-align: left;
  text-transform: uppercase;
  vertical-align: top;
}

.cred-td {
  padding: .65rem 0;

  border-bottom: 1px solid var(--border-light);

  color: var(--muted);
  font-size: .88rem;
  line-height: 1.72;
  vertical-align: top;
}

.cred-td--last,
.cred-th--last {
  border-bottom: 0;
}

.cred-grid {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: .55rem 1.5rem;
  margin-top: .5rem;
}

.cred-row {
  display: contents;
}

.cred-label {
  padding-top: .15rem;

  color: var(--dark);
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cred-value {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.7;
}

.credential-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.credential-card {
  min-height: 100%;
  padding: 1rem 1.05rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 3px solid rgba(40, 123, 197, .48);
  border-radius: var(--radius-sm);
}

.credential-card h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .65rem;
  color: var(--dark);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.credential-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  color: var(--sky-text);
  font-size: 1.15rem;
  line-height: 1;
}

.credential-card__body {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.72;
}

.credential-card__body p {
  margin: 0;
}

/* Credential cards on dark anchor */
.section--anchor .credential-card {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12);
}

.section--anchor .credential-card h3 {
  color: var(--white);
}

.section--anchor .credential-card__body,
.section--anchor .credential-card__body li {
  color: rgba(255, 255, 255, .82);
}

.line-list {
  margin: 0;
  padding-inline-start: 1.1rem;
}

.line-list li {
  margin-bottom: .35rem;
}

.line-list li:last-child {
  margin-bottom: 0;
}


/* ---------- Pagination / empty state ---------- */

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;

  margin-top: var(--space-lg);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 2rem;
  height: 2rem;
  padding: 0 .5rem;

  border: 1px solid var(--border);
  border-radius: var(--radius-sm);

  color: var(--dark);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;

  transition:
    color .15s ease,
    background-color .15s ease,
    border-color .15s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers:focus,
.pagination .page-numbers.current {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
  text-decoration: none;
}

.pagination .prev,
.pagination .next {
  padding: 0 .85rem;
  font-size: .78rem;
  letter-spacing: .04em;
  font-weight: 700;
  background: transparent;
  border-color: var(--border);
  color: var(--dark);
  gap: .3rem;
}

.pagination .prev:hover,
.pagination .prev:focus,
.pagination .next:hover,
.pagination .next:focus {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .stat-grid,
:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .pagination,
:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .hero-proof-strip,
:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .client-context-groups,
:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .clients-grid {
  direction: rtl;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :is(
  .stat-card,
  .hero-proof-strip__item,
  .client-card
) {
  text-align: right;
}

.empty-state {
  padding: var(--space-lg) 0;
  color: var(--subtle);
  font-style: italic;
  text-align: center;
}


/* ---------- Arabic component refinements ---------- */

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .divider {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :is(.cta-inline, .action-row) {
  justify-content: flex-start;
  text-align: right;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .pathway-step {
  text-align: center;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :is(
  .narrative-context,
  .testimonial cite,
  .badge
) {
  letter-spacing: 0;
  text-transform: none;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .testimonial {
  padding: 1.25rem 1.45rem 1.25rem 1.25rem;
  text-align: right;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .badge {
  margin: .18rem 0 .18rem .25rem;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .competency-grid {
  direction: rtl;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .competency-item {
  text-align: right;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .comp-card {
  text-align: right;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .comp-card-questions summary {
  letter-spacing: 0;
  text-transform: none;
}

.comp-card-questions ul {
  margin-top: .85rem;
  font-size: .88rem;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .cred-th {
  padding: .65rem 0 .65rem 1.25rem;
  text-align: right;
  letter-spacing: 0;
  text-transform: none;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .cred-label {
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :is(.cred-td, .cred-value) {
  text-align: right;
}

/* Arabic credential grid correction:
   Keeps labels anchored on the right and values aligned beside them. */

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .cred-grid {
  grid-template-columns: 1fr 140px;
  direction: ltr;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .cred-row {
  direction: rtl;
}
/* Gold inline-start border on all blockquotes */
blockquote {
  border-inline-start: var(--card-accent-border-width) solid var(--gold);
  padding-inline-start: 1.25rem;
  margin-inline-start: 0;
}

/* ── Entrance animations ─────────────────────────────────────────────────── */

/* Default: fully visible — no-JS fallback works without JavaScript */
[data-animate] {
  opacity: 1;
  transform: none;
}

/* JS present: start invisible, transition to visible when .is-visible is added */
.js [data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}

.js [data-animate].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate],
  .js [data-animate],
  .comp-card,
  .entry-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   10. FOOTER
   Stable footer system.

   English desktop:
   [Brand / Logo]     [Navigate]     [Connect]

   Arabic desktop:
   [Connect]          [Navigate]     [Brand / Logo]

   Mobile:
   stacked.

   Goal:
   Arabic keeps the same visual quality and spacing
   as English, with the brand block on the right.
   ========================================================= */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  background: var(--dark-anchor-surface);
  border-block-start: 1px solid var(--gold);
  color: var(--white);
}

.site-footer::before {
  display: none;
}


/* ---------- Footer top ---------- */

.footer-top {
  position: relative;
  z-index: 1;
  padding: clamp(4.4rem, 7vw, 5.75rem) 2.5rem 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}


/* ---------- Desktop footer grid ---------- */

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(150px, .55fr) minmax(150px, .55fr);
  grid-template-areas: "brand nav connect";
  gap: 3rem;

  max-width: var(--wide);
  margin: 0 auto;

  align-items: start;
}

/* Expected footer HTML order:
   child 1 = brand
   child 2 = navigate
   child 3 = connect
*/

.footer-grid > :nth-child(1) {
  grid-area: brand;
}

.footer-grid > :nth-child(2) {
  grid-area: nav;
}

.footer-grid > :nth-child(3) {
  grid-area: connect;
}


/* ---------- Footer brand ---------- */

.footer-brand {
  max-width: 680px;
  min-width: 0;

  justify-self: start;
  text-align: left;
}

/* Footer logo */

.footer-brand svg,
.footer-brand .nav-logo-svg,
.footer-brand-logo svg,
.footer-brand .nav-logo svg {
  display: block;

  width: 245px;
  max-width: 245px;
  height: auto;
  max-height: 82px;

  margin: 0 0 1rem;
  overflow: visible;
}

/* Protect inline SVG logo text from Arabic/global font overrides. */

.footer-brand svg text,
.footer-brand .nav-logo-svg text,
.footer-brand-logo svg text {
  font-family: Montserrat, Arial, sans-serif;
}

.footer-brand svg text[font-family*="Open Sans"],
.footer-brand .nav-logo-svg text[font-family*="Open Sans"],
.footer-brand-logo svg text[font-family*="Open Sans"] {
  font-family: "Open Sans", Arial, sans-serif;
}

.footer-brand-name {
  margin: 0 0 .45rem;

  color: var(--white);
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-tagline {
  max-width: 680px;

  color: rgba(255, 255, 255, .86);
  font-size: .9rem;
  line-height: 1.65;
}


/* ---------- Footer service pills ---------- */

.footer-service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;

  max-width: 680px;
  margin-top: 1rem;
}

.footer-pill {
  display: inline-flex;
  align-items: center;

  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: var(--radius-pill);

  color: rgba(255, 255, 255, .9);

  font-size: .64rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* ---------- Footer columns ---------- */

.footer-col {
  min-width: 0;
  text-align: left;
}

.footer-col h4 {
  margin: 0 0 .8rem;
  padding-bottom: .45rem;

  border-bottom: 1px solid rgba(255, 255, 255, .16);

  color: rgba(255, 255, 255, .88);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: .5rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;

  color: var(--footer-link-color);

  font-size: clamp(.95rem, 1vw, 1.04rem);
  line-height: 1.65;
  text-decoration: none;

  transition: color .15s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--white);
  text-decoration: underline;
}


/* ---------- Footer bottom ---------- */

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;

  padding: .85rem 2.5rem;

  background: #001122;
}

.footer-bottom span,
.footer-bottom a {
  color: var(--footer-link-muted);

  font-size: .74rem;
  line-height: 1.4;
  text-decoration: none;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
  color: rgba(255, 255, 255, .94);
  text-decoration: underline;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}


/* ---------- Arabic footer desktop ---------- */
/* Keep the same visual quality as English.
   Brand moves to the RIGHT.
   Nav stays in the middle.
   Connect sits on the LEFT.
*/

html[dir="rtl"] .footer-grid,
html.lang-ar .footer-grid {
  direction: ltr;
  grid-template-columns: minmax(150px, .55fr) minmax(150px, .55fr) minmax(0, 1.65fr);
  grid-template-areas: "connect nav brand";
}

html[dir="rtl"] .footer-brand,
html.lang-ar .footer-brand {
  justify-self: end;
  text-align: right;
}

html[dir="rtl"] .footer-brand svg,
html[dir="rtl"] .footer-brand .nav-logo-svg,
html[dir="rtl"] .footer-brand-logo svg,
html[dir="rtl"] .footer-brand .nav-logo svg,
html.lang-ar .footer-brand svg,
html.lang-ar .footer-brand .nav-logo-svg,
html.lang-ar .footer-brand-logo svg,
html.lang-ar .footer-brand .nav-logo svg {
  margin: 0 0 1rem auto;
}

html[dir="rtl"] .footer-brand-name,
html.lang-ar .footer-brand-name {
  font-family: var(--arabic);
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .footer-tagline,
html.lang-ar .footer-tagline {
  margin-inline-start: auto;
  margin-inline-end: 0;

  font-family: var(--arabic);
  text-align: right;
}

html[dir="rtl"] .footer-service-pills,
html.lang-ar .footer-service-pills {
  justify-content: flex-end;
}

html[dir="rtl"] .footer-pill,
html.lang-ar .footer-pill {
  font-family: var(--arabic);
  font-size: .78rem;
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .footer-col,
html.lang-ar .footer-col {
  text-align: right;
}

html[dir="rtl"] .footer-col h4,
html.lang-ar .footer-col h4 {
  font-family: var(--arabic);
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .footer-links,
html.lang-ar .footer-links {
  text-align: right;
}

html[dir="rtl"] .footer-links a,
html.lang-ar .footer-links a {
  font-family: var(--arabic);
}

html[dir="rtl"] .footer-bottom,
html.lang-ar .footer-bottom {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .footer-bottom-links,
html.lang-ar .footer-bottom-links {
  flex-direction: row-reverse;
}


/* ---------- Mobile footer ---------- */

@media (max-width: 680px) {
  .footer-top {
    padding: clamp(3.2rem, 13vw, 3.8rem) 1.25rem 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "connect";
    gap: 1.75rem;
  }

  .footer-brand {
    max-width: 100%;
    justify-self: start;
    text-align: left;
  }

  .footer-brand svg,
  .footer-brand .nav-logo-svg,
  .footer-brand-logo svg,
  .footer-brand .nav-logo svg {
    width: 190px;
    max-width: 190px;
    max-height: 68px;
  }

  .footer-tagline,
  .footer-service-pills {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: .85rem 1.25rem;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: .85rem 1.1rem;
  }

  html[dir="rtl"] .footer-grid,
  html.lang-ar .footer-grid {
    direction: ltr;
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "connect";
  }

  html[dir="rtl"] .footer-brand,
  html.lang-ar .footer-brand {
    justify-self: end;
    text-align: right;
  }

  html[dir="rtl"] .footer-brand svg,
  html[dir="rtl"] .footer-brand .nav-logo-svg,
  html[dir="rtl"] .footer-brand-logo svg,
  html[dir="rtl"] .footer-brand .nav-logo svg,
  html.lang-ar .footer-brand svg,
  html.lang-ar .footer-brand .nav-logo-svg,
  html.lang-ar .footer-brand-logo svg,
  html.lang-ar .footer-brand .nav-logo svg {
    margin: 0 0 1rem auto;
  }

  html[dir="rtl"] .footer-col,
  html.lang-ar .footer-col {
    text-align: right;
  }

  html[dir="rtl"] .footer-bottom,
  html.lang-ar .footer-bottom {
    text-align: center;
  }

  html[dir="rtl"] .footer-bottom-links,
  html.lang-ar .footer-bottom-links {
    flex-direction: row;
    justify-content: center;
  }
}
/* =========================================================
   11. FORMS
   Contact forms, resource-gate modal, field states,
   validation messages, and form-level RTL handling.
   ========================================================= */


/* ---------- Base form layout ---------- */

form {
  margin: 0;
}

.form-group {
  margin: 0 0 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form {
  position: relative;
  overflow: hidden;
  margin-top: clamp(1.4rem, 3vw, 2rem);
  padding: clamp(1.3rem, 3vw, 2.1rem);
  border: 1px solid rgba(0, 34, 68, .12);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(245, 249, 253, .96));
  box-shadow: 0 18px 46px rgba(0, 34, 68, .11);
}

.contact-form::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
}

.contact-form :is(input, select, textarea) {
  background: rgba(255, 255, 255, .98);
}

.contact-form .form-protection {
  background: rgba(230, 240, 250, .5);
}

label,
.form-label {
  display: block;
  margin-bottom: .42rem;

  color: var(--dark);

  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.35;
}

.form-hint {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.form-hint--below {
  margin: .65rem 0 1rem;
}

.form-hint--center {
  margin: .8rem 0 0;
  text-align: center;
}

.form-hint--spaced {
  margin-top: 1rem;
}

input,
select,
textarea {
  width: 100%;

  border: 1px solid rgba(0, 34, 68, .2);
  border-radius: var(--radius-sm);

  background: var(--white);
  color: var(--text);

  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.4;

  transition:
    background-color .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

input,
select {
  min-height: 2.8rem;
  padding: .72rem .85rem;
}

textarea {
  min-height: 8.5rem;
  padding: .78rem .85rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--subtle);
  opacity: .78;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40, 123, 197, .08);
}

input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible {
  border-color: var(--blue);
  outline: 2px solid var(--sky-text);
  outline-offset: 2px;
  box-shadow:
    0 0 0 4px rgba(65, 183, 238, .18),
    0 8px 22px rgba(0, 34, 68, .09);
}

input.is-error,
select.is-error,
textarea.is-error,
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fffafa;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, .12);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--off);
  color: var(--subtle);
  cursor: not-allowed;
  opacity: .75;
}


/* ---------- Honeypot / anti-spam field ---------- */

.form-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* ---------- Form status messages ---------- */

.form-status {
  display: none;
  margin: .9rem 0 0;
  padding: .82rem .95rem;

  background: var(--off);
  border: 1px solid var(--border-light);
  border-inline-start: 4px solid var(--blue);
  border-radius: var(--radius-sm);

  color: var(--muted);

  font-size: .86rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 8px 20px rgba(0, 34, 68, .06);
}

.form-status.is-loading {
  display: block;

  background: #eff6ff;
  border-color: #bfdbfe;
  border-inline-start-color: var(--blue);
  color: var(--dark);
}

.form-status--success,
.form-status.is-success {
  display: block;

  background: #ecfdf5;
  border-color: #bbf7d0;
  border-inline-start-color: #059669;
  color: #065f46;
}

.form-status--error,
.form-status.is-error {
  display: block;

  background: #fff1f2;
  border-color: #fecdd3;
  border-inline-start-color: var(--danger);
  color: var(--danger);
}

/* ---------- RTL / Arabic form handling ---------- */

html[dir="rtl"] label,
html[dir="rtl"] .form-label,
html[dir="rtl"] .form-status,
html.lang-ar label,
html.lang-ar .form-label,
html.lang-ar .form-status,
html[lang^="ar"] label,
html[lang^="ar"] .form-label,
html[lang^="ar"] .form-status,
body.rtl label,
body.rtl .form-label,
body.rtl .form-status,
body.lang-ar label,
body.lang-ar .form-label,
body.lang-ar .form-status {
  font-family: var(--arabic);
  font-size: clamp(1rem, 1.05vw, 1.08rem);
  line-height: 1.65;
  letter-spacing: 0;
  text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea,
html.lang-ar input,
html.lang-ar select,
html.lang-ar textarea,
html[lang^="ar"] input,
html[lang^="ar"] select,
html[lang^="ar"] textarea,
body.rtl input,
body.rtl select,
body.rtl textarea,
body.lang-ar input,
body.lang-ar select,
body.lang-ar textarea {
  font-family: var(--arabic);
  font-size: clamp(1.05rem, 1.12vw, 1.14rem);
  line-height: 1.65;
  text-align: right;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :is(input, select) {
  min-height: 3.25rem;
  padding-block: .78rem;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) textarea {
  min-height: 9.25rem;
  padding-block: .85rem;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="tel"],
html.lang-ar input[type="email"],
html.lang-ar input[type="url"],
html.lang-ar input[type="tel"],
html[lang^="ar"] input[type="email"],
html[lang^="ar"] input[type="url"],
html[lang^="ar"] input[type="tel"],
body.rtl input[type="email"],
body.rtl input[type="url"],
body.rtl input[type="tel"],
body.lang-ar input[type="email"],
body.lang-ar input[type="url"],
body.lang-ar input[type="tel"] {
  direction: ltr;
  font-family: var(--sans);
  text-align: left;
}

html[dir="rtl"] .form-status,
html.lang-ar .form-status,
html[lang^="ar"] .form-status,
body.rtl .form-status,
body.lang-ar .form-status {
  text-align: right;
}

/* ---------- Responsive form refinements ---------- */

@media (max-width: 680px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: .85rem;
  }

}

/* =========================================================
   12. PROSE PAGES / JOURNEY
   ========================================================= */


/* ---------- Prose pages ---------- */

.prose-content {
  color: var(--muted);
}

.prose-content h2 {
  margin: 2rem 0 .6rem;

  color: var(--dark);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
}

.prose-content h2:first-child {
  margin-top: 0;
}

.prose-content h3 {
  margin: 1.45rem 0 .45rem;

  color: var(--dark);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.4;
}

.prose-content p {
  margin-bottom: .9rem;

  color: var(--muted);
  line-height: 1.78;
}

.prose-content ul,
.prose-content ol {
  margin: .5rem 0 1rem 1.5rem;

  color: var(--muted);
  line-height: 1.85;
}

.prose-content li {
  margin-bottom: .3rem;
}

.prose-content a {
  color: var(--blue);
  text-decoration: underline;
}

.prose-content a:hover,
.prose-content a:focus {
  color: var(--dark);
}

/* ---------- Legal page jump-link nav ---------- */

.prose-toc {
  margin-bottom: 1.5rem;
  padding: .75rem 1rem;

  background: var(--off);
  border: 1px solid var(--border-light);
  border-inline-start: 3px solid var(--blue);
  border-radius: var(--radius-sm);
}

.prose-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: .3rem .85rem;
}

.prose-toc a {
  color: var(--blue);
  font-size: .83rem;
  text-decoration: none;
}

.prose-toc a:hover,
.prose-toc a:focus-visible {
  text-decoration: underline;
}

.prose-toc + h2 {
  margin-top: 0 !important;
}


/* ---------- Journey timeline ---------- */

.journey-steps {
  margin-top: 1.5rem;
  padding: 0;

  list-style: none;
  counter-reset: step;
}

.journey-step {
  position: relative;
  display: flex;
  gap: 1.25rem;

  padding-bottom: 1.5rem;
  padding-inline-start: 1.5rem;
  border-inline-start: 2px solid var(--blue);

  counter-increment: step;
}

.journey-step::before {
  content: counter(step);

  position: absolute;
  top: 0;
  left: -1.12rem;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;

  background: var(--dark);
  color: var(--white);

  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.journey-step:last-child {
  border-inline-start-color: transparent;
}

.journey-step > div > strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .35rem;
  line-height: 1.35;
}


/* ---------- Arabic prose / journey refinements ---------- */

html[dir="rtl"] .prose-content,
html.lang-ar .prose-content {
  font-family: var(--arabic);
  text-align: right;
}

html[dir="rtl"] .prose-content h2,
html[dir="rtl"] .prose-content h3,
html.lang-ar .prose-content h2,
html.lang-ar .prose-content h3 {
  font-family: var(--arabic);
  letter-spacing: 0;
  text-align: right;
}

html[dir="rtl"] .prose-content ul,
html[dir="rtl"] .prose-content ol,
html.lang-ar .prose-content ul,
html.lang-ar .prose-content ol {
  margin-inline-start: 1.5rem;
  margin-inline-end: 0;
  padding-inline: 0;
}

html[dir="rtl"] .journey-step::before,
html.lang-ar .journey-step::before {
  right: -1.12rem;
  left: auto;

  font-family: var(--arabic);
}

/* ---------- RTL journey timeline spacing ---------- */

html[dir="rtl"] .journey-step,
html.lang-ar .journey-step,
html[lang^="ar"] .journey-step,
body.rtl .journey-step,
body.lang-ar .journey-step {
  padding-inline-start: 4rem;
  padding-inline-end: 0;
  text-align: right;
}

html[dir="rtl"] .journey-step > div,
html.lang-ar .journey-step > div,
html[lang^="ar"] .journey-step > div,
body.rtl .journey-step > div,
body.lang-ar .journey-step > div {
  min-width: 0;
}

html[dir="rtl"] .journey-step::before,
html.lang-ar .journey-step::before,
html[lang^="ar"] .journey-step::before,
body.rtl .journey-step::before,
body.lang-ar .journey-step::before {
  right: -1.12rem;
  left: auto;
}

/* =========================================================
   13. ACCESSIBILITY / FOCUS
   ========================================================= */


/* ---------- Global focus system ---------- */

:focus-visible {
  outline: 2px solid var(--sky-text);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}


/* ---------- Focus on dark backgrounds ---------- */

.hero :focus-visible,
.section--dark :focus-visible,
.section--mid :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--sky);
}


/* ---------- Interactive element focus ---------- */

.btn:focus-visible,
.nav-cta:focus-visible,
.menu-toggle:focus-visible,
.lang-trigger:focus-visible,
.lang-option:focus-visible,
  .challenge-pill:focus-visible {
  outline: 2px solid var(--sky-text);
  outline-offset: 3px;
}

/* Prevent focus outlines on edge-aligned controls from being clipped visually. */

.nav-logo:focus-visible,
.menu-toggle:focus-visible,
.lang-trigger:focus-visible {
  outline-offset: 2px;
}

.hero .btn:focus-visible,
.section--dark .btn:focus-visible,
.section--mid .btn:focus-visible,
.cta-band .btn:focus-visible,
.site-footer .btn:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--sky);
}


/* ---------- Link focus readability ---------- */

a:focus-visible {
  text-decoration: underline;
}


/* ---------- Menu toggle accessibility state ---------- */

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ---------- Reduced motion ---------- */
/* Respect users who prefer reduced motion. */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* =========================================================
   14. RESPONSIVE LAYOUT
   Header-specific responsive rules live in Section 5.
   Footer-specific responsive rules live in Section 10.
   Hero typography and hero RTL rules live in Section 6.
   This section handles content, grids, cards, forms, and page layout only.
   ========================================================= */


/* ---------- Tablet / small desktop ---------- */

@media (max-width: 1080px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .competency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-proof-strip,
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-prototype__hero-inner {
    grid-template-columns: 1fr;
  }

  .evidence-prototype__shapes {
    max-width: 34rem;
    justify-self: start;
  }

  .evidence-prototype__case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-prototype__client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-prototype__client:nth-child(3n) {
    border-inline-end: 1px solid rgba(0, 34, 68, .1);
  }

  .evidence-prototype__client:nth-child(2n) {
    border-inline-end: 0;
  }

  .evidence-prototype__stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-prototype__stat:nth-child(2n) {
    border-inline-end: 0;
  }

  .founder-split {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .founder-photo-wrap {
    padding-top: 0;
  }

  .pathway {
    flex-wrap: wrap;
    gap: 1.5rem 0;
  }

  .pathway::before {
    display: none;
  }

  .pathway-step {
    flex: 0 0 50%;
  }
}


/* ---------- Mobile ---------- */

@media (max-width: 680px) {
  .section,
  .section--white,
  .section--off,
  .section--light {
    padding: var(--section-y-mobile) 1.25rem;
  }

  .section--mid,
  .section--dark {
    padding-top: 3rem;
    padding-bottom: 3.2rem;
  }

  .section--craft::before {
    inset-block-end: -1.25rem;
    inset-inline-end: -2.75rem;
    inline-size: min(84vw, 24rem);
    background: rgba(126, 218, 255, .13);
  }

  .section--visual-masthead::before {
    inline-size: min(76vw, 20rem);
    background: rgba(126, 218, 255, .11);
  }

  .section--white + .section--off,
  .section--off + .section--white,
  .section--white + .section--light,
  .section--light + .section--white {
    padding-top: 2.35rem;
  }

  .section-header {
    margin-bottom: 1.35rem;
  }

  .hero {
    padding: 3.5rem 1.25rem 3rem;
  }

  .home .hero::before {
    inset-block-end: -3.75rem;
    inset-inline-end: -5.25rem;
    inline-size: min(82vw, 22rem);
    background: rgba(126, 218, 255, .16);
  }

  .hero__watermark {
    inset-inline-end: -6%;
    opacity: 0.12;
  }

  :where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .home .hero::before {
    inset-inline-start: -5.25rem;
    inset-inline-end: auto;
  }

  .hero-buttons,
  .cta-inline,
  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-buttons .btn,
  .cta-inline .btn,
  .action-row .btn {
    width: 100%;
  }

  .entry-card .btn--primary-action {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    white-space: normal;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .clients-grid,
  .competency-grid {
    grid-template-columns: 1fr;
  }

  .evidence-prototype__hero {
    padding-inline: 1.25rem;
  }

  .evidence-prototype__hero h1 {
    font-size: 2.35rem;
  }

  .evidence-prototype__shapes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
    min-height: 5.5rem;
  }

  .evidence-prototype__shapes .shape--arc {
    inline-size: 2.8rem;
  }

  .evidence-prototype__shapes .shape--triangle {
    border-inline-start-width: 1rem;
    border-inline-end-width: 1rem;
    border-block-start-width: 2.35rem;
  }

  .evidence-prototype__shapes .shape--square,
  .evidence-prototype__shapes .shape--dots {
    inline-size: 2.55rem;
  }

  .evidence-prototype__case-grid,
  .evidence-prototype__stat-strip {
    grid-template-columns: 1fr;
  }

  .evidence-prototype__client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-prototype__case {
    padding: 1.15rem 1rem 1rem;
  }

  .evidence-prototype__case--secondary {
    padding: 1rem .95rem .95rem;
  }

  .evidence-prototype__case--secondary .evidence-prototype__case-body {
    gap: .65rem;
  }

  .evidence-prototype__case--secondary .evidence-prototype__case-body p,
  .evidence-prototype__case--secondary .evidence-prototype__outcome p {
    font-size: .84rem;
    line-height: 1.5;
  }

  .evidence-prototype__case-head {
    grid-template-columns: 3.4rem minmax(0, 1fr);
  }

  .evidence-prototype__case-icon {
    inline-size: 3rem;
  }

  .evidence-prototype__client,
  .evidence-prototype__client:nth-child(2n),
  .evidence-prototype__client:nth-child(3n),
  .evidence-prototype__stat,
  .evidence-prototype__stat:nth-child(2n) {
    border-inline-end: 0;
  }

  .evidence-prototype__client {
    grid-template-columns: minmax(5.8rem, .38fr) minmax(0, 1fr);
    min-height: auto;
  }

  .evidence-prototype__client-logo img {
    inline-size: min(100%, 7.6rem);
    max-height: 2.8rem;
  }

  /* Compact 2-column client grid on mobile */
  .evidence-prototype__client {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: .7rem .75rem;
    gap: .35rem;
    align-items: start;
    border-inline-end: 1px solid rgba(0, 34, 68, .1);
  }

  .evidence-prototype__client:nth-child(2n) {
    border-inline-end: 0;
  }

  .evidence-prototype__client p {
    display: none;
  }

  .evidence-prototype__client-logo {
    min-height: 2rem;
  }

  .evidence-prototype__client-logo img {
    inline-size: min(100%, 6.5rem);
    max-height: 2rem;
  }

  .evidence-prototype__client h3 {
    margin-bottom: 0;
    font-size: .74rem;
  }

  .evidence-prototype__client--summary {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: .75rem;
    padding: .85rem .75rem;
  }

  .evidence-prototype__client--summary p {
    display: block;
    max-width: none;
  }

  .evidence-prototype__stat-strip {
    margin-top: 1.35rem;
  }

  .evidence-prototype__stat {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .evidence-prototype__quote {
    margin-top: 1.5rem;
    padding: 1.1rem 1rem;
  }

  .evidence-prototype__testimonial-grid {
    grid-template-columns: 1fr;
  }

  .evidence-prototype__testimonial-grid .evidence-prototype__quote {
    margin-top: 0;
  }

  /* Surface stat strip above client grid on mobile */
  .evidence-prototype__clients-section .wrap-wide {
    display: flex;
    flex-direction: column;
  }

  .evidence-prototype__clients-section .wrap-wide > .evidence-prototype__section-head { order: 1; }
  .evidence-prototype__clients-section .wrap-wide > .evidence-prototype__stat-strip   { order: 2; margin-top: 0; margin-bottom: 1.35rem; }
  .evidence-prototype__clients-section .wrap-wide > .evidence-prototype__client-grid  { order: 3; }
  .evidence-prototype__clients-section .wrap-wide > .evidence-prototype__logo-disclaimer { order: 4; }
  .evidence-prototype__clients-section .wrap-wide > .evidence-prototype__testimonials { order: 5; }

  .hero-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-context-group {
    padding: .7rem;
  }

  .grid-3,
  .grid-4,
  .competency-grid {
    margin-top: 1.25rem;
  }

  .card,
  .case-card,
  .insight-card {
    padding: 1.25rem 1.15rem;
  }

  .pathway-step {
    flex: 0 0 100%;
  }

  .cred-th,
  .cred-td {
    display: block;
    width: 100%;
    padding-inline-end: 0;
  }

  .cred-th {
    padding-bottom: .2rem;
    border-bottom: 0;
  }

  .cred-grid {
    grid-template-columns: 1fr;
    gap: .2rem;
  }

  .cred-label {
    padding-top: .65rem;
  }

  .cta-band {
    padding: 2.7rem 1.25rem;
  }

  .cta-band h2 {
    font-size: clamp(1.85rem, 8vw, 2.25rem);
  }

  .cta-band > p {
    max-width: 30rem;
    margin-bottom: 1.2rem;
  }

  .cta-band > .btn {
    width: min(100%, 18rem);
  }

  .cta-secondary-links {
    margin-top: 1.2rem;
  }

  .cta-secondary-links a {
    padding-block: .18rem;
  }

}


/* ---------- Small mobile ---------- */

@media (max-width: 420px) {
  .section,
  .section--white,
  .section--off,
  .section--light,
  .hero,
  .cta-band {
    padding-inline: 1rem;
  }

  .btn {
    white-space: normal;
  }

  .card,
  .case-card,
  .insight-card,
  .card-ghost {
    padding-inline: 1rem;
  }

  .card,
  .case-card,
  .insight-card {
    border-top-width: 2px;
  }
}


/* ---------- Arabic responsive layout refinements ---------- */
/* Layout only. Do not place Arabic hero typography here. */

@media (max-width: 680px) {
  :where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .section-header {
    margin-inline-start: auto;
    margin-inline-end: 0;
    text-align: right;
  }

  :where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :where(.cta-inline, .action-row) {
    align-items: stretch;
  }

  :where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .cred-th {
    padding-inline-start: 0;
  }

  :where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .cred-grid {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  :where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .competency-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   15. RTL / ARABIC CONTENT
   Header RTL rules live in Section 5.
   Footer RTL rules live in Section 10.
   Hero and page masthead rules live in Section 6.

   This section handles Arabic page content only.

   Critical rule:
   Arabic .pretitle labels are section eyebrow labels.
   They must remain smaller than h2 but visible enough to read as intentional.
   ========================================================= */


/* ---------- Page direction ---------- */

html[dir="rtl"],
html.lang-ar,
html[lang^="ar"],
body.rtl,
body.lang-ar {
  direction: rtl;
}


/* ---------- Arabic font system ---------- */

html[dir="rtl"] body,
html.lang-ar body,
html[lang^="ar"] body,
body.rtl,
body.lang-ar {
  font-family: var(--arabic);
  font-size: 16.1px;
  line-height: 1.85;
}

html[dir="rtl"] :is(
  p,
  li,
  label,
  input,
  textarea,
  select,
  button,
  .btn,
  .wp-block-button__link
),
html.lang-ar :is(
  p,
  li,
  label,
  input,
  textarea,
  select,
  button,
  .btn,
  .wp-block-button__link
),
html[lang^="ar"] :is(
  p,
  li,
  label,
  input,
  textarea,
  select,
  button,
  .btn,
  .wp-block-button__link
),
body.rtl :is(
  p,
  li,
  label,
  input,
  textarea,
  select,
  button,
  .btn,
  .wp-block-button__link
),
body.lang-ar :is(
  p,
  li,
  label,
  input,
  textarea,
  select,
  button,
  .btn,
  .wp-block-button__link
) {
  font-family: var(--arabic);
  letter-spacing: 0;
}


/* ---------- Global Arabic content alignment ---------- */

html[dir="rtl"] :is(
  .site-content,
  .entry-content,
  .page-content,
  .post-content,
  .prose-content,
  .wp-block-group,
  .wp-block-group__inner-container,
  .wp-block-columns,
  .wp-block-column,
  .wp-block-cover,
  .wp-block-media-text,
  .wp-block-query,
  .wp-block-post-content,
  .wrap,
  .wrap-wide,
  .section-header,
  .mw-prose,
  .mw-table,
  .mw-steps,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  figcaption,
  .pretitle
),
html.lang-ar :is(
  .site-content,
  .entry-content,
  .page-content,
  .post-content,
  .prose-content,
  .wp-block-group,
  .wp-block-group__inner-container,
  .wp-block-columns,
  .wp-block-column,
  .wp-block-cover,
  .wp-block-media-text,
  .wp-block-query,
  .wp-block-post-content,
  .wrap,
  .wrap-wide,
  .section-header,
  .mw-prose,
  .mw-table,
  .mw-steps,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  figcaption,
  .pretitle
),
html[lang^="ar"] :is(
  .site-content,
  .entry-content,
  .page-content,
  .post-content,
  .prose-content,
  .wp-block-group,
  .wp-block-group__inner-container,
  .wp-block-columns,
  .wp-block-column,
  .wp-block-cover,
  .wp-block-media-text,
  .wp-block-query,
  .wp-block-post-content,
  .wrap,
  .wrap-wide,
  .section-header,
  .mw-prose,
  .mw-table,
  .mw-steps,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  figcaption,
  .pretitle
),
body.rtl :is(
  .site-content,
  .entry-content,
  .page-content,
  .post-content,
  .prose-content,
  .wp-block-group,
  .wp-block-group__inner-container,
  .wp-block-columns,
  .wp-block-column,
  .wp-block-cover,
  .wp-block-media-text,
  .wp-block-query,
  .wp-block-post-content,
  .wrap,
  .wrap-wide,
  .section-header,
  .mw-prose,
  .mw-table,
  .mw-steps,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  figcaption,
  .pretitle
),
body.lang-ar :is(
  .site-content,
  .entry-content,
  .page-content,
  .post-content,
  .prose-content,
  .wp-block-group,
  .wp-block-group__inner-container,
  .wp-block-columns,
  .wp-block-column,
  .wp-block-cover,
  .wp-block-media-text,
  .wp-block-query,
  .wp-block-post-content,
  .wrap,
  .wrap-wide,
  .section-header,
  .mw-prose,
  .mw-table,
  .mw-steps,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  figcaption,
  .pretitle
) {
  direction: rtl;
  text-align: right;
}


/* ---------- WordPress alignment overrides for Arabic pages ---------- */

html[dir="rtl"] :is(.has-text-align-left, .has-text-align-center, .has-text-align-right, .text-left, .text-center, .text-right),
html.lang-ar :is(.has-text-align-left, .has-text-align-center, .has-text-align-right, .text-left, .text-center, .text-right),
html[lang^="ar"] :is(.has-text-align-left, .has-text-align-center, .has-text-align-right, .text-left, .text-center, .text-right),
body.rtl :is(.has-text-align-left, .has-text-align-center, .has-text-align-right, .text-left, .text-center, .text-right),
body.lang-ar :is(.has-text-align-left, .has-text-align-center, .has-text-align-right, .text-left, .text-center, .text-right) {
  text-align: right !important;
}


/* ---------- Arabic heading rhythm outside hero / masthead ---------- */

html[dir="rtl"] h1,
html.lang-ar h1,
html[lang^="ar"] h1,
body.rtl h1,
body.lang-ar h1 {
  font-family: var(--arabic);
  font-size: var(--fs-ar-h1);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0;
}

html[dir="rtl"] h2,
html.lang-ar h2,
html[lang^="ar"] h2,
body.rtl h2,
body.lang-ar h2 {
  font-family: var(--arabic);
  font-size: var(--fs-ar-h2);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

html[dir="rtl"] h3,
html.lang-ar h3,
html[lang^="ar"] h3,
body.rtl h3,
body.lang-ar h3 {
  font-family: var(--arabic);
  font-size: var(--fs-ar-h3);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
}


/* ---------- Arabic pretitle / eyebrow labels ---------- */
/* Examples:
   <span class="pretitle pretitle--blue">ملف المؤسس</span>
   <span class="pretitle pretitle--blue">مهام مختارة</span>
   <span class="pretitle pretitle--light">المؤسس</span>
*/

html[dir="rtl"] .pretitle,
html.lang-ar .pretitle,
html[lang^="ar"] .pretitle,
body.rtl .pretitle,
body.lang-ar .pretitle {
  display: block;
  margin-bottom: .62rem;

  font-family: var(--arabic);
  font-size: clamp(.86rem, .95vw, .94rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}

html[dir="rtl"] :is(.section--white, .section--off, .section--light) .pretitle,
html.lang-ar :is(.section--white, .section--off, .section--light) .pretitle,
html[lang^="ar"] :is(.section--white, .section--off, .section--light) .pretitle,
body.rtl :is(.section--white, .section--off, .section--light) .pretitle,
body.lang-ar :is(.section--white, .section--off, .section--light) .pretitle {
  color: var(--link);
  font-size: clamp(.86rem, .95vw, .94rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
}

html[dir="rtl"] .pretitle--blue,
html.lang-ar .pretitle--blue,
html[lang^="ar"] .pretitle--blue,
body.rtl .pretitle--blue,
body.lang-ar .pretitle--blue {
  color: var(--link);
}

html[dir="rtl"] .section--mid .pretitle--light,
html[dir="rtl"] .section--dark .pretitle--light,
html.lang-ar .section--mid .pretitle--light,
html.lang-ar .section--dark .pretitle--light,
html[lang^="ar"] .section--mid .pretitle--light,
html[lang^="ar"] .section--dark .pretitle--light,
body.rtl .section--mid .pretitle--light,
body.rtl .section--dark .pretitle--light,
body.lang-ar .section--mid .pretitle--light,
body.lang-ar .section--dark .pretitle--light {
  color: rgba(255, 255, 255, .9);
  font-size: clamp(.82rem, .9vw, .9rem);
  font-weight: 800;
  line-height: 1.55;
}

html[dir="rtl"] .pretitle--light,
html.lang-ar .pretitle--light,
html[lang^="ar"] .pretitle--light,
body.rtl .pretitle--light,
body.lang-ar .pretitle--light {
  color: rgba(255, 255, 255, .88);
}


/* ---------- Arabic section headers ---------- */

html[dir="rtl"] .section-header,
html.lang-ar .section-header,
html[lang^="ar"] .section-header,
body.rtl .section-header,
body.lang-ar .section-header {
  max-width: var(--prose);
  margin-inline-start: 0;
  margin-inline-end: auto;
  text-align: right !important;
}

html[dir="rtl"] .section-header :is(h1, h2, h3, h4, p, .pretitle, .mw-prose),
html.lang-ar .section-header :is(h1, h2, h3, h4, p, .pretitle, .mw-prose),
html[lang^="ar"] .section-header :is(h1, h2, h3, h4, p, .pretitle, .mw-prose),
body.rtl .section-header :is(h1, h2, h3, h4, p, .pretitle, .mw-prose),
body.lang-ar .section-header :is(h1, h2, h3, h4, p, .pretitle, .mw-prose) {
  margin-inline-start: 0;
  margin-inline-end: auto;
  text-align: right !important;
}

html[dir="rtl"] .section-header--center,
html[dir="rtl"] .section-header--center :is(h1, h2, h3, h4, p, .pretitle, .mw-prose),
html.lang-ar .section-header--center,
html.lang-ar .section-header--center :is(h1, h2, h3, h4, p, .pretitle, .mw-prose),
html[lang^="ar"] .section-header--center,
html[lang^="ar"] .section-header--center :is(h1, h2, h3, h4, p, .pretitle, .mw-prose),
body.rtl .section-header--center,
body.rtl .section-header--center :is(h1, h2, h3, h4, p, .pretitle, .mw-prose),
body.lang-ar .section-header--center,
body.lang-ar .section-header--center :is(h1, h2, h3, h4, p, .pretitle, .mw-prose) {
  text-align: right !important;
}

html[dir="rtl"] .section-header--force-center,
html[dir="rtl"] .section-header--force-center :is(h1, h2, h3, h4, p, .pretitle, .mw-prose),
html.lang-ar .section-header--force-center,
html.lang-ar .section-header--force-center :is(h1, h2, h3, h4, p, .pretitle, .mw-prose),
html[lang^="ar"] .section-header--force-center,
html[lang^="ar"] .section-header--force-center :is(h1, h2, h3, h4, p, .pretitle, .mw-prose),
body.rtl .section-header--force-center,
body.rtl .section-header--force-center :is(h1, h2, h3, h4, p, .pretitle, .mw-prose),
body.lang-ar .section-header--force-center,
body.lang-ar .section-header--force-center :is(h1, h2, h3, h4, p, .pretitle, .mw-prose) {
  margin-inline: auto;
  text-align: center !important;
}


/* ---------- Arabic prose width ---------- */

html[dir="rtl"] :is(.mw-prose, .mw-table, .mw-steps),
html.lang-ar :is(.mw-prose, .mw-table, .mw-steps),
html[lang^="ar"] :is(.mw-prose, .mw-table, .mw-steps),
body.rtl :is(.mw-prose, .mw-table, .mw-steps),
body.lang-ar :is(.mw-prose, .mw-table, .mw-steps) {
  margin-inline-start: 0;
  margin-inline-end: auto;
  text-align: right;
}


/* ---------- Arabic dark section contrast ---------- */

html[dir="rtl"] :is(.section--mid p, .section--dark p, .craft-intro, .text-craft-note),
html.lang-ar :is(.section--mid p, .section--dark p, .craft-intro, .text-craft-note),
html[lang^="ar"] :is(.section--mid p, .section--dark p, .craft-intro, .text-craft-note),
body.rtl :is(.section--mid p, .section--dark p, .craft-intro, .text-craft-note),
body.lang-ar :is(.section--mid p, .section--dark p, .craft-intro, .text-craft-note) {
  color: rgba(255, 255, 255, .94);
}


/* ---------- Arabic grids ---------- */

html[dir="rtl"] :is(.grid-2, .grid-3, .grid-4),
html.lang-ar :is(.grid-2, .grid-3, .grid-4),
html[lang^="ar"] :is(.grid-2, .grid-3, .grid-4),
body.rtl :is(.grid-2, .grid-3, .grid-4),
body.lang-ar :is(.grid-2, .grid-3, .grid-4) {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .grid-2,
html.lang-ar .grid-2,
html[lang^="ar"] .grid-2,
body.rtl .grid-2,
body.lang-ar .grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[dir="rtl"] .grid-3,
html.lang-ar .grid-3,
html[lang^="ar"] .grid-3,
body.rtl .grid-3,
body.lang-ar .grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[dir="rtl"] .grid-4,
html.lang-ar .grid-4,
html[lang^="ar"] .grid-4,
body.rtl .grid-4,
body.lang-ar .grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* ---------- Arabic cards ---------- */

html[dir="rtl"] :is(.card, .asset-card, .case-card, .insight-card),
html.lang-ar :is(.card, .asset-card, .case-card, .insight-card),
html[lang^="ar"] :is(.card, .asset-card, .case-card, .insight-card),
body.rtl :is(.card, .asset-card, .case-card, .insight-card),
body.lang-ar :is(.card, .asset-card, .case-card, .insight-card) {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] :is(.card h1, .card h2, .card h3, .asset-title, .asset-title-link, .case-card-title, .insight-card-title),
html.lang-ar :is(.card h1, .card h2, .card h3, .asset-title, .asset-title-link, .case-card-title, .insight-card-title),
html[lang^="ar"] :is(.card h1, .card h2, .card h3, .asset-title, .asset-title-link, .case-card-title, .insight-card-title),
body.rtl :is(.card h1, .card h2, .card h3, .asset-title, .asset-title-link, .case-card-title, .insight-card-title),
body.lang-ar :is(.card h1, .card h2, .card h3, .asset-title, .asset-title-link, .case-card-title, .insight-card-title) {
  font-family: var(--arabic);
  line-height: 1.5;
  text-align: right;
}

html[dir="rtl"] :is(.card p, .asset-body, .text-card-body, .case-card-excerpt, .insight-card-excerpt),
html.lang-ar :is(.card p, .asset-body, .text-card-body, .case-card-excerpt, .insight-card-excerpt),
html[lang^="ar"] :is(.card p, .asset-body, .text-card-body, .case-card-excerpt, .insight-card-excerpt),
body.rtl :is(.card p, .asset-body, .text-card-body, .case-card-excerpt, .insight-card-excerpt),
body.lang-ar :is(.card p, .asset-body, .text-card-body, .case-card-excerpt, .insight-card-excerpt) {
  color: var(--muted);
  font-family: var(--arabic);
  font-size: var(--size-body);
  line-height: var(--lh-body);
  text-align: right;
}

html[dir="rtl"] :is(.asset-tag, .badge, .case-card-meta, .insight-card-date),
html.lang-ar :is(.asset-tag, .badge, .case-card-meta, .insight-card-date),
html[lang^="ar"] :is(.asset-tag, .badge, .case-card-meta, .insight-card-date),
body.rtl :is(.asset-tag, .badge, .case-card-meta, .insight-card-date),
body.lang-ar :is(.asset-tag, .badge, .case-card-meta, .insight-card-date) {
  font-family: var(--arabic);
  font-size: .72rem;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}

html[dir="rtl"] :is(.card--flex, .asset-card),
html.lang-ar :is(.card--flex, .asset-card),
html[lang^="ar"] :is(.card--flex, .asset-card),
body.rtl :is(.card--flex, .asset-card),
body.lang-ar :is(.card--flex, .asset-card) {
  align-items: stretch;
}

html[dir="rtl"] :is(.asset-tag, .badge),
html.lang-ar :is(.asset-tag, .badge),
html[lang^="ar"] :is(.asset-tag, .badge),
body.rtl :is(.asset-tag, .badge),
body.lang-ar :is(.asset-tag, .badge) {
  align-self: flex-start;
  margin-inline-start: 0;
  margin-inline-end: auto;
}

html[dir="rtl"] :is(.asset-card .btn, .card--flex .btn),
html.lang-ar :is(.asset-card .btn, .card--flex .btn),
html[lang^="ar"] :is(.asset-card .btn, .card--flex .btn),
body.rtl :is(.asset-card .btn, .card--flex .btn),
body.lang-ar :is(.asset-card .btn, .card--flex .btn) {
  align-self: stretch;
  justify-content: center;
  text-align: center;
}

html[dir="rtl"] :is(.card-note, .text-sub-tight, .text-sub-note),
html.lang-ar :is(.card-note, .text-sub-tight, .text-sub-note),
html[lang^="ar"] :is(.card-note, .text-sub-tight, .text-sub-note),
body.rtl :is(.card-note, .text-sub-tight, .text-sub-note),
body.lang-ar :is(.card-note, .text-sub-tight, .text-sub-note) {
  text-align: right;
}


/* ---------- Arabic dark transparent cards ---------- */

html[dir="rtl"] .card-ghost,
html.lang-ar .card-ghost,
html[lang^="ar"] .card-ghost,
body.rtl .card-ghost,
body.lang-ar .card-ghost {
  text-align: right;
}


/* ---------- Arabic buttons and action rows ---------- */

html[dir="rtl"] :is(.btn, .wp-block-button__link),
html.lang-ar :is(.btn, .wp-block-button__link),
html[lang^="ar"] :is(.btn, .wp-block-button__link),
body.rtl :is(.btn, .wp-block-button__link),
body.lang-ar :is(.btn, .wp-block-button__link) {
  font-family: var(--arabic);
  letter-spacing: 0;
  word-spacing: .03em;
}

html[dir="rtl"] :is(.cta-inline, .action-row),
html.lang-ar :is(.cta-inline, .action-row),
html[lang^="ar"] :is(.cta-inline, .action-row),
body.rtl :is(.cta-inline, .action-row),
body.lang-ar :is(.cta-inline, .action-row) {
  direction: rtl;
  justify-content: flex-start;
  text-align: right;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) #self-assessment .cta-inline {
  margin-top: .75rem;
}


/* ---------- Arabic lists ---------- */

html[dir="rtl"] :is(ul, ol),
html.lang-ar :is(ul, ol),
html[lang^="ar"] :is(ul, ol),
body.rtl :is(ul, ol),
body.lang-ar :is(ul, ol) {
  padding-inline-start: 1.3rem;
  padding-inline-end: 0;
}

html[dir="rtl"] li,
html.lang-ar li,
html[lang^="ar"] li,
body.rtl li,
body.lang-ar li {
  padding-inline-start: .1rem;
  padding-inline-end: 0;
}


/* ---------- Arabic divider ---------- */

html[dir="rtl"] .divider,
html.lang-ar .divider,
html[lang^="ar"] .divider,
body.rtl .divider,
body.lang-ar .divider {
  margin-inline-start: 0;
  margin-inline-end: auto;
}


/* ---------- Arabic pathway ---------- */

html[dir="rtl"] .pathway,
html.lang-ar .pathway,
html[lang^="ar"] .pathway,
body.rtl .pathway,
body.lang-ar .pathway {
  direction: rtl;
}

html[dir="rtl"] .pathway-step,
html.lang-ar .pathway-step,
html[lang^="ar"] .pathway-step,
body.rtl .pathway-step,
body.lang-ar .pathway-step {
  text-align: center;
}


/* ---------- Arabic CRAFT ---------- */

html[dir="rtl"] .craft-example,
html.lang-ar .craft-example,
html[lang^="ar"] .craft-example,
body.rtl .craft-example,
body.lang-ar .craft-example {
  text-align: right;
  border-inline-start: 0;
  border-inline-end: 2px solid var(--sky);
}

html[dir="rtl"] .craft-letter,
html.lang-ar .craft-letter,
html[lang^="ar"] .craft-letter,
body.rtl .craft-letter,
body.lang-ar .craft-letter {
  text-align: right;
}

html[dir="rtl"] :is(.craft-title, .craft-body, .craft-intro),
html.lang-ar :is(.craft-title, .craft-body, .craft-intro),
html[lang^="ar"] :is(.craft-title, .craft-body, .craft-intro),
body.rtl :is(.craft-title, .craft-body, .craft-intro),
body.lang-ar :is(.craft-title, .craft-body, .craft-intro) {
  font-family: var(--arabic);
  text-align: right;
}


/* ---------- Arabic narrative, badges, and testimonials ---------- */

html[dir="rtl"] :is(.narrative-context, .testimonial cite, .badge),
html.lang-ar :is(.narrative-context, .testimonial cite, .badge),
html[lang^="ar"] :is(.narrative-context, .testimonial cite, .badge),
body.rtl :is(.narrative-context, .testimonial cite, .badge),
body.lang-ar :is(.narrative-context, .testimonial cite, .badge) {
  font-family: var(--arabic);
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .testimonial,
html.lang-ar .testimonial,
html[lang^="ar"] .testimonial,
body.rtl .testimonial,
body.lang-ar .testimonial {
  padding: 1.25rem 1.45rem 1.25rem 1.25rem;
  text-align: right;
}

html[dir="rtl"] .testimonial q,
html[dir="rtl"] .testimonial cite,
html.lang-ar .testimonial q,
html.lang-ar .testimonial cite,
html[lang^="ar"] .testimonial q,
html[lang^="ar"] .testimonial cite,
body.rtl .testimonial q,
body.rtl .testimonial cite,
body.lang-ar .testimonial q,
body.lang-ar .testimonial cite {
  font-family: var(--arabic);
  font-style: normal;
  text-align: right;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .testimonial q {
  color: var(--dark);
  font-size: clamp(1.13rem, 1.25vw, 1.24rem);
  font-weight: 600;
  line-height: 1.9;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .testimonial cite {
  color: #005f99;
  font-size: clamp(.98rem, 1vw, 1.05rem);
  font-weight: 800;
  line-height: 1.65;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :is(em, i, cite) {
  font-family: var(--arabic);
  font-style: normal;
  letter-spacing: 0;
}

html[dir="rtl"] .badge,
html.lang-ar .badge,
html[lang^="ar"] .badge,
body.rtl .badge,
body.lang-ar .badge {
  margin: .18rem 0 .18rem .25rem;
}


/* ---------- Arabic clients and competency grids ---------- */

html[dir="rtl"] .clients-grid,
html.lang-ar .clients-grid,
html[lang^="ar"] .clients-grid,
body.rtl .clients-grid,
body.lang-ar .clients-grid {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .competency-grid,
html.lang-ar .competency-grid,
html[lang^="ar"] .competency-grid,
body.rtl .competency-grid,
body.lang-ar .competency-grid {
  direction: rtl;
}

html[dir="rtl"] .competency-item,
html.lang-ar .competency-item,
html[lang^="ar"] .competency-item,
body.rtl .competency-item,
body.lang-ar .competency-item {
  text-align: right;
}

html[dir="rtl"] .competency-item strong,
html.lang-ar .competency-item strong,
html[lang^="ar"] .competency-item strong,
body.rtl .competency-item strong,
body.lang-ar .competency-item strong {
  font-family: var(--arabic);
  text-align: right;
}


/* ---------- Arabic founder / about ---------- */

html[dir="rtl"] .founder-split,
html.lang-ar .founder-split,
html[lang^="ar"] .founder-split,
body.rtl .founder-split,
body.lang-ar .founder-split {
  direction: rtl;
}

html[dir="rtl"] .founder-name,
html.lang-ar .founder-name,
html[lang^="ar"] .founder-name,
body.rtl .founder-name,
body.lang-ar .founder-name {
  font-family: var(--arabic);
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
}

html[dir="rtl"] .founder-photo-wrap .text-role,
html[dir="rtl"] .founder-photo-wrap .text-org,
html.lang-ar .founder-photo-wrap .text-role,
html.lang-ar .founder-photo-wrap .text-org,
html[lang^="ar"] .founder-photo-wrap .text-role,
html[lang^="ar"] .founder-photo-wrap .text-org,
body.rtl .founder-photo-wrap .text-role,
body.rtl .founder-photo-wrap .text-org,
body.lang-ar .founder-photo-wrap .text-role,
body.lang-ar .founder-photo-wrap .text-org {
  text-align: center;
  font-family: var(--arabic);
  font-size: 1rem;
  line-height: 1.65;
}


/* ---------- Arabic credentials ---------- */

html[dir="rtl"] .credential-card h3,
html.lang-ar .credential-card h3,
html[lang^="ar"] .credential-card h3,
body.rtl .credential-card h3,
body.lang-ar .credential-card h3 {
  direction: rtl;
  font-family: var(--arabic);
  font-size: .98rem;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .cred-table,
html.lang-ar .cred-table,
html[lang^="ar"] .cred-table,
body.rtl .cred-table,
body.lang-ar .cred-table {
  direction: rtl;
}

html[dir="rtl"] .cred-th,
html.lang-ar .cred-th,
html[lang^="ar"] .cred-th,
body.rtl .cred-th,
body.lang-ar .cred-th {
  padding: .65rem 0 .65rem 1.25rem;
  font-family: var(--arabic);
  font-size: 1rem;
  line-height: 1.65;
  text-align: right;
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .cred-label,
html.lang-ar .cred-label,
html[lang^="ar"] .cred-label,
body.rtl .cred-label,
body.lang-ar .cred-label {
  font-family: var(--arabic);
  font-size: .98rem;
  line-height: 1.65;
  letter-spacing: 0;
  text-align: right;
  text-transform: none;
}

html[dir="rtl"] :is(.cred-td, .cred-value),
html.lang-ar :is(.cred-td, .cred-value),
html[lang^="ar"] :is(.cred-td, .cred-value),
body.rtl :is(.cred-td, .cred-value),
body.lang-ar :is(.cred-td, .cred-value) {
  color: #334155;
  font-family: var(--arabic);
  font-size: 1.05rem;
  line-height: 1.85;
  text-align: right;
}

html[dir="rtl"] .cred-grid,
html.lang-ar .cred-grid,
html[lang^="ar"] .cred-grid,
body.rtl .cred-grid,
body.lang-ar .cred-grid {
  grid-template-columns: 1fr 140px;
  direction: ltr;
}

html[dir="rtl"] .cred-row,
html.lang-ar .cred-row,
html[lang^="ar"] .cred-row,
body.rtl .cred-row,
body.lang-ar .cred-row {
  direction: rtl;
}


/* ---------- Arabic forms ---------- */

html[dir="rtl"] .form-group,
html.lang-ar .form-group,
html[lang^="ar"] .form-group,
body.rtl .form-group,
body.lang-ar .form-group {
  text-align: right;
}

html[dir="rtl"] .form-group label,
html.lang-ar .form-group label,
html[lang^="ar"] .form-group label,
body.rtl .form-group label,
body.lang-ar .form-group label {
  font-family: var(--arabic);
  font-size: clamp(1rem, 1.05vw, 1.08rem);
  line-height: 1.65;
  letter-spacing: 0;
  text-align: right;
}

html[dir="rtl"] :is(.form-group input, .form-group select, .form-group textarea),
html.lang-ar :is(.form-group input, .form-group select, .form-group textarea),
html[lang^="ar"] :is(.form-group input, .form-group select, .form-group textarea),
body.rtl :is(.form-group input, .form-group select, .form-group textarea),
body.lang-ar :is(.form-group input, .form-group select, .form-group textarea) {
  direction: rtl;
  font-size: clamp(1.05rem, 1.12vw, 1.14rem);
  line-height: 1.65;
  text-align: right;
}

html[dir="rtl"] .form-group :is(input[type="email"], input[type="url"], input[type="tel"]),
html.lang-ar .form-group :is(input[type="email"], input[type="url"], input[type="tel"]),
html[lang^="ar"] .form-group :is(input[type="email"], input[type="url"], input[type="tel"]),
body.rtl .form-group :is(input[type="email"], input[type="url"], input[type="tel"]),
body.lang-ar .form-group :is(input[type="email"], input[type="url"], input[type="tel"]) {
  direction: ltr;
  text-align: left;
}


/* ---------- Arabic WordPress blocks ---------- */

html[dir="rtl"] .wp-block-quote,
html.lang-ar .wp-block-quote,
html[lang^="ar"] .wp-block-quote,
body.rtl .wp-block-quote,
body.lang-ar .wp-block-quote {
  padding-inline-end: 0;
  text-align: right;
}

html[dir="rtl"] .wp-block-quote p,
html[dir="rtl"] .wp-block-quote cite,
html.lang-ar .wp-block-quote p,
html.lang-ar .wp-block-quote cite,
html[lang^="ar"] .wp-block-quote p,
html[lang^="ar"] .wp-block-quote cite,
body.rtl .wp-block-quote p,
body.rtl .wp-block-quote cite,
body.lang-ar .wp-block-quote p,
body.lang-ar .wp-block-quote cite {
  font-family: var(--arabic);
  text-align: right;
}

html[dir="rtl"] .wp-block-table,
html.lang-ar .wp-block-table,
html[lang^="ar"] .wp-block-table,
body.rtl .wp-block-table,
body.lang-ar .wp-block-table {
  direction: rtl;
}

html[dir="rtl"] .wp-block-table th,
html[dir="rtl"] .wp-block-table td,
html.lang-ar .wp-block-table th,
html.lang-ar .wp-block-table td,
html[lang^="ar"] .wp-block-table th,
html[lang^="ar"] .wp-block-table td,
body.rtl .wp-block-table th,
body.rtl .wp-block-table td,
body.lang-ar .wp-block-table th,
body.lang-ar .wp-block-table td {
  text-align: right;
}

html[dir="rtl"] .wp-block-button,
html.lang-ar .wp-block-button,
html[lang^="ar"] .wp-block-button,
body.rtl .wp-block-button,
body.lang-ar .wp-block-button {
  text-align: right;
}

html[dir="rtl"] .wp-block-button__link,
html.lang-ar .wp-block-button__link,
html[lang^="ar"] .wp-block-button__link,
body.rtl .wp-block-button__link,
body.lang-ar .wp-block-button__link {
  font-family: var(--arabic);
  letter-spacing: 0;
}


/* ---------- Arabic navigation inside content, not site header ---------- */

html[dir="rtl"] .post-navigation .nav-links,
html[dir="rtl"] .posts-navigation .nav-links,
html[dir="rtl"] .comment-navigation .nav-links,
html.lang-ar .post-navigation .nav-links,
html.lang-ar .posts-navigation .nav-links,
html.lang-ar .comment-navigation .nav-links,
html[lang^="ar"] .post-navigation .nav-links,
html[lang^="ar"] .posts-navigation .nav-links,
html[lang^="ar"] .comment-navigation .nav-links,
body.rtl .post-navigation .nav-links,
body.rtl .posts-navigation .nav-links,
body.rtl .comment-navigation .nav-links,
body.lang-ar .post-navigation .nav-links,
body.lang-ar .posts-navigation .nav-links,
body.lang-ar .comment-navigation .nav-links {
  direction: rtl;
}


/* ---------- Arabic explicit subsection blocks ---------- */

html[dir="rtl"] :is(.section-break, .publications-block, .work-samples-block, .researchgate-block),
html.lang-ar :is(.section-break, .publications-block, .work-samples-block, .researchgate-block),
html[lang^="ar"] :is(.section-break, .publications-block, .work-samples-block, .researchgate-block),
body.rtl :is(.section-break, .publications-block, .work-samples-block, .researchgate-block),
body.lang-ar :is(.section-break, .publications-block, .work-samples-block, .researchgate-block) {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] :is(.section-break, .publications-block, .work-samples-block, .researchgate-block) :is(
  h1,
  h2,
  h3,
  h4,
  p,
  .pretitle,
  .wp-block-heading
),
html.lang-ar :is(.section-break, .publications-block, .work-samples-block, .researchgate-block) :is(
  h1,
  h2,
  h3,
  h4,
  p,
  .pretitle,
  .wp-block-heading
),
html[lang^="ar"] :is(.section-break, .publications-block, .work-samples-block, .researchgate-block) :is(
  h1,
  h2,
  h3,
  h4,
  p,
  .pretitle,
  .wp-block-heading
),
body.rtl :is(.section-break, .publications-block, .work-samples-block, .researchgate-block) :is(
  h1,
  h2,
  h3,
  h4,
  p,
  .pretitle,
  .wp-block-heading
),
body.lang-ar :is(.section-break, .publications-block, .work-samples-block, .researchgate-block) :is(
  h1,
  h2,
  h3,
  h4,
  p,
  .pretitle,
  .wp-block-heading
) {
  text-align: right;
}


/* =========================================================
   16. WORDPRESS CORE COMPATIBILITY
   ========================================================= */


/* ---------- WordPress alignment helpers ---------- */

.alignleft {
  float: inline-start;
  margin-inline-end: 1.25rem;
  margin-bottom: 1rem;
}

.alignright {
  float: inline-end;
  margin-inline-start: 1.25rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.alignwide {
  max-width: var(--wide);
  margin-inline: auto;
}

.alignfull {
  width: 100%;
  max-width: none;
}


/* ---------- Captions ---------- */

.wp-caption {
  max-width: 100%;
}

.wp-caption img {
  display: block;
  margin: 0 auto;
}

.wp-caption-text,
.gallery-caption {
  margin-top: .45rem;

  color: var(--subtle);
  font-size: .78rem;
  line-height: 1.55;
  text-align: center;
}


/* ---------- Gutenberg images ---------- */

.wp-block-image {
  margin: 1.5rem 0;
}

.wp-block-image img {
  height: auto;
}

.wp-block-image figcaption {
  margin-top: .45rem;

  color: var(--subtle);
  font-size: .78rem;
  line-height: 1.55;
  text-align: center;
}


/* ---------- Gutenberg quote blocks ---------- */

.wp-block-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;

  border-inline-start: 4px solid var(--blue);
  border-radius: var(--radius-md);
  background: var(--off);
}

.wp-block-quote p {
  color: var(--dark);
  font-style: italic;
}

.wp-block-quote cite {
  display: block;
  margin-top: .55rem;

  color: var(--blue);
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}

.wp-block-pullquote {
  margin: 2rem 0;
  padding: 1.5rem;

  border-top: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);

  color: var(--dark);
  text-align: center;
}

.wp-block-pullquote blockquote {
  margin: 0;
}


/* ---------- Gutenberg separators ---------- */

.wp-block-separator {
  width: 100%;
  height: 1px;
  margin: 2rem 0;

  border: 0;
  background: var(--border-light);
}


/* ---------- Gutenberg tables ---------- */

.wp-block-table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.wp-block-table table,
table {
  max-width: 100%;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
  padding: .75rem;
  border: 1px solid var(--border-light);

  text-align: left;
  vertical-align: top;
}

.wp-block-table th {
  background: var(--off);
  color: var(--dark);
  font-weight: 800;
}


/* ---------- Gutenberg buttons ---------- */
/* Mirrors the .btn system so native WordPress Button blocks inherit
   the same interaction model without needing duplicate manual styling. */

.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;

  padding: .65rem 1.55rem;
  border: 2px solid var(--blue);
  border-radius: var(--radius-pill);

  background: var(--blue);
  color: var(--white);

  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;

  transition:
    color .15s ease,
    background-color .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}

.wp-block-button__link:focus-visible {
  outline: 2px solid var(--sky-text);
  outline-offset: 3px;
}

/* ---------- WordPress comments / post navigation, if used ---------- */

.post-navigation,
.posts-navigation,
.comment-navigation {
  margin-top: var(--space-lg);
}

.post-navigation .nav-links,
.posts-navigation .nav-links,
.comment-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.post-navigation .nav-links .nav-previous,
.post-navigation .nav-links .nav-next,
.posts-navigation .nav-links .nav-previous,
.posts-navigation .nav-links .nav-next,
.comment-navigation .nav-links .nav-previous,
.comment-navigation .nav-links .nav-next {
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.45;
}

.comment-list {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.comment-body {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.comment-author {
  color: var(--dark);
  font-weight: 800;
}

.comment-metadata {
  color: var(--subtle);
  font-size: .78rem;
  line-height: 1.45;
}


/* ---------- Arabic WordPress block refinements ---------- */

html[dir="rtl"] .wp-caption-text,
html[dir="rtl"] .gallery-caption,
html[dir="rtl"] .wp-block-image figcaption,
html.lang-ar .wp-caption-text,
html.lang-ar .gallery-caption,
html.lang-ar .wp-block-image figcaption {
  font-family: var(--arabic);
}

html[dir="rtl"] .wp-block-quote,
html.lang-ar .wp-block-quote {
  padding-inline-end: 1rem;
  text-align: right;
}

html[dir="rtl"] .wp-block-quote p,
html[dir="rtl"] .wp-block-quote cite,
html.lang-ar .wp-block-quote p,
html.lang-ar .wp-block-quote cite {
  font-family: var(--arabic);
  text-align: right;
}

html[dir="rtl"] .wp-block-table th,
html[dir="rtl"] .wp-block-table td,
html.lang-ar .wp-block-table th,
html.lang-ar .wp-block-table td {
  text-align: right;
}

html[dir="rtl"] .wp-block-button__link,
html.lang-ar .wp-block-button__link {
  font-family: var(--arabic);
  letter-spacing: 0;
}

html[dir="rtl"] .post-navigation .nav-links,
html[dir="rtl"] .posts-navigation .nav-links,
html[dir="rtl"] .comment-navigation .nav-links,
html.lang-ar .post-navigation .nav-links,
html.lang-ar .posts-navigation .nav-links,
html.lang-ar .comment-navigation .nav-links {
  direction: rtl;
}

/* =========================================================
   17. LANGUAGE-SPECIFIC REFINEMENTS
   Use this block only for language-specific polishing.

   Do not place:
   - Header layout rules here
   - Footer layout rules here
   - Hero layout or hero typography rules here
   - Arabic section-header alignment rules here

   Header language behavior lives in Section 5.
   Hero language behavior lives in Section 6.
   Arabic content alignment lives in Section 15.
   Footer language behavior lives in Section 10.
   ========================================================= */


/* ---------- French refinements ---------- */

html.lang-fr .site-nav .nav-links {
  gap: .7rem;
}

html.lang-fr .site-nav .nav-link,
html.lang-fr .lang-trigger,
html.lang-fr .site-nav .nav-cta {
  font-size: .76rem;
}

html.lang-fr .site-nav .nav-cta {
  padding-inline: 1rem;
}

html.lang-fr .pretitle {
  letter-spacing: .1em;
}

html.lang-fr .btn {
  letter-spacing: 0;
}

/* ---------- French compression near desktop breakpoint ---------- */

@media (min-width: 1081px) and (max-width: 1160px) {
  html.lang-fr .site-nav .nav-links {
    gap: .45rem;
  }

  html.lang-fr .site-nav .nav-link,
  html.lang-fr .lang-trigger,
  html.lang-fr .site-nav .nav-cta {
    font-size: .72rem;
  }

  html.lang-fr .site-nav .nav-cta {
    padding-inline: .65rem;
  }
}


/* ---------- Arabic microtypography refinements ---------- */
/* No layout rules here. */

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :is(.btn, .nav-cta, .wp-block-button__link) {
  word-spacing: .03em;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :is(
  .asset-body,
  .text-card-body,
  .case-card-excerpt,
  .insight-card-excerpt
) {
  line-height: 1.9;
}


/* ---------- Arabic dark-surface readability ---------- */

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :is(.card-ghost p, .craft-body, .craft-example) {
  color: rgba(255, 255, 255, .9);
}


/* ---------- Arabic label cleanup ---------- */

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :is(
  .asset-tag,
  .badge,
  .case-card-meta,
  .insight-card-date,
  .narrative-context
) {
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}


/* ---------- Multilingual overflow protection ---------- */

.nav-link,
.nav-cta,
.btn,
.asset-title,
.asset-title-link,
.case-card-title,
.insight-card-title,
.footer-links a,
.prose-content a {
  overflow-wrap: anywhere;
}

.nav-link,
.nav-cta,
.lang-trigger,
.btn {
  hyphens: auto;
}


/* ---------- Mobile translated text refinements ---------- */

@media (max-width: 680px) {
  html.lang-fr .btn,
  html.lang-fr .site-nav .nav-cta,
  html.lang-fr .wp-block-button__link,
  :where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :is(.btn, .site-nav .nav-cta, .wp-block-button__link) {
    white-space: normal;
  }
}

/* =========================================================
   18. BROWSER FALLBACKS
   Use this block only for progressive enhancement fallbacks.

   Do not place normal components here.
   Components belong in Section 9.
   ========================================================= */


/* ---------- Flex gap fallback ---------- */
/* Fallback for older browsers that do not support gap in flex layouts. */

@supports not (gap: 1rem) {
  .site-nav .nav-links > * + *,
  .hero-buttons > * + *,
  .cta-inline > * + *,
  .action-row > * + *,
  .cta-secondary-links > * + *,
  .footer-service-pills > * + *,
  .challenge-pills > * + * {
    margin-inline-start: .8rem;
  }
}


/* ---------- Grid gap fallback ---------- */
/* Grid gap is supported in all modern browsers. No fallback required. */


/* ---------- Text size adjust fallback ---------- */
/* Fallback for browsers that lack unprefixed text-size-adjust support. */

@supports not (text-size-adjust: 100%) {
  html {
    -webkit-text-size-adjust: 100%;
  }
}


/* ---------- Focus-visible fallback ---------- */
/* If :focus-visible is unsupported, preserve keyboard/mouse focus visibility. */

@supports not selector(:focus-visible) {
  a:focus,
  button:focus,
  input:focus,
  select:focus,
  textarea:focus,
  .btn:focus,
  .nav-cta:focus,
  .menu-toggle:focus,
  .lang-trigger:focus,
  .lang-option:focus,
  .challenge-pill:focus {
    outline: 2px solid var(--sky-text);
    outline-offset: 3px;
  }

  .hero a:focus,
  .hero button:focus,
  .section--dark a:focus,
  .section--dark button:focus,
  .section--mid a:focus,
  .section--mid button:focus,
  .cta-band a:focus,
  .cta-band button:focus,
  .site-footer a:focus,
  .site-footer button:focus {
    outline-color: var(--sky);
  }
}


/* ---------- Competency grid note ---------- */
/* The old .competency-grid rules were component rules, not fallbacks.
   Add them to Section 9 if this pattern still appears in your templates. */


/* =========================================================
   19. PRINT STYLES
   ========================================================= */

@media print {
  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;

    font-size: 11pt;
    line-height: 1.45;
  }

  .site {
    width: 100%;
    max-width: none;
    margin: 0;

    background: #ffffff !important;
    box-shadow: none !important;
  }

  .site-content {
    background: #ffffff !important;
  }


  /* ---------- Hide screen-only interface elements ---------- */

  .site-nav,
  .site-footer,
  .skip-link,
  .menu-toggle,
  .hero__watermark,
  .home .hero::before,
  .section--visual-masthead::before,
  .section--craft::before,
  .cta-band,
  .cta-inline,
  .action-row,
  .hero-buttons,
  .cta-secondary-links,
  .challenge-pills,
  .form-honeypot,
  .pagination {
    display: none !important;
  }


  /* ---------- Print layout ---------- */

  .section,
  .section--white,
  .section--off,
  .section--light,
  .section--dark,
  .section--mid,
  .section--anchor,
  .hero {
    padding: 1.25rem 0 !important;

    background: #ffffff !important;
    color: #000000 !important;
    border: 0 !important;
  }

  .section--anchor :is(h1, h2, h3, p),
  .section--anchor .proof-metric dt,
  .section--anchor .proof-metric dd {
    color: var(--text) !important;
  }

  .wrap,
  .wrap-wide,
  .hero-inner,
  .section-header,
  .mw-prose,
  .mw-table,
  .mw-steps {
    max-width: none !important;
    margin-inline: 0 !important;
  }

  .section-header {
    margin-bottom: .8rem !important;
  }


  /* ---------- Typography ---------- */

  h1,
  h2,
  h3,
  p,
  li,
  blockquote,
  cite,
  .pretitle,
  .hero-subtitle,
  .asset-body,
  .text-card-body,
  .case-card-excerpt,
  .insight-card-excerpt {
    color: #000000 !important;
  }

  h1 {
    font-size: 22pt !important;
    line-height: 1.15;
    margin: 0 0 .5rem !important;
  }

  h2 {
    font-size: 16pt !important;
    line-height: 1.25;
    margin: 1rem 0 .4rem !important;
  }

  h3 {
    font-size: 12.5pt !important;
    line-height: 1.3;
    margin: .75rem 0 .25rem !important;
  }

  p {
    margin: 0 0 .45rem !important;
  }

  .pretitle {
    margin-bottom: .25rem !important;

    font-size: 9pt !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }


  /* ---------- Links ---------- */

  a,
  a:visited {
    color: #000000 !important;
    text-decoration: underline;
  }

  .prose-content a[href]::after,
  .asset-body a[href]::after,
  .text-card-body a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    font-weight: normal;
    word-break: break-all;
  }


  /* ---------- Cards and content blocks ---------- */

  .grid-2,
  .grid-3,
  .grid-4,
  .clients-grid,
  .competency-grid {
    display: block !important;
  }

  .card,
  .card-ghost,
  .asset-card,
  .case-card,
  .insight-card,
  .testimonial,
  .wp-block-quote,
  .wp-block-pullquote {
    break-inside: avoid;
    page-break-inside: avoid;

    margin: 0 0 .85rem !important;
    padding: .75rem 0 !important;

    background: #ffffff !important;
    border: 0 !important;
    border-top: 1px solid #999999 !important;
    border-radius: 0 !important;
    color: #000000 !important;
  }

  .asset-tag,
  .badge,
  .footer-pill,
  .case-card-meta,
  .insight-card-date,
  .narrative-context {
    border: 0 !important;
    background: transparent !important;
    color: #000000 !important;

    font-size: 9pt !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }


  /* ---------- Lists, pathways, credentials ---------- */

  ul,
  ol {
    margin-top: .35rem !important;
    margin-bottom: .6rem !important;
  }

  .pathway {
    display: block !important;
    margin-top: .75rem !important;
  }

  .pathway::before {
    display: none !important;
  }

  .pathway-step {
    break-inside: avoid;
    page-break-inside: avoid;

    margin-bottom: .75rem !important;
    padding: .5rem 0 !important;

    text-align: left !important;
  }

  .pathway-icon {
    display: none !important;
  }

  .cred-table,
  .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
  }

  .cred-th,
  .cred-td,
  .wp-block-table th,
  .wp-block-table td {
    padding: .35rem .4rem !important;
    border: 1px solid #999999 !important;

    color: #000000 !important;
    font-size: 9.5pt !important;
    text-align: left;
    vertical-align: top;
  }

  .cred-grid {
    display: block !important;
  }

  .cred-row {
    display: block !important;
    margin-bottom: .5rem !important;
  }

  .cred-label,
  .cred-value {
    display: block !important;
    color: #000000 !important;
  }


  /* ---------- Images ---------- */

  img,
  svg {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .photo-placeholder {
    border: 1px solid #999999 !important;
    background: #ffffff !important;
  }


  /* ---------- Forms ---------- */

  form,
  .form-group,
  .form-status {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    border: 1px solid #999999 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }


  /* ---------- Arabic print refinements ---------- */

  html[dir="rtl"] body,
  html.lang-ar body {
    direction: rtl;
  }

  html[dir="rtl"] h1,
  html[dir="rtl"] h2,
  html[dir="rtl"] h3,
  html[dir="rtl"] p,
  html[dir="rtl"] li,
  html[dir="rtl"] .section-header,
  html[dir="rtl"] .pathway-step,
  html[dir="rtl"] .cred-th,
  html[dir="rtl"] .cred-td,
  html[dir="rtl"] .wp-block-table th,
  html[dir="rtl"] .wp-block-table td,
  html.lang-ar h1,
  html.lang-ar h2,
  html.lang-ar h3,
  html.lang-ar p,
  html.lang-ar li,
  html.lang-ar .section-header,
  html.lang-ar .pathway-step,
  html.lang-ar .cred-th,
  html.lang-ar .cred-td,
  html.lang-ar .wp-block-table th,
  html.lang-ar .wp-block-table td {
    text-align: right !important;
  }


  /* ---------- Page breaks ---------- */

  h1,
  h2,
  h3,
  .section-header,
  .card,
  .case-card,
  .insight-card,
  .testimonial,
  .wp-block-quote {
    break-after: avoid;
    page-break-after: avoid;
  }
}

/* =========================================================
   19b. SELF-ASSESSMENT COMPONENT
   ========================================================= */

/* ── Narrow content container ─────────────────────────── */
.wrap--narrow {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Progress bar ─────────────────────────────────────── */
.assessment-progress {
  margin-bottom: 2rem;
}

.assessment-progress__bar {
  display: flex;
  gap: .35rem;
  margin-bottom: .5rem;
}

.assessment-progress__segment {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  transition: background .3s ease;
}

.assessment-progress__segment.is-active {
  background: var(--blue);
}

.assessment-progress__segment.is-complete {
  background: var(--dark);
}

.assessment-progress__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ── Step header ──────────────────────────────────────── */
.assessment-step__header {
  margin-bottom: 1.5rem;
}

.assessment-step__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 .4rem 0;
}

.assessment-step__desc {
  font-size: .9rem;
  color: var(--subtle);
  margin: 0;
  line-height: 1.55;
}

/* ── Question block ───────────────────────────────────── */
.assessment-question {
  border: 0;
  padding: 0;
  margin: 0 0 1.75rem 0;
}

.assessment-question__text {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: .9rem;
}

/* ── Option list ──────────────────────────────────────── */
.assessment-options {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.assessment-option {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    border-color .15s ease,
    background-color .15s ease;
}

.assessment-option:hover {
  border-color: var(--blue);
  background: #f0f7ff;
}

.assessment-option:has(.assessment-option__radio:checked) {
  border-color: var(--blue);
  background: #e8f3ff;
}

.assessment-option__radio {
  width: auto !important;
  min-height: auto !important;
  flex-shrink: 0;
  margin-top: .18rem;
  accent-color: var(--blue);
}

.assessment-option__indicator {
  display: none;
}

.assessment-option__label {
  font-size: .9rem;
  line-height: 1.5;
  color: var(--text);
}

/* ── Navigation buttons ───────────────────────────────── */
.assessment-nav {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}

/* ── Lead capture step ────────────────────────────────── */
.assessment-step--capture .assessment-step__title {
  font-size: 1.3rem;
}

/* ── Results panel ────────────────────────────────────── */
.assessment-results {
  animation: fadeInUp .4s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.assessment-results__dimensions {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.assessment-results__level-badge {
  border: 1px solid var(--border);
  border-inline-start: 5px solid var(--blue);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 1.25rem 1.4rem;
}

.assessment-results__level-badge--beginning {
  border-inline-start-color: #c2410c;
  background: #fff7ed;
}

.assessment-results__level-badge--developing {
  border-inline-start-color: #b45309;
  background: #fffbeb;
}

.assessment-results__level-badge--advancing {
  border-inline-start-color: var(--blue);
  background: #f0f7ff;
}

.assessment-results__level-badge--leading {
  border-inline-start-color: #15803d;
  background: #f0fdf4;
}

.assessment-results__level-label {
  margin-bottom: .3rem;
  color: var(--subtle);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.assessment-results__level-name {
  color: var(--dark);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
}

.assessment-results__level-meta {
  margin-top: .35rem;
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
}

.assessment-results__dim {
  border-radius: var(--radius-sm);
  background: #fff;
  padding: .9rem 1rem 1rem;
}

.assessment-results__dim-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .55rem;
}

.assessment-results__dim-name {
  color: var(--dark);
  font-size: .92rem;
  font-weight: 700;
}

.assessment-results__dim-score {
  flex-shrink: 0;
  color: var(--blue);
  font-size: .86rem;
  font-weight: 700;
}

.assessment-results__dim-bar {
  height: .65rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe5ee;
}

.assessment-results__dim-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width .45s ease;
}

.assessment-results__note {
  margin: 1.4rem 0 0;
  color: var(--text);
  line-height: 1.6;
}

/* ── RTL adjustments ──────────────────────────────────── */
html[dir="rtl"] .assessment-option__radio {
  margin-top: .18rem;
}

html[dir="rtl"] .assessment-nav {
  justify-content: flex-start;
  flex-direction: row-reverse;
}

html[dir="rtl"] .assessment-step__title,
html[dir="rtl"] .assessment-step__desc,
html[dir="rtl"] .assessment-question__text,
html[dir="rtl"] .assessment-progress__label {
  text-align: right;
}

html[dir="rtl"] .assessment-option__label {
  flex: 1;
  text-align: right;
}

html[dir="rtl"] .assessment-results__level-label,
html[dir="rtl"] .assessment-results__level-name,
html[dir="rtl"] .assessment-results__level-meta,
html[dir="rtl"] .assessment-results__note {
  text-align: right;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 680px) {
  .assessment-nav {
    flex-direction: column-reverse;
  }

  .assessment-nav .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* =========================================================
   19c. WEDGE OFFER — Institutional Diagnostic Sprint
   ========================================================= */

.wedge-offer {
  background: rgba(0, 159, 218, 0.08);
  border: 1px solid rgba(0, 159, 218, 0.3);
  border-radius: var(--radius-md, 8px);
  padding: var(--space-lg, 2rem) var(--space-xl, 2.5rem);
}

.wedge-offer-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl, 2.5rem);
}

.wedge-offer-content {
  flex: 1;
}

.wedge-offer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  flex-shrink: 0;
}

.section--mid .wedge-offer-cta .text-sub-note {
  padding: .16rem .4rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 34, 68, .42);
  color: var(--white);
  font-weight: 600;
}

.wedge-label {
  display: inline-block;
  font-size: var(--fs-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.5rem;
}

.wedge-title {
  font-size: var(--fs-xl, 1.5rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.wedge-body {
  color: var(--hero-text-soft, rgba(255,255,255,0.75));
  font-size: var(--fs-base, 1rem);
  margin: 0 0 1rem;
  max-width: 52ch;
}

.wedge-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wedge-meta-item {
  font-size: var(--fs-sm, 0.875rem);
  color: rgba(255,255,255,0.6);
}

.wedge-price {
  color: var(--sky);
  font-weight: 600;
}

.wedge-meta-sep {
  color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
  .wedge-offer {
    padding: var(--space-md, 1.5rem);
  }

  .wedge-offer-inner {
    flex-direction: column;
    gap: var(--space-md, 1.5rem);
  }

  .wedge-offer-cta {
    width: 100%;
  }

  .wedge-offer-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* RTL — wedge offer */
html[dir="rtl"] .wedge-body,
html.lang-ar .wedge-body,
html[lang^="ar"] .wedge-body {
  max-width: 52ch;
}

html[dir="rtl"] .wedge-offer,
html.lang-ar .wedge-offer,
html[lang^="ar"] .wedge-offer,
body.rtl .wedge-offer,
body.lang-ar .wedge-offer {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .wedge-offer-inner,
html.lang-ar .wedge-offer-inner,
html[lang^="ar"] .wedge-offer-inner,
body.rtl .wedge-offer-inner,
body.lang-ar .wedge-offer-inner {
  direction: rtl;
}

html[dir="rtl"] .wedge-offer-cta,
html.lang-ar .wedge-offer-cta,
html[lang^="ar"] .wedge-offer-cta,
body.rtl .wedge-offer-cta,
body.lang-ar .wedge-offer-cta {
  align-items: flex-end;
}

/* =========================================================
   20. FINAL QA / MAINTENANCE NOTES
   ========================================================= */

/*
   CSS MAINTENANCE RULES
   ---------------------------------------------------------

   1. Header
      - Header layout rules belong only in Section 5.
      - Do not patch header alignment in later sections.
      - English / French desktop target:
        [Logo] [Menu] ........ [Language] [CTA]
      - Arabic desktop target:
        [CTA] [Language] ........ [Menu] [Logo]
      - English / French mobile target:
        [Logo] ........ [Menu button]
      - Arabic mobile target:
        [Menu button] ........ [Logo]

   2. Footer
      - Footer layout rules belong only in Section 10.
      - Footer uses grid-template-areas.
      - English desktop target:
        [Brand] [Navigate] [Connect]
      - Arabic desktop target:
        [Connect] [Navigate] [Brand]

   3. Arabic / RTL content
      - Arabic content alignment belongs only in Section 15.
      - Arabic content aligns right by default.
      - Do not re-center Arabic .section-header--center in later blocks.
      - Use .section-header--force-center only when a specific Arabic section
        must intentionally stay centered.

   4. Language refinements
      - Section 17 should only contain light language polish:
        French compression, Arabic microtypography, overflow protection.
      - Do not place layout rules in Section 17.

   5. Components
      - Normal components belong in Section 9.
      - .competency-grid belongs in Section 9 if used.
      - Do not place components in Section 18.

   6. Browser fallbacks
      - Section 18 should contain browser support fallbacks only.
      - Do not add new design systems, components, or page-specific rules there.

   7. Responsive rules
      - Header responsive rules belong in Section 5.
      - Footer responsive rules belong in Section 10.
      - Content/grid/card responsive rules belong in Section 14.

   8. Tokens
      - Add reusable values to Section 1 first.
      - Avoid scattering raw colors, shadows, radii, and spacing values.
      - Prefer:
        var(--space-*)
        var(--radius-*)
        var(--shadow-*)
        var(--fs-*)

   9. Visual QA checklist
      Test these pages in English, French, and Arabic after each major edit:
      - Home
      - About
      - Services / Capabilities
      - Case Studies / Insights archive
      - Single post / prose page
      - Contact page
      - Any page using .competency-grid

   10. Required viewport checks
      - 1440px desktop
      - 1160px near site-width edge
      - 1081px before mobile nav activates
      - 1080px tablet/mobile nav breakpoint
      - 680px mobile content breakpoint
      - 420px narrow mobile

   11. Arabic-specific QA checklist
      - Desktop logo sits on the far right.
      - Desktop Arabic menu starts beside the logo.
      - Desktop language selector and CTA sit on the far left.
      - Mobile logo sits on the right.
      - Mobile menu button sits on the left.
      - Section headers align right.
      - Pretitle does not overpower h2.
      - Cards align right.
      - Footer brand block sits on the right.
      - Footer navigation and connect columns maintain equal spacing.
      - Forms, tables, lists, testimonials, and timelines mirror correctly.

   12. Accessibility QA checklist
      - Keyboard focus remains visible.
      - Skip link appears on focus.
      - Language dropdown works with hover and keyboard focus.
      - Mobile menu button updates aria-expanded.
      - Reduced-motion setting disables transitions.
      - Text links remain distinguishable by underline, not color alone.

   13. Print QA checklist
      - Header and footer do not print.
      - CTAs and buttons do not print.
      - Dark sections print as black text on white.
      - Cards do not split awkwardly across pages.
      - Arabic pages print right-aligned.
      - Long URLs do not break the page width.
*/

/* Meridian form protection: privacy consent + simple CAPTCHA */
.form-protection {
  margin: 1.35rem 0;
  padding: 1.05rem;
  border: 1px solid rgba(0, 34, 68, .14);
  border-radius: var(--radius-sm);
  background: rgba(245, 249, 253, .76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.captcha-question {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .9rem;
  border: 1px solid rgba(0, 34, 68, .16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .92);
  color: var(--dark);
  font-weight: 800;
  letter-spacing: .01em;
}

.captcha-answer {
  width: 7rem;
  max-width: 100%;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: 0;
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 1.12rem;
  height: 1.12rem;
  min-height: 0;
  padding: 0;
  margin-top: .2rem;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.form-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--sky-text);
  outline-offset: 3px;
}

.form-checkbox > span {
  flex: 1 1 auto;
  min-width: 0;
}

.form-checkbox a {
  font-weight: 700;
}

.form-hint--small {
  margin-top: .48rem;
  font-size: .88rem;
}

form .required,
.meridian-resource-gate-form .required {
  color: #c0392b;
}

.form-privacy {
  margin-top: 1.5rem;
  padding: .9rem 1.1rem;
  background: var(--off);
  border: 1px solid rgba(0, 34, 68, .12);
  border-inline-start: 3px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--text);
  line-height: 1.55;
}

html[dir="rtl"] .form-checkbox,
html.lang-ar .form-checkbox,
body.rtl .form-checkbox {
  direction: rtl;
  font-family: var(--arabic);
  font-size: 1rem;
  line-height: 1.65;
  text-align: right;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) :is(.captcha-question, .form-hint--small) {
  color: var(--dark);
  font-family: var(--arabic);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
}


/* =========================================================
   Brand Icon Accents
   Retained Meridian icon assets used by footer and resource cards.
   ========================================================= */

.footer-brand-name-row {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-top: .65rem;
}

.footer-brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  opacity: .78;
}

.footer-brand-name-row .footer-brand-name {
  margin: 0;
}

.asset-card-kicker {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .85rem;
}

.asset-card-kicker .asset-tag {
  margin: 0;
}

.asset-card-icon {
  display: block;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

html[dir="rtl"] .asset-card-kicker,
html.lang-ar .asset-card-kicker {
  direction: rtl;
  justify-content: flex-start;
}

html[dir="rtl"] .footer-brand-name-row,
html.lang-ar .footer-brand-name-row {
  direction: rtl;
}

/* =========================================================
   Resource Cards And Footer Detail
   Shared resource-card hierarchy, interaction, and footer spacing.
   ========================================================= */

.asset-card {
  position: relative;
  gap: .85rem;
  border-top: 3px solid rgba(40, 123, 197, .42);
}

.resource-format-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  flex: 0 0 auto;
  max-width: 46%;
  margin-inline-start: auto;
  padding: .24rem .5rem;
  border: 1px solid rgba(0, 34, 68, .12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .94);
  color: var(--dark);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .045em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 34, 68, .08);
}

.asset-card .asset-card-kicker {
  min-height: 2.15rem;
  margin-bottom: .35rem;
}

.resource-format-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  font-size: 1rem;
  line-height: 1;
}

:where(html[dir="rtl"], html.lang-ar, html[lang^="ar"], body.rtl, body.lang-ar) .resource-format-badge {
  letter-spacing: 0;
  text-transform: none;
}

.asset-card .asset-title,
.asset-card .asset-title-link {
  margin-bottom: .15rem;
}

.asset-card .asset-body {
  margin-bottom: .35rem;
}

.asset-card .asset-body p {
  margin: 0 0 .62rem;
}

.asset-card .asset-body p:last-child {
  margin-bottom: 0;
}

.asset-card .card-note,
.asset-card .text-sub-tight {
  min-height: 1.3rem;
}

.asset-card:focus-within {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.asset-card .asset-title-link:focus-visible {
  outline: 3px solid rgba(0, 159, 218, .45);
  outline-offset: 3px;
  border-radius: 6px;
}

html[dir="rtl"] .asset-card .asset-title-link:focus-visible,
html.lang-ar .asset-card .asset-title-link:focus-visible {
  outline-offset: 3px;
}

/* =========================================================
   Interaction And RTL Component Refinements
   Hero microcopy, contact challenge pills, modal compatibility,
   and Arabic timeline spacing.
   ========================================================= */

.hero-micro {
  color: rgba(255, 255, 255, .8);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.45;
  text-shadow: none;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero-principal,
body:where(.rtl, .lang-ar) .hero-principal {
  justify-content: flex-end;
  color: rgba(255, 255, 255, .86);
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .hero-micro,
body:where(.rtl, .lang-ar) .hero-micro {
  color: rgba(255, 255, 255, .84);
}

.challenge-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .45rem;
}

.challenge-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: .48rem .78rem;
  border: 1px solid rgba(0, 113, 188, .45);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--dark);
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.challenge-pill:hover,
.challenge-pill:focus-visible {
  border-color: var(--blue);
  background: #eff6ff;
  color: var(--blue);
}

.challenge-pill.selected,
.challenge-pill[aria-pressed="true"] {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 113, 188, .16);
}

.form-group--turnstile .cf-turnstile {
  min-height: 2.75rem;
  max-width: 100%;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .challenge-pills,
body:where(.rtl, .lang-ar) .challenge-pills {
  direction: rtl;
  justify-content: flex-start;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .challenge-pill,
body:where(.rtl, .lang-ar) .challenge-pill {
  font-family: var(--arabic);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
  min-height: 2.75rem;
  padding: .6rem 1rem;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .journey-step,
body:where(.rtl, .lang-ar) .journey-step {
  padding-inline-start: 0;
  padding-inline-end: 4.2rem;
  border-inline-start: 0;
  border-inline-end: 2px solid var(--blue);
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .journey-step:last-child,
body:where(.rtl, .lang-ar) .journey-step:last-child {
  border-inline-end-color: transparent;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .journey-step::before,
body:where(.rtl, .lang-ar) .journey-step::before {
  right: -1.12rem;
  left: auto;
}

@media (max-width: 680px) {
  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) .journey-step,
  body:where(.rtl, .lang-ar) .journey-step {
    padding-inline-end: 3.4rem;
  }
}

/* =========================================================
   Text Selection Contrast
   Keeps selected microcopy readable on blue and dark sections.
   ========================================================= */
::selection {
  background: var(--blue);
  color: #fff;
}

.hero ::selection {
  background: var(--sky);
  color: var(--dark);
}

.site-footer ::selection,
.section--mid ::selection,
.cta-band ::selection,
.asset-card ::selection {
  background: var(--dark);
  color: #fff;
}

html[dir="rtl"] .asset-card .card-note::selection,
html.lang-ar .asset-card .card-note::selection,
html[lang^="ar"] .asset-card .card-note::selection {
  background: var(--dark);
  color: #fff;
}

/* =========================================================
   Managed resource library carousel
   ========================================================= */
.resource-library {
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.resource-library__header {
  margin-bottom: 1.15rem;
}

.resource-library__header h2 {
  margin: 0;
}

.resource-carousel-shell {
  position: relative;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(231, 237, 243, .62) 0%, rgba(255, 255, 255, .86) 100%),
    #edf3f8;
}

/* Cards inside the carousel shell always render on a light background —
   override the section--anchor white-text cascade */
.resource-carousel-shell .asset-card {
  color: var(--dark);
}

.resource-carousel-shell .asset-card .asset-title,
.resource-carousel-shell .asset-card .asset-title-link {
  color: var(--dark);
}

.resource-carousel-shell .asset-card p {
  color: var(--muted);
}

.resource-carousel__controls {
  position: absolute;
  inset-block: 0;
  inset-inline: -3.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  pointer-events: none;
}

.resource-carousel__controls[hidden] {
  display: none;
}

.resource-carousel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  font-size: 1.35rem;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 3px 12px rgba(0, 34, 68, .09);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.resource-carousel__button:hover:not(:disabled),
.resource-carousel__button:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 64, 122, .22);
}

.resource-carousel__button:disabled {
  opacity: .42;
  cursor: default;
}

.resource-carousel__viewport {
  overflow: hidden;
  padding: .55rem .55rem 1.1rem;
}

.resource-carousel__track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
}

.resource-carousel__slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
}

.resource-carousel__slide[hidden] {
  display: none;
}

.resource-carousel__indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .65rem;
}

.resource-carousel__indicators[hidden] {
  display: none;
}

.resource-carousel__dot {
  display: block;
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: var(--border);
  transition: background-color .2s ease, transform .2s ease;
}

.resource-carousel__dot.is-active {
  background: var(--blue);
  transform: scale(1.35);
}

.resource-language-note {
  margin: 0 0 .2rem;
  padding: .55rem .7rem;
  border-radius: .45rem;
  background: rgba(0, 113, 188, .07);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

/* Three chained classes (specificity 0,3,0) beats all Arabic RTL overrides (max 0,2,2) */
.resource-card__footer .resource-download-count.card-note {
  color: #526b85;
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
}

.resource-card__footer {
  display: grid;
  gap: .85rem;
  margin-top: auto;
}

.resource-card__footer .btn--bottom {
  margin-top: 0;
}

.resource-card__footer .resource-download-count {
  display: none;
  margin: 0;
}

.asset-card .btn.is-disabled {
  opacity: .64;
  cursor: not-allowed;
  pointer-events: none;
}

html[dir="rtl"] .resource-library__header,
html.lang-ar .resource-library__header {
  direction: rtl;
}

html[dir="rtl"] .resource-carousel__track,
html.lang-ar .resource-carousel__track {
  direction: rtl;
}

html[dir="rtl"] .resource-carousel__controls,
html.lang-ar .resource-carousel__controls {
  direction: rtl;
}

html[dir="rtl"] .resource-carousel__button span,
html.lang-ar .resource-carousel__button span {
  display: block;
  transform: scaleX(-1);
}

html[dir="rtl"] .resource-card__footer .icon,
html.lang-ar .resource-card__footer .icon {
  transform: scaleX(-1);
}

@media (max-width: 1240px) {
  .resource-carousel__controls {
    position: static;
    justify-content: flex-end;
    margin-top: .85rem;
    pointer-events: auto;
  }
}

@media (max-width: 980px) {
  .resource-carousel__slide {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 640px) {
  .contact-form {
    padding: 1.1rem;
  }

  .comp-card {
    grid-template-columns: 1fr;
  }

  .credential-card-grid {
    grid-template-columns: 1fr;
  }

  .resource-carousel-shell {
    padding: .85rem;
  }

  .resource-carousel__slide {
    flex-basis: 100%;
  }
}

/* =========================================================
   Arabic Public Page Final Rendering
   Keeps Arabic UI on the modern Arabic sans stack and corrects
   undersized labels, buttons, attribution text, and logo framing.
   ========================================================= */

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body {
  font-family: var(--arabic);
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body :is(
  h1,
  h2,
  h3,
  .section-header :is(h1, h2, h3),
  .cta-band h2,
  .pretitle,
  p,
  label,
  .form-label,
  .form-hint,
  .form-status,
  .form-checkbox,
  .captcha-question,
  input,
  select,
  textarea,
  button,
  .btn,
  .nav-link,
  .nav-cta,
  .lang-trigger,
  .lang-option,
  .badge,
  .testimonial,
  .testimonial q,
  .testimonial cite,
  .founder-name,
  .text-role,
  .text-org,
  .cred-th,
  .cred-td,
  .cred-label,
  .cred-value
) {
  font-family: var(--arabic);
  letter-spacing: 0;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body :is(h1, h2, h3, .section-header :is(h1, h2, h3), .cta-band h2) {
  font-style: normal;
  font-weight: 700;
  line-height: var(--lh-h2);
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body :is(.section--white, .section--off, .section--light) h2 {
  font-size: var(--fs-ar-h2);
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body :is(p, li, .text-card-body, .card p, .cred-td, .cred-value) {
  font-size: var(--fs-ar-body);
  line-height: var(--lh-body);
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body :is(label, .form-label, .form-checkbox, .form-hint, .captcha-question) {
  color: var(--dark);
  font-size: var(--fs-ar-label);
  font-weight: 700;
  line-height: 1.7;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body :is(input, select, textarea) {
  color: var(--text);
  font-size: var(--fs-ar-body);
  line-height: 1.65;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body :is(.btn, .nav-cta, .wp-block-button__link) {
  font-size: var(--fs-ar-label);
  font-weight: 800;
  line-height: 1.5;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .site-nav .nav-cta {
  min-height: 3rem;
  padding: .68rem 1.2rem;
  white-space: normal;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body :is(.testimonial q, .testimonial cite, em, i, cite) {
  font-style: normal;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .testimonial q {
  color: var(--dark);
  font-size: clamp(1.16rem, 1.3vw, 1.28rem);
  line-height: 1.95;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .testimonial cite {
  color: var(--link);
  font-size: clamp(1rem, 1.08vw, 1.08rem);
  line-height: 1.7;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .nav-logo,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .nav-logo-svg {
  aspect-ratio: 580 / 130;
  object-fit: contain;
}

@media (min-width: 1081px) {
  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .site-nav {
    --header-logo-width: 300px;
  }
}

@media (min-width: 1081px) and (max-width: 1160px) {
  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .site-nav {
    --header-logo-width: 265px;
  }
}

@media (max-width: 1080px) {
  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .site-nav {
    --header-logo-width: 250px;
  }
}

@media (max-width: 680px) {
  html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .site-nav {
    --header-logo-width: min(225px, 62vw);
  }
}

/* Legal and long-form prose headings should read as document structure,
   not as section-title display type. */
.section--white .wrap.prose-content h2,
.section--off .wrap.prose-content h2,
.section--light .wrap.prose-content h2,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .section--white .wrap.prose-content h2,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .section--off .wrap.prose-content h2,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .section--light .wrap.prose-content h2 {
  margin: 1.75rem 0 .55rem !important;

  font-family: var(--font-body);
  font-size: clamp(1.32rem, 1.8vw, 1.55rem) !important;
  font-weight: 800;
  line-height: 1.28 !important;
}

html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .section--white .wrap.prose-content h2,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .section--off .wrap.prose-content h2,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .section--light .wrap.prose-content h2 {
  font-family: var(--arabic);
}

.section--white .wrap.prose-content h2:first-child,
.section--off .wrap.prose-content h2:first-child,
.section--light .wrap.prose-content h2:first-child,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .section--white .wrap.prose-content h2:first-child,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .section--off .wrap.prose-content h2:first-child,
html:where([dir="rtl"], .lang-ar, [lang^="ar"]) body .section--light .wrap.prose-content h2:first-child {
  margin-top: 0 !important;
}
