/* ==========================================================================
   Brave Voices — Shared Stylesheet
   Palette pulled from original bravevoices.org
   ========================================================================== */

:root {
  /* Core brand colors */
  --teal:         #6FA5A5;  /* dusty sage teal — headings, footer */
  --teal-dark:    #5E9494;  /* hover/darker teal */
  --teal-soft:    #E8F0F0;  /* very light teal wash for section backgrounds */

  --rose:         #CC6F82;  /* mauve-rose accent — buttons, borders, icons */
  --rose-dark:    #B85C6F;  /* hover rose */
  --rose-soft:    #F7E4E8;  /* soft rose wash */

  --ink:          #2C2C2C;  /* body text */
  --ink-soft:     #4A4A4A;  /* secondary text */
  --bg:           #FFFFFF;  /* main background */
  --bg-alt:       #FAF7F5;  /* warm cream alt section background */
  --rule:         #E6DDDA;  /* subtle divider */

  /* Typography */
  --serif:  "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max-w:   1120px;
  --radius:  4px;
  --nav-h:   112px;  /* sticky top nav height (100px logo + ~12px padding/border) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 6px 24px rgba(0,0,0,.06);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--teal);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; color: var(--ink); }
h4 { font-size: 1.1rem; color: var(--rose); text-transform: uppercase; letter-spacing: .08em; font-family: var(--sans); font-weight: 600; }

p  { margin: 0 0 1.1em; }
a  { color: var(--rose); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease, color .15s ease; }
a:hover { color: var(--rose-dark); border-bottom-color: var(--rose-dark); }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: .5em; }

img { max-width: 100%; height: auto; display: block; }

hr { border: none; border-top: 1px solid var(--rule); margin: 3rem 0; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 4.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--teal-soft { background: var(--teal-soft); }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: .75rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal);
  border-bottom: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.logo span { color: var(--rose); }
.logo img {
  display: block;
  height: 100px;
  width: auto;
  max-width: 100%;
}
@media (max-width: 640px) {
  .logo img { height: 72px; }
  :root { --nav-h: 84px; }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a:not(.btn) {
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav-links a:not(.btn):hover,
.nav-links a.active:not(.btn) {
  color: var(--rose);
  border-bottom-color: var(--rose);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
  background: var(--rose);
  color: #fff;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--sans);
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover {
  background: var(--rose-dark);
  color: #fff;
  border-bottom: none;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  padding: calc(.85rem - 2px) calc(1.5rem - 2px);
}
.btn--ghost:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--teal); }
.hero .mission {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--teal-dark);
  margin: 1.5rem auto 2rem;
  max-width: 640px;
  line-height: 1.4;
}
.hero .cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---------- Hero with media background (video or image) ---------- */
/* Inner-page hero — brand gradient + split layout */
.page-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--rose) 100%);
  color: #fff;
  min-height: calc((100vh - var(--nav-h)) * 0.65);
  display: flex;
  align-items: center;
  padding: 3rem 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.page-hero .container { width: 100%; }
.page-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.page-hero__text .eyebrow {
  color: #fff;
  opacity: .85;
}
.page-hero__text h1 {
  color: #fff;
  margin: .5rem 0 1.5rem;
}
.page-hero__text .lede {
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  max-width: none;
}
.page-hero__image {
  width: 100%;
  max-width: calc(((100vh - var(--nav-h)) * 0.65 - 6rem) * 4 / 3);
  aspect-ratio: 4 / 3;
  margin-left: auto;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
}
.page-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 800px) {
  .page-hero {
    min-height: auto;
    padding: 4rem 0 3.5rem;
  }
  .page-hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .page-hero__image {
    max-width: 480px;
    margin: 0 auto;
  }
}

