/* ═══════════════════════════════════════════════════════════════════
   IVY CHIN — SHARED DESIGN SYSTEM
   Version: prototype-v1
   Purpose: design tokens, typography, components, utilities
═══════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  /* Color palette */
  --ink:          #0f0e0c;
  --cream:        #faf8f3;
  --cream-deep:   #f2efe6;
  --gold:         #b8965a;
  --gold-light:   #e8d5b0;
  --gold-pale:    #f5edd8;
  --slate:        #2c3240;
  --slate-dark:   #1e2330;
  --slate-mid:    #3d4556;
  --muted:        #6b6860;
  --muted-light:  #9a9690;
  --divider:      #e2ddd5;
  --card-bg:      #ffffff;
  --overlay:      rgba(15,14,12,0.6);

  /* Program accent colors */
  --blue:         #1e3a5f;
  --blue-light:   rgba(30,58,95,0.08);
  --teal:         #2a6b6b;
  --teal-light:   rgba(42,107,107,0.08);
  --rose:         #7a3f4f;
  --rose-light:   rgba(122,63,79,0.08);
  --amber:        #7d5a2a;
  --amber-light:  rgba(125,90,42,0.08);
  --sage:         #3a6050;
  --sage-light:   rgba(58,96,80,0.08);
  --violet:       #4a3870;
  --violet-light: rgba(74,56,112,0.08);

  /* Program page accent map */
  --program-1: var(--blue);    /* Resume */
  --program-2: var(--sage);    /* Personal Brand */
  --program-3: var(--teal);    /* Leadership Arc */
  --program-4: var(--slate);   /* Strategic Shaper */
  --program-5: var(--rose);    /* Digital Transformation */
  --program-6: var(--amber);   /* Onboarding */
  --program-7: var(--violet);  /* Women in Technology */

  /* Typography */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --sp-4:   4px;
  --sp-8:   8px;
  --sp-12:  12px;
  --sp-16:  16px;
  --sp-20:  20px;
  --sp-24:  24px;
  --sp-28:  28px;
  --sp-32:  32px;
  --sp-36:  36px;
  --sp-40:  40px;
  --sp-48:  48px;
  --sp-56:  56px;
  --sp-64:  64px;
  --sp-80:  80px;
  --sp-96:  96px;
  --sp-120: 120px;

  /* Layout */
  --max-w:        1200px;
  --reading-w:    720px;
  --side-w:       360px;
  --nav-h:        100px;
  --inner-pad:    48px;

  /* Border radius */
  --r-sm:  2px;
  --r-md:  4px;
  --r-lg:  8px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.25s ease;
  --t-slow:   0.4s ease;

  /* Shadows */
  --shadow-sm:  0 2px 12px rgba(15,14,12,0.06);
  --shadow-md:  0 8px 32px rgba(15,14,12,0.10);
  --shadow-lg:  0 16px 52px rgba(15,14,12,0.14);
  --shadow-xl:  0 24px 80px rgba(15,14,12,0.18);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ── ANCHOR SCROLL OFFSET ──
   Compensates for the fixed nav so anchor targets land with the
   section heading clearly visible, not hidden behind the nav bar.
── */
[id] {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(36px, 5.5vw, 66px); }
h2 { font-size: clamp(26px, 3.5vw, 44px); }
h3 { font-size: clamp(20px, 2.5vw, 32px); }
h4 { font-size: clamp(18px, 2vw, 24px); }

.serif        { font-family: var(--font-serif); }
.weight-300   { font-weight: 300; }
.weight-400   { font-weight: 400; }
.weight-600   { font-weight: 600; }
.italic       { font-style: italic; }

/* Body text */
p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  color: #3a3834;
}
.lead {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(250,248,243,0.72);
  font-weight: 300;
}
.small-caps {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}
/* Gold upward-arrow mark — signals trajectory, replaces AI-pattern dash rules */
.eyebrow::before {
  content: '\25B2'; /* ▲ solid upward triangle */
  font-size: 7px;
  line-height: 1;
  color: var(--gold);
  flex-shrink: 0;
  opacity: 0.85;
  position: relative;
  top: -1px;
}

/*
  .eyebrow-center — centered variant for full-width section intros.
  Usage: add class="eyebrow eyebrow-center" or style="justify-content:center".
*/
.eyebrow-center {
  justify-content: center;
}

/*
  .section-intro-center — utility for full-width section intro blocks.
  Centres the eyebrow, heading, and body paragraph above full-bleed content.
  Only apply when content below fills the full row (e.g. 2-col card grids,
  testimonials, pill trays). Do NOT apply when intro is left column of a
  two-column layout — that case should remain flush-left for readability.
*/
.section-intro-center {
  text-align: center;
}
.section-intro-center h2,
.section-intro-center h3 {
  text-align: center;
}
.section-intro-center p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-intro-center .eyebrow {
  justify-content: center;
}

/* ══════════════════════════════════════════════
   GLOBAL NAVIGATION
══════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 500;
  background: rgba(250,248,243,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;               /* space between brand | search | nav-center | right */
  padding: 0 var(--inner-pad);
  transition: box-shadow var(--t-base);
}
.site-nav.scrolled { box-shadow: var(--shadow-sm); }
/* Push nav-center and nav-right to the far right */
.nav-center { margin-left: auto; }
.nav-right   { flex-shrink: 0; }

