/* ==========================================================================
   EDO STATE ASSOCIATION OF GHANA — "The Bronze Court" design system
   Palette rooted in Benin royal symbolism: coral (ivie), brass, kaolin ivory.
   Type: Fraunces (display serif) + Inter (UI/body).
   ========================================================================== */

:root {
  /* Ink & surfaces — dark bronze family */
  --ink-950: #0F0C09;
  --ink-900: #16110C;
  --ink-850: #1C1610;
  --ink-800: #241C13;
  --ink-750: #2C2318;

  /* Kaolin ivory family */
  --ivory-50: #F8F4EC;
  --ivory-100: #F1EADC;
  --ivory-200: #E7DECB;

  /* Text */
  --text-on-dark: #F4EDE0;
  --muted-on-dark: #AFA492;
  --text-on-light: #221A11;
  --muted-on-light: #6F6455;

  /* Accents */
  --brass: #C9A24B;
  --brass-hi: #E8C97A;
  --brass-deep: #A67C2E;
  --coral: #C0442E;
  --coral-hi: #D75B44;
  --coral-deep: #93331F;

  --hairline-dark: rgba(201, 162, 75, 0.22);
  --hairline-light: rgba(120, 94, 40, 0.25);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Rhythm — 8px scale */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: 4rem;
  --s-6: 6.5rem;
  --s-7: 10.5rem;
  --section-pad: clamp(5.5rem, 13vh, 10.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 76rem;
  --container-wide: 88rem;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-on-dark);
  background: var(--ink-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 480; line-height: 1.06; letter-spacing: -0.015em; }
p { margin: 0 0 1.1em; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--coral); color: #fff; }

/* Focus */
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout helpers ---------- */
.container { width: min(var(--container), 92vw); margin-inline: auto; }
.container-wide { width: min(var(--container-wide), 94vw); margin-inline: auto; }
.section { padding-block: var(--section-pad); position: relative; }
.section--light { background: var(--ivory-50); color: var(--text-on-light); }
.section--light-alt { background: var(--ivory-100); color: var(--text-on-light); }
.section--dark { background: var(--ink-950); }
.section--dark-alt { background: var(--ink-900); }
.section--panel { background: var(--ink-850); }

/* Guilloché lattice texture for dark sections */
.texture-dark {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23C9A24B' stroke-opacity='0.05' stroke-width='1'%3E%3Ccircle cx='48' cy='48' r='30'/%3E%3Ccircle cx='0' cy='0' r='30'/%3E%3Ccircle cx='96' cy='0' r='30'/%3E%3Ccircle cx='0' cy='96' r='30'/%3E%3Ccircle cx='96' cy='96' r='30'/%3E%3C/g%3E%3C/svg%3E");
}
/* Subtle lattice for light sections */
.texture-light {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23A67C2E' stroke-opacity='0.06' stroke-width='1'%3E%3Ccircle cx='48' cy='48' r='30'/%3E%3Ccircle cx='0' cy='0' r='30'/%3E%3Ccircle cx='96' cy='0' r='30'/%3E%3Ccircle cx='0' cy='96' r='30'/%3E%3Ccircle cx='96' cy='96' r='30'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Typography components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--brass);
  opacity: 0.7;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--brass);
  opacity: 0.7;
}
.eyebrow .edo-word { color: var(--brass-hi); font-weight: 700; }

