/* TOZ Homepage styles — page-specific (shared header/nav/footer/mobile-menu
   and :root tokens live in /css/shared.css) */

/* =============================================================================
   SHARED — Buttons / typography utilities
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 36px;
  border: 1px solid currentColor;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring),
              border-color 0.3s var(--ease-spring),
              color 0.3s var(--ease-spring);
}
.btn--ghost {
  background: rgba(28, 36, 75, 0.4);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: var(--toz-white);
  border-color: rgba(229, 228, 235, 0.6);
}
.btn--ghost:hover {
  color: var(--toz-teal-bright);
  border-color: var(--toz-teal-bright);
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 2px solid var(--toz-teal-bright);
  outline-offset: 4px;
}

/* Section heading shared */
.section-title,
.vision__title,
.mission__title,
.who-we-are__title,
.programs__title,
.values__title,
.contact__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 100;
  font-size: 4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* =============================================================================
   1. HERO (full-bleed abstract art + dark overlay + centered text)
   ============================================================================= */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 96px;
  --hero-bg: url('/images/EPP_TeegathaOhZheh_031224_TheresaRoberts_02.webp');
  background: var(--hero-bg) center / cover no-repeat;
  color: var(--toz-white);
  text-align: center;
}
@media (max-width: 768px) {
  .hero { --hero-bg: url('/images/EPP_TeegathaOhZheh_031224_TheresaRoberts_02-mobile.webp'); }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(28, 36, 75, 0.50) 0%,
    rgba(20, 20, 54, 0.30) 35%,
    rgba(9, 6, 18, 0.65) 100%);
}
.hero__inner { max-width: 960px; }
.hero__title {
  font-family: 'Karla', sans-serif;
  font-weight: 100;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--toz-white);
  margin: 0 0 32px;
  text-align: center;
  white-space: nowrap;       /* single line at all breakpoints */
  hyphens: none;
}
.hero__subline {
  font-family: 'Karla', sans-serif;
  font-weight: 100;
  font-size: 2.2rem;
  line-height: 1.1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--toz-white);
  opacity: 1;
  margin: 0;
}
/* =============================================================================
   2. OUR VISION (2-col image LEFT, text RIGHT, light bg)
   ============================================================================= */

.vision {
  background: var(--toz-white);
  padding: 120px 24px;
}
.vision__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 50% 45%;   /* image LEFT 50% / gap 5% / text RIGHT 45% */
  gap: 5%;
  align-items: center;
}
.vision__image {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.vision__image img { width: 100%; height: 100%; object-fit: cover; }
.vision__text { color: var(--toz-indigo); }
.vision__title {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  color: var(--toz-indigo);
  margin: 0 0 32px;
}
.vision__body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.7;
  color: var(--toz-indigo);
  margin: 0;
}

/* =============================================================================
   3. WHO WE ARE (full-width Anna bg + dark overlay, centered text)
   ============================================================================= */

.who-we-are {
  position: relative;
  isolation: isolate;
  padding: 140px 24px;
  --whoweare-bg: url('/images/EPP_TeegathaOhZheh_041024_AnnaThompson_12-1.webp');
  background: var(--whoweare-bg) center / cover no-repeat fixed;
  color: var(--toz-white);
  text-align: center;
}
@media (max-width: 768px) {
  .who-we-are { --whoweare-bg: url('/images/EPP_TeegathaOhZheh_041024_AnnaThompson_12-1-mobile.webp'); }
}
.who-we-are__overlay {
  position: absolute; inset: 0; z-index: -1;
  /* Darker overlay (v3) for stronger text contrast — photo still reads as
     atmosphere, just deeper. Mauve tint preserved on the second stop. */
  background: linear-gradient(180deg,
    rgba(28, 36, 75, 0.78) 0%,
    rgba(49, 20, 54, 0.72) 100%);
}
.who-we-are__inner {
  max-width: 820px;
  margin: 0 auto;
}
.who-we-are__title {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  color: var(--toz-white);
  margin: 0 0 40px;
}
.who-we-are__body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.7;
  color: var(--toz-white);
  margin: 0 auto 20px;
  max-width: 720px;
  text-wrap: pretty;                              /* avoid single-word orphans */
}
.who-we-are__cta {
  margin-top: 48px;
}

