/* ============================================================================
   home.css — SwachhataPukare Foundation home page only.
   Scoped to body.page-home. Tokens are reused from tokens.css; the few
   home-only tokens below live on .page-home and change nothing elsewhere.
   ========================================================================== */

.page-home {
  /* home-only palette */
  --h-paper: #F4F8FD;          /* page base, replaces pure white */
  --h-paper-deep: #E8F1FA;     /* reserved photo / media beds */
  --h-clay: #4C97D4;           /* decorative fills, lines and shapes only */
  --h-sage-wash: #E6F0FA;
  --h-teal-wash: #E2EEF9;
  --h-rule: rgba(11, 46, 79, 0.14);
  --h-rule-soft: rgba(11, 46, 79, 0.08);
  --h-rule-light: rgba(255, 255, 255, 0.18);

  /* fluid type, home only */
  --h-h1: clamp(2.7rem, 1.35rem + 6vw, 5.4rem);
  --h-h2: clamp(1.95rem, 1.3rem + 3vw, 3.4rem);
  --h-h3: clamp(1.3rem, 1.12rem + 0.7vw, 1.7rem);
  --h-gap: clamp(2.5rem, 6vw, 5rem);

  background: var(--h-paper);
}

/* faint paper grain — fixed, decorative, never interactive */
.page-home main {
  position: relative;
  isolation: isolate;
}

.page-home main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ------------------------------------------------------------------ shared */
.page-home .h-section {
  padding-block: clamp(3.5rem, 9vw, 7.5rem);
}

.page-home .h-section--tight {
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
}

.page-home .h-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-family: var(--f-body);
  font-size: 0.76rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--c-teal-deep);
}

.page-home .h-eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  flex: none;
  background: var(--h-clay);
}

.page-home .h-eyebrow--light {
  color: var(--c-sage);
}

.page-home .h-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.page-home .h-head__title {
  margin-top: 0.4rem;
  font-size: var(--h-h2);
  line-height: 1.02;
}

.page-home .h-head__sub {
  max-width: 46ch;
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.65;
}

@media (min-width: 900px) {
  .page-home .h-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    align-items: end;
    justify-content: space-between;
    gap: 2.5rem;
  }
  .page-home .h-head > .h-link { justify-self: end; }
}

/* ----------------------------------------------------------------- buttons */
.page-home .h-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.55rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-full);
  overflow: hidden;
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--d-sm) var(--e-out), background var(--d-sm) var(--e-out),
    color var(--d-sm) var(--e-out), border-color var(--d-sm) var(--e-out);
}

/* soft water ripple on hover / focus */
.page-home .h-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.15);
  pointer-events: none;
  transition: transform 0.6s var(--e-out), opacity 0.45s var(--e-out);
}

.page-home .h-btn:hover::after,
.page-home .h-btn:focus-visible::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.1;
}

.page-home .h-btn:hover { transform: translateY(-1px); }
.page-home .h-btn:active { transform: translateY(0) scale(0.99); }

.page-home .h-btn--solid {
  background: var(--c-dark);
  border-color: var(--c-dark);
  color: var(--c-on-dark);
}

.page-home .h-btn--solid:hover {
  background: var(--c-teal-deep);
  border-color: var(--c-teal-deep);
  color: var(--c-on-dark);
}

.page-home .h-btn--outline {
  background: transparent;
  border-color: var(--c-dark);
  color: var(--c-dark);
}

.page-home .h-btn--outline:hover {
  background: var(--c-dark);
  color: var(--c-on-dark);
}

.page-home .h-arrow {
  flex: none;
  transition: transform var(--d-sm) var(--e-out);
}

.page-home .h-btn:hover .h-arrow,
.page-home .h-link:hover .h-arrow,
.page-home .h-work-item:hover .h-arrow,
.page-home .h-program__link:hover .h-arrow {
  transform: translateX(3px);
}

.page-home .h-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding-block: 0.35rem;
  color: var(--c-teal-deep);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: color var(--d-sm) var(--e-out);
}

.page-home .h-link:hover { color: var(--c-dark); }

/* -------------------------------------------------------------------- hero */
.page-home .h-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(620px, 92vh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 7vw, 6.5rem) clamp(2rem, 4vw, 3rem);
  background: #06192B;
}

.page-home .h-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.page-home .h-hero__slides {
  position: absolute;
  inset: 0;
}

.page-home .h-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.1s;
  transform: scale(1.04);
}

.page-home .h-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), transform 8s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.1s;
}

