@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap');
/* =========================================================
   Suaman Traditional Area — Royal heritage stylesheet
   Colours: royal gold #d29a22, deep green #123a2b, near-black
   Serif headings (Cormorant Garamond) + clean sans body (Inter)
   Mobile-first, WCAG AA target
   ========================================================= */

:root {
  --gold: #c5a059;          /* antique muted gold */
  --gold-light: #d4af37;    /* bright ceremonial gold */
  --gold-deep: #9c7c3c;     /* shadowed gilt */
  --gold-dark: #9c7c3c;
  --green: #0f382c;         /* deep emerald / royal forest */
  --green-deep: #0a2a1f;
  --green-soft: #1c4d3a;
  --ink: #141712;
  --cream: #fdfbf7;         /* warm cream */
  --cream-2: #f2ead6;
  --paper: #fffefb;
  --text: #2a2620;
  --muted: #6c6558;
  --line: #e6dcc4;
  --white: #ffffff;

  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;  /* regal caps masthead */
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-sm: 0 2px 10px rgba(18, 58, 43, 0.08);
  --shadow-md: 0 10px 30px rgba(18, 58, 43, 0.12);
  --shadow-lg: 0 24px 60px rgba(12, 40, 29, 0.22);
  --radius: 14px;
  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green-soft); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--green); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 68px 0; }
.section--tight { padding: 44px 0; }
.section--cream { background: var(--cream); }
.section--green { background: var(--green); color: #ece4d2; }
.section--green h1, .section--green h2, .section--green h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); }
.section--green .lead { color: #cbbf9f; }

/* Kente-inspired thin rule used as an accent */
.kente-rule {
  height: 6px; width: 90px; margin: 14px 0 26px;
  background: repeating-linear-gradient(90deg,
    var(--gold) 0 14px, var(--green-soft) 14px 20px, var(--gold-dark) 20px 30px, var(--green) 30px 36px);
  border-radius: 3px;
}
.center .kente-rule { margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--sans); font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; font-size: .78rem; color: var(--gold-dark); margin: 0 0 6px;
}
.section--green .eyebrow { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: all .22s ease; text-align: center;
}
.btn--gold { background: var(--gold); color: #23180a; border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--gold-light); border-color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: #23180a; }
.btn--green { background: var(--green); color: #fff; border-color: var(--green); }
.btn--green:hover { background: var(--green-deep); color: var(--gold-light); }

/* =========================================================
   TOP BAR + HEADER
   ========================================================= */
.topbar {
  background: var(--green-deep); color: #d8cfb8; font-size: .82rem;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #d8cfb8; }
.topbar a:hover { color: var(--gold-light); }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.topbar__contact span, .topbar__contact a { display: inline-flex; align-items: center; gap: 6px; }
.topbar__contact svg { width: 12px; height: 12px; flex: 0 0 12px; color: var(--gold-light); }
.topbar__social { display: flex; gap: 14px; }
.topbar__social svg { width: 13px; height: 13px; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, rgba(253,251,247,.86), rgba(253,251,247,.72));
  backdrop-filter: blur(16px) saturate(1.35); -webkit-backdrop-filter: blur(16px) saturate(1.35);
  border-bottom: 1px solid rgba(197,160,89,.34); box-shadow: var(--shadow-sm);
}
/* hairline gilt underline beneath the sticky header */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
  opacity: .6; pointer-events: none;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__crest {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  display: grid; place-items: center; color: var(--green-deep);
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem; box-shadow: var(--shadow-sm);
  border: 2px solid #fff;
}
.brand__text { line-height: 1.1; }
.brand__name { font-family: var(--display); font-weight: 600; color: var(--green); font-size: 1.02rem; letter-spacing: .06em; }
.brand__tag { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }

/* Nav */
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; border-radius: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--green); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 2px; align-items: center; }
.main-nav a { display: block; color: var(--green); font-weight: 600; font-size: .9rem; padding: 10px 11px; border-radius: 8px; white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1240px) { .main-nav a { font-size: .84rem; padding: 10px 9px; } }
.main-nav a:hover, .main-nav a.is-active { color: var(--gold-dark); background: var(--cream); }
.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: 5px; color: var(--gold-dark); }
.main-nav li { position: relative; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; z-index: 70;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { font-size: .9rem; padding: 8px 12px; }

/* Mega panels — dropdown lists (Territory towns/chiefs, Queen + Kingmakers) */
.submenu--mega {
  min-width: min(600px, 92vw); left: auto; right: 0; padding: 18px 20px;
  display: flex; flex-wrap: wrap; gap: 8px 28px;
}
.submenu--mega .mega-group { flex: 1 1 auto; min-width: 150px; }
.submenu--mega .mega-group--towns { flex-basis: 300px; }
.submenu--mega .mega-group--chiefs { flex-basis: 210px; }
.submenu--mega .mega-group--roles { flex-basis: 300px; }
.submenu--mega .mega-group--dept { flex-basis: 158px; }
.submenu--wide { min-width: min(720px, 94vw); }
.submenu--mega .mega-group h4 {
  font-family: var(--sans); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold-dark); margin: 2px 8px 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.submenu--mega ul { list-style: none; margin: 0; padding: 0; }
.submenu--mega .mega-group--towns ul,
.submenu--mega .mega-group--chiefs ul,
.submenu--mega .mega-group--roles ul { columns: 2; column-gap: 14px; }
.submenu--mega a { font-size: .82rem; padding: 5px 8px; border-radius: 6px; }
/* keep multi-column list items whole (never split/overlap across a column break) */
.submenu--mega li { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; }
.submenu--mega a:hover { background: var(--cream); color: var(--gold-dark); }

/* Soft highlight when a menu link opens a King / Kingmaker */
.role.is-highlighted { animation: royalGlow 2.2s ease; }
@keyframes royalGlow {
  0%, 100% { box-shadow: var(--shadow-sm); }
  20%, 60% { box-shadow: 0 0 0 3px var(--gold), var(--shadow-md); }
}
.accordion__item.is-highlighted { background: #fff7e4; box-shadow: inset 4px 0 0 var(--gold); transition: background .4s ease; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  /* backdrop-filter makes the header a containing block for fixed children,
     which would trap the drawer inside the header box — remove it on mobile */
  .site-header, .site-header.is-scrolled {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(253, 251, 247, .98);
  }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); background: var(--green);
    transform: translateX(100%); transition: transform .3s ease; padding: 82px 20px 40px;
    overflow-y: auto; box-shadow: var(--shadow-lg); z-index: 65;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; gap: 2px; align-items: stretch; }
  .main-nav a { color: #ece4d2; padding: 12px 10px; border-radius: 8px; }
  .main-nav a:hover, .main-nav a.is-active { background: var(--green-soft); color: var(--gold-light); }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: transparent; border: 0; border-left: 2px solid var(--gold-dark);
    margin: 2px 0 6px 12px; padding: 2px 0; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .submenu a { color: #cbbf9f; }
  .has-sub.open > .submenu { max-height: 2400px; }
  /* Mega panel collapses to a simple stacked list on mobile */
  .submenu--mega { display: block; min-width: 0; right: auto; padding: 0; }
  .submenu--mega .mega-group h4 { color: var(--gold-light); border-bottom-color: rgba(255,255,255,.15); margin-top: 8px; }
  .submenu--mega .mega-group--towns ul,
  .submenu--mega .mega-group--chiefs ul { columns: 1; }
  .submenu--mega a { color: #cbbf9f; }
  .has-sub > a::after { float: right; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(12,40,29,.55); opacity: 0; visibility: hidden; transition: .3s; z-index: 64; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}
@media (min-width: 1101px) { .nav-backdrop { display: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; background: var(--green-deep); color: #f3ecda; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(210,154,34,.28), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(28,77,58,.7), transparent 45%),
    linear-gradient(135deg, var(--green-deep) 0%, #143c2c 55%, #0a2016 100%);
}
.hero::after { /* subtle adinkra-like motif watermark */
  content: ""; position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 460px; height: 460px; opacity: .1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23d29a22' stroke-width='2'%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3Cpath d='M50 20v60M20 50h60M30 30l40 40M70 30L30 70'/%3E%3Ccircle cx='50' cy='50' r='10'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.hero__inner { position: relative; z-index: 2; padding: 84px 0 92px; max-width: 720px; }
.hero__eyebrow { color: var(--gold-light); letter-spacing: .22em; text-transform: uppercase; font-weight: 700; font-size: .8rem; margin-bottom: 14px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 span { color: var(--gold-light); display: block; }
.hero__text { font-size: 1.18rem; color: #d9cfb5; max-width: 560px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__ribbon {
  position: absolute; z-index: 2; bottom: 0; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 30px, var(--green-soft) 30px 44px, var(--gold-dark) 44px 66px, var(--green) 66px 80px);
}

/* Page banner (interior pages) */
.page-banner { position: relative; background: var(--green-deep); color: #f2ead8; overflow: hidden; }
.page-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(210,154,34,.22), transparent 45%), linear-gradient(120deg, var(--green-deep), #123a2b);
}
.page-banner__inner { position: relative; z-index: 2; padding: 58px 0; }
.page-banner h1 { font-family: var(--display); font-weight: 600; letter-spacing: .015em; color: #fff; margin-bottom: 6px; }
.breadcrumb { font-size: .85rem; color: #c9bf9f; }
.breadcrumb a { color: var(--gold-light); }
.page-banner__ribbon { position: absolute; bottom: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 24px, var(--green-soft) 24px 34px, var(--gold-dark) 34px 50px); }

/* =========================================================
   CARDS / GRIDS
   ========================================================= */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--green-soft), var(--green-deep)); position: relative; display: grid; place-items: center; }
.card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { color: var(--muted); margin-bottom: 16px; }
.card__link { margin-top: auto; font-weight: 700; color: var(--gold-dark); }
.card__link::after { content: " →"; }

/* Feature (home) cards with icon */
.feature { text-align: left; }
.feature__icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: var(--green-deep);
}
.feature__icon svg { width: 24px; height: 24px; }

/* Placeholder media panel (for royal photos to come) */
.photo-ph {
  position: relative; display: grid; place-items: center; text-align: center; color: #f0e6cd;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--green-soft), var(--green-deep));
  padding: 24px; min-height: 180px;
}
.photo-ph__crest { width: 46px; height: 46px; border-radius: 50%; margin-bottom: 10px;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold) 55%, var(--gold-dark)); border: 2px solid rgba(255,255,255,.5); }
.photo-ph__label { font-size: .82rem; letter-spacing: .04em; opacity: .85; max-width: 240px; }
.photo-ph__tag { font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-light); margin-top: 8px; font-weight: 700; }