/* =============================================================================
   4. OUR MISSION (2-col text LEFT, image RIGHT, light bg)
   ============================================================================= */

.mission {
  background: var(--toz-white);
  padding: 120px 24px;
}
.mission__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 45% 50%;   /* text LEFT 45% / gap 5% / image RIGHT 50% */
  gap: 5%;
  align-items: center;
}
.mission__text { color: var(--toz-indigo); }
.mission__title {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  color: var(--toz-indigo);
  margin: 0 0 32px;
}
.mission__body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.7;
  color: var(--toz-indigo);
  margin: 0;
}
.mission__image {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.mission__image img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================================
   4.6 PARALLAX DIVIDER (full-bleed artwork band between Mission and Values,
       no text/overlay content beyond the standard dark gradient wash used by
       every other parallax band on the site)
   ============================================================================= */

.partners-band {
  position: relative;
  height: 420px;
  background-color: var(--toz-indigo-alt);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}
.partners-band--sarabelle {
  background-image: url('/images/TA_Sarabelle_Art_2025.webp');
}
@media (max-width: 768px) {
  .partners-band--sarabelle { background-image: url('/images/TA_Sarabelle_Art_2025-mobile.webp'); }
}
/* Flat Darkest-Indigo tint (not the gradient wash other parallax bands use)
   — deliberately deeper than before per the director's request, while
   staying light enough that the artwork's own colours stay legible. */
.partners-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 54, 0.35);
}

/* =============================================================================
   4.5 IMPACT NUMBERS (visual rest between Mission and Programs)
   ============================================================================= */

.quotes {
  background: var(--toz-mauve);
  padding: 96px 24px;
}
.quotes__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.quotes__mark {
  font-family: 'Karla', sans-serif;
  font-weight: 100;
  font-size: 4rem;
  line-height: 1;
  color: var(--toz-teal-bright);
  opacity: 0.5;
  margin-bottom: 0;
}
.quotes__mark--close {
  margin: 0 0 12px;
}
.quotes__carousel {
  position: relative;
  min-height: 110px;
}
.quotes__item {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-spring);
}
.quotes__item.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.quotes__text {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.6;
  color: var(--toz-white);
  margin: 0 0 24px;
  text-wrap: balance;
}
.quotes__cite {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-style: normal;
}
.quotes__cite-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--toz-white);
}
.quotes__cite-role {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--toz-teal-bright);
}
.quotes__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
/* Button hit area is 24px square (WCAG 2.5.8 minimum) even though the
   rendered dot stays the original 8px — the visible dot is drawn on
   ::before, centered, so enlarging the tap target doesn't change how the
   row looks. */
.quotes__dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.quotes__dot::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(229, 228, 235, 0.4);
  background: transparent;
  transition: background 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring);
}
.quotes__dot.is-active::before {
  background: var(--toz-teal-bright);
  border-color: var(--toz-teal-bright);
}
.quotes__dot:focus-visible {
  outline: 2px solid var(--toz-teal-bright);
  outline-offset: 2px;
}

/* =============================================================================
   5. EXPLORE OUR PROGRAMS (dark indigo bg, 3 program blocks with images)
   ============================================================================= */

