/* ============================================================
   CRM Academy of Asia — Design System
   ============================================================ */

/* Fonts — self-hosted; faces are declared in fonts/fonts.css, loaded via a
   <link> on every page (no third-party font request). */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Primary brand */
  --crmaa-blue:  #0B3D91;
  --exp-blue:    #1565C0;
  --cyan:        #00B8D9;
  --cyan-pale:   #E3F7FC;
  /* Legacy aliases kept for backwards compat */
  --navy:        #0B3D91;
  --navy-deep:   #071F52;
  --navy-mid:    #0E3580;
  --gold:        #C8923A;
  --gold-text:   #8A6024;   /* AA on LIGHT surfaces only; dark surfaces use --gold-light */
  --teal-text:#0C7D6C;          /* AA on LIGHT surfaces (5.04 on white);
                                  dark panels override it below, because
                                  a darker teal measures 1.99 on navy. */
  --gold-light:  #E8B96A;
  --gold-pale:   #F9F0E3;
  --teal:        #0C6B5E;
  --teal-light:  #E6F4F1;
  --success:     #2E7D32;
  --warning:     #F9A825;
  --warning-text:#9D6205;
  --error:       #C62828;
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;
  --surface:     #F4F3EF;
  --text:        #1A1A2E;
  --text-muted:  #374151;
  --text-light:  #67707F;
  --border:      #E5E7EB;
  --border-dark: #D1CEC4;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.12);
  --shadow-xl:   0 24px 60px rgba(0,0,0,.16);
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --font-display:'Manrope', system-ui, sans-serif;
  --transition:  .25s cubic-bezier(.4,0,.2,1);
  --transition-slow: .45s cubic-bezier(.4,0,.2,1);
  --max-width:   1280px;
  --gutter:      clamp(1.25rem, 5vw, 5rem);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p { color: var(--text-muted); }
em { font-style: italic; color: var(--gold-text); }
mark { background: none; color: var(--gold-text); font-weight: 600; }
strong { color: var(--text); font-weight: 600; }

/* ── Layout Helpers ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section-pad { padding-block: clamp(4rem, 8vw, 7rem); }
/* The tighter section, and the gutter as something a section can opt into
   (roadmap 1.5). 22 sections padded themselves inline with twelve different
   values; twelve of them also held a .container, which pads itself, so the
   content sat at 128px instead of 64. A section with a container inside takes
   a padding class alone; one without adds .section-gutter. */
.section-pad--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-gutter { padding-inline: var(--gutter); }

/* The FAQ section (roadmap 1.5). .faq-sec was a class with no rule anywhere -
   a hook that four pages then filled in by repeating the same inline layout.
   The values here are exactly the ones those four agreed on. */
.faq-sec {
  max-width: 860px;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  padding-inline: var(--gutter);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Components ─────────────────────────────────────────── */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .01em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  /* Deep navy, not white. White on #C8923A is 2.75:1 — the primary call to
     action on every page of the site was the least readable text on it. Deep
     navy on the same gold is 5.75:1. The hover gold goes LIGHTER for the same
     reason: the old darker one drops navy ink to 4.39:1, just under AA. */
  color: var(--navy-deep);
}
.btn-primary:hover { background: #D9A94F; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200,146,58,.35); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
/* The ghost button was designed for a dark hero: translucent white on white
   text. Twelve of the fourteen on accreditation.html sit on light sections,
   where that is white text on a white wash — an invisible button. The
   default is now the light-surface version, and the dark panels (the list at
   the foot of this file, maintained from measurement) restore the original. */
.btn-ghost {
  background: rgba(11,61,145,.06);
  color: var(--navy);
  border: 1.5px solid rgba(11,61,145,.28);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(11,61,145,.12); }
.btn-sm { padding: .55rem 1.25rem; font-size: .82rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn svg { width: 16px; height: 16px; }

/* Arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--gold-text);
  transition: gap var(--transition);
}
.arrow-link:hover { gap: .85rem; }

/* Tag/Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .8rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-gold { background: var(--gold-pale); color: var(--gold-text); }
.badge-navy { background: var(--navy); color: var(--white); }
.badge-teal { background: var(--teal-light); color: var(--teal); }

/* Eyebrow */
.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* Section label */
.section-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.section-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: .7rem;
}
.section-label::after {
  content: '';
  flex: 1;
  max-width: 3rem;
  height: 1px;
  background: var(--border-dark);
}
.section-label.light { color:rgba(255,255,255,.72); }
.section-label.light span { background: rgba(255,255,255,.15); }
.section-label.light::after { background: rgba(255,255,255,.2); }

/* Divider */
.divider { width: 100%; height: 1px; background: var(--border); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.site-header.scrolled {
  background: rgba(11,29,58,.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 24px rgba(0,0,0,.2);
  padding-block: .85rem;
}
.site-header.inner-header {
  background: rgba(11,29,58,.97);
  backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { height: 38px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: -.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.desktop-nav a {
  padding: .5rem .9rem;
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  transition: var(--transition);
}
.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.25rem;
  background: var(--gold);
  color: var(--navy-deep, #071F52);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  transition: var(--transition);
  margin-left: .5rem;
  white-space: nowrap;
}
.header-cta:hover { background: #b07d2f; transform: translateY(-1px); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy-deep);
  padding: 6rem var(--gutter) 3rem;
  flex-direction: column;
  gap: .5rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--white); padding-left: 1.75rem; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) 5rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .5;
}
.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,146,58,.18) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: pulse-glow 6s ease-in-out infinite alternate;
}
.hero-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12,107,94,.15) 0%, transparent 70%);
  bottom: 10%;
  left: 10%;
  animation: pulse-glow 8s ease-in-out infinite alternate-reverse;
}
@keyframes pulse-glow {
  from { transform: scale(1) translate(0, 0); opacity: .8; }
  to   { transform: scale(1.15) translate(20px, -20px); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 1rem .4rem .6rem;
  background: rgba(200,146,58,.15);
  border: 1px solid rgba(200,146,58,.3);
  border-radius: 100px;
  margin-bottom: 1.75rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.hero-eyebrow span {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 6vw, 5rem);
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,.7);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.hero-stats {
  position: absolute;
  bottom: 5rem;
  right: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 2;
}
.hero-stat {
  text-align: right;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero-stat .num span { color: var(--gold-text); }
.hero-stat .label {
  font-size: .75rem;
  color:rgba(255,255,255,.72);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: .2rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 2;
}
.scroll-indicator span {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color:rgba(255,255,255,.72);
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 11px;
  position: relative;
}
.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 2px;
  animation: scroll-dot 2s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* Ticker / Announcement Bar */
.ticker-bar {
  background: var(--navy);
  padding: .65rem 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  gap: 0;
  animation: ticker 40s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 3rem;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
}
.ticker-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Page Hero (inner pages) ───────────────────────────── */
.page-hero {
  min-height: 68vh;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(6rem,12vh,9rem) var(--gutter) clamp(3.5rem,6vh,5rem);
  position: relative;
  overflow: hidden;
}
/* Grid pattern */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .6;
  pointer-events: none;
}
/* Gold glow top-right */
.page-hero::after {
  content: '';
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,146,58,.12) 0%, transparent 65%);
  top: -25%;
  right: -10%;
  pointer-events: none;
}
/* Hero height, as two named intents instead of nine inline overrides
   (roadmap 1.5).

   Nine pages overrode .page-hero's padding inline, between them using seven
   different values for what turned out to be three intents: the full-height
   hero, a shorter one on pages that lead with a dense grid, and a short one on
   reference pages where the hero is a title bar rather than a statement. Three
   pairs of pages had independently arrived at the same clamp, which is the
   signal that these are shared intents and not page-specific tuning.

   A new page now picks a modifier instead of inventing a clamp. */
