/* Scoped to the new Film hero section; never styles the original Sam hero. */
.sam-film-hero {
  --hero-progress: 0;
  --hero-content-inset: calc(var(--hero-gutter) + 24px);
  --hero-current-gutter: calc(var(--hero-gutter) * (1 - var(--hero-progress)));
  display: block;
  position: relative;
  background: var(--hero-background, var(--color-cream));
  color: var(--hero-text, var(--color-white));
}

.sam-film-hero[data-scroll-expand='true'].is-enhanced {
  height: calc(100svh + var(--hero-scroll-distance));
}

.sam-film-hero__viewport {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 580px;
  isolation: isolate;
}

.sam-film-hero__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--color-navy, #0e1f2f);
  clip-path: inset(var(--hero-current-gutter) round calc(var(--hero-radius) * (1 - var(--hero-progress))));
}

.sam-film-hero__media,
.sam-film-hero__poster,
.sam-film-hero__video,
.sam-film-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sam-film-hero__media {
  transform: scale(calc(1 + var(--hero-progress) * 0.045));
}

.sam-film-hero__poster,
.sam-film-hero__video {
  object-fit: cover;
}

.sam-film-hero__poster {
  object-position: 50% 60%;
}

.sam-film-hero__video {
  object-position: var(--hero-video-position);
  opacity: 0;
  transition: opacity 600ms ease;
}

.sam-film-hero.has-played .sam-film-hero__video {
  opacity: 1;
}

.sam-film-hero__shade {
  background:
    linear-gradient(180deg, rgb(14 31 47 / 25%) 0%, rgb(14 31 47 / 9%) 44%, transparent 64%, rgb(14 31 47 / 42%) 100%),
    rgb(14 31 47 / var(--hero-overlay));
  pointer-events: none;
}

/* Still photography stays bright, with room for the product and copy. */
.sam-film-hero[data-media-kind='image'] .sam-film-hero__poster {
  object-position: 50% 50%;
}

.sam-film-hero[data-media-kind='image'] .sam-film-hero__shade {
  background: rgb(14 31 47 / var(--hero-overlay));
}

.sam-film-hero[data-media-kind='image'] .sam-film-hero__wordmark text {
  fill: var(--hero-text);
}

.sam-film-hero[data-media-kind='image'] .sam-film-hero__heading,
.sam-film-hero[data-media-kind='image'] .sam-film-hero__mobile-trust,
.sam-film-hero[data-media-kind='image'] .sam-film-hero__mobile-benefits {
  color: var(--hero-text);
  text-shadow: none;
}

.sam-film-hero[data-media-kind='image'] .sam-film-hero__mobile-benefits {
  justify-self: center;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgb(243 241 229 / 92%);
}

/* Feather the bright patches behind the copy without dimming the product. */
.sam-film-hero[data-media-kind='image'] .sam-film-hero__copy {
  isolation: isolate;
}

.sam-film-hero[data-media-kind='image'] .sam-film-hero__copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -36px -28px;
  background: rgb(224 201 171 / 28%);
  backdrop-filter: blur(2px) brightness(.97);
  -webkit-backdrop-filter: blur(2px) brightness(.97);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  pointer-events: none;
}

.sam-film-hero__header {
  position: absolute;
  z-index: 2;
  inset: clamp(44px, 7.5svh, 76px) 0 auto;
  display: flex;
  justify-content: center;
}

.sam-film-hero[data-header-layout='navigation'] .sam-film-hero__header {
  inset: var(--hero-content-inset) var(--hero-content-inset) auto;
  justify-content: space-between;
  /* Align visible top edges; centering against the taller nav lowers the logo. */
  align-items: flex-start;
  gap: 24px;
}

.sam-film-hero__nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 24px;
  background: var(--color-white, #fff);
  color: var(--color-navy, #0e1f2f);
  font-family: var(--font-body, 'Sam Stack Sans', Arial, sans-serif);
}

.sam-film-hero__nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sam-film-hero__nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  color: inherit;
  font-size: 15px;
  text-decoration: none;
}

