/* Keep the home carousel visible only while it is mounted inside the Home hero. */
.magnus-carousel {
  display: none !important;
}

.hero > .magnus-carousel,
.hero .magnus-carousel {
  display: block !important;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh !important;
  min-height: 100svh !important;
  padding: 0 !important;
  background: #000 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hero > .magnus-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero::before,
.hero::after {
  content: none !important;
}

.hero .hero-video {
  display: none !important;
}

.hero .hero-grid {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
}

.hero .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-left: clamp(1rem, 5vw, 5rem) !important;
  margin-right: auto !important;
  padding: 2.25rem !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 18px;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.hero .hero-copy h1 {
  color: #fff !important;
  font-size: clamp(2.6rem, 4vw, 4.2rem) !important;
  margin-bottom: 1rem !important;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.hero .hero-copy .lead {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.1rem !important;
  max-width: 620px;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.hero .hero-copy .eyebrow {
  color: #f4cb73 !important;
  text-transform: uppercase;
  letter-spacing: 0.25em !important;
  font-size: 0.8rem !important;
  margin-bottom: 0.75rem !important;
}

.hero .hero-actions {
  margin-top: 2rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-carousel .hero-slide {
  min-height: 100vh;
  min-height: 100svh;
  height: 100%;
}

.hero-carousel .carousel-inner {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-carousel .carousel-item {
  display: block !important;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-carousel .carousel-item.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-carousel .hero-slide {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-carousel .hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--slide-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform, opacity;
  z-index: 0;
}

.hero-carousel .hero-slide::after {
  content: none;
}

.hero-carousel .carousel-item.active .hero-slide::before {
  animation: zoom-move 13.5s linear infinite;
}

@keyframes zoom-move {
  0% {
    transform: scale(1.3);
    transform-origin: 50% 50%;
    opacity: 1;
  }

  25% {
    opacity: 1;
  }

  100% {
    transform: scale(1);
    transform-origin: 50% 50%;
    opacity: 1;
  }
}

.hero-carousel .carousel-indicators {
  position: absolute;
  right: clamp(1rem, 3vw, 2.25rem);
  left: auto;
  bottom: clamp(1rem, 2.8vw, 2.1rem);
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0;
}

.hero-carousel .carousel-indicators button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  padding: 0;
}

.hero-carousel .carousel-indicators .active {
  width: 32px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f8d98c, #77c9ff);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  position: absolute;
  top: auto;
  bottom: clamp(1rem, 2.8vw, 2rem);
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  background: rgba(8, 22, 31, 0.28);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.hero-carousel .carousel-control-prev {
  left: clamp(0.9rem, 3.2vw, 2rem);
}

.hero-carousel .carousel-control-next {
  left: calc(clamp(0.9rem, 3.2vw, 2rem) + 56px);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-carousel .carousel-control-prev-icon::before,
.hero-carousel .carousel-control-next-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.hero-carousel .carousel-control-prev-icon::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.hero-carousel .carousel-control-next-icon::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

@media (max-width: 900px) {
  .hero,
  .hero .hero-grid,
  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item,
  .hero-carousel .hero-slide {
    min-height: 100svh;
  }

  .hero .hero-grid {
    width: min(100%, calc(100% - 1.5rem));
    padding: 1.5rem 0;
  }

  .hero .hero-copy {
    margin-left: clamp(0.75rem, 3vw, 1.5rem) !important;
    padding: 1.6rem !important;
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 520px) {
  .hero .hero-grid {
    width: min(100%, calc(100% - 1rem));
    padding: 1rem 0;
  }

  .hero .hero-copy h1 {
    font-size: clamp(2.1rem, 8vw, 3rem) !important;
  }

  .hero .hero-copy .lead {
    font-size: 1rem !important;
  }
}
