/* ============================================================
   GENETTE FOUNDATION — v4 STYLES
   Refined institutional aesthetic.
   Georgia for display and brand; Public Sans for body.
   ============================================================ */

/* ---------- FONT IMPORT ---------- */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600;700&display=swap');

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Brand palette */
  --navy:       #071f3c;
  --navy-2:     #0f3557;
  --navy-3:     #1a4a73;
  --teal:       #0f7f83;
  --teal-2:     #14a0a4;
  --gold:       #c99a2e;
  --gold-2:     #e6b948;
  --cream:      #f7f3ea;
  --cream-2:    #fbf8f1;
  --paper:      #fffdf8;

  /* Ink and surfaces */
  --ink:        #0d1b2e;
  --ink-2:      #1f2a3d;
  --ink-soft:   #3a4658;
  --muted:      #6b7385;
  --rule:       #d9d3c2;
  --rule-soft:  #ebe6d8;
  --white:      #ffffff;

  /* Semantic */
  --bg:         var(--paper);
  --fg:         var(--ink);
  --link:       var(--teal);
  --accent:     var(--gold);
  --on-dark:    #f3eed8;

  /* Typography */
  --font-display: Georgia, 'Times New Roman', 'Liberation Serif', serif;
  --font-body:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --s-1:   4px;
  --s-2:   8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* Layout */
  --container:      1200px;
  --container-tight: 920px;
  --container-wide:  1340px;
  --radius-sm:       6px;
  --radius:          10px;
  --radius-lg:       18px;

  /* Transitions */
  --t-fast: 120ms ease;
  --t:      200ms ease;
  --t-slow: 360ms cubic-bezier(.2,.7,.2,1);
}

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

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

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--link); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol { margin: 0; padding: 0 0 0 1.2em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- TYPOGRAPHY ---------- */
.display-xl,
.display-lg,
.display,
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}

.display-xl  { font-size: clamp(2.6rem, 6vw + .5rem, 5.4rem); line-height: 1.04; letter-spacing: -0.015em; }
.display-lg  { font-size: clamp(2.2rem, 4.5vw + .4rem, 4.0rem); line-height: 1.08; letter-spacing: -0.01em; }
.display     { font-size: clamp(1.7rem, 2.4vw + .6rem, 2.5rem); }

h1 { font-size: clamp(2rem, 3vw + .8rem, 3rem); }
h2 { font-size: clamp(1.5rem, 1.5vw + .9rem, 2.1rem); }
h3 { font-size: clamp(1.2rem, .7vw + .9rem, 1.45rem); }
h4 { font-size: 1.1rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 var(--s-4);
}

.lead {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, .4vw + .9rem, 1.22rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, .5vw + .9rem, 1.25rem);
  color: var(--teal);
  letter-spacing: 0.01em;
  margin: var(--s-5) 0 0;
}

.small { font-size: 0.9rem; color: var(--muted); }
.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- LAYOUT ---------- */
.container       { width: 100%; max-width: var(--container);       margin: 0 auto; padding: 0 var(--s-5); }
.container-tight { width: 100%; max-width: var(--container-tight); margin: 0 auto; padding: 0 var(--s-5); }
.container-wide  { width: 100%; max-width: var(--container-wide);  margin: 0 auto; padding: 0 var(--s-5); }

section { padding: var(--s-9) 0; }
section.tight { padding: var(--s-8) 0; }
section.snug  { padding: var(--s-7) 0; }

.section-rule {
  height: 1px;
  background: var(--rule-soft);
  margin: 0;
  border: 0;
}

