/* Shared styles for the generated pages (About, Expertise overview, Insights).
   Header, navigation, footer and tokens mirror the static pages in public/. */

:root {
  --warm-white: #FAF9F6;
  --paper: #FFFFFF;
  --charcoal: #2B2B2B;
  --navy: #0B1F3A;
  --navy-soft: #1C3357;
  --burgundy: #7A2E3B;      /* restrained secondary accent, ≈ 9:1 on warm white */
  --gray-border: #E2E0DA;
  --gray-mid: #63635E;      /* ≈ 5.6:1 on warm white */
  --max-width: 1120px;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --arabic: 'Geeza Pro', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--serif);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.01em;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--navy-soft);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link — hidden above the page rather than off to the side, so right-to-left
   (Arabic) pages don't gain a horizontal scrollbar. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  top: 16px;
}

/* Header / Nav (identical to the site's pages) */
header.site-header {
  position: sticky;
  top: 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--gray-border);
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

nav.primary-nav a {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.primary-nav a:hover,
nav.primary-nav a:focus-visible,
nav.primary-nav a.nav-active {
  color: var(--navy);
  border-bottom-color: var(--burgundy);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
}

/* Shared typography */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--burgundy);
  margin: 0 0 16px;
}

.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.22rem);
  max-width: 680px;
  margin: 0;
}

.read-more {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.read-more:hover {
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--navy);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.capability-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.capability-tags li {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--gray-border);
  padding: 6px 14px;
  border-radius: 20px;
}

/* Page sections (About, Expertise overview) */
.page-hero {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--gray-border);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  line-height: 1.12;
  margin-bottom: 12px;
}

.page-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-border);
}

.page-section:last-child {
  border-bottom: none;
}

.prose p {
  font-size: 1.08rem;
  max-width: 680px;
  margin: 0 0 1.1em;
}

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

/* About */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  align-items: center;
}

.name-ar {
  font-family: var(--arabic);
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  margin: 0 0 16px;
}

/* The other-language name follows the page's alignment, not its own text direction. */
main[dir="ltr"] .name-ar { text-align: left; }
main[dir="rtl"] .name-ar { text-align: right; font-family: var(--sans); }

.descriptors {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--sans);
}

.descriptors li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 20px;
  padding: 5px 14px;
}

.descriptors li + li {
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.about-lede p {
  font-size: clamp(1.08rem, 1.6vw, 1.2rem);
  max-width: 660px;
  margin: 0 0 0.8em;
}

.about-lede p:first-child {
  color: var(--navy);
}

.portrait {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gray-border);
  box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px var(--gray-border);
  background: #EDEBE3;
}

.section-note {
  margin: -8px 0 20px;
  color: var(--gray-mid);
  font-size: 0.95rem;
}

/* Career timeline */
.timeline {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  position: relative;
}

.tl-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 32px;
  position: relative;
}

/* Vertical line and markers run between the dates and the role. */
.tl-body {
  position: relative;
  padding-inline-start: 28px;
  border-inline-start: 2px solid var(--gray-border);
  padding-bottom: 32px;
}

.tl-item:last-child .tl-body { padding-bottom: 0; border-inline-start-color: transparent; }

.tl-body::before {
  content: '';
  position: absolute;
  top: 6px;
  inset-inline-start: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--warm-white);
  border: 2px solid var(--navy);
}

.tl-item--current .tl-body::before { background: var(--navy); }
.tl-item--featured .tl-body::before { background: var(--burgundy); border-color: var(--burgundy); }

.tl-dates {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-mid);
  margin: 2px 0 0;
  text-align: end;
}

.tl-body h3 {
  font-size: 1.1rem;
  line-height: 1.35;
}

.tl-org {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--burgundy);
  margin: 2px 0 10px;
}

.tl-points {
  list-style: disc;
  margin: 0;
  padding-inline-start: 1.1em;
  max-width: 700px;
}

.tl-points li {
  margin-bottom: 0.35em;
  font-size: 1.01rem;
}

.tl-points li::marker { color: var(--gray-mid); }

.tl-link {
  display: inline-block;
  margin-top: 8px;
}

/* Featured experience */
.featured {
  background: var(--paper);
  border-top: 1px solid var(--gray-border);
}

.featured .lede { margin-bottom: 8px; }

