/* ==========================================================================
   HOME BRIEF 2026-08-21 — final polish lock (overrides earlier layers)
   ========================================================================== */

.home-page {
  --radius-card: 12px;
  --radius-img: 10px;
  --radius-btn: 8px;
  overflow-x: clip;
}

html:has(.home-page),
body.home-page {
  overflow-x: clip;
  max-width: 100%;
}

/* Type: no letter-spacing tricks on Arabic */
.home-page .kicker,
.home-page .hero-kicker,
.home-page .brand-name {
  letter-spacing: 0;
  text-transform: none;
}

/* Buttons hierarchy */
.home-page .btn,
.home-page .btn-primary,
.home-page .btn-donate,
.home-page .camp-card-cta {
  border-radius: var(--radius-btn);
  min-height: var(--touch);
  box-shadow: none;
  transform: none;
  text-decoration: none;
}
.home-page .btn-primary,
.home-page .btn-donate,
.home-page .camp-card-cta {
  background: var(--green);
  color: #fff;
  border: 1px solid transparent;
}
.home-page .btn-primary:hover,
.home-page .btn-donate:hover,
.home-page .camp-card-cta:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}
.home-page .btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.home-page .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: none;
}

/* No underlines on tertiary / more links */
.home-page .btn-tertiary,
.home-page .link-more,
.home-page a.btn-tertiary,
.home-page a.link-more {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0;
  background: none;
  border: 0;
  color: var(--green-dark);
  font-size: var(--fs-sm);
  font-weight: var(--fw-title);
  text-decoration: none !important;
  box-shadow: none;
  background-image: none !important;
}
.home-page .btn-tertiary::before,
.home-page .btn-tertiary::after,
.home-page .link-more::before,
.home-page .link-more::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  transform: none !important;
}
.home-page .btn-tertiary:hover,
.home-page .link-more:hover {
  color: var(--green);
  font-weight: 700;
  text-decoration: none !important;
  transform: none;
}
.home-page .btn-tertiary:focus-visible,
.home-page .link-more:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  text-decoration: none !important;
}

/* ===== Header ===== */
.home-page .site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  overflow: visible;
}
.home-page .header-bar {
  min-height: var(--header-h);
  padding-block: var(--s-8);
  gap: 0.5rem;
  max-width: 100%;
  min-width: 0;
}
.home-page .header-bar > .brand {
  min-width: 0;
  flex: 1 1 auto;
}
.home-page .header-bar > .header-actions {
  flex: 0 0 auto;
  gap: 0.45rem;
  min-width: 0;
}
.home-page .nav-link {
  color: #3d4450;
  font-weight: var(--fw-label);
  border-radius: var(--radius-nav);
  transform: none;
  text-decoration: none;
}
.home-page .nav-link:hover,
.home-page .nav-link.is-hot {
  background: transparent;
  color: var(--green-dark);
  transform: none;
}
.home-page .nav-link.is-active {
  background: transparent;
  color: var(--green-dark);
  font-weight: var(--fw-title);
  box-shadow: inset 0 -2px 0 var(--green);
  padding-inline: 0.95rem;
}
.home-page .nav-link.is-active:hover,
.home-page .nav-link.is-active.is-hot {
  background: transparent;
  color: var(--green-dark);
}
.home-page .nav-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.home-page .nav-caret { opacity: 0.55; }

