/* ==========================================================================
   hero.css — cleaner full-bleed hero: looping video background (with a
   robust static-image fallback) + the signature spark motif. Content is
   deliberately minimal — eyebrow, headline, two CTAs — everything else
   that used to compete for attention here (subcopy, trust line, slide
   dots) either moved to its own section elsewhere on the page or was cut.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--indigo-950);
  isolation: isolate;
}

/* ---- Background media: video, with an image fallback ------------------
   .hero__media-fallback is hidden by default (video is primary). It's
   shown instead of the video for prefers-reduced-motion, and by JS if the
   video source fails to load — see initHeroVideo() in main.js. This means
   the hero degrades gracefully to the existing hero-sparks.jpg any time a
   video file isn't present yet, isn't supported, or motion is disabled. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--indigo-950);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__media-fallback {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-sparks.jpg');
  background-size: cover;
  background-position: center;
  display: none;
}

.hero__media.video-failed .hero__video {
  display: none;
}
.hero__media.video-failed .hero__media-fallback {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
  .hero__media-fallback {
    display: block;
  }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(28, 18, 48, 0.94) 15%, rgba(28, 18, 48, 0.8) 45%, rgba(74, 50, 128, 0.6) 75%, rgba(230, 126, 0, 0.3) 100%),
    linear-gradient(0deg, rgba(20, 13, 33, 0.8) 0%, rgba(20, 13, 33, 0.2) 45%);
}

/* ---- Signature motif: drifting embers -----------------------------------
   Ties the brand name (Prakash = "light") to the sparks in the client's own
   brochure photography. Kept to the hero only — the one place this page
   spends its animation budget. ~18 lightweight divs, no canvas needed. */
.hero__sparks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  bottom: -10px;
  width: var(--s, 4px);
  height: var(--s, 4px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, var(--ember-400) 45%, transparent 75%);
  opacity: 0;
  animation: spark-rise var(--dur, 7s) ease-in var(--delay, 0s) infinite;
  box-shadow: 0 0 6px 1px rgba(245, 166, 35, 0.6);
}

@keyframes spark-rise {
  0% {
    transform: translate(0, 0) scale(0.6);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  75% {
    opacity: 0.75;
  }
  100% {
    transform: translate(var(--drift, 20px), -92vh) scale(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spark {
    animation: none;
    display: none;
  }
}

/* ---- Content ------------------------------------------------------------
   Deliberately short: eyebrow + headline + two buttons. Nothing else
   competes for attention in the hero itself anymore. */
.hero__inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-6);
  max-width: 780px;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ember-300);
  margin-bottom: var(--sp-5);
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.06;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-8);
  text-wrap: balance;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.hero__ctas .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.hero__ctas .btn-outline:hover {
  border-color: #fff;
}

/* ---- Scroll cue — replaces the old slide-indicator dots ---------------- */
.hero__scroll-cue {
  position: relative;
  z-index: 3;
  flex: none;
  align-self: center;
  margin-block: var(--sp-4) var(--sp-7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: hero-scroll-cue-bounce 2.2s ease-in-out infinite;
  transition: color 0.2s var(--ease);
}
.hero__scroll-cue:hover {
  color: #fff;
}
.hero__scroll-cue svg {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
}

@keyframes hero-scroll-cue-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue {
    animation: none;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 94vh;
  }
  .hero__inner {
    padding-top: var(--sp-8);
    padding-bottom: var(--sp-4);
  }
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__ctas .btn {
    width: 100%;
  }
  .hero__scroll-cue {
    display: none;
  }
}