/* =========================================================
   THE QUEEN — portrait feature + biography
   ========================================================= */
.portrait-feature { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 860px) { .portrait-feature { grid-template-columns: 0.9fr 1.1fr; gap: 48px; } }
.portrait-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  border: 6px solid #fff; outline: 2px solid var(--gold); outline-offset: -6px;
}
.portrait-frame .photo-ph { min-height: 420px; aspect-ratio: 4/5; }

.bio h2 { margin-top: 0; }
.bio-section { margin-bottom: 26px; }
.bio-section h3 { color: var(--gold-dark); display: flex; align-items: center; gap: 10px; }
.bio-section h3::before { content: ""; width: 22px; height: 3px; background: var(--gold); border-radius: 2px; display: inline-block; }
.pull-fact {
  background: var(--cream); border-left: 4px solid var(--gold); border-radius: 8px;
  padding: 18px 22px; margin: 22px 0; font-family: var(--serif); font-size: 1.25rem; color: var(--green);
}

/* Timeline */
.timeline { position: relative; margin: 20px 0; padding-left: 26px; border-left: 3px solid var(--line); }
.timeline li { position: relative; list-style: none; margin: 0 0 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -35px; top: 4px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--gold);
}
.timeline .yr { font-family: var(--serif); font-weight: 700; color: var(--green); font-size: 1.15rem; }
.timeline .ev { color: var(--muted); }

/* =========================================================
   NOTES TO OWNER / callouts
   ========================================================= */
.owner-note {
  background: #fff7e4; border: 1px dashed var(--gold); border-radius: 10px; padding: 14px 18px;
  font-size: .92rem; color: #7a5a12; margin: 18px 0;
}
.owner-note strong { color: var(--gold-dark); }
.verify-flag { background: #fdefe0; border-left: 4px solid #c9772d; }

/* =========================================================
   ACCORDIONS (kings, kingmakers, faq, chiefs)
   ========================================================= */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); }
.accordion__item + .accordion__item { border-top: 1px solid var(--line); }
.accordion__head {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--green);
}
.accordion__head:hover { background: var(--cream); }
.accordion__num { color: var(--gold-dark); font-size: .95rem; font-weight: 700; margin-right: 6px; }
.accordion__icon { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--cream);
  display: grid; place-items: center; color: var(--gold-dark); transition: .25s; font-size: .95rem; }
.accordion__head[aria-expanded="true"] .accordion__icon { background: var(--gold); color: #fff; transform: rotate(45deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion__panel-inner { padding: 0 20px 20px; color: var(--text); }
.accordion__panel-inner p { color: var(--muted); }

/* Role grid (kingmakers, chiefs, departments) */
.role-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.role {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.role:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.role__badge { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: var(--green-deep); font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.role h3 { font-size: 1.28rem; margin-bottom: 6px; }
.role p { color: var(--muted); margin: 0; font-size: .96rem; }

/* =========================================================
   TERRITORY — search + town chips
   ========================================================= */
.search-box { position: relative; max-width: 460px; margin: 0 0 24px; }
.search-box input {
  width: 100%; padding: 14px 18px 14px 46px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--sans); font-size: 1rem; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23a8781a' stroke-width='2'%3E%3Ccircle cx='9' cy='9' r='7'/%3E%3Cpath d='M14 14l5 5'/%3E%3C/svg%3E") no-repeat 16px center;
}
.search-box input:focus { border-color: var(--gold); }
.town-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.town {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--green); box-shadow: var(--shadow-sm);
}
.town__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.town--empty { grid-column: 1 / -1; color: var(--muted); font-weight: 400; text-align: center; padding: 20px; }
.count-note { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }

/* =========================================================
   GENEALOGY family tree
   ========================================================= */
.tree { margin-top: 12px; }
.tree__branch {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 18px; overflow: hidden;
}
.tree__branch > summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--serif); font-size: 1.3rem;
  color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 12px; background: var(--cream);
}
.tree__branch > summary::-webkit-details-marker { display: none; }
.tree__branch > summary::before { content: "⊕"; color: var(--gold-dark); font-size: 1.2rem; }
.tree__branch[open] > summary::before { content: "⊖"; }
.tree__branch-body { padding: 8px 22px 20px; }
.tree__gen { margin: 0; padding: 0; list-style: none; }
.tree__person { border-left: 2px solid var(--line); margin-left: 6px; padding: 8px 0 8px 18px; position: relative; }
.tree__person::before { content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.tree__person > .name { font-weight: 700; color: var(--green); }
.tree__person .role { display: inline; background: none; border: 0; padding: 0; box-shadow: none; color: var(--gold-dark); font-size: .85rem; font-weight: 600; }
.tree__children { list-style: none; margin: 6px 0 0; padding-left: 16px; border-left: 1px dashed var(--line); }
.tree__children li { padding: 3px 0; color: var(--text); font-size: .96rem; }
.tree__children .tag { color: var(--muted); font-size: .82rem; }
.stat-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); margin: 6px 0 30px; }
.stat { background: var(--green); color: #fff; border-radius: var(--radius); padding: 20px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-light); line-height: 1; }
.stat .lbl { font-size: .82rem; letter-spacing: .04em; color: #cdbf9d; margin-top: 6px; }

/* =========================================================
   NEWS
   ========================================================= */
.news-empty { text-align: center; max-width: 560px; margin: 0 auto; }
.news-empty .photo-ph { border-radius: var(--radius); min-height: 160px; margin-bottom: 22px; }
.news-strip .card__media { aspect-ratio: 16/9; }
.tag-pill { display: inline-block; background: var(--cream); color: var(--gold-dark); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-item { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; border: 1px solid var(--line); }
.gallery-item .photo-ph { aspect-ratio: 1; min-height: 0; }
.lightbox { position: fixed; inset: 0; background: rgba(10,25,18,.9); display: none; place-items: center; z-index: 200; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox__inner { max-width: 600px; text-align: center; color: #f0e6cd; }
.lightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; color: var(--green); margin-bottom: 6px; font-size: .92rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: var(--sans);
  font-size: 1rem; background: var(--white); color: var(--text);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--gold); outline: none; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; margin-top: 12px; font-weight: 600; }
.form-status.ok { display: block; background: #e7f3ec; color: #1c6b45; border: 1px solid #b8ddc7; }
.honeypot { position: absolute; left: -9999px; }

.office-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.office-card.primary { border-top: 4px solid var(--gold); }
.office-card h3 { margin-bottom: 4px; }
.office-card .role { background: none; border: 0; box-shadow: none; padding: 0; color: var(--gold-dark); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.contact-line svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--gold-dark); margin-top: 5px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--green-deep); color: #c9bf9f; padding-top: 0; }
.site-footer > .container { padding-top: 60px; }  /* breathing room below the kente strip */
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-brand p { color: #b4aa87; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c9bf9f; font-size: .95rem; }
.site-footer a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact svg { width: 13px; height: 13px; flex: 0 0 13px; margin-top: 5px; color: var(--gold-light); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); }
.footer-social a:hover { background: var(--gold); color: var(--green-deep); }
.footer-social svg { width: 15px; height: 15px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding: 20px 0; font-size: .84rem; color: #9c9179; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-crest { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-crest .brand__crest { border-color: rgba(255,255,255,.3); }
.footer-crest .brand__name { color: #fff; }

/* Utilities */
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 22px; }
.hidden { display: none !important; }
.prose p { max-width: 68ch; }
.two-col-prose { columns: 1; }
@media (min-width: 820px){ .intro-split { display:grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items:center; } }

/* =========================================================
   PREMIUM LAYER — motion, depth, and finish
   Added to lift the whole site to a flagship standard.
   All animation is transform/opacity only, GPU-friendly,
   and fully disabled under prefers-reduced-motion (bottom).
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --ease-lux: cubic-bezier(.16, 1, .3, 1);
  --gold-grad: linear-gradient(100deg, var(--gold-dark), var(--gold) 45%, var(--gold-light) 60%, var(--gold) 78%);
}

/* Fine film grain over the whole page — adds warmth and depth without weight */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero, .page-banner, .section--green, .site-footer { position: relative; z-index: 0; }

/* Rebuilt heraldic crest as a hero emblem */
.hero__crest {
  display: block; width: clamp(160px, 22vw, 260px); height: auto; margin: 0 0 22px;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.55));
}
.hero__inner.center-crest { text-align: center; }
.hero__inner.center-crest .hero__crest { margin-left: auto; margin-right: auto; }
.hero__inner.center-crest .hero__text { margin-left: auto; margin-right: auto; }
.hero__inner.center-crest .hero__actions { justify-content: center; }

/* Real photographs in portrait frames + gallery */
.portrait-frame > img { display: block; width: 100%; height: 100%; aspect-ratio: 4/5; object-fit: cover; }
/* wide variant — shows the full landscape image (e.g. a group photo) with no crop */
.portrait-frame--wide { aspect-ratio: 4 / 3; background: #0a2a1f; }
.portrait-frame--wide > img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item > img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease-out); }
.gallery-item:hover > img { transform: scale(1.06); }
.lightbox__inner img { max-width: min(88vw, 760px); max-height: 78vh; border-radius: 10px; box-shadow: var(--shadow-lg); border: 4px solid rgba(231,192,99,.5); }
.lightbox__inner .cap { margin-top: 12px; }

/* New royal-seal logo: render the SVG emblem cleanly (no coin background) */
img.brand__crest {
  width: auto; height: 54px; flex: 0 0 auto; object-fit: contain;
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
}
.site-header.is-scrolled img.brand__crest { height: 46px; }
.footer-crest img.brand__crest { height: 64px; }

/* Kente strip across the very top of the page (blended in from the welcome preview) */
/* ---------- Woven kente band (Ashanti heritage trim) ----------
   Layered gradients build a warp/weft interlace: vertical strips
   (warp) crossed by horizontal weft bands in royal gold, emerald,
   ceremonial red and black — the colours of a genuine kente cloth. */
.kente-band, .kente-topstrip {
  --k-red: #8f2c2c; --k-black: #201a12;
  height: 12px; width: 100%;
  background:
    /* weft: horizontal ribbons */
    repeating-linear-gradient(0deg,
      rgba(0,0,0,.16) 0 1px, transparent 1px 3px),
    /* interlace blocks */
    repeating-linear-gradient(90deg,
      var(--gold) 0 14px,
      var(--green) 14px 20px,
      var(--gold-light) 20px 30px,
      var(--k-red) 30px 36px,
      var(--green-deep) 36px 46px,
      var(--gold) 46px 54px,
      var(--k-black) 54px 60px);
  background-blend-mode: multiply, normal;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.15);
}
.kente-topstrip { height: 10px; }
/* a slimmer inline divider variant for section headers */
.kente-band--slim { height: 7px; border-radius: 2px; }

