.hero-hp {
  position: relative;
  width: 100%;
  min-height: 600px;
  overflow: hidden;
  background: #1e1c45;
}

/* Slides */
.hero-hp__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
  display: flex;
  align-items: flex-end;
}

.hero-hp__slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Background image */
.hero-hp__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

/* picture element wrapping bg image */
.hero-hp__bg-img picture,
.hero-hp__bg-img source {
  display: contents;
}

/* Video background */
.hero-hp__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Gradient overlay */
.hero-hp__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 18, 50, 0.82) 0%,
    rgba(20, 18, 50, 0.42) 55%,
    transparent 100%
  );
  z-index: 1;
}

/* Content */
.hero-hp__content-wrap {
    width: 100%;
    max-width: 1475px;
    margin: 0 auto;
    align-self: center;
}
.hero-hp__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 3rem 3rem 4rem;
  align-self:center;
}

/* Eyebrow tag */
.hero-hp__tag {
  display: inline-block;
  font-family: var(--font-nunito, 'Nunito', sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #423F76;
  background: rgba(222, 222, 239, 0.92);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 0.75rem;
}

/* Headline */
.hero-hp__headline {
  font-family: palatino-linotype, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.12;
  margin: 1rem 0 1.5rem!important;
}

/* Subhead */
.hero-hp__subhead {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

/* CTA row */
.hero-hp__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* Dot navigation */
.hero-hp__dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-hp__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.hero-hp__dot.is-active {
  background: #ffffff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-hp__slide {
    transition: none;
  }
  .hero-hp__bg-video {
    display: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-hp {
    min-height: 480px;
  }
  .hero-hp__content-wrap {
      align-self: flex-end;
  }
  .hero-hp__content {
    padding: 2rem 1.25rem 3rem;
    max-width: 100%;
    width:100%;
    align-self:flex-end;
    text-align:center;
  }
  .hero-hp__cta-row{justify-content: center}

  .hero-hp__overlay {
    background: linear-gradient(
      to top,
      rgba(20, 18, 50, 0.85) 0%,
      rgba(20, 18, 50, 0.50) 55%,
      transparent 100%
    );
  }

  .hero-hp__subhead {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-hp {
    min-height: 420px;
  }

  .hero-hp__headline {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
}