.journey {
  margin-top: 56px;
}

.journey-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-bottom: 20px;
}

.journey-letter {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.journey-intro {
  max-width: 680px;
  margin: -6px 0 20px;
}

.browser {
  margin: 0 0 28px;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--warm-white);
  box-shadow: 0 14px 36px rgba(11, 31, 58, 0.10);
}

.browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #EFEDE7;
  border-bottom: 1px solid var(--gray-border);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D3D0C7;
}

.browser img { width: 100%; }

.browser figcaption {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--gray-mid);
  padding: 10px 14px;
  border-top: 1px solid var(--gray-border);
}

.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: step;
}

.journey-step {
  position: relative;
  padding: 0 18px 0 0;
}

[dir="rtl"] .journey-step { padding: 0 0 0 18px; }

/* Connecting line through the numbered markers */
.journey-step::before {
  content: '';
  position: absolute;
  top: 15px;
  inset-inline-start: 32px;
  inset-inline-end: 0;
  height: 2px;
  background: var(--gray-border);
}

.journey-step:last-child::before { display: none; }

.journey-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--burgundy);
  background: var(--paper);
  color: var(--burgundy);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.journey-num::before {
  counter-increment: step;
  content: counter(step);
}

[dir="rtl"] .journey-num::before { content: counter(step, arabic-indic); }

.journey-step h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.journey-step p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--charcoal);
}

.journey-note {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--gray-mid);
  margin: 20px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--gray-border);
  max-width: 760px;
}

/* CRM and lead-generation flow */
.flow-figure { margin: 0; }

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 26px;
  align-items: center;
}

.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Arrow to the next step */
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline-end: -20px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background: var(--burgundy);
  clip-path: polygon(0 15%, 100% 50%, 0 85%);
}

[dir="rtl"] .flow-step:not(:last-child)::after {
  clip-path: polygon(100% 15%, 0 50%, 100% 85%);
}

.flow-node {
  background: var(--warm-white);
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--navy);
  border-radius: 4px;
  padding: 14px 12px;
  min-height: 120px;
}

.flow-step--branch .flow-node {
  min-height: 0;
  border-top-color: var(--navy-soft);
}

.flow-node--end {
  background: var(--navy);
  border-color: var(--navy);
}

.flow-node.flow-node--end h4,
.flow-node.flow-node--end p { color: #fff; }

.flow-node h4 {
  font-size: 0.92rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.flow-node p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--gray-mid);
}

.flow-rail {
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px dashed var(--navy-soft);
  border-radius: 4px;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--navy);
}

/* Outcomes */
.outcomes {
  margin: 0;
  padding-inline-start: 1.2em;
  max-width: 760px;
}

.outcomes li {
  margin-bottom: 0.5em;
  font-size: 1.04rem;
}

.outcomes li::marker { color: var(--burgundy); }

.metrics {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--gray-border);
  background: var(--warm-white);
}

.metrics--pending {
  border: 2px dashed var(--burgundy);
}

.metrics-flag {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--burgundy);
  padding: 4px 10px;
}

.metric-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-list strong {
  display: block;
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy);
  line-height: 1.1;
}

.metric-list span {
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--gray-mid);
}

.metrics-note {
  margin: 14px 0 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--gray-mid);
}

/* Education & certifications */
.credential-grid {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.credential {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--gray-border);
  border-inline-start: 3px solid var(--navy);
}

.credential--degree { border-inline-start-color: var(--burgundy); }

.credential strong {
  font-family: var(--sans);
  color: var(--navy);
  line-height: 1.4;
}

.credential span {
  font-size: 0.94rem;
  color: var(--gray-mid);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

/* Icons */
.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--lg {
  width: 30px;
  height: 30px;
  color: var(--burgundy);
}

.about-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 8px;
}

.about-actions .post-meta { margin: 0; }

/* Expertise pages */
.xp-hero .eyebrow a { color: inherit; }
.xp-hero .eyebrow a:hover { text-decoration: underline; }

.xp-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.xp-title h1 { margin: 0; }

.xp-hero-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
}

.xp-toc ul {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.xp-toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--gray-border);
  border-radius: 20px;
  padding: 7px 14px;
}

.xp-toc a .icon { color: var(--burgundy); }
.xp-toc a:hover { border-color: var(--navy); }

