/* ==========================================================================
   Emmaus Global Foundation — stylesheet
   ========================================================================== */

/* Unbounded draws a lowercase "j" with no descender; borrow Poppins' "j" for display text */
@font-face {
  font-family: "Display J";
  src: url("../assets/fonts/j-fix-600.woff2") format("woff2");
  font-weight: 100 650;
  font-display: swap;
  unicode-range: U+006A;
}
@font-face {
  font-family: "Display J";
  src: url("../assets/fonts/j-fix-700.woff2") format("woff2");
  font-weight: 651 900;
  font-display: swap;
  unicode-range: U+006A;
}

:root {
  --brown: #1f4633;
  --brown-dark: #163327;
  --brown-darker: #0f241b;
  --cream: #ffffff;
  --cream-soft: #e6d9b6;
  --white: #ffffff;
  --ink: #2c1c10;
  --gray-btn: #686868;
  --gray-btn-dark: #4f4f4f;

  --font-display: "Display J", "Unbounded", "Poppins", "Trebuchet MS", sans-serif;
  --font-body: "Poppins", "Trebuchet MS", sans-serif;

  --container-w: 1200px;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5.5vw, 64px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--brown);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
}
.section-title.huge { font-size: clamp(4.2rem, 14.5vw, 9rem); }
.section-title.center { text-align: center; }
.text-cream { color: var(--cream); }
.text-brown { color: var(--brown); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--cream);
  opacity: 0.85;
  margin: 0 0 6px;
  font-size: 1.05rem;
}

/* ---------- Buttons / pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  padding: clamp(14px, 1.8vw, 19px) clamp(24px, 3vw, 34px);
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-outline-light {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
  background: transparent;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-menu {
  background: var(--white);
  border-color: var(--white);
  color: var(--brown);
}
.btn-menu:hover { background: var(--cream); border-color: var(--cream); }

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  padding: 10px 12px 10px 22px;
  color: var(--cream);
  transition: background 0.25s ease, transform 0.25s ease;
}
.pill-link:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.pill-link-text { display: flex; flex-direction: column; line-height: 1.25; }
.pill-link-text small { font-size: 0.8rem; opacity: 0.8; font-weight: 500; }
.pill-link-text strong { font-weight: 700; font-size: 1.02rem; }
.pill-link-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--brown);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.pill-link:hover .pill-link-arrow { transform: translateX(4px); }

.pill-solid, .pill-outline {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
}
.pill-solid { background: var(--white); color: var(--brown); box-shadow: 0 6px 18px rgba(31,70,51,0.18); }
.pill-outline { background: transparent; border: 1.5px solid var(--brown); color: var(--brown); }

/* ---------- Nav overlay ---------- */

.overlay-backdrop {
  position: fixed; inset: 0;
  background: rgba(20,10,4,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 90;
}
.overlay-backdrop.active { opacity: 1; pointer-events: auto; }

.nav-overlay {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--brown-darker);
  color: var(--cream);
  z-index: 100;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.65,0,.35,1);
}
.nav-overlay.active { transform: translateX(0); }

.nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 8px;
}

.nav-links {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-link {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.nav-link:hover { color: var(--white); padding-left: 8px; }

.nav-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.95rem;
  opacity: 0.8;
}
.nav-footer p { margin: 4px 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0 0 60px 60px;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--brown);
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 78% 30%;
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(31,70,51,0.97) 0%,
    rgba(31,70,51,0.9) 22%,
    rgba(31,70,51,0.55) 38%,
    rgba(31,70,51,0.15) 52%,
    rgba(31,70,51,0) 62%);
}

