﻿/* ============ HERO.CSS ============ */

/* --- Hero Layout --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
}

.hero--short {
  min-height: 82vh;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero-overlay {
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.72) 72%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.04) 0%, rgba(10, 10, 10, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100vw - 2 * var(--container-x)));
  margin: 0 0 12vh var(--container-x);
  display: grid;
  gap: 18px;
}

.hero-content--center {
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-style: italic;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.hero-title--page {
  font-size: var(--text-h1);
}

.hero-body {
  max-width: 42rem;
  color: var(--color-text-muted);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  transform: translateX(-50%);
  opacity: 0.8;
  transition: opacity var(--duration-base) ease;
}

.scroll-indicator.is-hidden {
  opacity: 0;
}

.scroll-indicator__arrow {
  width: 18px;
  height: 18px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

.page-header-offset {
  padding-top: calc(var(--nav-height) + 24px);
}