/* WCAG AA: darker brass accents on light surfaces */
.section--light .eyebrow, .section--light-alt .eyebrow,
.section--light .pillar .p-num, .section--light-alt .pillar .p-num,
.section--light .proverb .p-source, .section--light-alt .proverb .p-source,
.section--light .event-tag, .section--light-alt .event-tag,
.section--light .portrait-meta span, .section--light-alt .portrait-meta span,
.section--light .greeting i, .section--light-alt .greeting i,
.section--light .voice-person span, .section--light-alt .voice-person span,
.section--light .eyebrow .edo-word, .section--light-alt .eyebrow .edo-word { color: #7A5A1E; }

.display-xl {
  font-size: clamp(2.9rem, 7.4vw, 6.6rem);
  line-height: 1.01;
}
.display-lg { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.display-md { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.display-sm { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  max-width: 46rem;
}
.muted { color: var(--muted-on-dark); }
.section--light .muted, .section--light-alt .muted { color: var(--muted-on-light); }

.serif-i { font-family: var(--font-display); font-style: italic; font-weight: 420; }
.gold { color: var(--brass); }
.coral-text { color: var(--coral-hi); }

.section-head { max-width: 52rem; margin-bottom: clamp(2.8rem, 6vh, 4.8rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--s-3); }

.section-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.6rem;
}

/* ---------- Coral bead divider ---------- */
.beads {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  line-height: 0;
}
.beads i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: inset -1px -1px 1px rgba(0,0,0,0.35), 0 0 0 0 transparent;
}
.beads i:nth-child(odd) { width: 5px; height: 5px; opacity: 0.85; }
.beads i:first-child, .beads i:last-child { width: 4px; height: 4px; opacity: 0.6; }
.beads--rule { width: 100%; }
.beads--rule::before, .beads--rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-dark));
}
.beads--rule::after { background: linear-gradient(90deg, var(--hairline-dark), transparent); }
.section--light .beads--rule::before, .section--light-alt .beads--rule::before { background: linear-gradient(90deg, transparent, var(--hairline-light)); }
.section--light .beads--rule::after, .section--light-alt .beads--rule::after { background: linear-gradient(90deg, var(--hairline-light), transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.02rem 1.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all 0.35s var(--ease-out);
  white-space: nowrap;
}
.btn svg { transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--coral { background: var(--coral); color: #FFF6EC; }
.btn--coral:hover { background: var(--coral-deep); }

.btn--outline-gold { border-color: var(--brass); color: var(--brass-hi); background: transparent; }
.btn--outline-gold:hover { background: var(--brass); color: var(--ink-950); }

.btn--outline-ink { border-color: var(--text-on-light); color: var(--text-on-light); background: transparent; }
.btn--outline-ink:hover { background: var(--text-on-light); color: var(--ivory-50); }

.btn--ghost {
  padding: 0.4rem 0;
  border: 0;
  color: var(--brass);
  background: none;
  letter-spacing: 0.14em;
}
.btn--ghost::after { display: none; }

/* Link underline grow */
.link-line {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left 100%;
  transition: background-size 0.35s var(--ease-out);
  padding-bottom: 2px;
}
.link-line:hover { background-size: 100% 1px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
  padding-block: 0.9rem;
}
.site-header.scrolled {
  background: rgba(15, 12, 9, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline-dark);
  padding-block: 0.45rem;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.brand-word { line-height: 1.12; }
.brand-word b {
  display: block;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 0.98rem;
  letter-spacing: 0.045em;
  color: var(--text-on-dark);
}
.brand-word span {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  opacity: 0.85;
  transition: opacity 0.25s, color 0.25s;
}
.nav-links a:hover { opacity: 1; color: var(--brass-hi); }
.nav-links a.active { color: var(--brass); opacity: 1; }
.nav-cta { margin-left: 0.4rem; padding: 0.72rem 1.35rem; font-size: 0.72rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 46px; height: 46px;
  position: relative;
  z-index: 120;
}
.nav-toggle i, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 26px; height: 2px;
  background: var(--text-on-dark);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
body.menu-open .site-header { z-index: 120; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .nav-toggle::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle i { opacity: 0; }
body.menu-open .nav-toggle::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: linear-gradient(160deg, var(--ink-950) 0%, var(--ink-800) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6.5rem 8vw 2.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { overflow: hidden; }
.mobile-menu a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vh, 2.6rem);
  padding-block: 0.3rem;
  color: var(--text-on-dark);
  transform: translateY(110%);
  transition: transform 0.6s var(--ease-out), color 0.3s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--brass-hi); }
body.menu-open .mobile-menu a { transform: translateY(0); }
.mobile-menu .menu-foot { margin-top: var(--s-4); font-size: 0.8rem; color: var(--muted-on-dark); letter-spacing: 0.08em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 16s var(--ease-out) both;
}
@keyframes kenburns {
  from { transform: scale(1.1); }
  to { transform: scale(1.0); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,12,9,0.55) 0%, rgba(15,12,9,0.25) 40%, rgba(15,12,9,0.88) 88%),
    linear-gradient(100deg, rgba(15,12,9,0.65) 0%, rgba(15,12,9,0.1) 60%);
}
.hero-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  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='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  width: min(var(--container-wide), 92vw);
  margin-inline: auto;
  padding-block: clamp(6rem, 14vh, 9rem) clamp(4rem, 9vh, 6.5rem);
}
.hero h1 { max-width: 17ch; color: #FBF6EC; text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.hero .lede { color: #EDE4D3; margin-top: var(--s-3); text-shadow: 0 1px 14px rgba(0,0,0,0.4); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--s-4); }

/* Kinetic line reveal — padding+negative margin so descenders (g, y, italics) aren't clipped */
.line-reveal .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  padding-right: 0.12em;
}
.line-reveal .line > span {
  display: inline-block;
  transform: translateY(118%);
  animation: lineUp 1.1s var(--ease-out) forwards;
}
.line-reveal .line:nth-child(2) > span { animation-delay: 0.14s; }
.line-reveal .line:nth-child(3) > span { animation-delay: 0.28s; }
.line-reveal .line:nth-child(4) > span { animation-delay: 0.42s; }
@keyframes lineUp { to { transform: translateY(0); } }

/* Anniversary roundel */
.roundel {
  position: absolute;
  top: clamp(5.5rem, 12vh, 8rem);
  right: clamp(1.2rem, 5vw, 4.5rem);
  width: clamp(96px, 11vw, 138px);
  height: clamp(96px, 11vw, 138px);
  z-index: 5;
}
.roundel svg { width: 100%; height: 100%; overflow: visible; }
.roundel .spin { animation: spin 28s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.roundel text {
  font-family: var(--font-body);
  font-size: 8.4px;
  font-weight: 600;
  letter-spacing: 0.28em;
  fill: var(--brass-hi);
  text-transform: uppercase;
}
.roundel .core { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.02em; fill: #FBF6EC; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.7);
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--brass), transparent);
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  padding: clamp(9rem, 22vh, 13.5rem) 0 clamp(3.4rem, 8vh, 5.6rem);
  overflow: hidden;
  isolation: isolate;
}
.page-hero h1 { color: #FBF6EC; }
.page-hero .lede { margin-top: var(--s-3); color: var(--muted-on-dark); }

/* ---------- Reveal system ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
.rv.in-view { opacity: 1; transform: none; }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-4) var(--s-3);
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  font-weight: 480;
  color: var(--brass-hi);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat b sup { font-size: 0.45em; color: var(--brass); }
.stat span {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.4rem; }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); }
@media (min-width: 980px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }

.pillar {
  position: relative;
  padding: 2.4rem 2rem 2.2rem;
  background: var(--ink-850);
  border: 1px solid var(--hairline-dark);
  border-radius: 3px;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, background 0.4s;
  overflow: hidden;
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(201,162,75,0.5); background: var(--ink-800); }
.pillar .p-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--brass);
  letter-spacing: 0.1em;
}
.pillar h3 { font-size: 1.35rem; margin: 1.1rem 0 0.7rem; color: var(--text-on-dark); }
.pillar p { font-size: 0.95rem; color: var(--muted-on-dark); margin: 0; }
.pillar .p-icon { color: var(--brass); margin-top: 1.4rem; }
.pillar::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--brass));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.pillar:hover::after { transform: scaleX(1); }

/* Light-section variant */
.section--light .pillar, .section--light-alt .pillar {
  background: #FFFDF8;
  border-color: var(--hairline-light);
  box-shadow: 0 1px 2px rgba(34,26,17,0.04);
}
.section--light .pillar:hover, .section--light-alt .pillar:hover { background: #fff; box-shadow: 0 18px 40px -18px rgba(34,26,17,0.18); }
.section--light .pillar h3, .section--light-alt .pillar h3 { color: var(--text-on-light); }
.section--light .pillar p, .section--light-alt .pillar p { color: var(--muted-on-light); }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
  gap: clamp(2.4rem, 6vw, 5.5rem);
  align-items: center;
}
.split-media {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  filter: sepia(0.06) saturate(1.04);
  transition: transform 1.2s var(--ease-out);
}
.split-media:hover img { transform: scale(1.035); }
.split-media--frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(232, 201, 122, 0.5);
  z-index: 2;
  pointer-events: none;
}
.split-media figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.6rem 1.2rem;
  background: linear-gradient(transparent, rgba(15,12,9,0.85));
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #EDE4D3;
  font-style: italic;
  font-family: var(--font-display);
  z-index: 1;
}
.split-media--wide img { aspect-ratio: 16 / 11; }