.page-home .h-hero__slide-bg {
  position: relative;
  width: 100%;
  height: 100%;
}

.page-home .h-hero__slide-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.1s;
}

.page-home .h-hero__slide-bg img.is-active,
.page-home .h-hero__slide-bg img:only-child {
  opacity: 1;
  visibility: visible;
}

/* Subtle left-side vignette only for text readability — photograph remains completely open and untouched */
.page-home .h-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(6, 18, 30, 0.68) 0%, rgba(6, 18, 30, 0.42) 36%, rgba(6, 18, 30, 0.08) 58%, transparent 75%);
  pointer-events: none;
}

.page-home .h-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

/* 2-Column Main Grid */
.page-home .h-hero__main-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (max-width: 991px) {
  .page-home .h-hero {
    min-height: auto;
    padding-block: 3.25rem 2.25rem;
  }
  .page-home .h-hero__overlay {
    background: linear-gradient(180deg, rgba(6, 18, 30, 0.72) 0%, rgba(6, 18, 30, 0.45) 50%, rgba(6, 18, 30, 0.65) 100%);
  }
  .page-home .h-hero__spotlight-wrap {
    justify-content: flex-start;
  }
  .page-home .h-hero__spotlight {
    max-width: 100%;
  }
}

@media (max-width: 639px) {
  .page-home .h-hero__spotlight-head {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  .page-home .h-hero-btn {
    width: 100%;
  }
}

@media (min-width: 992px) {
  .page-home .h-hero__main-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  }
}

/* Left Typography & Naturally Integrated Composition */
.page-home .h-hero__content {
  position: relative;
}

.page-home .h-hero__content::before {
  content: "";
  position: absolute;
  inset: -2.5rem -3rem -2rem -2.5rem;
  background: radial-gradient(ellipse at 25% 45%, rgba(6, 16, 26, 0.42) 0%, rgba(6, 16, 26, 0.12) 60%, transparent 85%);
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
  border-radius: var(--r-xl);
}

.page-home .h-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #CFE6F8;
  font-size: 0.78rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-home .h-hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-amber);
  box-shadow: 0 0 8px var(--c-amber);
  animation: pulse-dot 2.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.page-home .h-hero__title {
  color: #FFFFFF;
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 1.5rem + 4.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.38), 0 8px 26px rgba(4, 14, 24, 0.55);
}

.page-home .h-hero__lead {
  color: rgba(255, 255, 255, 0.94);
  margin-top: 1.25rem;
  max-width: 48ch;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.22rem);
  line-height: 1.62;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.42), 0 4px 18px rgba(4, 14, 24, 0.45);
}

.page-home .h-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(1.6rem, 3vw, 2.25rem);
}

.page-home .h-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.75rem 1.65rem;
  border-radius: var(--r-full);
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: all 0.25s var(--e-out);
}

.page-home .h-hero-btn--primary {
  background: var(--c-amber);
  border: 1px solid var(--c-amber);
  color: var(--c-dark);
  box-shadow: 0 4px 18px rgba(207, 230, 248, 0.3);
}

.page-home .h-hero-btn--primary:hover {
  background: #E5F3FD;
  border-color: #E5F3FD;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(207, 230, 248, 0.45);
}

.page-home .h-hero-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
}

.page-home .h-hero-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.page-home .h-hero__stats {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: clamp(1.8rem, 3.5vw, 2.6rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.page-home .h-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.page-home .h-hero__stat-num {
  font-family: var(--f-display);
  font-size: 1.35rem;
  color: #FFFFFF;
  line-height: 1;
}

.page-home .h-hero__stat-label {
  font-size: 0.78rem;
  color: #CFE6F8;
  opacity: 0.85;
}

.page-home .h-hero__stat-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.16);
}

/* Right Glassmorphic Spotlight Card */
.page-home .h-hero__spotlight-wrap {
  display: flex;
  justify-content: flex-end;
}

/* Right Photo Info Block — seamless edge fade & soft backdrop blur: no hard box borders or corners */
.page-home .h-hero__spotlight {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: clamp(1.4rem, 2.8vw, 2rem);
  border: none;
  box-shadow: none;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  transition: transform 0.35s var(--e-out);
}

.page-home .h-hero__spotlight::before {
  content: "";
  position: absolute;
  inset: -1.25rem;
  z-index: -1;
  border-radius: var(--r-2xl);
  background: radial-gradient(ellipse at 50% 50%, rgba(6, 20, 35, 0.62) 0%, rgba(6, 20, 35, 0.38) 55%, transparent 82%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 50%, transparent 84%);
  mask-image: radial-gradient(ellipse at 50% 50%, black 50%, transparent 84%);
  pointer-events: none;
}