.hero-topbar {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(32px, 6.5vh, 72px) 24px 0;
}
.logo { display: inline-flex; flex-direction: column; align-items: center; }
.logo-main {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.9vw, 1.85rem);
  letter-spacing: 0.12em;
  line-height: 1;
}
.logo-sub {
  font-size: clamp(0.55rem, 0.8vw, 0.7rem);
  letter-spacing: 0.06em;
  text-transform: none;
  opacity: 0.85;
  margin-top: 1px;
  line-height: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: clamp(40px, 20vh, 210px);
  padding-bottom: clamp(24px, 6vh, 60px);
}
.hero-content.container { padding-left: calc(clamp(18px, 4vw, 44px) - 25px); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: calc(clamp(2.6rem, 8vw, 7.2rem) - 30px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hero-quote {
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(0.8rem, 1.65vw, 1.5rem);
  white-space: nowrap;
  margin: 0 0 40px;
  opacity: 0.95;
}
.mobile-break { display: none; }
.hero-actions { display: flex; gap: clamp(16px, 3vw, 32px); flex-wrap: wrap; }

/* ---------- Mission ---------- */

.mission {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  z-index: 1;
}
.mission::before,
.programs-bg::before,
.help::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='1 0 0 0 0  1 0 0 0 0  1 0 0 0 0  0 0 0 0 1'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.38;
  pointer-events: none;
}
.mission::after {
  content: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.08;
  pointer-events: none;
}
.mission-text .section-title {
  line-height: 1.02;
  font-size: calc(clamp(2.4rem, 6vw, 3.6rem) + 5px);
}
.mission-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.mission-grid.container { padding-left: calc(clamp(18px, 4vw, 44px) - 25px); }
.mission-copy {
  color: var(--cream);
  font-size: 1.08rem;
  line-height: 1.65;
  opacity: 0.95;
  margin: 0 0 36px;
  max-width: 46ch;
}
.mission-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.mission-image::before {
  content: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--brown);
  mix-blend-mode: color;
  opacity: 0.3;
  pointer-events: none;
}
.mission-image::after {
  content: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--brown);
  opacity: 0.28;
  pointer-events: none;
}
.mission-image img {
  position: relative;
  border-radius: 0;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

/* ---------- Purpose / gallery ---------- */

.purpose { position: relative; padding: 110px 0; overflow: hidden; }
.purpose::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' result='t'/><feColorMatrix in='t' type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 3.2 -1.1'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  mix-blend-mode: soft-light;
  opacity: 0.16;
  pointer-events: none;
}
.purpose::after {
  content: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(31,70,51,0.5) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.08;
  pointer-events: none;
}
.purpose > .container { position: relative; z-index: 1; }
.purpose .section-title {
  text-transform: none;
  margin: 0 0 36px;
}
.purpose-copy {
  max-width: 56ch;
  margin: 0 auto 64px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.65;
  color: #ffffff;
}
.center { text-align: center; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.gallery-item {
  margin: 0;
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 18px 34px rgba(31,70,51,0.18);
  transition: transform 0.35s ease;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s ease, transform 0.5s ease;
}
.gallery-item:nth-child(1) img { object-position: 50% 30%; }
.gallery-item:nth-child(2) img { object-position: 50% 15%; }
.gallery-item:nth-child(3) img { object-position: 50% 20%; }
.gallery-item:nth-child(4) img { object-position: 50% 22%; }
.gallery-item:hover { transform: translateY(-8px); }
.gallery-item:hover img { filter: grayscale(0); transform: scale(1.06); }

/* ---------- Programs ---------- */

.programs {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  padding: 100px 0;
}
.programs-bg { position: absolute; inset: 0; z-index: 0; }

/* green textured surface with light flashes */
.mission,
.programs-bg,
.help {
  background-color: var(--brown);
  background-image:
    radial-gradient(ellipse 62% 11% at 16% 58%, rgba(120,180,140,0.55), transparent 72%),
    radial-gradient(ellipse 85% 20% at 6% 66%, rgba(90,150,112,0.4), transparent 75%),
    radial-gradient(ellipse 48% 9% at 36% 82%, rgba(110,172,132,0.4), transparent 75%),
    radial-gradient(ellipse 30% 22% at 96% 62%, rgba(90,150,112,0.25), transparent 75%),
    radial-gradient(ellipse 60% 45% at 85% 15%, rgba(12,34,24,0.5), transparent 75%),
    linear-gradient(165deg, #1d4230 0%, #24503a 50%, #1a3d2c 100%);
}
.programs-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.75;
  filter: blur(7px);
  transform: scale(1.08);
}
.programs-grid {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 175px;
  width: 100%;
}
.programs-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-top: 30px;
}
.programs-since {
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  margin: 22px 0 0;
  opacity: 0.9;
}
.programs-list { display: flex; flex-direction: column; gap: 22px; align-items: center; }
.program-pill {
  position: relative;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  background: var(--white);
  color: var(--brown);
  border: none;
  border-radius: 999px;
  padding: 16.5px 32px;
  width: 100%;
  min-width: 260px;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.program-pill::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid var(--white);
  border-radius: 999px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, black 0%, black 16%, transparent 28%, transparent 72%, black 84%, black 100%);
  mask-image: linear-gradient(to right, black 0%, black 16%, transparent 28%, transparent 72%, black 84%, black 100%);
}
.program-pill:hover { transform: translateY(-2px); background: var(--cream); }
.program-pill[aria-expanded="true"] { background: var(--cream-soft); }