/* ── Maxurpo crescent logo mark ─────────────────────────────
   Transparent PNG — teal+gold crescent on no background.
   Renders cleanly over any page colour at any size.
   Use .logo-on-dark on ink/slate backgrounds to lift the teal.
─────────────────────────────────────────────────────────── */
/* ── Full Maxurpo logo lockup ───────────────────────────────
   Horizontal logo PNG: M emblem + MAXURPO + MAXIMIZE YOUR POTENTIAL.
   White background — mix-blend-mode: multiply makes white
   drop out cleanly on the cream nav.
─────────────────────────────────────────────────────────── */
.nav-brand-logo {
  display: block;
  height: 68px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: multiply;   /* white bg drops out on cream nav */
}

.brand-logo-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: contain;
  position: relative;
  top: -1px;                    /* optical: sits on text cap-height */
  image-rendering: -webkit-optimize-contrast; /* crisp at small sizes on WebKit */
  image-rendering: crisp-edges;               /* crisp on other engines */
}

/* Dark-context: lift teal brightness so the mark reads clearly
   on var(--ink) or var(--slate) backgrounds.
   brightness(1.6) takes the mid-teal to near-cyan level,
   saturate(1.15) keeps the colour vivid not washed. */
.brand-logo-icon.logo-on-dark {
  filter: brightness(1.6) saturate(1.15);
}

.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  line-height: 1;
}
.nav-brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.nav-brand-rule {
  width: 1px;
  height: 28px;
  background: var(--divider);
  flex-shrink: 0;
}
.nav-brand-company {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.10em;
  color: var(--amber);      /* #7d5a2a — dark bronze; reads cleanly on cream nav bg */
  padding-top: 2px;
}

.nav-center {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-center a, .nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  position: relative;
  border: none;
  background: none;
  vertical-align: middle;
}
.nav-center a:hover,
.nav-dropdown-trigger:hover { color: var(--ink); background: var(--cream-deep); }
.nav-center a.active { color: var(--ink); }
.nav-center a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* ── Why Ivy / Trusted Peer hover label swap ── */
.nav-why-ivy {
  position: relative;
  overflow: hidden;
  /* Wide enough to hold both "Why Ivy" and "Trusted Peer" without clipping */
  min-width: 108px;
  justify-content: center;
}
/* Both spans occupy the same space; only one visible at a time */
.nav-why-ivy-default,
.nav-why-ivy-hover {
  display: block;
  transition: transform 0.22s ease, opacity 0.22s ease;
  white-space: nowrap;
  pointer-events: none;
}
.nav-why-ivy-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  opacity: 0;
  color: var(--gold);
}
.nav-why-ivy:hover .nav-why-ivy-default,
.nav-why-ivy:focus-visible .nav-why-ivy-default {
  transform: translateY(-100%);
  opacity: 0;
}
.nav-why-ivy:hover .nav-why-ivy-hover,
.nav-why-ivy:focus-visible .nav-why-ivy-hover {
  transform: translateY(0);
  opacity: 1;
}

/* Programs dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  gap: 6px;
  cursor: pointer;
}
.nav-dropdown-trigger svg {
  transition: transform var(--t-fast);
}
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-trigger.active { color: var(--ink); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-lg);
  min-width: 290px;
  padding: 6px 0;
  border-radius: var(--r-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast), visibility var(--t-fast), transform var(--t-fast);
  transform: translateX(-50%) translateY(-6px);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Simple stacked list item — full-width block, left-aligned.
   !important overrides the .nav-center a { display: inline-flex }
   cascade that would otherwise collapse items onto one row. */
.nav-dropdown-menu a.nav-dropdown-item {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 20px !important;
  border-radius: 0 !important;
  border-left: 3px solid transparent;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: none !important;
  color: var(--ink) !important;
  text-decoration: none;
  background: none !important;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast);
}
/* Kill the .nav-center a.active underline bar inside the dropdown */
.nav-dropdown-menu a.nav-dropdown-item::after { display: none !important; }
.nav-dropdown-menu a.nav-dropdown-item:hover {
  background: var(--cream-deep) !important;
  border-left-color: var(--gold);
  color: var(--gold) !important;
}
.nav-dropdown-menu a.nav-dropdown-item.active {
  background: var(--gold-pale) !important;
  border-left-color: var(--gold);
  color: var(--gold) !important;
}
.nav-dropdown-label {
  display: block;
  line-height: 1.4;
  pointer-events: none;
}
.nav-dropdown-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.nav-dropdown-divider {
  height: 1px;
  background: var(--divider);
  margin: 4px 8px;
}
/* Group label inside a dropdown — used by Programs menu */
.nav-dropdown-group-label,
.nav-dropdown-section-label {
  display: block;
  width: 100%;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding: 10px 20px 6px;
  pointer-events: none;
  user-select: none;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 4px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ══════════════════════════════════════════════
   NAV SEARCH — INLINE PROMINENT BAR
   Sits between brand lockup and nav labels.
   Always visible; expands on focus.
══════════════════════════════════════════════ */
.nav-search-inline {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  /* Default width — always visible */
  width: 240px;
  transition: width 0.28s cubic-bezier(0.4,0,0.2,1);
}
.nav-search-inline.active,
.nav-search-inline:focus-within {
  width: 340px;
}

/* Magnifier icon — left inside input */
.nav-search-inline-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: flex;
  transition: color var(--t-fast);
  z-index: 1;
}
.nav-search-inline:focus-within .nav-search-inline-icon,
.nav-search-inline.active      .nav-search-inline-icon {
  color: var(--gold);
}