.hero--media {
  overflow: hidden;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 6rem;
  /* Brand-colored gradient fallback — shown if media is missing */
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 45%, var(--rose) 100%);
  color: #fff;
}
.hero--media .container {
  width: 100%;
  /* Widen past the standard 1120px constraint so the left-aligned copy can
     sit closer to the viewport edge — but cap it so the text still pulls in
     from the very edge a little. */
  max-width: 1320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero--media .container > * {
  max-width: 520px;
}
.hero--media .mission {
  /* override the centered auto-margins from .hero .mission */
  margin: 1.5rem 0 2rem;
}
.hero--media .cta-row {
  justify-content: flex-start;
}
.hero--media .eyebrow,
.hero--media h1,
.hero--media .lede,
.hero--media .mission,
.hero--media p {
  color: #fff;
}
.hero--media .eyebrow { color: #fff; opacity: .9; }
.hero--media .mission { color: rgba(255, 255, 255, 0.95); }
.hero--media .btn--ghost {
  color: #fff;
  border-color: #fff;
}
.hero--media .btn--ghost:hover {
  background: #fff;
  color: var(--teal-dark);
  border-color: #fff;
}

/* The actual media element (video or img) */
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Subtle saturation lift so branded colors read through muted footage */
  filter: saturate(1.05);
}
/* For still images (inner pages), extend past the hero edges so the parallax
   translate has buffer room and doesn't expose a gap. */
img.hero__media {
  top: -20%;
  bottom: auto;
  height: 140%;
  will-change: transform;
}

/* Overlay on top of the media, behind the text, for contrast.
   Two layers: a right-anchored dark gradient (heavier behind the right-aligned
   copy) on top of the brand-tinted gradient. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to left, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.30) 40%, rgba(0, 0, 0, 0.05) 75%, transparent 100%),
    linear-gradient(135deg, rgba(94, 148, 148, 0.72) 0%, rgba(111, 165, 165, 0.55) 50%, rgba(204, 111, 130, 0.60) 100%);
}
/* Slight vignette to keep text readable toward the edges */
.hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.25) 100%);
}
/* Darker overlay for inner pages (heroes with still images) — the home video
   keeps the lighter brand tint. */
.hero--media:has(img.hero__media) .hero__overlay {
  background:
    linear-gradient(135deg, rgba(70, 110, 110, 0.60) 0%, rgba(90, 135, 135, 0.50) 50%, rgba(170, 90, 110, 0.55) 100%),
    rgba(0, 0, 0, 0.08);
}
.hero--media:has(img.hero__media) .hero__overlay::after {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
}

/* ---------- CTA section with background image ---------- */
/* Set --cta-bg: url('assets/cta-*.jpg') on each section to add imagery.
   If the image is missing, the brand gradient shows through. */
.section--cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-image: var(--cta-bg, none), linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 50%, var(--rose) 100%);
  background-size: cover, cover;
  background-position: 50% 50%, 50% 50%;
  background-repeat: no-repeat, no-repeat;
}
.section--cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(70, 110, 110, 0.60) 0%, rgba(90, 135, 135, 0.50) 50%, rgba(170, 90, 110, 0.55) 100%),
    rgba(0, 0, 0, 0.08);
  z-index: 0;
}
.section--cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 0;
  pointer-events: none;
}
.section--cta .container {
  position: relative;
  z-index: 1;
}
.section--cta h2,
.section--cta h3,
.section--cta h4,
.section--cta p,
.section--cta .lede,
.section--cta .mission,
.section--cta .eyebrow {
  color: #fff;
}
.section--cta .eyebrow { opacity: .9; }
.section--cta .mission { color: rgba(255, 255, 255, 0.95); }
.section--cta .btn--ghost {
  color: #fff;
  border-color: #fff;
}
.section--cta .btn--ghost:hover {
  background: #fff;
  color: var(--teal-dark);
  border-color: #fff;
}
.section--cta .btn:not(.btn--ghost) {
  background: #fff;
  color: var(--rose-dark);
}
.section--cta .btn:not(.btn--ghost):hover {
  background: var(--rose-soft);
  color: var(--rose-dark);
}
/* Left-anchored CTA block (used when the bg image has a subject on the right) */
.section--cta .cta-left {
  max-width: 560px;
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}
.section--cta .cta-left .lede {
  margin-left: 0;
  margin-right: 0;
}
/* Right-anchored CTA block (used when the bg image has a subject on the left) */
.section--cta .cta-right {
  max-width: 460px;
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}
.section--cta .cta-right .lede {
  margin-left: 0;
  margin-right: 0;
}
@media (max-width: 640px) {
  .section--cta .cta-left,
  .section--cta .cta-right { max-width: 100%; }
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
/* Balanced 4-card layout: 4 across on wide screens, 2x2 on medium, 1 on narrow */
.cards--four {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
  .cards--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards--four { grid-template-columns: 1fr; }
}

/* Forced 3-column layout. Useful when a card grid has fewer than 3 items
   but you still want them sized as if there were 3 (so they don't stretch). */
.cards--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cards--three { grid-template-columns: 1fr; }
}