.page-hero--snug {
  min-height: auto;
  padding-block: clamp(5rem, 10vh, 8rem) clamp(2.5rem, 5vh, 4rem);
}
.page-hero--short {
  min-height: auto;
  padding-block: clamp(3.5rem, 7vh, 5.25rem);
}
/* A short hero is a title bar rather than a statement, so its headline is
   smaller. All five pages using it had said so inline, three of them with
   exactly the same clamp. */
.page-hero--short .page-hero-copy h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }

.page-hero-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* decorative teal glow bottom-left */
  background: radial-gradient(ellipse 500px 400px at -5% 110%, rgba(12,107,94,.12) 0%, transparent 70%);
}
/* Orbit rings */
.page-hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200,146,58,.08);
  pointer-events: none;
}
/* Inner layout grid */
.page-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: end;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}
/* The stacked hero (roadmap 1.5).

   .page-hero-inner is a 1fr/360px grid: copy on the left, figures in a column
   on the right. Two pages wanted the other composition - copy above, a band of
   figures beneath, both full width - and each had hand-rolled the same wrapper
   inline: position:relative;z-index:2;max-width:1280px;width:100%;margin:0 auto.
   Two pages arriving at identical markup independently is the definition of a
   shared template nobody had named yet. */
.page-hero-stack {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  margin-inline: auto;
}