/* Thin gold reading-progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: var(--gold-grad); box-shadow: 0 0 10px rgba(210,154,34,.6);
  transition: width .1s linear;
}

/* Gold gradient text accent */
.text-gold {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}

/* ---------- Scroll reveal ----------
   Elements are only hidden once JS confirms it can reveal them
   (html.reveal-ready). No JS or reduced motion => always visible. */
html.reveal-ready [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out),
              box-shadow .5s var(--ease-lux), border-color .45s var(--ease-lux);
  transition-delay: var(--reveal-delay, 0s); will-change: opacity, transform;
}
html.reveal-ready [data-reveal="left"]  { transform: translateX(-32px); }
html.reveal-ready [data-reveal="right"] { transform: translateX(32px); }
html.reveal-ready [data-reveal="scale"] { transform: scale(.94); }
html.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; will-change: auto; }

/* ---------- Header: condense on scroll ---------- */
.site-header { transition: box-shadow .3s var(--ease-soft), background .3s var(--ease-soft); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(12,40,29,.16); background: linear-gradient(180deg, rgba(253,251,247,.96), rgba(253,251,247,.9)); }
.site-header.is-scrolled .header-inner { padding: 7px 0; }
.site-header .header-inner { transition: padding .3s var(--ease-soft); }
.brand__crest { transition: transform .3s var(--ease-soft); }
.site-header.is-scrolled .brand__crest { transform: scale(.9); }

/* ---------- Hero: entrance + living background ---------- */
.hero__inner { max-width: 760px; padding-block: clamp(88px, 12vw, 128px); }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.2rem); letter-spacing: -.01em; }
.hero h1 span { margin-top: .12em; font-style: italic; }
/* slow gold glow drifting behind the hero */
.hero::before { animation: heroDrift 26s ease-in-out infinite alternate; }
@keyframes heroDrift {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, 1.5%); }
}
/* the adinkra motif breathes and turns very slowly */
.hero::after { animation: motifSpin 90s linear infinite; }
@keyframes motifSpin { to { transform: translateY(-50%) rotate(360deg); } }

html.reveal-ready .hero__eyebrow,
html.reveal-ready .hero h1,
html.reveal-ready .hero__text,
html.reveal-ready .hero__actions {
  opacity: 0; transform: translateY(22px); animation: heroRise .9s var(--ease-out) forwards;
}
html.reveal-ready .hero__eyebrow { animation-delay: .1s; }
html.reveal-ready .hero h1       { animation-delay: .24s; }
html.reveal-ready .hero__text    { animation-delay: .42s; }
html.reveal-ready .hero__actions { animation-delay: .58s; }
@keyframes heroRise { to { opacity: 1; transform: none; } }

/* Scroll cue at the base of the hero */
.hero__cue {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--gold-light); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
}
.hero__cue span { width: 22px; height: 34px; border: 2px solid rgba(231,192,99,.55); border-radius: 12px; position: relative; }
.hero__cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--gold-light); transform: translateX(-50%); animation: cueDrop 1.8s var(--ease-soft) infinite; }
@keyframes cueDrop { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Buttons: gilded shimmer sweep on hover ---------- */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease-out);
}
.btn:hover::before { left: 140%; }
.btn--gold:hover { box-shadow: 0 12px 28px rgba(168,120,26,.4); }

/* ---------- Cards: gold rule reveal + deeper lift ---------- */
.card, .role { position: relative; }
.card::after, .role::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.card:hover::after, .role:hover::after { transform: scaleX(1); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature__icon { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.card:hover .feature__icon { transform: translateY(-2px) rotate(-4deg); box-shadow: 0 10px 22px rgba(168,120,26,.35); }

/* ---------- Gilded photo placeholders (feel intentional, not empty) ---------- */
.photo-ph { overflow: hidden; }
.photo-ph::before {
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(231,192,99,.28);
  border-radius: 6px; pointer-events: none;
}
.photo-ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(231,192,99,.12) 50%, transparent 70%);
  transform: translateX(-100%); animation: gild 6s var(--ease-soft) infinite;
}
@keyframes gild { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
.photo-ph__crest { animation: crestPulse 4.5s ease-in-out infinite; }
@keyframes crestPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(231,192,99,.0); } 50% { box-shadow: 0 0 0 8px rgba(231,192,99,.12); } }

/* Portrait frame: engraved corner ornaments */
.portrait-frame { position: relative; }
.portrait-frame::before, .portrait-frame::after {
  content: ""; position: absolute; width: 26px; height: 26px; z-index: 3; pointer-events: none;
  border: 2px solid var(--gold);
}
.portrait-frame::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.portrait-frame::after  { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* ---------- Ornamental crest divider ---------- */
.crest-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 2px; color: var(--gold); }
.crest-divider::before, .crest-divider::after { content: ""; height: 1px; width: min(120px, 22vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.crest-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.crest-divider span { width: 12px; height: 12px; transform: rotate(45deg); border: 2px solid var(--gold); }

/* ---------- Drop cap for lead biography ---------- */
.has-dropcap > p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 700; float: left; font-size: 3.6rem; line-height: .82;
  padding: 6px 12px 0 0; color: var(--gold-dark);
}

/* ---------- Genealogy stats: shimmer number ---------- */
.stat { position: relative; overflow: hidden; transition: transform .3s var(--ease-out); }
.stat:hover { transform: translateY(-4px); }
.stat .num { transition: color .3s ease; }

/* ---------- Timeline: draw-in dots ---------- */
.timeline li::before { transition: transform .4s var(--ease-out), box-shadow .3s ease; }
.timeline li:hover::before { transform: scale(1.25); box-shadow: 0 0 0 3px var(--gold), 0 0 12px rgba(210,154,34,.5); }

/* ---------- Tree branch: smooth open ---------- */
.tree__branch { transition: box-shadow .3s var(--ease-out), border-color .3s var(--ease-out); }
.tree__branch[open] { box-shadow: var(--shadow-md); border-color: var(--gold); }
.tree__branch > summary { transition: background .25s var(--ease-soft); }
.tree__branch > summary:hover { background: #f3ebd6; }

/* =========================================================
   HANDCRAFTED MICRO-INTERACTIONS — considered, not busy.
   Restraint is the point: a little depth, a little light,
   precise easing. Nothing spins or flashes.
   ========================================================= */

/* Cursor-reactive tilt (JS writes the inline transform; kill the
   transition while tilting so it tracks the pointer, restore on leave) */
.role, .card.feature { transform-style: preserve-3d; }
.role.is-tilting, .card.feature.is-tilting { transition: none !important; }

/* A soft gold gleam that follows the cursor across a card */
.role::before,
.card.feature::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(231,192,99,.16), transparent 55%);
  opacity: 0; transition: opacity .5s var(--ease-lux);
}
.role:hover::before, .card.feature:hover::before { opacity: 1; }
.role > * { position: relative; z-index: 1; }
.card.feature .card__body { position: relative; z-index: 1; }

