/* ============================================================
   UJAMAA — DESIGN TOKENS
   Palette: Ujamaa Blue / Warm Gold / Terracotta / Earth Green /
   Deep Ink / Ivory / White. Display type: Plus Jakarta Sans.
   Body type: Inter. Boxy, sharp edges, no gradients, 12-col grid.
   ============================================================ */
:root {
  --blue: #1557a6; /* Ujamaa Blue */
  --gold: #f2b832; /* Warm Gold */
  --terracotta: #c9573d; /* Terracotta */
  --green: #3e7d55; /* Earth Green */
  --ink: #17212b; /* Deep Ink */
  --ivory: #f7f3ea; /* Ivory */
  --white: #ffffff;

  --text: #1b222b;
  --text-soft: #565f68;
  --stone: #dcd4c2;
  --stone-line: #e3dccb;

  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-body: "Inter", sans-serif;

  --col-gap: 20px;
  --edge: 56px;
  --section-y: 72px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  font-weight: 400;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 700;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
}
* {
  border-radius: 0 !important;
}

/* -------------------- 12-column grid -------------------- */
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--edge);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
}
.c1 {
  grid-column: span 1;
}
.c2 {
  grid-column: span 2;
}
.c3 {
  grid-column: span 3;
}
.c4 {
  grid-column: span 4;
}
.c5 {
  grid-column: span 5;
}
.c6 {
  grid-column: span 6;
}
.c7 {
  grid-column: span 7;
}
.c8 {
  grid-column: span 8;
}
.c9 {
  grid-column: span 9;
}
.c10 {
  grid-column: span 10;
}
.c11 {
  grid-column: span 11;
}
.c12 {
  grid-column: span 12;
}
.start-1 {
  grid-column-start: 1;
}
.start-2 {
  grid-column-start: 2;
}
.start-3 {
  grid-column-start: 3;
}
.start-4 {
  grid-column-start: 4;
}
.start-5 {
  grid-column-start: 5;
}
.start-6 {
  grid-column-start: 6;
}
.start-7 {
  grid-column-start: 7;
}
.start-8 {
  grid-column-start: 8;
}
.start-9 {
  grid-column-start: 9;
}
@media (max-width: 900px) {
  :root {
    --edge: 22px;
    --section-y: 52px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .grid > * {
    grid-column: auto !important;
    grid-column-start: auto !important;
  }
}

/* -------------------- section index label -------------------- */
.index-tag {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  border-top: 1.5px solid var(--text);
  padding-top: 10px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
}
.section-ink .index-tag {
  color: rgba(247, 243, 234, 0.6);
  border-top-color: var(--ivory);
}
.index-tag .of {
  opacity: 0.55;
}

/* -------------------- reveal-on-scroll -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* -------------------- header / nav (light ivory) -------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--edge);
  background: var(--ivory);
  border-bottom: 1px solid var(--stone-line);
  color: var(--text);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 0 var(--blue);
}
.logo-link {
  display: flex;
  align-items: center;
}
/* Header logo: WIDE / HORIZONTAL variation of the UJAMAA logo.
   Swapped automatically per language from the LOGOS object in script.js. */
#headerLogo {
  width: auto;
  height: 48px;
  display: block;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
}
.main-nav a:hover {
  opacity: 1;
  color: var(--blue);
}
.lang-toggle {
  display: flex;
  border: 1px solid var(--text);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-family: var(--font-display);
  font-weight: 600;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--text);
  opacity: 0.7;
  padding: 6px 12px;
}
.lang-toggle button.active {
  background: var(--blue);
  color: var(--white);
  opacity: 1;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border: 1.5px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}
.btn-lg {
  padding: 19px 40px;
  font-size: 17px;
}
.nav-cta {
  display: none;
}
@media (min-width: 900px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* mobile menu toggle (hamburger) — hidden on desktop */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
}
@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--ivory);
    border-bottom: 1px solid var(--stone-line);
    padding: 24px var(--edge) 30px;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav .nav-cta {
    display: inline-flex;
  }
  .lang-toggle {
    width: max-content;
  }
}