.programs {
  background: var(--toz-indigo-alt);
  color: var(--toz-white);
  padding: 96px 24px;
}
.programs__header {
  max-width: var(--max-content);
  margin: 0 auto 56px;
  text-align: center;
}
.programs__title {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  color: var(--toz-white);
  margin: 0;
}
.programs__list {
  max-width: var(--max-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.program {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
/* Grid items default to min-width: auto, which lets the marquee track
   (width: max-content) push the carousel column past 1fr. Forcing min-width: 0
   makes the grid honour the column ratio. */
.program > * { min-width: 0; }
/* DOM order is meaningful — image-left has image first, image-right has text first.
   Text column pinned to a fixed max-width and the image/media column takes the
   remaining space — grows the displayed image ~35% vs. the previous even 1fr/1fr
   split without touching row height (a single-line title needs far less than 50%). */
.program--image-left {
  grid-template-columns: 1fr minmax(0, 365px);
}
.program--image-right {
  grid-template-columns: minmax(0, 365px) 1fr;
}

.program__image {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(229, 228, 235, 0.10);
}
.program__image img { width: 100%; height: 100%; object-fit: cover; }
.program__text { color: var(--toz-white); }

/* TOZPAS media column wraps the carousel + dot indicators */
.program__media {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* TOZPAS slider — simple fade between fixed positions, 5s auto-advance.
   Same dimensions as the Day Program / Advocacy program__image (4:3).
   JS cycles which slide has .is-active; CSS fades the rest to 0 opacity. */
.program__carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(229, 228, 235, 0.10);
}
.program__carousel-item {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.program__carousel-item.is-active {
  opacity: 1;
  pointer-events: auto;
}
.program__carousel-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* prefers-reduced-motion: no auto-advance. Show first slide; user advances via dots. */
@media (prefers-reduced-motion: reduce) {
  .program__carousel-item { transition: none; }
}

/* Dot indicators — generated by JS, one per carousel item */
.program__carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}
/* Button hit area is 24px square (WCAG 2.5.8 minimum) even though the
   rendered dot stays the original 8px — the visible dot is drawn on
   ::before, centered, so enlarging the tap target doesn't change how the
   row looks. */
.program__carousel-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.program__carousel-dot::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(229, 228, 235, 0.3);
  transition: background 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
}
.program__carousel-dot:hover::before { background: rgba(229, 228, 235, 0.55); }
.program__carousel-dot.is-active::before {
  background: var(--toz-teal-bright);
  transform: translate(-50%, -50%) scale(1.35);
}
.program__carousel-dot:focus-visible {
  outline: 2px solid var(--toz-teal-bright);
  outline-offset: 4px;
}
.program__title {
  font-family: 'Karla', sans-serif;
  font-weight: 100;
  font-size: 2.2rem;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--toz-white);
  margin: 0;
}
.program__title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring);
}
.program__title a:hover {
  color: var(--toz-teal-bright);
  border-color: var(--toz-teal-bright);
}
.program__title a:focus-visible {
  outline: 2px solid var(--toz-teal-bright);
  outline-offset: 4px;
}

/* =============================================================================
   5.5 PARTICIPANT PULL-QUOTE (mauve interlude between Programs and Values)
   ============================================================================= */

.pullquote {
  background: var(--toz-white);
  color: var(--toz-indigo);
  padding: 140px 24px;
}
.pullquote__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.pullquote__body {
  margin: 0;
  font-family: 'Karla', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--toz-indigo);
}
.pullquote__attribution {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* --toz-teal (used elsewhere on dark backgrounds) measures only 2.58:1
     against this section's light background — --toz-teal-on-light exists
     for exactly this on-light-bg case (see .prose a in shared.css) and
     measures ~4.98:1 here. */
  color: var(--toz-teal-on-light);
}

/* Pull-quote carousel — wide gallery row beneath the quote.
   Desktop: 5-up grid (no scroll needed). Tablet: 3-up snap. Mobile: 1-up snap. */
.pullquote__carousel {
  max-width: 1440px;
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 0 24px;
}
.pullquote__carousel:focus-visible {
  outline: 2px solid var(--toz-teal-bright);
  outline-offset: 4px;
}
.pullquote__tile {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(28, 36, 75, 0.10);
  background: rgba(28, 36, 75, 0.06);
}
.pullquote__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dot indicators below the pullquote carousel — JS only injects dots when
   the carousel is actually scrollable (tablet/mobile breakpoints). On desktop
   the 5-up grid fits all images so no dots render. */
.pullquote__carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  min-height: 24px;        /* reserves vertical space so the layout doesn't jump */
}
/* Button hit area is 24px square (WCAG 2.5.8 minimum) even though the
   rendered dot stays the original 8px — the visible dot is drawn on
   ::before, centered, so enlarging the tap target doesn't change how the
   row looks. */
