/* Image-led public storytelling shared by Home, Network, About and Organizations. */

.lively-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: clamp(24px, 3vw, 38px);
}

.lively-section-heading h2 {
  max-width: 760px;
  margin: 7px 0 0;
  color: #073d2e;
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.038em;
}

.lively-section-heading > p {
  margin: 0;
  color: #63706a;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Home: a lively visual finale before the newsletter. */

.home-active-page .zgtn-visual-story {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 20%, rgba(192, 145, 28, 0.1), transparent 27%),
    linear-gradient(180deg, #fffdfa 0%, #edf5ef 100%);
}

.home-active-page .zgtn-visual-story::after {
  content: "";
  position: absolute;
  right: -110px;
  top: 80px;
  width: 260px;
  height: 260px;
  border: 30px solid rgba(20, 91, 55, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.home-story-mosaic {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  grid-template-rows: repeat(2, minmax(190px, 1fr));
  gap: 14px;
}

.visual-story-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 22px;
  background: #073d2e;
  box-shadow: 0 18px 44px rgba(7, 61, 46, 0.14);
  isolation: isolate;
}

.visual-story-card--feature {
  grid-row: 1 / 3;
  min-height: 474px;
}

.visual-story-card picture,
.visual-story-card img {
  width: 100%;
  height: 100%;
  display: block;
}

.visual-story-card img {
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.2, .75, .2, 1), filter 400ms ease;
}

.visual-story-card::after,
.network-story-card::after,
.organization-story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(2, 35, 25, 0.92) 100%);
  pointer-events: none;
}

.visual-story-card:hover img,
.visual-story-card:focus-visible img,
.network-story-card:hover img,
.network-story-card:focus-visible img,
.organization-story-card:hover img,
.organization-story-card:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.02);
}

.visual-story-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 5px;
  padding: clamp(20px, 3vw, 34px);
  color: #fff;
}

.visual-story-overlay small,
.network-story-card small,
.organization-story-card small {
  color: #efc85f;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-story-overlay strong {
  max-width: 19ch;
  font-size: clamp(1.1rem, 2.1vw, 2rem);
  line-height: 1.12;
}

.visual-story-card:not(.visual-story-card--feature) .visual-story-overlay strong {
  font-size: clamp(1rem, 1.45vw, 1.35rem);
}

.visual-story-overlay em,
.network-story-card em,
.organization-story-card em {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 720;
}

.home-story-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(7, 61, 46, 0.14);
  border-radius: 16px;
  background: rgba(7, 61, 46, 0.14);
}

.home-story-links a {
  position: relative;
  min-height: 112px;
  padding: 23px 62px 22px 23px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.93);
  transition: background 180ms ease, color 180ms ease;
}

.home-story-links a:hover,
.home-story-links a:focus-visible {
  background: #0a5f43;
  color: #fff;
}

.home-story-links span {
  color: #8a6c1b;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-story-links a:hover span,
.home-story-links a:focus-visible span {
  color: #f1c95c;
}

.home-story-links strong {
  font-size: 0.92rem;
  line-height: 1.42;
}

.home-story-links b {
  position: absolute;
  right: 20px;
  top: 50%;
  color: rgba(7, 61, 46, 0.16);
  font-size: 1.7rem;
  transform: translateY(-50%);
}

.home-story-links a:hover b,
.home-story-links a:focus-visible b {
  color: rgba(255, 255, 255, 0.2);
}

.home-active-page .lively-newsletter {
  border-top: 0;
  background:
    linear-gradient(115deg, rgba(2, 40, 28, 0.97), rgba(8, 92, 66, 0.91)),
    url("assets/harare-palms-city-1440.webp") center 60% / cover;
  color: #fff;
}

.home-active-page .lively-newsletter :is(.eyebrow, h2, label span) {
  color: #fff;
}

.home-active-page .lively-newsletter .eyebrow {
  color: #efc85f;
}

/* Network */

body.network-page main .network-hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(410px, 0.85fr);
  align-items: center;
  justify-content: stretch;
  gap: clamp(32px, 5vw, 76px);
}

body.network-page main .network-hero-copy h1#network-title {
  max-width: 15ch !important;
}

.network-hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  isolation: isolate;
}

.network-hero-visual::before {
  content: "";
  position: absolute;
  inset: -16px 20px 20px -16px;
  z-index: -1;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(201, 155, 63, 0.35), rgba(8, 92, 66, 0.2));
}

.network-hero-visual picture,
.network-hero-visual img {
  width: 100%;
  display: block;
}

.network-hero-visual img {
  aspect-ratio: 1.22;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 28px 70px rgba(2, 40, 28, 0.24);
}

