/* ============================================================
   BITES — Cinematic Hero
   Full-bleed video hero with overlay, headline, parallax
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  height: calc(100svh - var(--header-h));
  margin-top: var(--header-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Video / Poster Background ───────────────────────────── */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: var(--z-behind);
}

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

.hero__video {
  display: block;
}

.hero__poster {
  display: none;
}

/* Show poster as fallback */
.hero__media--poster-only .hero__video {
  display: none;
}

.hero__media--poster-only .hero__poster {
  display: block;
}

/* ── Dark Overlay ────────────────────────────────────────── */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.30) 0%,
    rgba(20, 20, 20, 0.42) 50%,
    rgba(20, 20, 20, 0.52) 100%
  );
  z-index: 1;
}

/* ── Content ─────────────────────────────────────────────── */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  padding-inline: var(--space-page-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ── Eyebrow ─────────────────────────────────────────────── */
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--bites-cream);
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
}

/* ── Headline ────────────────────────────────────────────── */
.hero__headline {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  text-transform: uppercase;
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero);
  color: var(--bites-white);
  /* Each line is wrapped in .hero__line for staggered reveal */
}

.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line-inner {
  display: block;
  transform: translateY(110%);
  will-change: transform;
}

/* ── Subtitle ────────────────────────────────────────────── */
.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  color: var(--bites-cream);
  max-width: 44ch;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
}

/* ── CTA Group ───────────────────────────────────────────── */
.hero__cta-group {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 32px;
  opacity: 0;
  transform: translateY(20px);
}

.hero__cta-primary {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: var(--bites-yellow);
  color: var(--bites-charcoal);
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-ui) var(--ease-out),
              background-color var(--dur-ui) var(--ease-out);
  white-space: nowrap;
}

.hero__cta-primary:hover {
  transform: translateY(-2px);
  background-color: #f0b520;
}

.hero__cta-secondary {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--bites-cream);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur-fast) ease;
}

.hero__cta-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--bites-cream);
  transform: scaleX(0.6);
  transform-origin: left;
  transition: transform var(--dur-ui) var(--ease-out);
}

.hero__cta-secondary:hover::after {
  transform: scaleX(1);
}

.hero__cta-secondary:hover {
  color: var(--bites-yellow);
}

/* ── Scroll Cue ──────────────────────────────────────────── */
.hero__scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.hero__scroll-text {
  font-family: var(--font-body);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bites-cream);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bites-cream);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    height: calc(100svh - var(--header-h-mobile));
    margin-top: var(--header-h-mobile);
  }

  .hero__content {
    padding-inline: var(--space-page-x-mobile);
    gap: 18px;
  }

  .hero__cta-group {
    flex-direction: column;
    gap: 16px;
  }

  .hero__scroll-cue {
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line::after {
    animation: none;
    top: 0;
  }
}
