.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-cream);
  background: var(--color-charcoal);
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0;
  animation: fade-in 1.8s var(--ease-out) forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(22, 22, 21, 0.82) 0%,
      rgba(22, 22, 21, 0.32) 42%,
      rgba(22, 22, 21, 0.16) 100%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + var(--space-6)) var(--space-4) var(--space-7);
  max-width: 36rem;
}

.hero-kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-cream) 68%, transparent);
  margin-bottom: var(--space-4);
  opacity: 0;
  transform: translateY(0.75rem);
  animation: rise-in 1s var(--ease-out) 0.3s forwards;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: var(--space-4);
  opacity: 0;
  transform: translateY(1rem);
  animation: rise-in 1.1s var(--ease-out) 0.45s forwards;
}

.hero-lede {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.55;
  max-width: 26rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--color-cream) 82%, transparent);
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(1rem);
  animation: rise-in 1.1s var(--ease-out) 0.65s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  opacity: 0;
  transform: translateY(0.75rem);
  animation: rise-in 1s var(--ease-out) 0.85s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--color-cream) 42%, transparent);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 250ms ease, color 250ms ease, opacity 250ms ease;
}

.btn:hover {
  opacity: 1;
  color: var(--color-charcoal);
  background: var(--color-cream);
}

.btn-ghost {
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  padding-inline: 0.35rem;
}

.btn-ghost:hover {
  background: transparent;
  color: var(--color-cream);
}

.hero-scroll {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-6);
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-cream) 55%, transparent);
  text-decoration: none;
  opacity: 0;
  animation: rise-in 1s var(--ease-out) 1.05s forwards;
}

.hero-scroll:hover {
  opacity: 1;
  color: var(--color-cream);
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .hero-content {
    padding: calc(var(--nav-height) + var(--space-8)) var(--space-7) var(--space-9);
  }

  .hero-scroll {
    right: var(--space-7);
    bottom: var(--space-8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero-kicker,
  .hero-title,
  .hero-lede,
  .hero-actions,
  .hero-scroll {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