/* The input field */
.nav-search-inline-input {
  width: 100%;
  height: 34px;
  padding: 0 32px 0 32px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink);
  background: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(184,150,90,0.30);
  border-radius: var(--r-sm);
  outline: none;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  /* Reset browser search appearance */
  -webkit-appearance: none;
  appearance: none;
}
.nav-search-inline-input::placeholder {
  color: var(--muted-light);
  font-style: italic;
}
.nav-search-inline-input:focus,
.nav-search-inline.active .nav-search-inline-input {
  background: rgba(255,255,255,0.97);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,150,90,0.12);
}
/* Suppress browser clear button on search inputs */
.nav-search-inline-input::-webkit-search-cancel-button { display: none; }

/* Clear (×) button */
.nav-search-inline-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-deep);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-search-inline-clear:hover { color: var(--ink); background: var(--divider); }

/* Results drop-down panel */
.nav-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 380px;
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-top: 2px solid var(--gold);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  z-index: 600;
  overflow: hidden;
  /* shown/hidden via JS display toggle + CSS animation */
  animation: searchPanelIn 0.18s ease;
}
@keyframes searchPanelIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Panel sections */
.search-panel-section {
  padding: 10px 8px 4px;
}
.search-panel-section:not(:first-child) {
  border-top: 1px solid var(--divider);
}
.search-panel-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding: 0 8px 6px;
}
.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.search-result-item:hover,
.search-result-item.focused {
  background: var(--cream);
}
.search-result-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.search-result-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.search-result-title mark {
  background: var(--gold-pale);
  color: var(--ink);
  border-radius: 2px;
  padding: 0 2px;
}
.search-result-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.4;
}
.search-result-hook {
  font-size: 10px;
  color: var(--gold);
  font-style: italic;
  margin-top: 2px;
}
.search-no-results {
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}
.search-panel-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--divider);
  background: var(--cream-deep);
}
.search-panel-footer-text {
  font-size: 10px;
  color: var(--muted-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: 3px;
  font-size: 9px;
  font-family: monospace;
  color: var(--muted);
}

/* Mobile: search inside drawer */
.nav-mobile-search-wrap {
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 4px;
}
.nav-mobile-search-input {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--divider);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--t-fast);
}
.nav-mobile-search-input:focus { border-color: var(--gold); }
.nav-mobile-search-results {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--divider);
  text-decoration: none;
  font-size: 13px;
  color: var(--ink);
  transition: color var(--t-fast);
}
.nav-mobile-search-item:hover { color: var(--gold); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--t-fast);
}

/* Mobile drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--divider);
  box-shadow: var(--shadow-md);
  z-index: 499;
  padding: 16px 20px 24px;
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
}
.nav-mobile-drawer.open { display: block; }
.nav-mobile-section-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding: 12px 0 6px;
  border-top: 1px solid var(--divider);
  margin-top: 8px;
}
.nav-mobile-link {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--divider);
  transition: color var(--t-fast);
}
.nav-mobile-link:hover { color: var(--gold); }

/* ══════════════════════════════════════════════
   CTA SYSTEM — primary / secondary / tertiary
══════════════════════════════════════════════ */

/* Primary — gold filled */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--gold);
  border-radius: var(--r-sm);
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #a07d45;
  border-color: #a07d45;
  box-shadow: 0 4px 20px rgba(184,150,90,0.3);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* Primary — dark/slate variant */
.btn-primary-dark {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--cream);
}
.btn-primary-dark:hover {
  background: var(--slate-dark);
  border-color: var(--slate-dark);
  box-shadow: 0 4px 20px rgba(44,50,64,0.3);
}

/* Secondary — outlined */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }

/* Secondary — light variant (on dark backgrounds)
   ─────────────────────────────────────────────────
   Rest:  transparent · cream text 80% · cream border 40%
   Hover: solid cream fill · slate-dark text · lift 2px
   Uses compound selector (.btn-secondary.btn-secondary-light) so
   specificity beats the plain .btn-secondary rule in components.css,
   which assumes a light-background context (color: var(--ink)).       */
.btn-secondary-light,
.btn-secondary.btn-secondary-light {
  color: rgba(250,248,243,0.80);
  border-color: rgba(250,248,243,0.40);
  background: transparent;
}
.btn-secondary-light:hover,
.btn-secondary.btn-secondary-light:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--slate-dark);
  transform: translateY(-2px);
}

/* Tertiary — text link with arrow */
.btn-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: none;
  background: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), gap var(--t-fast);
  cursor: pointer;
}
.btn-tertiary:hover {
  border-color: var(--gold);
  gap: 12px;
}