.page-home .h-hero__spotlight:hover {
  transform: translateY(-2px);
}

.page-home .h-hero__spotlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.page-home .h-hero__spotlight-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-amber);
  background: rgba(207, 230, 248, 0.14);
  border: 1px solid rgba(207, 230, 248, 0.22);
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
}

.page-home .h-hero__spotlight-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.page-home .h-hero__spotlight-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.page-home .h-hero__spotlight-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-home .h-hero__spotlight-dot:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.2);
}

.page-home .h-hero__spotlight-dot.is-active {
  width: 18px;
  border-radius: var(--r-full);
  background: var(--c-amber);
  border-color: var(--c-amber);
  box-shadow: 0 0 8px rgba(207, 230, 248, 0.5);
}

.page-home .h-hero__spotlight-counter {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
}

.page-home .h-hero__spotlight-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.85rem);
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.page-home .h-hero__spotlight-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.page-home .h-hero__spotlight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .h-hero__spotlight-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--c-amber);
  font-size: 0.88rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: all 0.2s ease;
}

.page-home .h-hero__spotlight-link:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.page-home .h-hero__spotlight-arrows {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.page-home .h-hero__arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-home .h-hero__arrow-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.05);
}

/* Bottom Timeline Bar */
.page-home .h-hero__timeline-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .h-hero__timeline-label {
  display: none;
  font-size: 0.74rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .page-home .h-hero__timeline-label {
    display: block;
  }
}

.page-home .h-hero__timeline-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  flex: 1;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: none;
}

.page-home .h-hero__timeline-track::-webkit-scrollbar {
  display: none;
}

.page-home .h-hero__tab {
  background: transparent;
  border: none;
  padding: 0.4rem 0.2rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  opacity: 0.65;
  transition: opacity 0.25s ease;
  min-width: 110px;
}

.page-home .h-hero__tab:hover {
  opacity: 1;
}

.page-home .h-hero__tab.is-active {
  opacity: 1;
}

.page-home .h-hero__tab-num {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--c-amber);
  font-weight: var(--fw-bold);
}

.page-home .h-hero__tab-text {
  font-size: 0.82rem;
  font-weight: var(--fw-semibold);
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .h-hero__tab.is-active .h-hero__tab-text {
  color: #FFFFFF;
}

.page-home .h-hero__tab-progress {
  width: 100%;
  height: 3px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  display: block;
}

.page-home .h-hero__tab-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--c-amber);
  border-radius: var(--r-full);
}

.page-home .h-hero__tab.is-active .h-hero__tab-bar {
  width: 100%;
  transition: width 5s linear;
}

/* ------------------------------------------------------------------ impact */
.page-home .h-impact {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.25rem, 7vw, 5.75rem) clamp(3rem, 6vw, 5rem);
  background: var(--c-dark);
  color: var(--c-on-dark);
}

.page-home .h-impact__watermark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6%;
  width: 100%;
  height: 72%;
  color: var(--c-sage);
  opacity: 0.11;
  pointer-events: none;
}

.page-home .h-impact__inner {
  position: relative;
  z-index: 1;
}

.page-home .h-impact__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.page-home .h-impact__title {
  margin-top: 0.35rem;
  font-size: var(--h-h2);
  line-height: 1.02;
  color: var(--c-on-dark);
}