@media (min-width: 1024px) {
  .home-page .menu-toggle { display: none; }
  .home-page .site-nav,
  .home-page .desk-nav { display: flex; gap: 0.2rem; }
  .home-page .drawer-tools { display: none; }
  .home-page .header-desk-tool { display: flex; }
  .home-page .header-desk-tool.search-toggle { display: grid; }
  .home-page .nav-link,
  .home-page .nav-link span {
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .home-page .nav-link {
    padding-inline: 0.55rem;
    font-size: var(--fs-xs);
  }
  .home-page .site-nav > .nav-link:not(:last-child)::after,
  .home-page .desk-nav > .nav-link:not(:last-child)::after {
    display: none;
  }
  .home-page .brand-org { max-width: 140px; }
}

/* Mobile header: menu + logo (+ donate if fits); lang/search in drawer */
@media (max-width: 1023px) {
  .home-page .header-desk-tool { display: none !important; }
  .home-page .brand-org { display: none !important; }
  .home-page .header-actions .btn-donate,
  .home-page .header-donate {
    display: inline-flex !important;
    padding-inline: 0.75rem;
    font-size: var(--fs-xs);
    min-height: 40px;
  }
  .home-page .header-bar .brand img {
    height: 44px;
    width: 44px;
  }
  .home-page .header-bar {
    gap: 0.4rem;
  }
  .home-page .mobile-drawer {
    width: min(88vw, 22rem);
    max-width: calc(100vw - 0.5rem);
    inset-inline-end: 0;
    transform: translate3d(110%, 0, 0);
    will-change: transform;
    visibility: hidden;
    pointer-events: none;
  }
  .home-page .mobile-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
  }
  html[dir="ltr"] .home-page .mobile-drawer {
    transform: translate3d(-110%, 0, 0);
  }
  .home-page .mobile-drawer.is-open,
  html[dir="ltr"] .home-page .mobile-drawer.is-open {
    transform: translate3d(0, 0, 0);
  }
}

.home-page .drawer-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.home-page .drawer-tools .lang-dropdown {
  display: inline-flex;
  align-items: center;
}
.home-page .lang-dropdown-trigger {
  border-radius: var(--radius-btn);
}
.home-page .lang-dropdown-menu {
  border-radius: var(--radius-card);
}
.home-page .drawer-lang .lang-dropdown-trigger {
  min-height: var(--touch);
  height: var(--touch);
}