/* ---------- HEADER & NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-4) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 52px;
  max-width: 180px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text .name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}
.brand-text .sub {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 2px;
  font-weight: 500;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-5);
  margin: 0 0 0 auto;
  padding: 0;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.005em;
  padding: var(--s-2) 0;
  position: relative;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
}

.nav-cta,
.nav-cta:visited,
.nav-cta:active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  background: var(--navy);
  color: #ffffff !important;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--t), transform var(--t);
}
.nav-cta:hover,
.nav-cta:focus {
  background: var(--teal);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 8px 12px;
  margin-left: auto;
  color: var(--ink);
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  /* Header stays sticky */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: var(--s-3);
  }

  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; }

  /* Mobile drawer — fixed to viewport, not trapped inside nav container */
  .nav.is-open .nav-links {
    display: flex;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    width: 100vw;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    padding: 24px 28px 32px;
    border-top: 1px solid var(--rule-soft);
    box-shadow: 0 18px 40px rgba(13, 27, 46, 0.16);
    z-index: 1001;
    list-style: none;
    margin: 0;
    gap: 0;
  }

  .nav.is-open .nav-links li { list-style: none; }

  .nav.is-open .nav-links a {
    font-size: 1.05rem;
    padding: 16px 0;
    color: var(--ink);
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav.is-open .nav-links li:last-child a { border-bottom: 0; }

  /* In-drawer Partner-with-us — rectangular institutional button, not a pill */
  .nav.is-open .nav-links a.nav-cta {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--navy);
    color: #ffffff;
    text-align: center;
    border-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    justify-content: center;
  }
  .nav.is-open .nav-links a.nav-cta:hover {
    background: var(--teal);
    color: #ffffff;
  }

  /* Prevent body scroll when drawer is open (avoids content scrolling underneath) */
  body.menu-open { overflow: hidden; touch-action: none; }
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 10px 14px;
  z-index: 99;
}
.skip:focus { left: var(--s-4); top: var(--s-4); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 6vw, 88px) 0 clamp(64px, 7vw, 96px);
  background:
    radial-gradient(1100px 600px at 12% 18%, rgba(15,127,131,0.07), transparent 60%),
    radial-gradient(900px 500px at 92% 8%, rgba(201,154,46,0.08), transparent 55%),
    linear-gradient(180deg, var(--cream-2), var(--paper) 70%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-8);
  align-items: start;
}

.hero-copy h1.display-xl { color: var(--navy); }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary   { background: var(--navy);  color: var(--paper); }
.btn-primary:hover { background: var(--teal); color: var(--paper); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--paper); transform: translateY(-1px); }

.hero-card {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
  box-shadow:
    0 1px 0 rgba(13,27,46,0.02),
    0 24px 60px -28px rgba(13,27,46,0.18);
  align-self: start;
}

/* Right column wrapper — stacks logo panel above proposition card */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-width: 0;
  align-self: start;
}

/* Premium logo panel — inherits .hero-card, centers the logo with breathing room */
.hero-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-6) var(--s-7);
}
.hero-logo-panel img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}
.hero-card .label { color: var(--gold); }
.hero-card h2 { margin-top: var(--s-3); color: var(--navy); }
.hero-card ul {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 0;
  display: grid;
  gap: var(--s-4);
}
.hero-card li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: var(--s-3);
  font-size: 0.97rem;
  color: var(--ink-2);
}
.hero-card li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 9px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* HERO HARDENING — collapses to single column at <=1024px, including
   the 980px layout viewport that Chrome uses in Desktop Site mode.
   Placed AFTER the base .hero-grid rule so source order wins on equal specificity. */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }

  .display-xl {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.1;
  }

  .hero-copy,
  .hero-card,
  .lead,
  .tagline,
  .hero-cta-row,
  .btn { max-width: 100%; }

  .btn {
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  /* Logo panel — smaller at tablet and below */
  .hero-logo-panel { padding: var(--s-5) var(--s-6); }
  .hero-logo-panel img { max-height: 190px; }
}

