/* Homepage photography supports the existing app preview without covering it. */
.home-hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 190px);
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.home-hero-visual .hero-stage {
  min-width: 0;
  height: 740px;
  padding-bottom: 140px;
}

.home-hero-visual .hero-phone {
  flex-shrink: 0;
  transform: none;
}

.home-hero-visual .float-chip {
  right: 50%;
  bottom: 60px;
  transform: translateX(50%);
  white-space: nowrap;
}

.home-hero-visual .hero-stage::after {
  bottom: 134px;
}

.home-hero-visual .home-hero-photos {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
}

.home-hero-visual .home-hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  background: #e8ebe5;
}

.home-hero-visual .home-hero-photo--merchant {
  object-position: 50% 35%;
}

.home-hero-visual .home-hero-photo--ride {
  object-position: 54% 40%;
}

.home-hero-visual .home-hero-photos figcaption {
  color: #6d7466;
  font-size: .75rem;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 1600px) {
  .home-hero-visual .hero-stage {
    height: 790px;
  }
}

@media (max-width: 1100px) {
  .home-hero-visual {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 12px;
  }

  .home-hero-visual .hero-stage {
    height: 670px;
  }

  .home-hero-visual .stage-top {
    top: 20px;
    line-height: 1;
    left: 16px;
    right: 16px;
    gap: 8px;
  }

  .home-hero-visual .stage-symbol {
    font-size: .75rem;
    line-height: 1;
  }

  .home-hero-visual .home-hero-photo {
    border-radius: 16px;
  }
}

@media (max-width: 800px) {
  .home-hero-visual {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .home-hero-visual .hero-stage {
    height: 760px;
  }

  .home-hero-visual .stage-top {
    top: 26px;
    line-height: 1.5;
    left: 26px;
    right: 26px;
  }

  .home-hero-visual .stage-symbol {
    font-size: 2rem;
    line-height: 1.5;
  }

  .home-hero-visual .home-hero-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-hero-visual .home-hero-photo {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .home-hero-visual .home-hero-photo--merchant {
    object-position: 50% 12%;
  }

  .home-hero-visual .home-hero-photo--ride {
    object-position: 54% 25%;
  }

  .home-hero-visual .home-hero-photos figcaption {
    grid-column: 1 / -1;
  }
}

@media (max-width: 500px) {
  .home-hero-visual .hero-stage {
    height: 645px;
    padding-bottom: 130px;
  }

  .home-hero-visual .float-chip {
    bottom: 45px;
  }

  .home-hero-visual .hero-stage::after {
    bottom: 124px;
  }

  .home-hero-visual .stage-top {
    top: 22px;
    left: 20px;
    right: 20px;
  }

  .home-hero-visual .stage-symbol {
    font-size: 1.6rem;
  }

  .home-hero-visual .home-hero-photo {
    border-radius: 16px;
  }
}

/* Portrait-specific framing retains the full head in desktop and mobile tiles. */
.home-hero-visual .home-hero-photo--community-lin {
  object-position: 50% 16%;
}

/* Additional campaign portraits within the existing neighbourhood section. */
.home-community-gallery {
  margin: 48px 0 0;
}

.home-community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-community-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  background: #e8ebe5;
}

.home-community-caption {
  margin-top: 16px;
  color: #6d7466;
  font-size: .75rem;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

@media (max-width: 700px) {
  .home-community-gallery {
    max-inline-size: 420px;
    margin-inline: auto;
  }

  .home-community-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .home-community-photo {
    aspect-ratio: 1 / 1;
    object-position: 50% 0%;
  }
}