.programs-details {
  position: relative;
  z-index: 2;
  flex-basis: 100%;
  padding: 32px 0 0;
}
.program-detail {
  display: none;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 26px 30px;
  margin-top: 16px;
  max-width: 640px;
  margin-left: auto;
  animation: fadeSlide 0.35s ease;
}
.program-detail.active { display: block; }
.program-detail h3 { margin: 0 0 8px; color: var(--brown); font-family: var(--font-display); }
.program-detail p { margin: 0; line-height: 1.6; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Where we are ---------- */

.where { position: relative; background: var(--cream); padding: 110px 0; overflow: hidden; }
.where::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' result='t'/><feColorMatrix in='t' type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 3.2 -1.1'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  mix-blend-mode: soft-light;
  opacity: 0.16;
  pointer-events: none;
}
.where::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(31,70,51,0.5) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.08;
  pointer-events: none;
}
.where .section-title { text-transform: none; }
.where-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(clamp(10rem, 34vw, 28rem) - 4px);
  line-height: 1;
  color: var(--brown);
  opacity: 0.08;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.where > .container { position: relative; z-index: 1; }
.maps {
  display: flex;
  justify-content: center;
  gap: clamp(30px, 8vw, 110px);
  position: relative;
  padding-top: 30px;
}
.map-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(220px, 38vw);
}
.map-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(31,70,51,0.16) 0%, rgba(31,70,51,0) 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  border-radius: 50%;
}
.map-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  fill: var(--ink);
  transition: transform 0.4s ease, fill 0.4s ease;
}
.map-label {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--brown);
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
  margin: 0;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.map-item:hover .map-svg,
.map-item.is-active .map-svg {
  transform: scale(1.06);
  fill: var(--brown);
}
.map-item:hover .map-label,
.map-item.is-active .map-label {
  opacity: 0;
}

/* ---------- Impact / testimonials ---------- */

.impact {
  position: relative;
  padding: 110px 0 60px;
  overflow: hidden;
  color: var(--cream);
}
.impact .eyebrow { color: var(--cream); }
.impact .ghost-text { color: rgba(255,255,255,0.16); }
.world-map-bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/img/world-map.jpg");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
  mix-blend-mode: multiply;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.impact .container {
  position: relative;
  z-index: 1;
  padding-left: calc(clamp(18px, 4vw, 44px) - 25px);
}
.impact-intro {
  margin-bottom: calc(60px + 1cm);
  text-align: left;
}
.impact-intro .section-title { text-transform: none; }
.impact-intro .counter { display: inline-block; min-width: 1.4em; text-align: right; }

.impact-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 70px;
}
.impact-row.reverse { grid-template-columns: 1.15fr 1fr; }
.impact-row.reverse .ghost-text { order: 2; text-align: left; }

.ghost-text {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.92;
  color: rgba(255,255,255,0.18);
  margin: 0;
  text-align: right;
}

.quote-card {
  background: var(--cream-soft);
  color: var(--ink);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 30px 60px rgba(0,0,0,0.28);
}
.quote-card p {
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 18px;
}
.quote-card footer {
  font-weight: 700;
  color: var(--brown);
  font-style: normal;
}
.quote-card-text { padding: 34px; flex: 1 1 60%; display: flex; flex-direction: column; justify-content: center; }
.quote-photo {
  flex: 1 1 40%;
  min-width: 140px;
  width: 100%;
  object-fit: cover;
  object-position: top center;
}
.quote-card.alt { flex-direction: row; }

/* ---------- Testimonials phone mockup ---------- */