/* Program-accented variants */
.btn-accent-blue   { border-color: var(--blue);   color: var(--blue); }
.btn-accent-blue:hover   { background: var(--blue-light); }
.btn-accent-teal   { border-color: var(--teal);   color: var(--teal); }
.btn-accent-teal:hover   { background: var(--teal-light); }
.btn-accent-rose   { border-color: var(--rose);   color: var(--rose); }
.btn-accent-rose:hover   { background: var(--rose-light); }
.btn-accent-amber  { border-color: var(--amber);  color: var(--amber); }
.btn-accent-amber:hover  { background: var(--amber-light); }
.btn-accent-sage   { border-color: var(--sage);   color: var(--sage); }
.btn-accent-sage:hover   { background: var(--sage-light); }
.btn-accent-violet { border-color: var(--violet); color: var(--violet); }
.btn-accent-violet:hover { background: var(--violet-light); }
.btn-accent-slate  { border-color: var(--slate);  color: var(--slate); }
.btn-accent-slate:hover  { background: rgba(44,50,64,0.07); }

/* Book purchase CTA — high-contrast cream fill on dark, deep slate on light */
.btn-book {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  background: var(--cream);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--cream);
  border-radius: var(--r-sm);
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
  cursor: pointer;
  white-space: nowrap;
}
.btn-book:hover {
  background: #f5f0e4;
  border-color: var(--gold-light);
  box-shadow: 0 4px 20px rgba(184,150,90,0.28);
  transform: translateY(-1px);
}
.btn-book:active { transform: translateY(0); }
/* Book icon embedded as inline SVG via data-URI alternative — use .btn-book-icon class on the svg */
.btn-book svg, .btn-book .btn-book-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* CTA pair layout */
.cta-pair {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: var(--sp-36);
}
/* Reset margin-top when .cta-pair is the first/only child (e.g. hero bands) */
.cta-pair:first-child { margin-top: 0; }
/* Pair inside hero sections sits after a <p class="lead"> that already has margin-bottom — don't double-stack */
.page-hero .cta-pair,
.formats-hero .cta-pair,
.about-hero .cta-pair  { margin-top: 0; }

/* Inline CTA wrapper — used inside framework/why-ivy body columns */
.inline-cta-wrapper {
  margin-top: var(--sp-32);
}

/* ══════════════════════════════════════════════
   LAYOUT UTILITIES
══════════════════════════════════════════════ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--inner-pad);
}
.section {
  padding: var(--sp-96) var(--inner-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-sm {
  padding: var(--sp-64) var(--inner-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
.full-width { max-width: 100%; padding-left: 0; padding-right: 0; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-32); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-24); }
.grid-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: var(--sp-48); }
.grid-8-4 { display: grid; grid-template-columns: 8fr 4fr; gap: var(--sp-48); }

/* ══════════════════════════════════════════════
   PAGE HERO — programs
══════════════════════════════════════════════ */
.page-hero {
  background: var(--slate);
  padding: calc(var(--nav-h) + 80px) var(--inner-pad) 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 30%, rgba(184,150,90,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 5% 85%, rgba(30,58,95,0.3) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero h1 { color: var(--cream); }
.page-hero h1 em { font-style: italic; color: var(--gold-light); }
.page-hero .lead { max-width: 640px; }
.page-hero .eyebrow { margin-bottom: var(--sp-20); }

/* Accent bar for hero (program-specific) */
.hero-accent-bar {
  width: 48px;
  height: 3px;
  margin-bottom: var(--sp-20);
  border-radius: 2px;
}

/* ══════════════════════════════════════════════
   OUTCOMES STRIP
══════════════════════════════════════════════ */
.outcomes-strip {
  background: var(--cream-deep);
  border-bottom: 1px solid var(--divider);
  padding: var(--sp-48) var(--inner-pad);
}
.outcomes-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-32);
}
.outcome-card {
  padding: var(--sp-32) var(--sp-24) var(--sp-24);
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.outcome-card:hover {
  box-shadow: 0 6px 32px rgba(15,14,12,0.09);
  border-color: rgba(184,150,90,0.35);
}
.outcome-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--r-md) var(--r-md) 0 0;
}
/* Legacy — hidden when .outcome-icon is present */
.outcome-num { display: none; }

/* ── Outcome Icon ── */
.outcome-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-20);
  background: var(--cream-deep);
  border-radius: 50%;
  border: 1.5px solid var(--divider);
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.outcome-card:hover .outcome-icon {
  background: var(--gold-pale);
  border-color: rgba(184,150,90,0.5);
}
.outcome-icon svg {
  width: 30px;
  height: 30px;
  display: block;
  color: var(--pc, var(--ink));
  transition: color 0.25s ease;
}
.outcome-card:hover .outcome-icon svg {
  color: var(--pc, var(--ink));
}
.outcome-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--sp-8);
  text-align: center;
}
.outcome-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
}

/* ══════════════════════════════════════════════
   WHY IVY SECTION
══════════════════════════════════════════════ */
.why-ivy-section {
  padding: var(--sp-56) var(--inner-pad) var(--sp-80);
  max-width: var(--max-w);
  margin: 0 auto;
}
.why-ivy-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-64);
  align-items: start;
}
.why-ivy-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-20);
  display: flex;
  align-items: center;
  gap: 12px;
  /* Section-signal: faint rule above to separate from prior content */
  border-top: 1.5px solid rgba(184,150,90,0.28);
  padding-top: var(--sp-16);
}
.why-ivy-label::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}
.why-ivy-hook {
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink);
  border-left: 3px solid var(--gold-light);
  padding-left: var(--sp-20);
  margin-bottom: var(--sp-32);
}
.why-ivy-body p {
  margin-bottom: var(--sp-20);
}
.why-ivy-body p:last-child { margin-bottom: 0; }
.why-ivy-body strong { color: var(--ink); font-weight: 600; }