.page-home .h-impact__note {
  max-width: 44ch;
  color: var(--c-on-dark-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.page-home .h-impact__grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .h-impact__grid > li { min-width: 0; }

.page-home .h-impact__item {
  padding-block: 1.6rem;
  border-top: 1px solid var(--h-rule-light);
}

.page-home .h-impact__grid > li:first-child .h-impact__item { border-top: 0; padding-top: 0; }

.page-home .h-impact__num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 1.35rem + 2.4vw, 3.85rem);
  line-height: 0.95;
  color: var(--c-on-dark);
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.page-home .h-impact__count {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-home .h-impact__suffix {
  margin-left: 0.08em;
  font-family: var(--f-body);
  font-size: 0.38em;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  color: var(--c-sage);
  vertical-align: 0.12em;
  white-space: nowrap;
  display: inline-block;
  overflow-wrap: normal;
  word-break: normal;
}

.page-home .h-impact__label {
  margin-top: 0.7rem;
  max-width: 18ch;
  color: var(--c-on-dark-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .page-home .h-impact__head {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: end;
    gap: 2.5rem;
  }
  .page-home .h-impact__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-home .h-impact__item {
    padding: 0 clamp(0.75rem, 1.2vw, 1.5rem);
    border-top: 0;
    border-left: 1px solid var(--h-rule-light);
  }
  .page-home .h-impact__grid > li:first-child .h-impact__item { padding-left: 0; border-left: 0; }
  .page-home .h-impact__grid > li:last-child .h-impact__item { padding-right: 0; }
}

/* ------------------------------------------------------------------- story */
.page-home .h-story,
.page-home .h-work,
.page-home .h-partners {
  background: var(--h-paper);
}

.page-home .h-story__inner {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4.5rem);
}

.page-home .h-story__head {
  max-width: 34rem;
}

.page-home .h-story__title {
  margin-top: 0.45rem;
  font-size: var(--h-h2);
  line-height: 1.03;
}

.page-home .h-story__lead {
  max-width: 48ch;
  margin-top: 1rem;
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.page-home .h-steps {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-left: 2.25rem;
}

.page-home .h-steps__track,
.page-home .h-steps__progress {
  position: absolute;
  left: 0.5rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--c-line);
}

.page-home .h-steps__progress {
  left: calc(0.5rem - 0.5px);
  width: 2px;
  background: var(--c-teal);
  transform: scaleY(0.34);
  transform-origin: top center;
  transition: transform 0.55s var(--e-out);
}

.page-home .h-steps__list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .h-step { position: relative; }

.page-home .h-step__btn {
  position: relative;
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.5rem;
  width: 100%;
  padding: 1.15rem 0.25rem 1.15rem 0;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  text-align: left;
  color: var(--c-muted);
  transition: color var(--d-sm) var(--e-out);
}

.page-home .h-step__btn::before {
  content: "";
  position: absolute;
  left: -1.845rem;
  top: 1.62rem;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--c-line);
  border-radius: 50%;
  background: var(--h-paper);
  transition: background var(--d-sm) var(--e-out), border-color var(--d-sm) var(--e-out),
    box-shadow var(--d-sm) var(--e-out);
}

.page-home .h-step.is-active .h-step__btn { color: var(--c-ink); }

.page-home .h-step.is-active .h-step__btn::before {
  background: var(--c-teal);
  border-color: var(--c-teal);
  box-shadow: 0 0 0 4px rgba(23, 107, 174, 0.14);
}

.page-home .h-step__index {
  padding-top: 0.3rem;
  font-family: var(--f-display);
  font-size: 0.95rem;
  color: var(--c-muted);
}

.page-home .h-step.is-active .h-step__index { color: var(--c-teal-deep); }

.page-home .h-step__body { display: block; }

.page-home .h-step__title {
  display: block;
  font-family: var(--f-display);
  font-size: var(--h-h3);
  line-height: 1.1;
  color: var(--c-dark);
}

.page-home .h-step__text {
  display: block;
  margin-top: 0.4rem;
  max-width: 48ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--c-muted);
}

.page-home .h-step__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin: 0.15rem 0 0.5rem 2.6rem;
  color: var(--c-teal-deep);
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 0.26em;
}

.page-home .h-step__cta:hover { color: var(--c-dark); }

.page-home .h-story__panel { position: relative; }

.page-home .h-story__frames {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: 24px 24px 24px 6px;
  background: var(--h-paper-deep);
  box-shadow: var(--sh-2);
}

.page-home .h-story__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s var(--e-out);
}

.page-home .h-story__img.is-active { opacity: 1; }

.page-home .h-story__caption {
  margin-top: 0.9rem;
  color: var(--c-muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

@media (min-width: 900px) {
  .page-home .h-story__inner {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: start;
  }
  .page-home .h-story__panel {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
  .page-home .h-story__frames { aspect-ratio: 4 / 5; }
}

/* -------------------------------------------------------------------- shop */
.page-home .h-shop { background: var(--c-cream); }

.page-home .h-shop__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(74%, 1fr);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--c-sage) transparent;
  padding-bottom: 1rem;
}

.page-home .h-shop__row:focus-visible,
.page-home .h-voices__row:focus-visible {
  outline: 3px solid var(--c-teal);
  outline-offset: 6px;
  border-radius: var(--r-sm);
}

.page-home .h-product {
  min-width: 0;
  scroll-snap-align: start;
}

.page-home .h-product__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-white);
  color: inherit;
  text-decoration: none;
  transition: transform var(--d-sm) var(--e-out), box-shadow var(--d-sm) var(--e-out);
}

.page-home .h-product__link:hover,
.page-home .h-product__link:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  color: inherit;
}

