.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;

  padding: var(--space-xl) var(--container-inset) var(--section-pad-bottom);
  color: var(--color-on-dark);
  background-color: var(--color-dark);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:

    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.8) 12%,
      rgba(0, 0, 0, 0.64) 24%,
      rgba(0, 0, 0, 0.46) 36%,
      rgba(0, 0, 0, 0.3) 48%,
      rgba(0, 0, 0, 0.16) 60%,
      rgba(0, 0, 0, 0.06) 70%,
      rgba(0, 0, 0, 0) 78%
    ),

    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.38) 6%,
      rgba(0, 0, 0, 0.2) 12%,
      rgba(0, 0, 0, 0.08) 18%,
      rgba(0, 0, 0, 0) 25%
    ),

    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.34) 15%,
      rgba(0, 0, 0, 0.18) 30%,
      rgba(0, 0, 0, 0.06) 45%,
      rgba(0, 0, 0, 0) 60%
    ),

    linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.hero__slider {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  will-change: opacity;
}

.hero__slide.is-active {
  opacity: 1;
}

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

.hero__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.hero__logo {
  display: inline-flex;
  flex-shrink: 0;
}

.hero__logo img {
  display: block;
  width: 190px;
  height: auto;
}

.hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.hero__nav-link {
  font-size: var(--text-sm);
  line-height: 1;
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-on-dark);

  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transition: color var(--transition-fast);
}

.hero__nav-link:hover {
  color: var(--color-brand);
}

.hero__content {
  margin-top: auto;
  max-width: 1120px;
}

.hero__title {
  font-size: clamp(2rem, 1.25rem + 2.75vw, 3.25rem);
  line-height: 1.2;
  font-weight: var(--fw-light);
  letter-spacing: var(--tracking-tightest);
  text-transform: uppercase;
  color: var(--color-on-dark);
  text-wrap: balance;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 18px rgba(0, 0, 0, 0.36);
}

.hero__nowrap {
  white-space: nowrap;
}

.hero__sub {
  margin-top: 24px;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  font-weight: var(--fw-regular);
  color: var(--color-on-dark-soft);
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 32px;
  min-height: 48px;
  padding: 0 32px;
  font-size: var(--text-sm);
  line-height: 1;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-cta);
  text-transform: uppercase;
  color: var(--color-ink);
  background-color: var(--color-on-dark);
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-base),
              color var(--transition-base),
              box-shadow var(--transition-base);
}

.hero__cta:hover {
  background-color: var(--color-brand);
  color: var(--color-on-brand);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .hero {
    padding: var(--space-lg) var(--container-inset) calc(var(--space-xl) + 0.75rem);
  }

  .hero::after {
    background:
      linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.82) 18%,
        rgba(0, 0, 0, 0.55) 32%,
        rgba(0, 0, 0, 0.25) 44%,
        rgba(0, 0, 0, 0.05) 54%,
        rgba(0, 0, 0, 0) 62%
      ),
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.22) 8%,
        rgba(0, 0, 0, 0) 18%
      ),
      linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06));
  }

  .hero__slide {
    background-position: center 22%;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(1.75rem, 1.1rem + 3.2vw, 2.5rem);
    line-height: 1.18;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 2px 18px rgba(0, 0, 0, 0.45);
  }

  .hero__sub {
    margin-top: 14px;
    font-size: clamp(0.875rem, 0.82rem + 0.3vw, 1rem);
    line-height: 1.38;
    white-space: normal;
    max-width: 540px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65), 0 2px 14px rgba(0, 0, 0, 0.4);
  }

  .hero__cta {
    margin-top: 20px;
    min-height: 44px;
    padding: 0 26px;
    font-size: 0.8125rem;
  }

  .hero__nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-bottom: var(--space-xl);
  }

  .hero__slide {
    background-position: center 18%;
  }

  .hero__title {
    font-size: clamp(1.625rem, 1rem + 3vw, 2.25rem);
  }

  .hero__cta {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}