.xp-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-border);
  scroll-margin-top: 72px;
}

.xp-section:nth-of-type(odd) { background: var(--paper); }

.xp-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  max-width: 760px;
  margin-bottom: 32px;
}

.xp-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  border: 1px solid var(--gray-border);
  background: var(--warm-white);
}

.xp-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  margin-bottom: 6px;
}

.xp-head p { margin: 0; font-size: 1.05rem; }

.xp-section h4 { font-size: 1rem; margin: 0 0 4px; }

.xp-section li p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--charcoal);
}

/* cycle: steps joined by arrows, returning to the start */
.viz-cycle .cycle {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}

.cycle li {
  position: relative;
  padding: 20px 18px;
  background: var(--warm-white);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  text-align: center;
}

.cycle li .icon { margin: 0 auto 8px; display: block; }

.cycle li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline-end: -21px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background: var(--burgundy);
  clip-path: polygon(0 15%, 100% 50%, 0 85%);
}

.cycle-return {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 12px 16px;
  border: 1.5px dashed var(--burgundy);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--navy);
  text-align: center;
}

.cycle-return .icon { color: var(--burgundy); }

/* steps: numbered sequence */
.viz-steps,
.stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  counter-reset: xp;
}

.viz-steps li,
.stages li {
  position: relative;
  padding-inline-end: 18px;
}

.viz-steps li::before,
.stages li::before {
  counter-increment: xp;
  content: counter(xp);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--burgundy);
  background: var(--paper);
  color: var(--burgundy);
  font-family: var(--sans);
  font-weight: 700;
  margin-bottom: 12px;
}

.viz-steps li::after,
.stages li::after {
  content: '';
  position: absolute;
  top: 17px;
  inset-inline-start: 36px;
  inset-inline-end: 0;
  height: 2px;
  background: var(--gray-border);
}

.viz-steps li:last-child::after,
.stages li:last-child::after { display: none; }

/* lifecycle stages: coloured progression from new to loyal */
.stages li::before { content: ''; width: 18px; height: 18px; margin: 9px 0 21px; background: var(--navy); border-color: var(--navy); }
.stages li:nth-child(3)::before { background: var(--paper); border-color: var(--burgundy); }
.stages li:nth-child(4)::before { background: var(--burgundy); border-color: var(--burgundy); }
.stages li:nth-child(5)::before { background: #7A9EC2; border-color: var(--navy); }

.stage-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--gray-border);
}

.stage-channels p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}

.stage-channels ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stage-channels li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--warm-white);
  border: 1px solid var(--gray-border);
}

.stage-channels .icon { color: var(--burgundy); }

/* icon cards */
.viz-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.viz-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.viz-cards.cols-5 { grid-template-columns: repeat(5, 1fr); }

.hub-note { margin: 28px 0 0; }

.viz-cards li {
  padding: 20px;
  background: var(--warm-white);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
}

.xp-section:nth-of-type(even) .viz-cards li,
.xp-section:nth-of-type(even) .cycle li { background: var(--paper); }

.viz-cards .icon { display: block; margin-bottom: 10px; }

/* compare: cost against value */
.viz-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

.compare-side {
  padding: 22px;
  border-radius: 12px;
  border: 1px solid var(--gray-border);
  background: var(--warm-white);
}

.compare-side--cost { border-top: 4px solid var(--burgundy); }
.compare-side--value { border-top: 4px solid var(--navy); }

.compare-side h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.compare-side--cost h3 .icon { color: var(--burgundy); }
.compare-side--value h3 .icon { color: var(--navy); }

.compare-side ul { margin: 0; padding-inline-start: 1.1em; }
.compare-side li { margin-bottom: 0.3em; }

.compare-vs {
  align-self: center;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--gray-mid);
}

.compare-verdict {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
}

/* layers: a stack, top to bottom */
.viz-layers {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: 8px;
}

.viz-layers li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--warm-white);
  border: 1px solid var(--gray-border);
  border-inline-start: 4px solid var(--navy);
}

