/* MSB */

.vsc-main > .vsc-hero {
  width: 100%;
  max-width: none;
}

.vsc-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  color: var(--color-white);
  background-color: var(--color-brand-secondary);
}

.vsc-hero--short {
  min-height: 45vh;
}

.vsc-hero--default {
  min-height: 75vh;
}

.vsc-hero--full {
  min-height: 100vh;
}

.vsc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.vsc-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(32, 42, 68, 0.15) 0%,
    rgba(32, 42, 68, 0.55) 55%,
    rgba(32, 42, 68, 0.75) 100%
  );
  pointer-events: none;
}

.vsc-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 64px;
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  max-width: 1464px;
  padding: 96px 32px;
  /* Let background media controls receive clicks through empty space. */
  pointer-events: none;
}

.vsc-hero__content,
.vsc-hero__media {
  pointer-events: auto;
}

.vsc-hero--image-background .vsc-hero__inner {
  justify-content: flex-start;
}

.vsc-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 auto;
  max-width: 900px;
  min-width: 0;
}

.vsc-hero--image-background .vsc-hero__content {
  max-width: 1000px;
}

.vsc-hero__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: inherit;
}

.vsc-hero__text {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  color: inherit;
  max-width: 558px;
}

.vsc-hero--image-inline .vsc-hero__text {
  max-width: 420px;
}

.vsc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.vsc-hero__actions .vsc-btn {
  font-size: 14px;
  line-height: 20px;
  padding: 12px 24px;
}

.vsc-hero__media {
  position: relative;
  flex: 0 0 500px;
  width: 500px;
  max-width: 100%;
  height: 330px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ececec;
}

.vsc-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vsc-hero__media .vsc-hero__media-controls {
  right: 12px;
  bottom: 12px;
}

.vsc-hero__media .vsc-hero__media-controls--carousel {
  left: 12px;
  right: 12px;
}

@media (max-width: 1024px) {
  .vsc-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 48px 32px 64px;
  }

  .vsc-hero--image-inline .vsc-hero__inner {
    align-items: stretch;
  }

  .vsc-hero__media {
    flex-basis: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 500 / 330;
  }

  .vsc-hero__headline {
    font-size: 36px;
  }

  .vsc-hero__content {
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .vsc-hero--full {
    min-height: 100svh;
  }

  .vsc-hero--short {
    min-height: 45svh;
  }
  
  .vsc-hero--default {
    min-height: 75svh;
  }
  
  .vsc-hero__inner {
    padding: 32px 24px 48px;
  }

  .vsc-hero__headline {
    font-size: 32px;
  }

  .vsc-hero__text {
    max-width: none;
  }
}

/* Media layer (video + carousel) */
.vsc-hero__media-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.vsc-hero__media-layer .vsc-hero__carousel-track,
.vsc-hero__media .vsc-hero__carousel-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.vsc-hero__video,
.vsc-hero__carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.vsc-hero__carousel-slide {
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  will-change: opacity, transform;
  transition:
    opacity var(--hero-slide-ms, 600ms) ease,
    transform var(--hero-slide-ms, 600ms) ease;
}

.vsc-hero__carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

/* Fade: stacked opacity only */
[data-hero-carousel][data-transition="fade"] .vsc-hero__carousel-slide {
  transform: none;
}

/* Swipe: horizontal slide */
[data-hero-carousel][data-transition="swipe"] .vsc-hero__carousel-slide {
  transform: translateX(0);
}

[data-hero-carousel][data-transition="swipe"] .vsc-hero__carousel-slide.is-enter-from-right {
  transform: translateX(100%);
  opacity: 1;
  z-index: 2;
  transition: none;
}

[data-hero-carousel][data-transition="swipe"] .vsc-hero__carousel-slide.is-enter-from-left {
  transform: translateX(-100%);
  opacity: 1;
  z-index: 2;
  transition: none;
}

[data-hero-carousel][data-transition="swipe"] .vsc-hero__carousel-slide.is-exit-to-left {
  transform: translateX(-100%);
  opacity: 1;
  z-index: 1;
}

[data-hero-carousel][data-transition="swipe"] .vsc-hero__carousel-slide.is-exit-to-right {
  transform: translateX(100%);
  opacity: 1;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .vsc-hero__carousel-slide {
    transition: none !important;
  }
}

.vsc-hero__media-controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.vsc-hero__media-controls--carousel {
  left: 24px;
  right: 24px;
  justify-content: flex-start;
}

.vsc-hero__media-controls--carousel [data-hero-carousel-autoplay] {
  margin-left: auto;
}

.vsc-hero__control {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  background: rgba(32, 42, 68, 0.65);
  transition: background 160ms ease, transform 160ms ease;
}

.vsc-hero__control:hover {
  background: rgba(32, 42, 68, 0.85);
}

.vsc-hero__control:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.vsc-hero__control svg {
  width: 18px;
  height: 18px;
  display: block;
}

.vsc-hero__carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vsc-hero__dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: width 400ms ease;
}

.vsc-hero__dot.is-active {
  width: 28px;
  background: rgba(255, 255, 255, 0.28);
}

.vsc-hero__dot-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .vsc-hero__dot {
    transition: none;
  }
}

@media (max-width: 768px) {
  .vsc-hero__media-controls {
    right: 16px;
    bottom: 16px;
  }

  .vsc-hero__media-controls--carousel {
    left: 16px;
    right: 16px;
  }
}