/* ===== Hero ===== */
.home-page .hero {
  height: min(62svh, 580px);
  min-height: 380px;
  max-height: 640px;
  background: #0f141c;
}
.home-page .hero-slide,
.home-page .hero-slide.is-active {
  z-index: auto;
}
.home-page .hero-media {
  z-index: 0;
}
.home-page .hero-veil {
  z-index: 2;
}
.home-page .hero-stage {
  position: relative;
}
@media (min-width: 768px) {
  .home-page .hero {
    height: min(68svh, 640px);
    min-height: 440px;
  }
}
@media (min-width: 1024px) {
  .home-page .hero {
    height: min(70svh, 680px);
    max-height: 720px;
  }
}
.home-page .hero-veil {
  background:
    linear-gradient(to top, rgba(10, 14, 20, 0.72) 0%, rgba(10, 14, 20, 0.22) 50%, rgba(10, 14, 20, 0.08) 100%),
    linear-gradient(to left, rgba(10, 14, 20, 0.28) 0%, transparent 52%);
}
html[dir="ltr"] .home-page .hero-veil {
  background:
    linear-gradient(to top, rgba(10, 14, 20, 0.72) 0%, rgba(10, 14, 20, 0.22) 50%, rgba(10, 14, 20, 0.08) 100%),
    linear-gradient(to right, rgba(10, 14, 20, 0.28) 0%, transparent 52%);
}
.home-page .hero-copy {
  bottom: 4rem;
  max-width: 28rem;
}
@media (min-width: 768px) {
  .home-page .hero-copy {
    bottom: 4.5rem;
    max-width: 32rem;
  }
}
.home-page .hero-title {
  max-width: min(22ch, 100%);
  display: block;
  overflow: visible;
  font-size: var(--fs-hero);
  line-height: 1.2;
  margin: 0;
}
.home-page .hero-photo.is-ken {
  animation: homeHeroKen 7s ease-out forwards;
}
@keyframes homeHeroKen {
  from { transform: scale(1.02); }
  to { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-photo,
  .home-page .hero-photo.is-ken {
    animation: none !important;
    transform: none !important;
  }
}

/* Sections rhythm */
.home-page .section { padding: var(--s-64) 0; background: var(--page); }
.home-page .section.is-tight,
.home-page .section-partners { padding: var(--s-40) 0; }
.home-page .section-why { padding: var(--s-64) 0; background: var(--white); }
.home-page .section-campaigns { padding: var(--s-64) 0; background: var(--white); }
.home-page .section-impact { padding: 3.25rem 0; }
.home-page .section-stories { padding: 3.5rem 0; background: var(--page); }
.home-page .section-news { padding: var(--s-40) 0; background: var(--white); }
.home-page .section-media { padding: 3.5rem 0; background: var(--page); }
.home-page .section-head { margin-bottom: var(--s-24); }
.home-page .section-why .section-head,
.home-page .section-why .section-head .lede { max-width: 56rem; }
@media (min-width: 1200px) {
  .home-page .section-why .section-head,
  .home-page .section-why .section-head .lede { max-width: min(100%, 72rem); }
}
.home-page .section-head-tight { margin-bottom: var(--s-24); }
.home-page .section-row > .section-head,
.home-page .section-row > .section-head.section-head-tight { margin-bottom: 0; }
.home-page .section-head .kicker,
.home-page .section-row .kicker { margin-bottom: var(--s-8); }
.home-page .section-row > .section-head { flex: 1 1 auto; min-width: 0; }
.home-page .display-quiet {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: var(--fw-title);
}
.home-page .section-campaigns .section-row,
.home-page .section-news .section-row,
.home-page .section-media .section-row,
.home-page .section-stories .section-row {
  margin-bottom: var(--s-24);
  align-items: flex-end;
}

/* ===== Areas editorial index ===== */
.areas-index {
  display: grid;
  gap: var(--s-20);
  max-width: 100%;
}
@media (min-width: 1024px) {
  .areas-index {
    grid-template-columns: 42% 58%;
    gap: var(--s-40);
    align-items: stretch;
  }
  .areas-index-content {
    order: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .areas-index-stage { order: 2; }
  .areas-index-stage {
    min-height: 420px;
    max-height: 460px;
  }
  .areas-index-frame {
    aspect-ratio: auto;
    height: 100%;
    min-height: 420px;
    max-height: 460px;
  }
  .areas-index-content .section-head { margin-bottom: var(--s-20); }
}

.areas-index-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--chip);
  width: 100%;
}
.areas-index-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow: inset 0 0 72px rgba(15, 23, 42, 0.09);
  transition: opacity 230ms ease-in-out;
}
.areas-index-frame.is-swapping::after {
  opacity: 1;
}
.areas-index-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: 0;
  z-index: 0;
  transition: opacity 230ms ease-in-out;
}
.areas-index-img.pos-top { object-position: 50% 22%; }
.areas-index-img.pos-mid { object-position: 50% 40%; }
.areas-index-img.pos-low { object-position: 50% 68%; }
.areas-index-img.pos-c { object-position: 50% 48%; }
.areas-index-img.is-on { opacity: 1; z-index: 1; }
.areas-index-img.is-entering { z-index: 2; }
.areas-index-img.is-leaving { z-index: 1; }
.areas-index-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.areas-index-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 13px;
  align-items: center;
  min-height: var(--touch);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  border-inline-start: 2px solid transparent;
  padding-inline-start: 0.65rem;
  color: var(--ink);
  background: transparent !important;
  text-decoration: none;
  transition: border-color var(--motion-fast) ease;
}
.areas-index-item.is-on {
  border-inline-start-color: var(--green);
  background: transparent !important;
}
.areas-index-item.is-on .areas-index-name {
  font-weight: 700;
}
.areas-index-item:hover .areas-index-name {
  color: var(--green-dark);
}
.areas-index-item:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.areas-index-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--green);
  line-height: 1;
}
.areas-index-ico .ph {
  font-size: 20px;
  line-height: 1;
}
@media (min-width: 1024px) {
  .areas-index-ico .ph { font-size: 21px; }
}
.areas-index-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.areas-index-name {
  font-size: var(--fs-md);
  font-weight: var(--fw-title);
  line-height: 1.35;
}
.areas-index-desc {
  font-size: var(--fs-sm);
  color: var(--mute);
  line-height: 1.45;
}
@media (max-width: 1023px) {
  .areas-index {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .areas-index-content { display: contents; }
  .areas-index-content .section-head { order: 1; }
  .areas-index-list { order: 3; margin-top: var(--s-16); }
  .areas-index-stage {
    order: 2;
    width: 100%;
  }
  .areas-index-item:not(.is-on) .areas-index-desc { display: none; }
  .areas-index-frame {
    aspect-ratio: 16 / 10;
    width: 100%;
    max-width: 100%;
    max-height: 280px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .areas-index-img,
  .areas-index-frame::after {
    transition: none;
  }
}

/* ===== Why — open steps, no line / cards ===== */
.why-steps {
  list-style: none;
  margin: var(--s-24) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-28);
}
@media (min-width: 768px) {
  .why-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-28);
    position: static;
  }
  .why-steps::before,
  .why-steps::after {
    content: none !important;
    display: none !important;
  }
}
.why-step {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.why-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
  color: #019C3E;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  line-height: 1;
}
.why-ico .ph {
  font-size: 25px;
  line-height: 1;
}
@media (min-width: 768px) {
  .why-ico .ph { font-size: 27px; }
}
.why-num {
  font-size: var(--fs-xs);
  font-weight: var(--fw-label);
  color: var(--mute);
  margin: 0 0 0.45rem;
  letter-spacing: 0.04em;
}
.why-step h3 {
  font-size: var(--fs-lg);
  margin: 0 0 0.4rem;
}
.why-step p:not(.why-num) {
  color: var(--mute);
  font-size: var(--fs-base);
  max-width: 28ch;
  margin: 0;
}

