/* ==========================================================================
   MHN Advisory — styles
   Mobile-first. Direction-agnostic: logical properties throughout so the
   same stylesheet serves <html dir="rtl"> when Arabic launches.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy: #1F2A44;
  --navy-deep: #161E32;          /* hover state for navy surfaces */
  --gold: #B08D57;               /* decorative, large text, fills */
  --gold-deep: #8F6F3E;          /* gold text on light backgrounds */
  --linen: #F5F3EF;
  --ink: #2D2D2D;
  --alert: #9B3B3B;              /* form validation only */
  --white: #FFFFFF;

  /* Derived */
  --ink-muted: rgba(45, 45, 45, 0.78);
  --line: rgba(31, 42, 68, 0.12);
  --line-strong: rgba(31, 42, 68, 0.24);
  --on-navy: #F5F3EF;
  --on-navy-muted: rgba(245, 243, 239, 0.78);
  --shadow-sm: 0 1px 2px rgba(31, 42, 68, 0.06), 0 2px 8px rgba(31, 42, 68, 0.05);
  --shadow-md: 0 4px 12px rgba(31, 42, 68, 0.08), 0 12px 32px rgba(31, 42, 68, 0.08);

  /* Type */
  --font: "Source Serif 4", Georgia, "Noto Naskh Arabic", "Traditional Arabic", serif;
  --font-ar: "Noto Naskh Arabic", "Traditional Arabic", "Source Serif 4", serif;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;

  /* Space & shape */
  --gutter: 16px;
  --container: 1200px;
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 68px;
  --section-y: clamp(4rem, 9vw, 7rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 240ms;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 80px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 600; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

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

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

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  inset-block-start: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--on-navy);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { inset-block-start: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Directional glyphs (arrows) mirror in RTL */
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

/* Arabic never gets tracking */
:lang(ar) { letter-spacing: 0 !important; }
/* Brand v2: Arabic set in Noto Naskh Arabic, ~10% larger, looser leading */
html[lang="ar"] { font-size: 110%; }
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon-dir { transition: translate var(--dur) var(--ease); }
.btn:hover .icon-dir { translate: 3px 0; }
[dir="rtl"] .btn:hover .icon-dir { translate: -3px 0; }

.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--navy-deep); }

/* Gold fill: navy text at ≥19px bold meets the 3:1 large-text threshold */
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-size: 1.1875rem;
}
.btn-gold:hover { background: #BE9C66; }
.section-navy .btn-gold:focus-visible,
.quote-cta .btn-gold:focus-visible { outline-color: var(--linen); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--on-navy); }
.btn-outline .icon-down { transition: translate var(--dur) var(--ease); }
.btn-outline:hover .icon-down { translate: 0 3px; }

