@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Spectral:ital,wght@0,300;0,400;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

/*
╔══════════════════════════════════════════════════════════════════╗
║  TABHI DESIGN SYSTEM v12                                         ║
║  The Africa Barbados Heritage Initiative                         ║
╠══════════════════════════════════════════════════════════════════╣
║  COLOUR STRATEGY                                                 ║
║  Canvas: clean institutional ivory — not amber, not parchment   ║
║  Navy: authority layer — hero, headers, dark sections           ║
║  Gold: accent only — dividers, CTAs, labels                     ║
║  Green: lineage/archive contexts only                            ║
╚══════════════════════════════════════════════════════════════════╝
*/

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── TOKENS ──────────────────────────────────────────────────── */
:root {
  /* Canvas — clean institutional ivory */
  --canvas:       #F7F5F0;
  --canvas-warm:  #F0EDE6;
  --canvas-dark:  #E8E4DB;

  /* Navy — authority layer */
  --navy:         #1C2B3A;
  --navy-mid:     #243447;
  --navy-deep:    #131E2A;

  /* Gold — accent */
  --gold:         #A8893A;
  --gold-light:   #C9A84C;
  --gold-dim:     rgba(168,137,58,0.15);

  /* Green — lineage/archive only */
  --green:        #1E3D2F;
  --green-mid:    #2A5240;
  --green-pale:   #EBF0EC;

  /* Ink */
  --ink:          #1A1A1A;
  --ink-mid:      #3D3D3D;
  --ink-muted:    #888888;

  /* Rules */
  --rule:         #DDD9D0;
  --rule-dark:    rgba(255,255,255,0.08);

  /* On dark */
  --white-90:     rgba(255,255,255,0.90);
  --white-55:     rgba(255,255,255,0.55);
  --white-25:     rgba(255,255,255,0.25);
  --white-10:     rgba(255,255,255,0.10);

  /* Typography */
  --f-display:  'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --f-serif:    'EB Garamond', Georgia, serif;
  --f-spectral: 'Spectral', Georgia, serif;
  --f-sans:     'Inter', system-ui, sans-serif;

  /* Spacing */
  --s-4:    4px;
  --s-8:    8px;
  --s-12:   12px;
  --s-16:   16px;
  --s-24:   24px;
  --s-32:   32px;
  --s-40:   40px;
  --s-64:   64px;
  --s-96:   96px;
  --s-144:  144px;

  /* Grid */
  --gutter: 56px;

  /* Elevation */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.14), 0 8px 24px rgba(0,0,0,0.08);

  /* Motion */
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:   cubic-bezier(0.0, 0.0, 0.2, 1.0);
}

/* ─── BASE DARK LAYER ─────────────────────────────────────────── */
/* Plain dark base — gradient only appears on navy sections below */
html {
  background: #0e1720;
  min-height: 100%;
  overflow-x: hidden;
}

/* ─── BODY ───────────────────────────────────────────────────── */
body {
  font-family: var(--f-serif);
  background: transparent;
  color: var(--ink);
  line-height: 1.7;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── FIXED NOISE TEXTURE ────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ─── NOISE TEXTURE on navy surfaces ─────────────────────────── */
.s-navy::before, .s-navy-deep::before, .s-navy-mid::before,
.page-header::before, .country-hero::before, .site-footer::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ─── FINE NOISE TEXTURE on canvas surfaces ──────────────────── */
/* Single layer, 4% opacity — felt not seen */
.s-canvas, .s-warm, .s-dark,
.lp-b__text:not(.lp-b__text--navy),
.site-footer {
  position: relative;
}
.s-canvas::before, .s-warm::before, .s-dark::before,
.site-footer::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}
.s-canvas > *, .s-warm > *, .s-dark > *,
.site-footer > * { position: relative; z-index: 1; }

/* ─── SURFACE BACKGROUNDS ─────────────────────────────────────── */
/* Coming-soon gradient on every navy surface */
.s-navy,
.s-navy-deep,
.s-navy-mid,
.page-header,
.country-hero,
.lp-b__text--navy,
.site-nav,
.site-footer,
.diaspora {
  background:
    radial-gradient(ellipse 85% 60% at 50% 0%,   #243447 0%, transparent 70%),
    radial-gradient(ellipse 65% 50% at 10% 100%,  #1a2f42 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 90% 90%,   #1e3040 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 75% 10%,   #1C2B3A 0%, transparent 55%),
    #0e1720 !important;
}

/* Nav keeps its frosted glass treatment on top of gradient */
.site-nav {
  background:
    radial-gradient(ellipse 85% 60% at 50% 0%,   rgba(36,52,71,0.9) 0%, transparent 70%),
    radial-gradient(ellipse 65% 50% at 10% 100%,  rgba(26,47,66,0.8) 0%, transparent 65%),
    rgba(13, 19, 26, 0.88) !important;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}
.site-nav.elevated {
  background: rgba(13, 19, 26, 0.97) !important;
}

.s-canvas     { background: var(--canvas); }
.s-warm       { background: var(--canvas-warm); }
.s-dark       { background: var(--canvas-dark); }
.s-green      { background: var(--green); }

/* ─── SCROLL REVEAL ANIMATION ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children inside a reveal container */
.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal-group.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0ms; }
.reveal-group.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 80ms; }
.reveal-group.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 160ms; }
.reveal-group.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 240ms; }
.reveal-group.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay: 320ms; }
.reveal-group.visible > *:nth-child(6)  { opacity:1; transform:none; transition-delay: 400ms; }
.reveal-group.visible > *:nth-child(7)  { opacity:1; transform:none; transition-delay: 480ms; }
.reveal-group.visible > *:nth-child(8)  { opacity:1; transform:none; transition-delay: 560ms; }
.reveal-group.visible > *:nth-child(9)  { opacity:1; transform:none; transition-delay: 640ms; }
.reveal-group.visible > *:nth-child(10) { opacity:1; transform:none; transition-delay: 720ms; }
.reveal-group.visible > *:nth-child(11) { opacity:1; transform:none; transition-delay: 800ms; }
.reveal-group.visible > *:nth-child(12) { opacity:1; transform:none; transition-delay: 880ms; }
.reveal-group.visible > *:nth-child(13) { opacity:1; transform:none; transition-delay: 960ms; }
.reveal-group.visible > *:nth-child(14) { opacity:1; transform:none; transition-delay: 1040ms; }
.reveal-group.visible > *:nth-child(15) { opacity:1; transform:none; transition-delay: 1120ms; }
.reveal-group.visible > *:nth-child(16) { opacity:1; transform:none; transition-delay: 1200ms; }
/* Safety net: any item beyond the staggered set still reveals — prevents
   invisible cards if a reveal-group ever grows past 16 children. */
.reveal-group.visible > * { opacity:1; transform:none; }

/* ─── NAVIGATION ──────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(13, 19, 26, 0.82);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--rule-dark);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-nav.elevated {
  background: rgba(13, 19, 26, 0.95);
  box-shadow: var(--shadow-md);
}
.nav-logo { height: 56px; width: auto; display: block; }
.nav-links {
  display: flex; align-items: center;
  gap: var(--s-40); list-style: none;
}
.nav-links a {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-90);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gold);
}

/* Dropdown */
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 4px; }
.nav-item > a > span {
  font-size: 7px; opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}