/* ---------- TRUST STRIP ---------- */
.trust {
  background: var(--navy);
  color: var(--on-dark);
  padding: var(--s-6) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-5);
}
.trust-item {
  font-size: 0.92rem;
  line-height: 1.45;
  border-left: 2px solid var(--gold);
  padding-left: var(--s-4);
  color: var(--on-dark);
}
@media (max-width: 1024px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- SECTION HEAD ---------- */
.section-head {
  margin-bottom: var(--s-7);
  max-width: 760px;
}
.section-head h2 { color: var(--navy); }
.section-head .lead { margin-top: var(--s-3); }

/* ---------- PROSE ---------- */
.prose {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 720px;
}
.prose p + p { margin-top: 0.9em; }

/* ---------- PATHWAY DIAGRAM ---------- */
.pathway {
  margin-top: var(--s-6);
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5);
  overflow-x: auto;
}
.pathway-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 900px;
}
.pathway-step {
  flex: 1 1 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--rule);
  padding: var(--s-4) var(--s-3);
  border-radius: var(--radius);
  line-height: 1.3;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pathway-arrow {
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---------- SITES (3 CARDS) ---------- */
.sites {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.site-card {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  overflow: hidden;
}
.site-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}
.site-card h3 { color: var(--navy); margin: var(--s-3) 0 0; }
.site-card p  { color: var(--ink-2); font-size: 0.97rem; line-height: 1.6; }
.site-card .label { color: var(--gold); }
@media (max-width: 900px) { .sites { grid-template-columns: 1fr; } }

.map-wrap {
  margin-top: var(--s-7);
  display: flex;
  justify-content: center;
}
.map-wrap svg { max-width: 320px; }

/* ---------- DIFFERENTIATION (3-up callouts) ---------- */
.diff {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.diff-item h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.25rem;
  margin: 0 0 var(--s-3);
  border-top: 2px solid var(--gold);
  padding-top: var(--s-3);
}
.diff-item p { font-size: 0.97rem; color: var(--ink-2); }
@media (max-width: 900px) { .diff { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ---------- LEADERSHIP ---------- */
.leaders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}
.leader {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--s-5);
  align-items: start;
}
.leader-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--cream);
  overflow: hidden;
  border: 3px solid var(--cream);
  box-shadow: 0 6px 20px rgba(13,27,46,0.08);
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.leader h3 { color: var(--navy); margin: 0 0 var(--s-2); font-size: 1.18rem; }
.leader .role {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal);
  margin-bottom: var(--s-3);
}
.leader p { font-size: 0.95rem; color: var(--ink-2); margin: 0; }
.leaders-note {
  margin-top: var(--s-5);
  font-size: 0.97rem;
  color: var(--ink-2);
  background: var(--cream);
  border-radius: var(--radius);
  padding: var(--s-5);
  border-left: 3px solid var(--teal);
}
@media (max-width: 900px) {
  .leaders { grid-template-columns: 1fr; }
  .leader { grid-template-columns: 96px 1fr; }
  .leader-photo { width: 96px; height: 96px; }
}

/* ---------- FOUNDING CLAUSE (HGIC) ---------- */
.founding {
  background: var(--navy);
  color: var(--on-dark);
}
.founding .container-tight { padding: 0 var(--s-5); }
.founding .eyebrow { color: var(--gold-2); }
.founding .display { color: var(--paper); }
.founding .prose { color: var(--on-dark); max-width: 760px; }
.founding .locked {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, .9vw + .8rem, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--paper);
  border-left: 3px solid var(--gold);
  padding-left: var(--s-5);
  margin: var(--s-5) 0 var(--s-6);
}

/* ---------- ALIGNMENT (6 framework cards) ---------- */
.align-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.align-card {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.align-card .label { color: var(--teal); font-size: 0.68rem; }
.align-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.3;
}
.align-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
}
@media (max-width: 900px) { .align-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .align-grid { grid-template-columns: 1fr; } }

/* ---------- FIRST WINDOW ---------- */
.window {
  background:
    linear-gradient(135deg, var(--cream-2), var(--paper));
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-7);
  align-items: center;
}
.window .label { color: var(--gold); }
.window h2 { color: var(--navy); }
.window p  { color: var(--ink-2); }
.window-amount {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(2.6rem, 4vw + .6rem, 3.8rem);
  line-height: 1;
  margin: 0;
}
.window-amount .currency {
  font-size: 0.55em;
  color: var(--teal);
  vertical-align: super;
  margin-right: 6px;
}
.window-period {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: var(--s-3);
  display: block;
}
@media (max-width: 900px) { .window { grid-template-columns: 1fr; padding: var(--s-6); } }

/* ---------- DOCUMENTS ---------- */
.docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.doc-card {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  text-decoration: none;
  color: inherit;
}
.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(13,27,46,0.22);
  border-color: var(--gold);
}
.doc-card .label { color: var(--teal); }
.doc-card h3 { color: var(--navy); margin: var(--s-2) 0 0; font-size: 1.1rem; line-height: 1.3; }
.doc-card p  { color: var(--ink-2); font-size: 0.92rem; margin: 0; }
.doc-card .doc-cta {
  margin-top: auto;
  padding-top: var(--s-4);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.doc-card .doc-cta::after { content: "→"; transition: transform var(--t); }
.doc-card:hover .doc-cta::after { transform: translateX(3px); }
.docs-note {
  margin-top: var(--s-6);
  font-size: 0.97rem;
  color: var(--ink-2);
  background: var(--cream);
  padding: var(--s-5);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
}
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-dark);
  padding: var(--s-8) 0 var(--s-6);
  margin-top: var(--s-9);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--paper);
  margin: 0 0 var(--s-2);
}
.footer-brand .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.97rem;
  color: var(--gold-2);
  margin: 0;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 var(--s-4);
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.92rem;
  color: var(--on-dark);
  margin: 0 0 var(--s-2);
  text-decoration: none;
}
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding-top: var(--s-6);
  font-size: 0.83rem;
  color: rgba(255,255,255,0.7);
}
.footer-bottom .policies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}
.footer-bottom a { color: rgba(255,255,255,0.85); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-2); }
.footer-statutory {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.75);
  margin-top: var(--s-5);
  max-width: 920px;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- UTILITIES ---------- */