.pullquote__carousel-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.pullquote__carousel-dot::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(28, 36, 75, 0.25);
  transition: background 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
}
.pullquote__carousel-dot:hover::before { background: rgba(28, 36, 75, 0.45); }
.pullquote__carousel-dot.is-active::before {
  background: var(--toz-teal-bright);
  transform: translate(-50%, -50%) scale(1.35);
}
.pullquote__carousel-dot:focus-visible {
  outline: 2px solid var(--toz-teal-bright);
  outline-offset: 4px;
}

/* =============================================================================
   6. OUR VALUES (light bg, 5-col row, icons in teal-bright)
   ============================================================================= */

.values {
  background: var(--toz-white);
  color: var(--toz-black);
  padding: 120px 24px;
}
.values__header {
  max-width: var(--max-content);
  margin: 0 auto 72px;
  text-align: center;
}
.values__header::before {
  content: '';
  display: block;
  width: 64px;
  height: 1px;
  background: var(--toz-teal-bright);
  margin: 0 auto 32px;
}
.values__title {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  color: var(--toz-indigo);
  margin: 0;
}
.values__list {
  max-width: 1320px;       /* wider than the standard --max-content so 5 columns get more horizontal room */
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  /* minmax(0, 1fr) is critical — prevents items from blowing past their 1fr share
     when content (single long word) would otherwise force the column wider. */
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 48px;
}
.value {
  text-align: center;
  padding: 0 8px;
  min-width: 0;            /* allow item to shrink below content size */
  overflow: hidden;        /* hard column boundary — no bleed into neighbour */
}
.value__icon {
  width: 80px; height: 80px;
  margin: 0 auto 28px;
  color: var(--toz-teal-bright);
  display: flex; align-items: center; justify-content: center;
}
.value__icon svg { width: 100%; height: 100%; display: block; stroke-width: 1; }
.value__name {
  font-family: 'Karla', sans-serif;
  font-weight: 100;
  /* 1.5rem — guarantees ACCOUNTABILITY / COLLABORATION fit single-line
     in their ~216px columns at 1320px container width. */
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--toz-indigo);
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: none;
}

/* =============================================================================
   7. CONTACT US (Fauve bg + dark overlay, centered heading, 2 info cards)
   ============================================================================= */

.contact {
  position: relative;
  isolation: isolate;
  padding: 120px 24px;
  --contact-bg: url('/images/EPP_TeegathaOhZheh_031224_FauveBerrel_02.webp');
  background: var(--contact-bg) center / cover no-repeat;
  color: var(--toz-white);
}
@media (max-width: 768px) {
  .contact { --contact-bg: url('/images/EPP_TeegathaOhZheh_031224_FauveBerrel_02-mobile.webp'); }
}
.contact__overlay {
  position: absolute; inset: 0; z-index: -1;
  /* Tuned to ~65% so the Fauve photo reads as atmosphere; white text still
     clears AA on indigo at this opacity over the image. */
  background: linear-gradient(180deg,
    rgba(28, 36, 75, 0.62) 0%,
    rgba(20, 20, 54, 0.68) 100%);
}
.contact__inner {
  max-width: var(--max-content);
  margin: 0 auto;
}
.contact__header { text-align: center; margin-bottom: 72px; }
.contact__title {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  color: var(--toz-white);
  margin: 0;
}
.contact__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 880px;
  margin: 0 auto;
}
.contact-card {
  background: rgba(229, 228, 235, 0.04);
  border: 1px solid rgba(229, 228, 235, 0.10);
  padding: 48px 40px;
  text-align: center;
}
.contact-card__icon {
  width: 36px; height: 36px;
  margin: 0 auto 24px;
  color: var(--toz-teal-bright);
}
.contact-card__icon svg { width: 100%; height: 100%; display: block; }
.contact-card__title {
  font-family: 'Karla', sans-serif;
  font-weight: 100;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--toz-white);
  margin: 0 0 24px;
}
.contact-card__body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--toz-white);
  opacity: 0.9;
  margin: 0 0 12px;
}
.contact-card__body a {
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.contact-card__body a:hover {
  color: var(--toz-teal-bright);
  border-color: var(--toz-teal-bright);
}

.contact__cta-wrap {
  margin-top: 48px;
  text-align: center;
}

/* Map below the info cards — full-width inside the contact container */
.contact__map {
  margin-top: 72px;
  width: 100%;
  height: 420px;
  border: 1px solid rgba(229, 228, 235, 0.10);
  overflow: hidden;
  background: rgba(9, 6, 18, 0.4);
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.4) brightness(0.85);
}