/* Centered card layout. Cards stay at a moderate fixed width and the group
   is centered horizontally within the container. Useful when there are
   fewer cards than would fill a row and you don't want them to stretch. */
.cards--centered {
  grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
  justify-content: center;
}
@media (max-width: 560px) {
  .cards--centered { grid-template-columns: 1fr; }
}

/* Book cards — cover at top, then title/author/blurb */
.book-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}
.book-card .book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--teal-soft), var(--rose-soft));
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-card .book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-card h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0 0 .25rem;
}
.book-card h4 {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 .75rem;
}
.book-card p {
  font-size: .95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.book-card .card-link {
  margin-top: auto;
}

/* Tab panel feature images — consistent framed image in each panel */
.tab-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--teal-soft), var(--rose-soft));
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tab-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tab-video: same shape/placement as .tab-image but holds a YouTube iframe.
   .video-embed is for inline embeds inside tab body content (not the rail). */
.tab-video,
.video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-soft), var(--rose-soft));
  box-shadow: var(--shadow-sm);
}
.tab-video { margin-bottom: 1.5rem; }
.video-embed { margin: 1.5rem 0; }
.tab-video iframe,
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* On wider screens, float image to the right of tab content */
@media (min-width: 900px) {
  .tab-panel {
    display: grid;
    grid-template-columns: 1fr 40%;
    column-gap: 2.5rem;
    align-items: start;
  }
  .tab-panel > * {
    grid-column: 1;
    min-width: 0;
  }
  .tab-panel > .tab-image,
  .tab-panel > .tab-video {
    grid-column: 2;
    grid-row: 1 / span 99;
    margin-bottom: 0;
    align-self: start;
    position: sticky;
    top: 130px;
  }
  /* Variant: image/video + supporting content (e.g. a framing quote) share the right rail */
  .tab-panel > .tab-rail {
    grid-column: 2;
    grid-row: 1 / span 99;
    align-self: start;
    position: sticky;
    top: 130px;
  }
  .tab-panel > .tab-rail .tab-image,
  .tab-panel > .tab-rail .tab-video {
    margin-bottom: 0;
    position: static;
  }
}

/* Handouts & further reading — grouped document list */
.handouts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.handouts-header {
  margin-bottom: 2.5rem;
}
.handouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}
.handouts-group h3 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--teal-soft);
}
.handouts-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--teal-soft), var(--rose-soft));
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
}
.handouts-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.doc-list li {
  padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
}
.doc-list li:last-child { border-bottom: none; }
.doc-list a {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--teal-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.doc-list a:hover {
  color: var(--rose);
  border-bottom-color: var(--rose);
}
.doc-list .doc-meta {
  display: block;
  margin-top: .35rem;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.doc-tag {
  display: inline-block;
  margin-left: .35rem;
  padding: 1px 8px;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rose);
  background: var(--rose-soft);
  border-radius: 999px;
  vertical-align: middle;
  border-bottom: 0 !important;
}

/* CSA statistics section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem 2.5rem;
  margin-top: 3.5rem;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2.75rem 2rem; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.stat-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--rose-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.75rem;
}
.stat-card .stat-number {
  display: block;
  font-family: var(--serif);
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--rose);
  margin: 0 0 .85rem;
}
.stat-card .stat-context {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 .9rem;
}
.stat-card .stat-source {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
}
.stats-closer {
  margin: 4rem auto 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 60%;
}
@media (max-width: 700px) {
  .stats-closer { max-width: 100%; font-size: 1.1rem; }
}

/* Organizations section */
.orgs-header {
  text-align: center;
  margin-bottom: 3rem;
}
.orgs-header h2 { margin-bottom: 1rem; }
.orgs-header p {
  max-width: 60%;
  margin: 0 auto;
  color: var(--ink-soft);
}
.orgs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}
@media (max-width: 900px) {
  .orgs-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .orgs-header p { max-width: 100%; }
}
.orgs-group h3 {
  font-size: 1.2rem;
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--teal-soft);
}

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--rose);
}
.card h3 { margin-top: 0; color: var(--teal); font-family: var(--serif); }
.card .card-link {
  display: inline-block;
  margin-top: .5rem;
  font-weight: 600;
}