.center        { text-align: center; }
.mt-0          { margin-top: 0; }
.mt-4          { margin-top: var(--s-4); }
.mt-5          { margin-top: var(--s-5); }
.mt-6          { margin-top: var(--s-6); }
.mt-7          { margin-top: var(--s-7); }
.bg-cream      { background: var(--cream-2); }
.bg-navy       { background: var(--navy); color: var(--on-dark); }
.bg-navy h2,
.bg-navy .lead { color: var(--paper); }
.bg-navy .eyebrow { color: var(--gold-2); }

/* ============================================================
   MOBILE RESPONSIVE — tested at 360, 390, 412, 430 widths
   ============================================================ */

/* Defensive: prevent flex/grid items from forcing parent wider than viewport */
.nav, .brand, .brand-text, .hero-grid, .hero-copy, .hero-card,
.window, .leader, .footer-top { min-width: 0; }
.brand-text { overflow: hidden; }
.brand-text .name,
.brand-text .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tablet and below */
@media (max-width: 900px) {
  .hero-card { padding: var(--s-6); }
  .leaders-note { padding: var(--s-4); }
  .nav-cta { padding: 9px 14px; font-size: 0.85rem; }
}

/* Mobile (≤ 640px) — applies to 360, 390, 412, 430 */
@media (max-width: 640px) {
  /* Container — tighter side padding */
  .container,
  .container-tight,
  .container-wide   { padding: 0 var(--s-4); }

  /* Section vertical rhythm tightened */
  section           { padding: var(--s-7) 0; }
  section.tight     { padding: var(--s-6) 0; }
  section.snug      { padding: var(--s-5) 0; }

  /* Display type scales down */
  .display-xl       { font-size: clamp(1.9rem, 7vw, 2.35rem); line-height: 1.1; letter-spacing: -0.005em; }
  .display-lg       { font-size: clamp(1.6rem, 5.5vw, 2.05rem); }
  .display          { font-size: clamp(1.35rem, 4vw, 1.75rem); }
  h1                { font-size: clamp(1.6rem, 5vw, 2.1rem); }
  h2                { font-size: clamp(1.3rem, 3.5vw, 1.7rem); }
  .lead             { font-size: 0.98rem; line-height: 1.55; }
  .tagline          { font-size: 0.98rem; }

  /* Header / nav — logo + truncated brand, no tagline */
  .nav              { gap: var(--s-3); padding: var(--s-3) 0; }
  .brand            { gap: var(--s-2); flex: 1 1 auto; }
  .brand img        { height: 48px; max-width: 150px; }
  .brand-text .name { font-size: 0.96rem; }
  .brand-text .sub  { font-size: 0.6rem; letter-spacing: 0.12em; }
  .nav-toggle       { padding: 7px 11px; font-size: 0.82rem; flex: 0 0 auto; }

  /* Hero */
  .hero             { padding: var(--s-7) 0 var(--s-7); }
  .hero-grid        { gap: var(--s-5); }
  .hero-cta-row     { flex-direction: column; gap: var(--s-3); align-items: stretch; }
  .hero-right       { gap: var(--s-4); }
  .hero-logo-panel  { padding: var(--s-4) var(--s-5); }
  .hero-logo-panel img { max-height: 160px; }

  /* Buttons full-width and wrap text on mobile */
  .btn {
    width: 100%;
    white-space: normal;
    justify-content: center;
    text-align: center;
    padding: 14px 16px;
    line-height: 1.3;
    font-size: 0.95rem;
  }

  /* Hero card padding reduced */
  .hero-card        { padding: var(--s-5); border-radius: var(--radius); }
  .hero-card ul     { gap: var(--s-3); margin-top: var(--s-4); }
  .hero-card li     { font-size: 0.93rem; }

  /* Trust strip */
  .trust            { padding: var(--s-5) 0; }
  .trust-grid       { gap: var(--s-4) var(--s-3); }
  .trust-item       { font-size: 0.84rem; padding-left: var(--s-3); line-height: 1.4; }

  /* Cards — padding reduced */
  .site-card,
  .doc-card,
  .align-card,
  .leader           { padding: var(--s-5); }

  /* Leader cards stack photo above text */
  .leader           { grid-template-columns: 1fr; gap: var(--s-4); }
  .leader-photo     { width: 80px; height: 80px; }

  /* Founding (HGIC) — quote scales */
  .founding .locked {
    font-size: 1.15rem;
    padding-left: var(--s-4);
    margin: var(--s-4) 0 var(--s-5);
    line-height: 1.45;
  }

  /* Strategic alignment — single column */
  .align-grid       { grid-template-columns: 1fr; gap: var(--s-3); }

  /* First window — stack and tighten */
  .window           { padding: var(--s-5); gap: var(--s-5); }
  .window-amount    {
    font-size: clamp(2rem, 9vw, 2.8rem);
    line-height: 1.05;
    word-break: break-word;
  }
  .window-amount .currency { display: block; font-size: 0.85rem; margin: 0 0 4px; vertical-align: baseline; }
  .window-period    { font-size: 0.88rem; }

  /* Documents */
  .docs             { gap: var(--s-4); }
  .docs-note        { padding: var(--s-4); font-size: 0.92rem; }

  /* Footer */
  .footer-top       { gap: var(--s-5); padding-bottom: var(--s-5); }
  .footer-statutory { font-size: 0.8rem; }
  .footer-bottom    { font-size: 0.78rem; gap: var(--s-3); align-items: stretch; }
  .footer-bottom .policies { gap: var(--s-3); }

  /* Diff (Why we are different) */
  .diff             { gap: var(--s-5); }
  .diff-item h3     { font-size: 1.15rem; }

  /* Section head */
  .section-head     { margin-bottom: var(--s-6); }

  /* Pathway hint */
  .pathway          { position: relative; padding: var(--s-5) var(--s-4); }
  .pathway::after   {
    content: "Swipe to see all stages →";
    position: absolute;
    right: var(--s-4);
    bottom: 6px;
    font-size: 0.72rem;
    color: var(--muted);
    pointer-events: none;
  }
  .pathway-step     { font-size: 0.85rem; min-height: 56px; }
}