.sam-film-hero__nav-link:hover {
  background: var(--color-cream, #f3f1e5);
}

.sam-film-hero__nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: 17px;
  background: var(--color-blue, #82ccf4);
  color: var(--color-navy, #0e1f2f);
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
}

.sam-film-hero__nav-cta:hover {
  background: var(--color-blue, #82ccf4);
  filter: brightness(.95);
}

.sam-film-hero__mobile-order,
.sam-film-hero__mobile-benefits {
  display: none;
}

.sam-film-hero__nav :focus-visible {
  outline-color: var(--color-navy, #0e1f2f);
  outline-offset: 2px;
}

.sam-film-hero__menu {
  display: none;
}

.sam-film-hero__logo {
  display: block;
  width: var(--hero-logo-width);
  line-height: 0;
}

.sam-film-hero__wordmark {
  display: block;
  width: 100%;
  height: auto;
}

.sam-film-hero__copy {
  position: absolute;
  top: clamp(140px, 19svh, 200px);
  left: 50%;
  width: calc(100% - 80px);
  transform: translateX(-50%);
  text-align: center;
}

.sam-film-hero__mobile-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-body, 'Sam Stack Sans', Arial, sans-serif);
  font-size: 16px;
  line-height: 1.4;
  text-shadow: 0 1px 12px rgb(14 31 47 / 18%);
}

.sam-film-hero__stars {
  display: inline-flex;
  gap: 3px;
  margin-right: 4px;
  color: #f5a33b;
}

.sam-film-hero__stars svg {
  width: 18px;
  height: 18px;
}

.sam-film-hero__mobile-trust strong {
  font-weight: 700;
}

.sam-film-hero__trust-dot {
  opacity: 0.5;
}

.sam-film-hero__heading {
  margin: 0;
  font-family: var(--font-display, 'Sam New Spirit', Georgia, serif);
  font-size: clamp(44px, 4.5vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgb(14 31 47 / 8%);
}

.sam-film-hero__heading span {
  display: block;
}

.sam-film-hero__footer {
  position: absolute;
  right: clamp(32px, 4vw, 64px);
  /* Match the navigation's inset from the top of the hero frame. */
  bottom: var(--hero-content-inset);
  left: clamp(32px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: end;
  font-family: var(--font-body, 'Sam Stack Sans', Arial, sans-serif);
}

.sam-film-hero__description {
  margin: 24px auto 0;
  max-width: 48ch;
  font-family: var(--font-body, 'Sam Stack Sans', Arial, sans-serif);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.45;
  text-wrap: pretty;
}

.sam-film-hero__mobile-caption { display: block; margin: 22px auto 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; }
.sam-film-hero__price { display: flex; align-items: baseline; justify-content: center; gap: 12px; margin: 0; font-size: 24px; }
.sam-film-hero__price s { font-size: 18px; }
@media (min-width: 769px) {
  .sam-film-hero__footer { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .sam-film-hero__caption { display: none; }
  .sam-film-hero__mobile-order { display: flex; min-width: 320px; font-size: 18px; }
}


.sam-film-hero__caption {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  max-width: 30ch;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  text-align: left;
}

.sam-film-hero__cta {
  grid-column: 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--color-blue, #82ccf4);
  color: var(--color-navy, #0e1f2f);
  font-size: 15px;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.sam-film-hero__cta:hover {
  background: var(--color-blue, #82ccf4);
  filter: brightness(.95);
  transform: translateY(-2px);
}



.sam-film-hero [hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  /* Scroll immediately on mobile: keep the initial frame, without a sticky runway. */
  .sam-film-hero[data-scroll-expand='true'].is-enhanced {
    height: auto;
  }

  .sam-film-hero {
    --hero-progress: 0 !important;
    --hero-current-gutter: calc(min(var(--hero-gutter), 12px) * (1 - var(--hero-progress)));
    --hero-content-inset: max(calc(min(var(--hero-gutter), 12px) + 16px), env(safe-area-inset-top));
  }

  .sam-film-hero__viewport {
    position: relative;
    min-height: 540px;
  }

  .sam-film-hero__header {
    top: max(42px, env(safe-area-inset-top));
  }

  .sam-film-hero__logo {
    width: calc(var(--hero-logo-width) * 0.82);
  }

  .sam-film-hero[data-header-layout='navigation'] .sam-film-hero__header {
    gap: 12px;
  }

  .sam-film-hero[data-header-layout='navigation'] .sam-film-hero__logo {
    width: clamp(94px, 28vw, 118px);
    flex-shrink: 0;
  }

  .sam-film-hero__nav {
    gap: 2px;
    padding: 2px;
    border-radius: 16px;
  }

  .sam-film-hero__nav-links {
    display: none;
  }

  .sam-film-hero__nav .sam-film-hero__nav-cta {
    display: none;
  }

  .sam-film-hero__mobile-order {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
    min-height: 56px;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 15px;
  }

  .sam-film-hero__mobile-trust {
    gap: 8px;
    margin: 0 0 16px;
    font-size: 12px;
    text-shadow: none;
  }

  .sam-film-hero__stars svg {
    width: 15px;
    height: 15px;
  }

  .sam-film-hero__mobile-benefits {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    text-shadow: 0 1px 4px rgb(0 0 0 / 30%);
    font-size: 12px;
    line-height: 1.4;
  }

  .sam-film-hero__mobile-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .sam-film-hero__mobile-benefits svg {
    flex-shrink: 0;
  }

  .sam-film-hero__menu {
    display: block;
  }

  .sam-film-hero__menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    list-style: none;
    cursor: pointer;
  }

  .sam-film-hero__menu-toggle::-webkit-details-marker {
    display: none;
  }

  .sam-film-hero__menu-toggle svg {
    width: 18px;
    height: 18px;
  }

  .sam-film-hero__menu[open] .sam-film-hero__menu-toggle {
    background: var(--color-cream, #f3f1e5);
  }

  .sam-film-hero__menu-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    padding: 8px;
    border-radius: 18px;
    background: var(--color-white, #fff);
    box-shadow: 0 12px 32px rgb(14 31 47 / 12%);
  }

  .sam-film-hero__copy {
    top: clamp(120px, 19svh, 168px);
    left: 50%;
    width: calc(100% - 52px);
    transform: translateX(-50%);
    text-align: center;
  }

  .sam-film-hero__heading {
    font-size: clamp(36px, 6.4vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  .sam-film-hero__heading span {
    display: block;
  }

  .sam-film-hero__video {
    object-position: var(--hero-mobile-video-position);
  }

  .sam-film-hero__poster {
    object-position: 54% 50%;
  }

  .sam-film-hero__price { grid-column: 1 / -1; font-size: 22px; }

  .sam-film-hero__footer {
    right: 28px;
    bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
    left: 28px;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .sam-film-hero__description {
    margin: 18px auto 0;
    max-width: 36ch;
    font-size: 14px;
    line-height: 1.45;
  }

  .sam-film-hero__caption {
    display: none;
  }

  .sam-film-hero__mobile-caption {
    display: block;
    margin: 18px auto 0;
    max-width: 30ch;
    font-family: var(--font-body, 'Sam Stack Sans', Arial, sans-serif);
    font-size: 15px;
    line-height: 1.45;
  }

  .sam-film-hero__cta {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

}

@media (prefers-reduced-motion: reduce) {
  .sam-film-hero[data-scroll-expand='true'].is-enhanced {
    height: auto;
  }

  .sam-film-hero {
    --hero-progress: 0 !important;
  }

  .sam-film-hero__video,
  .sam-film-hero__cta {
    transition: none;
  }
}
