/* Yari Alheri. Brand: deep green leads, lime reveals (ALHERI Visual Identity, 28 Jul 2026).
   Mobile first: numbers up front, one idea per screen, long lists fold away behind a tap.
   Dark mode follows the phone; the header button overrides it with html[data-theme].
   ponytail: system fonts on purpose. Clash Display and Satoshi lack ƙ ɗ ɓ and ₦; the logo carries the brand. */
:root {
  --g: #032e21; --l: #99e143;
  --bg: #fff; --card: #fff; --soft: #f4f8f2; --line: #e1e8e3; --hdr: rgba(255,255,255,.94);
  --ink: #15201b; --muted: #5b6661; --head: #032e21; --link: #032e21; --kick: #1f6f5c; --num: #032e21;
  --tint: #e9f7d6; --tint-ink: #032e21; --btn: #032e21; --btn-ink: #fff; --band: #032e21; --foot: #201e1f; --target: #f3fbe6;
  --doc: #eef3f6; --doc-ink: #24424f; --rec: #f1efe8; --rec-ink: #4d4535; --state: #e7eef9; --state-ink: #173c6b; --grey: #f1f3f2;
  --shadow: 0 1px 2px rgba(3,46,33,.06), 0 8px 24px rgba(3,46,33,.06);
  --on-light: block; --on-dark: none;
  --pill: rgba(4,18,13,.9); --pill-edge: rgba(255,255,255,.09);
  --r: 16px; --wrap: 1120px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1511; --card: #111d17; --soft: #15231c; --line: #25372e; --hdr: rgba(11,21,17,.92);
    --ink: #e4ece7; --muted: #9aaca2; --head: #f0f7ea; --link: #b6ec74; --kick: #a7d98a; --num: #99e143;
    --tint: rgba(153,225,67,.14); --tint-ink: #c8f08f; --btn: #99e143; --btn-ink: #032e21; --band: #0f2d22; --foot: #060b09; --target: rgba(153,225,67,.12);
    --doc: rgba(150,190,210,.14); --doc-ink: #b7d3e0; --rec: rgba(220,210,180,.12); --rec-ink: #d9cfb3; --state: rgba(120,160,230,.16); --state-ink: #b3c9f0; --grey: rgba(255,255,255,.07);
    --shadow: 0 1px 2px rgba(0,0,0,.35);
    --on-light: none; --on-dark: block;
    --pill: rgba(28,46,37,.94); --pill-edge: rgba(255,255,255,.17);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1511; --card: #111d17; --soft: #15231c; --line: #25372e; --hdr: rgba(11,21,17,.92);
  --ink: #e4ece7; --muted: #9aaca2; --head: #f0f7ea; --link: #b6ec74; --kick: #a7d98a; --num: #99e143;
  --tint: rgba(153,225,67,.14); --tint-ink: #c8f08f; --btn: #99e143; --btn-ink: #032e21; --band: #0f2d22; --foot: #060b09; --target: rgba(153,225,67,.12);
  --doc: rgba(150,190,210,.14); --doc-ink: #b7d3e0; --rec: rgba(220,210,180,.12); --rec-ink: #d9cfb3; --state: rgba(120,160,230,.16); --state-ink: #b3c9f0; --grey: rgba(255,255,255,.07);
  --shadow: 0 1px 2px rgba(0,0,0,.35);
  --on-light: none; --on-dark: block;
  --pill: rgba(28,46,37,.94); --pill-edge: rgba(255,255,255,.17);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; scroll-padding-bottom: 96px; }
html { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--l); color: #032e21; }
body { margin: 0; font: 16px/1.5 var(--sans); color: var(--ink); background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, .h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--head); text-wrap: balance; }
h1 { font-size: clamp(28px, 7.4vw, 46px); font-weight: 850; }
h2 { font-size: clamp(21px, 5.4vw, 28px); font-weight: 800; }
h3, .h3 { font-size: 19px; font-weight: 800; margin-top: 30px; }
p { margin: 0 0 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--btn); color: var(--btn-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--l); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.ic { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; }
.on-light { display: var(--on-light); }
.on-dark { display: var(--on-dark); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--hdr); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 58px; }
.brand img { width: 104px; }
.menu { display: none; }
.top-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--head); cursor: pointer; }
.icon-btn:hover { background: var(--tint); }
.icon-btn .ic { width: 19px; height: 19px; }
.theme-btn .i-moon { display: var(--on-light); }
.theme-btn .i-sun { display: var(--on-dark); }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--head); text-decoration: none; font-size: 14px; font-weight: 750; }
.lang-btn:hover { border-color: var(--head); }
.lang-btn .ic { width: 16px; height: 16px; }
@media (max-width: 359px) { .lang-btn .ic { display: none; } .top-tools { gap: 4px; } .brand img { width: 96px; } }

