/* ============================================================
   HERO.CSS — Hero Section
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-ink);
}

/* ── Background Media ─────────────────────────────────────── */

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video,
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient overlay — ensures text legibility */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 47, 48, 0.85) 0%,
    rgba(44, 47, 48, 0.60) 50%,
    rgba(44, 47, 48, 0.45) 100%
  );
  z-index: 1;
}

/* ── Content ──────────────────────────────────────────────── */

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-height) + var(--space-6));
}

.hero__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-block: var(--space-6) var(--space-10);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  justify-items: start;
}

/* ── Headline ─────────────────────────────────────────────── */

.hero__overline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  opacity: 0;
  animation: hero-enter 0.7s var(--ease-out) 0.1s forwards;
}

.hero__headline {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-hero);
  line-height: var(--leading-tight);
  color: var(--color-surface-high);
  margin-bottom: var(--space-4);
  opacity: 0;
  animation: hero-enter 0.7s var(--ease-out) 0.2s forwards;
}

.hero__headline-static {
  display: block;
  white-space: nowrap;
}

.hero__headline-scramble {
  display: block;
  color: var(--color-accent);
  min-height: 1.1em;
  white-space: nowrap;
  font-size: min(1em, calc(100vw / 13));
}

.hero__subheadline {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: rgba(255, 255, 255, 0.80);
  max-width: 640px;
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: hero-enter 0.7s var(--ease-out) 0.35s forwards;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
  opacity: 0;
  animation: hero-enter 0.7s var(--ease-out) 0.5s forwards;
}

/* ── Social Proof Row ─────────────────────────────────────── */

.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  animation: hero-enter 0.7s var(--ease-out) 0.65s forwards;
}

.hero__proof-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__proof-value {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-surface-high);
}

.hero__proof-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.60);
}

.hero__proof-sep {
  width: 1px;
  height: 20px;
  background-color: rgba(255,255,255,0.15);
}

/* ── Hero Scroll Indicator ────────────────────────────────── */

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: hero-enter 0.7s var(--ease-out) 1s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

.hero__scroll-label {
  display: none;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── Hero Entry Animation ─────────────────────────────────── */

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Page Hero (compact, for inner pages) ────────────────── */

.page-hero {
  position: relative;
  min-height: 38vh;
  min-height: 38svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-16);
  background-color: var(--color-ink);
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(to right, transparent, rgba(202,253,0,0.3), transparent);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(44, 47, 48, 0.88) 0%,
    rgba(44, 47, 48, 0.70) 60%,
    rgba(44, 47, 48, 0.55) 100%
  );
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.page-hero__overline {
  margin-bottom: var(--space-4);
}

.page-hero__headline {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-display);
  color: var(--color-surface-high);
  line-height: var(--leading-tight);
  max-width: 700px;
  margin-bottom: var(--space-5);
}

.page-hero__subheadline {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.70);
  max-width: 560px;
  line-height: var(--leading-snug);
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero__inner {
    padding-block: var(--space-10) var(--space-12);
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__proof {
    gap: var(--space-4);
  }

  .hero__scroll {
    display: none;
  }

  .page-hero__headline {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 480px) {
  .hero__proof-sep {
    display: none;
  }
}
