/* Homepage video hero. Other pages retain the existing shared styles. */
.hero.hero-video {
  isolation: isolate;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: max(800px, 100svh);
  height: auto;
  padding: clamp(280px, 34svh, 440px) var(--safe) 44px;
  overflow: hidden;
  background: #edf0eb;
}

.hero-video .hero-media,
.hero-video .hero-film,
.hero.hero-video::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video .hero-media { z-index: 0; pointer-events: none; }
.hero-video .hero-film { display: block; object-fit: cover; object-position: center; }

/* Clear video above the copy; only the lower fade reaches 95% white. */
.hero.hero-video::after {
  content: "";
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgb(255 255 255 / 0%) 25%,
    rgb(255 255 255 / 8%) 37%,
    rgb(255 255 255 / 28%) 48%,
    rgb(255 255 255 / 62%) 59%,
    rgb(255 255 255 / 86%) 71%,
    rgb(255 255 255 / 95%) 85%,
    rgb(255 255 255 / 95%) 100%);
}

.hero.hero-video .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0;
  padding: 0;
  color: #171a16;
  text-align: center;
  align-items: center;
}
.hero.hero-video .hero-eyebrow {
  margin: 0 0 18px;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero.hero-video .hero-eyebrow b {
  color: #000;
  font-weight: 700;
}
.hero.hero-video h1 {
  margin: 0 0 24px;
  color: #171a16;
  font-size: clamp(48px, 5.1vw, 78px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.035em;
  text-shadow: none;
  text-align: center;
}
.hero-video .hero-title-highlight { color: #4f7628; }

/* A restrained tonal shift inside the letters, with solid-color fallbacks. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-video .hero-title-highlight,
  .hero-video .hero-title-end {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero-video .hero-title-highlight {
    background-image: linear-gradient(180deg, #4f7628 20%, #466923 100%);
  }
  .hero-video .hero-title-end {
    background-image: linear-gradient(180deg, #20231e 0%, #11130f 100%);
  }
}
@media (forced-colors: active) {
  .hero-video .hero-title-highlight,
  .hero-video .hero-title-end {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }
}
.hero.hero-video p.lede {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 0 28px;
  padding: 0 15px 0 0;
  color: #20231e;
  font-size: 18px;
  line-height: 1.65;
  text-shadow: none;
  text-wrap: wrap;
}
.hero.hero-video p.lede b { color: #171a16; }
.hero.hero-video .hero-ctas { margin: 0 0 26px; gap: 16px; }
.hero.hero-video .hero-ctas .btn-outline-green { color: #1f2c16; background: rgb(255 255 255 / 28%); }
.hero.hero-video .rating-pill { color: #20231e; }
.hero.hero-video .rating-text .stars-row,
.hero.hero-video .rating-text .stars-row b,
.hero.hero-video .rating-text .meta { color: #20231e; }
.hero.hero-video .rating-text .stars { color: #966500; }

@media (max-width: 760px) {
  .hero.hero-video {
    height: auto;
    /* The bar overlays the white hero bottom; the next section stays below it. */
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 96px 20px calc(100px + env(safe-area-inset-bottom));
    padding-top: clamp(88px, 16dvh, 128px);
  }
  .hero-video .hero-film {
    transform: scale(1.15);
    transform-origin: center bottom;
  }
  /* Follow the bottom-aligned copy with an eased, continuous fade on every phone. */
  .hero.hero-video::after {
    --hero-fade-inset: env(safe-area-inset-bottom, 0px);
    background: linear-gradient(to top,
      rgb(255 255 255 / 95%) 0px,
      rgb(255 255 255 / 95%) calc(140px + var(--hero-fade-inset)),
      rgb(255 255 255 / 92.3%) calc(188px + var(--hero-fade-inset)),
      rgb(255 255 255 / 85.1%) calc(236px + var(--hero-fade-inset)),
      rgb(255 255 255 / 74.5%) calc(284px + var(--hero-fade-inset)),
      rgb(255 255 255 / 61.6%) calc(332px + var(--hero-fade-inset)),
      rgb(255 255 255 / 47.5%) calc(380px + var(--hero-fade-inset)),
      rgb(255 255 255 / 33.4%) calc(428px + var(--hero-fade-inset)),
      rgb(255 255 255 / 20.5%) calc(476px + var(--hero-fade-inset)),
      rgb(255 255 255 / 9.9%) calc(524px + var(--hero-fade-inset)),
      rgb(255 255 255 / 2.7%) calc(572px + var(--hero-fade-inset)),
      rgb(255 255 255 / 0%) calc(620px + var(--hero-fade-inset)));
  }
  .hero.hero-video .hero-inner { align-items: flex-start; text-align: left; }
  .hero.hero-video .hero-eyebrow {
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.55;
    letter-spacing: .06em;
  }
  .hero.hero-video h1 {
    margin-bottom: 18px;
    font-size: clamp(38px, 11vw, 50px);
    line-height: 1.12;
    text-align: left;
    letter-spacing: -.035em;
  }
  .hero-video .hero-title-highlight,
  .hero-video .hero-title-end { display: block; }
  .hero.hero-video p.lede {
    width: 100%;
    max-width: none;
    margin-bottom: 24px;
    padding-right: 15px;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
  }
  /* The persistent bottom bar provides these actions on mobile. */
  .hero.hero-video .hero-ctas { display: none; }
  .hero.hero-video .rating-pill { gap: 12px; margin: 0; }
  .hero.hero-video .rating-text .meta { font-size: 12px; line-height: 1.5; }
}

