/* =============================================================================
   Hero slider
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100%;
  overflow: hidden;
  background: rgb(var(--c-primary-dark));
  color: rgb(var(--c-neutral-lightest));
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 26, 60, 0.15) 0%, rgba(20, 26, 60, 0) 30%, rgba(20, 26, 60, 0.85) 100%);
  pointer-events: none;
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slide {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__slide.-active {
  opacity: 1;
}

.hero__slide picture,
.hero__image {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__image {
  max-width: none;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s ease-out;
}

.hero__slide.-active .hero__image {
  transform: scale(1);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  padding: 0 calc(4% + var(--gs-inner, 0px)) 1.25rem calc(4% + var(--gs-inner, 0px));
}

.hero .hero__tag {
  margin: 0 0 0.7rem;
  background: rgb(var(--c-neutral-lightest));
  color: rgb(var(--c-primary));
}

.hero__headline {
  margin: 0;
  max-width: 1000px;
  color: rgb(var(--c-neutral-lightest));
  font-size: clamp(2rem, 6.4vw, 5.75rem);
  font-weight: var(--f-weight-eb);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  hyphens: manual;
}

.hero__word {
  display: block;
  color: rgb(var(--c-accent, 188, 211, 255));
}

.hero__word.-animate {
  animation: heroWord 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero__text {
  max-width: 620px;
}

.hero__text p {
  margin: 0 0 0.6rem;
  color: rgb(var(--c-neutral-lightest));
  font-size: var(--f-size);
  line-height: 1.4;
}

.hero__text p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.2rem 0 0;
}

.hero__text p:last-child:not(:has(a)) {
  display: block;
}

@keyframes heroWord {
  from {
    opacity: 0;
    transform: translateY(40%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__text .font__button {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* =============================================================================
   Media Queries
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .hero__image {
    transition: none;
  }

  .hero__word.-animate {
    animation: none;
  }
}

@media (min-width: 640px) {
  .hero__content {
    gap: 1.2rem;
    padding-bottom: calc(var(--g-gap-l) + 1rem);
  }

  .hero__text p {
    margin-bottom: 1rem;
    font-size: var(--f-size-l-2);
    line-height: 1.5;
  }

  .hero__text p:last-child {
    gap: 0.8rem;
    margin-top: 0.4rem;
  }

  .hero__text .font__button {
    padding: 0.4rem 1.5rem;
    font-size: 1rem;
  }
}

@media (min-width: 1280px) {
  .hero__content {
    padding-left: calc(6% + var(--gs-inner, 0px));
    padding-right: calc(6% + var(--gs-inner, 0px));
  }
}

@media (min-width: 1580px) {
  .hero__content {
    padding-left: calc((100% - 1440px) / 2 + var(--gs-inner, 0px));
    padding-right: calc((100% - 1440px) / 2 + var(--gs-inner, 0px));
  }
}
