/**
 * Homepage Phase 2 — visual refinement.
 * Warm, premium NGO aesthetic. Mobile-first, accessible.
 */

.hp-page {
  --hp-orange: #ff8b28;
  --hp-orange-deep: #c45f10;
  --hp-orange-soft: #fff0e3;
  --hp-yellow: #ffc221;
  --hp-ink: #1a1a1a;
  --hp-ink-soft: #2d2a26;
  --hp-muted: #5c5c5c;
  --hp-muted-light: #7a7a7a;
  --hp-surface: #fffaf4;
  --hp-surface-2: #fff5e8;
  --hp-white: #fff;
  --hp-line: rgba(26, 26, 26, 0.08);
  --hp-line-strong: rgba(26, 26, 26, 0.12);
  --hp-radius: 1.125rem;
  --hp-radius-lg: 1.5rem;
  --hp-shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.06);
  --hp-shadow-md: 0 8px 32px rgba(26, 26, 26, 0.08);
  --hp-shadow-lg: 0 16px 48px rgba(26, 26, 26, 0.1);
  --hp-space-section: clamp(4rem, 9vw, 7rem);
  --hp-space-block: clamp(1.5rem, 3vw, 2.5rem);
  --hp-measure: 38rem;
  --hp-measure-narrow: 32rem;
  --hp-measure-wide: 44rem;
  color: var(--hp-ink);
  background: var(--hp-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.hp-page a:focus-visible,
.hp-page button:focus-visible {
  outline: 3px solid var(--hp-orange);
  outline-offset: 3px;
}

/* Brand decorative characters (restored from legacy landing) */
.hp-deco {
  position: relative;
  overflow: visible;
}

.hp-deco > .container {
  position: relative;
  z-index: 2;
}

.hp-deco__art {
  display: none;
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate3d(0, 18px, 0) rotate(-6deg);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-deco__art img {
  display: block;
  width: 100%;
  height: auto;
}

.hp-deco.is-inview .hp-deco__art {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.hp-deco__art--pencil {
  top: 0;
  right: 0;
  width: clamp(7rem, 14vw, 11rem);
}

.hp-deco__art--eraser {
  top: 0.5rem;
  right: clamp(0.5rem, 4vw, 3rem);
  width: clamp(4.5rem, 9vw, 7.5rem);
  transform-origin: 60% 70%;
}

.hp-deco.is-inview .hp-deco__art--eraser {
  animation: hp-deco-dobble 10s ease-in-out 0.45s infinite;
}

@keyframes hp-deco-dobble {
  0%,
  12%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  2% {
    transform: translate3d(0, 0, 0) rotate(-12deg);
  }
  4% {
    transform: translate3d(0, 0, 0) rotate(12deg);
  }
  6% {
    transform: translate3d(0, 0, 0) rotate(-7deg);
  }
  8% {
    transform: translate3d(0, 0, 0) rotate(7deg);
  }
  10% {
    transform: translate3d(0, 0, 0) rotate(-3deg);
  }
}

@media (min-width: 992px) {
  .hp-deco__art {
    display: block;
  }

  .hp-programs .hp-section__header,
  .hp-why .hp-section__header {
    padding-right: clamp(5rem, 12vw, 9rem);
  }
}

/* Match theme container width across all homepage sections (incl. hero) */
.hp-page .container,
.hp-hero .container {
  width: 100% !important;
  max-width: 1170px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* ── Sections ── */
.hp-section {
  padding: var(--hp-space-section) 0;
}

.hp-section__eyebrow {
  margin: 0 0 0.65rem;
  font-family: Poppins, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hp-orange-deep);
}

.hp-section__title {
  margin: 0 0 1rem;
  font-family: Fredoka, sans-serif;
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--hp-ink);
}

.hp-section__intro {
  margin: 0;
  max-width: var(--hp-measure);
  font-family: Poppins, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.7;
  font-weight: 400;
  color: var(--hp-muted);
}

.hp-section__header {
  margin-bottom: var(--hp-space-block);
}

.hp-section__header--center {
  text-align: center;
}

.hp-section__header--center .hp-section__intro {
  margin-left: auto;
  margin-right: auto;
}

.hp-section__header--row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Shared card ── */
.hp-card {
  background: var(--hp-white);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow-sm);
}

/* ── Prose ── */
.hp-prose {
  font-family: Poppins, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  font-weight: 400;
  color: var(--hp-muted);
  max-width: 65ch;
}

.hp-prose p {
  margin: 0 0 1rem;
}

.hp-prose p:last-child {
  margin-bottom: 0;
}

.hp-prose strong {
  color: var(--hp-ink);
  font-weight: 600;
}

.hp-page .hp-prose h2,
.hp-page .hp-prose h3,
.hp-page .hp-prose h4 {
  margin: 0 0 0.75rem;
  font-family: Fredoka, sans-serif;
  line-height: 1.3;
  color: var(--hp-ink);
}

.hp-page figure {
  margin: 0;
}

/* ── Buttons ── */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  font-family: Fredoka, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hp-btn--primary {
  background: var(--hp-orange);
  color: var(--hp-white) !important;
  border: 2px solid var(--hp-orange);
}

.hp-btn--primary:hover,
.hp-btn--primary:focus {
  background: var(--hp-orange-deep);
  border-color: var(--hp-orange-deep);
  color: var(--hp-white) !important;
}

.hp-btn--secondary {
  background: transparent;
  color: var(--hp-ink) !important;
  border: 2px solid var(--hp-ink);
}

.hp-btn--secondary:hover,
.hp-btn--secondary:focus {
  background: var(--hp-ink);
  color: var(--hp-white) !important;
}

.hp-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
  font-family: Poppins, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hp-orange-deep) !important;
  text-decoration: none !important;
}