/* Layered, warm shadow + gold hairline on lift */
.role:hover, .card.feature:hover {
  border-color: var(--gold);
  box-shadow: 0 22px 48px -20px rgba(12,40,29,.5), 0 8px 18px -10px rgba(168,120,26,.35);
}

/* The badge answers the card */
.role__badge { transition: transform .5s var(--ease-lux), box-shadow .5s var(--ease-lux); }
.role:hover .role__badge { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 10px 20px rgba(168,120,26,.4); }

/* Card link arrow glides forward */
.card__link { display: inline-flex; align-items: center; gap: .35em; }
.card__link::after { content: "\2192"; transition: transform .45s var(--ease-lux); }
.card:hover .card__link::after { transform: translateX(6px); }

/* Accordion: a gold indicator that grows when open (and on hover) */
.accordion__item { position: relative; }
.accordion__item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold-grad);
  transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease-lux); opacity: .55;
}
.accordion__item:hover::before { transform: scaleY(1); }
.accordion__item:has(.accordion__head[aria-expanded="true"])::before { transform: scaleY(1); opacity: 1; }
.accordion__icon { transition: transform .5s var(--ease-lux), background .4s var(--ease-lux), color .4s ease; }

/* Stat number takes a quiet glow */
.stat .num { transition: text-shadow .5s var(--ease-lux); }
.stat:hover .num { text-shadow: 0 0 22px rgba(231,192,99,.55); }

/* Kente rule + crest divider draw themselves in as the heading arrives */
html.reveal-ready [data-reveal] .kente-rule { width: 0; transition: width .9s var(--ease-lux) .15s; }
html.reveal-ready [data-reveal].is-visible .kente-rule { width: 90px; }
html.reveal-ready [data-reveal] .crest-divider::before,
html.reveal-ready [data-reveal] .crest-divider::after { width: 0; transition: width .9s var(--ease-lux) .2s; }
html.reveal-ready [data-reveal].is-visible .crest-divider::before,
html.reveal-ready [data-reveal].is-visible .crest-divider::after { width: min(120px, 22vw); }

/* Buttons: a tactile press */
.btn { transition: transform .35s var(--ease-lux), box-shadow .35s var(--ease-lux), background .22s ease, border-color .22s ease, color .22s ease; }
.btn:active { transform: translateY(1px) scale(.985); }

/* In-prose links: a gold underline that draws on hover */
.prose a, .accordion__panel-inner a, .tree__children a, .bio a {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .45s var(--ease-lux); padding-bottom: 1px;
}
.prose a:hover, .accordion__panel-inner a:hover, .tree__children a:hover, .bio a:hover { background-size: 100% 1.5px; }

/* =========================================================
   ROYAL FAMILY TREE — interactive horizontal genealogy.
   Fully scoped under .rft so it never touches .card / .tree
   used elsewhere on the site.
   ========================================================= */
.rft-controls { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.rft-btn {
  font-family: var(--sans); font-weight: 600; font-size: .85rem; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--green); cursor: pointer;
  transition: color .25s var(--ease-lux), background .25s var(--ease-lux), border-color .25s var(--ease-lux), transform .25s var(--ease-lux);
}
.rft-btn:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--cream); transform: translateY(-1px); }
.rft-btn:active { transform: translateY(1px); }