.impact-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 80px;
  padding-bottom: 50px;
}
.impact-side { order: 2; }
.impact-side .ghost-text { text-align: left; }

.phone {
  width: min(360px, 88vw);
  padding: 14px;
  border-radius: 58px;
  background: linear-gradient(160deg, #2c2c2e 0%, #121212 45%, #050505 100%);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.35),
    inset 0 0 0 1.5px rgba(255,255,255,0.08);
  margin: 0 auto;
}
.phone-screen {
  position: relative;
  height: 620px;
  border-radius: 45px;
  background: linear-gradient(180deg, #f3eee8 0%, #faf8f5 45%, #f4f0eb 100%);
  padding: 72px 28px 26px;
  display: flex;
  flex-direction: column;
  color: #3a302a;
  overflow: hidden;
}
.phone-island {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 32px;
  border-radius: 20px;
  background: #000;
}
.t-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 30px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7b6f66;
}
.t-label span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brown);
  opacity: 0.75;
}
.t-track {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}
.t-slide {
  grid-area: 1 / 1;
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(14px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
}
.t-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s;
}
.t-quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: 0.6;
  height: 30px;
  color: var(--brown);
}
.t-text { margin: 18px 0 10px; min-height: 0; }
.t-text p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.62;
  color: #3a302a;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  overflow: hidden;
}
.t-slide.is-expanded .t-text {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
}
.t-slide.is-expanded .t-text p {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.t-more {
  align-self: flex-start;
  margin: 0 0 18px;
  padding: 6px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.t-more:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; border-radius: 4px; }
.t-more[hidden] { display: none; }
.t-author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.t-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0,0,0,0.15);
}
.t-author-info { display: flex; flex-direction: column; gap: 4px; }
.t-author-info strong { font-size: 1rem; color: #1f1915; }
.t-stars { display: flex; gap: 2px; }
.t-stars svg { width: 15px; height: 15px; fill: var(--brown); }
.t-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
}
.t-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.t-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d6cec6;
  transition: width 0.3s ease, background 0.3s ease;
}
.t-dot.is-active::before { width: 30px; background: var(--brown); }
.t-dot:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  .t-slide, .t-slide.is-active { transition: none; transform: none; }
}

/* ---------- Help ---------- */

.help { position: relative; padding: 110px 0 80px; overflow: hidden; }
.help-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: blur(7px);
  transform: scale(1.08);
  pointer-events: none;
  z-index: 0;
}
.help > .container { position: relative; z-index: 1; }
.help > .container { padding-left: clamp(24px, 5.5vw, 64px); text-align: center; }
.help-title { max-width: 18ch; margin-left: auto; margin-right: auto; text-transform: none; color: var(--white); }

