/* ============================================================
   CHEF'S HAVEN — Hero structure

   .hero-shell          grouping wrapper (no height set)
   .hero-scroll         scroll-fuel: 180vh, creates animation travel
   .hero-sticky         full-viewport pin: 100vh, fills all of viewport
   .hero__main          absolute fill inside sticky: animation + content
   .hero__trust-strip   normal-flow sibling of hero-scroll, below hero
   ============================================================ */

/* ── hero-shell: grouping wrapper only, no clipping ─────── */
.hero-shell {
  position: relative;
  isolation: isolate;
}

/* ── Scroll-fuel wrapper (animation distance only) ──────── */
.hero-scroll {
  position: relative;
  height: 180vh;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* ── Sticky viewport: fills the full window ─────────────── */
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #080808;
}

/* ── hero__main: absolute fill — full height, trust strip overlays on top ── */
.hero__main {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ── Canvas: full-width fill ─────────────────────────────── */
.hero__right {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
}

/* No seam blend needed — canvas is full-width */
.hero__right::before {
  content: none;
}

/* Canvas element */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #080808;
  pointer-events: none;
}

/* Visual overlays — full hero width */
.hero__main .hero__bg-gradient,
.hero__main .hero__grid-overlay,
.hero__main .hero__noise {
  z-index: 2;
}

/* ── Text overlay: full-width, floats above canvas ──────── */
.hero-content {
  position: absolute;
  inset: 0;
  width: 100%;
  z-index: 3;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h, 112px);
  padding-bottom: clamp(24px, 3vh, 48px);
  pointer-events: none;
  background: linear-gradient(to right, rgba(8,8,8,0.52) 0%, rgba(8,8,8,0.16) 42%, transparent 68%);
}

.hero-content .container--wide {
  max-width: 100%;
  width: 100%;
  padding-left: max(clamp(20px, 4vw, 64px), calc((100vw - 1600px) / 2 + 64px));
  padding-right: clamp(16px, 2vw, 32px);
}

.hero-content a,
.hero-content button {
  pointer-events: auto;
}

/* ── Loader, progress bar, scroll cue ───────────────────── */
.hero__frame-loader {
  position: absolute;
  bottom: clamp(56px, 7vh, 88px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}

.hero__frame-loader.hidden {
  opacity: 0;
}

.hero__frame-loader__label {
  font-family: var(--font-mono, monospace);
  font-size: 8px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
}

.hero__frame-loader__track {
  width: 120px;
  height: 1px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}

.hero__frame-loader__fill {
  height: 100%;
  width: 0%;
  background: var(--brand-red, #c64827);
  transition: width 0.1s linear;
}

.hero__progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 4;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.hero__progress-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--brand-red, #c64827);
  transform-origin: left center;
}

.hero-sticky .hero__scroll-cue {
  z-index: 4;
}

/* ── Trust strip: normal-flow block directly under hero-scroll ── */
.hero__trust-strip {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.hero__trust-strip .trust-item,
.hero__trust-strip .trust-divider {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hero__right {
    left: 0;
  }

  .hero__right::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 65%;
    top: auto;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(8,8,8,0.82) 0%, rgba(8,8,8,0.45) 50%, transparent 100%);
  }

  .hero-content {
    inset: 0;
    width: 100%;
    align-items: flex-end;
    padding-bottom: clamp(32px, 5vh, 60px);
    background: none;
  }

  .hero-content .container--wide {
    max-width: 100%;
    padding-left: clamp(16px, 5vw, 32px);
    padding-right: clamp(16px, 5vw, 32px);
  }
}