.btn-sm { min-height: 44px; padding: 0.5rem 1.125rem; font-size: 0.9375rem; }
.btn-block { width: 100%; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}
.eyebrow-center { justify-content: center; display: flex; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { border-block-end-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.625rem; padding-block: 0.25rem; text-decoration: none; }
.brand-icon { height: 40px; width: 40px; }
.brand-label { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text { font-family: "Source Serif 4", "Georgia", serif; font-size: 1.375rem; font-weight: 600; color: var(--navy); letter-spacing: 0.01em; white-space: nowrap; }
.brand-text-ar { font-family: "Noto Naskh Arabic", "Traditional Arabic", serif; font-size: 0.75rem; font-weight: 400; color: var(--gold-deep); letter-spacing: 0; direction: rtl; }
@media (min-width: 1024px) { .brand-icon { height: 46px; width: 46px; } .brand-text { font-size: 1.5rem; } .brand-text-ar { font-size: 0.8125rem; } }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-inline-end: -8px;
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Language toggle */
.lang-toggle {
  align-self: flex-start;
  display: inline-grid;
  place-items: center;
  grid-auto-flow: column;
  gap: 0.4rem;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  font: 500 0.9375rem/1 var(--font);
  color: var(--navy);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.lang-toggle:hover { border-color: var(--gold); background: var(--linen, #f3f1ed); }
.lang-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-label { font-size: inherit; line-height: 1; padding-block-start: 0.1em; }
.lang-globe { width: 1.125rem; height: 1.125rem; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html[lang="ar"] .stage-ar { display: none; }
html[lang="ar"] .eyebrow, html[lang="ar"] .pills-label { text-transform: none; }

/* Mobile nav panel */
.site-nav {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--white);
  border-block-end: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.site-nav.is-open { display: flex; }
.nav-list a {
  display: block;
  padding-block: 0.875rem;
  border-block-end: 1px solid var(--line);
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
/* Without JS the toggle can't work, so show the links inline */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-block: 0.75rem; }
html:not(.js) .site-nav { position: static; display: flex; flex-basis: 100%; padding: 0; border: 0; box-shadow: none; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-list { display: flex; gap: 0.5rem; }
  .nav-list a {
    position: relative;
    padding: 0.5rem 0.75rem;
    border: 0;
    font-size: 0.9375rem;
    transition: color var(--dur-fast) var(--ease);
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    inset-inline: 0.75rem;
    inset-block-end: 2px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--dur) var(--ease);
  }
  .nav-list a:hover::after,
  .nav-list a[aria-current="true"]::after { transform: scaleX(1); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-h));
  background: var(--linen);
  overflow: hidden;
}

.hero-inner { order: 1; padding-block: 3rem 2.5rem; flex: 0 0 auto; }

.hero-title {
  font-size: clamp(2.125rem, 5.4vw + 0.5rem, 3.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.hero-title .accent { color: var(--gold-deep); }

.hero-sub {
  margin-block-start: 1.25rem;
  max-width: 34rem;
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--ink-muted);
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--gold);
}

.hero-actions { margin-block-start: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.pills-label {
  margin-block-start: 2rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Stage pill sequence */
.stage-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: 0.75rem;
}
/* Inside the approach section the pills introduce the heading: centre them
   with it and give the heading room */
#approach .pills-label { margin-block-start: 0; text-align: center; }
#approach .stage-pills { justify-content: center; margin-block-end: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 420px) {
  #approach .stage-pills { gap: 0.25rem; }
  #approach .pill { padding-inline: 0.75rem; letter-spacing: 0.06em; }
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.375rem 1.125rem;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--white);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.pill:hover { background: var(--navy); color: var(--on-navy); }
.pill-sep { color: var(--gold-deep); display: inline-flex; }
.pill-sep .icon { width: 1.25rem; height: 1.25rem; }

/* Angled photo panel — stacked under copy on mobile */
.hero-media {
  order: 2;
  position: relative;
  height: clamp(280px, 55vw, 420px);
  flex: 1 0 auto;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 40%;
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
}
.hero-rule { display: none; }

@media (min-width: 960px) {
  .hero { display: block; min-height: calc(100svh - var(--header-h)); }
  .hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: inherit;
    padding-block: 5rem;
  }
  .hero-copy { max-width: 48%; }
  .hero-media {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 54%;
    height: auto;
  }
  .hero-media img {
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
    object-position: 42% 50%;
  }
  .hero-rule {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }
  .hero-rule line {
    stroke: var(--gold);
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
  }
  [dir="rtl"] .hero-media img { clip-path: polygon(0 0, 72% 0, 100% 100%, 0 100%); }
  [dir="rtl"] .hero-rule { transform: scaleX(-1); }
}
@media (min-width: 1280px) { .hero-copy { max-width: 46%; } }

/* ==========================================================================
   Trust strip
   ========================================================================== */
.trust {
  padding-block: 2.5rem;
  background: var(--white);
  border-block-end: 1px solid var(--line);
}
.trust-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-block-start: 1.25rem;
}
.trust-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  line-height: 1.35;
}
.trust-icon {
  width: 1.25rem; height: 1.25rem;
  flex: none;
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.trust-list li::before {
  content: none;
}

/* Standards grid — categorised */
.standards-grid {
  display: grid;
  gap: 1.25rem;
  margin-block-start: 2rem;
}
.standards-category {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.standards-category-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  padding-block-end: 0.875rem;
  border-block-end: 2px solid var(--gold);
}
.standards-list {
  display: grid;
  gap: 0;
}
.standards-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding-block: 0.625rem;
  border-block-end: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.standards-list li:last-child { border-block-end: 0; padding-block-end: 0; }
.standards-list li::before {
  content: "";
  width: 6px; height: 6px;
  flex: none;
  background: var(--gold);
  transform: rotate(45deg);
}
@media (min-width: 640px) {
  .standards-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .standards-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}
@media (min-width: 640px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .trust-list { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .trust-list li { border: 0; border-inline-start: 1px solid var(--line); border-radius: 0; font-size: var(--fs-sm); }
  .trust-list li:first-child { border-inline-start: 0; }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { padding-block: var(--section-y); background: var(--white); }
.section-linen { background: var(--linen); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy .section-title { color: var(--on-navy); }
.section-navy .section-sub { color: var(--on-navy-muted); }
.section-navy :focus-visible { outline-color: var(--gold); }

.section-head {
  max-width: 46rem;
  margin-inline: auto;
  margin-block-end: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}
.section-head .eyebrow { margin-block-end: 0.75rem; }
.section-title { font-size: clamp(1.75rem, 2.6vw + 0.75rem, 2.5rem); }
.section-sub { margin-block-start: 1rem; font-size: var(--fs-lg); color: var(--ink-muted); }

/* Track colour key: Institutional Excellence = navy, Legal & Compliance = gold */
.track-dot {
  display: inline-block;
  width: 10px; height: 10px;
  flex: none;
  transform: rotate(45deg);
}
.track-dot.track-ie { background: var(--navy); }
.track-dot.track-lc { background: var(--gold); }

.track-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin-block-start: 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
}
.track-legend li { display: inline-flex; align-items: center; gap: 0.625rem; }

.stage-ar {
  font-size: 0.72em;
  font-weight: 500;
  color: var(--gold-deep);
  margin-inline-start: 0.5rem;
  white-space: nowrap;
}

/* ==========================================================================
   Approach — stage cards
   ========================================================================== */
.stages {
  display: grid;
  gap: 1.5rem;
  counter-reset: none;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
/* Gold marker: a short rule instead of a heavy top border */
.stage::before {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline-start: 1.75rem;
  width: 3rem;
  height: 3px;
  background: var(--gold);
  transition: width var(--dur) var(--ease);
}
.stage:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.stage:hover::before { width: 5rem; }

.stage-num {
  display: block;
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  margin-block-end: 0.875rem;
}
.stage-name { font-size: 1.625rem; }
.stage-tag {
  margin-block-start: 0.25rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.stage-desc { color: var(--ink-muted); }

.stage-tracks { display: grid; gap: 0.75rem; }
.track {
  padding: 0.875rem 1rem;
  background: var(--linen);
  border-radius: var(--radius);
  border-inline-start: 3px solid var(--navy);
}
.track.track-lc { border-inline-start-color: var(--gold); }
.track-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-block-end: 0.375rem;
}
.track ul li {
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  padding-block: 0.1875rem;
}

.callout {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(176, 141, 87, 0.1);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.callout .icon { color: var(--gold-deep); margin-block-start: 0.125rem; width: 1.25rem; height: 1.25rem; }

.stage-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-block-start: auto;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  align-self: flex-start;
}
.stage-link:hover { text-decoration-color: var(--navy); }

.stage-tracks-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.track-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-muted);
}
.track-mini .track-dot { width: 8px; height: 8px; }

/* Connector arrows between stages (mobile: downward) */
.stage:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: -1.125rem;
  width: 12px; height: 12px;
  /* Physical sides on purpose: the rotation below is tuned to them, so the
     arrow points at the next stage in both LTR and RTL */
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
}
[dir="rtl"] .stage:not(:last-child)::after { transform: translateX(50%) rotate(45deg); }

@media (min-width: 960px) {
  .stages { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .stage:not(:last-child)::after {
    inset-inline-start: auto;
    inset-inline-end: -1.35rem;
    inset-block-start: 3.25rem;
    inset-block-end: auto;
    transform: rotate(-45deg);
  }
  [dir="rtl"] .stage:not(:last-child)::after { transform: rotate(135deg); }

  /* Align the two track rows across all three cards so the dual-track
     structure reads as one matrix */
  @supports (grid-template-rows: subgrid) {
    .stages { grid-template-rows: repeat(6, auto); row-gap: 0; }
    .stage {
      display: grid;
      grid-row: span 6;
      grid-template-rows: subgrid;
      row-gap: 1.25rem;
    }
    .stage-tracks { display: contents; }
    .stage-top { grid-row: 1; }
    .stage-desc { grid-row: 2; }
    .stage .track-ie { grid-row: 3; }
    .stage .track-lc { grid-row: 4; }
    .stage .callout { grid-row: 5; }
    .stage .stage-link { grid-row: 6; align-self: end; }
    .stage .track-lc { margin-block-start: -0.5rem; }
  }
}

/* As-needed support (deliberately not a numbered stage) */
.as-needed {
  display: grid;
  gap: 0.75rem;
  margin-block-start: 2.5rem;
  padding: 1.75rem 1.5rem;
  background: transparent;
  border: 1.5px dashed var(--gold-deep);
  border-radius: var(--radius);
}
.as-needed-title { font-size: 1.25rem; }
.as-needed p:not(.eyebrow) { color: var(--ink-muted); }
@media (min-width: 960px) {
  .as-needed {
    grid-template-columns: 1fr 1.4fr auto;
    align-items: center;
    column-gap: 2.5rem;
    padding: 2rem 2.5rem;
  }
  .as-needed .eyebrow { grid-column: 1; grid-row: 1; align-self: end; }
  .as-needed-title { grid-column: 1; grid-row: 2; align-self: start; }
  .as-needed p:not(.eyebrow) { grid-column: 2; grid-row: 1 / span 2; }
  .as-needed .stage-link { grid-column: 3; grid-row: 1 / span 2; margin: 0; align-self: center; }
}

/* ==========================================================================
   Services — tabs
   ========================================================================== */
.tablist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.375rem;
  max-width: 44rem;
  margin-inline: auto;
  padding: 0.375rem;
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.tab:hover { background: var(--white); }
.tab-num { font-size: 0.8125rem; color: var(--gold-deep); }
.tab[aria-selected="true"] { background: var(--navy); color: var(--on-navy); box-shadow: var(--shadow-sm); }
.tab[aria-selected="true"] .tab-num { color: var(--gold); }
.tab-aside { font-weight: 500; }

@media (min-width: 640px) {
  .tablist { display: flex; }
  .tab { flex: 1 1 0; }
  .tab-aside { position: relative; margin-inline-start: 0.75rem; }
  .tab-aside::before {
    content: "";
    position: absolute;
    inset-inline-start: -0.5625rem;
    inset-block: 0.625rem;
    width: 1px;
    background: var(--line-strong);
  }
}

.tabpanel {
  margin-block-start: 2.5rem;
  animation: panel-in var(--dur) var(--ease);
}
.tabpanel:focus-visible { outline-offset: 8px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel-head { max-width: 40rem; margin-inline: auto; margin-block-end: 2rem; text-align: center; }
.panel-title { font-size: 1.5rem; }
.panel-head p { margin-block-start: 0.5rem; color: var(--ink-muted); }

.panel-grid {
  display: grid;
  gap: 1.5rem;
}
.panel-col {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-block-start: 3px solid var(--navy);
  border-radius: var(--radius);
}
.panel-col.track-lc { border-block-start-color: var(--gold); }
.col-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.0625rem;
  padding-block-end: 0.75rem;
  border-block-end: 1px solid var(--line);
}
@media (min-width: 768px) { .panel-grid { grid-template-columns: 1fr 1fr; } }

.service-list li {
  display: grid;
  gap: 0.25rem;
  padding-block: 1rem;
  border-block-end: 1px solid var(--line);
}
.service-list li:last-child { border-block-end: 0; padding-block-end: 0; }
.service-list strong { color: var(--navy); font-weight: 600; line-height: 1.4; }
.service-list span { color: var(--ink-muted); font-size: 0.9375rem; line-height: 1.6; }
.service-outcome {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gold-deep);
  line-height: 1.5;
}

.service-list-single {
  max-width: 44rem;
  margin-inline: auto;
  padding: 1.5rem;
  border: 1.5px dashed var(--gold-deep);
  border-radius: var(--radius);
}
.service-list-single li { padding: 0; }

.tabpanel .callout { max-width: 44rem; margin: 1.5rem auto 0; }

.callout-promo {
  max-width: 44rem;
  margin-inline: auto;
  margin-block: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--gold);
  border-inline-start-width: 4px;
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.6;
  color: var(--navy);
}
.callout-promo .icon {
  box-sizing: content-box;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.625rem;
  margin: 0;
  color: var(--gold-deep);
  background: rgba(176, 141, 87, 0.12);
  border-radius: var(--radius);
}

.services-anchor {
  scroll-margin-block-start: calc(var(--header-h) + 12px);
  margin-block-end: 2rem;
}

/* Tailored quote CTA (replaces all pricing) */
.quote-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  margin-block-start: clamp(3rem, 6vw, 4.5rem);
  padding: 2rem 1.5rem;
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.quote-cta::after {   /* diamond-grid echo of the logo mark */
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 40%;
  background-image:
    linear-gradient(45deg, transparent 46%, rgba(176,141,87,.18) 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(176,141,87,.18) 46% 54%, transparent 54%);
  background-size: 28px 28px;
  mask-image: linear-gradient(to left, #000, transparent);
  -webkit-mask-image: linear-gradient(to left, #000, transparent);
  pointer-events: none;
}
[dir="rtl"] .quote-cta::after {
  mask-image: linear-gradient(to right, #000, transparent);
  -webkit-mask-image: linear-gradient(to right, #000, transparent);
}
.quote-cta p { position: relative; z-index: 1; font-size: 1.25rem; line-height: 1.5; max-width: 36rem; }
.quote-cta strong { color: var(--gold); font-weight: 600; }
.quote-cta .btn { position: relative; z-index: 1; }
@media (min-width: 768px) {
  .quote-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 2.5rem 3rem; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-copy .section-title { margin-block-end: 1.25rem; }
.about-copy p { font-size: var(--fs-lg); line-height: 1.8; }
.about-blocks {
  display: grid;
  gap: 1.5rem;
  margin-block-start: 1.25rem;
}
.about-block p {
  font-size: var(--fs-lg);
  line-height: 1.8;
  color: var(--ink);
}
.about-block strong {
  color: var(--navy);
}
.about-copy .note {
  margin-block-start: 1.75rem;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--gold);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.about-media { margin: 0; position: relative; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 18%);
}
.about-media::before {
  content: "";
  position: absolute;
  inset: 1rem -0.75rem -0.75rem 1rem;
  border: 2px solid var(--gold);
  z-index: -1;
}
.about-media { isolation: isolate; }
[dir="rtl"] .about-media img { clip-path: polygon(0 0, 86% 0, 100% 18%, 100% 100%, 0 100%); }
[dir="rtl"] .about-media::before { inset: 1rem 1rem -0.75rem -0.75rem; }

@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1.15fr 0.85fr; gap: 4.5rem; }
}

/* ==========================================================================
   Social proof
   ========================================================================== */
.proof {
  padding-block: 2.5rem;
  background: var(--linen);
  border-block: 1px solid var(--line);
}
.proof-inner {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}
.proof-text {
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--ink-muted);
}
.proof-text strong {
  color: var(--navy);
  font-weight: 600;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; gap: 3rem; }
.contact-list { display: grid; gap: 0.5rem; margin-block-start: 2rem; }
.contact-list li { display: flex; align-items: center; gap: 0.875rem; min-height: 44px; font-size: var(--fs-lg); }
.contact-list .icon { color: var(--gold); width: 1.375rem; height: 1.375rem; }
.contact-list a { color: var(--on-navy); text-decoration: none; border-block-end: 1px solid rgba(176,141,87,.5); }
.contact-list a:hover { border-block-end-color: var(--gold); }

.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.contact-form :focus-visible { outline-color: var(--gold-deep); }
.field { display: grid; gap: 0.375rem; }
.field label { font-weight: 600; font-size: 0.9375rem; color: var(--navy); }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.875rem;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 1rem;               /* ≥16px prevents iOS zoom */
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: rgba(31,42,68,.45); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.35);
}
.field [aria-invalid="true"] { border-color: var(--alert); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(155, 59, 59, 0.2); }
.form-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.field-optional {
  font-weight: 400;
  font-size: var(--fs-sm);
  color: var(--ink-muted);
}
.field-hint {
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  font-weight: 400;
}
.field-error { font-size: var(--fs-sm); font-weight: 500; color: var(--alert); }
.form-status { font-size: 0.9375rem; font-weight: 500; color: var(--navy); min-height: 1.5em; }
.form-status:empty { display: none; }
.contact-form button[aria-busy="true"] { opacity: 0.7; cursor: progress; }

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: start; }
  .contact-form { padding: 2.5rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding-block: 2.5rem;
  background: var(--linen);
  border-block-start: 3px solid var(--gold);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}
.footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.footer-tagline {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-muted);
  max-width: 22rem;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }
.footer-links a {
  display: inline-block;
  padding-block: 0.625rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.footer-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer-trust-marks {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.footer-trust-marks li {
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}
.footer-copy { font-size: var(--fs-sm); color: var(--ink-muted); }
.footer-reg { display: flex; flex-direction: column; align-items: inherit; gap: 0.5rem; margin-block-start: 0.5rem; }
.footer-reg img { height: 40px; width: auto; }
.footer-un { display: flex; flex-direction: column; gap: 0.15rem; font-size: var(--fs-sm); color: var(--ink-muted); }
.footer-un-num { font-weight: 600; font-variant-numeric: tabular-nums; }

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: start; align-items: flex-start; }
  .footer-brand-block { align-items: flex-start; }
  .footer-end { align-items: flex-end; }
}

/* ==========================================================================
   Reveal on scroll (JS-enhanced only)
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .stages .reveal:nth-child(2) { transition-delay: 90ms; }
.js .stages .reveal:nth-child(3) { transition-delay: 180ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
