.landing-hero {
  min-height: calc(100svh - 4rem);
  padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 7vw, 7rem) 9rem;
  display: block;
  isolation: isolate;
  background: #e8edf2;
}

.landing-hero-media,
.landing-hero-scrim,
.landing-hero-slide {
  position: absolute;
  inset: 0;
}

.landing-hero-media {
  z-index: -3;
  overflow: hidden;
}

.landing-hero-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 700ms ease, transform 6s ease;
}

.landing-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.landing-hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, .97) 0%, rgba(248, 250, 252, .88) 38%, rgba(248, 250, 252, .30) 68%, rgba(15, 23, 42, .08) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, .18), transparent 42%);
}

.landing-hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 62%);
}

.landing-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3.25rem, 6.4vw, 6rem);
  line-height: .98;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-hero-stats {
  position: absolute;
  z-index: 3;
  left: clamp(1.5rem, 7vw, 7rem);
  bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  width: min(850px, calc(100% - 3rem));
  gap: 0;
  padding: .75rem 1rem;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 60px rgba(15, 23, 42, .16);
  backdrop-filter: blur(18px);
}

.landing-hero-stats > div {
  padding: .7rem 1rem;
  border: 0;
  border-right: 1px solid rgba(100, 116, 139, .18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-hero-stats > div:last-child { border-right: 0; }
.landing-hero-stats > div > div:first-child { margin-bottom: .45rem; }

.landing-hero-controls {
  position: absolute;
  z-index: 4;
  right: clamp(1.5rem, 5vw, 5rem);
  bottom: 2.4rem;
  display: flex;
  gap: .55rem;
}

.landing-hero-control {
  width: 54px;
  height: 54px;
  padding: 3px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 9px;
  background: rgba(255, 255, 255, .42);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
  opacity: .72;
  cursor: pointer;
}

.landing-hero-control img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.landing-hero-control:hover,
.landing-hero-control.is-active {
  border-color: #7f61ea;
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 1023px) {
  .landing-hero { min-height: 820px; padding-bottom: 2rem; }
  .landing-hero-copy { width: min(680px, 90%); }
  .landing-hero-stats {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 3rem;
  }
  .landing-hero-controls { bottom: 1rem; }
}

@media (max-width: 640px) {
  .landing-hero {
    min-height: 860px;
    padding: 2.25rem 1rem 5.5rem;
  }
  .landing-hero-copy { width: 100%; }
  .landing-hero-copy h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .landing-hero-scrim {
    background: linear-gradient(180deg, rgba(248, 250, 252, .97) 0%, rgba(248, 250, 252, .88) 62%, rgba(15, 23, 42, .18) 100%);
  }
  .landing-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: .5rem;
  }
  .landing-hero-stats > div:nth-child(2) { border-right: 0; }
  .landing-hero-stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(100, 116, 139, .18); }
  .landing-hero-controls {
    right: 1rem;
    left: 1rem;
    justify-content: center;
  }
  .landing-hero-control { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-slide { transform: none; transition: opacity 200ms ease; }
}