.page-home .h-product__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--h-paper-deep);
}

.page-home .h-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--d-md) var(--e-out);
}

.page-home .h-product__link:hover .h-product__media img,
.page-home .h-product__link:focus-visible .h-product__media img {
  transform: scale(1.03);
}

.page-home .h-tag {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid rgba(11, 46, 79, 0.12);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.94);
  color: var(--c-dark);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.page-home .h-tag--heritage {
  background: rgba(214, 231, 246, 0.96);
}

.page-home .h-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.05rem 1.1rem 1.2rem;
}

.page-home .h-product__cat {
  color: var(--c-teal-deep);
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
}

.page-home .h-product__name {
  margin: 0.2rem 0 0;
  font-size: 1.28rem;
  line-height: 1.2;
  color: var(--c-dark);
}

.page-home .h-product__price {
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--c-ink);
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}

.page-home .h-shop__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 2rem;
  margin-top: 1.75rem;
}

@media (max-width: 599px) {
  .page-home .h-shop__foot .h-btn { width: 100%; }
}

@media (min-width: 600px) {
  .page-home .h-shop__row { grid-auto-columns: minmax(46%, 1fr); }
}

@media (min-width: 900px) {
  .page-home .h-shop__row {
    grid-auto-columns: minmax(38%, 1fr);
    gap: 1.25rem;
  }
}

/* four across, one row */
@media (min-width: 1100px) {
  .page-home .h-shop__row {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    overflow: visible;
    padding-bottom: 0;
  }
}

/* -------------------------------------------------------------------- work */
.page-home .h-work {
  background: var(--h-paper);
  position: relative;
  padding-block: clamp(2.25rem, 3.5vw, 3rem);
}

.page-home .h-work__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.35rem, 2vw, 1.85rem);
  flex-wrap: wrap;
}

.page-home .h-work__heading {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 2.3vw, 2.35rem);
  line-height: 1.05;
  color: var(--c-dark);
  margin: 0.2rem 0 0;
}

.page-home .h-work__intro {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--c-muted);
  max-width: 44ch;
  margin: 0;
}

/* 4-Pillar Categorical Showcase */
.page-home .h-work-tabs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(6, 27, 46, 0.04);
  padding: 0.45rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(6, 27, 46, 0.08);
  margin-bottom: clamp(1.35rem, 2.2vw, 1.85rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page-home .h-work-tabs::-webkit-scrollbar { display: none; }

.page-home .h-work-tab {
  flex: 1 1 0;
  min-width: 175px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.78rem 1.15rem;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--c-muted);
  font-size: 0.88rem;
  font-weight: var(--fw-semibold);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--d-sm) var(--e-out);
}

.page-home .h-work-tab:hover {
  color: var(--c-dark);
  background: rgba(255, 255, 255, 0.65);
}

.page-home .h-work-tab.is-active {
  background: var(--c-white);
  color: var(--c-dark);
  border-color: rgba(6, 27, 46, 0.09);
  box-shadow: 0 4px 16px rgba(6, 27, 46, 0.07);
}

.page-home .h-work-tab__num {
  font-family: var(--f-mono, monospace);
  font-size: 0.74rem;
  font-weight: var(--fw-bold);
  opacity: 0.65;
}

.page-home .h-work-tab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(6, 27, 46, 0.05);
  color: inherit;
  transition: all var(--d-sm);
}

.page-home .h-work-tab.is-active .h-work-tab__icon {
  background: var(--c-teal-soft);
  color: var(--c-teal-deep);
}

.page-home .h-work-tab[data-cat="energy"].is-active .h-work-tab__icon {
  background: rgba(217, 119, 6, 0.12);
  color: #B25E00;
}
.page-home .h-work-tab[data-cat="waste"].is-active .h-work-tab__icon {
  background: rgba(46, 125, 50, 0.12);
  color: #1E6B3E;
}
.page-home .h-work-tab[data-cat="community"].is-active .h-work-tab__icon {
  background: rgba(194, 84, 42, 0.12);
  color: #7A3B12;
}

/* Category Panels Showcase */
.page-home .h-work-panels {
  position: relative;
}

.page-home .h-work-panel {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.page-home .h-work-panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Category Banner */
.page-home .h-work-panel__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.2rem, 2vw, 1.6rem) clamp(1.25rem, 2.5vw, 2rem);
  border-radius: var(--r-lg);
  margin-bottom: 1.35rem;
  border: 1px solid rgba(6, 27, 46, 0.08);
  flex-wrap: wrap;
}