.page-hero-copy { max-width: 660px; }
.page-hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem .35rem .6rem;
  background: rgba(200,146,58,.12);
  border: 1px solid rgba(200,146,58,.22);
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #E8B96A;
  margin-bottom: 1.5rem;
}
.page-hero-copy .eyebrow::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #E8B96A;
  flex-shrink: 0;
}
.page-hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.page-hero-copy h1 em { font-style: italic; color:rgba(255,255,255,.72); }
.page-hero-copy h1 .grad {
  background: linear-gradient(135deg, #E8B96A, #C8923A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero-copy > p {
  color: rgba(255,255,255,.65);
  font-size: clamp(.95rem, 1.6vw, 1.08rem);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2rem;
}
.page-hero-btns {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
  text-decoration: none;
  transition: all .2s;
}
.btn-ghost-white:hover { border-color:rgba(255,255,255,.72); background: rgba(255,255,255,.07); }
/* Right-side stat cards */
.page-hero-stats {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.page-hero-stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.page-hero-stat-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(200,146,58,.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #E8B96A;
  line-height: 1;
}
.page-hero-stat span {
  font-size: .75rem;
  color:rgba(255,255,255,.72);
  margin-top: .2rem;
  display: block;
}
/* Legacy container in page-hero — keep working */
.page-hero > .container.page-hero-copy,
.page-hero > .container > .page-hero-copy {
  position: relative;
  z-index: 2;
}
.about-hero { min-height: 72vh; }
/* Responsive */
@media (max-width: 1024px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-stats { display: none; }
}
@media (max-width: 768px) {
  .page-hero { padding-top: 7rem; }
}

/* ── Logos / Ticker strip ───────────────────────────────── */
.logos-strip {
  background: var(--surface);
  padding: 2.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-track {
  display: flex;
  gap: 4rem;
  animation: ticker 30s linear infinite;
  width: max-content;
  align-items: center;
}
.logo-item {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  padding: 0 1rem;
}

/* ── Stats Bar ──────────────────────────────────────────── */
.stats-bar {
  background: var(--navy);
  padding: 3.5rem var(--gutter);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 1.5rem 2rem;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,.1);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: .35rem;
}
.stat-num .accent { color: var(--gold-text); }
.stat-label {
  font-size: .8rem;
  color:rgba(255,255,255,.72);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── Feature Strip ──────────────────────────────────────── */
.feature-strip {
  background: var(--gold-pale);
  padding: 2rem var(--gutter);
  border-top: 1px solid rgba(200,146,58,.2);
  border-bottom: 1px solid rgba(200,146,58,.2);
}
.feature-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: center;
  align-items: center;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.feature-item svg { color: var(--gold-text); }

/* ── Services Grid ──────────────────────────────────────── */
.services-section { background: var(--off-white); }
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 3.5rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
}
.service-card {
  background: var(--white);
  padding: 2.5rem;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { background: var(--gold-pale); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--gold); }
.service-icon svg { color: var(--white); width: 22px; height: 22px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.service-card p { font-size: .9rem; line-height: 1.6; margin-bottom: 1.25rem; }
.service-card .arrow-link { font-size: .82rem; }
.service-num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  color: var(--border-dark);
  letter-spacing: .06em;
}

/* ── About Strip ────────────────────────────────────────── */
.about-strip {
  background: var(--navy-deep);
  padding: clamp(4rem, 7vw, 7rem) var(--gutter);
  position: relative;
  overflow: hidden;
}
.about-strip::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,146,58,.1) 0%, transparent 60%);
  pointer-events: none;
}
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-strip-copy h2 { color: var(--white); margin-bottom: 1.25rem; }
.about-strip-copy p { color: rgba(255,255,255,.65); line-height: 1.75; margin-bottom: 1rem; }
.about-strip-copy .btn { margin-top: 1rem; }
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.about-value-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}
.about-value-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(200,146,58,.3);
}
.about-value-card .icon {
  font-size: 1.5rem;
  margin-bottom: .75rem;
}
.about-value-card h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: .4rem;
}
.about-value-card p {
  color:rgba(255,255,255,.72);
  font-size: .82rem;
  line-height: 1.5;
}