/* Authority card */
.authority-card {
  background: var(--slate);
  padding: var(--sp-32);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.authority-card-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-16);
}
.authority-item {
  display: flex;
  gap: 10px;
  padding: var(--sp-10, 10px) 0;
  border-bottom: 1px solid rgba(250,248,243,0.1);
  align-items: flex-start;
}
.authority-item:last-child { border-bottom: none; }
.authority-dot {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.authority-text {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(250,248,243,0.78);
}

/* ══════════════════════════════════════════════
   PROOF BAND
══════════════════════════════════════════════ */
.proof-band {
  background: var(--cream-deep);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: var(--sp-48) var(--inner-pad);
}
.proof-band-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.proof-band-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-24);
  display: flex;
  align-items: center;
  gap: 10px;
}
.proof-band-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-16);
}
.proof-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: var(--sp-16) var(--sp-20);
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
}
.proof-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
}
.proof-item-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #3a3834;
}
.proof-item-text strong { color: var(--ink); font-weight: 600; }

/* ══════════════════════════════════════════════
   FRAMEWORK SECTION
══════════════════════════════════════════════ */
.framework-section {
  padding: var(--sp-80) var(--inner-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
.framework-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--sp-64);
  align-items: start;
}
.framework-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-16);
}
.framework-h {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  margin-bottom: var(--sp-20);
}
.framework-desc {
  font-size: 15px;
  line-height: 1.9;
  color: #3a3834;
  margin-bottom: var(--sp-32);
}

/* Framework steps */
.framework-steps { display: flex; flex-direction: column; gap: var(--sp-4); }
.framework-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px var(--sp-20);
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.framework-step:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.step-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--divider);
  line-height: 1;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.step-content {}
.step-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2px;
}
.step-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Framework visual card */
.framework-visual {
  background: var(--slate);
  padding: var(--sp-32);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.fw-visual-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: var(--sp-24);
  line-height: 1.3;
}
.fw-visual-items { display: flex; flex-direction: column; gap: 8px; }
.fw-visual-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(250,248,243,0.05);
  border-radius: var(--r-sm);
  border-left: 3px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.fw-visual-item:hover {
  background: rgba(250,248,243,0.09);
  border-color: var(--gold);
}
.fw-visual-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  width: 20px;
  flex-shrink: 0;
}
.fw-visual-text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(250,248,243,0.82);
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════════
   AUDIENCE + FORMATS
══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   WHO THIS IS FOR — Audience Section
   Moved to position 3 (just after outcomes).
   High-impact treatment: dark program-color band,
   large serif headline, bullet columns.
   Uses --pc (program accent color) from page :root.
══════════════════════════════════════════════ */
.audience-formats-section {
  background: var(--pc-dark, var(--pc, var(--slate)));
  padding: var(--sp-80) var(--inner-pad);
  position: relative;
  overflow: hidden;
}
/* Subtle radial glow behind content */
.audience-formats-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 105% 45%, rgba(184,150,90,0.22) 0%, transparent 55%),
              radial-gradient(ellipse at -5% 55%, rgba(184,150,90,0.10) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 45%);
  pointer-events: none;
}
.aud-fmt-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-64);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ── Left: Who This Is For ── */
.aud-card {
  /* no card border — lives inside the dark band */
}
.aud-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-20);
  display: flex;
  align-items: center;
  gap: 12px;
}
.aud-card-label::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}
/* Big serif audience headline — recognition cue */
.aud-headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 300;
  color: #faf8f3;
  line-height: 1.15;
  margin-bottom: var(--sp-24);
  letter-spacing: -0.01em;
}
.aud-headline em {
  font-style: italic;
  color: var(--gold-light);
}
.aud-desc {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(250,248,243,0.90);
  margin-bottom: var(--sp-32);
  max-width: 560px;
}
/* Bullet list */
.aud-bullets { display: flex; flex-direction: column; gap: 14px; }
.aud-bullet {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: rgba(250,248,243,0.95);
  align-items: flex-start;
  line-height: 1.6;
}
.aud-bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 6px rgba(184,150,90,0.5);
}

/* ── Right: Formats card ── */
.fmt-card {
  padding: var(--sp-32);
  border: 1px solid rgba(250,248,243,0.18);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.fmt-card-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-20);
  display: flex;
  align-items: center;
  gap: 10px;
}
.fmt-card-label::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.fmt-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-20); }
.fmt-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1.5px solid rgba(184,150,90,0.4);
  color: rgba(250,248,243,0.8);
  border-radius: var(--r-sm);
  background: rgba(184,150,90,0.08);
  text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.fmt-pill:hover {
  border-color: var(--gold);
  color: var(--cream);
  background: rgba(184,150,90,0.18);
}

/* ── Per-format pill color identities ──────────────────────────
   Matches flip card accents and Format Finder pills on formats.html
   ─────────────────────────────────────────────────────────── */

/* Keynote — slate navy #2c3240 */
.fmt-pill.pill-keynote {
  background: rgba(44,50,64,0.18);
  border-color: rgba(44,50,64,0.55);
  color: #9aaac4;
}
.fmt-pill.pill-keynote:hover {
  background: rgba(44,50,64,0.35);
  border-color: #6c7ea8;
  color: #c0ccde;
}