.nav-item:hover > a > span,
.nav-item:focus-within > a > span { opacity: 1; transform: rotate(180deg); }
/* Invisible bridge fills hover gap */
.nav-item::after {
  content: ''; position: absolute;
  top: 100%; left: -16px; right: -16px; height: 8px;
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px); left: -16px;
  background: rgba(247,245,240,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  min-width: 200px;
  padding: var(--s-8) 0;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  box-shadow: var(--shadow-lg);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; pointer-events: all; transform: none;
}
.nav-dropdown a {
  display: block; padding: 10px 20px;
  font-family: var(--f-sans); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mid) !important;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a::after { display: none !important; }
.nav-dropdown a:hover { background: var(--canvas-warm); color: var(--ink) !important; }

/* Participate CTA */
.nav-participate {
  font-family: var(--f-sans) !important; font-weight: 500 !important;
  font-size: 11px !important; letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--navy-deep) !important; background: var(--gold) !important;
  padding: 10px 24px !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.nav-participate:hover {
  background: var(--gold-light) !important;
  box-shadow: var(--shadow-sm) !important;
}
.nav-participate::after { display: none !important; }

/* ─── LAYOUT PATTERNS ─────────────────────────────────────────── */
.lp-b {
  display: grid; grid-template-columns: 8fr 4fr; min-height: 560px;
}
.lp-b--flip { grid-template-columns: 4fr 8fr; }
.lp-b--balanced { grid-template-columns: 7fr 5fr; }
.lp-b--flip-balanced { grid-template-columns: 5fr 7fr; }

.lp-b__img {
  position: relative;
  overflow: visible;
  background: transparent;
  display: flex;
  flex-direction: column;
}
.lp-b__img > img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover; object-position: center top;
  display: block;
  border: 1px solid var(--rule);
}
.lp-b__img:hover > img { transform: none; }
.lp-b__caption {
  display: block;
  padding: var(--s-12) var(--s-16) 0;
  font-family: var(--f-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  background: var(--canvas);
  border-top: 1px solid var(--rule);
  margin-top: 0;
}
.lp-b__caption--light {
  color: rgba(255,255,255,0.65);
  background: transparent;
  border-top-color: rgba(255,255,255,0.15);
}
.lp-b__caption em {
  font-family: var(--f-spectral); font-weight: 300; font-style: italic;
  font-size: 11px; letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-mid);
  display: block;
  margin-top: 4px;
  padding-bottom: var(--s-12);
}
/* Restructure lp-b layout: image and caption stack vertically */
.lp-b .lp-b__img { position: relative; overflow: visible; }
.lp-b__text {
  padding: var(--s-96) var(--s-64);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--canvas);
}
.lp-b__text--navy {
  background: rgba(13, 19, 26, 0.88);
}
.lp-b__text--warm { background: var(--canvas-warm); }

.lp-c { padding: var(--s-64) var(--gutter); }
.lp-c__inner { max-width: 760px; }
.lp-c--wide .lp-c__inner { max-width: 1040px; }

.lp-d { display: grid; grid-template-columns: 280px 1fr; min-height: 600px; }
.lp-d__index {
  background: var(--navy); padding: var(--s-64) var(--s-40);
  border-right: 1px solid var(--rule-dark); overflow-y: auto;
}
.lp-d__doc { padding: var(--s-64); background: var(--canvas); overflow-y: auto; }

/* ─── TYPOGRAPHY SCALE ─────────────────────────────────────────── */
.t-display {
  font-family: var(--f-display); font-weight: 300; font-style: italic;
  font-size: clamp(64px, 8.5vw, 128px);
  line-height: 0.93; letter-spacing: -0.02em; color: var(--white-90);
}
.t-display em { font-style: normal; color: var(--gold-light); }

.t-chapter {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(40px, 4.5vw, 68px);
  line-height: 1.05; letter-spacing: -0.01em; color: var(--ink);
}
.t-chapter--light { color: var(--white-90); }
.t-chapter em { font-style: italic; color: var(--gold); }

.t-heading {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15; color: var(--ink);
}
.t-heading--light { color: var(--white-90); }

.t-sub {
  font-family: var(--f-display); font-weight: 300; font-style: italic;
  font-size: clamp(20px, 2vw, 28px); line-height: 1.3; color: var(--ink-mid);
}

.t-body {
  font-family: var(--f-serif); font-size: 18px;
  line-height: 1.85; color: var(--ink-mid);
}
.t-body--light { color: var(--white-55); }
.t-body p + p { margin-top: var(--s-16); }

.t-meta {
  font-family: var(--f-sans); font-weight: 300;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted);
}
.t-meta--gold { color: var(--gold); }
.t-meta--light { color: var(--white-25); }

.t-caption {
  font-family: var(--f-sans); font-weight: 300;
  font-size: 12px; letter-spacing: 0.06em; line-height: 1.5; color: var(--ink-muted);
}

/* ─── LABELS ──────────────────────────────────────────────────── */
.label {
  font-family: var(--f-sans); font-size: 10px; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: var(--s-16);
}
.label--light { color: rgba(201,168,76,0.80); }
.label--muted { color: var(--ink-muted); }

/* ─── GOLD RULE ───────────────────────────────────────────────── */
.g-rule { display: block; width: 48px; height: 1px; background: var(--gold); margin-bottom: var(--s-24); }
.g-rule--full { width: 100%; background: var(--rule); margin: 0; }
.g-rule--full-dark { width: 100%; height: 1px; background: var(--rule-dark); }

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-block; font-family: var(--f-sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 14px 32px; cursor: pointer; border: none; text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--canvas); }
.btn-primary:hover { background: var(--navy-mid); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--canvas); }
.btn-gold:hover { background: var(--gold-light); box-shadow: var(--shadow-md); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--canvas); box-shadow: var(--shadow-sm); }
.btn-ghost { border: 1px solid var(--rule-dark); color: var(--white-55); background: transparent; }
.btn-ghost:hover { border-color: var(--white-25); color: var(--white-90); }

/* ─── TEXT LINKS ──────────────────────────────────────────────── */
.t-link {
  font-family: var(--f-sans); font-size: 11px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--rule); padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.t-link:hover { border-color: var(--gold); color: var(--gold); }
.t-link--light { color: var(--white-55); border-color: var(--white-10); }
.t-link--light:hover { color: var(--white-90); border-color: var(--gold-light); }

/* ─── RECORD TABLE ────────────────────────────────────────────── */
.record { border-top: 1px solid var(--rule); margin-top: var(--s-40); }
.record--dark { border-top-color: var(--rule-dark); }
.record__row {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 0 var(--s-40); border-bottom: 1px solid var(--rule);
  padding: var(--s-16) 0; align-items: baseline;
}
.record--dark .record__row { border-bottom-color: var(--rule-dark); }
.record__key {
  font-family: var(--f-sans); font-size: 10px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
}
.record__key--light { color: var(--white-25); }
.record__val { font-family: var(--f-serif); font-size: 17px; color: var(--ink); line-height: 1.4; }
.record__val--light { color: var(--white-90); }
.record__val--gold { color: var(--gold-light); }