.network-hero-visual figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  background: rgba(4, 45, 33, 0.84);
  color: #fff;
  backdrop-filter: blur(13px);
}

.network-hero-visual figcaption strong,
.network-hero-visual figcaption small {
  display: block;
}

.network-hero-visual figcaption strong {
  font-size: 0.82rem;
}

.network-hero-visual figcaption small {
  grid-column: 2;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
}

.network-live-dot {
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: #65d69a;
  box-shadow: 0 0 0 6px rgba(101, 214, 154, 0.17);
  animation: network-pulse 2.2s ease-in-out infinite;
}

.network-in-motion {
  background: linear-gradient(180deg, #f4f8f5, #fffdf9);
}

.network-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(210px, 0.62fr));
  gap: 14px;
}

.network-story-card,
.organization-story-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 20px;
  background: #073d2e;
  color: #fff;
  box-shadow: 0 16px 40px rgba(7, 61, 46, 0.12);
  isolation: isolate;
}

.network-story-card img,
.organization-story-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.2, .75, .2, 1), filter 400ms ease;
}

.network-story-card > span,
.organization-story-card > span {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 24px;
}

.network-story-card strong,
.organization-story-card strong {
  max-width: 22ch;
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  line-height: 1.2;
}

/* About */

body.development-info-page .about-hero {
  min-height: 500px;
}

.about-hero-grid,
.organization-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
}

.about-hero-photo,
.organization-hero-photo {
  position: relative;
  margin: 0;
}

.about-hero-photo img,
.organization-hero-photo img {
  width: 100%;
  aspect-ratio: 1.42;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 26px 65px rgba(1, 30, 21, 0.26);
}

.about-hero-photo figcaption,
.organization-hero-photo figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(3, 48, 34, 0.86);
  color: #fff;
  backdrop-filter: blur(12px);
}

.about-hero-photo figcaption strong,
.organization-hero-photo figcaption strong {
  font-size: 0.78rem;
}

.about-hero-photo figcaption span,
.organization-hero-photo figcaption span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.67rem;
}

.about-visual-story {
  background: #fffdf9;
}

.about-story-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
}

.about-story-feature {
  position: relative;
  min-height: 590px;
  margin: 0;
}

.about-story-feature picture,
.about-story-feature img {
  width: 100%;
  height: 100%;
  display: block;
}

.about-story-feature img {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 26px 68px rgba(7, 61, 46, 0.16);
}

.about-story-feature::before {
  content: "";
  position: absolute;
  inset: 24px -18px -18px 24px;
  z-index: -1;
  border-radius: 26px;
  background: #dce9df;
}

.about-story-feature figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(4, 52, 37, 0.9);
  color: #efc85f;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.about-story-feature figcaption span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.about-story-copy h2 {
  max-width: 16ch;
  margin: 8px 0 18px;
  color: #073d2e;
  font-size: clamp(1.8rem, 3.3vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.about-story-copy > p:not(.eyebrow) {
  color: #5e6b66;
  font-size: 1rem;
  line-height: 1.72;
}

.about-value-list {
  margin: 25px 0 28px;
  border-top: 1px solid #dce5df;
}

.about-value-list article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #dce5df;
}

.about-value-list article > span {
  color: #b38518;
  font-size: 0.73rem;
  font-weight: 850;
}

.about-value-list strong {
  color: #073d2e;
  font-size: 0.92rem;
}

.about-value-list p {
  margin: 4px 0 0;
  color: #64716b;
  font-size: 0.82rem;
  line-height: 1.55;
}

/* Organizations */

body.organizations-page .partners-hero {
  min-height: 530px;
}

.organization-hero-photo img {
  aspect-ratio: 1.28;
}

.organization-hero-photo figcaption span {
  color: #efc85f;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.organization-visual-proof {
  background: linear-gradient(180deg, #eef5f0 0%, #fffdf9 100%);
}

.organization-story-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.68fr) minmax(0, 1.2fr) minmax(210px, 0.68fr);
  gap: 14px;
}

.organization-story-card {
  min-height: 390px;
}

.organization-story-card--feature {
  min-height: 450px;
  margin-top: -30px;
}

@keyframes network-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(101, 214, 154, 0.14); }
  50% { box-shadow: 0 0 0 9px rgba(101, 214, 154, 0.04); }
}