.page-home .h-work-panel__banner--water {
  background: linear-gradient(135deg, rgba(23, 107, 174, 0.07) 0%, rgba(23, 107, 174, 0.02) 100%);
  border-left: 4px solid var(--c-teal);
}
.page-home .h-work-panel__banner--energy {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.07) 0%, rgba(217, 119, 6, 0.02) 100%);
  border-left: 4px solid var(--c-amber);
}
.page-home .h-work-panel__banner--waste {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.07) 0%, rgba(46, 125, 50, 0.02) 100%);
  border-left: 4px solid var(--c-leaf);
}
.page-home .h-work-panel__banner--community {
  background: linear-gradient(135deg, rgba(194, 84, 42, 0.07) 0%, rgba(194, 84, 42, 0.02) 100%);
  border-left: 4px solid var(--c-terracotta);
}

.page-home .h-work-panel__lead {
  flex: 1;
  min-width: 260px;
}

.page-home .h-work-panel__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.35rem;
}

.page-home .h-work-panel__title {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1.2;
  color: var(--c-dark);
  margin: 0 0 0.35rem;
}

.page-home .h-work-panel__desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--c-muted);
  max-width: 62ch;
  margin: 0;
}

.page-home .h-work-panel__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--r-md);
  border: 1px solid rgba(6, 27, 46, 0.07);
  box-shadow: 0 2px 8px rgba(6, 27, 46, 0.03);
  flex-shrink: 0;
}

.page-home .h-work-panel__stat-num {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: var(--fw-bold);
  color: var(--c-dark);
  line-height: 1.15;
}

.page-home .h-work-panel__stat-label {
  font-size: 0.76rem;
  color: var(--c-muted);
  margin-top: 0.25rem;
}

/* 2-Column Initiative Cards Grid */
.page-home .h-work-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .page-home .h-work-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.page-home .h-wcard {
  background: var(--c-white);
  border-radius: var(--r-lg);
  border: 1px solid rgba(6, 27, 46, 0.09);
  padding: clamp(1.4rem, 2.2vw, 2rem);
  display: flex;
  flex-direction: column;
  transition: transform var(--d-sm) var(--e-out), box-shadow var(--d-sm) var(--e-out), border-color var(--d-sm) var(--e-out);
  position: relative;
  box-shadow: 0 4px 18px rgba(6, 27, 46, 0.03);
}

.page-home .h-wcard:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 27, 46, 0.16);
  box-shadow: 0 12px 30px rgba(6, 27, 46, 0.07);
}

.page-home .h-wcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.page-home .h-wcard__icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-home .h-wcard__icon-box--water {
  background: rgba(23, 107, 174, 0.09);
  color: var(--c-teal-deep);
}
.page-home .h-wcard__icon-box--energy {
  background: rgba(217, 119, 6, 0.1);
  color: #B25E00;
}
.page-home .h-wcard__icon-box--waste {
  background: rgba(46, 125, 50, 0.1);
  color: #1E6B3E;
}
.page-home .h-wcard__icon-box--community {
  background: rgba(194, 84, 42, 0.1);
  color: #7A3B12;
}

.page-home .h-wcard__tag {
  font-size: 0.72rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.page-home .h-wcard__title {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.25;
  color: var(--c-dark);
  margin: 0 0 0.55rem;
}

.page-home .h-wcard__desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--c-muted);
  margin: 0 0 1.15rem;
  flex: 1;
}

.page-home .h-wcard__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.page-home .h-wcard__pill {
  font-size: 0.74rem;
  padding: 0.22rem 0.65rem;
  background: var(--c-sand-soft);
  border-radius: var(--r-full);
  color: var(--c-ink);
  font-weight: var(--fw-medium);
  border: 1px solid rgba(6, 27, 46, 0.05);
}

.page-home .h-wcard__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(6, 27, 46, 0.06);
}

.page-home .h-wcard__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: var(--fw-semibold);
  color: var(--c-teal-deep);
  text-decoration: none;
  transition: gap var(--d-sm) var(--e-out), color var(--d-sm) var(--e-out);
}

.page-home .h-wcard__btn:hover {
  color: var(--c-dark);
}

.page-home .h-wcard__btn:hover .h-arrow {
  transform: translateX(4px);
}
@media (max-width: 639px) {
  .page-home .h-work-tabs {
    padding: 0.35rem;
    gap: 0.45rem;
  }
  .page-home .h-work-tab {
    min-width: 145px;
    padding: 0.65rem 0.95rem;
    font-size: 0.82rem;
    gap: 0.5rem;
  }
  .page-home .h-work-panel__banner {
    padding: 1.15rem 1.25rem;
    gap: 0.85rem;
  }
  .page-home .h-work-panel__stat {
    width: 100%;
  }
  .page-home .h-wcard {
    padding: 1.25rem 1.15rem;
  }
}


