.hero {
  position: relative;
  min-height: 110svh;
  overflow: hidden;
  background: #07130d;
  color: var(--white);
}

.hero::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(320px, 44svh, 560px);
  background:
    linear-gradient(
      180deg,
      rgba(4, 4, 5, 0) 0%,
      rgba(4, 4, 5, 0.04) 18%,
      rgba(4, 4, 5, 0.12) 34%,
      rgba(4, 4, 5, 0.26) 48%,
      rgba(4, 4, 5, 0.48) 62%,
      rgba(4, 4, 5, 0.7) 76%,
      rgba(4, 4, 5, 0.86) 87%,
      rgba(4, 4, 5, 0.97) 96%,
      #040405 100%
  );
  -webkit-backdrop-filter: blur(14px) saturate(102%);
  backdrop-filter: blur(14px) saturate(102%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.06) 18%, rgba(0, 0, 0, 0.34) 46%, rgba(0, 0, 0, 0.76) 72%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.06) 18%, rgba(0, 0, 0, 0.34) 46%, rgba(0, 0, 0, 0.76) 72%, #000 100%);
  content: "";
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-position: 58% 46%;
  background-size: cover;
  transform: scale(1.02);
  animation:
    heroImageReveal 1800ms var(--ease-out) both,
    heroDrift 22s var(--ease-out) 1800ms forwards;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 8, 16, 0.38), rgba(2, 8, 16, 0.06) 48%, rgba(2, 8, 16, 0.18)),
    linear-gradient(180deg, rgba(2, 8, 16, 0.08), rgba(2, 8, 16, 0.14) 36%, rgba(0, 0, 0, 0.86) 100%);
  content: "";
}

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(2, 5, 8, 0.72) 62%, rgba(3, 5, 4, 0.54) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 260px 24px clamp(72px, 9svh, 132px);
  text-align: center;
  animation: heroContentReveal 1500ms var(--ease-out) 520ms both;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--brand-serif);
  font-size: clamp(33px, 3.2vw, 58px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.hero-summary {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.48;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
}

.hero-secondary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(13px, 0.78vw, 16px);
  transition: border-color 220ms ease, color 220ms ease, transform 220ms var(--ease-out);
}

.hero-secondary:hover,
.hero-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}

@keyframes heroImageReveal {
  from {
    opacity: 0;
    filter: brightness(0.74) saturate(0.86) blur(2px);
    transform: scale(1.14);
  }
  to {
    opacity: 1;
    filter: brightness(1) saturate(1) blur(0);
    transform: scale(1.06);
  }
}

@keyframes heroContentReveal {
  from {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1.02);
  }
}