/* Very narrow phones (≤ 380px) — covers 360px Galaxy class */
@media (max-width: 380px) {
  .container,
  .container-tight,
  .container-wide   { padding: 0 12px; }

  .display-xl       { font-size: 1.85rem; line-height: 1.1; }
  .display-lg       { font-size: 1.55rem; }
  .display          { font-size: 1.3rem; }

  .hero-card,
  .site-card,
  .doc-card,
  .align-card,
  .leader           { padding: var(--s-4); }

  .hero-logo-panel  { padding: var(--s-4); }
  .hero-logo-panel img { max-height: 140px; }

  .window           { padding: var(--s-4); }
  .window-amount    { font-size: 1.85rem; }

  .brand img        { height: 42px; max-width: 130px; }
  .brand-text .name { font-size: 0.9rem; }
  .brand-text .sub  { display: none; }
  .nav-toggle       { padding: 6px 9px; font-size: 0.78rem; }

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

/* ============================================================
   HERO LOGO PANEL — premium brand identity in the hero column
   ============================================================ */

.hero-right {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-width: 0;
  align-self: start;
}
.hero-right > * { align-self: stretch; }

/* The logo panel inherits .hero-card base (white bg, soft border, refined shadow, rounded)
   and overrides padding + alignment to showcase the mark */
.hero-card.hero-logo-panel {
  padding: var(--s-7) var(--s-6);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  text-align: center;
}
.hero-card.hero-logo-panel img {
  width: 100%;
  height: auto;
  max-width: 320px;
  display: block;
  margin: 0 auto;
  /* Subtle clarity on the logo */
  filter: none;
}

/* Tablet / Desktop Site mode (≤1024px) */
@media (max-width: 1024px) {
  .hero-card.hero-logo-panel { padding: var(--s-6) var(--s-5); min-height: 200px; }
  .hero-card.hero-logo-panel img { max-width: 260px; }
}

/* Mobile (≤640px) — smaller, with enough breathing room */
@media (max-width: 640px) {
  .hero-card.hero-logo-panel { padding: var(--s-5); min-height: 180px; }
  .hero-card.hero-logo-panel img { max-width: 220px; }
  .hero-right { gap: var(--s-4); }
}

/* Narrow phones (≤380px) */
@media (max-width: 380px) {
  .hero-card.hero-logo-panel { padding: var(--s-4); min-height: 160px; }
  .hero-card.hero-logo-panel img { max-width: 200px; }
}

/* ============================================================
   INNER PAGE HERO — for About, Our Model, and other inner pages
   ============================================================ */

.page-hero {
  position: relative;
  padding: clamp(72px, 7vw, 112px) 0 clamp(48px, 5vw, 80px);
  background:
    radial-gradient(ellipse 80% 50% at 30% 0%, rgba(15,127,131,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--rule-soft);
}
.page-hero .eyebrow { color: var(--teal); }
.page-hero h1 {
  color: var(--navy);
  margin: var(--s-3) 0 var(--s-5);
}
.page-hero .lead {
  max-width: 720px;
  color: var(--ink-2);
}

/* Two-column layout for inner page hero */
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s-7);
  align-items: start;
}
.page-hero-copy { min-width: 0; }
.page-hero-copy h1 { max-width: 18ch; }