.viz-layers li:nth-child(1) { margin-inline: 0; border-inline-start-color: var(--burgundy); }
.viz-layers li:nth-child(2) { margin-inline: 12px; }
.viz-layers li:nth-child(3) { margin-inline: 24px; }
.viz-layers li:nth-child(4) { margin-inline: 36px; background: #EEF3F8; }

/* funnel: narrowing bars */
.viz-funnel {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: 6px;
}

.viz-funnel li {
  padding: 14px 20px;
  border-radius: 8px;
  text-align: center;
  background: var(--navy);
}

.viz-funnel li h4,
.viz-funnel li p { color: #fff; }

.viz-funnel li:nth-child(1) { margin-inline: 0; }
.viz-funnel li:nth-child(2) { margin-inline: 7%; background: var(--navy-soft); }
.viz-funnel li:nth-child(3) { margin-inline: 14%; background: #3E5A80; }
.viz-funnel li:nth-child(4) { margin-inline: 21%; background: var(--burgundy); }

/* In practice + FAQ */
.practice-block > * { max-width: 760px; }
.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.xp-practice h2 { font-size: 1.35rem; margin-bottom: 12px; }
.xp-practice p { margin: 0 0 14px; }

.faq details {
  border-bottom: 1px solid var(--gray-border);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--navy);
  list-style-position: outside;
}

.faq summary:hover { color: var(--burgundy); }
.faq details p { margin: 10px 0 0; }

/* Related expertise and the overview */
.xp-related h2 { font-size: 1.35rem; margin-bottom: 20px; }

.xp-related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.topic-card:hover,
.topic-card:focus-visible {
  border-color: var(--navy);
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.08);
}

.topic-card h3 { font-size: 1.05rem; }
.topic-card p { font-size: 0.95rem; color: var(--gray-mid); margin: 0; }

.xp-more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 28px 0 0;
}

.hub-map { display: grid; gap: 0; }

.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--gray-border);
  border-top: 4px solid var(--navy);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-card:hover,
.hub-card:focus-visible { box-shadow: 0 10px 26px rgba(11, 31, 58, 0.10); border-color: var(--navy); }

.hub-card h2 { font-size: 1.25rem; }
.hub-card p { margin: 0; flex: 1; }

.hub-card--lead {
  background: #7A9EC2;
  border-color: #64829F;
  border-top-color: var(--navy);
  max-width: 760px;
  width: 100%;
  justify-self: center;
}

.hub-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-white);
  color: var(--burgundy);
  border: 1px solid var(--gray-border);
}

.hub-card--lead .hub-icon { background: var(--navy); color: #fff; border-color: var(--navy); }

.hub-topics {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hub-topics li {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid rgba(11, 31, 58, 0.25);
  border-radius: 20px;
  padding: 3px 10px;
}

.hub-more {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--burgundy);
}

.hub-card--lead .hub-more { color: var(--navy); }

/* connector lines from growth marketing to the three disciplines */
.hub-connector {
  position: relative;
  height: 44px;
  margin: 0 16.66%;
  border: 2px solid var(--gray-border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  margin-top: 22px;
}

.hub-connector::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 50%;
  height: 22px;
  border-left: 2px solid var(--gray-border);
}

.hub-connector span { display: none; }

.hub-connector::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  height: 44px;
  border-left: 2px solid var(--gray-border);
}

.hub-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Insights index */
.blog-section {
  padding: 88px 0 96px;
}

.blog-coming-soon {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.blog-coming-soon .eyebrow,
.blog-coming-soon .section-heading {
  margin: 0;
}

.blog-coming-soon-text {
  max-width: 560px;
  font-size: 1.08rem;
  color: var(--charcoal);
  margin: 0;
}

.blog-index-header {
  margin-bottom: 40px;
  max-width: 720px;
}

.blog-index-intro {
  max-width: 640px;
  font-size: 1.1rem;
  margin: 0;
}

.post-list {
  border-top: 1px solid var(--gray-border);
  max-width: 820px;
}

.post-card {
  position: relative;
  padding: 36px 0;
  border-bottom: 1px solid var(--gray-border);
}

.post-card .eyebrow {
  margin-bottom: 10px;
}

.post-card-title {
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  line-height: 1.28;
  margin-bottom: 10px;
}

/* The title link covers the whole card, so the entire card is clickable. */
.post-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.post-card:hover .post-card-title a {
  color: var(--burgundy);
}

.post-card-title a:focus-visible {
  outline: none;
}

.post-card:focus-within {
  outline: 2px solid var(--navy-soft);
  outline-offset: 4px;
}

.post-card-subtitle {
  color: var(--charcoal);
  font-size: 1.03rem;
  max-width: 680px;
  margin: 0 0 12px;
}

/* Article */
.post {
  padding: 80px 0 96px;
}

.post-container {
  max-width: 784px; /* 720px reading width + 2 × 32px padding */
}

.post-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lang-switch {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--gray-border);
  border-radius: 20px;
  padding: 6px 14px;
  background: var(--paper);
}

