/* Hero — 21st a.karamooz3232/cinematic-product-scroll-section (intro block, NLMedia copy) */

[data-section="hero"][data-cinematic-hero] {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: center;
  animation: cinematic-fade-in 1.2s ease-out both;
}

@keyframes cinematic-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

[data-cinematic-glow] {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
}

[data-cinematic-glow="primary"] {
  top: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  animation: cinematic-glow-pulse 4s ease-in-out infinite;
}

[data-cinematic-glow="secondary"] {
  bottom: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: color-mix(in srgb, var(--muted) 12%, transparent);
  filter: blur(150px);
}

@keyframes cinematic-glow-pulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

[data-cinematic-hero-content] {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: clamp(-4rem, -8vw, -2rem);
}

[data-cinematic-reveal-wrap] {
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: center;
}

[data-cinematic-reveal-wrap] > * {
  display: block;
  opacity: 0;
  transform: translateY(110%);
  animation: cinematic-reveal-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}

@keyframes cinematic-reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-cinematic-eyebrow] {
  margin: 0 0 clamp(1rem, 3vw, 1.5rem);
  font-family: var(--font-display);
  font-size: clamp(0.5625rem, 1.6vw, 0.625rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  padding-inline-start: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 768px) {
  [data-cinematic-eyebrow] {
    letter-spacing: 0.8em;
    padding-inline-start: 0.8em;
  }
}

#hero-title[data-cinematic-title] {
  margin: 0;
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--fg);
}

[data-cinematic-title-main] {
  font-size: clamp(2.25rem, 14vw, 10rem);
}

[data-cinematic-title-accent] span {
  font-size: clamp(1.35rem, 7vw, 5.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  letter-spacing: -0.02em;
}

[data-cinematic-lead] {
  margin: clamp(1.5rem, 4vw, 3rem) 0 0;
  max-width: 32rem;
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
}

[data-cinematic-scroll-hint] {
  position: absolute;
  bottom: clamp(2rem, 5vw, 3rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

[data-cinematic-scroll-hint]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

[data-cinematic-scroll-track] {
  display: block;
  position: relative;
  width: 1px;
  height: clamp(3rem, 8vw, 5rem);
  background: color-mix(in srgb, var(--fg) 10%, transparent);
  overflow: hidden;
}

[data-cinematic-scroll-beam] {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3rem;
  background: linear-gradient(
    to bottom,
    transparent,
    color-mix(in srgb, var(--fg) 50%, transparent),
    transparent
  );
  animation: cinematic-scroll-beam 2.2s ease-in-out infinite;
}

@keyframes cinematic-scroll-beam {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(220%);
  }
}

[data-cinematic-scroll-label] {
  font-family: var(--font-display);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--fg) 40%, transparent);
}

/* Mobile: optical center under sticky header, biased slightly down (desktop unchanged) */
@media (max-width: 720px) {
  [data-section="hero"][data-cinematic-hero] {
    /* Header already in flow — hero fills remaining first screen */
    min-height: calc(100dvh - 8rem);
    justify-content: center;
    /* More top inset than bottom → text sits lower, eats bottom void */
    padding-top: clamp(2.5rem, 7vh, 4rem);
    padding-bottom: 0.5rem;
  }

  [data-cinematic-hero-content] {
    margin-top: 0;
    padding-top: clamp(1.5rem, 4vh, 2.5rem);
    padding-bottom: clamp(3.5rem, 8vh, 5rem);
    justify-content: center;
  }

  [data-cinematic-eyebrow] {
    margin-bottom: 0.75rem;
  }

  [data-cinematic-lead] {
    margin-top: 1.25rem;
  }

  [data-cinematic-scroll-hint] {
    bottom: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-section="hero"][data-cinematic-hero],
  [data-cinematic-reveal-wrap] > *,
  [data-cinematic-glow="primary"],
  [data-cinematic-scroll-beam] {
    animation: none;
  }

  [data-cinematic-reveal-wrap] > * {
    opacity: 1;
    transform: none;
  }
}

/*
 * Loader gate: hero intro CSS animations must wait for site-loader.
 * html[data-loader="active"] while video plays; "done" starts intro under the fade.
 */
html[data-loader="active"] [data-section="hero"][data-cinematic-hero] {
  animation: none;
  opacity: 0;
}

html[data-loader="active"] [data-cinematic-reveal-wrap] > * {
  animation: none !important;
  opacity: 0;
  transform: translateY(110%);
}

html[data-loader="active"] [data-cinematic-glow="primary"],
html[data-loader="active"] [data-cinematic-scroll-beam] {
  animation: none;
}
