/* 02 — Hero (prefix hero-) */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  background: var(--dark);
  color: var(--paper);
}

/* ---- background: placeholder "video" ---- */

.hero-media {
  position: absolute;
  inset: 0;
}

.ph--hero {
  background-color: var(--dark);
  /* deep brown / charcoal placeholder — raw hex permitted inside placeholder gradients */
  background-image:
    radial-gradient(120% 85% at 18% 22%, rgba(96, 76, 56, 0.5), transparent 62%),
    radial-gradient(95% 75% at 82% 78%, rgba(64, 56, 44, 0.55), transparent 66%),
    linear-gradient(160deg, #2c2419 0%, #1c1913 42%, #161613 68%, #100f0c 100%);
  background-size: 170% 170%;
  background-position: 0% 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .ph--hero {
    animation: hero-pan 30s linear infinite alternate;
  }
}

@keyframes hero-pan {
  from {
    background-position: 0% 40%;
  }
  to {
    background-position: 100% 60%;
  }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  /* heavier at top (header, badge, title) and bottom (CTA); base tint keeps midframe legible over bright footage */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.38) 42%,
    rgba(0, 0, 0, 0.38) 62%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

/* ---- content column ---- */

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-inline: var(--gutter);
  text-align: center;
}

/* ---- top badge ---- */

.hero-badge {
  display: inline-flex;
  align-items: stretch;
  margin-top: 108px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-badge-seg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 16px;
  border-radius: var(--r-pill);
  color: var(--paper);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.hero-badge-seg:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-badge-seg:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.hero-badge-seg .arrow {
  flex: 0 0 auto;
  opacity: 0.7;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.hero-badge-seg:hover .arrow {
  transform: translateX(2px);
  opacity: 1;
}

.hero-badge-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-align: left;
}

.hero-badge-eyebrow {
  /* stays on the spec type ramp (.t-eyebrow, 12px); hierarchy comes from opacity */
  opacity: 0.7;
}

.hero-badge-title {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: 0.05em;
  font-variant-caps: small-caps; /* masthead small-caps feel; capitals stay full-size */
}

.hero-badge-divider {
  align-self: center;
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.25);
}

.hero-badge-note-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.2;
}

/* ---- headline + subhead ---- */

.hero-title {
  margin-top: auto;
  max-width: 760px;
  color: var(--paper);
  text-wrap: balance;
}

.hero-subhead {
  margin-top: 24px;
  margin-bottom: auto;
  max-width: 420px;
  color: var(--paper);
  opacity: 0.92;
  text-wrap: pretty;
}

/* ---- bottom CTA ---- */

.hero-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%; /* flex-column children are max-content sized; without this the serving line refuses to wrap and clips on phones */
  padding-inline: var(--gutter);
  padding-bottom: 56px; /* button base sits ~90px from the viewport bottom */
  text-align: center;
}

.hero-cta-btn {
  height: 56px;
  padding: 0 8px 0 22px;
  gap: 12px;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.hero-cta-sparkle {
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
}

.hero-cta-thumb {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  /* green map-like gradient placeholder */
  background-image:
    linear-gradient(113deg, transparent 42%, rgba(238, 243, 228, 0.7) 43.5%, rgba(238, 243, 228, 0.7) 46%, transparent 47.5%),
    linear-gradient(28deg, transparent 58%, rgba(238, 243, 228, 0.55) 59.5%, rgba(238, 243, 228, 0.55) 61.5%, transparent 63%),
    radial-gradient(circle at 32% 30%, #93ae7d 0%, #6d8a5b 48%, #50693f 100%);
}

.hero-serving {
  color: rgba(255, 255, 255, 0.6);
}

/* ---- background-video pause toggle ---- */

.hero-video-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 20px;
  z-index: 2;
  display: none; /* JS-only control; .js root reveals it */
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #ebebe4;
  transition: transform var(--dur-fast) var(--ease-out);
}

.js .hero-video-toggle {
  display: inline-flex;
}

.hero-video-toggle:hover {
  transform: scale(1.05);
}

.hero-video-toggle:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.hero-video-toggle__play {
  display: none;
}

.hero-video-toggle.is-paused .hero-video-toggle__pause {
  display: none;
}

.hero-video-toggle.is-paused .hero-video-toggle__play {
  display: block;
}

@media (max-width: 479px) {
  .hero-video-toggle {
    right: 16px;
    bottom: 16px;
  }
}

/* ---- responsive ---- */

@media (max-width: 479px) {
  .hero-badge {
    margin-top: 96px;
  }

  .hero-badge-seg {
    padding: 4px 12px;
    gap: 8px;
  }

  .hero-badge-title,
  .hero-badge-note-text {
    font-size: 14px;
  }

  .hero-badge-seg .arrow {
    display: none;
  }

  .hero-cta-btn {
    padding-left: 18px;
  }

  .hero-cta-label {
    white-space: normal;
    text-align: left;
    line-height: 1.2;
  }
}

/* ---- scope pill (single segment, non-interactive) ---- */

.hero-badge-scope {
  cursor: default;
}

.hero-badge-scope:hover {
  background: transparent;
}

.hero-badge-scope .hero-badge-note-text {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* ---- the fill moment: the number ticks 87 -> 100 ---- */

.hero-num {
  color: var(--green-screen);
  font-variant-numeric: tabular-nums;
}

/* ---- % disc in the CTA pill ---- */

.hero-cta-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: none;
  background-color: var(--green-screen);
  color: #141513;
  font-size: 17px;
  font-weight: 700;
}