@media (max-width: 1000px) {
  body.network-page main .network-hero-grid,
  .about-hero-grid,
  .organization-hero-grid {
    grid-template-columns: 1fr 0.78fr;
    gap: 28px;
  }

  .network-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .network-story-card--wide {
    grid-column: 1 / -1;
    min-height: 420px;
  }

  .organization-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .organization-story-card--feature {
    grid-row: span 2;
    min-height: 100%;
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .lively-section-heading,
  body.network-page main .network-hero-grid,
  .about-hero-grid,
  .organization-hero-grid,
  .about-story-grid {
    grid-template-columns: 1fr;
  }

  .lively-section-heading {
    gap: 12px;
  }

  .home-story-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .visual-story-card,
  .visual-story-card--feature {
    grid-row: auto;
    min-height: 330px;
  }

  .home-story-links {
    grid-template-columns: 1fr;
  }

  .home-story-links a {
    min-height: 90px;
  }

  .network-hero-visual,
  .about-hero-photo,
  .organization-hero-photo {
    margin-top: 8px;
  }

  .network-hero-visual img,
  .about-hero-photo img,
  .organization-hero-photo img {
    aspect-ratio: 1.25;
  }

  .network-story-grid,
  .organization-story-grid {
    grid-template-columns: 1fr;
  }

  .network-story-card,
  .network-story-card--wide,
  .organization-story-card,
  .organization-story-card--feature {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

  .about-story-feature {
    min-height: 460px;
  }

  .about-story-feature::before {
    inset: 14px -9px -9px 14px;
  }
}

@media (max-width: 480px) {
  .visual-story-card,
  .visual-story-card--feature,
  .network-story-card,
  .network-story-card--wide,
  .organization-story-card,
  .organization-story-card--feature {
    min-height: 310px;
  }

  .about-story-feature {
    min-height: 390px;
  }

  .network-hero-visual figcaption,
  .about-hero-photo figcaption,
  .organization-hero-photo figcaption {
    right: 9px;
    bottom: 9px;
    left: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visual-story-card img,
  .network-story-card img,
  .organization-story-card img,
  .network-live-dot {
    transition: none;
    animation: none;
  }
}

/* Compact Network hero: surface useful network content within the first screen. */
body.network-page main .network-hero {
  padding: clamp(24px, 3vw, 38px) 0 clamp(26px, 3vw, 40px);
}

body.network-page main .network-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: clamp(24px, 3.5vw, 48px);
}

body.network-page main .network-hero-copy h1#network-title {
  max-width: 22ch !important;
  margin: 6px 0 12px;
  font-size: clamp(1.85rem, 2.6vw, 2.45rem) !important;
  line-height: 1.07 !important;
}

body.network-page main .network-hero-copy p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  font-size: clamp(0.84rem, 0.95vw, 0.94rem) !important;
  line-height: 1.5;
}

body.network-page main .network-hero-copy .hero-actions {
  margin-top: 16px;
  gap: 9px;
}

body.network-page main .network-hero-copy .button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 0.74rem;
}

body.network-page main .network-hero-visual {
  width: min(100%, 520px);
  justify-self: end;
}

body.network-page main .network-hero-visual::before {
  inset: -10px 14px 14px -10px;
  border-radius: 22px;
}

body.network-page main .network-hero-visual img {
  width: 100%;
  height: clamp(340px, 34vw, 455px);
  aspect-ratio: auto;
  border-radius: 19px;
  object-position: center 54%;
  box-shadow: 0 20px 50px rgba(2, 40, 28, 0.2);
}

body.network-page main .network-hero-visual figcaption {
  right: 13px;
  bottom: 13px;
  left: 13px;
  padding: 10px 12px;
  border-radius: 11px;
}

body.network-page main .network-hero-visual figcaption strong {
  font-size: 0.74rem;
}

body.network-page main .network-hero-visual figcaption small {
  font-size: 0.62rem;
}

@media (max-width: 1000px) and (min-width: 761px) {
  body.network-page main .network-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.76fr);
    gap: 24px;
  }

  body.network-page main .network-hero-copy h1#network-title {
    max-width: 20ch !important;
    font-size: clamp(1.7rem, 3.5vw, 2.15rem) !important;
  }

  body.network-page main .network-hero-visual img {
    height: clamp(300px, 42vw, 390px);
  }
}

@media (max-width: 760px) {
  body.network-page main .network-hero {
    padding: 20px 0 26px;
  }

  body.network-page main .network-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.network-page main .network-hero-copy h1#network-title {
    max-width: 22ch !important;
    margin-bottom: 10px;
    font-size: clamp(1.48rem, 6.4vw, 1.82rem) !important;
  }

  body.network-page main .network-hero-copy p:not(.eyebrow) {
    font-size: 0.82rem !important;
    line-height: 1.46;
  }

  body.network-page main .network-hero-copy .hero-actions {
    margin-top: 13px;
  }

  body.network-page main .network-hero-visual {
    width: 100%;
    margin-top: 0;
    justify-self: stretch;
  }

  body.network-page main .network-hero-visual img {
    height: clamp(235px, 58vw, 320px);
    aspect-ratio: auto;
  }
}
