/* ==========================================================================
   Scroll-scrubbed gommoni hero
   Full-bleed WebP frame sequence (drawn to canvas) pinned + scrubbed on scroll,
   with product cards that swap one-at-a-time across the sequence.
   Standalone stylesheet (not part of the Prepros SCSS build). Uses palette.css vars.
   ========================================================================== */

.boat-hero {
  --hero-overlay: #15111f;
  --hero-text: #f3eefc;
  --hero-text-muted: #c7bfd8;
  --hero-accent: #d4c1ff;
  position: relative;
  width: 100%;
  /* the section is tall via ScrollTrigger's injected pin-spacer; this is the
     fallback height when JS/pin is unavailable */
  background: var(--hero-overlay);
}

.boat-hero__pin {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* --- frame canvas ------------------------------------------------------- */
.boat-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* legibility tint over the footage (mirrors .intro-section:before) */
.boat-hero__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--hero-overlay) 48%, transparent) 0%,
      color-mix(in srgb, var(--hero-overlay) 14%, transparent) 22%,
      color-mix(in srgb, var(--hero-overlay) 12%, transparent) 60%,
      color-mix(in srgb, var(--hero-overlay) 58%, transparent) 100%
    );
}

/* keep the navbar transparent (cinematic) while the hero is pinned */
body.boat-hero-active .sticky-wrapper.is-sticky .site-navbar {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.boat-hero-active .sticky-wrapper.is-sticky .site-navigation.border-bottom {
  border-bottom-color: transparent !important;
}

/* --- loading state ------------------------------------------------------ */
.boat-hero__loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-overlay);
  color: color-mix(in srgb, var(--hero-text) 90%, transparent);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.5s ease;
}

.boat-hero__loader-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--hero-accent);
  transition: width 0.2s ease;
}

.boat-hero.is-ready .boat-hero__loader {
  opacity: 0;
  pointer-events: none;
}

/* --- overlay stages (intro + cards) ------------------------------------ */
.boat-hero__stages {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.js-hero-stage {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0s linear 0.55s;
}

.js-hero-stage.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0s;
  pointer-events: auto;
}

/* intro headline (stage 0) */
.boat-hero__copy {
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(calc(-50% + 24px));
  text-align: center;
  padding: 0 1.5rem;
}

.boat-hero__copy.is-active {
  transform: translateY(-50%);
}

.boat-hero__copy h1 {
  margin: 0 0 1rem;
  color: color-mix(in srgb, var(--hero-text) 98%, transparent);
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  text-shadow: 0 2px 24px color-mix(in srgb, var(--hero-overlay) 45%, transparent);
}

.boat-hero__copy p {
  margin: 0 auto;
  max-width: 36rem;
  color: color-mix(in srgb, var(--hero-text) 88%, transparent);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

/* scroll hint under the intro */
.boat-hero__hint {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: color-mix(in srgb, var(--hero-text-muted) 92%, transparent);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* bottom-left fixed card shell */
.boat-hero__cards {
  position: absolute;
  left: 2.5rem;
  bottom: 3rem;
  z-index: 3;
  width: min(92vw, 24rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  pointer-events: none;
}

.boat-hero__card {
  width: 100%;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.boat-hero__card-shell {
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0s linear 0.55s;
  pointer-events: none;
}

.boat-hero__card-shell.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0s;
  pointer-events: auto;
}

.boat-hero__card-shell.is-changing {
  opacity: 0.5;
}

.boat-hero__card-data {
  display: none;
}

.boat-hero__card-eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--hero-accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.boat-hero__card h2 {
  margin: 0 0 0.5rem;
  color: var(--hero-text);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.boat-hero__card p {
  margin: 0 0 1.25rem;
  color: var(--hero-text-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
}

.boat-hero__card .btn {
  margin-left: auto;
  text-decoration: none;
}

/* final CTA stage — centered, prominent */
.boat-hero__cta {
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(calc(-50% + 24px));
  text-align: center;
  padding: 0 1.5rem;
}

.boat-hero__cta.is-active {
  transform: translateY(-50%);
}

.boat-hero__cta h2 {
  margin: 0 0 0.75rem;
  color: color-mix(in srgb, var(--hero-text) 98%, transparent);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 2px 24px color-mix(in srgb, var(--hero-overlay) 45%, transparent);
}

.boat-hero__cta p {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  color: color-mix(in srgb, var(--hero-text) 88%, transparent);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
}

.boat-hero__cta .btn {
  text-decoration: none;
}

/* progress dots showing which gommone is active */
.boat-hero__nav {
  position: absolute;
  right: 2.5rem;
  bottom: 3.25rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.boat-hero__nav.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.boat-hero__nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--background) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--background) 70%, transparent);
  transition: background 0.4s ease, transform 0.4s ease;
}

.boat-hero__nav-dot.is-active {
  background: var(--background);
  transform: scale(1.35);
}

/* --- responsive --------------------------------------------------------- */
@media (max-width: 767px) {
  .boat-hero__cards {
    left: 1rem;
    right: 1rem;
    bottom: 1.5rem;
    width: auto;
  }

  .boat-hero__card {
    padding: 1.25rem;
  }

  .boat-hero__nav {
    right: 1rem;
    bottom: auto;
    top: 6rem;
    flex-direction: row;
  }
}

/* --- reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js-hero-stage {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .boat-hero__card-shell,
  .boat-hero__card-shell.is-active {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .boat-hero__copy,
  .boat-hero__copy.is-active,
  .boat-hero__cta,
  .boat-hero__cta.is-active {
    transform: translateY(-50%);
  }
}