/* ─── ENTRY LIST ──────────────────────────────────────────────── */
.entry-list { border-top: 1px solid var(--rule); }
.entry {
  display: grid; grid-template-columns: 72px 1fr auto;
  gap: 0 var(--s-40); align-items: start;
  padding: var(--s-24) 0; border-bottom: 1px solid var(--rule);
  transition: background 0.15s;
}
.entry:hover { background: rgba(221,217,208,0.2); }
.entry__n {
  font-family: var(--f-display); font-weight: 300; font-size: 28px;
  color: var(--rule); line-height: 1; padding-top: 4px; text-align: right;
}
.entry__title {
  font-family: var(--f-display); font-weight: 400; font-size: 20px;
  color: var(--ink); line-height: 1.25; margin-bottom: 6px;
}
.entry__desc {
  font-family: var(--f-serif); font-size: 15px; line-height: 1.65; color: var(--ink-muted);
}
.entry__type {
  font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px;
}
.entry--lead {
  grid-template-columns: 1fr; padding: var(--s-40) 0;
  border-bottom: 2px solid var(--gold);
}
.entry--lead .entry__title { font-size: 26px; margin-bottom: 12px; }

/* ─── TIMELINE ────────────────────────────────────────────────── */
.timeline { }
.timeline__item {
  display: grid; grid-template-columns: 100px 1px 1fr;
  gap: 0 var(--s-40); padding-bottom: var(--s-40);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__year {
  font-family: var(--f-display); font-weight: 300; font-size: 20px;
  color: var(--gold); text-align: right; padding-top: 2px; line-height: 1;
}
.timeline__spine { background: var(--rule); position: relative; }
.timeline__spine::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.timeline--dark .timeline__spine { background: var(--rule-dark); }
.timeline__event {
  font-family: var(--f-display); font-weight: 400; font-size: 19px;
  color: var(--ink); line-height: 1.3; margin-bottom: 6px;
}
.timeline--dark .timeline__event { color: var(--white-90); }
.timeline__detail {
  font-family: var(--f-sans); font-weight: 300; font-size: 13px;
  letter-spacing: 0.02em; line-height: 1.65; color: var(--ink-muted);
}
.timeline--dark .timeline__detail { color: var(--white-25); }

/* ─── PULLQUOTE ───────────────────────────────────────────────── */
.pullquote {
  font-family: var(--f-display); font-weight: 300; font-style: italic;
  font-size: clamp(22px, 2.5vw, 34px); line-height: 1.5; color: var(--white-90);
}
.pullquote--dark { color: var(--ink); font-size: clamp(20px, 2.2vw, 30px); }
.pullquote__attr {
  font-family: var(--f-sans); font-weight: 300; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white-25); margin-top: var(--s-24); display: block;
}
.pullquote__attr--dark { color: var(--ink-muted); }

/* ─── MILESTONE STRIP ─────────────────────────────────────────── */
.milestones { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--rule-dark); }
.milestone {
  padding: var(--s-40) var(--s-40) var(--s-64);
  border-right: 1px solid var(--rule-dark);
}
.milestone:last-child { border-right: none; }
.milestone__year {
  font-family: var(--f-display); font-weight: 300; font-size: 13px;
  color: var(--gold-light); letter-spacing: 0.08em; margin-bottom: var(--s-16); display: block;
}
.milestone__title {
  font-family: var(--f-display); font-weight: 400; font-size: 19px;
  color: var(--white-90); line-height: 1.3; margin-bottom: 10px;
}
.milestone__body {
  font-family: var(--f-sans); font-weight: 300; font-size: 13px;
  letter-spacing: 0.02em; line-height: 1.6; color: var(--white-55);
}

/* ─── ACCESS PROTOCOL ─────────────────────────────────────────── */
.access-item {
  display: grid; grid-template-columns: 200px 1px 1fr auto;
  gap: 0 var(--s-40); align-items: start;
  padding: var(--s-40) 0; border-bottom: 1px solid var(--rule-dark);
  transition: background 0.2s;
}
.access-item:first-child { border-top: 1px solid var(--rule-dark); }
.access-item:hover { background: rgba(255,255,255,0.02); }
.access-who {
  font-family: var(--f-display); font-weight: 300; font-style: italic;
  font-size: 20px; color: var(--white-90); line-height: 1.2; padding-top: 2px;
}
.access-rule { background: var(--rule-dark); width: 1px; align-self: stretch; }
.access-desc {
  font-family: var(--f-sans); font-weight: 300; font-size: 14px;
  letter-spacing: 0.02em; line-height: 1.65; color: var(--white-55);
}
.access-cta { padding-top: 3px; white-space: nowrap; }

/* ─── BOARD GRID — see board.html for full styles ─────────────── */

/* ─── PAGE HEADER ─────────────────────────────────────────────── */
.page-header {
  background: rgba(13, 19, 26, 0.72);
  padding: var(--s-144) var(--gutter) var(--s-96);
  border-bottom: 1px solid var(--rule-dark); position: relative;
}
.page-header::after {
  content: ''; position: absolute; bottom: -1px; left: var(--gutter);
  width: 56px; height: 2px; background: var(--gold);
}
.page-header__meta {
  font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--s-16); display: block;
}
.page-header__title {
  font-family: var(--f-display); font-weight: 300; font-style: italic;
  font-size: clamp(48px, 7vw, 88px); color: var(--white-90);
  line-height: 0.98; max-width: 820px;
}

/* ─── COUNTRY HERO ────────────────────────────────────────────── */
.country-hero {
  background: rgba(13, 19, 26, 0.78);
  padding: var(--s-144) var(--gutter) var(--s-96);
  border-bottom: 2px solid var(--gold); position: relative;
}
.country-hero__flag { font-size: 52px; margin-bottom: var(--s-24); display: block; line-height: 1; }
.country-hero__meta {
  font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--s-16);
}
.country-hero__title {
  font-family: var(--f-display); font-weight: 300; font-style: italic;
  font-size: clamp(44px, 6vw, 80px); color: var(--white-90);
  line-height: 1.02; max-width: 700px;
}
.country-hero__sub {
  font-family: var(--f-sans); font-weight: 300; font-size: 15px;
  color: var(--white-55); margin-top: var(--s-24); max-width: 560px; line-height: 1.7;
}