/* Right-side premium panel */
.hero-panel {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-7) var(--s-6);
  box-shadow:
    0 1px 0 rgba(13,27,46,0.02),
    0 24px 60px -28px rgba(13,27,46,0.18);
  align-self: start;
  min-width: 0;
}
.hero-panel .label { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.14em; }
.hero-panel h2 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.3;
  margin: var(--s-3) 0 var(--s-5);
  letter-spacing: -0.005em;
}
.hero-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.hero-panel li {
  position: relative;
  padding-left: var(--s-5);
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.55;
}
.hero-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* Model-at-a-glance stats row inside hero panel */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: var(--s-3);
}
.hero-stat {
  text-align: center;
  padding: var(--s-4) var(--s-2);
  border-right: 1px solid var(--rule-soft);
  min-width: 0;
}
.hero-stat:last-child { border-right: 0; }
.hero-stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--s-2);
}
.hero-stat .word {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.005em;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}
.hero-panel .stats-foot {
  margin-top: var(--s-5);
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
  text-align: center;
}

/* Mobile / tablet: stack columns */
@media (max-width: 1024px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .page-hero-copy h1 { max-width: none; }
}
@media (max-width: 640px) {
  .hero-panel { padding: var(--s-6) var(--s-5); }

  /* Mobile stats — 2-column grid; last item (1 · Pathway) spans both columns
     and centres, reinforcing the "one continuous pathway" framing. */
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
    margin-top: var(--s-4);
  }
  .hero-stat {
    background: rgba(13, 27, 46, 0.025);
    border: 1px solid var(--rule-soft);
    border-right: 1px solid var(--rule-soft);
    border-radius: var(--radius);
    padding: var(--s-4) var(--s-3);
  }
  .hero-stat:last-child { grid-column: 1 / -1; }
  .hero-stat .num { font-size: 2rem; }
  .hero-stat .word {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
  }
  .hero-panel .stats-foot { margin-top: var(--s-5); }
}
@media (max-width: 420px) {
  .hero-stats { gap: var(--s-2); }
  .hero-stat { padding: var(--s-3) var(--s-2); }
  .hero-stat .num { font-size: 1.75rem; }
  .hero-stat .word { font-size: 0.65rem; }
}

/* ============================================================
   VISUAL IDENTITY GRID — logo elements + colour palette on About
   ============================================================ */

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.identity-item {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.identity-item .label {
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}
.identity-item h4 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.25;
}
.identity-item p {
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0;
}
.palette-row {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-3);
}
.palette-swatch {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
  min-width: 0;
}
.palette-chip {
  width: 100%;
  height: 64px;
  border-radius: var(--radius);
  border: 1px solid rgba(13,27,46,0.08);
}
.palette-chip.navy  { background: var(--navy);  }
.palette-chip.teal  { background: var(--teal);  }
.palette-chip.gold  { background: var(--gold);  }
.palette-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0;
}
.palette-meaning {
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 720px) {
  .identity-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CALLOUT — non-discrimination and emphasis blocks
   ============================================================ */

.callout {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: var(--s-6) var(--s-7);
}
.callout p { color: var(--ink-2); font-size: 1rem; line-height: 1.7; margin: 0; }
.callout p + p { margin-top: 1em; }
.callout .label { color: var(--teal); }
.callout h3 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 var(--s-3);
  line-height: 1.3;
}
@media (max-width: 640px) {
  .callout { padding: var(--s-5); }
}

