.hero {
  position: relative;
  margin: -96px calc(var(--space-page-x) * -1) 0;
  height: max(720px, 100svh);
  overflow: hidden;
  background: var(--color-white);
}

.hero__stage {
  position: absolute;
  inset: 0;
}

.hero__map {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
}

.hero__fade {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: calc(var(--space-page-x) + var(--hero-copy) + 12vw);
  height: 100%;
  background: linear-gradient(to right, #fff 0%, #fff 68%, rgba(255, 255, 255, 0.88) 82%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hero__rings {
  position: absolute;
  left: 54.0625%;
  top: 14%;
  width: 38.375%;
  aspect-ratio: 1;
  height: auto;
  pointer-events: none;
}

.hero__waves {
  position: absolute;
  left: 73.25%;
  top: 52.375%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.hero__waves i,
.hero__mwaves i {
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border-radius: 50%;
  box-shadow: inset 0 0 36px 8px rgba(0, 123, 255, 0.28);
  animation: hero-wave 7.5s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.hero__waves i:nth-child(2),
.hero__mwaves i:nth-child(2) { animation-delay: 2.5s; }

.hero__waves i:nth-child(3),
.hero__mwaves i:nth-child(3) { animation-delay: 5s; }

@keyframes hero-wave {
  0% { transform: scale(0.12); opacity: 0.7; }
  70% { opacity: 0.25; }
  100% { transform: scale(7.7); opacity: 0; }
}

.hero__copy {
  position: absolute;
  left: var(--space-page-x);
  top: 182px;
  width: var(--hero-copy);
  max-width: calc(100% - var(--space-page-x) * 2);
  z-index: 2;
}

.hero__title {
  max-width: 100%;
  color: #212121;
  font-family: var(--font-display);
  font-size: 63px;
  font-weight: 600;
  line-height: 72px;
  letter-spacing: -0.03em;
}

.hero__title span {
  color: #919191;
}

.hero__stage .hero__title span {
  letter-spacing: 0.006em;
  white-space: nowrap;
}

.hero__lead {
  width: 485px;
  margin-top: 32px;
  color: #212121;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 48px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border: 2px solid transparent;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.hero__btn--primary {
  border-color: #484848;
  background: #484848;
  color: #ffffff;
}

.hero__btn--primary:hover,
.hero__btn--primary:focus-visible {
  background: #2b2b2b;
  border-color: #2b2b2b;
  color: #ffffff;
  box-shadow: 0 8px 18px rgb(0 0 0 / 16%);
}

.hero__btn--ghost {
  border-color: #e6e6e6;
  background: transparent;
  color: #2b2b2b;
}

.hero__btn--ghost:hover,
.hero__btn--ghost:focus-visible {
  background: #ffffff;
  border-color: #484848;
  color: #2b2b2b;
  box-shadow: 0 8px 18px rgb(0 0 0 / 8%);
}

.pin,
.mpin {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  animation: pin-in 0.7s var(--ease-out) both;
}

.pin__card,
.pin__stem,
.pin__dot {
  pointer-events: auto;
}

.pin--billboard { animation-delay: 0.05s; }
.pin--stop { animation-delay: 0.2s; }
.pin--mall { animation-delay: 0.35s; }
.pin--metro { animation-delay: 0.5s; }

@keyframes pin-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.pin__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px 8px 8px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

.pin__photo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
}

.pin__name {
  color: #2b2b2b;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pin__reach {
  margin-top: 4px;
  color: #6d6d6d;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pin__stem {
  position: absolute;
  width: 1px;
  background: #2b2b2b;
}

.pin__dot {
  position: absolute;
  width: 17px;
  height: 17px;
}

.pin--billboard .pin__card { left: max(941px, 58.8125%); top: 17.875%; width: 244px; }
.pin--billboard .pin__stem { left: max(975px, 60.9375%); top: 25.875%; height: 81px; }
.pin--billboard .pin__dot { left: max(967px, 60.4375%); top: 35.75%; }

.pin--stop .pin__card { left: 80.4375%; top: 33.125%; width: 249px; }
.pin--stop .pin__stem { left: 86.5%; top: 41.375%; height: 81px; }
.pin--stop .pin__dot { left: 86%; top: 51.25%; }

.pin--mall .pin__card { left: max(860px, 53.75%); top: 66.375%; width: 249px; }
.pin--mall .pin__stem { left: max(892px, 55.75%); top: 58%; height: 81px; }
.pin--mall .pin__dot { left: max(884px, 55.25%); top: 56.25%; }

.pin--metro .pin__card { left: 75.8125%; top: 78.25%; width: 254px; }
.pin--metro .pin__stem { left: 77.8125%; top: 70.25%; height: 65px; }
.pin--metro .pin__dot { left: 77.3125%; top: 68.125%; }

.hero__mobile {
  display: none;
}

@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100svh;
    margin: -72px calc(var(--space-page-x) * -1) 0;
    padding-top: 72px;
    aspect-ratio: auto;
    overflow: visible;
    background: #fff;
  }

  .hero__stage {
    display: none;
  }

  .hero__mobile {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 40px 24px 0;
  }

  .hero__title--mobile,
  .hero__lead--mobile,
  .hero__actions--mobile {
    position: relative;
    z-index: 2;
  }

  .hero__title--mobile {
    font-size: 28px;
    line-height: 36px;
  }

  .hero__lead--mobile {
    width: auto;
    margin-top: 16px;
    color: #919191;
    font-size: 14px;
    line-height: 20px;
  }

  .hero__actions--mobile {
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
  }

  .hero__actions--mobile .hero__btn {
    width: 100%;
    padding: 12px 24px;
    border-radius: 16px;
  }

  .hero__mmap {
    position: relative;
    flex: 1 1 auto;
    width: calc(100% + 48px);
    min-height: 280px;
    margin: 24px -24px 0;
    container-type: size;
    overflow: hidden;
    background: #fff;
  }

  .hero__mstage {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 360px;
    height: 505px;
    transform: translateX(-50%) scale(max(100cqw / 360px, 100cqh / 505px));
    transform-origin: bottom center;
  }

  .hero__mmap-photo {
    position: absolute;
    width: 303%;
    height: 129%;
    left: -151%;
    top: -6%;
    max-width: none;
  }

  .hero__mrings {
    position: absolute;
    left: 50%;
    top: 50px;
    width: 510px;
    height: 510px;
    transform: translateX(-50%);
  }

  .hero__mwaves {
    position: absolute;
    left: 180px;
    top: 305px;
    width: 0;
    height: 0;
  }

  .hero__mfade {
    position: absolute;
    left: 0;
    top: 0;
    width: 360px;
    height: 169px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0) 17%, #ffffff 55%);
    pointer-events: none;
  }

  .mpin--billboard .pin__card { left: 27px; top: 162px; width: 244px; }
  .mpin--billboard .pin__stem { left: 61px; top: 226px; height: 81px; }
  .mpin--billboard .pin__dot { left: 53px; top: 305px; }

  .mpin--metro .pin__card { left: 83px; top: 408px; width: 254px; }
  .mpin--metro .pin__stem { left: 287px; top: 344px; height: 65px; }
  .mpin--metro .pin__dot { left: 279px; top: 327px; }
}