/* Footer styles live in shared.css (this block was a leftover duplicate
   from the original page-migration step, same class of bug as the one
   found and removed from contact.css). */

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 1024px) {
  /* Parallax falls back to normal scroll on tablet & touch devices */
  .who-we-are { background-attachment: scroll; }
  .partners-band { background-attachment: scroll; }
  .vision__inner,
  .mission__inner { gap: 64px; }
  .programs__list { gap: 64px; }
  .program { gap: 56px; }
  .values__list { gap: 28px; }
  .contact__cards { gap: 32px; }
  .contact__map { height: 380px; margin-top: 56px; }

  /* Pull-quote carousel — switch to 3-up snap-scroll on tablet */
  .pullquote__carousel {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 12px;
  }
  .pullquote__tile {
    flex: 0 0 calc((100% - 28px) / 3);
    scroll-snap-align: start;
  }
}

@media (max-width: 768px) {

  .hero { padding: 96px 24px 64px; min-height: 70vh; }
  .vision,
  .mission,
  .programs,
  .values,
  .contact { padding: 80px 24px; }
  .partners-band { height: 280px; }

  .quotes { padding: 72px 24px; }
  .quotes__mark { font-size: 3rem; }

  .pullquote { padding: 96px 24px; }
  .pullquote__inner { gap: 28px; }
  .pullquote__carousel {
    margin-top: 56px;
    padding: 0 0 12px;
  }
  .pullquote__tile {
    flex: 0 0 100%;
  }

  .vision__inner,
  .mission__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .vision__image,
  .mission__image { aspect-ratio: 4 / 3; }

  .who-we-are { padding: 96px 24px; background-attachment: scroll; }

  .programs__header,
  .values__header,
  .contact__header { margin-bottom: 56px; }
  .programs__list { gap: 56px; }
  .program {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* On mobile, image always appears above text regardless of alternation class */
  .program--image-right { display: flex; flex-direction: column; }
  .program--image-right > .program__text  { order: 2; }
  .program--image-right > .program__media { order: 1; }
  .program__title { font-size: 1.5rem; }
  /* TOZPAS carousel — force full column width on mobile. Without these,
     nested flex columns (.program--image-right → .program__media → .program__carousel)
     can fail to propagate a definite width, leaving the image at its intrinsic size. */
  .program__media,
  .program__carousel { width: 100% !important; }
  .program__carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .values { padding: 96px 24px; }
  .values__header { margin-bottom: 64px; }
  .values__list { grid-template-columns: 1fr 1fr; gap: 40px; }
  .value:last-child { grid-column: 1 / -1; max-width: 280px; margin: 0 auto; }

  .contact__cards { grid-template-columns: 1fr; gap: 24px; }
  .contact__map { height: 320px; margin-top: 48px; }

  .toz-footer { padding: 56px 24px 32px; }
  .toz-footer__nav ul { flex-direction: column; gap: 16px; }
  .toz-footer__land { margin-top: 32px; font-size: 13px; }
}

@media (max-width: 480px) {
  .values__list { grid-template-columns: 1fr; gap: 32px; }
  .value:last-child { grid-column: auto; max-width: none; }
  /* .hero__title is `white-space: nowrap` by default (see base rule above) —
     fine down to ~480px, but "Teegatha'Oh Zheh" at this breakpoint's own
     reduced font-size still doesn't fit one line in a 320-390px viewport,
     clipping past the edge instead of wrapping (overflow-x: hidden on
     html/body in shared.css hides it rather than showing a scrollbar).
     Letting it wrap costs only hero height, which is unconstrained here.
     overflow-wrap covers the case where "Teegatha'Oh" alone (one word, no
     space to wrap on) is still wider than the viewport on its own. */
  .hero__title {
    font-size: 2.5rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .hero__subline { font-size: 11px; letter-spacing: 0.24em; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .who-we-are { background-attachment: scroll; }
}