.lang-switch:hover,
.lang-switch:focus-visible {
  border-color: var(--navy);
}

.lang-switch[lang="ar"] {
  font-family: var(--arabic);
}

.post-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.18;
  margin-bottom: 16px;
}

.post-subtitle {
  font-size: 1.22rem;
  line-height: 1.55;
  color: var(--gray-mid);
  margin: 0 0 22px;
}

.post-meta {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--gray-mid);
  margin: 0 0 12px;
}

.post-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-border);
}

.post-figure {
  margin: 40px 0;
}

.post-featured {
  margin-top: 0;
}

.post-figure img {
  width: 100%;
  border-radius: 2px;
}

.post-figure figcaption {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin-top: 10px;
}

.post-body {
  font-size: 1.12rem;
  line-height: 1.75;
}

.post-body > * {
  margin: 0 0 1.25em;
}

.post-body h2 {
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 2em 0 0.6em;
}

.post-body h3 {
  font-size: 1.28rem;
  line-height: 1.35;
  margin: 1.8em 0 0.5em;
}

.post-body h4 {
  font-size: 1.1rem;
  margin: 1.6em 0 0.5em;
}

.post-body a {
  text-decoration: underline;
  text-decoration-color: var(--burgundy);
  text-underline-offset: 3px;
}

.post-body a:hover {
  color: var(--burgundy);
}

.post-body ul,
.post-body ol {
  padding-inline-start: 1.4em;
}

.post-body li {
  margin-bottom: 0.4em;
}

.post-body blockquote {
  margin: 2em 0;
  padding-block: 4px;
  padding-inline-start: 22px;
  border-inline-start: 3px solid var(--burgundy);
  color: var(--navy);
  font-style: italic;
}

.post-tags {
  margin-top: 48px;
}

.post-related {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--gray-border);
}

.post-related .eyebrow {
  margin-bottom: 12px;
}

.post-back {
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--gray-border);
}

/* Arabic (right-to-left) typography */
main[dir="rtl"] {
  font-family: var(--arabic);
}

main[dir="rtl"] h1,
main[dir="rtl"] h2,
main[dir="rtl"] h3,
main[dir="rtl"] h4,
main[dir="rtl"] .eyebrow,
main[dir="rtl"] .post-meta,
main[dir="rtl"] .read-more,
main[dir="rtl"] .btn,
main[dir="rtl"] .descriptors,
main[dir="rtl"] .tl-org,
main[dir="rtl"] .tl-dates,
main[dir="rtl"] .credential strong,
main[dir="rtl"] .journey-num,
main[dir="rtl"] .flow-node p,
main[dir="rtl"] .flow-rail,
main[dir="rtl"] .journey-note,
main[dir="rtl"] .metrics-flag,
main[dir="rtl"] .metric-list strong,
main[dir="rtl"] .metric-list span,
main[dir="rtl"] .capability-tags li,
main[dir="rtl"] .post-figure figcaption {
  font-family: var(--arabic);
  letter-spacing: 0;
}

main[dir="rtl"] .eyebrow {
  text-transform: none;
  font-size: 0.88rem;
}

main[dir="rtl"] .post-body,
main[dir="rtl"] .about-lede p,
main[dir="rtl"] .tl-points,
main[dir="rtl"] .outcomes,
main[dir="rtl"] .journey-step p,
main[dir="rtl"] .blog-index-intro,
main[dir="rtl"] .post-card-subtitle {
  line-height: 1.95;
}

main[dir="rtl"] .post-body {
  font-size: 1.15rem;
}

main[dir="rtl"] .post-body blockquote {
  font-style: normal;
}

main[dir="rtl"] [lang="en"] {
  font-family: var(--sans);
}

/* Footer (identical to the site's pages) */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--gray-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--gray-mid);
}

.footer-inner a {
  color: var(--gray-mid);
}

