/*
 * Site-wide banner scaling
 * Design coordinate system: 1920px × 540px (32:9).
 * Every visual value below is derived from the banner container width so the
 * image, overlay, typography, spacing and reveal offset scale as one unit.
 */

:is(.hero, .about-hero, .services-hero, .join-hero, .news-hero, .contact-hero) {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 32 / 9;
  overflow: hidden;
  container-type: inline-size;
  background: #d9effb;
}

:is(.hero, .about-hero, .services-hero, .join-hero, .news-hero, .contact-hero) > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

:is(.about-hero__shade, .services-hero__shade, .join-hero__shade, .news-hero__shade, .contact-hero__shade) {
  position: absolute;
  inset: 0;
}

.about-page .about-hero__title,
.services-page .services-hero__title,
.join-page .join-hero__title,
.news-center-page .news-hero__title,
.news-detail-page .news-hero__title,
.contact-page .contact-hero__title {
  left: 50%;
  width: min(var(--shell), calc(100% - 48px));
  max-width: none;
  transform: translateX(-50%);
}

.about-hero__title { top: 37.407407%; }
.services-hero__title,
.join-hero__title,
.contact-hero__title { top: 42.962963%; }
.news-hero__title { top: 33.703704%; }

:is(.about-hero__title, .services-hero__title, .join-hero__title, .news-hero__title, .contact-hero__title) h1,
:is(.about-hero__title, .services-hero__title, .join-hero__title, .news-hero__title, .contact-hero__title) p {
  margin: 0;
  font-size: 2.083333vw;
  font-size: 2.083333cqw;
  line-height: 3.020833vw;
  line-height: 3.020833cqw;
  letter-spacing: normal;
  white-space: nowrap;
}

:is(.about-hero__title, .services-hero__title, .join-hero__title, .news-hero__title, .contact-hero__title) p {
  margin-top: 1.041667vw;
  margin-top: 1.041667cqw;
}

:is(.about-hero__title, .services-hero__title, .join-hero__title, .news-hero__title, .contact-hero__title).reveal-left {
  transform: translate(-50%, 0) translateX(-4.166667vw);
  transform: translate(-50%, 0) translateX(-4.166667cqw);
}

:is(.about-hero__title, .services-hero__title, .join-hero__title, .news-hero__title, .contact-hero__title).reveal-left.is-visible {
  transform: translateX(-50%);
}

@media (max-width: 1100px) {
  .about-page .about-hero__title,
  .services-page .services-hero__title,
  .join-page .join-hero__title,
  .news-center-page .news-hero__title,
  .news-detail-page .news-hero__title,
  .contact-page .contact-hero__title {
    width: calc(100% - 36px);
  }
}

@media (max-width: 500px) {
  .about-page .about-hero__title,
  .services-page .services-hero__title,
  .join-page .join-hero__title,
  .news-center-page .news-hero__title,
  .news-detail-page .news-hero__title,
  .contact-page .contact-hero__title {
    width: calc(100% - 32px);
  }
}