.hp-text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.hp-text-link:hover::after,
.hp-text-link:focus::after {
  transform: translateX(3px);
}

.hp-text-link:hover,
.hp-text-link:focus {
  color: var(--hp-ink) !important;
}

/* ── Hero ── */
.hp-hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex;
  align-items: center;
  color: var(--hp-white);
  background: var(--hp-ink-soft);
}

.hp-hero__media,
.hp-hero__media--fallback {
  position: absolute;
  inset: 0;
}

.hp-hero__media--fallback {
  background: linear-gradient(145deg, #e8a060 0%, #c45f10 50%, #5c3d20 100%);
}

.hp-hero__media--fallback .hp-hero__scrim {
  background: linear-gradient(
    105deg,
    rgba(26, 26, 26, 0.35) 0%,
    rgba(26, 26, 26, 0.15) 45%,
    rgba(26, 26, 26, 0.05) 100%
  );
}

.hp-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hp-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(16, 14, 12, 0.78) 0%,
    rgba(16, 14, 12, 0.52) 38%,
    rgba(16, 14, 12, 0.26) 68%,
    rgba(16, 14, 12, 0.1) 100%
  );
}

.hp-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: clamp(5.5rem, 10vw, 7rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hp-hero__content {
  max-width: min(40rem, 100%);
}

.hp-hero__eyebrow {
  margin: 0 0 1rem;
  font-family: Poppins, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.hp-hero__title {
  margin: 0 0 1.25rem;
  font-family: Fredoka, sans-serif;
  font-size: clamp(2.1rem, 5.5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25);
}

.hp-hero__byline {
  margin: 0 0 2rem;
  font-family: Poppins, sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.94);
  max-width: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.hp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hp-btn--hero-primary {
  background: var(--hp-white);
  border: 2px solid var(--hp-white);
  color: var(--hp-ink) !important;
  box-shadow: var(--hp-shadow-md);
  min-width: 9rem;
}

.hp-btn--hero-primary:hover,
.hp-btn--hero-primary:focus {
  background: var(--hp-yellow);
  border-color: var(--hp-yellow);
  color: var(--hp-ink) !important;
  box-shadow: var(--hp-shadow-lg);
}

.hp-btn--hero-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: var(--hp-white) !important;
  backdrop-filter: blur(4px);
}

.hp-btn--hero-secondary:hover,
.hp-btn--hero-secondary:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--hp-white);
  color: var(--hp-white) !important;
}

/* ── Impact ── */
.hp-impact {
  background: var(--hp-surface);
  border-top: 1px solid var(--hp-line);
  border-bottom: 1px solid var(--hp-line);
}

.hp-impact__title {
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.hp-impact .hp-section__intro {
  max-width: 36rem;
}

.hp-impact__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.hp-impact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  height: 100%;
}

.hp-impact__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--hp-orange-soft);
}

.hp-impact__icon {
  width: 1.65rem;
  height: 1.65rem;
  opacity: 0.9;
}