.rft-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 18px; font-size: .8rem; color: var(--muted); }
.rft-legend span { display: inline-flex; align-items: center; gap: 7px; }
.rft-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.rft-legend .l-root { background: var(--gold); }
.rft-legend .l-a { background: var(--green-soft); }
.rft-legend .l-b { background: #a5642a; }
.rft-legend .l-c { background: #6d4a7c; }

.rft-scroll-note { text-align: center; color: var(--muted); font-size: .8rem; margin-bottom: 8px; }
.rft-wrap { overflow-x: auto; overflow-y: hidden; padding: 6px 0 18px; -webkit-overflow-scrolling: touch; }
/* size to content so the whole tree is reachable by horizontal scroll,
   but centre it when it is narrower than the viewport */
.rft { width: max-content; min-width: 100%; margin: 0 auto; padding: 8px 24px; }
.rft ul { padding-top: 22px; position: relative; display: flex; justify-content: center; margin: 0; list-style: none; }
.rft li { text-align: center; list-style: none; position: relative; padding: 22px 12px 0; }

/* Connectors (classic CSS tree, gold hairlines) */
.rft li::before, .rft li::after {
  content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 22px;
  border-top: 2px solid var(--line);
}
.rft li::after { right: auto; left: 50%; border-left: 2px solid var(--line); }
.rft li:only-child::before, .rft li:only-child::after { display: none; }
.rft li:only-child { padding-top: 0; }
.rft li:first-child::before, .rft li:last-child::after { border: 0; }
.rft li:last-child::before { border-right: 2px solid var(--line); border-radius: 0 6px 0 0; }
.rft li:first-child::after { border-radius: 6px 0 0 0; }
.rft ul ul::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 0; height: 22px;
  border-left: 2px solid var(--line);
}

/* Cards */
.rft-card {
  position: relative; display: inline-block; vertical-align: top; text-align: left;
  min-width: 190px; max-width: 250px; padding: 14px 16px;
  background: var(--white); border: 1px solid var(--line); border-top-width: 4px; border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-lux), box-shadow .35s var(--ease-lux), border-color .35s var(--ease-lux);
}
.rft-card.is-toggle { cursor: pointer; user-select: none; }
.rft-card.is-toggle:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.rft-card--root { border-top-color: var(--gold); }
.rft-card--a { border-top-color: var(--green-soft); }
.rft-card--b { border-top-color: #a5642a; }
.rft-card--c { border-top-color: #6d4a7c; }
/* the direct line to the two offices — Omanhene (King) & Nana Hemaa (Queen) */
.rft-card--stool { box-shadow: 0 0 0 2px var(--gold), var(--shadow-md); }
.rft-legend .stool-sw { width: 15px; height: 15px; border-radius: 4px; box-shadow: 0 0 0 2px var(--gold); background: var(--gold-light); box-sizing: border-box; }
.rft-name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--green); line-height: 1.15; margin-bottom: 3px; padding-right: 20px; }
.rft-sub { font-size: .78rem; color: var(--muted); line-height: 1.45; margin-bottom: 8px; }
.rft-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.rft-badge { font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.rft-badge--king { background: var(--gold); color: #23180a; }
.rft-badge--queen { background: #9d2b5b; color: #fff; }
.rft-badge--abusua { background: #1c6b45; color: #fff; }
.rft-badge--alive { background: rgba(34,150,80,.15); color: #1c6b45; border: 1px solid rgba(34,150,80,.35); }
.rft-badge--deceased { background: rgba(180,60,50,.12); color: #a5372c; border: 1px solid rgba(180,60,50,.35); }

.rft-toggle {
  position: absolute; top: 11px; right: 11px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cream); color: var(--gold-dark); font-weight: 700; font-size: .95rem; line-height: 19px; text-align: center;
  transition: background .3s var(--ease-lux), color .3s ease, transform .3s var(--ease-lux);
}
.rft-card.is-toggle:hover .rft-toggle { background: var(--gold); color: #fff; }
.rft-collapsed > .rft-card .rft-toggle { transform: rotate(0deg); }

/* Portrait medallions (image format) + matrilineal succession marks */
.rft-card { text-align: center; }
.rft-name { padding-right: 0; }
.rft-badges { justify-content: center; }
.rft-portrait {
  width: 54px; height: 54px; border-radius: 50%; margin: 2px auto 9px; position: relative;
  border: 3px solid var(--gold); overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fbf6ea, #e7dabd);
  box-shadow: 0 3px 8px rgba(12,40,29,.18);
}
.rft-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rft-initial { font-family: var(--serif); font-weight: 700; color: var(--gold-dark); font-size: 1.1rem; letter-spacing: .02em; }
.rft-portrait--f { border-color: var(--gold); }               /* female — carries the stool */
.rft-portrait--m { border-color: #9aa0a6; }                    /* male — royal, not succession */
.rft-portrait--m .rft-initial { color: #6a7278; }
.rft-portrait--crown::before {
  content: "\265B"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: 1rem; text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.rft-badge--throne { background: var(--gold); color: #23180a; }
.rft-badge--male { background: #eceff1; color: #5a6b68; border: 1px solid #cfd8dc; }

/* Legend ring swatches */
.rft-legend .ring { width: 15px; height: 15px; border-radius: 50%; background: transparent; box-sizing: border-box; }
.rft-legend .ring-f { border: 3px solid var(--gold); }
.rft-legend .ring-m { border: 3px solid #9aa0a6; }

/* Collapsed hides children */
.rft-collapsed > ul { display: none !important; }

@media (max-width: 700px) {
  .rft-card { min-width: 158px; max-width: 200px; padding: 12px 13px; }
  .rft-name { font-size: .96rem; }
}

/* =========================================================
   INTERACTIVE GENEALOGY ENGINE — toolbar, filters, zoom,
   search highlight, and profile drawer. Royal red + ivory
   accents layered over the site's gold + green.
   ========================================================= */
:root { --royal-red: #7c1f2b; --royal-red-soft: #9d2b3a; --ivory: #f6f1e6; --royal-black: #1a140f; }

.rft-toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: center; margin: 4px 0 14px; }
#rft-search {
  width: min(280px, 82vw); padding: 10px 16px 10px 40px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--sans); font-size: .95rem; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%237c1f2b' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M13 13l4 4'/%3E%3C/svg%3E") no-repeat 14px center;
}
#rft-search:focus { border-color: var(--royal-red); outline: none; }
.rft-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rft-chip {
  font-family: var(--sans); font-weight: 600; font-size: .8rem; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--green); cursor: pointer;
  transition: color .2s var(--ease-lux), background .2s var(--ease-lux), border-color .2s var(--ease-lux);
}
.rft-chip:hover { border-color: var(--gold); color: var(--gold-dark); }
.rft-chip.is-on { background: var(--royal-red); border-color: var(--royal-red); color: #fff; }
.rft-tools { display: flex; align-items: center; gap: 6px; }
.rft-tools button {
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--white); color: var(--green); cursor: pointer; font-weight: 700; font-size: .85rem; transition: all .2s var(--ease-lux);
}
.rft-tools button:hover { border-color: var(--gold); color: var(--gold-dark); }
#rft-count { font-size: .82rem; color: var(--muted); margin-left: 4px; }

.rft-dim { opacity: .2; filter: grayscale(.45); transition: opacity .3s ease, filter .3s ease; }
.rft-hit { box-shadow: 0 0 0 3px var(--royal-red), var(--shadow-md) !important; }
#rft-mount .rft { transition: transform .25s var(--ease-lux); }

/* Profile drawer */
.rp-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(12,40,29,.55); display: none; }
.rp-drawer.open { display: block; }
.rp-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 92vw); background: var(--ivory);
  box-shadow: -20px 0 60px rgba(0,0,0,.35); overflow-y: auto; padding: 26px 26px 44px; animation: rpIn .35s var(--ease-lux);
}
@keyframes rpIn { from { transform: translateX(34px); opacity: .3; } to { transform: none; opacity: 1; } }
.rp-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--royal-red); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.rp-crest { width: 86px; height: 86px; border-radius: 50%; margin: 8px auto 12px; border: 3px solid var(--gold); display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fbf6ea, #e7dabd); position: relative; }
.rp-crest.rft-portrait--f { border-color: var(--gold); }
.rp-crest.rft-portrait--m { border-color: #9aa0a6; }
.rp-crest span { font-family: var(--serif); font-weight: 700; font-size: 1.8rem; color: var(--gold-dark); }
.rp-crest.rft-portrait--m span { color: #6a7278; }
.rp-name { font-family: var(--serif); text-align: center; color: var(--royal-black); font-size: 1.5rem; line-height: 1.15; margin: 0; }
.rp-title { text-align: center; color: var(--royal-red); font-weight: 600; margin: 3px 0 12px; font-size: .95rem; }
.rp-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin-bottom: 16px; }
.rp-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: .9rem; }
.rp-k { flex: 0 0 112px; color: var(--muted); font-weight: 600; }
.rp-v { color: var(--royal-black); }
.rp-sec { margin-top: 16px; }
.rp-sec h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--royal-red); margin: 0 0 6px; }
.rp-sec p { color: var(--text); font-size: .95rem; line-height: 1.65; margin: 0; }

/* Migration timeline */
.migration { max-width: 760px; margin: 0 auto; }
.migration ol { list-style: none; margin: 0; padding: 0; position: relative; }
.migration ol::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: repeating-linear-gradient(var(--gold) 0 8px, transparent 8px 14px); }
.migration li { position: relative; padding: 0 0 22px 46px; }
.migration li::before { content: ""; position: absolute; left: 8px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--royal-red); border: 3px solid var(--ivory); box-shadow: 0 0 0 2px var(--gold); }
.migration li .place { font-family: var(--serif); font-weight: 700; color: var(--green); font-size: 1.15rem; }
.migration li .yr { color: var(--gold-dark); font-weight: 600; font-size: .82rem; }
.migration li .note { color: var(--muted); font-size: .92rem; }

/* =========================================================
   ROYAL GALLERY — masonry grid + full-view lightbox
   ========================================================= */
/* ---------- The King — hero profile ---------- */
.king-hero { position: relative; overflow: hidden; background: var(--green-deep); color: #f4ecd7; }
.king-hero__bg {
  position: absolute; inset: 0; opacity: .5;
  background:
    radial-gradient(circle at 82% 12%, rgba(212,175,55,.28), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(28,77,58,.7), transparent 46%),
    linear-gradient(135deg, #0a2a1f, #0f382c 55%, #123a2b);
}
.king-hero__inner {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 0.9fr) 1.1fr;
  gap: 46px; align-items: center; padding: 58px 0 66px;
}
.king-hero__portrait {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4;
  background: #0a2a1f;
  box-shadow: 0 30px 70px rgba(0,0,0,.5); border: 1px solid rgba(212,175,55,.4);
}
.king-hero__portrait::before { /* soft blurred fill behind the full image */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url(../img/king/profile.jpg) center/cover; filter: blur(26px) brightness(.5); transform: scale(1.15);
}
.king-hero__portrait::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(212,175,55,.45); pointer-events: none; }
.king-hero__portrait img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.king-hero__eyebrow { color: var(--gold-light); letter-spacing: .28em; text-transform: uppercase; font-size: .78rem; font-weight: 600; margin: 0 0 10px; }
.king-hero__text h1 { font-family: var(--display); font-weight: 600; letter-spacing: .015em; color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.05; margin: 0; }
.king-hero__tag { color: var(--gold-light); font-family: var(--serif); font-size: 1.2rem; margin: 10px 0 0; }
.king-hero__lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.4; color: #ece3cb; margin: 20px 0 26px; max-width: 30em; }
.king-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.king-hero__ribbon {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 8px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 26px, var(--green-soft) 26px 38px, var(--k-red,#8f2c2c) 38px 50px, var(--gold-light) 50px 62px, var(--green-deep) 62px 74px);
}
@media (max-width: 820px) {
  .king-hero__inner { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 48px; text-align: center; }
  .king-hero__portrait { max-width: 340px; margin: 0 auto; }
  .king-hero__lead { margin-left: auto; margin-right: auto; }
  .king-hero__cta { justify-content: center; }
}

.pull-quote--dark blockquote { color: #f4ecd7; }
.pull-quote--dark blockquote::before { color: var(--gold-light); opacity: .8; }
.pull-quote--dark figcaption { color: var(--gold-light); }

/* ---------- Heir Apparent / profile components ---------- */
.portrait-frame--crest {
  display: grid; place-items: center; padding: 0;
  background: radial-gradient(circle at 50% 35%, var(--green-soft), var(--green-deep));
  border: 1px solid rgba(212,175,55,.3);
}
.crest-portrait { display: grid; place-items: center; gap: 16px; padding: 44px 24px; text-align: center; }
.crest-portrait img { width: min(72%, 260px); height: auto; filter: drop-shadow(0 14px 30px rgba(0,0,0,.4)); }
.crest-portrait__name { font-family: var(--display); color: var(--gold-light); font-size: 1.15rem; letter-spacing: .08em; }

.btn--outline-green {
  display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 600;
  color: var(--green); border: 1.5px solid var(--green); background: transparent;
  transition: .25s var(--ease-soft);
}
.btn--outline-green:hover { background: var(--green); color: #fff; }

.pull-quote {
  max-width: 880px; margin: 8px auto 0; text-align: center; padding: 12px 20px;
}
.pull-quote blockquote {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.4;
  color: var(--green); margin: 0; position: relative;
}
.pull-quote blockquote::before {
  content: "\201C"; font-family: var(--display); color: var(--gold); font-size: 2.6em;
  line-height: 0; vertical-align: -.35em; margin-right: .08em; opacity: .6;
}
.pull-quote figcaption { margin-top: 18px; font-family: var(--sans); font-weight: 600;
  letter-spacing: .04em; color: var(--gold-dark); font-size: .92rem; }

.card--accent { background: linear-gradient(160deg, var(--green), var(--green-deep)); border-color: rgba(212,175,55,.3); }
.card--accent h3 { color: #fff; }
.card--accent p { color: #d9cfb5; }
.card--accent .feature__icon { color: var(--gold-light); background: rgba(212,175,55,.14); }

/* ---------- Reusable section slideshow (.mslide) ---------- */
.mslide {
  position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 640px;
  border-radius: var(--radius); overflow: hidden; background: #0c1a14;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(197,160,89,.28);
}
.mslide::after { /* gilt inner frame */
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(212,175,55,.35);
}
.mslide-track { position: absolute; inset: 0; }
.mslide-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease-soft); }
.mslide-slide.is-active { opacity: 1; }
.mslide-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; filter: blur(28px) brightness(.5); transform: scale(1.14); }
.mslide-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; }
.mslide.is-ready .mslide-slide.is-active .km-a { animation: kenA 8s ease-out both; }
.mslide.is-ready .mslide-slide.is-active .km-b { animation: kenB 8s ease-out both; }
@keyframes kenA { from { transform: scale(1.08) translate(1.5%, -1%); } to { transform: scale(1); } }
@keyframes kenB { from { transform: scale(1.08) translate(-1.5%, 1%); } to { transform: scale(1); } }
.mslide-slide::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(6,18,12,.72)); }
.mslide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0;
  padding: 40px 22px 20px; color: #f5eede; font-family: var(--serif); font-size: 1.06rem;
  line-height: 1.35; text-shadow: 0 2px 14px rgba(0,0,0,.6);
}
.mslide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: rgba(15,56,44,.5); color: #fff; border: 1px solid rgba(212,175,55,.5);
  font-size: 1.7rem; line-height: 1; display: grid; place-items: center;
  backdrop-filter: blur(6px); transition: .25s var(--ease-soft);
}
.mslide-arrow:hover { background: var(--gold); color: var(--green-deep); border-color: var(--gold); }
.mslide-prev { left: 14px; } .mslide-next { right: 14px; }
.mslide-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 4; display: flex; justify-content: center; gap: 8px; }
.mslide-dot { width: 9px; height: 9px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.4); border: 0; padding: 0; transition: .25s; }
.mslide-dot.is-on { background: var(--gold-light); width: 24px; border-radius: 6px; }
@media (max-width: 560px) { .mslide { aspect-ratio: 4 / 3; } .mslide-cap { font-size: .95rem; padding: 34px 16px 26px; } .mslide-arrow { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .mslide-slide { transition: none; } .mslide-img { animation: none !important; } }

/* Gallery category filter */
.mgal-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px auto 4px; max-width: 780px; }
.mgal-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--sans); font-size: .84rem; font-weight: 600; letter-spacing: .02em;
  color: var(--green); background: var(--paper); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px; transition: .25s var(--ease-soft);
}
.mgal-chip:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.mgal-chip.is-on { color: #fff; background: var(--green); border-color: var(--green); }
.mgal-chip-n {
  font-size: .72rem; min-width: 20px; text-align: center; padding: 1px 6px; border-radius: 999px;
  background: rgba(197,160,89,.22); color: var(--gold-dark);
}
.mgal-chip.is-on .mgal-chip-n { background: rgba(255,255,255,.22); color: #fff; }
.mgal-item.is-hidden { display: none; }

/* ---------- Royal live chat ---------- */
.rchat-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--green-deep);
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); border: 1px solid rgba(212,175,55,.6);
  box-shadow: 0 10px 26px rgba(0,0,0,.35); transition: transform .25s var(--ease-soft), opacity .25s;
}
.rchat-launch svg { width: 30px; height: 30px; }
.rchat-launch:hover { transform: translateY(-3px) scale(1.04); }
.rchat-launch.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }
.rchat-launch__dot { position: absolute; top: 8px; right: 8px; width: 12px; height: 12px; border-radius: 50%; background: #3ecf6a; border: 2px solid #fff; }
.rchat {
  position: fixed; right: 22px; bottom: 22px; z-index: 151; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 44px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  background: var(--paper); border: 1px solid rgba(212,175,55,.5); box-shadow: 0 30px 70px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(20px) scale(.98); transform-origin: bottom right; pointer-events: none;
  transition: opacity .3s var(--ease-soft), transform .3s var(--ease-soft);
}
.rchat.is-open { opacity: 1; transform: none; pointer-events: auto; }
.rchat-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; color: #f4ecd7;
  background: linear-gradient(135deg, var(--green), var(--green-deep)); border-bottom: 1px solid rgba(212,175,55,.4); }