/* ─── VIDEO ───────────────────────────────────────────────────── */
.video-wrap {
  position: relative; cursor: pointer; overflow: hidden;
  background: var(--navy-deep);
}
.video-wrap video, .video-wrap img {
  width: 100%; display: block; aspect-ratio: 16/9;
  object-fit: cover; object-position: center top;
}
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s;
}
.video-play__btn {
  width: 64px; height: 64px;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.video-wrap:hover .video-play__btn {
  border-color: var(--gold-light);
  background: rgba(168,137,58,0.15);
  transform: scale(1.08);
  box-shadow: 0 0 0 8px rgba(168,137,58,0.08);
}
.video-cap {
  display: block;
  padding: var(--s-12) var(--s-16) var(--s-16);
  font-family: var(--f-sans); font-weight: 500;
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  background: var(--canvas);
  border-top: 1px solid var(--rule);
}
.video-cap em {
  font-family: var(--f-spectral); font-weight: 300; font-style: italic;
  font-size: 11px; letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-mid);
  display: block;
  margin-top: 4px;
}

/* ─── SPONSORS MARQUEE ────────────────────────────────────────── */
.sponsors {
  padding: var(--s-64) 0 var(--s-96);
  background: var(--canvas);
  border-top: 1px solid var(--rule);
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
}
.sponsors__label {
  font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-muted);
  text-align: center; margin-bottom: var(--s-40);
}
.sponsors__wrap { overflow: hidden; position: relative; }
.sponsors__wrap::before, .sponsors__wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 120px; z-index: 2; pointer-events: none;
}
.sponsors__wrap::before { left: 0; background: linear-gradient(90deg, var(--canvas), transparent); }
.sponsors__wrap::after  { right: 0; background: linear-gradient(90deg, transparent, var(--canvas)); }
.sponsors__track {
  display: flex; align-items: center; gap: 160px;
  width: max-content;
  animation: marquee 40s linear infinite;
  padding: 0 80px;
}
.sponsors__track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.sponsors__track a { display: flex; align-items: center; flex-shrink: 0; }
.sponsors__track img {
  height: 80px; width: auto; object-fit: contain; max-width: 200px;
  opacity: 0.55; filter: grayscale(100%);
  transition: opacity 0.25s, filter 0.25s, transform 0.25s;
}
.sponsors__track img:hover { opacity: 0.95; filter: grayscale(0%); transform: scale(1.05); }

/* ─── DIASPORA MAP ────────────────────────────────────────────── */
.diaspora { padding: var(--s-96) var(--gutter); background: var(--navy); }
.diaspora-locations {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--rule-dark); margin-top: var(--s-40);
}
.diaspora-loc {
  padding: var(--s-24) var(--s-40); background: var(--navy);
  border-left: 2px solid transparent; transition: border-color 0.2s, background 0.2s;
}
.diaspora-loc--origin { border-left-color: var(--gold); }
.diaspora-loc:hover { background: var(--navy-mid); }
.diaspora-loc__name {
  font-family: var(--f-display); font-weight: 300; font-size: 18px;
  color: var(--white-90); margin-bottom: 4px;
}
.diaspora-loc__note {
  font-family: var(--f-sans); font-weight: 300; font-size: 12px;
  color: var(--white-25); letter-spacing: 0.04em;
}

/* ─── PARTNERS GRID ───────────────────────────────────────────── */
.partners-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--rule); }
.partner-card {
  background: var(--canvas); padding: var(--s-40) var(--s-40) var(--s-64);
  display: flex; flex-direction: column;
  transition: box-shadow 0.25s var(--ease);
}
.partner-card:hover { box-shadow: var(--shadow-md); position: relative; z-index: 1; }
.partner-card__logo {
  height: 48px; width: auto; object-fit: contain;
  margin-bottom: var(--s-24); opacity: 0.75; filter: grayscale(30%);
  transition: opacity 0.2s, filter 0.2s; align-self: flex-start;
}
.partner-card:hover .partner-card__logo { opacity: 1; filter: none; }
.partner-card__name { font-family: var(--f-display); font-weight: 400; font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.partner-card__desc { font-family: var(--f-sans); font-weight: 300; font-size: 13px; line-height: 1.65; color: var(--ink-muted); flex: 1; }

/* ─── FORM ────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 2px; }
.form__label {
  font-family: var(--f-sans); font-size: 10px; font-weight: 400;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--white-55); margin-bottom: 8px; display: block;
}
.form__input, .form__select, .form__textarea {
  font-family: var(--f-serif); font-size: 17px; color: var(--white-90);
  background: transparent; border: none; border-bottom: 1px solid var(--rule-dark);
  padding: 12px 0; outline: none; transition: border-color 0.2s; width: 100%;
}
.form__input:focus, .form__select:focus, .form__textarea:focus { border-bottom-color: var(--gold); }
.form__input::placeholder, .form__textarea::placeholder { color: var(--white-25); }
.form__select option { background: var(--navy); color: var(--white-90); }
.form__textarea { resize: vertical; min-height: 88px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-40); }
.form__field { display: flex; flex-direction: column; }
.form__note { font-family: var(--f-sans); font-weight: 300; font-size: 12px; color: var(--white-25); margin-top: var(--s-16); line-height: 1.6; }

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 3px solid var(--gold);
  position: relative;
}
.footer-upper {
  display: grid;
  grid-template-columns: 300px 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--rule-dark);
}
.footer-brand { padding: var(--s-64) var(--s-64) var(--s-64) var(--gutter); }
.footer-logo { height: 56px; width: auto; display: block; margin-bottom: var(--s-24); }
.footer-social { display: flex; gap: var(--s-16); margin-bottom: var(--s-40); }
.footer-social a {
  font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.14em;
  color: var(--white-55); transition: color 0.2s;
}
.footer-social a:hover { color: #fff; }
.footer-subsidiary { }
.footer-subsidiary__label {
  font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; display: block;
}
.footer-subsidiary--badged .footer-subsidiary__inner {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.08); border-radius: 4px; padding: 8px 16px;
  box-shadow: var(--shadow-sm);
}
.footer-subsidiary--badged img { height: 36px; width: auto; opacity: 0.90; }
.footer-col { padding: var(--s-64) var(--s-40); }
.footer-col__title {
  font-family: var(--f-sans); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--s-24); display: block;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--s-16); }
.footer-links a {
  font-family: var(--f-sans); font-weight: 300; font-size: 14px;
  color: var(--white-55); transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-lower {
  padding: 20px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--s-16);
  border-top: 1px solid var(--rule-dark);
}
.footer-copy { font-family: var(--f-sans); font-weight: 300; font-size: 12px; letter-spacing: 0.04em; color: var(--white-25); }
.footer-legal { display: flex; gap: var(--s-24); }
.footer-legal a { font-family: var(--f-sans); font-weight: 300; font-size: 12px; color: var(--white-25); transition: color 0.2s; }
.footer-legal a:hover { color: #fff; }
.footer-credit { font-family: var(--f-sans); font-size: 12px; color: var(--white-25); }
.footer-credit a { color: var(--gold-light); font-weight: 500; }

/* ─── LEGAL ───────────────────────────────────────────────────── */
.legal h2 { font-family: var(--f-display); font-weight: 400; font-size: 24px; color: var(--ink); margin: var(--s-40) 0 var(--s-16); }
.legal p, .legal li { font-family: var(--f-serif); font-size: 17px; line-height: 1.82; color: var(--ink-mid); margin-bottom: var(--s-16); }
.legal ul { margin: 0 0 var(--s-16) 22px; }
.legal a { color: var(--navy); }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .footer-upper { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; border-bottom: 1px solid var(--rule); }
  .partners-grid { grid-template-columns: repeat(2,1fr); }
  .diaspora-locations { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 960px) {
  :root { --gutter: 28px; --s-96: 64px; --s-144: 96px; }
  .site-nav { padding: 0 var(--gutter); }
  .nav-dropdown { display: none; }
  .lp-b, .lp-b--flip, .lp-b--balanced, .lp-b--flip-balanced { grid-template-columns: 1fr; }
  .lp-b__img { height: 340px; }
  .lp-b--flip .lp-b__img, .lp-b--flip-balanced .lp-b__img { order: -1; }
  .lp-b__text { padding: var(--s-64) var(--gutter); }
  .lp-c { padding: var(--s-40) var(--gutter); }
  .lp-d { grid-template-columns: 1fr; }
  .lp-d__index { display: none; }
  .milestones { grid-template-columns: 1fr; }
  .milestone { border-right: none; border-bottom: 1px solid var(--rule-dark); }
  .access-item { grid-template-columns: 1fr; gap: var(--s-16); }
  .access-rule { display: none; }
  .partners-grid { grid-template-columns: 1fr; }
  .diaspora-locations { grid-template-columns: 1fr; }
  .footer-upper { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-col { border-bottom: 1px solid var(--rule); }
  .footer-lower { flex-direction: column; align-items: flex-start; gap: 10px; }
  .page-header { padding: 120px var(--gutter) var(--s-64); }
  .page-header::after { left: var(--gutter); }
  .country-hero { padding: 120px var(--gutter) var(--s-64); }
  .record__row { grid-template-columns: 1fr; gap: 4px; }
  .timeline__item { grid-template-columns: 70px 1px 1fr; gap: 0 var(--s-24); }
  .form__row { grid-template-columns: 1fr; }
  .reveal { opacity: 1; transform: none; }
  .reveal-group > * { opacity: 1; transform: none; }
}

/* ─── HOME HERO (full-bleed video) ─────────────────────────────── */
.home-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  background: var(--navy-deep);
}
.home-hero__video {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.home-hero__video iframe,
.home-hero__poster {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100%;
  min-width: calc(100vh * 16 / 9);
  transform: translate(-50%, -50%);
  border: 0;
}
.home-hero__poster {
  object-fit: cover;
  display: none;
}
.home-hero__shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
  cursor: default;
  pointer-events: auto;
}
.home-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(19,30,42,0.55) 0%, rgba(19,30,42,0.20) 35%, rgba(19,30,42,0.85) 100%);
}
.home-hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) var(--s-96);
  max-width: 1280px;
  margin: 0 auto;
}
.home-hero__meta {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--s-24);
}
.home-hero__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.home-hero__title em {
  font-style: italic;
  color: var(--gold-light);
}
.home-hero__sub {
  font-family: var(--f-spectral);
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin-top: var(--s-32);
}
.home-hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
}
/* prefers-reduced-motion: replace iframe with static poster */
@media (prefers-reduced-motion: reduce) {
  .home-hero__video iframe { display: none; }
  .home-hero__poster { display: block; }
}
@media (max-width: 720px) {
  .home-hero { height: 80vh; min-height: 520px; }
  .home-hero__content { padding-bottom: var(--s-64); }
}