/* Numeric stats */
.hp-impact__item--stat .hp-impact__value {
  margin: 0;
  font-family: Fredoka, sans-serif;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--hp-ink);
}

.hp-impact__item--stat .hp-impact__value::after {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin: 0.65rem auto 0;
  background: var(--hp-orange);
  border-radius: 2px;
}

.hp-impact__item--stat .hp-impact__label {
  margin: 0.85rem 0 0;
  font-family: Poppins, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hp-ink);
}

/* Narrative / framework cards (legacy long titles) */
.hp-impact__item--card {
  align-items: flex-start;
  text-align: left;
  padding: 1.35rem 1.25rem;
}

.hp-impact__item--card .hp-impact__icon-wrap {
  margin-bottom: 0.85rem;
}

.hp-impact__card-title {
  margin: 0 0 0.5rem;
  font-family: Fredoka, sans-serif;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--hp-ink);
  word-break: break-word;
}

.hp-impact__card-text {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-impact__context {
  margin: 0.5rem 0 0;
  font-family: Poppins, sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--hp-muted-light);
}

/* ── Programs ── */
.hp-programs {
  background: var(--hp-white);
}

.hp-programs__grid {
  display: grid;
  gap: 1.5rem;
}

.hp-program {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hp-program:hover {
  box-shadow: var(--hp-shadow-md);
}

.hp-program__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.hp-program__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--hp-orange-soft);
  font-family: Fredoka, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hp-orange-deep);
}

.hp-program__icon {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.9;
}

.hp-program__media {
  display: block;
  border-radius: calc(var(--hp-radius) - 0.25rem);
  overflow: hidden;
  margin-bottom: 1.25rem;
  aspect-ratio: 16 / 10;
  background: var(--hp-surface-2);
}

.hp-program__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.hp-program__media:hover img,
.hp-program__media:focus img {
  transform: scale(1.03);
}

.hp-program__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hp-program__title {
  margin: 0 0 0.65rem;
  font-family: Fredoka, sans-serif;
  font-size: 1.25rem;
  line-height: 1.3;
}

.hp-program__title a {
  color: inherit !important;
  text-decoration: none !important;
}

.hp-program__title a:hover,
.hp-program__title a:focus {
  color: var(--hp-orange-deep) !important;
}

.hp-program__byline {
  margin: 0 0 auto;
  padding-bottom: 0.5rem;
  font-family: Poppins, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--hp-muted);
}

/* ── Story ── */
.hp-story {
  background: var(--hp-surface);
}

.hp-story__grid {
  display: grid;
  gap: var(--hp-space-block);
  align-items: stretch;
}

.hp-story__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 4 / 3;
  border-radius: var(--hp-radius-lg);
  box-shadow: var(--hp-shadow-md);
  background-color: var(--hp-surface-2);
}

.hp-story__media img,
.hp-story__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  border-radius: var(--hp-radius-lg);
  background-color: var(--hp-surface-2);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
}

.hp-story__content {
  max-width: var(--hp-measure);
  display: flex;
  flex-direction: column;
}

.hp-story__quote {
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border: 0;
  border-left: 4px solid var(--hp-orange);
  background: var(--hp-white);
  border-radius: 0 var(--hp-radius) var(--hp-radius) 0;
  box-shadow: var(--hp-shadow-sm);
  position: relative;
}

.hp-story__quote::before {
  content: "\201C";
  position: absolute;
  top: -0.15rem;
  left: 1rem;
  font-family: Fredoka, sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--hp-orange-soft);
  pointer-events: none;
}

.hp-story__quote-text {
  margin: 0 0 1rem;
  padding-top: 1.5rem;
  font-family: Fredoka, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
}

.hp-story__quote-footer cite {
  font-family: Poppins, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hp-ink);
}

.hp-story__meta {
  font-weight: 400;
  color: var(--hp-muted);
}

.hp-story__body {
  margin-bottom: 1.25rem;
}

.hp-story__outcome {
  margin: 0 0 0.5rem;
  padding: 1rem 1.25rem;
  font-family: Poppins, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 500;
  color: var(--hp-ink);
  background: var(--hp-orange-soft);
  border-radius: var(--hp-radius);
}

.hp-story__outcome-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-orange-deep);
}

.hp-story__cta {
  margin-top: 1rem;
}