/* ---------- Partner logo marquee ---------- */
/* Used on who-we-are.html. Two copies of the logos are rendered; the track
   slides left by exactly one set width, so the loop appears seamless. */
.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Soft fade-in / fade-out at the section edges so logos don't pop on/off */
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}
.marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  /* Override the default link underline-on-hover */
}
.marquee__item:hover { border: none; }
.marquee__item img {
  height: 64px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: .75;
  transition: filter .25s ease, opacity .25s ease;
}
.marquee__item:hover img,
.marquee__item:focus img {
  filter: grayscale(0);
  opacity: 1;
}
/* Text fallback shown when a partner's logo image is missing.
   Inline-styled `display:none` is flipped to `inline-flex` by the img onerror handler. */
.marquee__name {
  align-items: center;
  height: 64px;
  padding: 0 1.25rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--teal-dark);
  white-space: nowrap;
  border: 1px solid rgba(94, 148, 148, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .55);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.marquee__item:hover .marquee__name,
.marquee__item:focus .marquee__name {
  background: var(--rose-soft);
  color: var(--rose-dark);
  border-color: var(--rose);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Static fallback when the visitor prefers reduced motion: stack logos in a centered grid instead of scrolling */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
    width: 100%;
    padding: 0 1.5rem;
  }
}
/* Smaller logos and matching chip height on phones */
@media (max-width: 560px) {
  .marquee__item img { height: 48px; max-width: 160px; }
  .marquee__name { height: 48px; font-size: .95rem; padding: 0 1rem; }
}

/* ---------- Team card: square photo on top, bio below ---------- */
/* Used on who-we-are.html for board, advisors, and staff cards. */
.team-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--rose);
}
.team-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--teal-soft), var(--rose-soft));
  overflow: hidden;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card__body {
  padding: 1.5rem;
}
.team-card__body h3 {
  margin: 0 0 .25rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--teal);
}
.team-card__role {
  font-size: .82rem;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0 0 .75rem;
  font-weight: 600;
}
.team-card__bio {
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Portrait card: image background with text overlay ---------- */
/* Used in the "In the public eye" section on listen.html.
   Full-bleed image, dark gradient at the bottom, text overlaid in white. */
.card--portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  border: none;
  color: #fff;
  /* Gradient fallback shows if the portrait image is missing */
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 55%, var(--rose) 100%);
  box-shadow: var(--shadow);
}
.card--portrait:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  border-color: transparent;
}
.card--portrait > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform .35s ease;
}
.card--portrait:hover > img {
  transform: scale(1.04);
}
.card--portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 35, 35, .94) 0%,
    rgba(15, 35, 35, .80) 30%,
    rgba(15, 35, 35, .25) 65%,
    rgba(15, 35, 35, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}
