/*
Theme Name: Smart Regional Consultants
Theme URI: https://smartregionalconsultants.test
Author: Smart Regional Consultants
Description: A bold, editorial theme for Smart Regional Consultants.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: src
*/

/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 · macrostructure: studied-DNA (source: tool-riff-26498280.figma.site) · contrast: pass (46–50) · nav/footer: studied reference · slop: pass (51–60) · mobile: pass (320/375/414/768) */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&display=swap');

:root {
  --red: #c1272d;
  --color-accent: var(--red);
  --color-accent-ink: #fff;
  --red-dark: #8b0005;
  --orange: #f58220;
  --orange-light: #ffab5e;
  --charcoal: #1c1c1c;
  --cream: #faf7f2;
  --warm: #f0ede8;
  --red-soft: #f7e8e7;
  --ink-muted: rgba(28, 28, 28, .62);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; color: var(--charcoal); background: #fff; font-family: var(--sans); overflow-x: clip; }
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.container-narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 112px 0; }
.section-sm { padding: 72px 0; }
.eyebrow { margin: 0 0 16px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow-light { color: var(--orange); }
.display { min-width: 0; margin: 0; overflow-wrap: anywhere; font-family: var(--serif); font-weight: 700; line-height: .98; letter-spacing: -.04em; }
.display-xl { font-size: clamp(54px, 8vw, 112px); }
.display-lg { font-size: clamp(42px, 6vw, 76px); }
.display-md { font-size: clamp(34px, 4vw, 56px); }
.lede { max-width: 640px; color: var(--ink-muted); font-size: 17px; line-height: 1.75; }
.lede-light { color: rgba(255,255,255,.65); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section-heading h2 { max-width: 650px; }
.section-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid currentColor; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transition: gap .25s ease, color .25s ease; }
.section-link:hover { gap: 18px; color: var(--red); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 0; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; transition: background .25s ease, transform .25s ease; }
.button:hover { background: var(--charcoal); transform: translateY(-2px); }
.button-dark { background: var(--charcoal); }
.button-orange { background: var(--orange); }
.button-ghost { border: 1px solid rgba(255,255,255,.34); background: transparent; }
.button-ghost:hover { background: #fff; color: var(--charcoal); }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; color: #fff; transition: background .25s ease, color .25s ease, transform .25s ease; }
.site-header.is-scrolled { position: fixed; background: rgba(255,255,255,.97); color: var(--charcoal); box-shadow: 0 1px 0 rgba(28,28,28,.12); backdrop-filter: blur(12px); }
.site-header.is-scrolled .primary-nav a { color: rgba(28,28,28,.72); }
.site-header.is-scrolled .primary-nav a:hover, .site-header.is-scrolled .primary-nav .current-menu-item a { color: var(--red); }
.site-header.is-scrolled .nav-toggle { color: var(--charcoal); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--serif); font-size: 10px; font-weight: 900; letter-spacing: -.06em; }
.brand-copy small { display: block; margin-top: 2px; color: var(--orange-light); font-size: 8px; letter-spacing: .16em; }
.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav a { position: relative; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.primary-nav a::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--orange); content: ''; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.primary-nav a:hover::after, .primary-nav .current-menu-item a::after { transform: scaleX(1); transform-origin: left; }
.header-cta { min-height: 38px; padding: 0 15px; background: var(--red); color: #fff !important; transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; }
.site-header .header-cta:hover,
.site-header.is-scrolled .primary-nav .header-cta:hover { background: var(--orange); color: #fff !important; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(28,28,28,.16); }
.nav-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 24px; }

.hero { position: relative; min-height: 760px; display: flex; align-items: end; overflow: hidden; background: var(--charcoal); color: #fff; }
.hero::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,28,28,.95) 0%, rgba(28,28,28,.63) 42%, rgba(28,28,28,.12) 100%); content: ''; z-index: 1; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; filter: saturate(.75); }
.hero-content { position: relative; z-index: 2; padding: 180px 0 116px; }
.hero-content h1 { max-width: 820px; }
.hero-content h1 em { color: var(--orange); font-style: normal; }
.hero-content .lede { margin: 28px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stamp { position: absolute; right: 6vw; bottom: 75px; z-index: 2; width: 118px; height: 118px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-align: center; text-transform: uppercase; transform: rotate(-12deg); }
.hero-stamp::before { position: absolute; inset: 10px; border: 1px solid rgba(245,130,32,.75); border-radius: 50%; content: ''; }

.stats-band { background: var(--red); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 34px 28px; border-right: 1px solid rgba(255,255,255,.22); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-number { margin-bottom: 5px; font-family: var(--serif); font-size: 42px; font-weight: 700; line-height: 1; }
.stat-label { color: rgba(255,255,255,.66); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.cream { background: var(--cream); }
.warm { background: var(--warm); }
.charcoal { background: var(--charcoal); color: #fff; }
.red { background: var(--red); color: #fff; }
.orange { background: var(--orange); color: #fff; }
.image-duotone { position: relative; overflow: hidden; }
.image-duotone img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.image-duotone::after { position: absolute; inset: 0; background: rgba(193,39,45,.38); mix-blend-mode: multiply; content: ''; }

.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sector-card { position: relative; min-height: 310px; display: flex; align-items: end; overflow: hidden; color: #fff; }
.sector-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); transition: transform .6s ease; }
.sector-card::after { position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(28,28,28,.94) 100%); content: ''; }
.sector-card:hover img { transform: scale(1.05); }
.sector-card-content { position: relative; z-index: 1; padding: 28px; }
.sector-card-content h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 28px; }
.sector-card-content p { margin: 0; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.6; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 84px; }
.split-grid.reverse .split-media { order: 2; }
.split-media { position: relative; min-height: 560px; }
.split-media > img { width: 100%; height: 560px; object-fit: cover; filter: grayscale(.25); }
.split-media-card { position: absolute; right: -24px; bottom: -24px; width: 170px; padding: 22px; background: var(--red); color: #fff; }
.split-media-card strong { display: block; font-family: var(--serif); font-size: 45px; line-height: 1; }
.split-media-card span { color: rgba(255,255,255,.68); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.check-list { padding: 0; margin: 30px 0; list-style: none; }
.check-list li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(28,28,28,.12); font-size: 13px; line-height: 1.6; }
.check-list li::before { color: var(--red); content: '↗'; font-weight: 800; }

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { min-height: 280px; padding: 44px 40px; }
.pillar h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 29px; }
.pillar p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.75; }
.pillar:nth-child(1) { background: var(--red); }
.pillar:nth-child(2) { background: var(--charcoal); }
.pillar:nth-child(3) { background: var(--orange); }

.programme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.programme-card { display: flex; min-height: 300px; flex-direction: column; padding: 28px; background: #fff; box-shadow: 0 16px 45px rgba(28,28,28,.06); transition: transform .25s ease, box-shadow .25s ease; }
.programme-card:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(28,28,28,.12); }
.status { display: inline-flex; align-self: flex-start; padding: 7px 9px; background: rgba(193,39,45,.1); color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.status.upcoming { background: rgba(245,130,32,.14); color: #b55c08; }
.status.closed { background: #ece9e5; color: #777; }
.programme-card h3 { margin: 22px 0 8px; font-family: var(--serif); font-size: 25px; line-height: 1.12; }
.programme-card p { margin: 0; color: var(--ink-muted); font-size: 12px; line-height: 1.65; }
.programme-facts { display: flex; gap: 14px; margin-top: auto; padding-top: 24px; color: rgba(28,28,28,.54); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.programme-card .section-link { align-self: flex-start; margin-top: 24px; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { position: relative; min-height: 360px; display: flex; align-items: end; overflow: hidden; color: #fff; }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.45); transition: transform .55s ease; }
.project-card::after { position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(28,28,28,.92) 100%); content: ''; }
.project-card:hover img { transform: scale(1.05); }
.project-card-content { position: relative; z-index: 1; padding: 30px; }
.project-card-content h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 30px; }
.project-card-content p { max-width: 430px; margin: 0; color: rgba(255,255,255,.68); font-size: 12px; line-height: 1.65; }
.project-meta { display: flex; gap: 18px; margin-top: 20px; color: var(--orange-light); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.team-section { overflow: hidden; background: var(--charcoal); color: #fff; }
.team-track { display: grid; grid-auto-columns: minmax(260px, 1fr); grid-auto-flow: column; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.team-track::-webkit-scrollbar { display: none; }
.team-card { position: relative; min-height: 475px; overflow: hidden; padding: 28px; scroll-snap-align: start; }
.team-card.red { background: var(--red); }
.team-card.dark { background: #111; }
.team-card.orange { background: var(--orange); }
.team-card h3 { position: relative; z-index: 2; margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.team-card h4 { position: relative; z-index: 2; margin: 4px 0; font-family: var(--serif); font-size: 29px; line-height: 1.05; }
.team-card blockquote { position: absolute; right: 28px; bottom: 26px; left: 28px; z-index: 2; margin: 0; color: rgba(255,255,255,.78); font-family: var(--serif); font-size: 15px; font-style: italic; line-height: 1.45; }
.team-card img { position: absolute; right: 0; bottom: 0; left: 0; width: 100%; height: 78%; object-fit: cover; object-position: center top; filter: grayscale(1) contrast(1.05); mix-blend-mode: screen; opacity: .8; transition: transform .5s ease, opacity .5s ease; }
.team-card:hover img { transform: scale(1.04); opacity: .94; }
.team-arrows { display: flex; gap: 8px; }
.team-arrows button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 18px; transition: background .2s ease; }
.team-arrows button:hover { background: var(--red); }

.cta-band { position: relative; overflow: hidden; padding: 100px 0; background: var(--charcoal); color: #fff; }
.cta-band::after { position: absolute; right: -4vw; bottom: -9vw; color: rgba(255,255,255,.04); content: 'SRC'; font-family: var(--serif); font-size: 25vw; font-weight: 900; line-height: .7; }
.cta-band .container { position: relative; z-index: 1; }

.page-hero { position: relative; overflow: hidden; padding: 190px 0 92px; background: var(--charcoal); color: #fff; }
.page-hero::after { position: absolute; right: 3%; bottom: -12%; color: rgba(255,255,255,.035); content: attr(data-mark); font-family: var(--serif); font-size: 28vw; font-weight: 900; line-height: .7; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lede { max-width: 600px; }
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.article-copy p { color: var(--ink-muted); font-size: 15px; line-height: 1.85; }
.article-copy h2, .article-copy h3 { margin: 38px 0 14px; font-family: var(--serif); line-height: 1.1; }
.article-copy h2 { font-size: 39px; }
.article-copy h3 { font-size: 25px; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.value-card { padding-top: 20px; border-top: 2px solid var(--red); }
.value-card h3 { margin: 0 0 10px; font-size: 14px; }
.value-card p { margin: 0; color: var(--ink-muted); font-size: 12px; line-height: 1.7; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: rgba(28,28,28,.62); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; padding: 15px 14px; border: 1px solid #dedbd6; border-radius: 0; background: #fff; color: var(--charcoal); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(193,39,45,.09); }
.notice { margin-bottom: 24px; padding: 18px; background: rgba(193,39,45,.08); border-left: 3px solid var(--red); font-size: 13px; line-height: 1.6; }
.job-list { display: grid; gap: 12px; }
.job-card { padding: 26px; border: 1px solid #e5e1dc; background: #fff; }
.job-card-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.job-card h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 24px; }
.job-card-meta { color: rgba(28,28,28,.5); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.job-card p { max-width: 730px; color: var(--ink-muted); font-size: 13px; line-height: 1.7; }

.footer { padding: 80px 0 28px; background: #111; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 44px; }
.footer h3 { margin: 0 0 20px; font-family: var(--serif); font-size: 20px; }
.footer p, .footer a { color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.7; }
.footer a:hover { color: var(--orange); }
.footer-links { display: grid; gap: 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 70px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.35); font-size: 10px; }
.social-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.social-links a { color: rgba(255,255,255,.42); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.county-list { color: rgba(255,255,255,.42); font-size: 12px; line-height: 1.9; }
.footer-contact { display: inline-flex; margin-top: 8px; padding: 11px 18px; border: 1px solid rgba(255,255,255,.22); color: #fff !important; font-size: 9px !important; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); }
[data-reveal='left'] { transform: translateX(-26px); }
[data-reveal='right'] { transform: translateX(26px); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Reference homepage composition */
.ref-hero { min-height: 100vh; }
.ref-hero .hero-content { padding-top: 165px; padding-bottom: 90px; }
.ref-hero h1 { max-width: 620px; font-size: clamp(58px, 6vw, 92px); line-height: .91; }
.ref-hero h1 em { display: inline-block; font-style: italic; }
.ref-hero .hero-meta { color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.ref-hero .hero-copy { max-width: 600px; color: rgba(255,255,255,.65); font-size: 17px; line-height: 1.65; }
.ref-hero .hero-actions { align-items: center; }
.watch-story { display: inline-flex; align-items: center; gap: 12px; color: rgba(255,255,255,.62); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.watch-story .watch-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; font-size: 11px; }
.scroll-hint { position: absolute; bottom: 20px; left: 50%; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.35); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; transform: translateX(-50%); }
.scroll-hint i { display: block; width: 1px; height: 34px; background: rgba(255,255,255,.22); }
.ref-stats .stats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ref-stats .stat { min-width: 0; padding: 30px 22px; }
.ref-stats .stat:first-child { padding-left: 0; }
.ref-stats .stat-number { font-size: 37px; }
.ref-stats .stat-label { line-height: 1.35; }
.sector-showcase { padding: 118px 0 132px; background: var(--cream); }
.sector-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 74px; align-items: start; }
.sector-intro h2 { margin-bottom: 22px; }
.sector-intro > p { margin: 0 0 28px; color: var(--ink-muted); font-size: 13px; line-height: 1.8; }
.sector-list { display: grid; gap: 2px; }
.sector-list button { display: flex; align-items: center; gap: 15px; width: 100%; padding: 8px 0; border: 0; background: transparent; color: rgba(28,28,28,.38); text-align: left; transition: color .25s ease, padding .25s ease; }
.sector-list button:hover, .sector-list button.is-active { color: var(--red); padding-left: 3px; }
.sector-list .sector-index { width: 25px; color: rgba(28,28,28,.23); font-family: var(--serif); font-size: 15px; font-weight: 700; }
.sector-list button.is-active .sector-index { color: var(--red); }
.sector-list .sector-name { font-size: 12px; font-weight: 600; }
.sector-list .sector-rule { width: 21px; height: 1px; margin-left: auto; background: var(--red); opacity: 0; transition: opacity .25s ease; }
.sector-list button.is-active .sector-rule { opacity: 1; }
.sector-stage { min-width: 0; }
.sector-visual { position: relative; height: 390px; margin-inline: 8px; overflow: hidden; }
.sector-visual::before, .sector-visual::after { position: absolute; inset: 0; background: #cfcac3; content: ''; transform-origin: bottom center; }
.sector-visual::before { transform: rotate(-7deg) translateX(-20px); opacity: .55; }
.sector-visual::after { transform: rotate(-3deg) translateX(-8px); opacity: .38; }
.sector-image { position: absolute; inset: 0 18px; z-index: 2; width: calc(100% - 36px); height: 100%; object-fit: cover; filter: saturate(.9); animation: sectorFadeIn .45s ease-out both; }
.sector-tint { position: absolute; inset: 0 18px; z-index: 3; background: rgba(193,39,45,.15); mix-blend-mode: multiply; pointer-events: none; }
.sector-number { position: absolute; right: 4px; bottom: -12px; z-index: 4; color: transparent; font-family: var(--serif); font-size: 118px; font-weight: 900; line-height: 1; -webkit-text-stroke: 1px var(--red); background: repeating-linear-gradient(-45deg, var(--red) 0 1px, transparent 1px 7px); -webkit-background-clip: text; background-clip: text; }
.sector-caption { margin: 28px 18px 0; animation: sectorCaptionIn .45s ease-out both; }
.sector-caption h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 36px; line-height: 1; }
.sector-caption p { max-width: 540px; margin: 0 0 18px; color: var(--ink-muted); font-size: 15px; line-height: 1.7; }
.text-cta { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.text-cta:hover { color: var(--orange); }
.thematic-section { padding: 95px 0; background: #fff; }
.thematic-section .section-heading { display: block; margin-bottom: 42px; text-align: center; }
.thematic-section .section-heading h2 { margin-inline: auto; }
.thematic-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 4px; }
.theme-chip { min-height: 132px; padding: 22px; border: 0; border-top: 2px solid var(--red); background: rgba(193,39,45,.04); color: var(--charcoal); text-align: left; transition: transform .25s ease, background .25s ease; }
.theme-chip:nth-child(2) { border-top-color: var(--orange); background: rgba(245,130,32,.06); }
.theme-chip:nth-child(3) { border-top-color: #5f8d61; background: #f1f7ef; }
.theme-chip:nth-child(4) { border-top-color: var(--charcoal); background: #f7f7f7; }
.theme-chip:nth-child(5) { border-top-color: #3d73a5; background: #f0f6fc; }
.theme-chip:hover { transform: translateY(-4px); background: var(--warm); }
.theme-chip b { display: block; margin-bottom: 18px; color: var(--red); font-size: 16px; }
.theme-chip:nth-child(2) b { color: var(--orange); }
.theme-chip:nth-child(3) b { color: #47734a; }
.theme-chip:nth-child(4) b { color: var(--charcoal); }
.theme-chip:nth-child(5) b { color: #3d73a5; }
.theme-chip span { font-size: 11px; font-weight: 700; line-height: 1.3; }
.footprint-ref { position: relative; min-height: 720px; overflow: hidden; padding: 82px 0 0; background: var(--cream); }
.footprint-ref .container { position: relative; z-index: 2; }
.footprint-heading { position: absolute; top: 58px; left: max(24px, calc((100% - var(--container)) / 2)); z-index: 3; }
.map-art { position: relative; width: min(960px, 80vw); height: 610px; margin: 40px auto 0 34%; }
.map-art img { width: 100%; height: 100%; object-fit: contain; filter: brightness(.18) saturate(0); opacity: .98; }
.map-dot { position: absolute; z-index: 4; width: 10px; height: 10px; border: 2px solid rgba(255,255,255,.55); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(193,39,45,.17); }
.map-dot.ke { top: 38%; left: 72%; }.map-dot.tz { top: 47%; left: 68%; }.map-dot.mw { top: 56%; left: 62%; }.map-dot.zm { top: 54%; left: 55%; }.map-dot.za { top: 78%; left: 49%; }.map-dot.sn { top: 24%; left: 22%; }
.map-legend { position: absolute; bottom: 22px; left: 24px; z-index: 3; display: flex; flex-wrap: wrap; gap: 14px; color: rgba(28,28,28,.52); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.map-legend span::before { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: #dc8a90; content: ''; vertical-align: -1px; }
.project-ref { padding: 92px 0 0; background: var(--cream); }
.project-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2px; }
.project-tile { position: relative; min-height: 222px; display: flex; align-items: end; overflow: hidden; color: #fff; }
.project-tile.span-2 { grid-column: span 2; }
.project-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-tile::after { position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(0,0,0,.77)); content: ''; }
.project-tile:hover img { transform: scale(1.05); }
.project-tile-content { position: relative; z-index: 1; width: 100%; padding: 18px; }
.project-tile-partner { margin-bottom: 5px; color: rgba(255,255,255,.55); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.project-tile h3 { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.08; }
.project-tile-arrow { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 27px; height: 27px; background: var(--red); color: #fff; opacity: 0; transition: opacity .2s ease; }
.project-tile:hover .project-tile-arrow { opacity: 1; }
.partners-ref { border-block: 1px solid #f3f3f3; background: var(--warm); }
.partner-heading { width: min(1280px, 100%); padding: 48px 24px 24px; }
.partner-heading .eyebrow { margin-bottom: 4px; color: rgba(28,28,28,.35); font-weight: 700; line-height: 15px; }
.partner-heading h2 { margin: 0; font-size: 24px; line-height: 32px; letter-spacing: normal; }
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: rgba(0,0,0,.08); }
.partner-tile { display: flex; height: 128px; align-items: center; justify-content: center; padding: 16px; color: #fff; text-align: center; }
.partner-tile.cta { grid-column: span 2; }
.partner-tile.partner-color-red { background: #c1272d; }
.partner-tile.partner-color-charcoal, .partner-tile.cta { background: #1c1c1c; }
.partner-tile.partner-color-orange { background: #f58220; }
.partner-tile.photo { overflow: hidden; padding: 0; }
.partner-tile.photo img { width: 100%; height: 100%; object-fit: cover; }
.partner-tile:not(.photo):not(.cta) { cursor: default; transition: filter .2s ease; }
.partner-tile:not(.photo):not(.cta):hover { filter: brightness(1.12); }
.partner-tile-copy { transition: transform .2s ease; }
.partner-tile:not(.photo):not(.cta):hover .partner-tile-copy { transform: scale(1.05); }
.partner-tile strong { display: block; color: #fff; font-family: var(--sans); font-size: 16.8px; font-weight: 900; line-height: 1; letter-spacing: .07em; }
.partner-tile.partner-short strong { font-size: 23.2px; letter-spacing: .14em; }
.partner-tile small { display: block; max-width: 9rem; margin: .4rem auto 0; color: rgba(255,255,255,.5); font-family: var(--sans); font-size: 9.28px; font-weight: 400; letter-spacing: .06em; line-height: 1.3; text-transform: uppercase; }
.partner-tile.cta { flex-direction: column; gap: 8px; color: #fff; cursor: pointer; transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke; transition-duration: .3s; }
.partner-tile.cta:hover { background: #c1272d; }
.partner-tile.cta span { color: #fff; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .1em; line-height: 15px; text-transform: uppercase; }
.partner-tile.cta i { color: rgba(255,255,255,.6); font-size: 20px; font-style: normal; line-height: 28px; transition-property: transform, translate, scale, rotate; transition-duration: .3s; }
.partner-tile.cta:hover i { transform: translateX(6px); }

.team-ref { overflow: hidden; background: #111; color: #fff; }
.team-ref-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; width: 100%; padding: 56px 24px 32px; }
.team-ref-header .eyebrow { margin-bottom: 8px; color: #c1272d; font-size: 10px; font-weight: 700; letter-spacing: .1em; line-height: 15px; }
.team-ref-header h2 { margin: 0; color: #fff; font-size: 30px; line-height: 1.25; letter-spacing: normal; }
.team-heading-actions { display: flex; align-items: center; gap: 20px; }
.team-all-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.5); font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .025em; line-height: 16.5px; transition: color .2s ease; }
.team-all-link span { display: inline-block; transition: transform .2s ease; }
.team-all-link:hover { color: #fff; }
.team-all-link:hover span { transform: translateX(4px); }
.team-ref-arrows { display: flex; align-items: center; gap: 8px; }
.team-ref-arrows button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 16px; transition: border-color .2s ease, color .2s ease; }
.team-ref-arrows button:disabled { border-color: rgba(255,255,255,.1); color: rgba(255,255,255,.2); cursor: default; }
.team-ref-arrows button:not(:disabled):hover { border-color: #fff; color: #fff; }
.team-ref-viewport { overflow: hidden; }
.team-ref-grid { display: flex; gap: 1px; will-change: transform; transition: transform .48s cubic-bezier(.4,0,.2,1); }
.team-ref-card { position: relative; flex: 0 0 clamp(260px, 25vw, 340px); width: clamp(260px, 25vw, 340px); height: 520px; overflow: hidden; color: #fff; cursor: default; outline: none; }
.team-panel-red { background: #c1272d; }
.team-panel-charcoal { background: #1c1c1c; }
.team-panel-orange { background: #f58220; }
.team-ref-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; mix-blend-mode: luminosity; opacity: .8; transition: opacity .35s ease; user-select: none; }
.team-ref-card.is-active img { opacity: .92; animation: portraitBreathe 3.5s ease-in-out infinite; }
.team-ref-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 35%, transparent 45%, rgba(0,0,0,.28) 100%); }
.team-ref-bottom-gradient { position: absolute; right: 0; bottom: 0; left: 0; height: 150px; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%); }
.team-ref-card-content { position: absolute; z-index: 1; top: 0; right: 0; left: 0; padding: 24px 20px 0; }
.team-ref-role { margin-bottom: 4px; color: rgba(255,255,255,.6); font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .15em; line-height: normal; text-transform: uppercase; }
.team-ref-card h3 { margin: 0; color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.25; }
.team-ref-bio { position: absolute; right: 20px; bottom: 0; left: 20px; z-index: 1; margin: 0; padding-bottom: 24px; color: rgba(255,255,255,.78); font-family: var(--serif); font-size: 12px; font-style: italic; line-height: 1.6; }
.team-ref-card:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.team-ref-footer { display: flex; align-items: center; justify-content: space-between; padding: 24px; }
.team-all-link-mobile { display: block; color: rgba(255,255,255,.45); }
.team-all-link-desktop { display: none; }
.team-ref-dots { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.team-ref-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.2); transition: width .2s ease, background .2s ease; }
.team-ref-dots button.is-in-view { width: 20px; background: #fff; }
@keyframes portraitBreathe { 0%, 100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.024) translateY(-5px); } }
.programmes-ref { padding: 80px 0; background: var(--warm); }
.programmes-ref > .container { width: min(1280px, 100%); padding-right: 24px; padding-left: 24px; }
.programmes-ref .section-heading { margin-bottom: 40px; }
.programmes-ref .section-heading h2 { font-size: 30px; line-height: 1.25; letter-spacing: normal; }
.programme-ref-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.programme-ref-card { display: flex; min-height: 280px; flex-direction: column; overflow: hidden; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.07); }
.programme-ref-card-media { position: relative; height: 144px; flex-shrink: 0; overflow: hidden; }
.programme-ref-card-media::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), transparent); content: ''; pointer-events: none; }
.programme-ref-card-media img { width: 100%; height: 100%; object-fit: cover; filter: none; transition: transform .5s ease; }
.programme-ref-card:hover .programme-ref-card-media img { transform: scale(1.05); }
.programme-status, .programme-fee { position: absolute; z-index: 1; top: 12px; padding: 4px 10px; font-size: 9px; font-weight: 700; letter-spacing: .1em; line-height: 13.5px; text-transform: uppercase; }
.programme-status { left: 12px; color: #fff; background: #c1272d; }
.programme-status-upcoming { background: #f58220; }
.programme-status-closed { color: rgba(28,28,28,.45); background: rgba(28,28,28,.12); }
.programme-fee { right: 12px; color: #fff; background: rgba(0,0,0,.55); }
.programme-ref-card-body { display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 16px 20px 20px; }
.programme-ref-card h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.375; }
.programme-ref-card p { min-height: 0; flex: 1; margin: 0 0 12px; color: rgba(28,28,28,.58); font-size: 12px; line-height: 1.625; }
.programme-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 16px; color: rgba(28,28,28,.45); font-size: 10px; font-weight: 400; letter-spacing: normal; line-height: 15px; text-transform: none; }
.programme-ref-card .button { position: static; width: 100%; min-height: 0; padding: 10px 0; font-size: 10px; line-height: 15px; }
.quote-band { position: relative; overflow: hidden; padding: 100px 0; background: var(--charcoal); color: #fff; }
.quote-band::after { position: absolute; top: 0; right: -10%; width: 60%; height: 100%; background: radial-gradient(ellipse at center, rgba(245,130,32,.3), transparent 65%); content: ''; pointer-events: none; }
.quote-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.quote-grid blockquote { margin: 0; font-family: var(--serif); font-size: clamp(31px, 3.5vw, 50px); font-weight: 700; line-height: 1.12; }
.quote-attribution { display: flex; align-items: center; gap: 14px; margin-top: 30px; color: rgba(255,255,255,.48); font-size: 13px; }
.quote-attribution::before { width: 40px; height: 1px; background: var(--orange); content: ''; }
.quote-aside { text-align: right; }
.quote-aside p { max-width: 330px; margin: 0 0 25px auto; color: rgba(255,255,255,.45); font-size: 13px; line-height: 1.7; }
.newsletter-ref { padding: 60px 0; background: var(--red); color: #fff; }
.newsletter-grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.newsletter-grid h2 { margin: 0; font-size: 31px; }
.newsletter-form { display: flex; min-width: min(100%, 350px); }
.newsletter-form input { min-width: 0; flex: 1; padding: 14px 16px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; outline: 0; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.54); }
.newsletter-form .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.newsletter-form button { border: 0; background: var(--orange); color: #fff; padding: 0 18px; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

@media (max-width: 900px) {
  .primary-nav { position: absolute; top: 76px; right: 24px; left: 24px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; background: var(--charcoal); box-shadow: 0 20px 40px rgba(0,0,0,.22); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 13px 0; }
  .primary-nav a::after { display: none; }
  .header-cta { text-align: center; }
  .nav-toggle { display: block; }
  .hero { min-height: 680px; }
  .hero-stamp { display: none; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid rgba(255,255,255,.22); }
  .split-grid, .article-grid { grid-template-columns: 1fr; gap: 48px; }
  .split-grid.reverse .split-media { order: initial; }
  .split-media, .split-media > img { min-height: 420px; height: 420px; }
  .programme-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Reference interaction parity: hero mark, footprint and project dossier */
.hero-watermark {
  position: absolute;
  right: -2vw;
  bottom: 0;
  z-index: 2;
  color: transparent;
  font-family: var(--serif);
  font-size: 24vw;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  -webkit-text-stroke: 1px rgba(255,255,255,.06);
}
.ref-hero .hero-content, .ref-hero .scroll-hint, .ref-hero .hero-stamp { z-index: 3; }

.footprint-ref {
  height: 78vh;
  min-height: 580px;
  max-height: 860px;
  padding: 0;
}
.footprint-heading { top: 40px; left: 48px; pointer-events: none; }
.footprint-heading .eyebrow { margin-bottom: 8px; }
.footprint-heading .display { font-size: clamp(30px, 3vw, 42px); }
.footprint-map-window {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: right .5s cubic-bezier(.4,0,.2,1);
}
.footprint-ref .map-art {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  margin: 0;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.map-art .africa-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; display: block; }
.map-art .africa-map-svg path {
  fill: var(--charcoal) !important;
  stroke: #fff !important;
  stroke-width: .7px;
  cursor: default;
  transition: fill .2s ease, opacity .2s ease;
}
.map-art .africa-map-svg path[data-id="KE"],
.map-art .africa-map-svg path[data-id="TZ"],
.map-art .africa-map-svg path[data-id="MW"],
.map-art .africa-map-svg path[data-id="ZM"],
.map-art .africa-map-svg path[data-id="ZA"],
.map-art .africa-map-svg path[data-id="SN"] { cursor: pointer; }
.map-art .africa-map-svg path[data-country] { cursor: pointer; }
.map-art .africa-map-svg path.is-hovered,
.map-art .africa-map-svg path.is-selected { fill: #431d1e !important; }
.map-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.72);
  opacity: .82;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.map-dot span { position: absolute; inset: -14px; border: 1px solid rgba(193,39,45,.28); border-radius: 50%; opacity: 0; transform: scale(.55); transition: opacity .2s ease, transform .2s ease; }
.map-dot:hover, .map-dot:focus-visible, .map-dot.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1.3); box-shadow: 0 0 0 8px rgba(193,39,45,.16); }
.map-dot:hover span, .map-dot:focus-visible span, .map-dot.is-active span { opacity: 1; transform: scale(1); }
.map-dot.ke { top: 43%; left: 72%; }.map-dot.tz { top: 51%; left: 69%; }.map-dot.mw { top: 58%; left: 66%; }.map-dot.zm { top: 61%; left: 57%; }.map-dot.za { top: 82%; left: 56%; }.map-dot.sn { top: 36%; left: 18%; }
.map-legend { left: 48px; bottom: 30px; gap: 18px; }
.map-legend button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; border: 0; background: transparent; color: var(--charcoal); opacity: .5; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: opacity .2s ease; }
.map-legend button:hover, .map-legend button:focus-visible, .map-legend button.is-active { opacity: 1; }
.map-legend button i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.map-legend button:first-child i { width: 12px; height: 12px; }
.map-legend button b { color: var(--red); font-size: 8px; letter-spacing: .12em; }
.footprint-detail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: 46%;
  padding: 54px 56px 40px 40px;
  overflow-y: auto;
  background: #fff;
  opacity: 0;
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .35s ease;
}
.footprint-ref.is-detail .footprint-map-window { right: 46%; }
.footprint-ref.is-detail .map-art { transform: translate(var(--map-x, 0), var(--map-y, 0)) scale(var(--map-scale, 1.55)); }
.footprint-ref.is-detail .footprint-detail { opacity: 1; transform: none; }
.footprint-back { padding: 0 0 10px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footprint-count { margin: 55px 0 10px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.footprint-detail h3 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 4vw, 58px); line-height: 1; }
.footprint-meta { margin: 14px 0 40px; color: rgba(28,28,28,.52); font-size: 11px; line-height: 1.6; }
.footprint-detail-label { margin: 0 0 5px; color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.footprint-programmes { margin-inline: -14px; }
.footprint-programme { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 16px; width: 100%; min-height: 66px; align-content: center; padding: 14px; border: 0; border-bottom: 1px solid rgba(28,28,28,.08); background: transparent; color: var(--charcoal); cursor: pointer; text-align: left; transition: background-color .2s ease, color .2s ease; }
.footprint-programme::before { position: absolute; top: 9px; bottom: 9px; left: 0; width: 3px; background: var(--red); content: ''; opacity: 0; transform: scaleY(.35); transition: opacity .2s ease, transform .2s ease; }
.footprint-programme strong { min-width: 0; overflow: hidden; font-family: var(--serif); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; transition: color .2s ease; }
.footprint-programme span { grid-column: 1; overflow: hidden; color: rgba(28,28,28,.52); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.footprint-programme i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--red); font-size: 17px; font-style: normal; transition: transform .2s ease; }
.footprint-programme:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; background: var(--red-soft); }
.footprint-programme:focus-visible::before { opacity: 1; transform: none; }
.footprint-programme:active { background: var(--warm); }
.footprint-empty { margin: 16px 14px; color: var(--ink-muted); font-size: 12px; line-height: 1.6; }

@media (hover: hover) and (pointer: fine) {
  .footprint-programme:hover { background: var(--red-soft); }
  .footprint-programme:hover::before { opacity: 1; transform: none; }
  .footprint-programme:hover strong { color: var(--red); }
  .footprint-programme:hover i { transform: translate(3px, -3px); }
}

.project-tile { width: 100%; padding: 0; border: 0; background: #111; text-align: left; }
.project-ref .container { width: min(1280px, calc(100% - 48px)); padding-inline: 40px; }
.project-ref .project-tile { min-height: 220px; }
.project-tile-content { display: block; }
.project-tile-content strong { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.08; }
.project-tile:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.project-dialog {
  width: min(1024px, calc(100vw - 32px));
  height: min(660px, calc(100vh - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--charcoal);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}
.project-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.project-modal-shell { position: relative; display: grid; grid-template-columns: 260px 46px 1fr; width: 100%; height: 100%; overflow: hidden; background: var(--cream); }
.project-modal-aside { position: relative; overflow: hidden; color: #fff; }
.project-modal-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.9) brightness(1.1); }
.project-modal-tint { position: absolute; inset: 0; background: rgba(193,39,45,.84); mix-blend-mode: normal; }
.project-modal-summary { position: relative; z-index: 1; display: flex; height: 100%; flex-direction: column; padding: 28px 24px; }
.dialog-close { align-self: flex-start; margin-bottom: 46px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.project-modal-kicker { margin: 0 0 15px; color: rgba(255,255,255,.67); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.project-modal-summary h2 { margin: 0 0 18px; font-family: var(--serif); font-size: 26px; line-height: 1; }
.project-modal-description { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.7; }
.project-modal-location { margin-top: auto; }
.project-modal-location span { display: block; margin-bottom: 8px; color: rgba(255,255,255,.55); font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.project-modal-location strong { color: rgba(255,255,255,.8); font-size: 10px; font-weight: 500; line-height: 1.5; }
.project-modal-tabs { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 10px; padding-top: 42px; background: #ede9e3; }
.project-modal-tabs button { height: 126px; padding: 12px 14px; border: 0; border-radius: 0 999px 999px 0; background: transparent; color: rgba(28,28,28,.36); font-size: 8px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); transition: background .2s ease, color .2s ease; }
.project-modal-tabs button[aria-selected="true"] { background: var(--red); color: #fff; }
.project-modal-main { overflow-y: auto; background: var(--cream); }
.project-tab-panel { display: none; min-height: 100%; padding: 34px 32px; animation: projectPanelIn .28s ease-out both; }
.project-tab-panel.is-active { display: block; }
.project-tab-panel h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 31px; line-height: 1.1; }
.project-panel-location { margin: 0 0 28px; color: rgba(28,28,28,.5); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-panel-description, .project-tab-panel > p { max-width: 560px; color: rgba(28,28,28,.65); font-size: 13px; line-height: 1.72; }
.project-stats { display: flex; gap: 48px; margin-top: 44px; }
.project-stat strong { display: block; color: var(--red); font-family: var(--serif); font-size: 28px; line-height: 1; }
.project-stat span { display: block; margin-top: 7px; color: rgba(28,28,28,.4); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.project-impact-list { display: grid; gap: 20px; margin-top: 28px; }
.project-impact-item { display: grid; grid-template-columns: 4px 1fr; gap: 14px; }
.project-impact-item::before { border-radius: 4px; background: var(--red); content: ''; }
.project-impact-item strong { display: block; margin-bottom: 4px; color: var(--red); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.project-impact-item p { margin: 0; color: rgba(28,28,28,.62); font-size: 12px; line-height: 1.65; }
.project-panel-eyebrow { margin: 0 0 18px !important; color: var(--red) !important; font-size: 9px !important; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.project-tab-panel .button { margin-top: 22px; }
@keyframes projectPanelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

button:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero-watermark { right: -8vw; font-size: 38vw; }
  .footprint-heading { top: 30px; left: 24px; }
  .map-legend { left: 24px; right: 24px; bottom: 20px; gap: 12px; }
  .footprint-detail { width: 48%; padding: 44px 28px 28px; }
  .footprint-ref.is-detail .footprint-map-window { right: 48%; }
  .project-dialog { height: min(700px, calc(100vh - 24px)); }
  .project-modal-shell { grid-template-columns: 225px 44px 1fr; }
  .project-modal-summary { padding: 24px 20px; }
  .project-tab-panel { padding: 30px 26px; }
}

@media (max-width: 620px) {
  .hero-watermark { right: -17vw; font-size: 56vw; bottom: 2vh; }
  .footprint-ref { min-height: 650px; height: 82vh; }
  .footprint-heading { z-index: 7; }
  .footprint-ref .map-art { width: 138vw; margin-left: 32vw; }
  .map-legend { align-content: flex-end; }
  .map-legend button { font-size: 7px; }
  .footprint-detail { top: 115px; width: 100%; padding: 28px 20px; }
  .footprint-ref.is-detail .footprint-map-window { right: 0; opacity: .14; }
  .footprint-ref.is-detail .map-legend { opacity: 0; pointer-events: none; }
  .footprint-count { margin-top: 34px; }
  .project-dialog { width: calc(100vw - 16px); height: calc(100vh - 16px); }
  .project-ref .container { width: min(100% - 34px, var(--container)); padding-inline: 0; }
  .project-modal-shell { display: flex; flex-direction: column; overflow-y: auto; }
  .project-modal-aside { min-height: 280px; }
  .project-modal-summary { min-height: 280px; }
  .dialog-close { margin-bottom: 25px; }
  .project-modal-description { max-width: 86%; }
  .project-modal-tabs { position: sticky; top: 0; flex-direction: row; gap: 0; overflow-x: auto; padding: 0; }
  .project-modal-tabs button { min-width: max-content; height: auto; padding: 13px 14px; border-radius: 0; writing-mode: horizontal-tb; transform: none; }
  .project-modal-tabs button[aria-selected="true"] { color: var(--red); border-bottom: 2px solid var(--red); background: transparent; }
  .project-modal-main { min-height: 360px; overflow: visible; }
  .project-tab-panel { min-height: 360px; padding: 26px 22px; }
  .project-stats { gap: 30px; }
  .team-heading-actions { align-items: flex-end; flex-direction: column; gap: 14px; }
}

@media (min-width: 768px) {
  .partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .partner-tile { height: 160px; }
  .partner-tile.span-2 { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .partner-heading { padding-right: 40px; padding-left: 40px; }
  .partner-heading h2 { font-size: 30px; line-height: 36px; }
  .programmes-ref { padding: 112px 0; }
  .programmes-ref > .container { padding-right: 40px; padding-left: 40px; }
  .programmes-ref .section-heading h2 { font-size: 36px; }
  .team-ref-header { padding-right: 40px; padding-left: 40px; }
  .team-ref-header h2 { font-size: 36px; }
  .team-ref-footer { padding-right: 40px; padding-left: 40px; }
}

@media (min-width: 640px) {
  .team-all-link-desktop { display: inline-flex; }
  .team-all-link-mobile { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 620px) {
  .container, .container-narrow { width: min(100% - 34px, var(--container)); }
  .partner-heading { width: 100%; margin-inline: 0; }
  .section { padding: 76px 0; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading .section-link { margin-top: 22px; }
  .hero-content { padding: 150px 0 78px; }
  .hero-content .lede { font-size: 15px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat:first-child { padding: 22px 14px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { border-right: 1px solid rgba(255,255,255,.22); }
  .sector-grid, .programme-grid, .project-grid, .pillar-grid { grid-template-columns: 1fr; }
  .sector-card { min-height: 255px; }
  .pillar { min-height: 220px; padding: 34px 28px; }
  .split-media, .split-media > img { min-height: 330px; height: 330px; }
  .split-media-card { right: -8px; bottom: -16px; width: 140px; }
  .values-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .job-card-header { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 45px; }
}

@media (max-width: 900px) {
  .ref-stats .stats-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .sector-layout { grid-template-columns: 1fr; gap: 42px; }
  .sector-intro { max-width: 620px; }
  .sector-list { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 18px; }
  .thematic-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .map-art { width: 90vw; margin-left: 18%; }
  .project-mosaic { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .team-ref-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .programme-ref-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quote-grid { gap: 40px; }
}
@media (max-width: 620px) {
  .ref-hero .hero-content { padding-top: 130px; padding-bottom: 100px; }
  .ref-hero h1 { font-size: clamp(47px, 14vw, 74px); }
  .ref-hero .hero-copy { font-size: 14px; }
  .ref-stats .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ref-stats .stat { border-right: 1px solid rgba(255,255,255,.22); }
  .ref-stats .stat:nth-child(2n) { border-right: 0; }
  .sector-showcase { padding: 76px 0 86px; }
  .sector-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sector-visual { height: 270px; }
  .sector-number { font-size: 80px; }
  .sector-caption h3 { font-size: 30px; }
  .thematic-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .theme-chip { min-height: 112px; padding: 17px; }
  .theme-chip:last-child { grid-column: span 2; }
  .footprint-ref { min-height: 500px; padding-top: 70px; }
  .footprint-heading { top: 27px; left: 17px; }
  .map-art { width: 140vw; height: 410px; margin: 55px 0 0 15%; }
  .map-legend { right: 17px; bottom: 17px; left: 17px; gap: 8px; font-size: 7px; }
  .project-ref { padding-top: 76px; }
  .project-tile { min-height: 190px; }
  .project-tile.span-2 { grid-column: span 2; }
  .programme-ref-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; gap: 42px; }
  .quote-aside { text-align: left; }
  .quote-aside p { margin-left: 0; }
  .newsletter-grid { align-items: stretch; flex-direction: column; }
  .newsletter-form { width: 100%; }
}

/* Reference chrome and hero calibration */
.site-header .header-inner {
  position: relative;
  width: min(1280px, calc(100% - 48px));
  min-height: 80px;
  padding: 0 40px 0 38px;
}
.site-header .brand { font-size: 12px; letter-spacing: .08em; }
.site-header .brand-copy { font-size: 11px; letter-spacing: .08em; }
.site-header .brand-copy small { font-size: 7px; letter-spacing: .14em; }
.site-header .primary-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  pointer-events: none;
}
.site-header .primary-nav > li { display: block; list-style: none; pointer-events: auto; }
.site-header .primary-nav > li > a { display: block; line-height: 15px; }
.site-header .primary-nav > li:not(.header-cta) { transform: translateX(5px); }
.site-header .primary-nav a::after { display: none; }
.site-header .primary-nav .current-menu-item > a { color: var(--red); }
.site-header .primary-nav > .header-cta {
  position: absolute;
  top: 23px;
  right: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 0 20px;
  pointer-events: auto;
}
.ref-hero { align-items: flex-start; }
.ref-hero::before {
  background: linear-gradient(90deg, var(--charcoal) 0%, rgba(28,28,28,.7) 50%, rgba(0,0,0,0) 100%);
}
.ref-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(193,39,45,.15);
  content: '';
  mix-blend-mode: multiply;
  pointer-events: none;
}
.ref-hero .hero-media { opacity: .7; filter: grayscale(1); }
.ref-hero .hero-content {
  width: min(1204px, calc(100% - 80px));
  max-width: none;
  padding: 146px 0 0;
}
.ref-hero .hero-meta {
  margin: 0 0 24px;
  line-height: 15px;
}
.ref-hero h1 {
  max-width: 672px;
  margin: 0 0 32px;
  font-size: clamp(58px, 6vw, 96px);
  line-height: .93;
}
.ref-hero h1 .hero-title-line { display: block; }
.ref-hero h1 .hero-accent-line { color: var(--orange); font-style: italic; }
.ref-hero .hero-copy {
  max-width: 512px;
  margin: 0 0 40px;
  font-size: 18px;
  line-height: 1.625;
}
.ref-hero .hero-actions { gap: 20px; }
.ref-hero .button { min-height: 47px; padding-inline: 28px; }
.ref-hero .watch-story .watch-icon { width: 48px; height: 48px; }

@media (max-width: 900px) {
  .site-header .header-inner { width: 100%; padding: 0 24px; }
  .site-header .primary-nav {
    inset: auto 24px auto 24px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: var(--charcoal);
    pointer-events: auto;
  }
  .site-header .primary-nav.is-open { display: flex; }
  .site-header .primary-nav > li { width: 100%; }
  .site-header .primary-nav > li:not(.header-cta) { transform: none; }
  .site-header .primary-nav > li > a { padding: 13px 0; }
  .site-header .primary-nav > .header-cta {
    position: static;
    min-height: 44px;
    margin-top: 8px;
  }
  .ref-hero .hero-content { width: min(100% - 48px, 620px); padding-top: 130px; }
  .ref-hero h1 { max-width: 100%; font-size: clamp(47px, 14vw, 74px); }
  .ref-hero .hero-copy { font-size: 14px; }
}

/* Keep interaction layouts authoritative after the legacy responsive rules above. */
@media (max-width: 900px) {
  .footprint-ref .map-art { width: min(820px, 86%); height: 100%; margin: 0; }
}
@media (max-width: 620px) {
  .footprint-ref { height: 82vh; min-height: 650px; padding: 0; }
  .footprint-heading { top: 27px; left: 17px; }
  .footprint-ref .map-art { width: 138vw; height: 100%; margin: 0 0 0 32vw; }
  .map-legend { right: 17px; bottom: 17px; left: 17px; gap: 8px; }
}

/* Mobile navigation: a real off-canvas surface, with the page kept in place behind it. */
.nav-scrim { display: none; }
.mobile-nav-head { display: none; }
.header-cta-copy { display: contents; }
.header-cta-copy small { display: none; }
.header-cta-copy strong { font: inherit; }
.header-cta > i { display: none; font-style: normal; }
body.nav-locked { overflow: hidden; overscroll-behavior: none; }

@media (max-width: 900px) {
  .site-header { z-index: 40; }
  .site-header .header-inner { z-index: 45; }
  .site-header .nav-toggle { position: relative; z-index: 46; display: block; }
  .site-header .primary-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    z-index: 47;
    display: flex;
    width: min(92vw, 390px);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    align-items: stretch;
    gap: 0;
    padding: 0 max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 24px;
    overflow-y: auto;
    background: var(--charcoal);
    color: #fff;
    box-shadow: -30px 0 80px rgba(0,0,0,.32);
    opacity: 0;
    pointer-events: none;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .2s ease, visibility 0s linear .38s;
  }
  .site-header.nav-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }
  .site-header .mobile-nav-head {
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.48);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
  }
  .site-header .mobile-nav-close {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    margin-right: -11px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: transparent;
    color: #fff;
  }
  .site-header .mobile-nav-close i,
  .site-header .mobile-nav-close i::after {
    position: absolute;
    width: 16px;
    height: 1px;
    background: currentColor;
    content: '';
    transform: rotate(45deg);
  }
  .site-header .mobile-nav-close i::after { transform: rotate(90deg); }
  .site-header .primary-nav > li { width: 100%; }
  .site-header.nav-open .primary-nav > li,
  .site-header.nav-open .primary-nav > a { display: block !important; visibility: visible; opacity: 1; }
  .site-header .primary-nav > li:not(.header-cta) { transform: none; }
  .site-header .primary-nav > li > a {
    min-height: 52px;
    padding: 18px 0 17px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.86) !important;
    white-space: nowrap;
  }
  .site-header .primary-nav > li > a:hover,
  .site-header .primary-nav > li.current-menu-item > a { color: var(--orange-light) !important; }
  .site-header .primary-nav > .header-cta {
    position: static;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 16px;
    width: 100%;
    min-height: 74px;
    margin-top: auto;
    padding: 14px 14px 14px 18px;
    border: 1px solid rgba(255,255,255,.16);
    background: var(--color-accent);
    color: var(--color-accent-ink) !important;
    text-align: left;
    box-shadow: 0 16px 36px rgba(0,0,0,.22);
  }
  .site-header.nav-open .primary-nav > .header-cta { display: grid !important; }
  .site-header .header-cta-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
  .site-header .header-cta-copy small { display: block; margin-bottom: 5px; color: #fff; font-size: 7px; font-weight: 800; letter-spacing: .15em; line-height: 1; text-transform: uppercase; }
  .site-header .header-cta-copy strong { color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
  .site-header .header-cta > i { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; font-size: 16px; transition: transform .2s ease, background-color .2s ease; }
  .site-header .header-cta::after { display: none; }
  .nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 46;
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    border: 0;
    background: rgba(20,20,20,.62);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .24s ease;
  }
  .site-header.nav-open .nav-scrim { opacity: 1; pointer-events: auto; visibility: visible; }
  .map-art .africa-map-svg path[data-id] { cursor: pointer; }
  .map-dot.is-hovered,
  .map-dot.is-active,
  .map-dot:hover,
  .map-dot:focus-visible { opacity: 1; transform: translate(-50%, -50%) scale(1.3); box-shadow: 0 0 0 8px rgba(193,39,45,.16); }
  .map-dot.is-hovered span,
  .map-dot.is-active span,
  .map-dot:hover span,
  .map-dot:focus-visible span { opacity: 1; transform: scale(1); }
  .map-legend button.is-hovered,
  .map-legend button.is-active,
  .map-legend button:hover,
  .map-legend button:focus-visible { opacity: 1; }
}

@media (hover: hover) and (pointer: fine) {
  .site-header .mobile-nav-close:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
  .site-header .header-cta:hover > i { background: rgba(255,255,255,.12); transform: translate(2px,-2px); }
}
.site-header .mobile-nav-close:focus-visible,
.site-header .header-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.site-header .mobile-nav-close:active { transform: translateY(1px); }
.site-header .header-cta:active { transform: translateY(1px); }
.site-header .mobile-nav-close:disabled,
.site-header .header-cta[aria-disabled="true"],
.map-dot:disabled,
.map-legend button:disabled,
.footprint-back:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* Shared map state: path, pin and legend always describe the same country. */
.map-art .africa-map-svg path.is-hovered,
.map-art .africa-map-svg path.is-selected { fill: #431d1e !important; opacity: 1; }
.map-hover-label {
  position: absolute;
  top: 43px;
  right: 48px;
  z-index: 6;
  display: grid;
  gap: 4px;
  min-width: 116px;
  padding-left: 12px;
  border-left: 2px solid var(--red);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.map-hover-label.is-visible { opacity: 1; transform: none; }
.map-hover-label span { color: var(--charcoal); font-family: var(--serif); font-size: 20px; line-height: 1; }
.map-hover-label small { color: rgba(28,28,28,.46); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 620px) {
  .site-header .primary-nav { width: min(92vw, 360px); }
  .map-hover-label { top: 76px; right: 17px; }
  .map-hover-label span { font-size: 16px; }
  .footprint-ref .map-art { width: min(430px, 86%); height: 100%; margin: 0; }
}

/* Map controls keep a small visual pin while meeting the 44px touch-target floor. */
.map-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  transform: translate(-50%, -50%);
}
.map-dot::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(193,39,45,.16);
  content: '';
  transform: translate(-50%, -50%);
  transition: box-shadow .2s ease, transform .2s ease;
}
.map-dot span { inset: 6px; }
.map-dot:hover,
.map-dot:focus-visible,
.map-dot.is-hovered,
.map-dot.is-active { box-shadow: none; transform: translate(-50%, -50%); }
.map-dot:hover::before,
.map-dot:focus-visible::before,
.map-dot.is-hovered::before,
.map-dot.is-active::before { box-shadow: 0 0 0 10px rgba(193,39,45,.18); transform: translate(-50%, -50%) scale(1.14); }
.map-dot:focus-visible { outline: 3px solid var(--orange); outline-offset: -5px; border-radius: 50%; }
.map-legend button { min-height: 44px; padding: 8px 2px; opacity: .68; }
.map-legend button span::before { display: none; content: none; }
.map-legend button.is-hovered { opacity: 1; }
.map-legend button:focus-visible,
.footprint-back:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.footprint-detail { visibility: hidden; pointer-events: none; }
.footprint-ref.is-detail .footprint-map-window { pointer-events: none; }
.footprint-ref.is-detail .footprint-detail { visibility: visible; pointer-events: auto; }

@media (max-width: 620px) {
  .map-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 10px;
  }
  .map-legend button { justify-content: flex-start; min-width: 0; font-size: 7px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .primary-nav,
  .site-header .header-cta > i,
  .nav-scrim,
  .footprint-map-window,
  .footprint-detail,
  .map-art,
  .map-dot,
  .map-dot::before,
  .map-dot span,
  .map-hover-label { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