/* ── Events Section ─────────────────────────────────────── */
.events-section { background: var(--white); }
.events-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.events-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.event-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.event-card.featured {
  background: var(--navy);
  border-color: transparent;
  grid-row: span 1;
}
.event-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  position: relative;
  overflow: hidden;
}
.event-card.featured .event-card-img {
  background: linear-gradient(135deg, #0C3260, #1A5A9C);
  aspect-ratio: 3/2;
}
.event-card-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-card-img-placeholder svg {
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,.15);
}
.event-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}
.event-date-chip {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.event-card.featured .event-date-chip { color:rgba(255,255,255,.72); }
.event-card h3 {
  font-size: 1.05rem;
  margin-bottom: .6rem;
  line-height: 1.3;
}
.event-card.featured h3 { color: var(--white); font-size: 1.3rem; }
.event-card p { font-size: .87rem; margin-bottom: auto; padding-bottom: 1rem; }
.event-card.featured p { color:rgba(255,255,255,.72); }
.event-card-footer {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.event-card.featured .event-card-footer { border-top-color: rgba(255,255,255,.1); }
.event-location {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.event-card.featured .event-location { color:rgba(255,255,255,.72); }

/* ── Resources ──────────────────────────────────────────── */
.resources-section { background: var(--surface); }
.resources-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.resource-tab {
  padding: .65rem 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  margin-bottom: -1px;
}
.resource-tab.active, .resource-tab:hover {
  color: var(--navy);
  border-bottom-color: var(--gold-text);
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.resource-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-text);
}
.resource-card-type {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.resource-card h4 { margin-bottom: .5rem; font-size: 1rem; }
.resource-card p { font-size: .84rem; line-height: 1.55; margin-bottom: 1rem; }
.resource-card-meta {
  font-size: .75rem;
  color: var(--text-light);
  display: flex;
  gap: 1rem;
}

/* ── Membership Section ─────────────────────────────────── */
.membership-section {
  background: var(--off-white);
}
.membership-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.membership-card {
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: var(--transition);
  text-align: center;
}
.membership-card:hover,
.membership-card.featured {
  border-color: var(--gold-text);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.membership-card.featured {
  background: var(--navy);
}
.membership-card.featured h3 { color: var(--white); }
.membership-card.featured p { color:rgba(255,255,255,.72); }
.membership-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.4rem;
}
.membership-card.featured .membership-icon {
  background: rgba(200,146,58,.2);
}
.membership-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.membership-card p { font-size: .82rem; line-height: 1.5; }

/* ── Testimonials ───────────────────────────────────────── */
.testimonials-section {
  background: var(--navy-deep);
  padding: clamp(4rem, 7vw, 6rem) var(--gutter);
  overflow: hidden;
}
.testimonials-track-wrap {
  overflow: hidden;
  margin-top: 3rem;
}
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: ticker 50s linear infinite;
}
.testimonial-card {
  min-width: 340px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.testimonial-card:hover { background: rgba(255,255,255,.08); }
.testimonial-quote {
  font-size: 1.75rem;
  color: var(--gold-text);
  line-height: 1;
  margin-bottom: .75rem;
}
.testimonial-card p {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-author-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--white);
}
.testimonial-author-role {
  font-size: .75rem;
  color:rgba(255,255,255,.72);
}

/* ── CTA Section ────────────────────────────────────────── */
.cta-section {
  background: var(--gold);
  padding: clamp(3.5rem, 6vw, 5rem) var(--gutter);
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: .75rem; }
.cta-section p { color: rgba(255,255,255,.8); margin-bottom: 2rem; max-width: 500px; margin-inline: auto; }
.cta-section .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.page-cta {
  background: var(--navy-deep);
  padding: clamp(3.5rem, 6vw, 6rem) var(--gutter);
  text-align: center;
}
.page-cta h2 { color: var(--white); margin-bottom: .75rem; }
.page-cta p { color:rgba(255,255,255,.72); margin-bottom: 2rem; }

/* ── Newsletter ─────────────────────────────────────────── */
.newsletter-section {
  background: var(--surface);
  padding: 3rem var(--gutter);
  border-top: 1px solid var(--border);
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.newsletter-copy h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.newsletter-copy p { font-size: .9rem; }
.newsletter-form {
  display: flex;
  gap: .75rem;
  flex: 1;
  max-width: 460px;
}
.newsletter-form input {
  flex: 1;
  padding: .75rem 1.25rem;
  border-radius: 100px;
  border: 1.5px solid var(--border-dark);
  background: var(--white);
  font-size: .9rem;
  transition: var(--transition);
}
.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold-text);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  padding: 4rem var(--gutter) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}
.footer-brand-col .brand-name {
  color: var(--white);
  margin-top: .75rem;
  font-size: 1.05rem;
}
.footer-tagline {
  font-size: .85rem;
  color:rgba(255,255,255,.72);
  line-height: 1.65;
  margin-top: .75rem;
  margin-bottom: 1.25rem;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.5rem;
}
.footer-contact p {
  font-size: .8rem;
  color:rgba(255,255,255,.72);
  line-height: 1.55;
  margin: 0;
}
.footer-contact a {
  color:rgba(255,255,255,.72);
  text-decoration: none;
  transition: color .18s;
}
.footer-contact a:hover { color: var(--gold-text); }
.footer-social {
  display: flex;
  gap: .6rem;
}
.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-btn:hover { background: var(--gold); }
.social-btn svg { width: 15px; height: 15px; color: rgba(255,255,255,.7); }
.social-btn:hover svg { color: var(--white); }
.footer-col h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
/* A footer item is not always a link. data/footer.json allows href:null and
   seven items on assessments.html use it - they name the assessments rather
   than pointing at them. Only `ul a` carried a colour, so those seven
   inherited the body ink on the dark footer and measured 1.08:1: present in
   the markup, invisible on the page. Found only because 3.10's sweep had
   covered 14 of the 46 pages and this one was not among them. */
.footer-col ul li { font-size: .85rem; color: rgba(255,255,255,.72); }
.footer-col ul a {
  font-size: .85rem;
  color:rgba(255,255,255,.72);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--white); padding-left: .35rem; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  font-size: .8rem;
  color:rgba(255,255,255,.72);
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: .8rem;
  color:rgba(255,255,255,.72);
  transition: var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ── Vision/Mission ─────────────────────────────────────── */
.vision-mission { background: var(--white); }
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1rem;
}
.vision-grid article {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  transition: var(--transition);
}
.vision-grid article:hover { border-color: var(--gold-text); }
.mini-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: .75rem;
}
.vision-grid h2 { font-size: 1.5rem; margin-bottom: .85rem; }
.vision-grid ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: .85rem;
}
.vision-grid ul li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.vision-grid ul li::before {
  content: '→';
  color: var(--gold-text);
  flex-shrink: 0;
  margin-top: .05em;
}

/* ── Principles ─────────────────────────────────────────── */
.principles {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.principles .section-head {
  margin-bottom: 3rem;
}
.principles .section-head h2 { color: var(--white); }
.principles .section-head p { color:rgba(255,255,255,.72); }
.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,.06);
}
.principle-grid article {
  background: transparent;
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: var(--transition);
}
.principle-grid article:hover { background: rgba(255,255,255,.04); }
.principle-grid article > span {
  display: block;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold-text);
  margin-bottom: 1.25rem;
}
.principle-grid h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .6rem; }
.principle-grid p { color:rgba(255,255,255,.72); font-size: .87rem; line-height: 1.6; }

/* ── Why CRMAA ──────────────────────────────────────────── */
.why-crmaa { background: var(--surface); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.why-grid article {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.why-grid article:hover { border-color: var(--gold-text); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.why-grid article > span {
  display: block;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold-text);
  margin-bottom: .85rem;
}
.why-grid h3 { font-size: 1rem; margin-bottom: .5rem; }
.why-grid p { font-size: .86rem; line-height: 1.55; }

/* ── Leadership ─────────────────────────────────────────── */
.leadership { background: var(--white); }
.leadership-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.leadership-intro h2 { margin-bottom: 0; }
.leadership-intro p { font-size: .95rem; }
.leadership-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.leadership-tabs button, .leadership-tabs a {
  padding: .7rem 1.5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
}
.leadership-tabs button[aria-selected="true"],
.leadership-tabs button:hover,
.leadership-tabs a:hover {
  color: var(--navy);
  border-bottom-color: var(--gold-text);
}
.leadership-tab-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.leadership-panel { display: block; }
.leadership-panel[hidden] { display: none; }
.leadership-panel-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.leadership-panel-head h3 { font-size: 1.5rem; margin-top: .35rem; }
.leadership-panel-head p { font-size: .9rem; }
.profile-grid {
  display: grid;
  gap: 1.5rem;
}
.board-grid { grid-template-columns: repeat(3, 1fr); }
.advisory-grid { grid-template-columns: repeat(4, 1fr); }
.profile-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  background: var(--white);
}
.profile-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.profile-photo {
  aspect-ratio: 1;
  background: var(--surface);
  overflow: hidden;
  margin: 0;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-monogram {
  aspect-ratio: 1;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .05em;
}
.advisory-grid .profile-monogram {
  aspect-ratio: 4/3;
}
.profile-copy { padding: 1.25rem; }
.profile-role {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: .35rem;
}
.profile-copy h3 { font-size: .95rem; margin-bottom: .5rem; }
.profile-copy p { font-size: .82rem; line-height: 1.55; }
.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .85rem;
}
.expertise-tags span {
  padding: .2rem .6rem;
  border-radius: 100px;
  background: var(--surface);
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
}
.leadership-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: .82rem;
  color: var(--text-muted);
  border-left: 3px solid var(--gold);
}

