.hero {
  position: relative;
  color: var(--color-text-on-primary);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -40px 0;
  background-image: linear-gradient(100deg, rgba(13, 29, 61, 0.94) 0%, rgba(13, 29, 61, 0.75) 55%, rgba(13, 29, 61, 0.5) 100%), url('../../assets/images/hero-port.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
  opacity: 0;
  animation: hero-bg-fade 1s ease both;
  z-index: 0;
}

@keyframes hero-bg-fade {
  to {
    opacity: 1;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--space-2xl);
  min-height: 560px;
}

.hero__content {
  max-width: 40rem;
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  animation: hero-in 0.8s ease both;
  animation-delay: 0.05s;
}

.hero__title {
  color: var(--color-white);
  font-size: var(--fs-3xl);
  max-width: 22ch;
  animation: hero-in 0.8s ease both;
  animation-delay: 0.15s;
}

.hero__text {
  color: var(--color-text-on-primary);
  opacity: 0.9;
  font-size: var(--fs-md);
  margin-top: var(--space-md);
  animation: hero-in 0.8s ease both;
  animation-delay: 0.28s;
}

.hero__note {
  margin-top: var(--space-xs);
  font-size: var(--fs-sm);
  color: var(--color-accent);
  animation: hero-in 0.8s ease both;
  animation-delay: 0.38s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  animation: hero-in 0.8s ease both;
  animation-delay: 0.48s;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg,
  .hero__eyebrow,
  .hero__title,
  .hero__text,
  .hero__note,
  .hero__actions {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    min-height: 460px;
    padding-block: var(--space-xl);
    text-align: center;
  }

  .hero__content {
    max-width: none;
    margin-inline: auto;
  }

  .hero__title,
  .hero__text {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }
}