/* -------------------- hero — 100vh -------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(23, 33, 43, 0.9) 0%,
    rgba(23, 33, 43, 0.2) 55%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 96px var(--edge) 64px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.8vw, 100px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.01em;
  grid-column: span 10;
}
@media (max-width: 900px) {
  .hero h1 {
    grid-column: span 12;
  }
}
.hero-foot {
  grid-column: span 12;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}
.hero-foot .place {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.scroll-cue {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: inherit;
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.scroll-cue .sq {
  width: 7px;
  height: 7px;
  background: var(--gold);
  animation: blink 1.6s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* -------------------- section basics -------------------- */
.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section-white {
  background: var(--white);
}
.section-ivory {
  background: var(--ivory);
}
.section-ink {
  background: var(--ink);
  color: var(--ivory);
}
@media (max-width: 640px) {
  .section {
    padding: 70px 0;
  }
}

/* -------------------- who we are -------------------- */
.who-label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 26px;
  display: block;
}
.who-statement {
  font-size: clamp(22px, 2.7vw, 32px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--text);
  grid-column: span 8;
}
.who-statement strong {
  font-weight: 700;
  color: var(--blue);
}
.who-side {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 26px;
  border-left: 1.5px solid var(--stone);
  padding-left: 28px;
}
.who-answer {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--terracotta);
  line-height: 1.25;
}
.who-founder {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-soft);
}
@media (max-width: 900px) {
  .who-side {
    border-left: none;
    border-top: 1.5px solid var(--stone);
    padding-left: 0;
    padding-top: 24px;
    margin-top: 32px;
  }
}

/* -------------------- group photo band (full-width) -------------------- */
.photo-band {
  width: 100vw;
  height: 56vh;
  min-height: 340px;
  max-height: 620px;
  overflow: hidden;
}
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------- programs (wide cards) -------------------- */
/* Programs: wide cards in a horizontal slider */
#programs {
  padding-bottom: 32px;
}
.programs-list {
  grid-column: span 12;
  display: grid;
  gap: 24px;
  -webkit-overflow-scrolling: touch;
}
.program-card {
  display: grid;
  grid-template-columns: 440px 1fr; /* the original wide layout: image left, text right */
  border: 1.5px solid var(--text);
  background: var(--white);
  overflow: hidden;
}

.program-media {
  aspect-ratio: 3.3 / 2;
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: var(--stone);
}
.program-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.program-body {
  padding: 16px 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
}
.program-body h3 {
  font-size: clamp(16px, 1.3vw, 18px);
  margin-bottom: 2px;
}

.program-body p {
  font-size: 14.5px;
  line-height: 1.6;
  margin-top: 8px;
}
@media (hover: hover) {
  .program-card:hover .program-media img {
    transform: scale(1.06);
  }
}

/* single column on small screens */
@media (max-width: 640px) {
  .program-card {
    grid-template-columns: 1fr;
    height: auto; /* let it size naturally when stacked */
  }
  .programs-list {
    grid-template-columns: 1fr;
  }
  .program-media {
    height: auto;
    aspect-ratio: 16 / 8;
  } /* short, wide image */
  .program-body {
    padding: 16px 18px 20px;
  }
}

.program-tag {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue);
  display: inline-block;
  padding: 5px 12px;
  width: max-content;
  margin-bottom: 4px;
}
.program-tag.tag-blue {
  background: var(--blue);
}
.program-tag.tag-terracotta {
  background: var(--terracotta);
}
.program-tag.tag-green {
  background: var(--green);
}
.program-tag.tag-gold {
  background: var(--gold);
  color: var(--ink);
}
.program-body h3 {
  font-size: clamp(22px, 2.6vw, 30px);
}
.program-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 56ch;
}