/* ── Menu Section (about page) ──────────────────────────────
   The 3-column grid applies ONLY to the about-page pattern (sections that
   contain a .menu-section-number child). Other pages (learning, consulting,
   intelligence) reuse .menu-section as a plain full-width content section —
   applying the grid there crams their content into the first track and
   leaves the right half of the page blank. */
.menu-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 3.5rem var(--gutter);
}
.menu-section:has(> .menu-section-number) {
  display: grid;
  grid-template-columns: 1fr 3fr 2fr;
  align-items: start;
  gap: 3rem;
}
.menu-section-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  /* --border is a hairline colour. Set as 4rem type it measured 1.24:1 on
     white, which is a number nobody can read. Large text still needs 3:1. */
  color: #7C8699;
  line-height: 1;
  padding-top: .25rem;
}
.menu-section-copy h2 { font-size: 1.6rem; margin-bottom: .85rem; }
.menu-section-copy p { font-size: .92rem; margin-bottom: 1.25rem; }
.menu-section-copy ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: .75rem;
}
.menu-section-copy ul li {
  font-size: .85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.menu-section-copy ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold-text);
}
.menu-section-aside {
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: .75rem;
}
.menu-section-aside.light { background: var(--off-white); }
.menu-section-aside h3 { font-size: 1rem; margin-bottom: .65rem; }
.menu-section-aside p { font-size: .84rem; margin-bottom: .85rem; }

/* ── Chapters ───────────────────────────────────────────── */
.chapter {
  background: var(--navy);
  padding: clamp(3.5rem, 6vw, 5rem) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.chapter-copy h2 { color: var(--white); margin-bottom: .75rem; }
.chapter-copy p { color: rgba(255,255,255,.65); margin-bottom: 1.5rem; }
.chapter-copy .mini-label { color: var(--gold-light); }
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.city-list span {
  padding: .7rem 1.5rem;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,.2);
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  transition: var(--transition);
}
.city-list span:hover {
  border-color: var(--gold-text);
  color: var(--white);
  background: rgba(200,146,58,.1);
}

/* ── Story Section ──────────────────────────────────────── */
.story { background: var(--white); }
.intro-copy { padding-left: 2rem; }
.large-copy {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.intro-side p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ── Section Head ───────────────────────────────────────── */
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: .75rem; }
.section-head p { max-width: 520px; }
.insight-head { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: end; }
.insight-head h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }

/* ── AI Assistant ───────────────────────────────────────── */
.ai-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 8px 32px rgba(11,29,58,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 2px solid rgba(200,146,58,.3);
}
.ai-fab:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(11,29,58,.45); }
.ai-fab svg { width: 24px; height: 24px; color: var(--gold-text); }
.ai-fab .ai-pulse {
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.ai-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 200;
  width: 360px;
  max-height: 520px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: panel-in .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes panel-in {
  from { transform: scale(.85) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.ai-panel.hidden { display: none; }
.ai-panel-header {
  padding: 1.1rem 1.25rem;
  background: var(--navy);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.ai-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-avatar svg { width: 16px; height: 16px; color: var(--white); }
.ai-panel-header-text {
  flex: 1;
}
.ai-panel-header-text h4 {
  color: var(--white);
  font-size: .88rem;
  font-weight: 700;
}
.ai-panel-header-text span {
  font-size: .72rem;
  color:rgba(255,255,255,.72);
}
.ai-panel-close {
  color:rgba(255,255,255,.72);
  transition: var(--transition);
  padding: .25rem;
}
.ai-panel-close:hover { color: var(--white); }
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-track { background: transparent; }
.ai-messages::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }
.ai-msg {
  max-width: 85%;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  line-height: 1.55;
}
.ai-msg.bot {
  background: var(--surface);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.ai-msg.user {
  background: var(--navy);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 0 1.25rem .75rem;
}
.ai-suggestion {
  padding: .35rem .85rem;
  border-radius: 100px;
  border: 1px solid var(--border-dark);
  background: var(--white);
  font-size: .78rem;
  color: var(--navy);
  transition: var(--transition);
  font-weight: 500;
}
.ai-suggestion:hover {
  border-color: var(--gold-text);
  color: var(--gold-text);
  background: var(--gold-pale);
}
.ai-input-row {
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .5rem;
}
.ai-input {
  flex: 1;
  padding: .6rem .9rem;
  border-radius: 100px;
  border: 1.5px solid var(--border-dark);
  font-size: .85rem;
  background: var(--surface);
  transition: var(--transition);
}
.ai-input:focus { outline: none; border-color: var(--gold-text); background: var(--white); }
.ai-send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.ai-send:hover { background: #b07d2f; }
.ai-send svg { width: 14px; height: 14px; color: var(--white); }
.ai-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: .75rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  max-width: 80px;
}
.ai-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-dot 1.4s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: .2s; }
.ai-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* ── Reveal Animation ───────────────────────────────────── */
/* Progressive enhancement: hide-for-animation ONLY when JS is active and
   able to reveal. Without the html.reveal-on class, all content is visible
   by default — so a page is never left blank if JS/observer/transitions
   fail or a section is skipped. */
.reveal { opacity: 1; transform: none; }

html.reveal-on .reveal {
  opacity: 0;
  transform: translateY(24px);
  /* Animate the slide only. Opacity is NOT transitioned, so the moment an
     element gets .visible it is fully opaque — content can never be stuck
     mid-fade / transparent, even if the transition clock stalls. */
  transition: transform .6s ease;
}
html.reveal-on .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced-motion and no-JS: always show, never animate. */
@media (prefers-reduced-motion: reduce) {
  html.reveal-on .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  /* Honour the OS "reduce motion" setting globally (WCAG 2.3.3, vestibular safety). */
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Visible keyboard focus for every interactive element (WCAG 2.4.7) ──────
   :focus-visible shows the ring for keyboard/AT users without flashing it on
   mouse click. Uses the brand gold with an offset so it reads on any surface. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[role="link"]:focus-visible {
  outline: 3px solid var(--gold, #C8923A);
  outline-offset: 2px;
  border-radius: 3px;
}
/* Focus landing target for the skip link shouldn't draw a persistent ring. */
[tabindex="-1"]:focus { outline: none; }

/* ── Unified inner-page card language ─────────────────────────
   One elevated hover across content cards so every page matches the
   homepage story/persona cards: lift + warm premium shadow + gold edge. */
.vision-grid article,
.principle-grid article,
.why-grid article,
.profile-card,
.benefit-card,
.resource-cat-card,
.service-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background var(--transition);
}
.vision-grid article:hover,
.principle-grid article:hover,
.why-grid article:hover,
.profile-card:hover,
.benefit-card:hover,
.resource-cat-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(11,29,58,.10);
  border-color: var(--gold-text);
}

/* ── Search Overlay ─────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6,17,34,.92);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.search-input-wrap {
  width: 100%;
  max-width: 660px;
  position: relative;
  margin-bottom: 2rem;
}
.search-input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.5rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: var(--white);
  font-size: 1.1rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--gold-text);
}
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color:rgba(255,255,255,.72);
}
.search-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color:rgba(255,255,255,.72);
  font-size: 1.5rem;
  transition: var(--transition);
}
.search-close:hover { color: var(--white); }
.search-suggestions h4 {
  color:rgba(255,255,255,.72);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}
.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.search-tag {
  padding: .45rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  transition: var(--transition);
  cursor: pointer;
}
.search-tag:hover { border-color: var(--gold-text); color: var(--white); }

/* ── Application / Forms ────────────────────────────────── */
.application-section { background: var(--off-white); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-group.full { grid-column: span 2; }
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-dark);
  background: var(--white);
  font-size: .9rem;
  color: var(--text);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-text);
  box-shadow: 0 0 0 3px rgba(200,146,58,.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── Services Detail Page ───────────────────────────────── */
.services-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--gutter);
  position: sticky;
  top: 64px;
  z-index: 50;
  overflow-x: auto;
}
.services-nav-inner {
  display: flex;
  gap: 0;
  width: max-content;
}
.services-nav a {
  padding: 1rem 1.5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}
.services-nav a:hover,
.services-nav a.active {
  color: var(--navy);
  border-bottom-color: var(--gold-text);
}
.service-detail {
  padding: clamp(4rem, 6vw, 6rem) var(--gutter);
  border-bottom: 1px solid var(--border);
}
.service-detail:nth-child(even) { background: var(--surface); }
.service-detail-inner {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 5rem;
  align-items: start;
}
.service-detail-inner.reverse { direction: rtl; }
.service-detail-inner.reverse > * { direction: ltr; }
.service-detail h2 { margin-bottom: 1rem; }
.service-detail p { font-size: .97rem; line-height: 1.75; margin-bottom: 1rem; }
.service-detail ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 1.25rem 0;
}
.service-detail ul li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .92rem;
  color: var(--text-muted);
}
.service-detail ul li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: .45em;
}
.service-card-accent {
  padding: 2rem;
  background: var(--navy);
  border-radius: var(--radius-lg);
  color: var(--white);
}
.service-card-accent h3 { color: var(--white); margin-bottom: 1.25rem; font-size: 1.1rem; }
.service-card-accent ul { margin: 0; gap: .85rem; }
.service-card-accent ul li {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
}
.service-card-accent ul li::before { background: var(--gold); }
.service-card-accent .btn { margin-top: 1.5rem; }

/* ── Community Page ─────────────────────────────────────── */
.community-hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.community-hero-stat {
  text-align: left;
}
.community-hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.community-hero-stat .num em { color: var(--gold-light); font-style: normal; }
.community-hero-stat .label {
  font-size: .75rem;
  color:rgba(255,255,255,.72);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .25rem;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.benefit-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.benefit-card:hover { border-color: var(--gold-text); box-shadow: var(--shadow-sm); }
.benefit-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}
.benefit-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.benefit-card p { font-size: .87rem; line-height: 1.6; }