/* ── Why / Problem statement ── */
.hp-why {
  background: var(--hp-white);
}

.hp-why__header {
  margin-bottom: var(--hp-space-block);
}

.hp-why__grid {
  display: grid;
  gap: var(--hp-space-block);
  align-items: start;
}

.hp-why__stages {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  counter-reset: hp-stage;
  max-width: 68rem;
}

.hp-why__stage {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  height: auto;
  flex: 1 1 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hp-why__stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hp-why__stage-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--hp-orange-soft);
  font-family: Fredoka, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hp-orange-deep);
}

.hp-why__stage-icon {
  width: 2.25rem;
  height: 2.25rem;
  opacity: 0.85;
}

.hp-why__stage-title {
  margin: 0 0 0.65rem;
  font-family: Fredoka, sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--hp-ink);
}

.hp-why__stage-text {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--hp-muted);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-why__media img {
  width: 100%;
  border-radius: var(--hp-radius-lg);
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--hp-shadow-md);
}

/* ── Voices / Testimonials ── */
.hp-voices {
  background: var(--hp-surface);
}

.hp-voices__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
}

.hp-voice {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  height: 100%;
}

.hp-voice__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.hp-voice__mark {
  font-family: Fredoka, sans-serif;
  font-size: 2.5rem;
  line-height: 0.8;
  color: var(--hp-orange);
  opacity: 0.45;
}

.hp-voice__type {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hp-orange-deep);
  text-align: right;
}

.hp-voice__quote {
  flex: 1;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  position: relative;
}

.hp-voice__quote p {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--hp-ink);
}

.hp-voice__caption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--hp-line);
}

.hp-voice__photo,
.hp-voice__avatar {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
}

.hp-voice__photo {
  object-fit: cover;
}

.hp-voice__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hp-orange-soft);
  font-family: Fredoka, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hp-orange-deep);
}

.hp-voice__name {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.35;
}

.hp-voice__role {
  margin: 0.2rem 0 0;
  font-family: Poppins, sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--hp-muted);
}

/* ── Partners ── */
.hp-partners {
  background: var(--hp-white);
}

.hp-partners__intro {
  display: grid;
  gap: var(--hp-space-block);
  align-items: center;
  margin-bottom: var(--hp-space-block);
}

.hp-partners__copy .hp-btn {
  margin-top: 1.5rem;
}

.hp-partners__copy .hp-section__intro {
  max-width: 52ch;
}

.hp-partners__map {
  justify-content: center;
  align-items: center;
}

.hp-partners__map img {
  max-width: min(100%, 480px);
  width: 100%;
  height: auto;
  opacity: 0.95;
}

.hp-partners__trust {
  padding-top: var(--hp-space-block);
  border-top: 1px solid var(--hp-line);
}

.hp-partners__logos-label {
  margin: 0 0 1.5rem;
  font-family: Poppins, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hp-muted);
  text-align: center;
}

.hp-partners__swiper {
  overflow: hidden;
  padding: 0.35rem 0 0.75rem;
}

.hp-partners__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}

.hp-partners__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none !important;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0.25rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.hp-partners__logo-link--static {
  cursor: default;
}

.hp-partners__logo-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 72px;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.9;
  filter: grayscale(1);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}

.hp-partners__logo-link:hover .hp-partners__logo-img,
.hp-partners__logo-link:focus-visible .hp-partners__logo-img {
  opacity: 1;
  transform: scale(1.04);
  filter: grayscale(0);
}

/* ── Updates ── */
.hp-updates {
  background: var(--hp-surface);
}

.hp-updates__grid {
  display: grid;
  gap: 1.5rem;
}

.hp-update {
  border-radius: var(--hp-radius);
}

.hp-update__link {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
  height: 100%;
  border-radius: inherit;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hp-update__link:hover,
.hp-update__link:focus-visible {
  transform: translateY(-4px);
}

.hp-update__link:hover .hp-update__title,
.hp-update__link:focus-visible .hp-update__title {
  color: var(--hp-orange-deep) !important;
}

.hp-update__media {
  display: block;
  border-radius: var(--hp-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--hp-surface-2);
  margin-bottom: 1rem;
  transform: translateZ(0);
}

.hp-update__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  backface-visibility: hidden;
  will-change: transform;
}

.hp-update__link:hover .hp-update__media img,
.hp-update__link:focus-visible .hp-update__media img {
  transform: scale(1.045);
}