/* ---------- Film strip (horizontal scroll gallery) ---------- */
.film-strip {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding: 0.5rem 4vw 1.8rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--brass-deep) transparent;
}
.film-strip::-webkit-scrollbar { height: 4px; }
.film-strip::-webkit-scrollbar-thumb { background: var(--brass-deep); border-radius: 4px; }
.film-card {
  flex: 0 0 clamp(16rem, 26vw, 23rem);
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}
.film-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: sepia(0.08) saturate(1.05);
  transition: transform 0.9s var(--ease-out);
}
.film-card:hover img { transform: scale(1.05); }
.film-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.6rem 1.3rem 1.1rem;
  background: linear-gradient(transparent, rgba(15,12,9,0.9));
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: #F1E9D8;
}

/* ---------- Event rows ---------- */
.event-list { border-top: 1px solid var(--hairline-light); }
.section--dark .event-list, .section--dark-alt .event-list, .section--panel .event-list { border-color: var(--hairline-dark); }
.event-row {
  display: grid;
  grid-template-columns: 7.2rem 1fr auto;
  gap: 1.6rem;
  align-items: center;
  padding: 1.7rem 0.6rem;
  border-bottom: 1px solid var(--hairline-light);
  transition: background 0.35s, padding-left 0.35s var(--ease-out);
}
.section--dark .event-row, .section--dark-alt .event-row, .section--panel .event-row { border-color: var(--hairline-dark); }
.event-row:hover { background: rgba(201, 162, 75, 0.05); padding-left: 1.1rem; }
.event-date { text-align: center; line-height: 1.05; }
.event-date b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 480;
  color: var(--coral);
}
.event-date span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-on-light);
}
.section--dark .event-date span, .section--panel .event-date span { color: var(--muted-on-dark); }
.event-info h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.event-info p { margin: 0; font-size: 0.92rem; color: var(--muted-on-light); }
.section--dark .event-info p, .section--panel .event-info p { color: var(--muted-on-dark); }
.event-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  border: 1px solid var(--hairline-light);
  padding: 0.45rem 0.85rem;
  border-radius: 99px;
  white-space: nowrap;
}
.section--dark .event-tag, .section--panel .event-tag { color: var(--brass); border-color: var(--hairline-dark); }