/* Workshop — teal #2a6b6b */
.fmt-pill.pill-workshop {
  background: rgba(42,107,107,0.18);
  border-color: rgba(42,107,107,0.55);
  color: #7abfbf;
}
.fmt-pill.pill-workshop:hover {
  background: rgba(42,107,107,0.32);
  border-color: #4ea8a0;
  color: #a8d8d8;
}

/* Advisory — bronze gold #b8965a */
.fmt-pill.pill-advisory {
  background: rgba(184,150,90,0.14);
  border-color: rgba(184,150,90,0.50);
  color: #c9a96e;
}
.fmt-pill.pill-advisory:hover {
  background: rgba(184,150,90,0.26);
  border-color: var(--gold);
  color: #e8d5a8;
}

/* Webinar — burgundy #7a3f4f */
.fmt-pill.pill-webinar {
  background: rgba(122,63,79,0.18);
  border-color: rgba(122,63,79,0.55);
  color: #c37888;
}
.fmt-pill.pill-webinar:hover {
  background: rgba(122,63,79,0.32);
  border-color: #b85a72;
  color: #dba0b0;
}

/* Self-Paced — deep navy #1e3a5f */
.fmt-pill.pill-selfpaced {
  background: rgba(30,58,95,0.20);
  border-color: rgba(30,58,95,0.55);
  color: #7aaad0;
}
.fmt-pill.pill-selfpaced:hover {
  background: rgba(30,58,95,0.35);
  border-color: #5a8fc8;
  color: #a8c8e8;
}

.fmt-note {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(250,248,243,0.5);
}
.fmt-note a { color: var(--gold-light); }

/* ── Framework-visual panel mini-pills (.fw-vis-pill) ────────────────────
   Used inside the dark .framework-visual panel on program pages.
   These are <a> links so they are clickable to the format anchor.
   Base: compact sizing on a dark background.
   Per-format modifier classes share pill-[type] names with .fmt-pill
   but are tuned for higher contrast against the dark panel surface.
   ────────────────────────────────────────────────────────────────── */
.fw-vis-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fw-vis-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 3px;
  border: 1px solid rgba(250,248,243,0.18);
  background: rgba(250,248,243,0.06);
  color: rgba(250,248,243,0.72);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.fw-vis-pill:hover {
  background: rgba(250,248,243,0.12);
  border-color: rgba(250,248,243,0.35);
  color: rgba(250,248,243,0.95);
}

/* Keynote — slate navy accent on dark */
.fw-vis-pill.pill-keynote {
  background: rgba(44,50,64,0.32);
  border-color: rgba(140,160,192,0.45);
  color: #9aaac4;
}
.fw-vis-pill.pill-keynote:hover {
  background: rgba(44,50,64,0.55);
  border-color: #8fa0c0;
  color: #c0ccde;
}

/* Workshop — teal accent on dark */
.fw-vis-pill.pill-workshop {
  background: rgba(42,107,107,0.28);
  border-color: rgba(122,191,191,0.45);
  color: #7abfbf;
}
.fw-vis-pill.pill-workshop:hover {
  background: rgba(42,107,107,0.48);
  border-color: #7abfbf;
  color: #a8d8d8;
}

/* Advisory — bronze gold accent on dark */
.fw-vis-pill.pill-advisory {
  background: rgba(184,150,90,0.20);
  border-color: rgba(184,150,90,0.55);
  color: #c9a96e;
}
.fw-vis-pill.pill-advisory:hover {
  background: rgba(184,150,90,0.36);
  border-color: var(--gold);
  color: #e8d5a8;
}

/* Webinar — burgundy accent on dark */
.fw-vis-pill.pill-webinar {
  background: rgba(122,63,79,0.28);
  border-color: rgba(195,120,136,0.45);
  color: #c37888;
}
.fw-vis-pill.pill-webinar:hover {
  background: rgba(122,63,79,0.48);
  border-color: #c37888;
  color: #dba0b0;
}

/* Self-Paced — deep navy accent on dark */
.fw-vis-pill.pill-selfpaced {
  background: rgba(30,58,95,0.32);
  border-color: rgba(122,170,208,0.45);
  color: #7aaad0;
}
.fw-vis-pill.pill-selfpaced:hover {
  background: rgba(30,58,95,0.55);
  border-color: #7aaad0;
  color: #a8c8e8;
}

/* ══════════════════════════════════════════════
   RELATED PROGRAMS SECTION
══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   WHERE LEADERS GO NEXT — Related Programs
   Visual language matches .approach-card on index:
   large serif number · serif title · muted description
   Cards are <a> links so they retain full interactivity.
══════════════════════════════════════════════ */
.related-section {
  background: var(--card-bg);
  border-top: 1px solid var(--divider);
  padding: var(--sp-96) var(--inner-pad);
}
.related-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.related-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-8);
  text-align: center;
}
.related-h {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: var(--sp-56);
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Card — matches approach-card exactly ── */
.related-card {
  padding: 32px 28px;
  border: 1px solid var(--divider);
  background: var(--card-bg);
  position: relative;
  text-decoration: none;
  display: block;
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gold-light);
}

/* Large ghost number — identical to .approach-num */
.related-card-num {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 300;
  color: var(--divider);
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--t-base);
}
.related-card:hover .related-card-num {
  color: var(--gold-light);
}