/* ─── EDITORIAL — newspaper redesign module (v10.3) ─────────────── */
/* Hybrid: Sample A's float-image approach + Sample C's typography  */
/* Tier 2: drop caps + caps subheads + italic pull quotes           */

.ed-article {
  background: var(--canvas);
  max-width: 100%;
  margin: 0;
  padding: var(--s-144) var(--s-32) var(--s-96);
}
.ed-article > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.ed-section {
  margin-bottom: var(--s-64);
}
.ed-section:last-child {
  margin-bottom: 0;
}
.ed-section::after {
  content: '';
  display: block;
  clear: both;
}
.ed-kicker {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--s-16);
  display: block;
}
.ed-h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.10;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-40) 0;
  text-wrap: balance;
  max-width: 18ch;
}
@supports not (text-wrap: balance) {
  .ed-h2 { max-width: 22ch; }
}
.ed-h2 em {
  font-style: italic;
  color: var(--gold-deep);
}
.ed-prose p {
  font-family: var(--f-spectral);
  font-size: 19px;
  line-height: 1.78;
  color: var(--ink);
  margin: 0 0 var(--s-24) 0;
}
/* Drop cap on first paragraph of each section */
.ed-prose > p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-weight: 400;
  float: left;
  font-size: 4em;
  line-height: 0.88;
  margin: 6px 10px 0 0;
  color: var(--ink);
}
/* Caps subhead breaking up sections */
.ed-subhead {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin: var(--s-40) 0 var(--s-16) 0;
  padding-top: var(--s-16);
  border-top: 1px solid var(--rule);
  display: block;
  clear: both;
}

/* Asymmetric float images — magazine signature */
.ed-fig-right {
  float: right;
  width: 42%;
  margin: 8px 0 var(--s-24) var(--s-40);
  shape-outside: margin-box;
}
.ed-fig-left {
  float: left;
  width: 42%;
  margin: 8px var(--s-40) var(--s-24) 0;
  shape-outside: margin-box;
}
.ed-fig-full {
  margin: var(--s-64) 0;
  clear: both;
}
.ed-fig-right img,
.ed-fig-left img,
.ed-fig-full img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}
.ed-fig-right figcaption,
.ed-fig-left figcaption,
.ed-fig-full figcaption {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-top: var(--s-12);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--rule);
}
.ed-fig-right figcaption em,
.ed-fig-left figcaption em,
.ed-fig-full figcaption em {
  font-family: var(--f-spectral);
  font-weight: 300;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-mid);
  display: block;
  margin-top: 4px;
  padding-bottom: var(--s-8);
}

/* Pull quote — italic with gold rule */
.ed-pullquote {
  margin: var(--s-64) auto;
  padding: var(--s-24) 0 var(--s-24) var(--s-40);
  border-left: 3px solid var(--gold);
  max-width: 800px;
  clear: both;
}
.ed-pullquote q {
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.25;
  color: var(--ink);
  display: block;
  margin: 0;
  quotes: "\201C" "\201D" "\2018" "\2019";
}
.ed-pullquote cite {
  display: block;
  margin-top: var(--s-24);
  font-family: var(--f-sans);
  font-weight: 500;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

/* Section divider — thin centered rule */
.ed-divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--s-96) auto;
  max-width: 120px;
}

/* Mobile — float collapses */
@media (max-width: 720px) {
  .ed-fig-right, .ed-fig-left {
    float: none;
    width: 100%;
    margin: var(--s-32) 0;
  }
  .ed-prose > p:first-of-type::first-letter {
    font-size: 4em;
  }
}