/* ---------- Quotes / testimonials ---------- */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 1.4rem; }
.voice {
  position: relative;
  padding: 2.6rem 2.1rem 2.1rem;
  background: #FFFDF8;
  border: 1px solid var(--hairline-light);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
}
.voice::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 4.6rem;
  line-height: 0.6;
  color: var(--coral);
  opacity: 0.85;
  display: block;
  margin-bottom: 1.4rem;
}
.voice blockquote {
  margin: 0 0 1.6rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-on-light);
  flex: 1;
}
.voice-person { display: flex; align-items: center; gap: 0.9rem; }
.voice-person img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brass);
}
.voice-person b { display: block; font-size: 0.92rem; letter-spacing: 0.02em; }
.voice-person span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-deep); }

/* Dark variant */
.section--dark .voice, .section--dark-alt .voice, .section--panel .voice { background: var(--ink-850); border-color: var(--hairline-dark); }
.section--dark .voice blockquote, .section--dark-alt .voice blockquote, .section--panel .voice blockquote { color: var(--text-on-dark); }
.section--dark .voice-person span, .section--panel .voice-person span { color: var(--brass); }

/* ---------- Portrait grid (leadership) ---------- */
.portrait-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15.5rem, 100%), 1fr)); gap: 1.6rem; }
.portrait { position: relative; }
.portrait-img {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink-800);
}
.portrait-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(15,12,9,0.55));
  opacity: 0;
  transition: opacity 0.5s;
}
.portrait:hover .portrait-img::after { opacity: 1; }
.portrait-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  filter: sepia(0.07) saturate(1.03);
  transition: transform 0.9s var(--ease-out);
}
.portrait:hover .portrait-img img { transform: scale(1.045); }
.portrait-meta { padding: 1.1rem 0.2rem 0; border-bottom: 1px solid transparent; }
.portrait-meta b { display: block; font-family: var(--font-display); font-weight: 540; font-size: 1.12rem; letter-spacing: 0.01em; }
.portrait-meta span {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.section--dark .portrait-meta span, .section--dark-alt .portrait-meta span, .section--panel .portrait-meta span { color: var(--brass); }
.portrait-meta .term { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: var(--muted-on-light); letter-spacing: 0.04em; text-transform: none; font-weight: 500; }
.section--dark .portrait-meta .term, .section--dark-alt .portrait-meta .term { color: var(--muted-on-dark); }

.portrait--feature { grid-column: span 1; }

/* ---------- Timeline (sticky chapters) ---------- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: clamp(0.4rem, 3vw, 2.2rem);
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(var(--hairline-dark), var(--brass), var(--hairline-dark));
}
.chapter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr;
  gap: clamp(1.6rem, 5vw, 4rem);
  padding: clamp(2.4rem, 6vh, 4.4rem) 0 clamp(2.4rem, 6vh, 4.4rem) clamp(2.4rem, 6vw, 4.6rem);
}
.chapter::before {
  content: "";
  position: absolute;
  left: calc(clamp(0.4rem, 3vw, 2.2rem) - 5px);
  top: clamp(3.2rem, 7vh, 5.2rem);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--ink-950), 0 0 0 5px var(--hairline-dark);
}
.chapter-era { position: relative; }
.chapter-era .era-label {
  position: sticky;
  top: 7.5rem;
}
.chapter-era b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 480;
  color: var(--brass-hi);
  line-height: 1.1;
}
.chapter-era span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.chapter-body h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); color: var(--text-on-dark); margin-bottom: 1rem; }
.chapter-body p { color: var(--muted-on-dark); max-width: 56ch; }
.chapter-body .artifact {
  margin: 1.8rem 0 0.4rem;
  max-width: 26rem;
}
.chapter-body .artifact img {
  width: 100%;
  border-radius: 3px;
  background: var(--ink-850);
}
.chapter-body .artifact figcaption {
  margin-top: 0.7rem;
  font-size: 0.76rem;
  font-style: italic;
  font-family: var(--font-display);
  color: var(--muted-on-dark);
}

/* ---------- Symbol cards ---------- */
.symbol-card {
  padding: 2.3rem 1.9rem 2rem;
  background: var(--ink-850);
  border: 1px solid var(--hairline-dark);
  border-radius: 3px;
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
}
.symbol-card:hover { transform: translateY(-5px); border-color: rgba(201,162,75,0.5); }
.symbol-card .edo-name {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass-hi);
  font-size: 1rem;
}
.symbol-card h3 { font-size: 1.3rem; margin: 0.4rem 0 0.8rem; color: var(--text-on-dark); }
.symbol-card p { font-size: 0.92rem; color: var(--muted-on-dark); margin: 0; }
.symbol-card .s-glyph { color: var(--coral); margin-bottom: 1.3rem; }

