.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--gradient-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero.hero--compact {
  height: auto;
  min-height: 50vh;
  min-height: 50dvh;
}

.hero--compact .hero__content {
  min-height: 50vh;
  min-height: 50dvh;
}

.hero--compact .hero__scroll {
  display: none;
}

/* Full-bleed hero photo with a dark scrim for text legibility */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 8, 24, 0.95) 0%, rgba(6, 13, 42, 0.86) 26%, rgba(8, 20, 58, 0.5) 50%, rgba(8, 20, 58, 0.18) 72%, rgba(8, 20, 58, 0.08) 100%),
    linear-gradient(0deg, rgba(4, 8, 24, 0.55) 0%, transparent 30%);
}

.hero__content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
}

/* Product-detail hero: breadcrumb/eyebrow/headline sit at the bottom of the
   hero instead of vertically centered — used only where the hero carries a
   breadcrumb, so it reads as a header strip anchored just above the page
   content rather than a centered marketing headline. */
.hero--align-bottom .hero__content {
  align-items: flex-end;
}

.hero--compact.hero--align-bottom .hero__inner {
  padding-bottom: 32px;
}

.hero__inner {
  width: 100%;
  padding-top: 110px;
  padding-bottom: 70px;
}

.hero__copy {
  max-width: 640px;
}

.hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}

.hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease;
}

.hero__breadcrumb a:hover {
  color: #ffffff;
}

.hero__eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.hero__eyebrow::before {
  background: rgba(255, 255, 255, 0.85);
}

.hero__copy h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 4.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #ffffff;
  max-width: 15ch;
  text-shadow: 0 4px 30px rgba(2, 6, 20, 0.5);
}

.hero__copy p {
  margin-top: 24px;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 44ch;
  text-shadow: 0 2px 18px rgba(4, 9, 33, 0.4);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero__actions .hero-ghost-on-dark {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero__actions .hero-ghost-on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  z-index: 2;
}

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 3px;
  background: var(--color-blue);
  animation: scroll-dot 1.8s ease infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

@media (max-width: 1200px) {
  .hero__copy {
    max-width: 560px;
  }
}

@media (max-width: 960px) {
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(4, 8, 24, 0.55) 0%, rgba(4, 8, 24, 0.72) 55%, rgba(4, 8, 24, 0.92) 100%),
      linear-gradient(100deg, rgba(4, 8, 24, 0.6) 0%, transparent 70%);
  }

  .hero__inner {
    text-align: center;
    padding-top: 130px;
    padding-bottom: 40px;
  }

  .hero__copy {
    max-width: 100%;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__breadcrumb {
    justify-content: center;
  }

  .hero__copy h1,
  .hero__copy p {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .hero__scroll {
    display: none;
  }
}