/* Restoration Note section — used on Bourne page */
.r-note {
  background: var(--canvas);
  padding: var(--s-96) var(--gutter);
  border-top: 1px solid var(--rule);
}
.r-note__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.r-note__head {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--s-64);
  margin-bottom: var(--s-64);
  align-items: start;
}
.r-figgroup {
  margin-bottom: var(--s-64);
}
.r-figgroup:last-child {
  margin-bottom: 0;
}
.r-pic {
  background: var(--canvas-warm);
  border: 1px solid var(--rule);
  padding: var(--s-12);
}
.r-pic img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
}
.r-pic figcaption {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-top: var(--s-12);
  padding-top: var(--s-8);
  border-top: 1px solid var(--rule);
}
.r-pic figcaption em {
  font-family: var(--f-spectral);
  font-weight: 300;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-mid);
  display: block;
  margin-top: 4px;
}
.r-divider {
  height: 1px;
  background: var(--rule);
  margin: var(--s-64) 0;
}
@media (max-width: 720px) {
  .r-note__head {
    grid-template-columns: 1fr;
  }
}

/* ─── Nav parent (non-clickable dropdown trigger) ─────────────── */
.nav-parent {
  cursor: pointer;
  user-select: none;
}
/* Touch / click toggle support — open class is added by JS for touch devices */
.nav-item.nav-item--open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* ─── Voyage interactive map (Our Story) ──────────────────────── */
.voyage {
  background: var(--canvas);
  padding: var(--s-96) var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.voyage__inner { max-width: 1200px; margin: 0 auto; }
.voyage__intro { max-width: 720px; margin-bottom: var(--s-40); }
.voyage__intro .ed-h2 { margin-bottom: var(--s-24); }
.voyage__intro p {
  font-family: var(--f-spectral);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}
.voyage__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-32);
  margin-bottom: var(--s-40);
  padding: var(--s-32) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.voyage__stat-value {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  color: var(--gold-deep);
  line-height: 1;
}
.voyage__stat-label {
  display: block;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-top: var(--s-12);
}
.voyage__map {
  width: 100%;
  height: 520px;
  border: 1px solid var(--rule);
  background: var(--canvas-warm);
  filter: saturate(0.85) contrast(1.05);
}
.voyage__map .leaflet-container { background: #e8e3d5; font-family: var(--f-sans); }
.voyage__map .leaflet-tile-pane { opacity: 0.85; }
.voyage__controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-24);
  align-items: center;
  margin-top: var(--s-24);
  padding: var(--s-16) var(--s-24);
  background: var(--canvas-warm);
  border: 1px solid var(--rule);
}
.voyage__btn {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: var(--s-12) var(--s-24);
  cursor: pointer;
  transition: background 200ms ease;
}
.voyage__btn:hover { background: var(--navy-deep); }
.voyage__progress {
  height: 2px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.voyage__progress-bar {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: var(--gold);
  transition: width 80ms linear;
}
.voyage__date {
  font-family: var(--f-spectral);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mid);
  white-space: nowrap;
}
.voyage-ship {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px rgba(201, 169, 97, 0.55), 0 0 0 4px rgba(201, 169, 97, 0.10);
}
.voyage__credit {
  margin-top: var(--s-16);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
  font-style: italic;
}
@media (max-width: 720px) {
  .voyage__stats { grid-template-columns: 1fr; gap: var(--s-16); }
  .voyage__map { height: 360px; }
  .voyage__controls { grid-template-columns: 1fr; gap: var(--s-12); }
  .voyage__date { white-space: normal; text-align: center; }
}

/* ─── Diaspora interactive map (Our People) ───────────────────── */
.diaspora-map {
  width: 100%;
  height: 540px;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--canvas-warm);
  filter: saturate(0.85) contrast(1.05);
}
.diaspora-map .leaflet-container { background: #e8e3d5; font-family: var(--f-sans); }
.diaspora-map .leaflet-tile-pane { opacity: 0.85; }
.diaspora-map .leaflet-popup-content-wrapper {
  background: var(--canvas);
  color: var(--ink);
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  padding: var(--s-12) var(--s-16);
  border-left: 3px solid var(--gold);
}
.diaspora-map .leaflet-popup-tip { background: var(--canvas); }
.diaspora-map .leaflet-popup-content {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 13px;
  line-height: 1.5;
}
.diaspora-map .leaflet-popup-content strong {
  display: block;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.diaspora-map .leaflet-popup-content em {
  font-family: var(--f-spectral);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mid);
  display: block;
}
.diaspora-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-32);
  margin-top: var(--s-24);
  padding: var(--s-16) 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.diaspora-legend__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
}
.diaspora-legend__dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 2px solid var(--gold);
}
.diaspora-legend__dot--origin {
  width: 14px; height: 14px;
  background: var(--gold);
  border: 2px solid var(--navy-deep);
}
.diaspora-credit {
  margin-top: var(--s-16);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}
.diaspora-credit a { color: rgba(255,255,255,0.72); text-decoration: underline; text-underline-offset: 2px; }
.diaspora-credit a:hover { color: rgba(255,255,255,0.92); }
@media (max-width: 720px) {
  .diaspora-map { height: 380px; }
  .diaspora-legend { flex-direction: column; gap: var(--s-12); }
}

/* ─── 404 / Page Not Found ────────────────────────────────────── */
.not-found {
  background: var(--canvas);
  padding: var(--s-144) var(--gutter) var(--s-96);
  border-bottom: 1px solid var(--rule);
}
.not-found__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.not-found__kicker {
  display: inline-block;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--s-24);
}
.not-found__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-40);
}
.not-found__title em { font-style: italic; color: var(--gold-deep); }
.not-found__body {
  font-family: var(--f-spectral);
  font-size: 19px;
  line-height: 1.78;
  color: var(--ink);
  max-width: 560px;
  margin: 0 auto var(--s-64);
}
.not-found__paths {
  margin: var(--s-64) 0;
  padding: var(--s-40) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.not-found__paths-label {
  display: block;
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: var(--s-24);
}
.not-found__paths-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-16) var(--s-40);
}
.not-found__paths-grid a {
  display: inline-block;
  margin: 8px 16px;
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 200ms ease, color 200ms ease;
}
.not-found__paths-grid a:hover {
  border-bottom-color: var(--gold);
  color: var(--gold-deep);
}
.not-found__contact {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 13px;
  color: var(--ink-mid);
  margin-top: var(--s-40);
  font-style: italic;
}
.not-found__contact a { color: var(--gold-deep); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
@media (max-width: 720px) {
  .not-found { padding: var(--s-96) var(--gutter) var(--s-64); }
  .not-found__paths-grid { flex-direction: column; gap: var(--s-12); }
}

/* ─── Gallery (gallery.html) ──────────────────────────────────── */
.g-section { padding: var(--s-64) var(--gutter) var(--s-96); background: var(--canvas); }
.g-section__inner { max-width: 1280px; margin: 0 auto; }

/* Toggle bar */
.g-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  background: var(--canvas-warm);
  border: 1px solid var(--rule);
  padding: 4px;
  margin-bottom: var(--s-40);
  gap: 4px;
}
.g-toggle__btn {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink-mid);
  border: 0;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.g-toggle__btn:hover { color: var(--ink); }