.footer-inner a:hover {
  color: var(--navy);
}

/* Responsive */
@media (max-width: 960px) {
  /* The flow becomes a vertical list with downward arrows. */
  .flow {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 460px;
  }

  .flow-step:not(:last-child)::after,
  [dir="rtl"] .flow-step:not(:last-child)::after {
    top: auto;
    bottom: -18px;
    inset-inline-end: auto;
    inset-inline-start: 50%;
    margin: 0 0 0 -7px;
    clip-path: polygon(15% 0, 85% 0, 50% 100%);
  }

  .flow-step--branch {
    flex-direction: row;
  }

  .flow-step--branch .flow-node { flex: 1; }

  .flow-node { min-height: 0; }

  .flow-rail { max-width: 460px; }

  .journey-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .journey-step,
  [dir="rtl"] .journey-step {
    padding: 0;
    padding-inline-start: 48px;
  }

  .journey-num {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
  }

  .journey-step::before {
    top: 32px;
    bottom: -18px;
    inset-inline-start: 15px;
    inset-inline-end: auto;
    width: 2px;
    height: auto;
  }
}

@media (max-width: 960px) {
  .cycle li:not(:last-child)::after { display: none; }

  .viz-steps,
  .stages {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .viz-steps li,
  .stages li {
    padding-inline-start: 52px;
    padding-inline-end: 0;
    min-height: 36px;
  }

  .viz-steps li::before,
  .stages li::before {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    margin: 0;
  }

  .stages li::before { inset-inline-start: 9px; }

  .viz-steps li::after,
  .stages li::after {
    top: 36px;
    bottom: -16px;
    inset-inline-start: 17px;
    inset-inline-end: auto;
    width: 2px;
    height: auto;
  }

  .practice-block > * { max-width: 760px; }
.practice-grid { grid-template-columns: 1fr; gap: 36px; }
  .viz-cards, .viz-cards.cols-3, .viz-cards.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .xp-related-grid, .hub-row { grid-template-columns: 1fr; }
  .hub-connector { display: none; }
  .hub-row { margin-top: 16px; }
}

@media (max-width: 860px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .portrait {
    order: -1;
    width: 152px;
    height: 152px;
  }

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

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

  .tl-item {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tl-dates {
    text-align: start;
    padding-inline-start: 30px;
    margin-bottom: 4px;
  }

  .tl-body { padding-bottom: 28px; }
}

@media (max-width: 560px) {
  .viz-cards, .viz-cards.cols-3, .viz-cards.cols-5 { grid-template-columns: 1fr; }
  .viz-compare { grid-template-columns: 1fr; }
  .compare-vs { justify-self: center; }
  .viz-layers li { margin-inline: 0 !important; }
  .viz-funnel li { margin-inline: 0 !important; }
  .xp-title { flex-direction: column; align-items: flex-start; }
  .xp-hero-icon { width: 52px; height: 52px; }

  .credential-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav-wrap { padding: 18px 20px; }
  .page-hero { padding: 56px 0 40px; }
  .page-section, .xp-section { padding: 44px 0; }
  .blog-section { padding: 56px 0 64px; }
  .post { padding: 48px 0 64px; }
  .post-related { padding: 20px; }

  nav.primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--gray-border);
    display: none;
  }

  nav.primary-nav.open {
    display: block;
  }

  nav.primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 20px;
  }

  nav.primary-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-border);
  }

  nav.primary-nav a.nav-active {
    border-bottom-color: var(--gray-border);
    color: var(--burgundy);
  }

  .nav-toggle {
    display: inline-block;
  }

  .post-body { font-size: 1.06rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Expertise page (single page): prose first, one visual at most per section, evidence, next step */
.xp-section .xp-head { align-items: center; margin-bottom: 20px; }
.xp-section .xp-head h2 { margin: 0; }
.xp-prose { max-width: 720px; }
.xp-prose p { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.7; }
.xp-prose p:last-child { margin-bottom: 0; }
.xp-section .viz-compare,
.xp-section .viz-levels { margin: 28px 0; max-width: 960px; }
.xp-section .viz-compare:last-child,
.xp-section .viz-levels:last-child { margin-bottom: 0; }

/* levels: three readings of performance, from weakest to strongest evidence */
.viz-levels ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.viz-levels li {
  padding: 22px;
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  background: var(--warm-white);
  border-top: 4px solid #7A9EC2;
}
.viz-levels li:nth-child(2) { border-top-color: var(--navy); }
.viz-levels li:nth-child(3) { border-top-color: var(--burgundy); }
.xp-section:nth-of-type(odd) .viz-levels li,
.xp-section:nth-of-type(odd) .compare-side { background: #fff; }
.level-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.viz-levels h3 { font-size: 1.02rem; margin: 0 0 6px; }
.viz-levels li p { margin: 0; font-size: 0.95rem; line-height: 1.55; }
.levels-note {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.xp-evidence h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 24px; }
.evidence-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
  display: grid;
  gap: 0;
}
.evidence-list li {
  padding: 20px 0;
  padding-inline-start: 20px;
  border-inline-start: 3px solid var(--gray-border);
}
.evidence-list li:first-child { border-inline-start-color: var(--burgundy); }
.evidence-list li:nth-child(2) { border-inline-start-color: var(--navy); }
.evidence-list p { margin: 0 0 8px; line-height: 1.65; }
.evidence-org { font-family: var(--sans); font-weight: 700; color: var(--navy); }
.evidence-org span { font-weight: 500; color: var(--gray-mid); margin-inline-start: 8px; }
.xp-next { margin-top: 32px; }

@media (max-width: 860px) {
  .viz-levels ol { grid-template-columns: 1fr; }
}

.xp-kicker { margin: 4px 0 0; font-family: var(--sans); font-size: 0.98rem; color: var(--burgundy); font-weight: 500; }
.xp-method {
  list-style: none;
  counter-reset: method;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--gray-border);
}
.xp-method li {
  counter-increment: method;
  position: relative;
  padding: 16px 0 16px 44px;
  border-bottom: 1px solid var(--gray-border);
  line-height: 1.65;
}
.xp-method li::before {
  content: counter(method);
  position: absolute;
  left: 0;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--burgundy);
  color: var(--burgundy);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xp-method strong { font-family: var(--sans); color: var(--navy); }