/* ===== Campaign cards — three equal ===== */
.home-page .camp-grid.home-campaigns,
.home-page .camp-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: var(--s-24);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) and (max-width: 1023px) {
  .home-page .camp-grid.home-campaigns,
  .home-page .camp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-page .camp-grid.home-campaigns > .camp-card:nth-child(3),
  .home-page .camp-grid > .camp-card:nth-child(3) {
    grid-column: 1 / -1;
    width: calc((100% - 1.25rem) / 2);
    max-width: 100%;
    justify-self: center;
  }
}
@media (min-width: 1024px) {
  .home-page .camp-grid.home-campaigns,
  .home-page .camp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.25rem;
    align-items: stretch;
  }
  .home-page .camp-grid.home-campaigns > .camp-card:nth-child(3),
  .home-page .camp-grid > .camp-card:nth-child(3) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }
}
.home-page .camp-card,
.home-page .camp-card.is-featured {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: none;
  transition: border-color var(--motion) var(--ease), transform var(--motion) var(--ease);
}
.home-page .camp-card:hover {
  border-color: color-mix(in srgb, var(--green) 30%, var(--line));
  transform: translateY(-2px);
}
.home-page .camp-card-media,
.home-page .donate-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--chip);
  border-radius: 0;
  flex: 0 0 auto;
}
.home-page .camp-card-media img,
.home-page .donate-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-page .camp-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: var(--s-16);
  flex: 1 1 auto;
  min-height: 0;
}
.home-page .camp-card-cat { margin: 0; }
.home-page .camp-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-8);
  min-height: 3.1em;
}
.home-page .camp-card-title h3 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .home-page .camp-card-title h3 { font-size: 1.2rem; }
}
.home-page .camp-card-title .camp-cta-go { display: none; }
.home-page .camp-progress { margin-top: 0.15rem; }
.home-page .camp-progress-track {
  height: 4px;
  border-radius: 999px;
  background: var(--chip);
  overflow: hidden;
}
.home-page .camp-progress-fill {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 1%);
  background: var(--green);
  border-radius: inherit;
}
.home-page .camp-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8) var(--s-16);
  margin-top: var(--s-8);
  font-size: var(--fs-xs);
  color: var(--mute);
}
.home-page .camp-progress-pct {
  font-weight: var(--fw-title);
  color: var(--green-dark);
}
.home-page .camp-card-cta {
  margin-top: auto;
  align-self: flex-start;
}
.home-page .goal-meter,
.home-page .goal-meter-board,
.home-page .goal-meter-waterline,
.home-page .goal-meter-arc-track,
.home-page .goal-meter-arc-progress,
.home-page .goal-meter-pulse {
  display: none !important;
}