.rchat-head__crest { width: 40px; height: auto; }
.rchat-head__t { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.rchat-head__t strong { font-family: var(--serif); font-size: 1.08rem; }
.rchat-head__t span { font-size: .72rem; color: #bcd8c8; }
.rchat-close { width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; color: #f4ecd7; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.rchat-close svg { width: 18px; height: 18px; }
.rchat-close:hover { background: var(--gold); color: var(--green-deep); }
.rchat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.rchat-msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.rchat-msg--bot { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.rchat-msg--you { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.rchat-link { display: inline-block; margin-top: 6px; color: var(--gold-dark); font-weight: 600; font-size: .86rem; }
.rchat-msg--you .rchat-link { color: var(--gold-light); }
.rchat-typing { display: inline-flex; gap: 4px; align-items: center; }
.rchat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: rchatDot 1s infinite; }
.rchat-typing span:nth-child(2) { animation-delay: .15s; } .rchat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes rchatDot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.rchat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: var(--cream); }
.rchat-chip { cursor: pointer; font-size: .76rem; font-weight: 500; color: var(--green); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; transition: .2s; }
.rchat-chip:hover { border-color: var(--gold); background: var(--cream-2); }
.rchat-human { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 10px 12px 0; padding: 11px; border-radius: 12px;
  background: #25d366; color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; transition: filter .2s; }
.rchat-human:hover { filter: brightness(1.05); }
.rchat-human__wa svg { width: 20px; height: 20px; display: block; }
.rchat-form { display: flex; gap: 8px; padding: 12px; background: var(--cream); }
.rchat-input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-family: var(--sans); font-size: .95rem; outline: 0; background: #fff; }
.rchat-input:focus { border-color: var(--gold); }
.rchat-send { width: 46px; border: 0; border-radius: 10px; cursor: pointer; background: var(--green); color: #fff; display: grid; place-items: center; }
.rchat-send svg { width: 20px; height: 20px; }
.rchat-send:hover { background: var(--green-soft); }
@media (max-width: 560px) {
  .rchat { right: 8px; left: 8px; bottom: 8px; width: auto; height: min(72vh, 560px); }
  .rchat-launch { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ---------- Family-tree AI genealogy answer ---------- */
.rft-answer { display: none; position: relative; margin: 6px 0 20px; padding: 22px 24px; border-radius: 14px;
  background: linear-gradient(160deg, var(--green), var(--green-deep)); color: #f2ead3;
  border: 1px solid rgba(212,175,55,.4); box-shadow: var(--shadow-md); }
.rft-answer.is-on { display: block; animation: rftAnsIn .35s var(--ease-out); }
@keyframes rftAnsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rft-answer h4 { font-family: var(--display); color: var(--gold-light); font-size: 1.15rem; margin: 0 0 8px; letter-spacing: .01em; }
.rft-answer p { margin: 0 0 12px; line-height: 1.55; color: #e6dcc2; }
.rft-answer strong { color: #fff; }
.rft-ans-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(212,175,55,.4);
  background: rgba(255,255,255,.08); color: #f2ead3; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.rft-ans-close:hover { background: var(--gold); color: var(--green-deep); }
.rft-ans-chain { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: g; }
.rft-ans-chain li { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 12px; border-radius: 10px;
  background: rgba(255,255,255,.05); border-left: 3px solid var(--gold); }
.rft-ans-chain li:not(:last-child)::after { content: "↓"; position: absolute; left: 22px; bottom: -13px; color: var(--gold); font-size: .8rem; z-index: 1; }
.rft-ans-gen { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-deep);
  background: var(--gold); border-radius: 999px; padding: 2px 8px; }
.rft-ans-name { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: #fff; text-align: left; }
.rft-ans-name:hover { color: var(--gold-light); text-decoration: underline; }
.rft-ans-chain em { color: #cbbf9f; font-size: .86rem; font-style: italic; }
.rft-ans-badge { font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-light);
  border: 1px solid rgba(212,175,55,.5); border-radius: 999px; padding: 2px 7px; }

/* ---------- Footer crest + flag (bottom-right sign) ---------- */
.site-footer > .kente-band { height: 10px; }
/* crest + kente flag, lifted to sit just above the bottom copyright line, right-aligned */
.footer-sign { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin: 30px 0 6px; }
.footer-sign__crest { width: 66px; height: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
@media (min-width: 901px) { .footer-sign { padding-right: 78px; } } /* keep clear of the floating chat button */
@media (max-width: 900px) { .footer-sign { justify-content: center; } }
.kente-flag {
  --kg: #14603f; --ky: var(--gold); position: relative; display: block; width: 96px; height: 66px; border-radius: 2px;
  background:
    conic-gradient(from 0deg, var(--kg) 0 25%, var(--ky) 0 50%, var(--kg) 0 75%, var(--ky) 0);
  background-size: 46px 46px;
  box-shadow: 0 8px 18px rgba(0,0,0,.4); border: 1px solid rgba(212,175,55,.45);
}
.kente-flag::before { /* woven selvage band on the pole edge */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 13px;
  background: repeating-linear-gradient(0deg, var(--ky) 0 4px, var(--kg) 4px 8px);
  border-right: 1px solid rgba(255,255,255,.18);
}
.kente-flag::after { /* fringe along the free edge */
  content: ""; position: absolute; right: -8px; top: 3px; bottom: 3px; width: 9px;
  background: repeating-linear-gradient(0deg, var(--gold-dark) 0 2px, transparent 2px 5px);
}
.kente-flag--flip { transform: scaleX(-1); }
@media (max-width: 560px) { .footer-sign { gap: 12px; } .kente-flag { width: 72px; height: 50px; background-size: 36px 36px; } .footer-sign__crest { width: 58px; } }

/* ---------- AI search trigger (in the nav) ---------- */
.nav-ai { display: flex; align-items: center; }
.ai-search-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--green-deep); border: 1px solid var(--gold);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  padding: 7px 14px 7px 11px; border-radius: 999px; transition: .22s var(--ease-soft);
  box-shadow: 0 2px 10px rgba(197,160,89,.35);
}
.ai-search-btn svg { width: 20px; height: 20px; }
.ai-search-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(197,160,89,.5); filter: brightness(1.04); }
.ai-search-btn__txt { line-height: 1; }

/* ---------- AI assistant overlay ---------- */
.ais {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center;
  padding: 7vh 20px 40px; overflow-y: auto;
  background: radial-gradient(circle at 50% 0%, rgba(28,77,58,.55), rgba(6,18,12,.9) 60%), rgba(6,18,12,.86);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-soft), visibility .3s;
}
.ais.is-open { opacity: 1; visibility: visible; }
.ais-close {
  position: fixed; top: 20px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #f4ecd7;
  background: rgba(255,255,255,.08); border: 1px solid rgba(212,175,55,.4); transition: .2s;
}
.ais-close svg { width: 22px; height: 22px; }
.ais-close:hover { background: var(--gold); color: var(--green-deep); border-color: var(--gold); }
.ais-panel {
  width: 100%; max-width: 720px; text-align: center; transform: translateY(16px);
  transition: transform .35s var(--ease-soft);
}
.ais.is-open .ais-panel { transform: translateY(0); }
.ais-crest { width: 108px; height: auto; margin: 0 auto 14px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
.ais-greet { font-family: var(--display); color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: .01em; margin: 0; }
.ais-sub { color: #cdbf9f; font-size: .98rem; line-height: 1.5; max-width: 46ch; margin: 10px auto 26px; }
.ais-form {
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px;
  padding: 8px 8px 8px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.4); border: 1px solid rgba(212,175,55,.5);
}
.ais-input { flex: 1; border: 0; outline: 0; font-family: var(--sans); font-size: 1.12rem; color: var(--ink); background: transparent; padding: 12px 0; min-width: 0; }
.ais-input::placeholder { color: #9a927f; }
.ais-mic, .ais-do {
  width: 50px; height: 50px; border-radius: 11px; border: 0; cursor: pointer; flex: 0 0 auto;
  display: grid; place-items: center; transition: .2s var(--ease-soft);
}
.ais-mic svg, .ais-do svg { width: 22px; height: 22px; }
.ais-mic { background: var(--cream-2); color: var(--green); }
.ais-mic:hover { background: var(--gold-light); }
.ais-mic.is-live { background: var(--royal-red, #8f2c2c); color: #fff; animation: aisPulse 1.1s ease-in-out infinite; }
@keyframes aisPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(143,44,44,.55); } 50% { box-shadow: 0 0 0 10px rgba(143,44,44,0); } }
.ais-do { background: var(--green); color: #fff; }
.ais-do:hover { background: var(--green-soft); }
.ais-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px auto 0; max-width: 640px; }
.ais-chip {
  cursor: pointer; font-family: var(--sans); font-size: .8rem; font-weight: 500; color: #ece3cb;
  background: rgba(255,255,255,.07); border: 1px solid rgba(212,175,55,.32); border-radius: 999px;
  padding: 7px 14px; transition: .2s;
}
.ais-chip:hover { background: rgba(212,175,55,.22); border-color: var(--gold); color: #fff; }
.ais-results { margin-top: 26px; text-align: left; }
.ais-answer { color: #f4ecd7; font-family: var(--serif); font-size: 1.18rem; line-height: 1.5; margin: 0 0 16px; }
.ais-more { color: var(--gold-light); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin: 20px 0 10px; }
.ais-card {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; margin-bottom: 10px;
  padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(212,175,55,.28); transition: .2s var(--ease-soft);
}
.ais-card:hover { background: rgba(212,175,55,.14); border-color: var(--gold); transform: translateX(3px); }
.ais-card.is-primary { background: linear-gradient(160deg, rgba(28,77,58,.6), rgba(10,42,31,.6)); border-color: rgba(212,175,55,.5); }
.ais-card__t { font-family: var(--serif); color: #fff; font-size: 1.15rem; font-weight: 600; }
.ais-card__a { color: #cdbf9f; font-size: .92rem; line-height: 1.45; }
.ais-card__go { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-light); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.ais-card__go svg { width: 16px; height: 16px; }
.ais-voice {
  display: inline-flex; align-items: center; gap: 8px; margin: 26px auto 0; cursor: pointer;
  color: #cdbf9f; background: transparent; border: 1px solid rgba(212,175,55,.28); border-radius: 999px;
  padding: 8px 16px; font-family: var(--sans); font-size: .82rem; font-weight: 600; transition: .2s;
}
.ais-voice svg { width: 18px; height: 18px; }
.ais-voice[aria-pressed="false"] { opacity: .6; }
.ais-voice:hover { border-color: var(--gold); color: #fff; }
@media (max-width: 560px) {
  .ais { padding-top: 5vh; }
  .ais-input { font-size: 1rem; }
  .ais-mic, .ais-do { width: 44px; height: 44px; }
  .ai-search-btn__txt { display: none; }
  .ai-search-btn { padding: 8px; }
}

/* Floating gallery control bar (prev · expand-all · next · share) */
.gal-bar {
  position: fixed; left: 50%; bottom: 22px; z-index: 55;
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(12, 20, 16, .88); backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(212, 175, 55, .42); box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  transform: translate(-50%, 150%); opacity: 0; pointer-events: none;
  transition: transform .45s var(--ease-soft), opacity .35s var(--ease-soft);
}
.gal-bar.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.gal-bar.is-empty { display: none; }
.gal-nav, .gal-grid, .gal-share {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #f4ecd7; background: transparent;
  transition: background .2s var(--ease-soft), color .2s var(--ease-soft), transform .2s;
}
.gal-nav:hover:not(:disabled), .gal-share:hover { background: rgba(212, 175, 55, .2); }
.gal-nav:disabled { opacity: .3; cursor: default; }
.gal-grid { background: rgba(212, 175, 55, .16); }
.gal-grid:hover { background: rgba(212, 175, 55, .3); }
.gal-grid[aria-pressed="true"] { background: var(--gold); color: var(--green-deep); }
.gal-count { min-width: 46px; text-align: center; font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: #cbbf9f; }
.gal-sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .16); margin: 0 3px; }
.gal-share.copied { background: var(--gold); color: var(--green-deep); }
/* keep the last row clear of the floating bar */
.gal-section { padding-bottom: 96px; }
@media (max-width: 560px) { .gal-bar { bottom: 14px; gap: 2px; padding: 7px 10px; } .gal-nav, .gal-grid, .gal-share { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .gal-bar { transition: opacity .2s; } }

.mgal { columns: 3 320px; column-gap: 16px; margin-top: 26px; }
@media (max-width: 900px) { .mgal { columns: 2 240px; } }
@media (max-width: 560px) { .mgal { columns: 1; } }
.mgal-item {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative; border-radius: 14px; overflow: hidden; break-inside: avoid; -webkit-column-break-inside: avoid;
  box-shadow: var(--shadow-sm); transition: transform .45s var(--ease-lux), box-shadow .45s var(--ease-lux);
}
.mgal-item img { display: block; width: 100%; height: auto; }
.mgal-item:hover, .mgal-item:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mgal-item::after { content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(210,154,34,.3); }
.mgal-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; text-align: left;
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.2; color: #fff;
  background: linear-gradient(transparent, rgba(12,20,15,.86));
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease-lux), transform .4s var(--ease-lux);
}
.mgal-item:hover .mgal-cap, .mgal-item:focus-visible .mgal-cap { opacity: 1; transform: none; }
@media (hover: none) { .mgal-cap { opacity: 1; transform: none; } }

.mlb { position: fixed; inset: 0; z-index: 300; display: none; background: rgba(12,10,8,.94); }
.mlb.open { display: flex; align-items: center; justify-content: center; }
.mlb-stage { max-width: 92vw; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
.mlb-img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); border: 1px solid rgba(231,192,99,.25); opacity: 0; transition: opacity .4s var(--ease-lux); }
.mlb-img.in { opacity: 1; }
.mlb-close, .mlb-prev, .mlb-next {
  position: absolute; z-index: 2; cursor: pointer; color: #fff; background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
  width: 52px; height: 52px; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; transition: background .2s, color .2s, transform .2s;
}
.mlb-close:hover, .mlb-prev:hover, .mlb-next:hover { background: var(--gold); color: #23180a; }
.mlb-close { top: 18px; right: 18px; font-size: 1.5rem; }
.mlb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.mlb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.mlb-prev:hover { transform: translateY(-50%) scale(1.06); }
.mlb-next:hover { transform: translateY(-50%) scale(1.06); }
.mlb-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px clamp(16px,4vw,40px); background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.mlb-cap { color: #f3ead3; font-family: var(--serif); font-size: 1.15rem; margin: 0; }
.mlb-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.mlb-count { color: #cbbf9f; font-size: .85rem; }
.mlb-gridbtn, .mlb-share { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: background .2s, color .2s; }
.mlb-gridbtn { width: 40px; height: 40px; border-radius: 8px; font-size: 1rem; }
.mlb-share { padding: 0 16px; height: 40px; border-radius: 999px; font-weight: 600; font-size: .85rem; }
.mlb-gridbtn:hover, .mlb-share:hover { background: var(--gold); color: #23180a; }
.mlb-grid { position: absolute; inset: 0; z-index: 3; display: none; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; padding: clamp(16px,4vw,40px); overflow-y: auto; background: rgba(12,10,8,.97); }
.mlb.grid-open .mlb-grid { display: grid; align-content: start; }
.mlb-grid button { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.mlb-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mlb-grid button:hover img { transform: scale(1.06); }
.mlb-grid button.is-on { outline: 3px solid var(--gold); outline-offset: -3px; }
@media (max-width: 640px) { .mlb-prev, .mlb-next { width: 42px; height: 42px; font-size: 1.4rem; } .mlb-cap { font-size: 1rem; } }

/* =========================================================
   HOMEPAGE HERO SLIDESHOW — cinematic, royal, accessible
   ========================================================= */
.hero-slider { position: relative; width: 100%; height: 100vh; min-height: 520px; overflow: hidden; background: #1a140f; isolation: isolate; }
@media (max-width: 1024px) { .hero-slider { height: 80vh; } }
@media (max-width: 640px) { .hero-slider { height: 70vh; min-height: 460px; } }
.hs-track, .hs-slide { position: absolute; inset: 0; }
.hs-slide { opacity: 0; transition: opacity 1.5s ease; will-change: opacity; }
.hs-slide.is-active { opacity: 1; z-index: 1; }
/* Blurred backdrop fills the frame so the main image can show in full (no crop) */
.hs-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(30px) brightness(.45) saturate(1.05); transform: scale(1.18); z-index: 0; }
/* Main image is CONTAINED so the whole portrait — head included — is always visible */
.hs-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center 40%; display: block; transform: scale(1); }
.hs-slide.is-active .hs-ken-in { animation: kenIn 7s ease-out forwards; }
.hs-slide.is-active .hs-ken-out { animation: kenOut 7s ease-out forwards; }
/* gentle zoom; zoom-out ENDS at scale(1) = the full image, nothing cropped */
@keyframes kenIn { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes kenOut { from { transform: scale(1.05); } to { transform: scale(1); } }

.hs-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(26,20,15,.58), rgba(26,20,15,.32) 42%, rgba(26,20,15,.66)); }
.hs-overlay::after { content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(circle, rgba(231,192,99,.6) 1px, transparent 1.6px); background-size: 26px 26px; }

.hs-particles { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.hs-particles i { position: absolute; bottom: -10px; border-radius: 50%; background: radial-gradient(circle, rgba(231,192,99,.9), rgba(210,154,34,0)); animation: hsFloat linear infinite; }
@keyframes hsFloat { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .8; } 88% { opacity: .5; } 100% { transform: translateY(-108vh); opacity: 0; } }

.hs-content { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 22px; }
.hs-eyebrow { color: var(--gold-light); letter-spacing: .34em; text-transform: uppercase; font-size: .82rem; font-weight: 600; margin: 0; opacity: 0; transform: translateY(20px); }
.hs-title { font-family: var(--display); color: #fff; font-weight: 600; font-size: clamp(2rem, 5.6vw, 4.2rem); line-height: 1.08; letter-spacing: .01em; margin: 12px 0 14px; text-shadow: 0 6px 34px rgba(0,0,0,.55); opacity: 0; transform: translateY(26px); }
.hs-sub { color: #f3ecda; font-size: clamp(1rem, 2vw, 1.35rem); letter-spacing: .02em; margin: 0; opacity: 0; transform: translateY(20px); min-height: 1.5em; }
.hs-caret { display: inline-block; width: 2px; height: 1.05em; background: var(--gold-light); margin-left: 3px; vertical-align: -2px; animation: hsCaret 1s step-end infinite; }
@keyframes hsCaret { 50% { opacity: 0; } }
.hs-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 28px; opacity: 0; transform: translateY(20px); }
.hero-slider.is-ready .hs-eyebrow { animation: hsRise .9s var(--ease-out) .3s forwards; }
.hero-slider.is-ready .hs-title   { animation: hsRise 1s var(--ease-out) .46s forwards; }
.hero-slider.is-ready .hs-sub     { animation: hsRise .9s var(--ease-out) .64s forwards; }
.hero-slider.is-ready .hs-actions { animation: hsRise .9s var(--ease-out) .82s forwards; }
@keyframes hsRise { to { opacity: 1; transform: none; } }

.hs-caption { position: absolute; left: 0; right: 0; bottom: 74px; z-index: 4; text-align: center; color: #f3ecda; padding: 0 22px; pointer-events: none; }
.hs-caption .ct { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--gold-light); font-weight: 600; }
.hs-caption .cs { display: block; font-size: .92rem; opacity: .92; }
.hs-caption .cc { display: block; font-size: .74rem; opacity: .72; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.hs-caption.swap { animation: hsCap 1.1s ease; }
@keyframes hsCap { 0% { opacity: 0; transform: translateY(12px); } 45% { opacity: 0; } 100% { opacity: 1; transform: none; } }

.hs-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(231,192,99,.5); background: rgba(26,20,15,.32); color: var(--gold-light); font-size: 1.7rem; line-height: 1; cursor: pointer;
  backdrop-filter: blur(5px); display: grid; place-items: center; transition: background .25s var(--ease-lux), color .25s, border-color .25s, transform .25s; }
.hs-arrow:hover { background: var(--gold); color: #23180a; border-color: var(--gold); }
.hs-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hs-prev { left: 20px; } .hs-next { right: 20px; }
@media (max-width: 640px) {
  .hs-arrow { width: 40px; height: 40px; font-size: 1.35rem; }
  .hs-prev { left: 10px; } .hs-next { right: 10px; }
  .hs-caption { display: none; }              /* prevents overlap with the hero title & buttons */
  .hs-content { justify-content: center; padding: 0 20px 40px; }
  .hs-title { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hs-actions { margin-top: 20px; gap: 10px; }
  .hs-actions .btn { width: 100%; max-width: 320px; }
}

.hs-dots { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 5; display: flex; gap: 10px; justify-content: center; }
.hs-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.42); cursor: pointer; transition: all .3s var(--ease-lux); }
.hs-dot:hover { background: rgba(255,255,255,.7); }
.hs-dot.is-on { background: var(--gold); width: 26px; border-radius: 6px; }
.hs-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .hs-slide.is-active .hs-ken-in, .hs-slide.is-active .hs-ken-out { animation: none; }
  .hs-particles { display: none; }
  .hs-caption.swap { animation: none; }
  .hero-slider.is-ready .hs-eyebrow, .hero-slider.is-ready .hs-title,
  .hero-slider.is-ready .hs-sub, .hero-slider.is-ready .hs-actions { animation: none; opacity: 1; transform: none; }
}
/* High-contrast mode */
@media (forced-colors: active) { .hs-overlay { background: rgba(0,0,0,.7); } .hs-title, .hs-sub { color: CanvasText; } }

/* =========================================================
   Reduced motion + no-JS safety net (keep last)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  html.reveal-ready [data-reveal],
  html.reveal-ready .hero__eyebrow,
  html.reveal-ready .hero h1,
  html.reveal-ready .hero__text,
  html.reveal-ready .hero__actions { opacity: 1 !important; transform: none !important; }
  html.reveal-ready [data-reveal] .kente-rule { width: 90px !important; }
  html.reveal-ready [data-reveal] .crest-divider::before,
  html.reveal-ready [data-reveal] .crest-divider::after { width: min(120px, 22vw) !important; }
  .role::before, .card.feature::before { display: none; }
  .hero__cue { display: none; }
}
