/* MilesFoundation: Gainlove's editorial white space and serif, HopeFoundation's section structure.
   Accents come from the Ugandan flag (black, yellow, red), plus a deep "Ugandan hills" green. */
:root {
  --ink: #16140f;
  --ink-2: #3a362e;
  --muted: #6b665c;
  --line: #e8e4db;
  --paper: #ffffff;
  --mist: #f6f5f1;
  --sun: #f7b500;
  --sun-soft: #fff4d1;
  --red: #c8102e;
  --green: #1d6a45;
  --green-deep: #144d32;

  --display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 4.25rem);

  --radius: 18px;
  --wrap: 1200px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --shadow: 0 18px 40px -22px rgba(22, 20, 15, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--mist { background: var(--mist); }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 700 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) 0 33%, var(--sun) 33% 66%, var(--red) 66%); }
.section-head { display: grid; gap: .9rem; justify-items: center; text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); }
.section-head--left { justify-items: start; text-align: left; margin-inline: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: 700 .82rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #ffc61a; }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--green { background: var(--green); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn .icon { width: 1.1em; height: 1.1em; }
.play {
  display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; font-size: .82rem; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.play span { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.textlink { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--green); }
.textlink:hover { text-decoration: underline; }

/* ---------- header ---------- */
.topbar { background: var(--ink); color: #d9d5cb; font-size: .8rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; padding-block: .5rem; }
.topbar span { display: inline-flex; gap: .4rem; align-items: center; }
.topbar .group { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-family: var(--display); font-size: 1.35rem; line-height: 1; }
.brand-name small { display: block; font: 600 .62rem/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.site-header .wrap { position: static; }
.site-header.is-stuck { box-shadow: 0 10px 30px -22px rgba(22, 20, 15, .45); }
.nav { display: flex; align-items: center; margin-left: auto; }
.nav-list { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.nav-list > li { display: flex; align-items: center; }
.nav-top { position: relative; display: flex; align-items: center; min-height: 74px; padding: 0 .7rem; text-decoration: none; font-weight: 600; font-size: .84rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.nav-top::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: 20px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ink) 0 33%, var(--sun) 33% 66%, var(--red) 66%); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-top:hover, .nav-top[aria-current] { color: var(--ink); }
.nav-top:hover::after, .nav-top[aria-current]::after, .has-mega:hover > .nav-top::after, .has-mega.open > .nav-top::after { transform: scaleX(1); }
.sub-toggle { display: flex; margin-left: -.55rem; margin-right: .2rem; padding: 6px 3px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.sub-toggle .icon { width: 15px; height: 15px; transition: transform .25s ease; }
.has-mega:hover .sub-toggle .icon, .has-mega.open .sub-toggle .icon { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 3px solid var(--sun); box-shadow: 0 30px 50px -30px rgba(22, 20, 15, .4);
  visibility: hidden; opacity: 0; transform: translateY(-6px); transition: visibility 0s .2s, opacity .2s ease, transform .2s ease; }
.has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.open > .mega { visibility: visible; opacity: 1; transform: none; transition-delay: .06s, .06s, 0s; }
.has-mega.closed > .mega { visibility: hidden; opacity: 0; }
.mega-inner { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(170px, .8fr) minmax(170px, .8fr) minmax(320px, 1.3fr); gap: 32px; padding-block: 30px 34px; }
.mega-inner:has(.mega-col:only-of-type) { grid-template-columns: minmax(230px, 1fr) minmax(200px, 1fr) minmax(320px, 1.3fr); }
.mega-intro { display: grid; align-content: start; gap: 12px; padding-right: 30px; border-right: 1px solid var(--line); }
.mega-intro p { color: var(--muted); font-size: .93rem; }
.mega-title { display: flex; align-items: center; gap: 8px; font: 400 1.7rem/1.1 var(--display); text-decoration: none; color: var(--ink); }
.mega-title .icon { color: var(--green); transition: transform .2s; }
.mega-title:hover .icon { transform: translateX(4px); }
.mega-col h3 { margin-bottom: 10px; font: 700 .72rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mega-col ul { margin: 0; padding: 0; list-style: none; }
.mega-col a { display: block; padding: 6px 0; font-weight: 600; text-decoration: none; color: var(--ink); }
.mega-col a:hover { color: var(--green); }
.mega-feature { grid-column: -2 / -1; display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: start; padding: 12px; border-radius: 16px; text-decoration: none;
  background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.mega-feature img { width: 140px; height: 140px; border-radius: 12px; object-fit: cover; }
.mega-feature--text { grid-template-columns: 1fr; padding: 20px; background: linear-gradient(135deg, var(--sun-soft), var(--mist)); }
.mega-feature small { display: block; margin-bottom: 6px; font: 700 .68rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.mega-feature strong { display: block; margin-bottom: 6px; font: 400 1.15rem/1.25 var(--display); color: var(--ink); }
.mega-feature em { display: block; margin-top: 10px; font-style: normal; font-weight: 700; color: var(--green); }
.mega-feature:hover strong { color: var(--green); }
.mega-bar { display: block; height: 6px; margin-top: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.mega-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), #f08c00 60%, var(--red)); }
.nav-mobile-extra { display: none; }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.header-phone .icon { color: var(--green); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: .4rem; cursor: pointer; color: var(--ink); }
.menu-btn .icon { width: 28px; height: 28px; }
@media (max-width: 1400px) { .header-phone { display: none; } }
@media (max-width: 1240px) { .nav-top { padding: 0 .5rem; font-size: .8rem; letter-spacing: .03em; } }
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .site-header .wrap { gap: .75rem; }
  .header-cta { margin-left: auto; }
  .menu-btn { margin-left: 0; }
  .nav { position: fixed; left: 0; right: 0; top: var(--nav-top, 120px); bottom: 0; z-index: 60; display: none; flex-direction: column; align-items: stretch; margin: 0;
    overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-top: 1px solid var(--line);
    padding: .5rem var(--gutter-r) calc(1.5rem + env(safe-area-inset-bottom, 0px)) var(--gutter); }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-top { flex: 1; min-height: 54px; padding: 0; font-size: .95rem; }
  .nav-top::after { display: none; }
  .sub-toggle { margin: 0; padding: 12px; }
  .mega { position: static; flex-basis: 100%; display: none; visibility: visible; opacity: 1; transform: none; box-shadow: none; border-top: 0; transition: none; }
  .has-mega:hover > .mega, .has-mega:focus-within > .mega { display: none; }
  .has-mega.open > .mega { display: block; }
  .mega .wrap { padding: 0; }
  .mega-inner { grid-template-columns: 1fr !important; gap: 14px; padding: 0 0 16px; }
  .mega-intro { display: none; }
  .mega-feature { grid-column: auto; grid-template-columns: 84px 1fr; }
  .mega-feature img { width: 84px; height: 84px; }
  .nav-mobile-extra { display: grid; gap: 12px; padding-top: 18px; }
  .nav-call { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 480px) { .header-cta .btn { padding: .6rem .85rem; font-size: .72rem; } .topbar .hide-sm { display: none; } }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: .6rem 1rem; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
.admin-bar { background: var(--red); color: #fff; text-align: center; font-size: .85rem; padding: .45rem 1rem; }
.admin-bar a { font-weight: 700; }

/* ---------- intro band: the Uganda map filled with photos (the first hero) ---------- */
.intro-band { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px);
  background-image: radial-gradient(circle, #dcd7cc 1.2px, transparent 1.4px); background-size: 18px 18px; }
.intro-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 30% 50%, var(--paper) 35%, rgba(255, 255, 255, .55) 75%, rgba(255,255,255,.2)); pointer-events: none; }
.intro-band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.intro-copy { display: grid; gap: 1.4rem; min-width: 0; }
.intro-band h1, .intro-band h2 { font-size: var(--step-4); }
.intro-band h2 em { font-style: normal; background: linear-gradient(transparent 62%, var(--sun-soft) 62%); }
.intro-copy > p { color: var(--muted); max-width: 46ch; font-size: 1.05rem; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.intro-map { position: relative; min-width: 0; }
.intro-map svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(22, 20, 15, .18)); }
.dot { position: absolute; border-radius: 50%; animation: float 6s ease-in-out infinite; }
.dot--1 { width: 18px; height: 18px; background: var(--sun); top: 8%; left: 6%; }
.dot--2 { width: 12px; height: 12px; background: var(--red); top: 30%; right: 0; animation-delay: -2s; }
.dot--3 { width: 10px; height: 10px; background: var(--green); bottom: 12%; left: 2%; animation-delay: -4s; }
.dot--4 { width: 14px; height: 14px; background: #2f80ed; bottom: 4%; right: 18%; animation-delay: -1s; }
.dot--5 { width: 8px; height: 8px; background: var(--sun); top: 0; right: 30%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.map-badge { position: absolute; left: 4%; bottom: 14%; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); padding: .7rem .95rem; display: flex; gap: .7rem; align-items: center; font-size: .8rem; line-height: 1.3; }
.map-badge strong { font-family: var(--display); font-weight: 400; font-size: 1.25rem; display: block; }
.map-badge .flag { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--ink) 0 33%, var(--sun) 0 66%, var(--red) 0); flex: none; }
.intro-trust { display: flex; align-items: center; gap: .8rem; font-size: .85rem; color: var(--muted); }
.intro-trust .avatars { display: flex; }
.intro-trust .avatars img { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--paper); object-fit: cover; margin-left: -10px; }
.intro-trust .avatars img:first-child { margin-left: 0; }
.intro-trust strong { color: var(--ink); display: block; font-size: 1rem; }
@media (max-width: 860px) { .intro-band .wrap { grid-template-columns: 1fr; } .intro-map { max-width: 520px; margin-inline: auto; width: 100%; } }

/* ---------- make a difference (icon cards) ---------- */
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cards4 { grid-template-columns: 1fr; } }
.icard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; display: grid; gap: .8rem; justify-items: center; text-align: center; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.icard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.icard .ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--sun-soft); color: var(--ink); }
.icard .ico .icon { width: 30px; height: 30px; }
.icard h3 { font-size: 1.25rem; }
.icard p { font-size: .92rem; color: var(--muted); }

/* ---------- mission (HopeFoundation) ---------- */
.mission { display: grid; grid-template-columns: 1.05fr 1fr .85fr; gap: clamp(24px, 3.5vw, 48px); align-items: center; }
@media (max-width: 1020px) { .mission { grid-template-columns: 1fr 1fr; } .mission .stats-box { grid-column: 1 / -1; } }
@media (max-width: 680px) { .mission { grid-template-columns: 1fr; } }
.media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .play-btn { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 255, 255, .35); }
.media .play-btn .icon { width: 28px; height: 28px; fill: currentColor; }
.mission-copy { display: grid; gap: 1rem; min-width: 0; }
.mission-copy h2 { font-size: var(--step-3); }
.mission-copy > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.checks .icon { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 22px; height: 22px; stroke-width: 2.5; }
.stats-box { display: grid; grid-template-columns: 1fr 1fr; background: var(--mist); border-radius: var(--radius); }
.stat { padding: 1.6rem 1rem; display: grid; justify-items: center; gap: .35rem; text-align: center; }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stat .icon { width: 30px; height: 30px; color: var(--green); }
.stat strong { font-family: var(--display); font-weight: 400; font-size: 1.85rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .85rem; color: var(--muted); }
@media (min-width: 1021px) { .stats-box { align-self: stretch; } }
@media (max-width: 1020px) and (min-width: 681px) { .stats-box { grid-template-columns: repeat(4, 1fr); } .stat { border: 0 !important; } .stat + .stat { border-left: 1px solid var(--line) !important; } }

/* ---------- about (Gainlove circles) ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.circles { position: relative; aspect-ratio: 1 / .92; max-width: 540px; width: 100%; margin-inline: auto; }
.circles::before { content: ""; position: absolute; inset: 4% 8% 0 4%; border-radius: 50%; border: 2px dashed #d9d3c5; }
.circles img { position: absolute; border-radius: 50%; object-fit: cover; border: 6px solid var(--paper); box-shadow: var(--shadow); }
.circles .c1 { width: 62%; aspect-ratio: 1; left: 12%; top: 12%; }
.circles .c2 { width: 30%; aspect-ratio: 1; right: 2%; top: 0; }
.circles .c3 { width: 24%; aspect-ratio: 1; left: 0; bottom: 4%; }
.circles .c4 { width: 30%; aspect-ratio: 1; right: 0; bottom: 0; }
.circles .d { position: absolute; border-radius: 50%; }
.circles .d1 { width: 16px; height: 16px; background: var(--sun); right: 16%; bottom: 18%; }
.circles .d2 { width: 10px; height: 10px; background: var(--red); left: 8%; top: 8%; }
.circles .d3 { width: 22px; height: 22px; border: 3px solid var(--green); right: 6%; top: 46%; }
.about-copy { display: grid; gap: 1.1rem; min-width: 0; }
.about-copy h2 { font-size: var(--step-3); }
.about-copy p { color: var(--muted); max-width: 56ch; }
.about-copy .lead { color: var(--ink); font-weight: 600; }
.about-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; align-items: center; margin-top: .4rem; }

/* ---------- campaigns ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 960px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid3 { grid-template-columns: 1fr; } }
.ccard { position: relative; background: var(--paper); border-radius: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.ccard-img { aspect-ratio: 16 / 11; overflow: hidden; border-radius: 24px 24px 0 60px; }
.ccard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ccard:hover .ccard-img img { transform: scale(1.04); }
.ccard .tag { position: absolute; top: 16px; left: 16px; background: var(--paper); border-radius: 999px; padding: .3rem .8rem; font: 700 .7rem/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.money-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: .5rem; padding: 1.2rem 1.4rem .2rem; font-size: .78rem; color: var(--muted); }
.money-row b { display: block; color: var(--ink); font-size: .95rem; font-variant-numeric: tabular-nums; }
.money-row .goal { text-align: right; }
.money-row .pct { font-family: var(--display); font-size: 2.1rem; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.money-row .pct sup { font-size: .9rem; }
.bar { height: 6px; border-radius: 6px; background: var(--line); margin: .8rem 1.4rem 0; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sun), #f08c00 60%, var(--red)); }
.ccard-body { padding: 1rem 1.4rem 1.6rem; display: grid; gap: .5rem; flex: 1; align-content: start; }
.ccard-body h3 { font-size: 1.3rem; }
.ccard-body h3 a { text-decoration: none; }
.ccard-body h3 a::after { content: ""; position: absolute; inset: 0; }
.ccard-body p { font-size: .92rem; color: var(--muted); padding-right: 2.5rem; }
.ccard .plus { position: absolute; right: 0; bottom: 0; width: 52px; height: 52px; background: var(--sun); border-radius: 18px 0 0 0; display: grid; place-items: center; }
.ccard .plus .icon { width: 22px; height: 22px; stroke-width: 2.4; }

/* ---------- donate + volunteer split (HopeFoundation) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split > div { padding-block: clamp(48px, 6vw, 80px); color: #fff; position: relative; overflow: hidden; }
.split-ink { background: var(--ink); }
.split-green { background: var(--green); }
.split-inner { max-width: calc(var(--wrap) / 2); padding-left: var(--gutter); padding-right: var(--gutter-r); display: grid; gap: 1.1rem; position: relative; z-index: 1; }
.split-ink .split-inner { margin-left: auto; padding-right: clamp(16px, 4vw, 56px); }
.split-green .split-inner { padding-left: clamp(16px, 4vw, 56px); }
@media (max-width: 860px) { .split-ink .split-inner, .split-green .split-inner { margin: 0 auto; max-width: 640px; padding-left: var(--gutter); padding-right: var(--gutter-r); } }
.split .eyebrow { color: rgba(255, 255, 255, .8); }
.split h2 { font-size: var(--step-3); }
.split p { color: rgba(255, 255, 255, .78); max-width: 46ch; }
.split .bg-mark { position: absolute; right: -40px; bottom: -40px; width: 260px; opacity: .08; z-index: 0; }
.amounts { display: flex; flex-wrap: wrap; gap: .6rem; border: 0; padding: 0; margin: 0; }
.amounts label { position: relative; }
.amounts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.amounts span { display: inline-block; padding: .6rem .95rem; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, .35); font-weight: 700; font-size: .88rem; font-variant-numeric: tabular-nums; }
.amounts input:checked + span { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.amounts input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label, .sr-label { font-size: .8rem; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
input, select, textarea { font: inherit; width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft); }
.split input, .split select { border-color: transparent; }
.hp { position: absolute; left: -9999px; }
.hp[hidden] { display: none !important; }

/* ---------- volunteer positions + Uganda map ---------- */
.positions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.positions--single { grid-template-columns: 1fr; max-width: 820px; }
@media (max-width: 900px) { .positions { grid-template-columns: 1fr; } }
.positions-list { display: grid; gap: 14px; min-width: 0; }
.pos { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.pos:hover { border-color: var(--sun); box-shadow: var(--shadow); }
.pos .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--sun-soft); display: grid; place-items: center; flex: none; }
.pos div { min-width: 0; flex: 1; }
.pos h3 { font-family: var(--body); font-weight: 700; font-size: 1rem; }
.pos small { color: var(--muted); display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.pos > .icon { color: var(--muted); }
.pos-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.pos-stats div { flex: 1 1 140px; padding: 1rem 1.2rem; border-radius: 16px; background: var(--mist); }
.pos-stats strong { font-family: var(--display); font-weight: 400; font-size: 1.8rem; display: block; line-height: 1.1; }
.pos-stats span { font-size: .85rem; color: var(--muted); }
.where { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.where svg { width: 100%; height: auto; overflow: visible; }
.where text { font: 700 15px var(--body); fill: var(--ink); }
.where .pin-pulse { animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { opacity: .6; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.2); } }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; display: flex; flex-direction: column; gap: 1.2rem; }
.quote .qmark { font-family: var(--display); font-size: 3.5rem; line-height: .6; color: var(--sun); height: 1.6rem; }
.quote blockquote { margin: 0; color: var(--ink-2); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.initials { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 700; flex: none; }
.quote figcaption strong { display: block; }
.quote figcaption span { font-size: .85rem; color: var(--muted); }

/* ---------- events + news ---------- */
.en { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(32px, 4vw, 56px); }
@media (max-width: 960px) { .en { grid-template-columns: 1fr; } }
.en h2 { font-size: var(--step-3); margin-top: .7rem; margin-bottom: 1.6rem; }
.en > div { min-width: 0; }
.events { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 12px; }
.event { display: flex; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.datebox { width: 62px; flex: none; text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); align-self: start; }
.datebox b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.5; }
.datebox span { display: block; background: var(--ink); color: #fff; font: 700 .68rem/1.9 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.event h3 { font-family: var(--body); font-weight: 700; font-size: 1rem; }
.event small { display: flex; flex-wrap: wrap; gap: .2rem .9rem; color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.event small span { display: inline-flex; gap: .3rem; align-items: center; }
.event p { font-size: .88rem; color: var(--muted); margin-top: .35rem; }
.event.past { opacity: .65; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } }
.post { position: relative; display: flex; flex-direction: column; gap: .5rem; }
.post .media { aspect-ratio: 4 / 3; border-radius: 14px; margin-bottom: .4rem; }
.post time { font-size: .8rem; color: var(--muted); font-weight: 600; }
.post h3 { font-size: 1.2rem; }
.post h3 a { text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post p { font-size: .9rem; color: var(--muted); }

/* ---------- newsletter + footer ---------- */
.newsletter { background: linear-gradient(110deg, var(--ink) 0 55%, var(--green-deep)); color: #fff; }
.newsletter .wrap { display: grid; grid-template-columns: auto 1fr minmax(0, 1.1fr); gap: 1.4rem 2rem; align-items: center; padding-block: 44px; }
.newsletter .nl-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; }
.newsletter h2 { font-size: 1.6rem; }
.newsletter p { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.nl-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.nl-form input { flex: 1 1 220px; border-color: transparent; }
@media (max-width: 860px) { .newsletter .wrap { grid-template-columns: 1fr; } .newsletter .nl-ico { display: none; } }
.site-footer { background: #0f0e0b; color: #bdb8ad; font-size: .92rem; }
.site-footer .wrap { padding-block: 64px 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { font-family: var(--body); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name small { color: #8c877c; }
.site-footer .about-f { display: grid; gap: 1rem; max-width: 36ch; }
.contact-list li { display: flex; gap: .6rem; align-items: flex-start; }
.contact-list .icon { color: var(--sun); margin-top: .2em; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #3a372f; display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; border-top: 1px solid #2a2822; margin-top: 48px; padding-block: 22px; font-size: .82rem; }
.flagline { height: 5px; background: linear-gradient(90deg, var(--ink) 0 33.3%, var(--sun) 33.3% 66.6%, var(--red) 66.6%); }

/* ---------- inner pages ---------- */
.page-hero { position: relative; background: var(--mist); padding-block: clamp(48px, 7vw, 88px); overflow: hidden;
  background-image: radial-gradient(circle, #dcd7cc 1.2px, transparent 1.4px); background-size: 18px 18px; }
.page-hero .wrap { display: grid; gap: .9rem; position: relative; }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.page-hero p { color: var(--muted); max-width: 60ch; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--ink); }
.page-hero .ug { position: absolute; right: max(16px, 6vw); top: 50%; transform: translateY(-50%); width: min(300px, 32vw); opacity: .9; }
@media (max-width: 720px) { .page-hero .ug { display: none; } }
.prose { max-width: 68ch; display: grid; gap: 1.1rem; font-size: 1.05rem; color: var(--ink-2); }
.prose h2 { font-size: var(--step-2); color: var(--ink); margin-top: .8rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--mist); border-radius: var(--radius); padding: 1.8rem; display: grid; gap: 1rem; }
.panel h2, .panel h3 { font-size: var(--step-2); }
.sticky { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.member { display: grid; gap: .5rem; }
.member .ph { aspect-ratio: 1; border-radius: var(--radius); background: var(--sun-soft); display: grid; place-items: center; overflow: hidden; font-family: var(--display); font-size: 3rem; color: var(--ink-2); }
.member .ph img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.2rem; }
.member span { color: var(--green); font-weight: 600; font-size: .9rem; }
.member p { font-size: .9rem; color: var(--muted); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 700px) { .vm { grid-template-columns: 1fr; } }
.vm .panel h3 { display: flex; gap: .6rem; align-items: center; }
.vm .panel h3 .icon { color: var(--green); }
.project-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.project-row + .project-row { margin-top: clamp(48px, 6vw, 80px); }
.project-row:nth-child(even) .media { order: 2; }
@media (max-width: 800px) { .project-row { grid-template-columns: 1fr; } .project-row:nth-child(even) .media { order: 0; } }
.project-row h2 { font-size: var(--step-3); }
.project-row .prose { font-size: 1rem; }
.empty { padding: 2rem; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.contact-cards { display: grid; gap: 14px; }
.contact-cards div { display: flex; gap: .9rem; align-items: flex-start; }
.contact-cards .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; flex: none; color: var(--green); }
.contact-cards strong { display: block; }
.contact-cards span { color: var(--muted); font-size: .92rem; white-space: pre-line; }
.payinfo { white-space: pre-line; font-variant-numeric: tabular-nums; background: var(--paper); border-radius: 12px; padding: 1rem 1.1rem; font-size: .92rem; border: 1px solid var(--line); }
.credits { width: 100%; border-collapse: collapse; font-size: .9rem; }
.credits th, .credits td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.credits img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.table-scroll { overflow-x: auto; }

/* ---------- flash ---------- */
.flash { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100% - 32px)); padding: 1rem 1.2rem; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow);
  display: flex; gap: .8rem; align-items: center; animation: rise .35s ease; }
.flash.error { background: var(--red); }
.flash button { margin-left: auto; background: none; border: 0; color: inherit; font-size: 1.4rem; cursor: pointer; line-height: 1; }
@keyframes rise { from { transform: translate(-50%, 20px); opacity: 0; } }

/* ---------- contact map ---------- */
.contact-main { display: grid; gap: 22px; min-width: 0; }
.map-card { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.map-card iframe { display: block; width: 100%; height: 360px; border: 0; }
.map-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; padding: 1rem 1.2rem; font-size: .92rem; }
.map-card figcaption span { display: inline-flex; gap: .5rem; align-items: center; color: var(--ink-2); }
.map-card figcaption .icon { color: var(--green); }
@media (max-width: 520px) { .map-card iframe { height: 280px; } }

/* ---------- gallery ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chips a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.chips a span { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chips a:hover { border-color: var(--sun); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips a[aria-current="page"] span { color: var(--sun); }
.masonry { list-style: none; margin: 0; padding: 0; columns: 3 280px; column-gap: 18px; }
.masonry li { break-inside: avoid; margin-bottom: 18px; }
.shot { position: relative; display: block; border-radius: 16px; overflow: hidden; background: var(--mist); }
.shot img { width: 100%; height: auto; transition: transform .5s ease; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.04); }
.shot-cap { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .9rem; color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.3;
  background: linear-gradient(transparent, rgba(22, 20, 15, .78)); opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.shot-cap small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin-bottom: .2rem; }
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; transform: none; }
@media (hover: none) { .shot-cap { opacity: 1; transform: none; } }

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 11, 9, .94); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: .9rem; padding: max(56px, env(safe-area-inset-top, 0px)) 8px max(24px, env(safe-area-inset-bottom, 0px)); min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 10px; }
.lightbox figcaption { display: flex; gap: 1rem; justify-content: space-between; width: min(100%, 900px); font-size: .95rem; color: #d9d5cb; }
.lb-count { color: #8c877c; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox button { background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: var(--sun); color: var(--ink); }
.lb-nav { margin-inline: max(12px, env(safe-area-inset-left, 0px)); }
.lb-close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) { .lb-nav { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); } .lb-prev { left: 0; } .lb-next { right: 0; } .lightbox figure { padding-bottom: 90px; } }

/* ---------- team (centred profile cards) ---------- */
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 28px; }
.member { flex: 0 1 240px; display: grid; justify-items: center; text-align: center; gap: .35rem; }
.member .ph { width: 170px; height: 170px; aspect-ratio: auto; border-radius: 50%; padding: 6px; margin-bottom: .6rem;
  background: conic-gradient(var(--ink) 0 33.3%, var(--sun) 0 66.6%, var(--red) 0); display: block; }
.member .ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 5px solid var(--paper); background: var(--sun-soft); }
.member p { max-width: 30ch; }

/* ---------- home slider: "timed cards" (public/js/modules/slider.js) ---------- */
.hero { position: relative; height: clamp(560px, 88svh, 800px); overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img, .tc-grow img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg img { animation: kenburns 14s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(22, 20, 15, .86) 0%, rgba(22, 20, 15, .55) 45%, rgba(22, 20, 15, .1) 75%), linear-gradient(0deg, rgba(22, 20, 15, .75), transparent 45%); }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: none; } }
.hero-in { position: relative; height: 100%; max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding-bottom: 104px; }
.hero-copy { max-width: 600px; align-self: center; padding-top: 30px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 700 .75rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.hero-eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #fff 0 33%, var(--sun) 33% 66%, var(--red) 66%); }
.hero-title { font: 400 clamp(2.4rem, 1.4rem + 4vw, 4.6rem)/1.02 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.hero-title .w > span { display: inline-block; }
.hero-text { max-width: 46ch; margin-top: 16px; color: rgba(255, 255, 255, .84); font-size: 1.05rem; }
.hero-bar { width: min(340px, 100%); height: 6px; margin-top: 18px; border-radius: 6px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.hero-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sun), #f08c00 60%, var(--red)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn--glass { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255, 255, 255, .2); }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .85rem; font-weight: 600; color: rgba(255, 255, 255, .65); }
/* Each new slide's words rise in. */
.hero-copy .w > span { animation: rise .9s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--d, 0) * 70ms + 120ms); }
.hero-copy .hero-eyebrow, .hero-copy .hero-text, .hero-copy .hero-bar, .hero-copy .hero-actions, .hero-copy .hero-meta { animation: fadeUp .8s cubic-bezier(.22, 1, .36, 1) both; animation-delay: .35s; }
.hero.is-changing .hero-copy > * { opacity: 0; transform: translateY(-10px); transition: opacity .35s, transform .35s; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
/* The card row */
.tc-cards { position: relative; display: flex; gap: 12px; align-self: end; width: min(560px, 46vw); height: 220px; overflow: visible; }
.tc-card { position: relative; flex: 1 1 0; min-width: 0; height: 200px; border-radius: 16px; overflow: hidden; color: #fff; background: #222; text-decoration: none;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .14); transition: transform .6s cubic-bezier(.65, 0, .35, 1), opacity .4s, box-shadow .2s; }
.tc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent 60%); }
.tc-card:hover img { transform: scale(1.06); }
.tc-card:hover { box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .7), 0 0 0 2px var(--sun); }
.tc-card-text { position: absolute; left: 11px; right: 11px; bottom: 11px; z-index: 1; display: grid; gap: 4px; }
.tc-card-text small { display: flex; align-items: center; gap: 6px; font: 700 .6rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.tc-card-text small::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--sun); }
.tc-card-text strong { font: 400 .9rem/1.15 var(--display); }
.tc-grow { position: absolute; z-index: -1; overflow: hidden; border-radius: 16px; pointer-events: none; }
.tc-cards.is-shifting .tc-card { transform: translateX(calc(-100% - 12px)); }
.tc-cards.is-shifting .tc-card:first-child { opacity: 0; }
/* Controls: arrows, progress and the slide number */
.tc-controls { position: absolute; left: var(--gutter); right: var(--gutter-r); bottom: 32px; display: flex; align-items: center; gap: 12px; }
.tc-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); transition: box-shadow .2s, background .2s, transform .15s; }
.tc-btn:hover { background: var(--sun); color: var(--ink); box-shadow: none; }
.tc-btn:active { transform: scale(.94); }
.tc-progress { flex: 0 1 260px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.tc-progress span { display: block; height: 100%; width: 100%; background: var(--sun); transform: scaleX(0); transform-origin: left; }
.hero.is-playing .tc-progress span { animation: progress var(--dur, 7000ms) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.tc-num { margin-left: auto; font: 400 1rem var(--display); color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-num span { font-size: 2.2rem; color: #fff; }
@media (max-width: 1000px) { .tc-cards { width: min(460px, 46vw); height: 190px; } .tc-card { height: 172px; } .tc-card-text strong { font-size: .82rem; } }
@media (max-width: 760px) {
  .hero { height: auto; min-height: 640px; }
  .hero-in { grid-template-columns: 1fr; align-items: start; padding-top: 40px; padding-bottom: 96px; gap: 22px; }
  .hero-copy { align-self: start; padding-top: 74px; }
  .tc-cards { width: 100%; height: 140px; overflow: hidden; }
  .tc-card { height: 130px; }
  .tc-card-text strong { font-size: .78rem; }
  .tc-card-text small { font-size: .55rem; }
  .tc-num span { font-size: 1.6rem; }
}

/* ---------- the rotating seal (views/partials/seal.ejs) ---------- */
.seal { position: relative; width: 190px; height: 190px; flex: none; }
.seal-ring { width: 100%; height: 100%; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-outer { fill: rgba(22, 20, 15, .72); stroke: rgba(247, 181, 0, .7); stroke-width: 1.5; }
.seal-dash { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 1; stroke-dasharray: 1.5 5; }
.seal-inner { fill: #fff; }
.seal-text { font: 700 12.5px var(--body); letter-spacing: 2.5px; fill: #fff; }
.seal-dot { fill: var(--sun); }
.seal-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }
.seal-logo .brand-mark { width: 62px; height: 62px; }
.seal-wrap { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 20px; z-index: 2; pointer-events: none; }
.seal--hero { filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .35)); animation: fadeUp .9s .4s cubic-bezier(.22, 1, .36, 1) both; }
@media (max-width: 1000px) { .seal--hero { width: 140px; height: 140px; } .seal--hero .seal-logo .brand-mark { width: 46px; height: 46px; } }
@media (max-width: 760px) { .seal-wrap { top: 14px; right: var(--gutter-r); } .seal--hero { width: 84px; height: 84px; } .seal--hero .seal-text { font-size: 14px; } .seal--hero .seal-logo .brand-mark { width: 26px; height: 26px; } }
.seal--footer { width: 140px; height: 140px; margin-top: 8px; }
.seal--footer .seal-outer { fill: rgba(255, 255, 255, .04); stroke: rgba(247, 181, 0, .45); }
.seal--footer .seal-text { fill: #d9d5cb; }
.seal--footer .seal-inner { fill: #1d1b16; }
.seal--footer .seal-logo .brand-mark { width: 44px; height: 44px; }
@media (prefers-reduced-motion: reduce) { .seal-ring, .hero-bg img { animation: none; } }

/* ---------- maintenance page ---------- */
.maint { min-height: 100vh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(160deg, var(--ink), #2a261d 60%, var(--green-deep)); color: #fff; }
.maint-card { max-width: 560px; display: grid; justify-items: center; gap: 1rem; text-align: center; }
.maint-card h1 { font-size: var(--step-3); }
.maint-card p { color: rgba(255, 255, 255, .8); }
.maint-until { font-weight: 700; color: var(--sun) !important; }
.maint-contact a { color: #fff; }