/* ── Events Page ────────────────────────────────────────── */
.events-filter-bar {
  background: var(--surface);
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-right: .5rem;
}
.filter-btn {
  padding: .45rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border-dark);
  background: var(--white);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--gold-text);
  color: var(--gold-text);
  background: var(--gold-pale);
}
.events-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Resources Page ─────────────────────────────────────── */
.resources-hero-search {
  margin-top: 2rem;
  max-width: 540px;
}
.resources-search-input-wrap {
  position: relative;
}
.resources-search-input {
  width: 100%;
  padding: .9rem 1.25rem .9rem 3rem;
  border-radius: 100px;
  border: none;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: .95rem;
  transition: var(--transition);
}
.resources-search-input::placeholder { color:rgba(255,255,255,.72); }
.resources-search-input:focus {
  outline: none;
  background: rgba(255,255,255,.15);
}
.resources-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color:rgba(255,255,255,.72);
}
.resources-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.resource-cat-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.resource-cat-card:hover { border-color: var(--gold-text); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.resource-cat-icon {
  font-size: 2rem;
  margin-bottom: .85rem;
}
.resource-cat-card h4 { font-size: .9rem; margin-bottom: .35rem; }
.resource-cat-card span {
  font-size: .76rem;
  color: var(--text-light);
}

/* ── Membership Page ────────────────────────────────────── */
.membership-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.membership-hero-feature {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
}
.membership-hero-feature svg { color: var(--gold-light); }
.membership-plans-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  align-items: start;
}
.plan-card {
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  background: var(--white);
  overflow: hidden;
  transition: var(--transition);
}
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plan-card.popular {
  border-color: var(--gold-text);
  box-shadow: 0 0 0 4px rgba(200,146,58,.1);
}
.plan-header {
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  text-align: center;
}
.plan-card.popular .plan-header {
  background: var(--navy);
}
.plan-card.popular .plan-header h3 { color: var(--white); }
.plan-card.popular .plan-header p { color:rgba(255,255,255,.72); }
.plan-header h3 { font-size: 1rem; margin-bottom: .35rem; }
.plan-header p { font-size: .8rem; }
.plan-body { padding: 1.5rem; }
.plan-benefits {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.plan-benefits li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.plan-benefits li svg { color: var(--teal); flex-shrink: 0; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-stats { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .membership-grid { grid-template-columns: repeat(3, 1fr); }
  .membership-plans-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-strip-inner { grid-template-columns: 1fr; gap: 3rem; }
  .events-grid { grid-template-columns: 1fr 1fr; }
  .events-grid .event-card:first-child { grid-column: span 2; }
  .resources-category-grid { grid-template-columns: repeat(2, 1fr); }
  .advisory-grid { grid-template-columns: repeat(3, 1fr); }
  .menu-section { grid-template-columns: 1fr 2fr; }
  .menu-section-number { display: none; }
}

@media (max-width: 768px) {
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  h1 { font-size: clamp(2rem, 7vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .services-header { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item::before { display: none; }
  .events-grid { grid-template-columns: 1fr; }
  .events-grid .event-card:first-child { grid-column: auto; }
  .resources-grid { grid-template-columns: 1fr; }
  .membership-grid { grid-template-columns: repeat(2, 1fr); }
  .membership-plans-grid { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
  .leadership-intro { grid-template-columns: 1fr; }
  .leadership-panel-head { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr 1fr; }
  .advisory-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-section { grid-template-columns: 1fr; gap: 2rem; }
  .chapter { grid-template-columns: 1fr; gap: 2rem; }
  .about-strip-inner { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-inner { flex-direction: column; }
  .newsletter-form { max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .service-detail-inner { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail-inner.reverse { direction: ltr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .insight-head { grid-template-columns: 1fr; }
  .ai-panel { width: calc(100vw - 2rem); right: 1rem; bottom: 5rem; }
  .resources-category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  :root { --gutter: 1.25rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .board-grid, .advisory-grid { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
  .membership-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-bottom: 4rem; }
}

/* Inline UI icons — see /icons/crmaa-ui.svg and AUDIT-RESPONSE.md §6.4.
   Replaces emoji, which render differently per platform, carry no consistent
   optical weight, and are read aloud badly by screen readers. */
.cicon{width:1em;height:1em;flex:0 0 auto;vertical-align:-0.125em;
  fill:none;stroke:currentColor;pointer-events:none;}
.cicon-good{color:var(--success,#2E7D32);}
.cicon-bad{color:var(--error,#C62828);}
.cicon-warn{color:#9D6205;}

/* ── Dark surfaces re-point the gold (roadmap 3.10) ──────────────────────────
   --gold-text is AA on light surfaces and 2.0:1 on navy, and it was used on
   navy in eight places on the homepage alone. Rather than hunt every rule,
   the dark sections re-point the token: custom properties inherit, so every
   descendant that already says var(--gold-text) gets the dark-safe gold
   without a single markup change.

   --gold-light measures 5.54:1 on --navy, 8.73 on --navy-deep and 6.29 on
   --navy-mid, so it clears AA on all three. tools/check-contrast.js computes
   those on every commit; the list below is maintained from what
   tools/audit-contrast.js finds in the pages. */
.home-hero, .live-intel, .purpose-band, .ecosystem-detail, .flagship,
.membership-home, .events-home, .contact-strip, .ac-hero, .ac-cta-strip,
.eh-hero, .ri-hero, .ri-score-hero, .ri-portal-strip, .ec-featured,
.ed-header, .sxei-launch, .story-card-dark, .ai-visual,
.mnav-featured-card, .mobile-nav, .research-card.featured, .page-cta,
/* Measured across fourteen pages before being added, because twice this was
   done by assuming and a page got worse for it. These are dark every time
   they appear: .page-hero 11/11, .service-card-accent 6/6, and one each of
   .principles, .chapter, .rh-hero. Deliberately absent: .why-crmaa and
   .leadership, which are light and were the two that caused the regression,
   and .ec, which is dark twice and light eight times and so cannot be
   settled by a class at all. */
.page-hero, .principles, .chapter, .rh-hero, .service-card-accent,
/* Added after the sweep reached the other 32 pages. Each measured
   L=0.016 and each appears exactly once, so there is no light
   counter-example to worry about. */
.cms-head, .cm-hero, .portal-sidebar,
/* Several sections go dark with an inline background rather than a class, so
   there is nothing to name. The attribute is what they have in common —
   the navy token, the navy hexes, and the gradients built from them. */
[style*="background:var(--navy"], [style*="background: var(--navy"],
[style*="background:#0B3D91"], [style*="background: #0B3D91"],
[style*="background:#071F52"], [style*="background: #071F52"],
[style*="background:#0b1d3a"], [style*="background: #0b1d3a"],
[style*="#0B3D91 "], [style*="#071F52 "], [style*="#0b1d3a "] {
  --gold-text: var(--gold-light);
  /* #4ECDB4 measures 8.08:1 on --navy-deep and 5.13 on --navy; the
     light-surface teal measures 1.99 there. A colour used on both kinds of
     surface needs two values, not one compromise — darkening it everywhere
     fixed three instances on white and broke three on navy. */
  --teal-text: #4ECDB4;
}

/* The same panels, and the reason two headings were invisible: styles.css
   colours h1–h4 and p with element selectors, and an element selector beats
   the colour a panel inherits down to its children. So a navy heading stayed
   navy on a navy panel, and a dark-grey paragraph stayed dark grey on one.
   Anything that genuinely wants another colour in here sets it with a class,
   which outranks this. */
:where(.home-hero) :is(h1,h2,h3,h4,p,li),
:where(.live-intel) :is(h1,h2,h3,h4,p,li),
:where(.purpose-band) :is(h1,h2,h3,h4,p,li),
:where(.ecosystem-detail) :is(h1,h2,h3,h4,p,li),
:where(.flagship) :is(h1,h2,h3,h4,p,li),
:where(.membership-home) :is(h1,h2,h3,h4,p,li),
:where(.events-home) :is(h1,h2,h3,h4,p,li),
:where(.contact-strip) :is(h1,h2,h3,h4,p,li),
:where(.ac-hero) :is(h1,h2,h3,h4,p,li),
:where(.ac-cta-strip) :is(h1,h2,h3,h4,p,li),
:where(.eh-hero) :is(h1,h2,h3,h4,p,li),
:where(.ri-hero) :is(h1,h2,h3,h4,p,li),
:where(.ri-score-hero) :is(h1,h2,h3,h4,p,li),
:where(.ec-featured) :is(h1,h2,h3,h4,p,li),
:where(.ed-header) :is(h1,h2,h3,h4,p,li),
:where(.sxei-launch) :is(h1,h2,h3,h4,p,li),
:where(.story-card-dark) :is(h1,h2,h3,h4,p,li),
:where(.research-card.featured) :is(h1,h2,h3,h4,p,li),
/* The panels measured in the second sweep. Two more headings were navy on
   navy inside inline-styled panels; the element selector in this file beats
   the colour the panel inherits down, so they have to be named. */
:where(.page-hero) :is(h1,h2,h3,h4,p,li),
:where(.principles) :is(h1,h2,h3,h4,p,li),
:where(.chapter) :is(h1,h2,h3,h4,p,li),
:where(.rh-hero) :is(h1,h2,h3,h4,p,li),
:where(.service-card-accent) :is(h1,h2,h3,h4,p,li),
:where([style*="background:var(--navy"]) :is(h1,h2,h3,h4,p,li),
:where([style*="background: var(--navy"]) :is(h1,h2,h3,h4,p,li),
:where([style*="background:#0B3D91"]) :is(h1,h2,h3,h4,p,li),
:where([style*="background:#071F52"]) :is(h1,h2,h3,h4,p,li),
:where([style*="background:#0b1d3a"]) :is(h1,h2,h3,h4,p,li),
:where([style*="#0B3D91 "]) :is(h1,h2,h3,h4,p,li),
:where([style*="#071F52 "]) :is(h1,h2,h3,h4,p,li),
:where([style*="#0b1d3a "]) :is(h1,h2,h3,h4,p,li) {
  color: inherit;
}


/* The dark panels get the original ghost button back. Scoped with :where()
   so a page that styles its own ghost buttons still wins. */
:where(.home-hero, .live-intel, .purpose-band, .ecosystem-detail, .flagship,
  .membership-home, .events-home, .contact-strip, .ac-hero, .ac-cta-strip,
  .eh-hero, .ri-hero, .ri-score-hero, .ec-featured, .ed-header, .sxei-launch,
  .story-card-dark, .ai-visual, .page-cta, .page-hero, .principles,
  .chapter, .rh-hero, .service-card-accent, [style*="background:var(--navy"],
  [style*="background: var(--navy"]) .btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: rgba(255,255,255,.3);
}