.hp-update__title {
  display: block;
  font-family: Fredoka, sans-serif;
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  transition: color 0.35s ease;
}

.hp-update__date {
  display: block;
  font-family: Poppins, sans-serif;
  font-size: 0.8rem;
  color: var(--hp-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.hp-update__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hp-update__tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--hp-white);
  font-family: Poppins, sans-serif;
  font-size: 0.72rem;
  color: var(--hp-muted);
  border: 1px solid var(--hp-line);
}

/* ── Transparency ── */
.hp-transparency__panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--hp-radius-lg);
  background: var(--hp-surface);
  border: 1px solid var(--hp-line);
}

.hp-transparency__copy .hp-section__intro {
  max-width: 52ch;
}

/* ── Final CTA ── */
.hp-cta {
  padding-bottom: calc(var(--hp-space-section) + 1rem);
}

.hp-cta__panel {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: var(--hp-radius-lg);
  background: linear-gradient(135deg, var(--hp-ink) 0%, #2d2419 100%);
  color: var(--hp-white);
  box-shadow: var(--hp-shadow-lg);
}

.hp-cta__media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.hp-cta__content {
  padding: clamp(2rem, 5vw, 3.5rem);
}

.hp-cta__eyebrow {
  margin: 0 0 0.75rem;
  font-family: Poppins, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hp-yellow);
}

.hp-cta .hp-section__title {
  color: var(--hp-white);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
}

.hp-cta .hp-section__intro {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  max-width: 42ch;
}

.hp-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hp-btn--cta-primary {
  background: var(--hp-orange);
  border: 2px solid var(--hp-orange);
  color: var(--hp-white) !important;
  min-width: 9rem;
}

.hp-btn--cta-primary:hover,
.hp-btn--cta-primary:focus {
  background: var(--hp-yellow);
  border-color: var(--hp-yellow);
  color: var(--hp-ink) !important;
}

.hp-btn--cta-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: var(--hp-white) !important;
}

.hp-btn--cta-secondary:hover,
.hp-btn--cta-secondary:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--hp-white);
  color: var(--hp-white) !important;
}

/* ── Navigation (homepage frosted glass only; layout is in foundation.css) ── */
body.home .headcont,
body.page-template-landing-page .headcont {
  padding-top: clamp(0.75rem, 2vw, 1.25rem);
}

body.home .headcont .headstart,
body.page-template-landing-page .headcont .headstart {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(26, 26, 26, 0.08);
}

/* ── Tablet ── */
@media (min-width: 768px) {
  .hp-impact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .hp-programs__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .hp-story__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: stretch;
  }

  .hp-story__media {
    max-width: none;
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
  }

  .hp-story__media img,
  .hp-story__placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: center 20%;
  }

  .hp-why__stages {
    gap: 1.25rem;
  }

  .hp-why__stage {
    flex: 1 1 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
  }

  .hp-why__grid:not(.hp-why__grid--stages) {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }

  .hp-partners__intro {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
    gap: 2.5rem;
    align-items: center;
  }

  .hp-partners__map img {
    max-width: min(100%, 520px);
  }

  .hp-updates__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hp-transparency__panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hp-cta__panel {
    grid-template-columns: 1fr 1fr;
  }

  .hp-cta__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  .hp-hero__content {
    max-width: 42rem;
  }

  .hp-impact__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hp-why__stages {
    gap: 1.35rem;
  }

  .hp-why__stage {
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
  }

  .hp-partners__map img {
    max-width: min(100%, 560px);
  }

  .hp-partners__logo-img {
    height: 80px;
  }

  .hp-voices__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Small mobile ── */
@media (max-width: 479px) {
  .hp-hero__actions {
    flex-direction: column;
  }

  .hp-hero__actions .hp-btn {
    width: 100%;
  }

  .hp-cta__actions {
    flex-direction: column;
  }

  .hp-cta__actions .hp-btn {
    width: 100%;
  }

  .hp-impact__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-btn,
  .hp-program__media img,
  .hp-update__media img,
  .hp-update__link,
  .hp-partners__logo-img,
  .hp-program,
  .hp-text-link::after,
  .hp-deco__art {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }

  .hp-deco.is-inview .hp-deco__art {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .hp-partners__logo-img {
    filter: grayscale(1);
  }
}
