.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  max-width: 100%;
  contain: paint;
  color: var(--color-white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform: scale(1);
  will-change: transform;
}

.hero__media video,
.hero__media img,
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__yt {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero__yt iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 74, 67, 0.42) 0%, rgba(5, 7, 10, 0.5) 42%, rgba(5, 7, 10, 0.9) 100%),
    linear-gradient(90deg, rgba(5, 7, 10, 0.28), transparent 42%, transparent 58%, rgba(5, 7, 10, 0.22));
}

.hero__content {
  position: relative;
  z-index: 2;
  grid-row: 1;
  align-self: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 1.2rem) var(--gutter) 1.5rem;
  text-align: center;
  box-sizing: border-box;
}

.hero__eyebrow {
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 900ms var(--ease) 280ms forwards;
}

.hero.is-ready .hero__eyebrow {
  animation: rise 900ms var(--ease) 280ms forwards;
}

.hero__title {
  margin: 1.1rem 0 1.2rem;
  font-family: "Onest", var(--font);
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
  max-width: 100%;
  overflow-wrap: break-word;
}

.hero .btn--primary {
  background: var(--color-lime, #d1de6f);
  color: #0d0d0d;
  border-color: var(--color-lime, #d1de6f);
}

.hero .btn--ghost {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero__title span,
.hero__title span em {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}

.hero__title span em {
  font-style: normal;
  animation: rise 1000ms var(--ease) 420ms both;
}

.hero__title span:nth-child(2) em {
  animation-delay: 560ms;
}

.hero__description {
  max-width: min(46rem, 100%);
  margin: 0 auto 1.8rem;
  color: rgba(243, 245, 247, 0.82);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  font-weight: 400;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 900ms var(--ease) 900ms forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.hero__actions .btn {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 800ms var(--ease) 1080ms forwards;
}

.hero__actions .btn:nth-child(2) {
  animation-delay: 1180ms;
}

.hero__metrics {
  position: relative;
  z-index: 2;
  grid-row: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 2rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__metric {
  padding-top: 1.15rem;
  text-align: left;
}

.hero__metric-index {
  display: block;
  color: var(--color-lime, #d1de6f);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.4rem;
}

.hero__metric-label {
  font-size: clamp(0.78rem, 1.3vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 800ms var(--ease) 1400ms forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--color-lime, #d1de6f), transparent);
  animation: pulse-line 1.8s ease-in-out infinite;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes line-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}
