/* Avance Media Africa — main stylesheet */
:root {
	--red: #d0021b;
	--red-dark: #a3000f;
	--ink: #1b1a19;
	--charcoal: #24211f;
	--text: #45413d;
	--muted: #7a746d;
	--line: #e6dfd5;
	--sand: #f6f1ea;
	--paper: #fff;
	--gold: #e8a317;
	--green: #0f6b4f;
	--radius: 14px;
	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
	--container: 1240px;
	--kente: repeating-linear-gradient(90deg, var(--red) 0 48px, var(--gold) 48px 64px, var(--green) 64px 104px, var(--ink) 104px 112px, var(--gold) 112px 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.narrow-container { max-width: 820px; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn .arrow, .btn .icon { flex: none; transition: transform .2s; }
.btn .icon { width: 18px; height: 18px; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 24px 0; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--red); font-size: 15px; }
.text-link .icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; flex: none; }
.brand-logo { height: 34px; width: auto; }
.brand-africa { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--red); letter-spacing: .01em; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; gap: 4px; list-style: none; }
.nav-list > li { position: relative; }
.nav-list a { display: block; padding: 8px 11px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 8px; white-space: nowrap; }
.nav-list a:hover { background: var(--sand); color: var(--ink); }
.nav-list .current-menu-item > a, .nav-list .current_page_parent > a, .nav-list .current-menu-ancestor > a { color: var(--red); }
.nav-list .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav-list .sub-menu { list-style: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 11px 9px; }
.nav-toggle .bar { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle .bar:nth-child(3) { opacity: 0; }
.nav-open .nav-toggle .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--charcoal); color: #d9d3cc; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 20%, rgba(208,2,27,.28), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(232,163,23,.12), transparent 60%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero-title { color: #fff; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; margin-bottom: 26px; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-text { font-size: 18px; color: #ece7e1; max-width: 600px; }
.hero-text.muted { color: #b9b1a8; font-size: 16px; }
.hero-text strong { color: #fff; }
.eyebrow { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow-light, .section.dark .eyebrow { color: var(--gold); }
.hero-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-4deg) scale(1.04); }
.hero-mosaic .tile { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #333; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); animation: tile-in .8s both; }
.hero-mosaic .tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic .tile:nth-child(3n+2) { transform: translateY(28px); }
.hero-mosaic .tile:nth-child(2) { animation-delay: .08s; } .hero-mosaic .tile:nth-child(3) { animation-delay: .16s; }
.hero-mosaic .tile:nth-child(4) { animation-delay: .24s; } .hero-mosaic .tile:nth-child(5) { animation-delay: .32s; }
.hero-mosaic .tile:nth-child(6) { animation-delay: .4s; } .hero-mosaic .tile:nth-child(7) { animation-delay: .48s; }
.hero-mosaic .tile:nth-child(8) { animation-delay: .56s; } .hero-mosaic .tile:nth-child(9) { animation-delay: .64s; }
@keyframes tile-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.hero-kente { height: 8px; background: var(--kente); position: relative; }

/* ---------- Stats ---------- */
.stats-band { background: var(--ink); color: #fff; }
.stats-band.is-light { background: var(--sand); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.is-light .stat { border-left-color: var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(34px, 4vw, 50px); font-weight: 600; line-height: 1; color: var(--gold); }
.is-light .stat-num { color: var(--red); }
.stat-label { display: block; margin-top: 10px; font-size: 14px; color: #c9c2ba; max-width: 220px; line-height: 1.45; }
.is-light .stat-label { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section.sand { background: var(--sand); }
.section.dark { background: var(--charcoal); color: #cfc8c0; }
.section.dark .section-title, .section.dark h3 { color: #fff; }
.section-head { max-width: 820px; margin-bottom: 44px; }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(30px, 3.8vw, 48px); }
.lead { font-size: 20px; color: var(--ink); line-height: 1.6; }
.section.dark .lead { color: #ece7e1; }
.section-cta { margin-top: 44px; }
.note { margin-top: 32px; color: var(--muted); font-style: italic; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 56px; }

/* Timeline */
.timeline { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: thin; }
.timeline-item { scroll-snap-align: start; position: relative; padding: 38px 26px 0 0; border-top: 2px solid var(--ink); }
.timeline-item::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px var(--paper); }
.sand .timeline-item::before { box-shadow: 0 0 0 5px var(--sand); }
.timeline-item:last-child::before { background: var(--gold); }
.timeline-year { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--red); line-height: 1; margin-bottom: 14px; }
.timeline-item h3 { font-size: 19px; font-family: var(--font-body); font-weight: 700; }
.timeline-item p { font-size: 15px; color: var(--muted); margin: 0; }

/* Programme area cards */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.area-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 30px; background: #fff; border-radius: var(--radius); text-decoration: none; color: var(--text); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; min-height: 250px; }
.area-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(0,0,0,.35); border-color: var(--red); color: var(--text); }
.area-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-display); font-size: 15px; color: var(--muted); }
.area-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: rgba(208,2,27,.08); color: var(--red); margin-bottom: 8px; }
.area-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.area-tag { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* Initiatives */
.initiative-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; border-top: 1px solid var(--line); }
.initiative-list a { display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 18px; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: padding .2s, color .2s; }
.initiative-list a:hover { padding-left: 12px; color: var(--red); }
.initiative-area { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.initiative-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.25; }

/* Museum teaser */
.museum-teaser-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.browse-label { margin: 26px 0 10px; font-weight: 700; color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip-row li { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #fff; }
.museum-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.museum-wall .frame { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; border: 6px solid #fff; box-shadow: 0 30px 50px -30px rgba(0,0,0,.8); }
.museum-wall .frame:nth-child(even) { transform: translateY(24px); }
.museum-wall img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.museum-wall .frame span { position: absolute; inset: auto 0 0; padding: 26px 10px 8px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.85)); opacity: 0; transition: opacity .25s; line-height: 1.3; }
.museum-wall .frame:hover img { transform: scale(1.06); }
.museum-wall .frame:hover span { opacity: 1; }

/* Featured publication */
.featured-pub { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: center; background: var(--sand); border-radius: 20px; padding: 40px; position: relative; overflow: hidden; }
.sand .featured-pub { background: #fff; }
.featured-pub::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--kente); background-size: 6px 120px; background-image: repeating-linear-gradient(180deg, var(--red) 0 48px, var(--gold) 48px 64px, var(--green) 64px 104px, var(--ink) 104px 112px, var(--gold) 112px 120px); }
.featured-pub-cover img { border-radius: 10px; box-shadow: 0 24px 40px -24px rgba(0,0,0,.5); transform: rotate(-2deg); }
.featured-pub h3 { font-size: clamp(24px, 2.6vw, 34px); }

/* Impact */
.impact-home-grid, .impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.commit-card { background: #fff; border-radius: 20px; padding: 36px; border: 1px solid var(--line); }
.section:not(.sand) .commit-card { background: var(--sand); border: 0; }
.commit-title { font-family: var(--font-display); font-size: 22px; color: var(--ink); font-weight: 600; }
.check-list { list-style: none; }
.check-list li { position: relative; padding: 13px 0 13px 36px; border-bottom: 1px solid var(--line); color: var(--ink); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 22px; height: 22px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.measure-list { list-style: none; counter-reset: m; display: grid; gap: 12px; }
.measure-list li { display: flex; gap: 18px; align-items: baseline; padding: 18px 22px; background: var(--sand); border-radius: 12px; color: var(--ink); font-weight: 500; }
.measure-list span { font-family: var(--font-display); color: var(--red); font-weight: 600; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card-link:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(0,0,0,.35); color: var(--text); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-link:hover .card-media img { transform: scale(1.04); }
.card-placeholder { display: grid; place-items: center; height: 100%; background: var(--charcoal); }
.card-placeholder img { width: 64px; height: auto; object-fit: contain; opacity: .9; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 26px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.card-cat { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.card-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.3; }

/* CTA band */
.cta-band { background: var(--red); color: #ffe9ea; padding: 96px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid rgba(255,255,255,.07); }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.cta-band .eyebrow-light { color: #fff; }
.cta-title { color: #fff; font-size: clamp(30px, 3.8vw, 46px); }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

/* Page hero */
.page-hero { position: relative; background: var(--charcoal); color: #d9d3cc; padding: 72px 0 0; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 100% 0%, rgba(208,2,27,.3), transparent 60%); }
.page-hero .container { position: relative; padding-bottom: 72px; }
.page-hero.is-compact .container { padding-bottom: 52px; }
.page-title { color: #fff; font-size: clamp(34px, 4.8vw, 60px); max-width: 950px; margin-bottom: 22px; text-wrap: balance; }
.page-title .title-line { display: block; }
.page-title .title-line.is-accent { color: var(--gold); font-style: italic; }
h1, h2, .section-title, .hero-title { text-wrap: balance; }
.page-lead { text-wrap: pretty; }
.page-lead { font-size: 19px; max-width: 760px; color: #d9d3cc; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; margin-bottom: 26px; color: #a79f96; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb.is-dark { color: var(--muted); }
.breadcrumb.is-dark a { color: var(--red); }

/* About */
.story-grid { display: grid; grid-template-columns: 260px 1fr; gap: 64px; }
.story-label { position: sticky; top: 110px; align-self: start; }
.big-year { font-family: var(--font-display); font-size: 92px; line-height: 1; color: var(--red); margin: 0 0 8px; font-weight: 600; }
.prose p { font-size: 18px; }
.prose .lead { font-size: 22px; }
.pull { margin: 40px 0 0; padding: 28px 32px; border-left: 4px solid var(--red); background: var(--sand); font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); line-height: 1.3; border-radius: 0 12px 12px 0; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { padding: 48px; border-radius: 20px; background: var(--sand); }
.vm-card.is-dark { background: var(--charcoal); }
.vm-text { font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 28px); line-height: 1.35; color: var(--ink); margin: 0; }
.is-dark .vm-text { color: #fff; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: #fff; padding: 32px; border-radius: var(--radius); border-top: 4px solid var(--red); }
.value:nth-child(3n+2) { border-top-color: var(--gold); }
.value:nth-child(3n) { border-top-color: var(--green); }
.value-num { font-family: var(--font-display); color: var(--muted); font-size: 15px; }
.value h3 { font-size: 22px; margin-top: 10px; }
.value p { margin: 0; font-size: 16px; }
.founder { display: grid; grid-template-columns: 440px 1fr; gap: 72px; align-items: center; }
.founder-photos { position: relative; padding: 0 0 70px 0; }
.founder-photos figure { margin: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 30px 50px -30px rgba(0,0,0,.45); }
.founder-photos img { width: 100%; height: 100%; object-fit: cover; }
.founder-main { width: 82%; aspect-ratio: 4 / 5; position: relative; }
.founder-main::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--kente); }
.founder-main img { object-position: 50% 20%; }
.founder-alt { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; border: 6px solid #fff; }
.founder-alt img { object-position: 50% 30%; }
.founder-badge { position: absolute; left: 18px; top: 18px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.founder-mark { aspect-ratio: 4 / 5; border-radius: 20px; background: var(--charcoal); display: grid; place-items: center; position: relative; overflow: hidden; }
.founder-mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--kente); }
.founder-mark img { width: 45%; }

/* What we do */
.area-nav { position: sticky; top: 78px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.area-nav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.area-nav ul::-webkit-scrollbar { display: none; }
.area-nav a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; }
.area-nav a span { color: var(--red); font-weight: 700; margin-right: 4px; }
.area-nav a:hover, .area-nav a.is-active { background: var(--sand); }
.programme { scroll-margin-top: 40px; } /* added to html scroll-padding-top: clears header + sub-nav */
.programme-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.programme-num { display: block; font-family: var(--font-display); font-size: 80px; line-height: 1; color: var(--line); font-weight: 700; margin-bottom: 10px; }
.sand .programme-num { color: #e8ddcf; }
.programme-tag { font-family: var(--font-display); font-style: italic; font-size: 21px; color: var(--red); line-height: 1.4; }
.list-label { font-weight: 700; color: var(--ink); margin: 26px 0 12px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 15px; color: var(--ink); font-weight: 500; }
.section:not(.sand) .pill-list li { background: var(--sand); border-color: transparent; }

/* Museum */
.museum-motto { text-align: center; font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 40px); color: var(--ink); margin-bottom: 12px; }
.museum-motto em { color: var(--red); }
.museum-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 14px; margin: 44px 0 20px; padding: 20px; background: var(--sand); border-radius: 16px; }
.filter { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.filter input, .filter select, .field input, .field select, .field textarea, .search-form input[type=search] { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 400 16px var(--font-body); color: var(--ink); text-transform: none; letter-spacing: 0; transition: border-color .2s, box-shadow .2s; }
.filter input:focus, .filter select:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(208,2,27,.15); }
.collection-chips, .cat-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; transition: .2s; }
.chip span { font-size: 12px; color: var(--muted); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-active span { color: var(--gold); }
.museum-count { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.museum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 24px; }
.museum-grid.is-row { grid-template-columns: repeat(4, 1fr); }
.exhibit { display: block; text-decoration: none; color: var(--ink); }
.exhibit[hidden] { display: none; }
.exhibit-frame { position: relative; display: block; aspect-ratio: 1; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 18px 30px -24px rgba(0,0,0,.4); transition: transform .3s, box-shadow .3s; }
.exhibit-frame img { width: 100%; height: 100%; object-fit: cover; }
.exhibit:hover .exhibit-frame { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 30px 40px -26px rgba(0,0,0,.5); }
.exhibit-year { position: absolute; top: 18px; left: 18px; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; border-radius: 999px; padding: 3px 10px; }
.exhibit-blank { display: grid; place-items: center; width: 100%; height: 100%; background: var(--charcoal); background-image: linear-gradient(135deg, rgba(208,2,27,.4), transparent 60%); }
.exhibit-blank span { font-family: var(--font-display); color: #fff; font-size: 40px; }
.exhibit-blank.is-large span { font-size: 80px; }
.exhibit-meta { display: block; margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.exhibit-title { display: block; margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25; }
.exhibit:hover .exhibit-title { color: var(--red); }
.empty { text-align: center; padding: 40px; color: var(--muted); }
.exhibit-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.exhibit-image { margin: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 30px 50px -30px rgba(0,0,0,.45); aspect-ratio: auto; }
.exhibit-image .exhibit-blank { aspect-ratio: 1; }
.facts { margin: 0 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts div { background: #fff; padding: 16px 18px; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; color: var(--ink); font-weight: 600; }
.link-list { list-style: disc; padding-left: 20px; }

/* Publications */
.pub-collection { padding: 32px 0; border-top: 1px solid var(--line); }
.pub-collection:first-of-type { border-top: 0; padding-top: 0; }
.pub-collection-title { font-size: 24px; }
.pub-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pub { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.pub-cover { width: 120px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.pub-year { color: var(--red); font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.pub h4 { font-size: 20px; }
.pub p { font-size: 15px; }

/* Forms */
.form-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.enquiry { background: #fff; border-radius: 20px; padding: 36px; border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.is-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field textarea { resize: vertical; min-height: 150px; }
.req { color: var(--red); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); background: #fff7f7; }
.field-error { color: var(--red); font-size: 13px; }
.notice { padding: 16px 20px; border-radius: 10px; margin-bottom: 22px; font-size: 15px; }
.notice.is-success { background: #e8f5ee; color: #11502f; border: 1px solid #b7dfc8; }
.notice.is-error { background: #fdecec; color: #8a1520; border: 1px solid #f2c0c4; }
.contact-card { background: var(--charcoal); color: #d9d3cc; border-radius: 20px; padding: 40px; position: relative; overflow: hidden; }
.contact-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--kente); }
.contact-org { font-family: var(--font-display); font-size: 28px; color: #fff; margin-bottom: 24px; }
.contact-list { list-style: none; display: grid; gap: 18px; margin-bottom: 26px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { color: var(--gold); flex: none; width: 24px; height: 24px; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list a { color: #fff; }
.k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-card .k { color: #a79f96; }
.contact-motto { margin: 28px 0 8px; font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 20px; }
.involve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.involve-card { display: flex; flex-direction: column; gap: 12px; padding: 32px 26px; border-radius: var(--radius); background: var(--sand); text-decoration: none; color: var(--text); border: 1px solid transparent; transition: .25s; }
.involve-card:hover { background: #fff; border-color: var(--red); transform: translateY(-4px); color: var(--text); }
.involve-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); }
.involve-text { flex: 1; font-size: 16px; }

/* Single story */
.story-head { padding: 64px 0 32px; background: var(--sand); }
.story-title { font-size: clamp(30px, 4vw, 48px); }
.story-meta { color: var(--muted); font-size: 15px; margin: 0; }
.story-figure { margin: 40px auto 0; }
.story-figure img { width: 100%; border-radius: var(--radius); }
.entry-content { padding-top: 40px; }
.entry-content img { border-radius: 10px; margin: 24px auto; height: auto; }
.entry-content figure { margin: 24px 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 24px 0; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 8px 10px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1em; }
.entry-content iframe { max-width: 100%; }
.entry-content .wp-block-button__link { display: inline-block; background: var(--red); color: #fff; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.entry-content .pdfemb-viewer { display: inline-flex; padding: 14px 22px; background: var(--red); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600; }
.entry-content .pdfemb-viewer::before { content: "Read the report (PDF): "; margin-right: 6px; }
.story-foot { padding-top: 40px; padding-bottom: 80px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 32px; }
.share a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; }
.share a:hover { border-color: var(--red); color: var(--red); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 15px; }
.post-nav a { text-decoration: none; font-weight: 600; }
.post-nav .next { text-align: right; margin-left: auto; }

/* Pagination & search */
.pagination { margin-top: 56px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-numbers.dots { border: 0; }
.search-form { display: flex; gap: 10px; max-width: 560px; }
.search-form label { flex: 1; }
.search-form input[type=submit] { background: var(--red); color: #fff; border: 0; border-radius: 10px; padding: 0 22px; font-weight: 600; cursor: pointer; }

/* Footer */
.site-footer { background: var(--ink); color: #b5ada4; }
.footer-kente { height: 8px; background: var(--kente); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 56px; padding-top: 72px; padding-bottom: 56px; }
.footer-symbol { width: 48px; height: auto; margin-bottom: 18px; }
.footer-name { font-family: var(--font-display); font-size: 26px; color: #fff; margin: 0; }
.footer-motto { color: var(--gold); font-style: italic; font-family: var(--font-display); margin-bottom: 24px; }
.footer-heading { color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; columns: 2; column-gap: 24px; }
.footer-links a { display: inline-block; padding: 5px 0; color: #b5ada4; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; display: grid; gap: 12px; margin-bottom: 24px; font-size: 15px; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact .icon { width: 20px; height: 20px; color: var(--gold); flex: none; }
.footer-contact a { color: #fff; }
.socials { display: flex; gap: 10px; }
.social { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #3a3633; color: #fff; transition: .2s; }
.social:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid #2f2b28; padding-top: 22px; padding-bottom: 28px; font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-tag { font-style: italic; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.nav-list a { padding: 8px 8px; font-size: 14px; }
	.site-nav { gap: 12px; }
}
@media (max-width: 1080px) {
	.nav-toggle { display: block; }
	.site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 16px; background: #fff; padding: 12px 28px 28px; border-bottom: 1px solid var(--line); max-height: calc(100vh - 78px); overflow-y: auto; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2); }
	.nav-open .site-nav { display: flex; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list a { padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
	.nav-list a:hover { background: none; }
	.nav-list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.nav-list .menu-item-has-children > a::after { display: none; }
	.site-nav .btn { justify-content: center; }
	.hero-grid { grid-template-columns: 1fr; padding-top: 64px; gap: 48px; }
	.hero-mosaic { transform: none; grid-template-columns: repeat(3, 1fr); max-width: 560px; }
	.hero-mosaic .tile:nth-child(n+7) { display: none; }
	.area-grid { grid-template-columns: repeat(2, 1fr); }
	.museum-teaser-grid, .impact-home-grid, .impact-grid, .cta-grid, .form-layout, .exhibit-detail, .programme-grid { grid-template-columns: 1fr; gap: 40px; }
	.museum-grid, .museum-grid.is-row { grid-template-columns: repeat(3, 1fr); }
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.featured-pub { grid-template-columns: 240px 1fr; gap: 32px; }
	.involve-grid { grid-template-columns: repeat(2, 1fr); }
	.value-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.museum-filters { grid-template-columns: 1fr 1fr; }
	.story-grid, .founder { grid-template-columns: 1fr; gap: 32px; }
	.story-label { position: static; }
	.founder-photos { max-width: 440px; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.section { padding: 68px 0; }
	.header-inner { min-height: 66px; }
	.brand-logo { height: 26px; }
	.brand-africa { font-size: 16px; }
	.site-nav { padding: 8px 16px 24px; max-height: calc(100vh - 66px); }
	.area-nav { top: 66px; }
	.hero-grid { padding-top: 48px; padding-bottom: 64px; }
	.hero-text { font-size: 17px; }
	.btn-row .btn { flex: 1 1 auto; justify-content: center; }
	.stats { grid-template-columns: 1fr 1fr; }
	.stat { padding: 24px 14px; }
	.stat:nth-child(3) { border-left: 0; padding-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
	.is-light .stat:nth-child(n+3) { border-top-color: var(--line); }
	.two-col { grid-template-columns: 1fr; gap: 0; margin-bottom: 40px; }
	.timeline { grid-auto-columns: 78%; }
	.area-grid, .card-grid, .involve-grid, .value-grid, .vm-grid, .pub-list { grid-template-columns: 1fr; }
	.area-card { min-height: 0; }
	.initiative-list { grid-template-columns: 1fr; }
	.initiative-list a { grid-template-columns: 1fr auto; gap: 4px 12px; }
	.initiative-area { grid-column: 1; }
	.initiative-name { grid-column: 1; font-size: 19px; }
	.initiative-list .arrow { grid-column: 2; grid-row: 1 / span 2; }
	.museum-wall { grid-template-columns: repeat(2, 1fr); }
	.museum-wall .frame:nth-child(n+5) { display: none; }
	.museum-wall .frame:nth-child(even) { transform: none; }
	.museum-grid, .museum-grid.is-row { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
	.exhibit-title { font-size: 16px; }
	.exhibit-frame { padding: 6px; }
	.exhibit-year { top: 12px; left: 12px; font-size: 12px; }
	.museum-filters { grid-template-columns: 1fr; padding: 16px; }
	.collection-chips, .cat-nav { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 6px; scrollbar-width: none; }
	.collection-chips::-webkit-scrollbar, .cat-nav::-webkit-scrollbar { display: none; }
	.chip { flex: none; }
	.featured-pub { grid-template-columns: 1fr; padding: 24px; }
	.featured-pub-cover { max-width: 260px; }
	.facts { grid-template-columns: 1fr; }
	.pub { grid-template-columns: 84px 1fr; padding: 16px; gap: 14px; }
	.pub-cover { width: 84px; }
	.vm-card, .commit-card, .enquiry, .contact-card { padding: 26px 20px; }
	.form-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
	.big-year { font-size: 64px; }
	.programme-num { font-size: 56px; }
	.cta-band { padding: 72px 0; }
	.cta-actions .btn { width: 100%; justify-content: space-between; }
	.page-hero { padding-top: 48px; }
	.page-hero .container { padding-bottom: 52px; }
	.post-nav { flex-direction: column; }
	.post-nav .next { text-align: left; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