/* ---------- Language / greeting cards ---------- */
.greeting-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13.5rem, 100%), 1fr)); gap: 1.2rem; }
.greeting {
  padding: 1.9rem 1.6rem;
  background: #FFFDF8;
  border: 1px solid var(--hairline-light);
  border-left: 3px solid var(--coral);
  border-radius: 3px;
}
.greeting b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 520;
  color: var(--text-on-light);
}
.greeting i {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--brass-deep);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.greeting span { display: block; margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted-on-light); }

/* ---------- Proverb ---------- */
.proverb {
  text-align: center;
  max-width: 54rem;
  margin-inline: auto;
  padding-block: clamp(1.6rem, 4vh, 3rem);
}
.proverb blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-style: italic;
  font-weight: 440;
  line-height: 1.3;
  color: var(--text-on-dark);
}
.section--light .proverb blockquote, .section--light-alt .proverb blockquote { color: var(--text-on-light); }
.proverb .p-source {
  display: block;
  margin-top: 1.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- Gallery masonry ---------- */
.masonry {
  columns: 3 18rem;
  column-gap: 1.3rem;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.3rem;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: none;
  display: block;
  width: 100%;
}
.masonry-item img {
  width: 100%;
  filter: sepia(0.07) saturate(1.04);
  transition: transform 0.9s var(--ease-out);
}
.masonry-item:hover img { transform: scale(1.04); }
.masonry-item figcaption, .masonry-item .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(15,12,9,0.88));
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: #F1E9D8;
  text-align: left;
}
.masonry-item img { height: auto; }

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: rgba(10, 8, 6, 0.94);
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox[open] { display: flex; }
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 3px;
}
.lightbox figcaption {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-display);
  font-style: italic;
  color: #EDE4D3;
  font-size: 1rem;
}
.lightbox .lb-close {
  position: absolute;
  top: 1.4rem; right: 1.8rem;
  background: none;
  border: 1px solid var(--hairline-dark);
  color: var(--text-on-dark);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: border-color 0.3s, color 0.3s;
}
.lightbox .lb-close:hover { border-color: var(--brass); color: var(--brass-hi); }
.lightbox::backdrop { background: transparent; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 160% at 85% 20%, rgba(192, 68, 46, 0.32), transparent 55%),
    radial-gradient(100% 140% at 10% 90%, rgba(201, 162, 75, 0.16), transparent 60%),
    var(--ink-900);
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
}
.cta-band .cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}
.cta-band h2 { color: #FBF6EC; }
.cta-band ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.cta-band li {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding-block: 0.55rem;
  color: var(--muted-on-dark);
  font-size: 0.98rem;
}
.cta-band li::before { content: "◆"; color: var(--coral); font-size: 0.6rem; flex-shrink: 0; }

/* ---------- Doc cards ---------- */
.doc-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem 1.9rem;
  background: #FFFDF8;
  border: 1px solid var(--hairline-light);
  border-radius: 3px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(34,26,17,0.25); }