/* floating tab bar on phones and small tablets, a dark pill like the Dynamic Island. Same in light and dark. */
.tabbar { position: fixed; z-index: 25; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(400px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 6px; border-radius: 999px; background: var(--pill); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); box-shadow: 0 12px 32px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.18), inset 0 0 0 1px var(--pill-edge); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 50px; border-radius: 999px; color: rgba(255,255,255,.72); text-decoration: none; font-size: 11px; font-weight: 700; line-height: 1.1; text-align: center; }
.tabbar a:hover { color: #fff; }
.tab-ic { display: grid; place-items: center; }
.tab-ic .ic { width: 20px; height: 20px; }
.tabbar a[aria-current] { background: var(--l); color: #032e21; }

/* buttons, badges, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--btn); color: var(--btn-ink); text-decoration: none; font-weight: 750; font-size: 16px; padding: 13px 20px; border-radius: 999px; border: 0; line-height: 1.1; }
.btn:hover { color: var(--btn-ink); filter: brightness(1.12); }
.btn .ic { width: 18px; height: 18px; }
.btn-light { background: transparent; color: var(--head); box-shadow: inset 0 0 0 1.5px var(--head); }
.btn-light:hover { color: var(--head); background: var(--soft); filter: none; }
.btn-lime { background: var(--l); color: #032e21; }
.btn-lime:hover { color: #032e21; }
.btn-wa { background: #1faa55; color: #fff; }
.btn-wa:hover { color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 750; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--soft); color: var(--head); white-space: nowrap; }
.badge .ic { width: 14px; height: 14px; }
.st-delivered, .st-inuse { background: var(--l); color: #032e21; }
.st-launched { background: var(--tint); color: var(--tint-ink); }
.st-documented { background: var(--doc); color: var(--doc-ink); }
.st-recorded { background: var(--rec); color: var(--rec-ink); }
.pd-personal { background: var(--g); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.pd-state { background: var(--state); color: var(--state-ink); }
.pd-tbc, .pd-mixed, .pd-federal { background: var(--grey); color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; padding: 4px 11px; border-radius: 999px; background: var(--soft); color: var(--head); border: 1px solid var(--line); text-decoration: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--kick); margin: 0 0 8px; }
.eyebrow.light { color: var(--l); }

/* home: hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--soft) 100%); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M22 6 38 22 22 38 6 22Z' fill='none' stroke='%2399e143' stroke-opacity='.35'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%); }
.hero-in { position: relative; display: grid; gap: 16px; padding-top: 22px; padding-bottom: 26px; }
.lockup img { width: min(290px, 80%); }
.hero h1 { margin: 0; font-size: clamp(30px, 8.6vw, 56px); max-width: 13ch; }
/* hero with a real photo of him (assets/img/hero.jpg): full bleed, a slow zoom, the words on a dark fade */
.hero.photo { display: grid; align-items: end; min-height: min(76vh, 620px); background: #0b1511; border-bottom: 0; }
.hero.photo::before { display: none; }
.hero.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,18,13,0) 30%, rgba(4,18,13,.55) 62%, rgba(4,18,13,.92) 100%); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; animation: kenburns 20s ease-out both; }
.hero.photo .hero-in { z-index: 1; width: 100%; }
.hero.photo h1 { color: #fff; }
.hero.photo .lockup .on-light { display: none; }
.hero.photo .lockup .on-dark { display: block; }
@keyframes kenburns { from { transform: scale(1.12); } }

/* numbers */
.bignum { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 18px; }
.bignum strong { font-size: clamp(54px, 16vw, 92px); line-height: .92; font-weight: 850; letter-spacing: -0.045em; color: var(--num); }
.bignum span { font-size: 15px; font-weight: 650; color: var(--muted); }
.era { position: relative; overflow: hidden; background: var(--band); color: #d9e7dd; }
.era::after { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(153,225,67,.08); pointer-events: none; }
.era-in { position: relative; padding-top: 28px; padding-bottom: 30px; }
.era .bignum strong { color: var(--l); }
.era .bignum span { color: #cfe0d5; }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 20px; }
.mini { display: flex; flex-direction: column; gap: 5px; padding: 12px 10px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.mini:hover { background: rgba(255,255,255,.13); color: #fff; }
.mini strong { font-size: 25px; line-height: 1; letter-spacing: -0.02em; }
.mini span { font-size: 12.5px; line-height: 1.25; color: #b9cfc2; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.pair { display: flex; flex-direction: column; min-height: 132px; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.pair:hover { border-color: var(--head); }
.pair strong { font-size: clamp(24px, 6.8vw, 34px); line-height: 1; letter-spacing: -0.03em; color: var(--num); }
.pair .unit { margin-top: 5px; font-size: 13.5px; font-weight: 750; line-height: 1.3; }
.pair .what { margin-top: auto; padding-top: 10px; font-size: 13px; line-height: 1.3; color: var(--muted); }

/* sections */
.block { margin-top: 36px; }
.block > .btn { width: 100%; }
.era .btn { width: 100%; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.head h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 15px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.fine { display: flex; gap: 8px; align-items: flex-start; max-width: 64ch; margin: -4px 0 14px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.fine .ic { flex: none; margin-top: 2px; }

/* your area */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.areas a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 50px; padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1.2; }
.areas a:hover { border-color: var(--head); }
.areas b { flex: none; font-size: 12.5px; font-weight: 800; color: var(--tint-ink); background: var(--tint); border-radius: 999px; padding: 2px 8px; }

/* rows you can tap */
.list { display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 11px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.item:hover { border-color: var(--head); }
div.item { align-items: flex-start; }
.item-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--tint-ink); }
.item-ic .ic { width: 20px; height: 20px; }
.honour .item-ic { border-radius: 50%; background: var(--l); color: #032e21; }
.item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-body strong { font-size: 15.5px; line-height: 1.3; color: var(--head); }
.item-meta { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.item-meta b { color: var(--ink); font-weight: 800; }
.item-text { font-size: 14.5px; line-height: 1.45; margin-top: 4px; }
.item-src { font-size: 13.5px; margin-top: 4px; }
.item-n { flex: none; font-size: 16px; font-weight: 800; color: var(--num); }
.item > .chev { flex: none; width: 18px; height: 18px; color: var(--muted); }

/* the two eras as tabs, theme chips */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 520px; padding: 4px; margin: 0 0 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 6px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 800; line-height: 1.2; text-align: center; }
.tabs small { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.tabs a[aria-current] { background: var(--btn); color: var(--btn-ink); }
.tabs a[aria-current] small { color: inherit; opacity: .8; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 2px 16px 4px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; font-weight: 700; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip .ic { color: var(--kick); }
.chip:hover { border-color: var(--kick); }
.chip.on { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.chip.on .ic { color: inherit; }

/* folded sections */
.accs { display: grid; gap: 8px; }
.acc { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.acc > summary { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 14px; cursor: pointer; list-style: none; color: var(--head); font-weight: 750; line-height: 1.3; }
.acc > summary::-webkit-details-marker, .drawer > summary::-webkit-details-marker, .legend summary::-webkit-details-marker { display: none; }
.acc > summary > .ic:first-child { width: 20px; height: 20px; color: var(--kick); }
.acc > summary > span { flex: 1; min-width: 0; }
.acc > summary b { flex: none; font-size: 12.5px; font-weight: 800; color: var(--tint-ink); background: var(--tint); border-radius: 999px; padding: 2px 9px; }
.acc > .rows { padding: 0 14px 4px; border-top: 1px solid var(--line); }
.acc[open] > summary { position: sticky; top: 58px; z-index: 3; background: var(--card); border-radius: 14px 14px 0 0; }
.chev { transition: transform .15s; }
details[open] > summary .chev { transform: rotate(180deg); }
.drawer { margin: 14px 0; }
.drawer > summary { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; cursor: pointer; list-style: none; color: var(--link); font-weight: 750; }
.drawer > .list { margin-top: 6px; }

/* detail pages */
.page { padding-top: 16px; }
.back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 10px -4px; padding: 4px; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 700; }
.back:hover { color: var(--head); }
.kicker { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--kick); }
.lede { font-size: 17px; color: var(--muted); max-width: 62ch; }
.facts { list-style: none; padding: 0; margin: 18px 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts li > .ic { flex: none; margin-top: 3px; color: var(--kick); }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.timeline { list-style: none; padding: 0; margin: 10px 0 0 6px; border-left: 3px solid var(--l); }
.timeline li { position: relative; padding: 2px 0 16px 18px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: var(--head); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line); }
.timeline strong { display: block; color: var(--head); }
.timeline sup a { text-decoration: none; font-weight: 800; }
.timeline .src { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.nw, .item-src a { white-space: nowrap; }
.sources { margin: 4px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.films { display: grid; gap: 14px; margin: 18px 0; }
.films .yt { margin: 0; }
.cap { margin: -6px 0 4px; font-size: 14px; color: var(--muted); }
.cap a { font-weight: 750; text-decoration: none; }
.him { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 6px; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--soft); }
.gallery figcaption { margin-top: 8px; font-size: 14px; line-height: 1.35; }
.him img { flex: none; width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 4px var(--tint); }
.him h1 { margin-bottom: 6px; }
.him .lede { margin: 0; font-size: 15.5px; }
/* where he is now, with a live dot */
.now { margin: 16px 0 4px; padding: 14px 16px; border-radius: var(--r); background: var(--tint); }
.now-k { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tint-ink); }
.live { width: 8px; height: 8px; border-radius: 50%; background: #1faa55; animation: live 2s ease-out infinite; }
@keyframes live { from { box-shadow: 0 0 0 0 rgba(31,170,85,.55); } 70%, to { box-shadow: 0 0 0 8px rgba(31,170,85,0); } }
.now ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.now li { font-size: 15.5px; line-height: 1.4; }
.now li strong { color: var(--head); }
.now .src { display: block; font-size: 13px; color: var(--muted); }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { margin-top: 3px; color: var(--kick); }
.legend { margin: 22px 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.legend summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; list-style: none; color: var(--head); font-weight: 750; }
.legend summary::after { content: "+"; margin-left: auto; font-size: 20px; line-height: 1; }
.legend[open] summary::after { content: "–"; }
.legend-grid { display: grid; gap: 16px; padding: 0 16px 16px; }
.legend h3 { margin: 6px 0 8px; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legend li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; }

/* stories and film */
.stories { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.stories.scroller { grid-auto-flow: column; grid-auto-columns: min(80%, 300px); grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; }
.scroller::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; scroll-snap-align: start; }
.story strong { font-size: 16.5px; line-height: 1.25; color: var(--head); }
.story .muted { font-size: 14px; }
.thumb { position: relative; aspect-ratio: 16 / 9; margin-bottom: 6px; border-radius: var(--r); overflow: hidden; background: var(--g); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform .3s; }
.story:hover .thumb img { transform: scale(1.12); }
.yt { position: relative; aspect-ratio: 16 / 9; margin: 16px 0; border-radius: var(--r); overflow: hidden; background: var(--g); box-shadow: var(--shadow); }
.yt a, .yt img, .yt iframe { display: block; width: 100%; height: 100%; border: 0; }
.yt img { object-fit: cover; opacity: .92; transform: scale(1.08); } /* 4K films are cinema width: zoom past the black bars */
.yt-play { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; background: var(--l); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.yt-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #032e21; }
.yt-play.small { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.yt-play.small::after { left: 17px; top: 13px; border-width: 9px 0 9px 14px; }

/* search: a Spotlight-style overlay in dark green glass, the same in light and dark mode */
html:has(dialog[open]) { overflow: hidden; }
.spot { width: min(680px, calc(100% - 20px)); max-width: none; max-height: none; margin: calc(10px + env(safe-area-inset-top)) auto auto; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.spot::backdrop { background: rgba(3,20,14,.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.spot-bar, .spot-panel { background: rgba(6,24,17,.84); -webkit-backdrop-filter: blur(26px) saturate(1.7); backdrop-filter: blur(26px) saturate(1.7); box-shadow: 0 24px 70px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.1); }
.spot-bar { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 10px 0 20px; border-radius: 999px; }
.spot-bar > .ic { width: 22px; height: 22px; color: var(--l); }
.spot-q { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 20px; font-weight: 600; caret-color: var(--l); }
.spot-q::placeholder { color: rgba(255,255,255,.45); }
.spot-q::-webkit-search-cancel-button { display: none; }
.spot kbd { padding: 4px 7px; border-radius: 6px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); font: 600 12px/1 var(--sans); }
.spot-x { display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.spot-panel { margin-top: 10px; border-radius: 26px; overflow: hidden; }
.spot-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 14px 16px; }
.spot-try span { margin-right: 2px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.spot-try button { padding: 7px 13px; border: 0; border-radius: 999px; background: rgba(255,255,255,.09); color: #fff; font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer; }
.spot-try button:hover { background: rgba(153,225,67,.22); }
.spot-list { list-style: none; margin: 0; padding: 0 8px; max-height: min(62vh, 540px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.spot-list:not(:empty) { padding: 6px 8px 8px; }
.spot-group { padding: 10px 12px 4px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.spot-list a { display: flex; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 16px; color: #fff; text-decoration: none; animation: fadein .16s ease both; }
.spot-list a.on { background: rgba(153,225,67,.17); }
.spot-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--l); }
.spot-list a.on .spot-ic { background: var(--l); color: #032e21; }
.spot-ic .ic { width: 21px; height: 21px; }
.spot-txt { min-width: 0; display: flex; flex-direction: column; }
.spot-t { font-size: 16px; font-weight: 700; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.spot-m { font-size: 13.5px; color: rgba(255,255,255,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-more { width: 100%; margin-top: 4px; padding: 11px; border: 0; border-radius: 14px; background: rgba(255,255,255,.07); color: var(--l); font: inherit; font-weight: 750; cursor: pointer; }
.spot-status { margin: 0; padding: 4px 18px 16px; font-size: 14.5px; color: rgba(255,255,255,.6); }
.spot-status:empty { display: none; }
.spot[open] { animation: spotin .3s cubic-bezier(.2,.8,.2,1); }
.spot[open]::backdrop { animation: fadein .25s ease; }
@keyframes spotin { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
/* the search page keeps a big bar that opens the overlay */
.spot-open { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font: inherit; font-size: 17px; text-align: left; cursor: pointer; }
.spot-open .ic { width: 20px; height: 20px; }
@media (max-width: 599px) {
  .spot-bar { height: 54px; padding-left: 16px; }
  .spot-q { font-size: 17px; }
  .spot kbd { display: none; }
  .spot-list { max-height: calc(100dvh - 150px); }
}
@media (min-width: 600px) {
  .spot { margin-top: 12vh; }
  .spot-x { display: none; }
}

/* project rows: search results and the folded register */
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: flex; flex-direction: column; gap: 3px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows li:target { background: var(--target); box-shadow: inset 4px 0 0 var(--l); padding-left: 10px; }
.row-title { font-weight: 600; line-height: 1.4; color: var(--ink); }
.row-type { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 13px; font-weight: 800; color: var(--kick); }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.row-meta .ic { color: var(--kick); }
.dot { opacity: .5; }
.rows li.fold { gap: 6px; position: relative; }
.rows li.fold > [id] { position: absolute; top: 0; } /* search anchors, out of the layout */
.times { margin-left: 8px; font-size: 12px; font-weight: 800; background: var(--tint); color: var(--tint-ink); border-radius: 999px; padding: 1px 8px; vertical-align: 2px; }
.places { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--head); }
.places > .ic { margin-top: 5px; color: var(--kick); }
.pls { display: flex; flex-wrap: wrap; gap: 5px; }
.pl { padding: 2px 8px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); font-weight: 600; }
.pl small { font-weight: 500; color: var(--muted); }
.pl:has(> :target) { background: var(--l); border-color: var(--l); color: #032e21; }
.rows li.fold:has(> [id]:target) { background: var(--target); box-shadow: inset 4px 0 0 var(--l); padding-left: 10px; }

/* footer */
.foot { margin-top: 48px; padding: 30px 0 calc(100px + env(safe-area-inset-bottom)); background: var(--foot); color: #cfd6d2; }
.foot img { width: 118px; margin-bottom: 12px; }
.foot-who { max-width: 46ch; margin: 0 0 14px; color: #fff; font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; }
.foot-links a { color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 650; }
.foot-links a:hover { color: var(--l); }
.powered { display: inline-flex; align-items: center; gap: 10px; color: #a9b1ad; text-decoration: none; font-size: 13px; }
.powered:hover { color: #fff; }
.powered img { width: 104px; margin: 0; }

/* language sheet */
.sheet { width: min(420px, calc(100% - 24px)); padding: 26px 22px 20px; border: 0; border-radius: 24px; background: var(--card); color: var(--ink); text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.sheet::backdrop { background: rgba(3,46,33,.5); backdrop-filter: blur(2px); }
.sheet-seal { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; box-shadow: 0 0 0 4px var(--tint); }
.sheet .q1 { margin: 0; font-size: 21px; font-weight: 850; line-height: 1.25; color: var(--head); }
.sheet .q2 { margin: 6px 0 18px; color: var(--muted); }
.sheet-btns { display: flex; gap: 10px; }
.sheet-btns button { flex: 1; padding: 14px 0; font: inherit; font-size: 17px; font-weight: 800; border-radius: 999px; border: 2px solid var(--head); background: var(--card); color: var(--head); cursor: pointer; }
.sheet-btns button.primary { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.sheet .hint { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 599px) {
  .sheet { margin: auto auto 12px; }
}
@media (min-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 28px; }
  .hero-in { grid-template-columns: auto 1fr; align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 52px; }
  .lockup img { width: 380px; }
  .hero.photo { min-height: min(80vh, 720px); align-items: center; }
  .hero.photo::after { background: linear-gradient(90deg, rgba(4,18,13,.9) 0%, rgba(4,18,13,.55) 45%, rgba(4,18,13,0) 75%); }
  .hero.photo .hero-in { grid-template-columns: 1fr; }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .era-in { display: grid; grid-template-columns: 1fr 1.15fr; grid-template-areas: "eye minis" "num minis" "btn minis"; column-gap: 40px; align-items: start; padding-top: 44px; padding-bottom: 46px; }
  .era-in > .eyebrow { grid-area: eye; }
  .era-in > .bignum { grid-area: num; }
  .era-in > .minis { grid-area: minis; align-self: center; margin: 0; }
  .era-in > .btn { grid-area: btn; justify-self: start; width: auto; }
  .mini { padding: 18px 16px; }
  .mini strong { font-size: 34px; }
  .mini span { font-size: 14px; }
  .pairs { grid-template-columns: repeat(4, 1fr); }
  .block > .btn { width: auto; }
  .areas { grid-template-columns: repeat(4, 1fr); }
  .list.cols { grid-template-columns: 1fr 1fr; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0 0 16px; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .stories.scroller { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .legend-grid { grid-template-columns: 1fr 1fr; }
  /* register rows: title and places on the left, agency on the right of the title line */
  .rows li { flex-direction: row; justify-content: space-between; gap: 18px; }
  .rows li .row-meta { flex: none; justify-content: flex-end; max-width: 42%; text-align: right; }
  .rows li.fold { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: start; }
  .rows li.fold > .row-title, .rows li.fold > .places { grid-column: 1; }
  .rows li.fold > .row-meta { grid-column: 2; grid-row: 1; max-width: 32ch; }
}
@media (min-width: 900px) {
  .tabbar { display: none; }
  .foot { padding-bottom: 28px; }
  .top-row { height: 68px; }
  .brand img { width: 128px; }
  .menu { display: flex; gap: 4px; margin: 0 auto; }
  .menu a { padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 650; }
  .menu a:hover { background: var(--soft); }
  .menu a[aria-current] { background: var(--btn); color: var(--btn-ink); }
  .acc[open] > summary { top: 68px; }
}

/* motion. Transform and opacity only, so cheap phones stay smooth. All of it stops for readers who ask for less motion. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fadein { from { opacity: 0; } }
@keyframes sheetin { from { opacity: 0; transform: translateY(28px) scale(.97); } }
@keyframes breathe { 50% { transform: scale(1.12); } }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 18px rgba(153,225,67,0); } }
@keyframes vt-out { to { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* moving between pages: content cross-fades; header, tab bar and the active pills stay put or slide */
  @view-transition { navigation: auto; }
  .top { view-transition-name: top; }
  .tabbar { view-transition-name: tabbar; }
  .tabbar a[aria-current] { view-transition-name: tabpill; }
  .menu a[aria-current] { view-transition-name: navpill; }
  .tabs a[aria-current] { view-transition-name: erapill; }
  ::view-transition-old(root) { animation: .16s ease both vt-out; }
  ::view-transition-new(root) { animation: .25s ease both fadein; }
  ::view-transition-group(tabpill), ::view-transition-group(navpill), ::view-transition-group(erapill) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
}
.era::after { animation: breathe 9s ease-in-out infinite; }
.yt-play:not(.small)::before { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: ping 2.4s cubic-bezier(.2,.7,.2,1) infinite; box-shadow: 0 0 0 0 rgba(153,225,67,.55); }
.bignum strong, .mini strong, .pair strong { font-variant-numeric: tabular-nums; }
/* touch and hover feedback */
.btn, .item, .pair, .mini, .areas a, .chip, .tabs a, .icon-btn, .lang-btn, .tabbar a, .story, .acc, .back { transition: transform .18s ease, background-color .22s, border-color .22s, box-shadow .22s, color .22s; }
.btn:active, .item:active, .pair:active, .mini:active, .areas a:active, .chip:active, .icon-btn:active, .lang-btn:active, .tabbar a:active, .story:active { transform: scale(.97); }
.item > .chev, .more .ic, .btn .ic { transition: transform .2s ease; }
.theme-btn .ic { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) {
  a.item:hover, .pair:hover, .areas a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .mini:hover { transform: translateY(-2px); }
  a.item:hover > .chev, .more:hover .ic, .btn:hover .ic { transform: translateX(3px); }
  .theme-btn:hover .ic { transform: rotate(-25deg); }
  .back:hover { transform: translateX(-2px); }
}
/* folds open softly */
.acc[open] > .rows, .drawer[open] > :not(summary), .legend[open] > .legend-grid { animation: rise .35s cubic-bezier(.2,.8,.2,1) both; }
.sheet[open] { animation: sheetin .38s cubic-bezier(.2,.8,.2,1); }
.sheet[open]::backdrop { animation: fadein .3s ease; }
/* reveal. The head script sets html.motion before first paint, so these blocks start hidden with no flash.
   site.js shows the first screen top to bottom, then each block as it scrolls in. Keep the list in step with CAND in site.js. */
.motion :is(.hero-in, .era-in, .page, .block, .minis, .pairs, .areas, .list, .accs, .stories:not(.scroller)) > :not(.minis, .pairs, .areas, .list, .accs, .timeline, .facts, .stories:not(.scroller), .shown),
.motion :is(.timeline, .facts) > li:not(.shown) { opacity: 0; transform: translateY(16px); }
.motion .shown:not(.done) { transition: opacity .5s ease var(--d, 0ms), transform .65s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-rv] { opacity: 1; transform: none; }
}
@media print {
  .motion * { opacity: 1 !important; transform: none !important; }
  .tabbar, .top-tools { display: none; }
}