.g-toggle__btn.is-active {
  background: var(--navy);
  color: #fff;
}
.g-toggle__count {
  font-family: var(--f-spectral);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.7;
}

/* Grids */
.g-grid {
  display: none;
  column-count: 4;
  column-gap: var(--s-16);
}
.g-grid.is-active { display: block; }
.g-grid[hidden] { display: none !important; }
@media (max-width: 1100px) { .g-grid { column-count: 3; } }
@media (max-width: 760px)  { .g-grid { column-count: 2; } }
@media (max-width: 460px)  { .g-grid { column-count: 1; } }

/* Tile */
.g-tile {
  position: relative;
  display: block;
  width: 100%;
  background: var(--canvas-warm);
  border: 1px solid var(--rule);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
  margin: 0 0 var(--s-16);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.g-tile[hidden] { display: none !important; }
.g-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.14); }
.g-tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 600ms var(--ease);
}
.g-tile:hover img { transform: scale(1.04); }

.g-tile__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-32) var(--s-16) var(--s-12);
  background: linear-gradient(0deg, rgba(13,19,26,0.92) 0%, rgba(13,19,26,0.55) 60%, rgba(13,19,26,0) 100%);
  color: #fff;
  text-align: left;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.g-tile:hover .g-tile__overlay,
.g-tile:focus .g-tile__overlay { opacity: 1; }
.g-tile__title {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: #fff;
}
.g-tile__credit {
  display: block;
  margin-top: 4px;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.78);
}
.g-tile--vid .g-tile__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(13,19,26,0.78);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 200ms ease, background 200ms ease;
}
.g-tile--vid .g-tile__play svg { margin-left: 3px; }
.g-tile--vid:hover .g-tile__play { transform: translate(-50%, -50%) scale(1.08); background: rgba(13,19,26,0.92); }

/* Lightbox */
.g-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(13,19,26,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-40);
}
.g-lightbox.is-open { display: flex; }
.g-lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  max-height: 100%;
}
.g-lightbox__media {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.g-lightbox__media img,
.g-lightbox__media video {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  display: block;
  background: #000;
}
.g-lightbox__caption {
  margin-top: var(--s-24);
  text-align: center;
  max-width: 720px;
}
.g-lightbox__title {
  display: block;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.g-lightbox__credit {
  display: block;
  font-family: var(--f-spectral);
  font-style: italic;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}
.g-lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  font-weight: 300;
  transition: opacity 200ms ease;
  opacity: 0.7;
}
.g-lightbox__close:hover { opacity: 1; }
.g-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  font-weight: 300;
  transition: background 200ms ease;
}
.g-lightbox__nav:hover { background: rgba(255,255,255,0.14); }
.g-lightbox__nav--prev { left: 24px; }
.g-lightbox__nav--next { right: 24px; }

@media (max-width: 720px) {
  .g-grid { column-gap: var(--s-8); }
  .g-tile { margin-bottom: var(--s-8); }
  .g-tile__overlay { padding: var(--s-16) var(--s-12) var(--s-8); }
  .g-tile__title { font-size: 13px; }
  .g-tile__credit { font-size: 9px; }
  .g-lightbox { padding: var(--s-16); }
  .g-lightbox__nav { width: 40px; height: 40px; font-size: 22px; }
  .g-lightbox__nav--prev { left: 8px; }
  .g-lightbox__nav--next { right: 8px; }
  .g-toggle__btn { padding: 10px 16px; font-size: 11px; }
}

/* ═══ OUR STORY — two-column splits, manifest carousel, quote band ═══ */
.os-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.os-split__fig { margin: 0; }
.os-split__fig img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule);
}
.os-split__fig figcaption {
  font-family: var(--f-sans); font-weight: 500; font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-mid);
  margin-top: var(--s-12); padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--rule);
}
.os-split__fig figcaption em {
  font-family: var(--f-spectral); font-weight: 300; font-style: italic;
  font-size: 12px; letter-spacing: 0.04em; text-transform: none;
  color: var(--ink-mid); display: block; margin-top: 4px;
}

/* Named Lineages — warm band */
.os-lineages {
  background: var(--canvas-warm);
  padding: clamp(4rem, 8vw, var(--s-144)) var(--s-32);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.os-lineages__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.os-lineages__text .ed-kicker { margin-bottom: var(--s-16); }
.os-lineages__text p {
  font-family: var(--f-spectral); font-size: 19px; line-height: 1.78;
  color: var(--ink); margin: 0;
}

/* Manifest carousel */
.manifest-carousel { margin: 0; }
.manifest-carousel__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-16); margin-bottom: var(--s-12);
}
.manifest-carousel__counter {
  font-family: var(--f-sans); font-weight: 500; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mid);
}
.manifest-carousel__arrow {
  appearance: none; -webkit-appearance: none;
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--navy); background: transparent; color: var(--navy);
  font-size: 22px; line-height: 1; cursor: pointer; border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.manifest-carousel__arrow:hover { background: var(--navy); color: #fff; }
.manifest-carousel__viewport {
  position: relative; width: 100%;
  background: var(--canvas-dark); border: 1px solid var(--rule);
}
.manifest-carousel__img { display: none; width: 100%; height: auto; }
.manifest-carousel__img.is-active { display: block; }
.manifest-carousel__cap {
  font-family: var(--f-sans); font-weight: 500; font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-mid);
  margin-top: var(--s-12); padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--rule);
}
.manifest-carousel__cap em {
  font-family: var(--f-spectral); font-weight: 300; font-style: italic;
  font-size: 12px; letter-spacing: 0.04em; text-transform: none;
  color: var(--ink-mid); display: block; margin-top: 4px;
}

/* Pull-quote — navy band, centered */
.os-quote-band {
  background: var(--navy);
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
}
.os-quote { max-width: 900px; margin: 0 auto; text-align: center; }
.os-quote q {
  font-family: var(--f-display); font-weight: 300; font-style: italic;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.28;
  color: var(--white-90); display: block; margin: 0;
  quotes: "\201C" "\201D" "\2018" "\2019";
}
.os-quote cite {
  display: block; margin-top: var(--s-24);
  font-family: var(--f-sans); font-weight: 500; font-style: normal;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-light);
}

@media (max-width: 720px) {
  .os-split, .os-lineages__inner { grid-template-columns: 1fr; }
  .os-split__fig { margin-top: var(--s-32); }
}

/* ── Centered section headers (Our Story) ── */
.os-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto var(--s-64);
}
.os-head .ed-kicker { margin-bottom: var(--s-16); }
.os-head .ed-h2 { margin-left: auto; margin-right: auto; max-width: 26ch; }

/* Voyage intro — centered to match */
.voyage__intro { text-align: center; }
.voyage__intro .ed-h2 { margin-left: auto; margin-right: auto; }
.voyage__intro > p { margin-left: auto; margin-right: auto; max-width: 62ch; }

/* Sub-headings centered to match section headers */
.ed-subhead { text-align: center; }

