.active-hero.has-development-background {
  position: relative;
  isolation: isolate;
  background: rgba(247, 251, 248, 0.36);
}

.active-hero.has-development-background::before,
.active-hero.has-development-background::after {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  content: "";
  pointer-events: none;
}

.active-hero.has-development-background::before {
  z-index: 0;
  background-image: url("assets/zgtn-development-background-1440.webp");
  background-image: image-set(
    url("assets/zgtn-development-background-960.webp") 1x,
    url("assets/zgtn-development-background-1440.webp") 2x
  );
  background-position: 42% 18%;
  background-size: cover;
  opacity: 0.82;
  transform: scale(1.025);
}

.active-hero.has-development-background::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.7) 0%, rgba(255, 253, 249, 0.48) 38%, rgba(248, 251, 248, 0.08) 78%, rgba(248, 251, 248, 0.02) 100%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.04) 0%, rgba(246, 250, 247, 0.14) 76%, rgba(246, 250, 247, 0.42) 100%);
}

.active-hero.has-development-background > * {
  position: relative;
  z-index: 2;
}

.active-hero.has-development-background .active-hero-copy {
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 20px 54px rgba(27, 63, 42, 0.08);
  backdrop-filter: blur(4px);
}

.home-active-page .active-hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(470px, 1.1fr);
  gap: clamp(34px, 4.8vw, 72px);
}

