.beautys-hero {
  --beautys-hero-accent: #eba2ab;
  --beautys-hero-ink: #000;
  --beautys-hero-button: #272727;
  width: 100%;
  overflow: hidden;
  font-family: "Josefin Sans", sans-serif;
}

.beautys-hero__viewport,
.beautys-hero__slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1903 / 743;
  overflow: hidden;
}

.beautys-hero__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  visibility: hidden;
  pointer-events: none;
}

.beautys-hero__slide.is-active,
.beautys-hero__slide.is-leaving {
  visibility: visible;
}

.beautys-hero__slide.is-entering {
  z-index: 2;
  pointer-events: auto;
}

.beautys-hero__slide.is-leaving {
  z-index: 1;
}

.beautys-hero__picture,
.beautys-hero__image {
  display: block;
  width: 100%;
  height: 100%;
}

.beautys-hero__picture {
  opacity: 0;
  transition: opacity var(--beautys-hero-transition, 2000ms) ease;
}

.beautys-hero__slide.is-entering .beautys-hero__picture {
  opacity: 1;
}

.beautys-hero__slide.is-leaving .beautys-hero__picture {
  opacity: 0;
}

.beautys-hero__image {
  object-fit: cover;
}

.beautys-hero__content {
  position: absolute;
  left: 11%;
  bottom: 30%;
  z-index: 3;
  display: flex;
  width: min(672px, 46vw);
  flex-direction: column;
  align-items: flex-start;
  color: var(--beautys-hero-ink);
  text-align: left;
  text-transform: none;
}

.beautys-hero__eyebrow {
  margin: 0 0 15px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 2.5px;
}

.beautys-hero__title {
  margin: 0 0 25px;
  font-size: 64px;
  font-weight: 300;
  line-height: 80px;
  text-transform: uppercase;
}

.beautys-hero__title-bold {
  margin: 0 0 7px;
  color: inherit;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.beautys-hero__title-light {
  display: block;
  font: inherit;
  letter-spacing: 0;
  white-space: nowrap;
}

.beautys-hero__button-wrap {
  display: block;
}

.beautys-hero__button {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border: 0;
  background: var(--beautys-hero-button);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.beautys-hero__button:hover,
.beautys-hero__button:focus-visible {
  background: var(--beautys-hero-accent);
  color: #fff;
}

.beautys-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, visibility 0.25s ease, background-color 0.25s ease;
}

.beautys-hero:hover .beautys-hero__arrow,
.beautys-hero:focus-within .beautys-hero__arrow {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.beautys-hero__arrow:hover,
.beautys-hero__arrow:focus-visible {
  background: var(--beautys-hero-accent);
}

.beautys-hero__source-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beautys-hero__arrow--prev {
  left: 30px;
}

.beautys-hero__arrow--next {
  right: 30px;
}

.beautys-hero__dots {
  position: absolute;
  right: 0;
  bottom: 8%;
  left: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.beautys-hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  pointer-events: auto;
  transition: background-color 0.25s ease;
}

.beautys-hero__dot.is-active {
  background: var(--beautys-hero-accent);
}

.beautys-hero__slide.is-entering .beautys-hero__title {
  animation:
    beautysFadeInLeft 1.5s ease-in-out both,
    beautysHeroHide 650ms ease-out calc(var(--beautys-hero-interval, 4000ms) - 1000ms) both;
}

.beautys-hero__slide.is-entering .beautys-hero__eyebrow {
  animation:
    beautysFadeInLeft 1.8s ease-in-out both,
    beautysHeroHide 650ms ease-out calc(var(--beautys-hero-interval, 4000ms) - 1000ms) both;
}

.beautys-hero__slide.is-entering .beautys-hero__button-wrap {
  animation:
    beautysFadeInLeft 1.9s ease-in-out both,
    beautysHeroHide 650ms ease-out calc(var(--beautys-hero-interval, 4000ms) - 1000ms) both;
}

.beautys-hero.is-paused .beautys-hero__slide.is-entering .beautys-hero__title,
.beautys-hero.is-paused .beautys-hero__slide.is-entering .beautys-hero__eyebrow,
.beautys-hero.is-paused .beautys-hero__slide.is-entering .beautys-hero__button-wrap {
  animation-play-state: paused;
}

.beautys-hero__slide.is-active:not(.is-entering) .beautys-hero__content,
.beautys-hero__slide.is-leaving .beautys-hero__content {
  opacity: 0;
  visibility: hidden;
}

.beautys-hero__slide.is-leaving .beautys-hero__title,
.beautys-hero__slide.is-leaving .beautys-hero__eyebrow,
.beautys-hero__slide.is-leaving .beautys-hero__button-wrap {
  animation: none;
}

@keyframes beautysFadeInLeft {
  from {
    transform: translateX(-100px);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes beautysHeroHide {
  from {
    opacity: 1;
    visibility: visible;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 1199px) {
  .beautys-hero__title,
  .beautys-hero__title-bold {
    font-size: 36px;
  }

  .beautys-hero__title {
    margin-bottom: 14px;
    line-height: 46px;
  }

  .beautys-hero__eyebrow {
    margin-bottom: 16px;
    font-size: 16px;
  }
}

@media (hover: none) {
  .beautys-hero__arrow {
    display: none;
  }
}

@media (max-width: 991px) {
  .beautys-hero__content {
    width: 60%;
  }

  .beautys-hero__title,
  .beautys-hero__title-bold {
    font-size: 30px;
  }

  .beautys-hero__title {
    margin-bottom: 10px;
    line-height: 30px;
  }

  .beautys-hero__eyebrow {
    margin-bottom: 10px;
  }
}

@media (max-width: 767px) {
  .beautys-hero__viewport,
  .beautys-hero__slides {
    aspect-ratio: 375 / 575;
  }

  .beautys-hero__content {
    left: 5%;
    bottom: 71%;
    width: 90%;
  }

  .beautys-hero__eyebrow {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1;
  }

  .beautys-hero__title {
    margin-bottom: 10px;
    font-size: 26px;
    line-height: 30px;
  }

  .beautys-hero__title-bold {
    margin-bottom: 0;
    font-size: 34px;
    line-height: 1.2;
  }

  .beautys-hero__button {
    min-height: 38px;
    padding: 12px 25px;
  }

  .beautys-hero__arrow {
    display: none;
  }

  .beautys-hero__arrow--prev {
    left: 0;
  }

  .beautys-hero__arrow--next {
    right: 0;
  }

  .beautys-hero__dots {
    right: 8px;
    bottom: 4%;
    left: auto;
    padding: 5px 3px;
    background: rgb(0 0 0 / 50%);
  }
}

@media (max-width: 425px) {
  .beautys-hero__content {
    bottom: 67%;
  }

  .beautys-hero__title-bold {
    font-size: 30px;
  }
}

@media (max-width: 320px) {
  .beautys-hero__content {
    bottom: 65%;
  }

  .beautys-hero__title,
  .beautys-hero__title-bold {
    font-size: 18px;
    line-height: 24px;
  }
}