/* ------------------------------------------------------------- testimonials */
.page-home .h-voices { background: var(--c-sage-soft); }

.page-home .h-voices__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82%, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0 0 1rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--c-sage) transparent;
}

.page-home .h-voices__row > li { scroll-snap-align: start; }

.page-home .h-quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  height: 100%;
  margin: 0;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-white);
}

.page-home .h-quote::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  flex: none;
  background: var(--h-clay);
}

.page-home .h-quote blockquote { margin: 0; }

.page-home .h-quote blockquote p {
  font-family: var(--f-display);
  font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem);
  line-height: 1.5;
  color: var(--c-dark);
}

.page-home .h-quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-home .h-quote__avatar {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  border: 1px solid rgba(11, 46, 79, 0.1);
  border-radius: 50%;
  background: var(--c-sage);
  color: var(--c-dark);
  font-size: 0.76rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
}

.page-home .h-quote__name {
  color: var(--c-ink);
  font-size: 0.92rem;
  font-weight: var(--fw-semibold);
}

@media (min-width: 760px) {
  .page-home .h-voices__row { grid-auto-columns: minmax(44%, 1fr); }
}

@media (min-width: 1000px) {
  .page-home .h-voices__row {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }
}

/* ---------------------------------------------------------------- partners */
.page-home .h-partners__inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.65rem;
}

.page-home .h-partners__title {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  line-height: 1.06;
}

.page-home .h-partners__marquee {
  position: relative;
  width: 100%;
  margin-top: 1.4rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.page-home .h-partners__track {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  animation: h-partners-scroll var(--marquee-duration, 32s) linear infinite;
  will-change: transform;
}

.page-home .h-partners__marquee:hover .h-partners__track,
.page-home .h-partners__marquee:focus-within .h-partners__track { animation-play-state: paused; }

.page-home .h-partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: clamp(10rem, 14vw, 13rem);
  height: 5.4rem;
  padding: 0.75rem 1.35rem;
  margin: 0 0.55rem;
  border: 1px solid rgba(6, 27, 46, 0.08);
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(6, 27, 46, 0.04);
  transition: transform var(--d-sm) var(--e-out), box-shadow var(--d-sm) var(--e-out), border-color var(--d-sm) var(--e-out);
}

.page-home .h-partners__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 27, 46, 0.08);
  border-color: rgba(23, 107, 174, 0.25);
}

/* All partner cards sit cleanly on pure white as requested */
.page-home .h-partners__item.is-dark {
  background: #FFFFFF;
  border-color: rgba(6, 27, 46, 0.08);
}

.page-home .h-partners__logo {
  width: 100%;
  height: 100%;
  max-width: var(--logo-w, 10.5rem);
  max-height: 3.6rem;
  object-fit: contain;
  background: transparent;
  display: block;
}

.page-home .h-partners__name {
  display: none;
  color: var(--c-dark);
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.2;
  white-space: nowrap;
}

.page-home .h-partners__item.is-fallback .h-partners__logo { display: none; }
.page-home .h-partners__item.is-fallback .h-partners__name { display: block; }

@keyframes h-partners-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .h-partners__track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.7rem;
  }
  .page-home .h-partners__item[aria-hidden="true"] { display: none; }
  .page-home .h-partners__marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ----------------------------------------------------------------- gallery */
.page-home .h-gallery { background: var(--c-cream); }

.page-home .h-masonry {
  columns: 2;
  column-gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .h-tile {
  break-inside: avoid;
  margin-bottom: 0.9rem;
}

.page-home .h-tile__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.page-home .h-tile__link img {
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--h-paper-deep);
  transition: opacity var(--d-sm) var(--e-out);
}

.page-home .h-tile__link:hover img { opacity: 0.92; }

.page-home .h-tile--portrait img { aspect-ratio: 4 / 5; }
.page-home .h-tile--landscape img { aspect-ratio: 4 / 3; }
.page-home .h-tile--square img { aspect-ratio: 1 / 1; }

.page-home .h-tile__cap {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.6rem;
  color: var(--c-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.page-home .h-tile__cap::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--h-clay);
}