.evidence-points { margin: 4px 0 10px; padding-inline-start: 1.1em; }
.evidence-points li { margin-bottom: 6px; line-height: 1.6; }
.evidence-points strong { font-family: var(--sans); font-size: 0.95em; color: var(--navy); }
.evidence-list .evidence-points li { padding: 0; border: 0; list-style: disc; }
.evidence-list .evidence-points li::marker { color: var(--burgundy); }

/* questions: Growth Marketing as four commercial questions in sequence; the last one (compounding) is emphasised */
#growth-marketing .xp-prose p { font-size: clamp(1.15rem, 1.9vw, 1.32rem); line-height: 1.5; color: var(--navy); text-wrap: balance; }
.viz-questions {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  counter-reset: none;
}
.viz-questions li {
  position: relative;
  padding: 24px 24px 22px;
  background: var(--paper);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  border-top: 4px solid #7A9EC2;
}
.viz-questions li:nth-child(2) { border-top-color: var(--navy); }
.viz-questions li:nth-child(3) { border-top-color: var(--burgundy); }
.viz-questions li:nth-child(4) {
  background: var(--navy);
  border-color: var(--navy);
  border-top-color: var(--burgundy);
  color: #fff;
}
.q-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
  font-family: var(--sans);
}
.q-num {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 700;
  color: var(--burgundy);
}
.q-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.viz-questions h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1.12rem;
  color: var(--navy);
}
.viz-questions li > p:last-child { margin: 0; font-size: 0.97rem; line-height: 1.6; }
.viz-questions li:nth-child(4) .q-num { color: #E8B4BE; }
.viz-questions li:nth-child(4) .q-tag { color: rgba(255, 255, 255, 0.72); }
.viz-questions li:nth-child(4) h3 { color: #fff; }
.viz-questions li:nth-child(4) > p:last-child { color: rgba(255, 255, 255, 0.9); }

@media (max-width: 760px) {
  .viz-questions { grid-template-columns: 1fr; }
  .viz-questions li { padding: 20px 18px; }
}

/* Arabic: no letter-spacing or uppercase on small labels (keeps Arabic letters joined) */
main[dir="rtl"] .q-tag { letter-spacing: 0; text-transform: none; font-size: 0.8rem; font-family: var(--arabic); }