/* -------------------- 100vw slider -------------------- */
.slider-section {
  padding: var(--section-y) 0;
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
}
.slider-head {
  max-width: 1400px;
  margin: 0 auto 24px;
  padding: 0 var(--edge);
}
.slider-viewport {
  position: relative;
  width: 100vw;
  height: 70vh;
  min-height: 440px;
  overflow: hidden;
}
.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 0.68, 0, 1.01);
}
.slide {
  position: relative;
  min-width: 100vw;
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(23, 33, 43, 0.92) 0%,
    rgba(23, 33, 43, 0.55) 32%,
    rgba(23, 33, 43, 0) 62%
  );
  pointer-events: none;
  z-index: 1;
}
.slide-caption {
  position: absolute;
  left: var(--edge);
  bottom: 36px;
  right: var(--edge);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  z-index: 2;
}
.cap-panel {
  max-width: 640px;
}
.slide-caption .cap-text {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--ivory);
}
.slide-caption .cap-body {
  display: block;
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(247, 243, 234, 0.85);
}
.slider-dots {
  position: absolute;
  bottom: 36px;
  right: var(--edge);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.slider-dot {
  position: relative;
  width: 34px;
  height: 4px;
  padding: 0;
  border: none;
  overflow: hidden;
  background: rgba(247, 243, 234, 0.35);
  cursor: pointer;
}
.slider-dot .dot-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--gold);
}
@media (max-width: 640px) {
  .slide-caption {
    flex-direction: column;
    align-items: flex-start;
    bottom: 24px;
  }
  .cap-panel {
    max-width: 100%;
  }
}

/* -------------------- video — large, contained, hover-reveal controls -------------------- */
.video-card {
  position: relative;
  height: 78vh;
  max-height: 760px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: var(--ink);
  border: 1.5px solid var(--ivory);
  overflow: hidden;
}
.video-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* #videoMount is deliberately NOT width:100%/height:100% — its size is set in
   px by sizeVideoBackground() in script.js, which keeps it always at least as
   large as the container (cropped via overflow:hidden above) so the video
   behaves like a CSS background-image rather than a normal boxed embed. */
#videoMount {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* Targets the live iframe by its parent, NOT by #videoMount: the YouTube API replaces
   that <div> with an <iframe>, so a "#videoMount iframe" selector never matches. With
   pointer-events:none the iframe can't swallow mouse events, so hovering anywhere over
   the video card reaches the card and brings the controls back. */
.video-bg-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 0;
  display: block;
  pointer-events: none;
}

/* Center play/pause — minimalist, lucide icon, visible only on hover or while paused */
.video-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: 1.5px solid var(--gold);
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease background 0.2s ease;
}
.video-center-btn svg {
  width: 28px;
  height: 28px;
  color: var(--ink);
}
.video-card.is-paused .video-center-btn,
.video-card.show-controls .video-center-btn {
  opacity: 1;
}
.video-center-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.video-center-btn:hover svg {
  color: var(--ink);
}

/* Mute / fullscreen — top right, same hover/paused visibility rule */
.video-top-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.video-card.is-paused .video-top-controls,
.video-card.show-controls .video-top-controls {
  opacity: 1;
}
.video-top-controls button {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ivory);
  background: rgba(23, 33, 43, 0.6);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-top-controls svg {
  width: 16px;
  height: 16px;
}
.video-top-controls button:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.video-caption {
  margin: 20px auto 0;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft);
}
.section-ink .video-caption {
  color: rgba(247, 243, 234, 0.75);
}

/* -------------------- region / map -------------------- */
.region-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 44px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .region-grid {
    grid-template-columns: 1fr;
  }
}
.region-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.region-copy .who-label {
  margin-bottom: 0;
}
.region-title {
  font-size: clamp(24px, 2.8vw, 32px);
}
.region-copy p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
}
.region-visuals {
  display: grid;
  grid-template-columns: 75% 25%;
  gap: 20px;
  min-height: 420px;
}
@media (max-width: 640px) {
  .region-visuals {
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
  }
}
.region-map,
.region-photo {
  overflow: hidden;
  background: var(--stone);
}
.region-map img,
.region-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------- footer (light, minimal, short) -------------------- */
.site-footer {
  background: var(--ivory);
  color: var(--text-soft);
  padding: 44px 0 22px;
}
.footer-grid {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--stone-line);
}
.footer-about {
  position: relative;
  isolation: isolate; /* keeps the pattern's z-index inside this column, so it can't slip behind the footer background */
  grid-column: span 3;
}
.footer-pattern {
  position: absolute;
  inset: 0; /* fills the first column only */
  z-index: -1; /* sits behind the logo and text */
  background-image: url("assets/footer-pattern.png");
  /* background-repeat: none; */
  background-size: 320px; /* size of one tile; smaller = denser pattern */
  opacity: 0.08; /* low opacity; try .05 to .12 */
  pointer-events: none;
}

@media (max-width: 767px) {
  .footer-pattern {
    display: none;
  }
}