/* ============================================================
   PHASES — vertical timeline for the four-phase build
   ============================================================ */

.phases {
  list-style: none;
  margin: var(--s-7) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.phase {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: var(--s-6) var(--s-7);
}
.phase-meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.phase-tag {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin: 0;
}
.phase-window {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0;
}
.phase-body h3 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 var(--s-3);
  line-height: 1.25;
}
.phase-body p {
  color: var(--ink-2);
  font-size: 0.97rem;
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 900px) {
  .phase {
    grid-template-columns: 1fr;
    gap: var(--s-3);
    padding: var(--s-5) var(--s-6);
  }
  .phase-meta { flex-direction: row; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .phase { padding: var(--s-5); }
}

/* ============================================================
   READINESS GATES
   ============================================================ */

.gates {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: var(--s-6) var(--s-7);
  margin-top: var(--s-6);
}
.gates h3 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 var(--s-4);
}
.gates ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3) var(--s-6);
}
.gates li {
  position: relative;
  padding-left: var(--s-5);
  font-size: 0.97rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.gates li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
@media (max-width: 720px) {
  .gates { padding: var(--s-5); }
  .gates ul { grid-template-columns: 1fr; }
}

/* ============================================================
   STORY BLOCKS — multi-paragraph narrative on About
   ============================================================ */

.story-block {
  max-width: 760px;
}
.story-block p {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.75;
}
.story-block p + p { margin-top: 1.1em; }

/* Two-column section for The founders' contribution etc. */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ============================================================
   COMPONENT TILE — used for the six donor-fundable components on model.html
   ============================================================ */

.components-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.component-tile {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.component-tile .number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.component-tile h3 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}
.component-tile p {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 1024px) {
  .components-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .components-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SECTION SPACING — block separation on inner pages
   ============================================================ */

.section {
  padding: clamp(56px, 6vw, 96px) 0;
}
.section + .section { border-top: 1px solid var(--rule-soft); }
.section.bg-cream { background: var(--cream-2); }
.section.bg-cream + .section { border-top: 0; }


/* ---------- PRINT ---------- */
@media print {
  .site-header, .nav-cta, .hero-cta-row, .site-footer .footer-top, .doc-card .doc-cta { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  .hero, .trust, .founding, .window, section { padding: 16pt 0; background: white !important; color: black !important; }
  .hero-card, .site-card, .leader, .doc-card, .align-card { border: 1px solid #999; box-shadow: none; }
}

/* ============================================================
   PROGRAMMES — section 4 components
   Added 2026-05-23 for /v4/programmes.html. Cache: ?v=20260523-02
   Reuses .section, .section-head, .sites/.site-card, .label, .hero-panel.
   New: .components-grid + .component-card, .function-ledger,
        .mandate-table, .readiness, .engage-card,
        .section.bg-navy modifier.
   ============================================================ */

/* ---------- SECTION on dark navy (for Readiness block) ---------- */
.section.bg-navy {
  background: var(--navy);
  color: var(--on-dark);
}
.section.bg-navy .section-head h2 { color: var(--white); }
.section.bg-navy .section-head .eyebrow { color: var(--gold-2); }
.section.bg-navy .section-head .lead { color: var(--on-dark); opacity: 0.92; }
.section.bg-navy + .section { border-top: 0; }

/* ---------- COMPONENTS GRID — six donor-fundable components ---------- */
.components-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.component-card {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.component-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}
.component-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(13,27,46,0.18);
  border-color: var(--rule);
}
.component-card .num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold);
  margin-top: var(--s-2);
}
.component-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}
.component-card .scope {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
}
.component-card .fn-list {
  list-style: none;
  margin: auto 0 0;
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.component-card .fn-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.component-card .fn-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* Component 01 — cross-cutting, navy emphasis */
.component-card.cross-cut {
  background: var(--navy);
  border-color: var(--navy-2, var(--ink-2));
}
.component-card.cross-cut::before {
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
}
.component-card.cross-cut .num { color: var(--gold-2); }
.component-card.cross-cut h3 { color: var(--white); }
.component-card.cross-cut .scope { color: var(--on-dark); opacity: 0.92; }
.component-card.cross-cut .fn-list {
  border-top-color: rgba(255,255,255,0.18);
}
.component-card.cross-cut .fn-list li { color: var(--on-dark); opacity: 0.92; }
.component-card.cross-cut .fn-list li::before { background: var(--gold-2); }

@media (max-width: 1024px) { .components-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .components-grid { grid-template-columns: 1fr; gap: var(--s-4); } }

/* ---------- TWELVE FUNCTION LEDGER ---------- */
.function-ledger {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--s-7);
  border-top: 1px solid var(--rule);
}
.fn-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--rule);
}
.fn-row .fn-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.fn-row .fn-name {
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--navy);
}
.fn-row .fn-anchor {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
  font-weight: 600;
}
@media (max-width: 900px) {
  .function-ledger { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 420px) {
  .fn-row { grid-template-columns: 36px 1fr; gap: var(--s-3); }
  .fn-row .fn-anchor { grid-column: 2; padding-top: 2px; }
}

/* ---------- DONOR MANDATE MATRIX ---------- */
.mandate-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--navy);
  background: var(--white);
}
.mandate-table th,
.mandate-table td {
  text-align: left;
  padding: var(--s-4);
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.mandate-table thead th {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--rule);
  background: var(--cream-2);
}
.mandate-table tbody th {
  font-weight: 500;
  color: var(--navy);
  font-size: 0.97rem;
  line-height: 1.5;
  width: 38%;
}
.mandate-table tbody td {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.mandate-table tbody tr:hover { background: var(--cream-2); }
.mandate-foot {
  margin-top: var(--s-4);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 760px;
}
@media (max-width: 640px) {
  .mandate-table thead { display: none; }
  .mandate-table, .mandate-table tbody, .mandate-table tr,
  .mandate-table th, .mandate-table td { display: block; width: 100%; }
  .mandate-table tr {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    margin-bottom: var(--s-3);
    padding: var(--s-4);
    background: var(--white);
  }
  .mandate-table tbody th {
    width: auto;
    padding: 0 0 var(--s-2);
    border-bottom: 1px solid var(--rule-soft);
    font-size: 1rem;
  }
  .mandate-table tbody td { padding: var(--s-2) 0 0; font-size: 0.93rem; }
  .mandate-table tbody td::before {
    content: "Entry components";
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 700;
    margin-bottom: 4px;
  }
}

/* ---------- READINESS — 6-up grid on navy background ---------- */
.readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}
.readiness-item {
  border-left: 2px solid var(--gold);
  padding: 4px var(--s-5);
}
.readiness-item h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 var(--s-2);
}
.readiness-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--on-dark);
  opacity: 0.9;
}
@media (max-width: 900px) { .readiness-grid { grid-template-columns: 1fr; } }