/* Category eyebrow — stays but subtler */
.related-card-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 10px;
}

/* Serif title — matches .approach-title */
.related-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 12px;
}

/* Rationale body — matches .approach-desc */
.related-card-rationale {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: var(--sp-20);
}

/* Arrow link — remains at bottom */
.related-card-link {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-fast);
}
.related-card:hover .related-card-link { gap: 10px; }

/* Remove the old top-accent bar — no longer used */
.related-card-accent { display: none; }

/* ══════════════════════════════════════════════
   FINAL CTA BAND
══════════════════════════════════════════════ */
.final-cta {
  background: var(--slate);
  padding: var(--sp-80) var(--inner-pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(184,150,90,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}
.final-cta-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-16);
}
.final-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: var(--sp-16);
}
.final-cta h2 em { font-style: italic; color: var(--gold-light); }
.final-cta-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(250,248,243,0.65);
  line-height: 1.8;
  margin-bottom: 0;         /* gap comes from .cta-pair margin-top */
}
.final-cta .cta-pair {
  justify-content: center;
  flex-wrap: nowrap;   /* keep all three buttons on one scan line */
}

/* ══════════════════════════════════════════════
   SITE FOOTER
══════════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  padding: 36px var(--inner-pad) 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: block;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(250,248,243,0.08);
  margin-bottom: 14px;
}

/* 2-row × 4-col nav grid sitting alongside the brand column */
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
  align-items: start;
}
.footer-nav-cell {
  display: flex;
  flex-direction: column;
}

/* ── Brand column ── */
.footer-col-brand { display: flex; flex-direction: column; gap: 0; }

/* New brand block: M emblem + "Ivy Chin" side by side */
.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0 18px;
}
.footer-brand-mark {
  width: 60px;
  height: auto;
  display: block;
  flex-shrink: 0;
}
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
  line-height: 1.15;
}

/* Gold separator line below the brand block */
.footer-brand-rule {
  border: none;
  border-top: 1px solid var(--gold-light);
  opacity: 0.45;
  margin: 0 0 20px;
}
.footer-tagline {
  font-size: 11.5px;
  color: rgba(250,248,243,0.52);
  line-height: 1.6;
  max-width: 240px;
  margin-bottom: 16px;
}

/* ── Book promo block ── */
.footer-book-block {
  border-top: 1px solid rgba(184,150,90,0.18);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-book-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(184,150,90,0.70);
  margin-bottom: 2px;
}
.footer-book-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-light);
  text-decoration: none;
  line-height: 1.3;
  transition: color var(--t-fast);
}
.footer-book-title:hover { color: var(--cream); }
.footer-book-sub {
  font-size: 10.5px;
  color: rgba(250,248,243,0.40);
  line-height: 1.45;
  max-width: 220px;
}
.footer-book-cta {
  display: inline-block;
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(184,150,90,0.35);
  padding: 5px 10px;
  border-radius: 2px;
  width: fit-content;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.footer-book-cta:hover {
  background: rgba(184,150,90,0.12);
  border-color: var(--gold);
  color: var(--cream);
}

/* ── Connect to Ivy footer CTA ── */
.footer-connect-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(250,248,243,0.10);
}
.footer-connect-cta {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(184,150,90,0.35);
  padding: 5px 10px;
  border-radius: 2px;
  width: fit-content;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.footer-connect-cta:hover {
  background: rgba(184,150,90,0.12);
  border-color: var(--gold);
  color: var(--cream);
}

/* ══════════════════════════════════════════════
   FOOTER — TWO-TIER LINK HIERARCHY
   ─────────────────────────────────────────────
   Tier 1 · footer-group-header — clickable section heading
            Links to the parent overview page.
            Rest:  soft silver  rgba(210,215,222,0.90)
            Hover: light gold   rgba(201,168,108,0.95)
   Tier 2a · footer-link           — sub-links to page sections / anchor targets
            Rest:  soft silver  rgba(195,202,210,0.80)
            Hover: light gold   rgba(201,168,108,0.95)
   Tier 2b · footer-link--anchor   — modifier on hash (#) links
            Rest:  muted silver rgba(195,202,210,0.68)
            Indented 10px, tick mark matches silver family
            Hover: light gold + gold tick — visually subordinate but legible
══════════════════════════════════════════════ */

/* ── Clickable group header (replaces plain .footer-col-label div) ── */
.footer-group-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(210,215,222,0.90);           /* soft silver — readable on dark bg */
  text-decoration: none;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(184,150,90,0.22);
  white-space: nowrap;
  transition: color var(--t-fast), border-bottom-color var(--t-fast);
  cursor: pointer;
}
.footer-group-header::after {
  content: '›';
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.55;
  transition: opacity var(--t-fast), transform var(--t-fast);
  display: inline-flex;
  align-items: center;
  align-self: center;
  transform: translateX(0);
  position: relative;
  top: 0;
}
.footer-group-header:hover {
  color: rgba(201,168,108,0.95);           /* light gold on hover */
  border-bottom-color: rgba(184,150,90,0.38);
}
.footer-group-header:hover::after {
  opacity: 0.90;
  transform: translateX(3px);
}

/* Keep the plain label div for non-linked group headers (fallback / legacy) */
.footer-col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(184,150,90,0.85);
  margin-bottom: 5px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(184,150,90,0.18);
  white-space: nowrap;
}