.card--portrait .card-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.35rem 1.35rem;
  z-index: 3;
}
.card--portrait .card-text h4 {
  color: rgba(255, 255, 255, .9);
  margin: 0 0 .35rem;
  font-size: .78rem;
  letter-spacing: .08em;
}
.card--portrait .card-text h3 {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0 0 .55rem;
}
.card--portrait .card-text p {
  color: rgba(255, 255, 255, .92);
  font-size: .9rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Quote / script blocks ---------- */
.quote-block {
  border: 2px solid var(--rose);
  border-radius: var(--radius);
  padding: 2.5rem;
  background: #fff;
  margin: 2rem 0;
}
.quote-block h2 { color: var(--teal); margin-top: 0; }
.script {
  background: var(--rose-soft);
  border-left: 4px solid var(--rose);
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  margin: 1.5rem 0;
  line-height: 1.6;
}
.script strong { color: var(--rose-dark); font-style: normal; }

/* ---------- Steps (collapsible, used on Guide "Speak" section) ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 2.25rem 0 1rem;
}
.step {
  background: #fff;
  border: 1px solid rgba(94, 148, 148, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}
.step:hover {
  border-color: rgba(204, 111, 130, 0.35);
}
.step[open] {
  border-color: var(--rose);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
}
.step summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  list-style: none;
}
.step summary::-webkit-details-marker { display: none; }
.step summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--rose);
  transition: transform 0.2s ease;
}
.step[open] summary::after {
  content: "−";
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose-dark);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.step[open] .step__num {
  background: var(--rose);
  color: #fff;
}
.step__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal-dark);
  line-height: 1.35;
}
.step__body {
  padding: 0.25rem 1.35rem 1.5rem calc(1.35rem + 2.4rem + 1rem);
  color: var(--ink);
}
.step__body p + p,
.step__body ol + p,
.step__body p + ol {
  margin-top: 0.85rem;
}
.step__body ol {
  padding-left: 1.35rem;
  margin: 0.25rem 0 0;
}
.step__body ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}
.step__body a {
  color: var(--rose-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.step__body a:hover {
  color: var(--teal-dark);
}
.step__note {
  margin-top: 0.85rem !important;
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-style: italic;
}
.step__notice {
  margin-top: 2.25rem;
  padding: 1.1rem 1.35rem;
  background: var(--teal-soft, rgba(94, 148, 148, 0.1));
  border-left: 4px solid var(--teal);
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--ink);
}
@media (max-width: 640px) {
  .step summary { padding: 0.9rem 1rem; gap: 0.75rem; }
  .step__num { width: 2.1rem; height: 2.1rem; font-size: 0.85rem; }
  .step__title { font-size: 1rem; }
  .step__body { padding: 0.25rem 1rem 1.25rem 1rem; }
}

/* ---------- Lists with callout styling ---------- */
.checklist {
  list-style: none;
  padding-left: 0;
}
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}

/* ---------- Founders figure (Contact page) ---------- */
.founders-figure {
  margin: 2rem 0 0;
}
.founders-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}
.founders-figure figcaption {
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.5;
}

/* ---------- Contact form (Contact page) ---------- */
.contact-form {
  background: #fff;
  border: 1px solid rgba(94, 148, 148, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}
.form-row {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}
.form-row label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal-dark);
  margin-bottom: 0.4rem;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(94, 148, 148, 0.3);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(204, 111, 130, 0.18);
}
.form-row textarea {
  resize: vertical;
  min-height: 130px;
}
.form-row--inline {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}
.form-row--inline input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--rose);
  flex-shrink: 0;
}
.form-row--inline label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.form-success {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--rose-soft);
  border-left: 4px solid var(--rose);
  border-radius: 4px;
  color: var(--rose-dark);
  font-size: 0.95rem;
}

/* ---------- Carousel (testimonials) ---------- */
.carousel {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 3.75rem;
}
.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  transition: height 0.45s cubic-bezier(0.33, 0.66, 0.29, 1);
}
.carousel__track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.55s cubic-bezier(0.33, 0.66, 0.29, 1);
  will-change: transform;
}
.carousel__track > * {
  flex: 0 0 100%;
  min-width: 0;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(94, 148, 148, 0.25);
  color: var(--rose-dark);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.carousel__btn:hover {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}
.carousel__btn:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.carousel__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(94, 148, 148, 0.28);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel__dot:hover { background: rgba(204, 111, 130, 0.55); }
.carousel__dot[aria-selected="true"] {
  background: var(--rose);
  transform: scale(1.25);
}
.carousel__dot:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .carousel { padding: 0 2.25rem; }
  .carousel__btn { width: 2.35rem; height: 2.35rem; font-size: 1.4rem; }
}