.doc-card .d-icon { color: var(--coral); flex-shrink: 0; margin-top: 0.2rem; }
.doc-card h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.doc-card p { font-size: 0.92rem; color: var(--muted-on-light); margin-bottom: 1rem; }
.doc-card .btn--ghost { font-size: 0.74rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1.4rem; }
.step {
  counter-increment: step;
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--hairline-light);
  border-radius: 3px;
  background: #FFFDF8;
  position: relative;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 460;
  color: var(--coral);
  opacity: 0.9;
  display: block;
  line-height: 1;
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--muted-on-light); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 1.4rem; }
.contact-card {
  padding: 2.3rem 2rem;
  background: var(--ink-850);
  border: 1px solid var(--hairline-dark);
  border-radius: 3px;
  text-align: center;
}
.contact-card .c-icon { color: var(--brass); margin-bottom: 1.2rem; display: inline-flex; }
.contact-card h3 { font-size: 1.1rem; color: var(--text-on-dark); margin-bottom: 0.5rem; }
.contact-card p, .contact-card a { font-size: 0.95rem; color: var(--muted-on-dark); margin: 0; }
.contact-card a:hover { color: var(--brass-hi); }

.map-frame {
  border: 1px solid var(--hairline-dark);
  border-radius: 3px;
  overflow: hidden;
  filter: grayscale(0.85) sepia(0.14) contrast(1.02);
  transition: filter 0.6s;
}
.map-frame:hover { filter: grayscale(0.2) sepia(0.05); }
.map-frame iframe { display: block; width: 100%; height: clamp(20rem, 46vh, 28rem); border: 0; }