/* ===== Impact band ===== */
.home-page .impact-bleed,
.home-page .section-impact {
  position: relative;
  background: #014D1F !important;
  color: #f4faf6;
  overflow: hidden;
  border-top: 3.5px solid color-mix(in srgb, var(--accent-gold, #C4A035) 90%, #fff 10%);
  box-shadow: 0 -2px 6px rgba(196, 160, 53, 0.22);
}
.home-page .impact-bleed-art,
.home-page .impact-bleed-orb,
.home-page .impact-bleed-grain,
.home-page .impact-bleed-blobs,
.home-page .impact-bleed-vignette {
  display: none !important;
}
.home-page #impact.section-impact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.07) 42%, transparent 62%);
}
/* Same ornamental watermark as .footer-art (faint inverted motif), visual left */
.home-page .impact-art {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: -18%;
  right: auto;
  top: auto;
  bottom: -16%;
  transform: none;
  width: min(44rem, 88vw);
  height: auto;
  aspect-ratio: 100 / 72;
  overflow: hidden;
  opacity: 0.088;
  -webkit-mask-image: linear-gradient(to top right, transparent 0%, rgba(0, 0, 0, 0.35) 38%, #000 72%);
  mask-image: linear-gradient(to top right, transparent 0%, rgba(0, 0, 0, 0.35) 38%, #000 72%);
}
.home-page .impact-art img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  filter: brightness(0) invert(1);
  mix-blend-mode: normal;
  transform: scale(1.22) rotate(-7deg);
  transform-origin: 38% 8%;
}
@media (min-width: 900px) {
  .home-page .impact-art {
    left: -10%;
    bottom: -12%;
    width: min(42rem, 52vw);
    opacity: 0.095;
    -webkit-mask-image: linear-gradient(to top right, transparent 0%, rgba(0, 0, 0, 0.4) 42%, #000 78%);
    mask-image: linear-gradient(to top right, transparent 0%, rgba(0, 0, 0, 0.4) 42%, #000 78%);
  }
  .home-page .impact-art img {
    transform: scale(1.28) rotate(-5deg);
    transform-origin: 42% 6%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .impact-art img { transform: none; }
}
.home-page .impact-bleed > .wrap {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
}
.home-page .impact-bleed .display,
.home-page .impact-bleed .display > span,
.home-page .impact-bleed .impact-period {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: visible;
}
.home-page .impact-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--s-24);
}
@media (min-width: 768px) {
  .home-page .impact-band {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.home-page .impact-stat {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.85rem 0.65rem;
  text-align: start;
}
.home-page .impact-stat:nth-child(odd) {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.14);
}
.home-page .impact-stat:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
@media (min-width: 768px) {
  .home-page .impact-stat {
    padding: var(--s-16) 0;
  }
  .home-page .impact-stat:nth-child(odd),
  .home-page .impact-stat:nth-child(-n + 2) {
    border-inline-end: 0;
    border-bottom: 0;
  }
  .home-page .impact-stat:not(:first-child) {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding-inline-start: var(--s-24);
  }
}
.home-page .impact-ico { color: rgba(255, 255, 255, 0.78); }
.home-page .impact-num { color: #fff; }
.home-page .impact-cap { color: rgba(255, 255, 255, 0.72); }
.home-page .impact-bleed .kicker { color: rgba(230, 245, 236, 0.78); }
.home-page .impact-bleed .display,
.home-page .impact-bleed .display-soft { color: #f7fbf8; }

/* ===== Stories ===== */
.home-page .section-stories .section-row {
  margin-bottom: var(--s-16);
}
.stories-editorial {
  display: grid;
  gap: var(--s-24);
  align-items: start;
}
@media (min-width: 1024px) {
  .stories-editorial {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--s-24);
  }
}
.story-main-link,
.story-short a {
  display: grid;
  gap: var(--s-16);
  text-decoration: none !important;
  color: inherit;
}
.home-page .section-stories a,
.home-page .section-stories a:hover,
.home-page .section-stories a:focus-visible {
  text-decoration: none !important;
}
.story-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: var(--chip);
}
.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-tag {
  font-size: var(--fs-xs);
  color: var(--mute);
  margin: 0 0 var(--s-8);
}
.story-main h3 {
  font-size: var(--fs-xl);
  margin: 0 0 var(--s-8);
  line-height: 1.3;
}
.story-excerpt {
  color: var(--mute);
  margin: 0 0 var(--s-12);
  max-width: 40ch;
}
.story-shorts {
  display: grid;
  gap: var(--s-24);
}
.story-short h3 {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1023px) {
  .story-shorts {
    gap: var(--s-16);
  }
  .story-short a {
    grid-template-columns: 5.5rem 1fr;
    gap: var(--s-8) var(--s-16);
    align-items: center;
  }
  .story-short .story-media {
    aspect-ratio: 1;
    grid-row: span 2;
  }
  .story-short .story-tag {
    margin: 0;
    align-self: end;
  }
  .story-short h3 {
    font-size: var(--fs-sm);
    align-self: start;
  }
}

/* ===== News rows ===== */
.news-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.news-rows li { border-bottom: 1px solid var(--line); }
.news-rows a {
  display: grid;
  gap: var(--s-6);
  padding: var(--s-14) 0;
  min-height: var(--touch);
  align-content: center;
  text-decoration: none !important;
}
.news-rows a::before,
.news-rows a::after { content: none !important; display: none !important; }
@media (min-width: 768px) {
  .news-rows a {
    grid-template-columns: 9.5rem 1fr;
    gap: var(--s-24);
    align-items: baseline;
  }
}
.news-rows time {
  font-size: 0.9375rem;
  color: var(--mute);
}
.news-rows span {
  font-size: 1.0625rem;
  font-weight: var(--fw-title);
  line-height: 1.4;
}
.news-rows a:hover span {
  color: var(--green-dark);
  font-weight: 700;
}
.news-rows a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ===== Media editorial — light section ===== */
.home-page .section-media,
.home-page .media-strip {
  position: relative;
  background: var(--page) !important;
  color: var(--ink);
  overflow: hidden;
}
.home-page .media-strip-art,
.home-page .media-split,
.home-page .media-strip-orb,
.home-page .media-strip-grain,
.home-page .media-strip-blobs,
.home-page .media-strip-vignette,
.home-page .media-strip-lines {
  display: none !important;
}
.home-page .section-media > .wrap {
  position: relative;
  z-index: 1;
}
.home-page .section-media .display,
.home-page .section-media .card-title h3 {
  color: var(--ink);
}
.home-page .section-media .lede-sm,
.home-page .section-media .card-chip,
.home-page .section-media .media-col-head,
.home-page .section-media .media-col-label {
  color: var(--mute);
}
.home-page .section-media .link-more,
.home-page .section-media .btn-tertiary {
  color: var(--green-dark);
}
.home-page .section-media .link-more:hover,
.home-page .section-media .btn-tertiary:hover {
  color: var(--green);
}
.media-editorial {
  display: grid;
  gap: var(--s-24);
  align-items: start;
}
@media (min-width: 1024px) {
  .media-editorial {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: var(--s-24);
  }
}
.home-page .section-media .media-main-video,
.home-page .section-media .media-side-gallery {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: stretch;
}
.home-page .section-media .media-col-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0 0 var(--s-16);
  padding: 0;
  gap: var(--s-8);
  font-size: var(--fs-sm);
  text-align: start;
  box-shadow: none;
}
.home-page .section-media .media-col-head > i {
  flex-shrink: 0;
  line-height: 1;
}
.home-page .section-media .media-col-label {
  line-height: 1.2;
}
.home-page .section-media .media-video-frame,
.home-page .section-media .card-media.media-video-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  flex: none;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  text-decoration: none;
}
.home-page .section-media .media-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.3);
  transition: background 200ms ease;
}
.home-page .section-media .media-video-frame:hover::after,
.home-page .section-media .media-video-frame:focus-visible::after {
  background: rgba(0, 0, 0, 0.42);
}
.home-page .section-media .media-video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-page .section-media .media-video-frame > .video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.home-page .section-media .media-video-frame .video-play-btn {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--green, #019c3e);
  border-radius: 50%;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    background-color 200ms ease,
    color 200ms ease;
}
.home-page .section-media .media-video-frame .video-play-btn i {
  font-size: 1.2rem;
  line-height: 1;
  margin-inline-start: 0.08em;
}
.home-page .section-media .media-video-frame:hover .video-play-btn,
.home-page .section-media .media-video-frame:focus-visible .video-play-btn {
  transform: scale(1.06);
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32), 0 0 0 5px rgba(1, 156, 62, 0.2);
}
@media (prefers-reduced-motion: no-preference) {
  .home-page .section-media .media-video-frame:hover .video-play-btn,
  .home-page .section-media .media-video-frame:focus-visible .video-play-btn {
    animation: mediaPlayPulse 1.8s ease-in-out infinite;
  }
}
@keyframes mediaPlayPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32), 0 0 0 4px rgba(1, 156, 62, 0.14); }
  50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.34), 0 0 0 7px rgba(1, 156, 62, 0.22); }
}
.home-page .section-media .media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--s-16);
  align-items: stretch;
}
.home-page .section-media .media-gallery-grid a,
.home-page .section-media .media-gallery-thumb {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-img);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  text-decoration: none;
}
.home-page .section-media .media-gallery-grid a::after,
.home-page .section-media .media-gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.08) 52%, transparent 100%);
  opacity: 0.82;
  transition: opacity 200ms ease;
}
.home-page .section-media .media-gallery-grid a:hover::after,
.home-page .section-media .media-gallery-grid a:focus-visible::after,
.home-page .section-media .media-gallery-thumb:hover::after,
.home-page .section-media .media-gallery-thumb:focus-visible::after {
  opacity: 1;
}
.home-page .section-media .media-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}
.home-page .section-media .media-gallery-grid a:hover img,
.home-page .section-media .media-gallery-grid a:focus-visible img,
.home-page .section-media .media-gallery-thumb:hover img,
.home-page .section-media .media-gallery-thumb:focus-visible img {
  transform: scale(1.03);
}
.home-page .section-media .media-gallery-ico {
  position: absolute;
  inset-inline-end: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-sm, 7px);
  background: rgba(255, 255, 255, 0.92);
  color: var(--green, #019c3e);
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  transition: transform 200ms ease, background-color 200ms ease;
}
.home-page .section-media .media-gallery-grid a:hover .media-gallery-ico,
.home-page .section-media .media-gallery-grid a:focus-visible .media-gallery-ico,
.home-page .section-media .media-gallery-thumb:hover .media-gallery-ico,
.home-page .section-media .media-gallery-thumb:focus-visible .media-gallery-ico {
  transform: scale(1.06);
  background: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .home-page .section-media .media-video-frame::after,
  .home-page .section-media .media-video-frame .video-play-btn,
  .home-page .section-media .media-gallery-grid a::after,
  .home-page .section-media .media-gallery-grid img,
  .home-page .section-media .media-gallery-ico {
    transition: none;
    animation: none !important;
  }
  .home-page .section-media .media-video-frame:hover .video-play-btn,
  .home-page .section-media .media-video-frame:focus-visible .video-play-btn {
    animation: none !important;
  }
}
.home-page .section-media .card-chip {
  margin-top: var(--s-16);
  background: transparent;
  border: 0;
  padding: 0;
}
.home-page .section-media .card-title {
  margin-top: var(--s-8);
}

