.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

.heroImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(39, 30, 20, 0.52) 0%, rgba(39, 30, 20, 0.13) 38%),
    linear-gradient(to top, rgba(39, 30, 20, 0.68) 0%, rgba(39, 30, 20, 0.16) 35%);
}

.content {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: clamp(3.2rem, 18vh, 9.5rem);
  max-width: 38rem;
  animation: riseFade 700ms ease both;
}

.title {
  margin: 0;
  color: #f6f5f2;
  font-family: var(--font-serif), "Times New Roman", serif;
  font-size: clamp(2rem, 8.5vw, 5.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.015em;
}

.subtitle {
  margin: 0.85rem 0 0;
  max-width: 32rem;
  color: rgba(247, 247, 245, 0.92);
  font-size: clamp(0.87rem, 2.25vw, 1rem);
  line-height: 1.6;
  letter-spacing: 0.015em;
}

.cta {
  display: inline-block;
  margin-top: 1.1rem;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  padding-bottom: 0.2rem;
  transition: border-color 200ms ease, opacity 200ms ease;
}

.cta:hover,
.cta:focus-visible {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.95);
}

@keyframes riseFade {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .content {
    left: clamp(2rem, 6vw, 5rem);
    right: auto;
    bottom: clamp(4.6rem, 17vh, 11rem);
  }

  .subtitle {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .content {
    animation: none;
  }

  .cta,
  .cta:hover,
  .cta:focus-visible {
    transition: none;
  }
}