/* ===== ALL HEADINGS CENTERED - site-wide (Option B) ===== */
.page-header { text-align: center; }
.page-header__title { margin-left: auto; margin-right: auto; }
.page-header::after { left: 50%; transform: translateX(-50%); }
.label, .t-heading, .t-chapter { text-align: center; }
.t-heading, .t-chapter { margin-left: auto; margin-right: auto; }
.lp-c__inner { margin-left: auto; margin-right: auto; }
.lp-c__inner > p, .lp-c__inner .t-body, .lp-c__inner .record, .lp-c__inner .entry-list, .lp-c__inner .entry, .lp-c__inner .timeline, .lp-c__inner .timeline__item { text-align: left; }
.lp-b__text { text-align: center; align-items: center; }

/* Two-column pairings: a heading sharing a row with its own body or a card
   reads cleanest aligned to its column - centering it inside a half-width
   cell looks lopsided. Standalone section headers stay centered (above). */
[style*="grid-template-columns:1fr 1fr"] .label,
[style*="grid-template-columns:1fr 1fr"] .t-heading,
[style*="grid-template-columns: 1fr 1fr"] .label,
[style*="grid-template-columns: 1fr 1fr"] .t-heading {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* Cover the other two-column split ratios (heading aligns to its column) */
[style*="grid-template-columns:1.3fr 1fr"] .label, [style*="grid-template-columns:1.3fr 1fr"] .t-heading,
[style*="grid-template-columns:1.4fr 1fr"] .label, [style*="grid-template-columns:1.4fr 1fr"] .t-heading,
[style*="grid-template-columns:1fr 1.6fr"] .label, [style*="grid-template-columns:1fr 1.6fr"] .t-heading,
[style*="grid-template-columns:1fr 1.4fr"] .label, [style*="grid-template-columns:1fr 1.4fr"] .t-heading {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* London Bourne restoration notes: heading sits beside its intro text,
   so it aligns to its column (class-based 2-col layout) */
.r-note__head .label,
.r-note__head .t-heading {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* ===== CENTER BODY + BUTTONS under centered headings (single-column sections) =====
   Issues 1-4: headings were force-centered site-wide but the body text and CTA
   buttons beneath them stayed left, creating a mismatch. This matches them.
   Targets the single-column section wrappers; two-column layouts are excluded
   by the rule that follows so their column-aligned design is preserved. */
.voyage__intro,
.access-head,
.os-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.voyage__intro > p,
.access-head > p,
.os-head > p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 62ch;
}
/* Milestones header: collapse the two-column heading/subtitle row into a
   centered single-column stack (heading on top, subtitle centered beneath
   with breathing room before the cards) */
.milestones-head-row {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-16);
}
.milestones-head-row > div { width: 100%; }
.milestones-head-row p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 62ch;
  margin-bottom: var(--s-32);
}
/* CTA buttons (.t-link is inline-flex) centered as block-level within these sections */
.voyage__intro .t-link,
.access-head .t-link,
.access-cta .t-link,
.milestones-head-row .t-link,
.os-head .t-link {
  margin-left: auto;
  margin-right: auto;
}

/* Exclusion: never center single-column rules inside two-column grid layouts
   (these stay aligned to their own column, matching the heading carve-outs above) */
[style*="grid-template-columns:1fr 1fr"] .voyage__intro,
[style*="grid-template-columns: 1fr 1fr"] .voyage__intro,
[style*="grid-template-columns:1.3fr 1fr"] .os-head,
[style*="grid-template-columns:1.4fr 1fr"] .os-head,
[style*="grid-template-columns:1fr 1.6fr"] .os-head,
[style*="grid-template-columns:1fr 1.4fr"] .os-head {
  align-items: flex-start;
  text-align: left;
}

/* ========================================================================
   MOBILE NAVIGATION — hamburger menu (collapses at 960px)
   Issue 6: the 11-item nav had no mobile handling and overflowed on phones.
   ======================================================================== */
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px;
    margin-left: auto; z-index: 1001;
  }
  .nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--white-90);
    border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease;
  }
  .site-nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Slide-in panel */
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; gap: var(--s-8);
    background: rgba(13, 19, 26, 0.98);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 96px var(--gutter) var(--s-40);
    transform: translateX(100%); transition: transform 0.32s ease;
    overflow-y: auto; z-index: 1000;
    border-left: 1px solid var(--rule-dark);
  }
  .site-nav.nav-open .nav-links { transform: translateX(0); }

  .nav-links > li { width: 100%; }
  .nav-links a {
    display: block; width: 100%; font-size: 16px;
    padding: var(--s-8) 0; letter-spacing: 0.04em;
  }
  .nav-item { width: 100%; }
  .nav-parent { display: flex; align-items: center; justify-content: space-between; }

  /* Dropdowns expand inline within the panel (not floating) */
  .nav-dropdown {
    position: static; opacity: 1; pointer-events: auto; transform: none;
    background: transparent; border: 0; border-top: 0; box-shadow: none;
    min-width: 0; padding: 0 0 var(--s-8) var(--s-16);
    display: none; visibility: visible;
  }
  .nav-item--open .nav-dropdown { display: block; }
  .nav-dropdown a { font-size: 14px; color: var(--white-55); }

  /* Connect pill: full-width emphasis at the bottom of the panel */
  .nav-participate {
    margin-top: var(--s-24); text-align: center;
    border: 1px solid var(--gold) !important;
  }

  /* Prevent background scroll while the panel is open */
  body.nav-locked { overflow: hidden; }
}

/* ========================================================================
   RESPONSIVE LAYOUTS — site-wide mobile pass (Issue 6)
   Collapses inline-styled multi-column grids to single column, scales
   typography, and tightens spacing on small screens. Targets inline
   style attributes so it reaches every page without per-file edits.
   ======================================================================== */

/* --- Tablet & below: collapse 2-column grids to single column --- */
@media (max-width: 860px) {
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1.3fr 1fr"],
  [style*="grid-template-columns: 1.3fr 1fr"],
  [style*="grid-template-columns:1.4fr 1fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns:1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns:1fr 1.6fr"],
  [style*="grid-template-columns: 1fr 1.6fr"],
  [style*="grid-template-columns: 1fr 520px"],
  [style*="grid-template-columns: 1fr 420px"],
  [style*="grid-template-columns: 320px 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: var(--s-32) !important;
  }
  /* 4-up grids become 2-up on tablet */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* --- Phones: 4-up and 2-up grids become single column --- */
@media (max-width: 560px) {
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  .stat-band { grid-template-columns: 1fr !important; }
  .stat-band__item { border-right: none !important; border-top: 1px solid var(--rule-dark); }
}

/* --- Global mobile spacing & typography scaling --- */
@media (max-width: 720px) {
  :root { --gutter: 22px; }
  .page-header { padding-left: var(--gutter); padding-right: var(--gutter); }
  .t-chapter { font-size: clamp(30px, 8vw, 44px); }
  .page-header__title { font-size: clamp(30px, 8vw, 46px); }
  /* tame oversized section padding on phones */
  section { padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* --- Footer mobile stacking is already handled by the existing
   @media (max-width: 1100px) rules above; no duplication added here. --- */