/* ===== Partners strip ===== */
.home-page .section-partners {
  background: var(--page);
}
.home-page .partners-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16) var(--s-24);
  margin-top: var(--s-16);
  padding: var(--s-8) 0 0;
  border-top: 1px solid var(--line);
}
.home-page .partners-logo {
  display: grid;
  place-items: center;
  height: 44px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.home-page .partners-logo img {
  max-height: 34px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 0.62;
}

/* Quick donate — after hero; closed sheet stays non-interactive */
.home-page.has-qd .qd-widget,
.home-page.has-qd .qd-fab {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
@media (min-width: 1024px) {
  .home-page.has-qd.qd-ready.scrolled-past-hero .qd-widget {
    opacity: 1;
    pointer-events: none;
  }
  .home-page.has-qd.qd-ready.scrolled-past-hero .qd-handle {
    pointer-events: auto;
  }
  .home-page.has-qd.qd-ready.scrolled-past-hero .qd-widget.is-open {
    pointer-events: auto;
  }
}
@media (max-width: 1023px) {
  .home-page.has-qd.qd-ready.scrolled-past-hero .qd-fab {
    opacity: 1;
    pointer-events: auto;
  }
  .home-page.has-qd.qd-ready.scrolled-past-hero .qd-widget.is-open,
  .home-page.has-qd.qd-ready.qd-open .qd-widget {
    opacity: 1;
    pointer-events: auto;
  }
  .home-page.has-qd .qd-fab { box-shadow: none; }
}
.home-page .qd-panel {
  border: 1px solid var(--line);
  background: var(--white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.home-page .qd-handle::before { display: none; }

/* ~390px: keep hero title and header logo fully visible */
@media (max-width: 430px) {
  .home-page .header-bar > .brand {
    flex: 0 1 auto;
    overflow: visible;
    min-width: 0;
  }
  .home-page .header-bar .brand img,
  .home-page .header-bar > .brand > a.brand img {
    height: 40px;
    width: auto;
    max-width: 48px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .home-page .hero {
    height: auto;
    min-height: 28rem;
    max-height: none;
    aspect-ratio: auto;
  }
  /* The hero has no definite height here (height:auto + min-height), so a
     percentage-height stage would collapse to 0 and hide every slide. */
  .home-page .hero-stage {
    position: absolute;
    inset: 0;
    height: auto;
  }
  .home-page .hero-copy {
    /* clear the slide controls strip (pause + ticks) at the bottom */
    bottom: 4.75rem;
    inset-inline-start: 1rem;
    inset-inline-end: 1rem;
    max-width: none;
    padding-bottom: 0;
  }
  .home-page .hero-title {
    max-width: none;
    font-size: clamp(1.5rem, 7.6vw, 2rem);
    line-height: 1.28;
    overflow: visible;
  }
  .home-page .hero-line {
    max-width: none;
  }
}

/* Kill leftover decorative motion on home */
.home-page .will-reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