/* ---------- ENGAGE — closing CTA card (cream gradient) ---------- */
.engage-card {
  background: linear-gradient(135deg, var(--cream-2), var(--paper));
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-6);
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.engage-card h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 var(--s-4);
}
.engage-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 var(--s-5);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.engage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
}
@media (max-width: 560px) {
  .engage-card { padding: var(--s-6) var(--s-4); }
  .engage-card h2 { font-size: 1.4rem; }
}

/* ============================================================
   GOVERNANCE — section 5 components
   Added 2026-05-23 for /v4/governance.html. Cache: ?v=20260523-03
   New: .gov-grid + .gov-card (used for 4 Committees and 6 Directors).
   Reuses everything else from locked styles.
   ============================================================ */

.gov-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.gov-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.gov-card {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.gov-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gold);
}
.gov-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -20px rgba(13,27,46,0.15);
}
.gov-card .label { color: var(--teal); }
.gov-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.3;
  margin: var(--s-2) 0 0;
}
.gov-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Director cards a half-step taller in hierarchy: function name as eyebrow,
   then a serif role line, then a scope sentence. */
.gov-card.director .role-line {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 1024px) {
  .gov-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .gov-grid, .gov-grid.cols-3 { grid-template-columns: 1fr; }
}

/* Statutory anchor list inside hero-panel — overrides default teal dot
   to a small gold rule for governance-style discipline */
.hero-panel.statutory ul li::before {
  width: 6px;
  height: 2px;
  border-radius: 0;
  background: var(--gold);
  top: 0.7em;
}

/* ============================================================
   MOBILE DRAWER ENHANCEMENT
   Added 2026-05-24 per FM review. Drawer fills remaining viewport
   so the menu feels intentional rather than a thin dropdown.
   Pairs with the locked .nav.is-open .nav-links rule at line 316,
   adding only min-height to what is already a max-height drawer.
   ============================================================ */
@media (max-width: 1024px) {
  .nav.is-open .nav-links {
    min-height: calc(100vh - 76px);
  }
}