/* Footer logo: MONOCHROME / VERTICAL variation of the UJAMAA logo — a DARK
   ink-colored mark, since the footer now sits on a light background.
   Swapped automatically per language from the LOGOS object in script.js. */
#footerLogo {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 10px;
  opacity: 0;
}
.footer-about p {
  font-size: 10px;
  line-height: 1.55;
  max-width: 260px;
  color: var(--text-soft);
}
.footer-links {
  grid-column: span 2;
}
.footer-contact {
  grid-column: span 3;
}
.footer-bank {
  grid-column: 9 / 13;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.footer-col a {
  display: block;
  font-size: 12px;
  text-decoration: none;
  margin-bottom: 7px;
  color: var(--text);
}
.footer-col a:hover {
  color: var(--blue);
}
.footer-col p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
}
.footer-contact-line {
  margin-bottom: 6px;
}
.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  color: var(--text);
  transition: color 0.2s ease;
}
.social-icons svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}
.social-icons a:hover {
  color: var(--terracotta);
}

/* Minimalist bank details: no box/border, just an ordered, labeled list */
.bank-box {
  font-size: 12.5px;
  line-height: 1.5;
  width: 100%;
}
.bank-box .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 5px 0;
  border-bottom: 1px solid var(--stone-line);
}
.bank-box .row:last-child {
  border-bottom: none;
}
.bank-box .row span:first-child {
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.bank-box .row span:last-child {
  text-align: right;
  color: var(--text);
  font-weight: 500;
}

.footer-bottom {
  grid-column: span 12;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  font-size: 12px;
  color: var(--text-soft);
}
@media (max-width: 900px) {
  .footer-about,
  .footer-links,
  .footer-contact,
  .footer-bank {
    grid-column: span 12;
  }
  .footer-links,
  .footer-contact,
  .footer-bank {
    margin-top: 16px;
  }
}

/* -------------------- standalone donate CTA -------------------- */
.cta-band {
  background: var(--terracotta);
  color: var(--white);
  padding: var(--section-y) 0;
}
.cta-headline {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  align-self: center;
  color: var(--white);
  line-height: 1.3;
}
.cta-right {
  align-self: center;
  display: flex;
  align-items: flex-start;
}
.cta-band .btn {
  background: var(--ink);
  border-color: var(--ink);
}
.cta-band .btn:hover {
  background: var(--white);
  color: var(--terracotta);
  border-color: var(--white);
}

img[data-placeholder] {
  background: var(--stone);
}

/* -------------------- donate modal -------------------- */
.donate-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.donate-modal.open {
  display: flex;
}
.donate-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 33, 43, 0.8);
}
.donate-modal-box {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--ivory);
  border: 1.5px solid var(--text);
  padding: 36px 32px 30px;
}
.donate-modal-box h3 {
  font-size: 22px;
  margin-bottom: 8px;
  padding-right: 36px;
}
.donate-modal-intro {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 20px;
}
.donate-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--text);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.donate-modal-close svg {
  width: 16px;
  height: 16px;
}
.donate-modal-close:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}
.donate-modal-box .bank-box {
  font-size: 14px;
}

/* donate modal: embed area */
.donate-embed:empty {
  display: none;
}
.donate-embed {
  margin-bottom: 6px;
}
.donate-embed iframe {
  max-width: 100%;
  border: 0;
}
.donate-alt-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 18px 0 8px;
}
.donate-modal:not(.has-embed) .donate-alt-label {
  display: none;
}
.donate-modal.has-embed .donate-modal-box {
  width: min(680px, 100%);
}

/* -------------------- mobile refinements -------------------- */
@media (max-width: 900px) {
  /* vision video: full viewport width, breaking out of the container padding */
  #video .video-card {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: none;
    aspect-ratio: 16/9;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-left: none;
    border-right: none;
  }
  /* slider dots: sit below the caption with breathing room */
  .slider-dots {
    left: var(--edge);
    right: auto;
    bottom: 20px;
    margin-top: 16px;
  }
  .slide-caption {
    bottom: 56px;
  }
}

/* when an embed is configured, show the embed only — no bank details */
.donate-modal.has-embed .bank-box,
.donate-modal.has-embed .donate-alt-label {
  display: none;
}