.contact-form { display: grid; gap: 1.1rem; }
.contact-form .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 1.1rem; }
.contact-form label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.5rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--ink-850);
  border: 1px solid var(--hairline-dark);
  border-radius: 2px;
  color: var(--text-on-dark);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brass); }
.contact-form textarea { min-height: 9.5rem; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-950);
  border-top: 1px solid var(--hairline-dark);
  padding: var(--s-6) 0 var(--s-3);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: var(--s-5);
}
.footer-brand img { width: 62px; margin-bottom: 1.1rem; }
.footer-brand .f-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-on-dark);
  line-height: 1.25;
  margin-bottom: 0.9rem;
}
.footer-brand p { font-size: 0.9rem; color: var(--muted-on-dark); max-width: 30ch; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.3rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding-block: 0.32rem; }
.footer-col a { font-size: 0.92rem; color: var(--muted-on-dark); transition: color 0.25s; }
.footer-col a:hover { color: var(--brass-hi); }
.footer-col address { font-style: normal; font-size: 0.92rem; color: var(--muted-on-dark); line-height: 1.8; }
.footer-edo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--brass-hi);
  margin-bottom: 0.4rem;
}
.footer-edo-sub { font-size: 0.82rem; color: var(--muted-on-dark); margin-bottom: 1.4rem; }
.social-row { display: flex; gap: 0.8rem; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--hairline-dark);
  border-radius: 50%;
  color: var(--muted-on-dark);
  transition: all 0.3s;
}
.social-row a:hover { border-color: var(--brass); color: var(--brass-hi); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid var(--hairline-dark);
  padding-top: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted-on-dark);
}
.footer-bottom a { color: var(--muted-on-dark); }
.footer-bottom a:hover { color: var(--brass-hi); }

/* ---------- Marquee (edo words strip) ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--hairline-dark);
  padding-block: 1.1rem;
  background: var(--ink-900);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted-on-dark);
  white-space: nowrap;
}
.marquee span b { color: var(--brass-hi); font-weight: 520; }
.marquee i { color: var(--coral); font-style: normal; font-size: 0.6rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-1 { margin-top: var(--s-1); } .mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); }
.center { text-align: center; }
.note {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted-on-dark);
  font-family: var(--font-display);
}
.section--light .note, .section--light-alt .note { color: var(--muted-on-light); }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.chip {
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--hairline-dark);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-on-dark);
}
.chip b { color: var(--brass-hi); font-weight: 600; }
.section--light .chip, .section--light-alt .chip { border-color: var(--hairline-light); color: var(--text-on-light); }
.section--light .chip b, .section--light-alt .chip b { color: var(--brass-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cta-band .cta-inner { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 4.6rem 1fr; }
  .event-row .event-tag { display: none; }
  .event-date b { font-size: 1.7rem; }
  .chapter { grid-template-columns: 1fr; gap: 0.9rem; }
  .chapter-era .era-label { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2 9rem; }
  .roundel { top: auto; bottom: 8.5rem; right: 1rem; }
  .scroll-cue { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .rv { opacity: 1; transform: none; }
  .line-reveal .line > span { transform: none; animation: none; }
}