.active-hero-visual.has-global-network-art {
  position: relative;
  width: 100%;
  max-width: 690px;
  overflow: hidden;
  border: 1px solid rgba(20, 91, 55, 0.2);
  border-radius: 24px;
  background: linear-gradient(145deg, #eef7f1, #fffaf0);
  box-shadow: 0 28px 70px rgba(20, 50, 31, 0.16);
  isolation: isolate;
}

.active-hero-visual.has-global-network-art::before {
  position: absolute;
  inset: -16% 32% 62% -10%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(192, 145, 28, 0.18);
  filter: blur(46px);
  content: "";
}

.active-hero-visual.has-global-network-art::after {
  position: absolute;
  inset: auto 18px 18px auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c0911c;
  box-shadow: 0 0 0 8px rgba(192, 145, 28, 0.14);
  content: "";
  pointer-events: none;
}

.active-hero-visual.has-global-network-art img {
  width: 100%;
  height: auto !important;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: contain;
  object-position: center;
}

.active-hero-stats {
  margin-top: clamp(24px, 3vw, 38px);
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.8vw, 32px);
  border: 1px solid rgba(20, 91, 55, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(20, 50, 31, 0.09);
  backdrop-filter: blur(12px);
}

.active-hero-stats-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.active-hero-stats-heading strong {
  color: #173425;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.active-hero-stats-heading span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.active-hero-stats-heading span::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2d9861;
  box-shadow: 0 0 0 6px rgba(45, 152, 97, 0.12);
  content: "";
}

.active-hero-stats .active-measure-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.active-hero-stats .active-measure-grid article {
  min-height: 92px;
  padding: 12px clamp(18px, 2.2vw, 30px);
  display: grid;
  align-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.active-hero-stats .active-measure-grid article:first-child {
  padding-left: 0;
}

.active-hero-stats .active-measure-grid article:last-child {
  padding-right: 0;
}

.active-hero-stats .active-measure-grid article + article {
  border-left: 1px solid rgba(20, 91, 55, 0.14);
}

.active-hero-stats .active-measure-grid strong {
  color: #145b37;
  font-size: clamp(1.7rem, 2.5vw, 2.45rem);
  line-height: 1;
}

.active-hero-stats .active-measure-grid span {
  margin-top: 7px;
  color: #58675f;
  font-size: 0.88rem;
  font-weight: 700;
}

.active-hero-stats .active-measure-grid > p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: #637067;
}

.active-hero-stats-date {
  margin: 12px 0 0;
  color: #69756e;
  font-size: 0.78rem;
}

@media (max-width: 1040px) {
  .home-active-page .active-hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .active-hero.has-development-background::before {
    background-position: 58% top;
    opacity: 0.64;
  }

  .active-hero.has-development-background::after {
    background:
      linear-gradient(90deg, rgba(255, 253, 249, 0.78), rgba(255, 253, 249, 0.34)),
      linear-gradient(180deg, rgba(255, 253, 249, 0.04) 0%, rgba(246, 250, 247, 0.5) 100%);
  }

  .home-active-page .active-hero-grid {
    grid-template-columns: 1fr;
  }

  .active-hero-visual.has-global-network-art {
    max-width: none;
  }

  .active-hero-visual.has-global-network-art img {
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 680px) {
  .active-hero.has-development-background .active-hero-copy {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.9);
  }

  .active-hero-visual.has-global-network-art {
    border-radius: 15px;
  }

  .active-hero-stats {
    padding: 18px;
    border-radius: 14px;
  }

  .active-hero-stats-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .active-hero-stats .active-measure-grid {
    grid-template-columns: 1fr;
  }

  .active-hero-stats .active-measure-grid article,
  .active-hero-stats .active-measure-grid article:first-child,
  .active-hero-stats .active-measure-grid article:last-child {
    min-height: 0;
    padding: 15px 0;
  }

  .active-hero-stats .active-measure-grid article + article {
    border-top: 1px solid rgba(20, 91, 55, 0.14);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .active-hero.has-development-background::before {
    animation: zgtn-development-drift 18s ease-in-out infinite alternate;
  }

  .active-hero-visual.has-global-network-art {
    animation: zgtn-hero-reveal 520ms ease-out both;
  }

  @keyframes zgtn-hero-reveal {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes zgtn-development-drift {
    from {
      background-position: 39% 18%;
      transform: scale(1.025);
    }
    to {
      background-position: 46% 14%;
      transform: scale(1.055);
    }
  }
}

/* Carry the development setting into the full homepage while keeping cards readable. */
.home-active-page {
  background-image:
    linear-gradient(rgba(255, 253, 249, 0.68), rgba(242, 248, 244, 0.72)),
    url("assets/zgtn-development-background-1440.webp");
  background-image:
    linear-gradient(rgba(255, 253, 249, 0.68), rgba(242, 248, 244, 0.72)),
    image-set(
      url("assets/zgtn-development-background-960.webp") 1x,
      url("assets/zgtn-development-background-1440.webp") 2x
    );
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.home-active-page :is(.active-paths, .active-how, .active-development, .active-community, .active-newsletter) {
  background: rgba(250, 252, 249, 0.78);
  backdrop-filter: blur(3px);
}

.home-active-page :is(.active-opportunities, .active-impact-board) {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
}

@media (max-width: 900px) {
  .home-active-page {
    background-position: 58% top;
    background-attachment: scroll;
  }
}

/* Compact phone hero: show the network image before concise conversion copy. */
.active-action-label-mobile {
  display: none;
}

@media (max-width: 680px) {
  .home-active-page .active-hero {
    padding: 18px 0 28px;
  }

  .home-active-page .active-hero-grid {
    gap: 12px;
  }

  .home-active-page .active-hero-visual.has-global-network-art {
    order: -1;
    overflow: hidden;
    margin: 0;
    border-radius: 15px;
    box-shadow: 0 14px 30px rgba(18, 58, 43, 0.14);
  }

  .home-active-page .active-hero-visual.has-global-network-art img {
    width: 100%;
    height: clamp(180px, 52vw, 225px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 58% 60%;
  }

  .active-hero.has-development-background .active-hero-copy {
    padding: 15px;
    border: 1px solid rgba(20, 91, 55, 0.12);
    border-radius: 15px;
    box-shadow: 0 10px 24px rgba(18, 58, 43, 0.08);
  }

  .home-active-page .active-hero-copy .eyebrow {
    display: none;
  }

  .home-active-page .active-hero-copy h1 {
    max-width: 17ch;
    margin: 0 0 7px;
    font-size: clamp(1.48rem, 7.2vw, 1.78rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
  }

  .home-active-page .active-hero-copy > p:not(.eyebrow) {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 11px;
    color: #4d5d56;
    font-size: 0.76rem;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-active-page .active-hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    margin-top: 0;
  }

  .home-active-page .active-hero-actions :is(.button, .text-action) {
    display: inline-flex;
    min-width: 0;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid rgba(20, 91, 55, 0.19);
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 780;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
  }

  .home-active-page .active-hero-actions .text-action {
    background: rgba(241, 247, 243, 0.9);
  }

  .active-action-label-full {
    display: none;
  }

  .active-action-label-mobile {
    display: inline;
  }

  .home-active-page .active-trust-list {
    display: none;
  }
}