.browser {
  margin: 56px auto 0;
  max-width: 980px;
  background: rgba(28,26,30,0.62);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.28);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 16px 26px;
  border-bottom: 1.5px solid rgba(255,255,255,0.12);
}
.browser-dots { display: flex; gap: 9px; flex: none; width: 57px; }
/* mirror the dots on the right so the address pill sits on the true center */
.browser-bar::after { content: ""; flex: none; width: 57px; }
.browser-dots i { width: 13px; height: 13px; border-radius: 50%; background: #ff5f57; }
.browser-dots i:nth-child(2) { background: #febc2e; }
.browser-dots i:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1;
  justify-content: center;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.95rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-url svg { width: 16px; height: 16px; flex: none; fill: none; stroke: rgba(255,255,255,0.8); stroke-width: 2.2; stroke-linecap: round; }
.browser-body {
  padding: 44px 56px 50px;
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.85;
}
.browser-body p { margin: 0 0 22px; }
.browser-body p:last-child { margin-bottom: 0; }
.browser-body strong { color: #fff; font-weight: 600; }

.help-cta {
  margin-top: 40px;
  background: var(--white);
  color: var(--brown);
  box-shadow: 0 16px 34px rgba(0,0,0,0.25);
}
.help-cta:hover { background: var(--cream-soft); transform: translateY(-2px); }

/* ---------- Olive textured surface ---------- */

.purpose, .impact {
  background-color: #3b3211;
  background-image:
    radial-gradient(ellipse 62% 11% at 16% 56%, rgba(238,196,82,0.95), transparent 72%),
    radial-gradient(ellipse 85% 20% at 6% 64%, rgba(214,170,58,0.65), transparent 75%),
    radial-gradient(ellipse 48% 9% at 36% 80%, rgba(226,182,66,0.6), transparent 75%),
    radial-gradient(ellipse 30% 22% at 96% 62%, rgba(190,150,50,0.3), transparent 75%),
    radial-gradient(ellipse 60% 45% at 85% 15%, rgba(92,78,26,0.55), transparent 75%),
    linear-gradient(165deg, #3d3412 0%, #4a3e15 50%, #382f0f 100%);
}
.purpose::before,
.impact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' result='t'/><feColorMatrix in='t' type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 3.2 -1.1'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.55;
  pointer-events: none;
}
.purpose .section-title,
.impact .section-title { color: var(--cream); }

/* ---------- Rounded section blocks ---------- */

.stacked-sections { background: var(--white); }
.mission, .purpose, .programs, .impact, .help {
  border-radius: 60px;
  margin-top: 0.05cm;
}

/* ---------- Inner page title ---------- */

.program-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brown);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 48px;
}

/* ---------- Inner pages: back link + green textured boxes ---------- */

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 10px 18px;
  border: 1.5px solid var(--brown);
  border-radius: 999px;
  color: var(--brown);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.page-back:hover { background: var(--brown); color: var(--white); }
.page-back svg { width: 18px; height: 18px; }

.program-article .program-text ul li,
.program-article .pix-card,
.program-article .program-photos .photo-featured {
  background-color: #3b3211;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='1 0 0 0 0  1 0 0 0 0  1 0 0 0 0  0 0 0 0 0.16'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>"),
    radial-gradient(ellipse 70% 40% at 12% 70%, rgba(238,196,82,0.55), transparent 72%),
    linear-gradient(165deg, #3d3412 0%, #4a3e15 50%, #382f0f 100%);
  color: var(--white);
}
.program-article .pix-card-label,
.program-article .pix-card-hint,
.program-article .pix-card-value { color: var(--white); }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  background: #202020;
  border-radius: 60px 60px 0 0;
  margin-top: 0.05cm;
  padding: 64px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 80px;
  align-items: start;
  justify-content: start;
}
.footer-col h4 {
  font-family: var(--font-display);
  color: var(--cream);
  text-transform: uppercase;
  font-size: 1rem;
  margin: 0 0 10px;
}
.footer-col p { margin: 4px 0; font-size: 0.92rem; color: var(--cream); }
.footer-col a:hover { color: var(--brown); }
.footer-contact-line { display: flex; align-items: center; gap: 8px; }
.footer-contact-line a { padding: 9px 0; display: inline-block; }
.footer-icon { flex-shrink: 0; color: var(--cream); }
.footer-bottom {
  text-align: left;
  font-style: italic;
  color: var(--cream);
}
.footer-copy, .footer-credit { margin: 3px 0; font-size: 0.88rem; }
@media (min-width: 981px) {
  .footer-bottom { order: 2; text-align: center; align-self: center; }
  .footer-address { order: 3; text-align: right; }
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--cream);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 60;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--brown-dark); }

/* ---------- WhatsApp float ---------- */

.whatsapp-float {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  z-index: 60;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.3); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ---------- Justified body copy ---------- */