/* ---------- Testimonials (Contact page) ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  padding-top: 3.25rem;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.75rem;
  left: 1.5rem;
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--rose);
  opacity: 0.4;
}
.testimonial__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.testimonial__meta {
  border-top: 1px solid rgba(94, 148, 148, 0.18);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.testimonial__meta strong {
  color: var(--teal-dark);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.testimonial__meta span {
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal);
  color: #fff;
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}
.footer-logo {
  display: flex;
  justify-content: center;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.footer-logo img {
  display: block;
  height: 96px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,0.08));
}
.footer-logo .footer-logo-fallback {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.footer-logo .footer-logo-fallback span { color: var(--rose-soft); }
@media (max-width: 640px) {
  .footer-logo img { height: 72px; }
}
.site-footer h4 {
  font-family: var(--serif);
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.site-footer a { color: #fff; opacity: .9; }
.site-footer a:hover { color: #fff; opacity: 1; border-bottom-color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: .5rem; }

.subscribe {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1rem;
  max-width: 380px;
}
.subscribe input {
  padding: .75rem .9rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .95rem;
}
.subscribe__row {
  display: flex;
  gap: .5rem;
}
.subscribe__row input {
  flex: 1;
  min-width: 0;
}
.subscribe .btn { white-space: nowrap; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: .85rem;
  opacity: .85;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Safety banner ---------- */
.safety-banner {
  background: var(--rose-soft);
  border-bottom: 1px solid var(--rose);
  padding: .7rem 1.5rem;
  text-align: center;
  font-size: .9rem;
  color: var(--ink);
}
.safety-banner strong { color: var(--rose-dark); }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 3px;
  margin: 2rem 0 0;
  flex-wrap: wrap;
}
.tab {
  appearance: none;
  border: none;
  background: var(--rose-soft);
  color: var(--rose-dark);
  padding: 1rem 2.1rem 1rem 2.1rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
  margin-bottom: 0;
  border-radius: 0;
  transition: background .2s ease, color .2s ease;
  clip-path: polygon(
    0% 0%,
    calc(100% - 14px) 0%,
    100% 50%,
    calc(100% - 14px) 100%,
    0% 100%,
    14px 50%
  );
}
/* First tab: flat left edge, arrow point on the right */
.tab:first-child {
  padding-left: 1.5rem;
  clip-path: polygon(
    0% 0%,
    calc(100% - 14px) 0%,
    100% 50%,
    calc(100% - 14px) 100%,
    0% 100%
  );
}
/* Last tab: notch on the left, flat right edge */
.tab:last-child {
  padding-right: 1.5rem;
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 100%,
    0% 100%,
    14px 50%
  );
}
.tab:hover {
  background: rgba(204, 111, 130, 0.28);
  color: var(--rose-dark);
}
.tab[aria-selected="true"] {
  background: var(--rose);
  color: #fff;
}
/* Focus ring lives inside the clip-path as an inset shadow */
.tab:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--rose-dark);
}
/* Plain tabs variant — no arrow clip-path, traditional rounded tabs */
.tabs--plain {
  gap: 4px;
}
.tabs--plain .tab,
.tabs--plain .tab:first-child,
.tabs--plain .tab:last-child {
  clip-path: none;
  padding: .9rem 1.4rem;
  border-radius: 10px 10px 0 0;
}
@media (max-width: 640px) {
  .tabs--plain .tab,
  .tabs--plain .tab:first-child,
  .tabs--plain .tab:last-child {
    clip-path: none;
    padding: .75rem 1.1rem;
    border-radius: 8px 8px 0 0;
  }
}

.tab-panel {
  background: #FDFAFB;
  border: 1px solid rgba(204, 111, 130, 0.18);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-top: 0;
  animation: tab-fade .25s ease;
}
.tab-panel[hidden] { display: none; }
@media (max-width: 640px) {
  .tab-panel { padding: 1.5rem 1.25rem; }
}
@keyframes tab-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    white-space: nowrap;
    padding: .85rem 1.6rem;
    font-size: .88rem;
    clip-path: polygon(
      0% 0%,
      calc(100% - 10px) 0%,
      100% 50%,
      calc(100% - 10px) 100%,
      0% 100%,
      10px 50%
    );
  }
  .tab:first-child {
    padding-left: 1.1rem;
    clip-path: polygon(0% 0%, calc(100% - 10px) 0%, 100% 50%, calc(100% - 10px) 100%, 0% 100%);
  }
  .tab:last-child {
    padding-right: 1.1rem;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 10px 50%);
  }
}

