.page-home {
  overflow: hidden;
  background: var(--ink);
}

#rain-canvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: end start;
  padding: calc(var(--nav-height) + 2rem) var(--page-pad) clamp(2.5rem, 8vh, 5rem);
  color: var(--paper);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("../images/wallpaper.jpg") center / cover no-repeat;
  transform: scale(1.08);
  animation: hero-drift 14s var(--ease) forwards;
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(8, 10, 9, 0.72) 0%, rgba(8, 10, 9, 0.28) 48%, rgba(8, 10, 9, 0.55) 100%),
    linear-gradient(to top, rgba(8, 10, 9, 0.75), transparent 42%);
}

.hero-text {
  position: relative;
  z-index: 6;
  max-width: 38rem;
  animation: fade-up 1s var(--ease) both;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.hero-text h1 {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(241, 243, 242, 0.92);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 300;
  color: rgba(241, 243, 242, 0.72);
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: #c99958;
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(241, 243, 242, 0.35);
}

.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(241, 243, 242, 0.08);
}

@keyframes hero-drift {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero-text {
    animation: none;
  }

  .hero-media {
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .hero {
    place-items: center start;
    padding-top: calc(var(--nav-height) + 5rem);
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
  }
}