.mission .mission-copy,
.purpose .purpose-copy,
.browser .browser-body p,
.phone .t-text p,
.program-article .program-text p,
.program-article .program-text li {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.purpose .purpose-copy,
.browser .browser-body p { text-align-last: center; }

@media (max-width: 980px) {
  .mission-grid { grid-template-columns: 1fr; gap: 48px; }
  .mission-image { order: -1; }
  .mission-image img { aspect-ratio: 16/10; }

  .gallery { grid-template-columns: repeat(2, 1fr); }

  .programs-grid { align-items: center; text-align: center; }
  .programs-heading { align-items: flex-start; text-align: left; }
  .programs-list { align-items: center; }

  .impact-row, .impact-row.reverse {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .impact-row.reverse .ghost-text { order: 0; }
  .ghost-text { text-align: left; font-size: clamp(2rem, 10vw, 3rem); }
  .quote-card, .quote-card.alt { flex-direction: column; }
  .quote-photo { width: 100%; height: 220px; }

  .impact-layout { grid-template-columns: 1fr; gap: 40px; }
  .phone-screen { height: 600px; padding: 64px 22px 22px; }
  .t-text p { font-size: 0.93rem; line-height: 1.58; -webkit-line-clamp: 10; }


  .footer-grid { grid-template-columns: 1fr; text-align: left; gap: 28px; }
}

@media (max-width: 640px) {
  .hero-title {
    max-width: none;
    margin-top: 200px;
    margin-bottom: 0;
    font-size: calc(clamp(2.6rem, 8vw, 7.2rem) - 30px + 24px);
  }
  .hero-quote { white-space: normal; margin-top: 4px; margin-bottom: 4px; font-size: calc(clamp(0.8rem, 1.65vw, 1.5rem) + 5px); }
  .mobile-break { display: block; }
  .hero-gradient {
    background: linear-gradient(to top,
      rgba(15,36,27,0.97) 0%,
      rgba(15,36,27,0.85) 24%,
      rgba(15,36,27,0.5) 44%,
      rgba(15,36,27,0.15) 58%,
      rgba(15,36,27,0) 68%);
  }
  .hero-bg img { height: calc(100% + 2cm); transform: translateY(-2cm); }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: calc(6px + 1cm); }
  .mission, .purpose, .where, .impact, .help { padding: 72px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .maps { flex-direction: column; align-items: center; gap: 56px; }
  .map-item { width: min(240px, 60vw); }
  .programs { min-height: 560px; }
  .section-title.huge { font-size: calc(clamp(2.6rem, 16vw, 4rem) + 20px); }
  .purpose .section-title { font-size: 30px; }
  .programs-grid { gap: 40px; }

  .hero-content.container,
  .mission-grid.container,
  .impact .container,
  .help > .container {
    padding-left: 24px;
  }
  .mission, .purpose, .programs, .impact, .help { border-radius: 40px; }
  .site-footer { border-radius: 40px 40px 0 0; }
  .hero { border-radius: 0 0 40px 40px; }

  .browser { margin-top: 36px; border-radius: 24px; }
  .browser-bar { gap: 14px; padding: 12px 14px; }
  .browser-dots { gap: 6px; width: 42px; }
  .browser-bar::after { width: 42px; }
  .browser-dots i { width: 10px; height: 10px; }
  .browser-url { padding: 7px 12px; font-size: 0.82rem; gap: 8px; }
  .browser-body { padding: 26px 20px 30px; font-size: 0.98rem; line-height: 1.75; }

  /* ---- Mobile: center everything ---- */
  .mission .mission-copy,
  .program-article .program-text p { text-align-last: center; }
  .hero-content { text-align: center; }
  .hero-title, .hero-quote { margin-left: auto; margin-right: auto; }
  .hero-actions { align-items: center; }
  .hero-actions .btn { width: 220px; justify-content: center; }
  .hero-actions .btn-outline-light:not(.btn-menu) {
    background: var(--white);
    border-color: var(--white);
    color: var(--brown);
  }
  .hero-actions .btn-menu {
    background: transparent;
    border-color: rgba(255,255,255,0.7);
    color: var(--white);
  }

  .mission-text { text-align: center; }
  .mission-copy { margin-left: auto; margin-right: auto; }
  .pill-link-text { text-align: left; }

  .programs-heading { align-items: center; text-align: center; }

  .impact-intro { text-align: center; margin-bottom: 60px; }
  .impact-layout { justify-items: center; }
  .impact-side .ghost-text,
  .ghost-text { text-align: center; }

  .footer-grid { text-align: center; justify-items: center; }
  .footer-contact-line { justify-content: center; }
  .footer-bottom { text-align: center; }

  .program-article { text-align: center; }
  .program-article .program-title { margin-left: auto; margin-right: auto; }
  .program-article .program-closing { text-align: center; }
  .program-article .program-text ul li { text-align: justify; text-align-last: center; }
  .program-article .pix-card { flex-direction: column; justify-content: center; text-align: center; }
  .program-article .pix-card-info { align-items: center; }
  .program-article .pix-card-hint { margin: 0 auto; }
  .program-article .program-avatars { justify-content: center; }
}