/* ---------- Two-column alternating layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split--alt .split-text { order: 2; }

/* Variant: right-column media (image or video) sticks below the nav while
   the left-column copy scrolls past, mirroring the tab-panel behavior. */
.split--sticky-rail {
  align-items: start;
}
@media (min-width: 821px) {
  .split--sticky-rail > div:nth-child(2) {
    position: sticky;
    top: 130px;
    align-self: start;
  }
}

/* ---------- Scroll reveal ---------- */
/* JS adds .reveal to targeted elements on load, then .is-visible when they
   cross the viewport. If JS is disabled or motion is reduced, elements show
   immediately (no .reveal class is ever applied). */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity .8s cubic-bezier(.2,.7,.2,1),
      transform .8s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Scroll reveal ---------- */
/* Elements get .reveal from JS. .is-visible is added by an IntersectionObserver
   when they scroll into view. Respects prefers-reduced-motion. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive video embed (YouTube/Vimeo) ---------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
  margin: 1.5rem 0 2rem;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Thumbnail link (used when a video can't be embedded) */
.video-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 1.5rem 0 2rem;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 50%, var(--rose) 100%);
  border-bottom: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
  border-bottom: none;
}
.video-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Reusable section image with fallback ---------- */
/* Drop an <img> inside; if the src fails, the brand-gradient fallback shows. */
.section-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 50%, var(--rose) 100%);
  box-shadow: var(--shadow);
}
.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Givebutter donate widget ---------- */
/* The Givebutter widget renders its own form at its natural width.
   Use flex to center the widget element regardless of its width. */
.donate-embed {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}
.donate-embed givebutter-widget {
  display: block;
  width: 400px;
  max-width: 100%;
  margin: 0;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 820px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 110px;
  top: .5rem;
  bottom: .5rem;
  width: 2px;
  background: var(--rule);
}
.timeline-entry {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: start;
  gap: 0;
  padding-bottom: 2.5rem;
  margin: 0;
  position: relative;
}
.timeline-entry:last-child {
  padding-bottom: 0;
}
.timeline-year {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--rose-dark);
  text-align: right;
  padding-right: 2rem;
  padding-top: .15rem;
  letter-spacing: -.01em;
}
.timeline-body {
  position: relative;
  padding-left: 2rem;
}
.timeline-body::before {
  content: "";
  position: absolute;
  left: -7px;
  top: .55rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rose);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--rule);
}
.timeline-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--teal-dark);
  margin: 0 0 .5rem;
  line-height: 1.35;
}
.timeline-body p {
  margin: 0;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .timeline::before {
    left: 70px;
  }
  .timeline-entry {
    grid-template-columns: 70px 1fr;
    padding-bottom: 2rem;
  }
  .timeline-year {
    font-size: 1.1rem;
    padding-right: 1.25rem;
  }
  .timeline-body {
    padding-left: 1.25rem;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links { gap: 1rem; font-size: .9rem; }
  .nav-links .btn { padding: .5rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--alt .split-text { order: 0; }
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero--media { min-height: 60vh; padding: 5rem 0 4rem; }
  .hero .mission { font-size: 1.2rem; }
}

@media (max-width: 700px) {
  /* Below 700px the 8-item nav gets cramped — let it scroll horizontally
     instead of wrapping awkwardly. Logo stays put on the left. */
  .nav { gap: .5rem; padding: 0.35rem 1rem; }
  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1.25rem;
    /* Bleed slightly into the right edge so visitors see there's more to scroll */
    padding-right: 1rem;
    margin-right: -1rem;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links li { flex-shrink: 0; }
  .nav-links a:not(.btn) { white-space: nowrap; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .quote-block, .script { padding: 1.5rem; }
  /* Hero copy tightens further on tiny screens */
  .hero--media .container > * { max-width: 100%; }
  .hero .mission { font-size: 1.05rem; }
  /* Marquee text fallback chips read smaller too */
  .marquee__name { font-size: .95rem; padding: 0 1rem; }
  /* Page-hero on very small screens — pull the headline tighter */
  .page-hero h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); }
}