@media (min-width: 900px) {
  .page-home .h-masonry { columns: 3; column-gap: 1.4rem; }
  .page-home .h-tile { margin-bottom: 1.4rem; }
}

/* ------------------------------------------------------------------ donate */
.page-home .h-donate {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(3.25rem, 7vw, 5.5rem);
  background: var(--c-dark);
  color: var(--c-on-dark);
}

.page-home .h-donate__wave {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(34px, 5vw, 64px);
  color: var(--c-cream);
  pointer-events: none;
}

.page-home .h-donate__wave svg { width: 100%; height: 100%; }

.page-home .h-donate__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.page-home .h-donate__title {
  margin-top: 0.35rem;
  font-size: var(--h-h2);
  line-height: 1.02;
  color: var(--c-on-dark);
}

.page-home .h-donate__copy {
  max-width: 48ch;
  margin-top: 1rem;
  color: var(--c-on-dark-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.page-home .h-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .h-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--c-amber);
  border-radius: var(--r-full);
  background: var(--c-amber);
  color: var(--c-ink);
  font-size: 0.98rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: transform var(--d-xs) var(--e-out), background var(--d-sm) var(--e-out),
    color var(--d-sm) var(--e-out), border-color var(--d-sm) var(--e-out);
}

.page-home .h-amount:hover {
  background: var(--c-cream);
  border-color: var(--c-cream);
  color: var(--c-dark);
}

.page-home .h-amount:active { transform: scale(0.98); }

.page-home .h-amount--other {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--c-on-dark);
}

.page-home .h-amount--other:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--c-on-dark);
  color: var(--c-on-dark);
}

.page-home .h-donate .h-amount:focus-visible {
  outline-color: var(--c-focus-dark);
  outline-offset: 3px;
}

.page-home .h-donate__fine {
  margin-top: 0.9rem;
  color: var(--c-on-dark-muted);
  font-size: 0.8rem;
}

@media (min-width: 900px) {
  .page-home .h-donate__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: end;
    gap: 4rem;
  }
}

/* ----------------------------------------------------------------- closing */
.page-home .h-closing {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.75rem, 9vw, 7rem);
  background: var(--h-paper);
}

.page-home .h-closing::before {
  content: "";
  position: absolute;
  top: -22%;
  right: -12%;
  width: min(60vw, 660px);
  aspect-ratio: 1;
  border-radius: 52% 42% 58% 46%;
  background: var(--c-sage-soft);
  transform: rotate(-10deg);
  pointer-events: none;
}

.page-home .h-closing::after {
  content: "";
  position: absolute;
  left: 6%;
  bottom: 12%;
  width: clamp(4rem, 9vw, 7rem);
  aspect-ratio: 1;
  border: 1px solid var(--h-clay);
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

.page-home .h-closing__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  max-width: 46rem;
  text-align: center;
}

.page-home .h-closing .h-eyebrow { justify-content: center; }

.page-home .h-closing__title {
  font-size: clamp(2.3rem, 1.5rem + 4vw, 4.1rem);
  line-height: 0.98;
}

.page-home .h-closing__copy {
  max-width: 44ch;
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.page-home .h-closing__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

/* ------------------------------------------------------------------- media */
.page-home main img { background: var(--h-paper-deep); }

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page-home .h-hero__blob,
  .page-home .h-hero__ring {
    animation: none !important;
  }

  .page-home .h-hero__blob { opacity: 0.5; transform: rotate(-6deg); }
  .page-home .h-hero__ring { opacity: 0.55; }

  .page-home .h-btn::after { transition: none; }

  .page-home .h-btn:hover,
  .page-home .h-btn:active,
  .page-home .h-product__link:hover,
  .page-home .h-product__link:focus-visible,
  .page-home .h-work-item:hover,
  .page-home .h-work-item:focus-visible,
  .page-home a.h-program__link:hover,
  .page-home a.h-program__link:focus-visible {
    transform: none;
  }

  .page-home .h-product__link:hover .h-product__media img,
  .page-home .h-product__link:focus-visible .h-product__media img { transform: none; }

  .page-home .h-btn:hover .h-arrow,
  .page-home .h-link:hover .h-arrow,
  .page-home .h-work-item:hover .h-arrow,
  .page-home .h-program__link:hover .h-arrow { transform: none; }

  .page-home .h-steps__progress { transition: none; }
  .page-home .h-amount:active { transform: none; }
  .page-home .h-story__img { transition: opacity 0.2s linear; }
}

/* ------------------------------------------------------------------ print */
@media print {
  .page-home main::before { display: none; }
  .page-home .h-btn::after { display: none; }
}