/* ── Link lists: no bullets, tight vertical rhythm ── */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

/* Base tier-2 link — silver at rest, light gold on hover */
.footer-link {
  font-size: 12.5px;
  color: rgba(195,202,210,0.80);           /* soft silver — easy to read on dark bg */
  text-decoration: none;
  line-height: 1.18;
  transition: color var(--t-fast);
  white-space: nowrap;
  padding: 2.5px 0;
  display: block;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: rgba(201,168,108,0.95);           /* light gold on hover/active */
  outline: none;
}
.footer-link::before { display: none; }

/* Anchor sub-links (#section) — same level as base links, no indent */
.footer-link--anchor {
  font-size: 12px;
  color: rgba(195,202,210,0.68);           /* muted silver — subordinate but legible */
  padding: 1.5px 0;
  position: relative;
}
.footer-link--anchor::before {
  display: none !important;
}
.footer-link--anchor:hover,
.footer-link--anchor:focus-visible {
  color: rgba(201,168,108,0.90);           /* light gold on hover/active */
}
.footer-link--anchor:hover::before,
.footer-link--anchor:focus-visible::before {
  display: none !important;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-size: 11px;
  color: rgba(250,248,243,0.48);
}
/* ══════════════════════════════════════════════
   STICKY MOBILE CTA BAR
══════════════════════════════════════════════ */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: var(--slate);
  border-top: 1px solid rgba(250,248,243,0.1);
  padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(15,14,12,0.15);
}
.mobile-sticky-cta .btn-primary { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════ */
.fade-in {
  animation: fadeUp 0.6s ease both;
}
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════
   ICON ANIMATION — VIEWPORT TRIGGER
   .icon-animate SVGs: all animated children start paused.
   .icon-in-view (added by IntersectionObserver in nav.js)
   sets them running. This ensures 5-loop animations play
   when the icon enters the viewport, not on page load.
══════════════════════════════════════════════ */
.icon-animate * {
  animation-play-state: paused !important;
}
.icon-animate.icon-in-view * {
  animation-play-state: running !important;
}

/* ══════════════════════════════════════════════
   ACCESSIBILITY
══════════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
[role="button"], button, a { min-height: 44px; }

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-20);
  background: var(--gold);
  color: var(--ink);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-sm);
  z-index: 9999;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-8); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --inner-pad: 32px;
    --sp-96: 72px;
  }
  /* Narrow the inline search a little at tablet widths */
  .nav-search-inline       { width: 160px; }
  .nav-search-inline.active,
  .nav-search-inline:focus-within { width: 230px; }
  .nav-brand-company { display: none; }
  .nav-brand-rule    { display: none; }

  .grid-7-5, .grid-8-4, .why-ivy-grid, .framework-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-32);
  }
  .authority-card, .framework-visual { position: static; }
  .outcomes-grid { grid-template-columns: repeat(3, 1fr); }
  .why-ivy-section { padding: var(--sp-48) var(--inner-pad) var(--sp-64); }
  .framework-section { padding: var(--sp-64) var(--inner-pad); }
  .audience-formats-section { padding: var(--sp-64) var(--inner-pad); }
  .footer-nav-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 20px; }
}

@media (max-width: 768px) {
  :root {
    --inner-pad: 20px;
    --nav-h: 60px;
    --sp-80: 56px;
    --sp-96: 56px;
  }
  [id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
  .why-ivy-section { padding: var(--sp-40) var(--inner-pad) var(--sp-56); }
  .framework-section { padding: var(--sp-48) var(--inner-pad); }
  .audience-formats-section { padding: var(--sp-48) var(--inner-pad); }
  .site-nav .nav-center { display: none; }
  .site-nav .nav-right .btn-primary { padding: 10px 18px; font-size: 10px; }
  /* Collapse inline search on mobile — it lives in the drawer instead */
  .nav-search-inline { display: none; }
  /* Collapse Maxurpo tagline on very small nav */
  .nav-brand-rule, .nav-brand-company { display: none; }
  .nav-hamburger { display: flex; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .aud-fmt-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-nav-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section, .section-sm { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 480px) {
  .cta-pair { flex-direction: column; }
  .cta-pair .btn-primary,
  .cta-pair .btn-secondary { width: 100%; justify-content: center; }
  .footer-nav-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .footer-link { white-space: normal; }
}

/* ══════════════════════════════════════════════
   PROGRAM COLOR ASSIGNMENT CLASSES
══════════════════════════════════════════════ */
.program-color-1 { --pc: var(--blue);   --pc-l: var(--blue-light); }
.program-color-2 { --pc: var(--sage);   --pc-l: var(--sage-light); }
.program-color-3 { --pc: var(--teal);   --pc-l: var(--teal-light); }
.program-color-4 { --pc: var(--slate);  --pc-l: rgba(44,50,64,0.07); }
.program-color-5 { --pc: var(--rose);   --pc-l: var(--rose-light); }
.program-color-6 { --pc: var(--amber);  --pc-l: var(--amber-light); }
.program-color-7 { --pc: var(--violet); --pc-l: var(--violet-light); }

/* Print */
@media print {
  .site-nav, .mobile-sticky-cta { display: none; }
  .page-hero { padding-top: 40px; }
}
