.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  min-height: 720px;
  padding: 0 0 clamp(68px, 12vw, 88px);
  background: var(--color-deep-green);
  color: var(--color-white-warm);
}

.hero__ambient,
.hero__fallback,
.hero__fallback img,
.hero__video,
.hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__ambient {
  z-index: -2;
  background: var(--color-deep-green);
  overflow: hidden;
}

.hero__ambient::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(90deg, var(--color-deep-green) 0%, rgba(7, 19, 12, 0.88) 20%, transparent 34%, transparent 100%);
  content: "";
  pointer-events: none;
}

.hero__fallback img,
.hero__video {
  object-fit: cover;
  object-position: 57% center;
}

.hero__video {
  opacity: 0;
  transition: opacity 600ms ease;
}

.hero__video.is-ready {
  opacity: 1;
}

.hero__scrim {
  background:
    linear-gradient(180deg, rgba(7, 19, 12, 0.04) 0%, rgba(7, 19, 12, 0.18) 40%, rgba(7, 19, 12, 0.98) 72%),
    linear-gradient(90deg, rgba(7, 19, 12, 0.9) 0%, rgba(7, 19, 12, 0.08) 72%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
}

.hero__visual {
  order: 1;
  height: clamp(390px, 110vw, 520px);
  min-height: 0;
}

.hero__photo-frame {
  position: absolute;
  top: 0;
  right: calc(var(--gutter) * -1);
  left: calc(var(--gutter) * -1);
  height: clamp(410px, 114vw, 550px);
  overflow: hidden;
}

.hero__photo-frame::after {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, var(--color-deep-green));
  content: "";
  pointer-events: none;
}

.hero__photo-picture,
.hero__photo {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__photo {
  position: relative;
  left: -2.5%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 1;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.24));
  transform: rotate(4deg);
  transform-origin: center center;
}

.hero__content {
  position: relative;
  z-index: 2;
  min-width: 0;
  order: 2;
  padding-top: 18px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12.8px;
  color: var(--color-brand-lime);
  font-size: clamp(0.8208rem, 0.864vw, 0.9288rem);
  font-weight: 650;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__eyebrow::after {
  display: none;
  width: clamp(35px, 10vw, 95px);
  height: 1px;
  flex: 0 1 95px;
  background: linear-gradient(90deg, rgba(193, 233, 104, 0.78), transparent);
  content: "";
}

.hero h1 {
  max-width: 100%;
  margin-bottom: 24px;
  font-size: clamp(2.06rem, 9.45vw, 3.78rem);
  letter-spacing: -0.052em;
  line-height: 1;
  text-wrap: balance;
}

.hero__title-fixed {
  text-wrap: nowrap;
}

.hero__title-fixed .hero__title-line {
  display: block;
  white-space: nowrap;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.hero__title-fixed .hero__title-line > span {
  color: var(--color-brand-lime);
}

.hero h1 span {
  position: relative;
  display: inline;
  color: var(--color-brand-lime);
}

.hero h1 span::after {
  position: absolute;
  right: 0;
  bottom: -0.16em;
  left: 0;
  height: 0.28em;
  /* Nearly straight brush swipe with dry edges and a tapered lift. */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cpath d='M5 9 C96 6 187 5 276 4 C326 3.4 365 2.7 390 2.5 Q398 3.6 397 6.3 Q396 9.2 389 10 C335 10.7 278 12.1 220 14.2 C143 17 72 20.5 8 23 Q1 20 5 9Z' fill='%23c1e968'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  animation: hero-highlight-stroke 380ms 980ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}

@keyframes hero-highlight-stroke {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.hero__subtitle {
  max-width: 47ch;
  margin-bottom: 28px;
  color: rgba(255, 253, 248, 0.84);
  font-size: clamp(1.02rem, 4.3vw, 1.2rem);
  line-height: 1.55;
}

.hero__actions {
  align-items: stretch;
  gap: 12px;
}

.hero__actions--desktop {
  display: none;
}

.hero__actions--mobile {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.hero__actions--mobile .button {
  min-width: 0;
  flex: 1 1 0;
  padding-inline: clamp(10px, 3.2vw, 16px);
  white-space: nowrap;
}

/*
 * Pointer feedback deliberately changes only the fill. The outline button
 * keeps its structural border throughout, while keyboard focus stays governed
 * by the shared :focus-visible rule in base.css.
 */
.hero__actions .button.is-touch-feedback.button--brand {
  background: #cff27f;
  color: var(--color-brand-olive-dark);
  box-shadow: 0 13px 30px rgba(72, 85, 43, 0.2);
  transform: none;
}

.hero__actions .button.is-touch-feedback.button--outline {
  background: #cff27f;
  border-color: var(--color-brand-lime);
  color: var(--color-brand-olive-dark);
  box-shadow: 0 13px 30px rgba(72, 85, 43, 0.2);
  transform: none;
}

.hero__actions .button.is-touch-feedback-done.button--brand:hover {
  background: var(--color-brand-lime);
  color: var(--color-brand-olive-dark);
  box-shadow: 0 10px 24px rgba(72, 85, 43, 0.14);
  transform: none;
}

.hero__actions .button.is-touch-feedback-done.button--outline:hover {
  background: transparent;
  border-color: var(--color-brand-lime);
  color: var(--color-white-warm);
  transform: none;
}

.hero__action-play {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
}

.hero__action-play svg {
  width: 100%;
  height: 100%;
}

.hero__differentials {
  display: none;
}

@media (max-width: 767px) {
  .hero {
    padding-bottom: clamp(54px, 14vw, 72px);
  }

  .hero__visual {
    height: clamp(330px, 88vw, 380px);
  }

  .hero__photo-frame {
    top: -18px;
    height: clamp(620px, 170vw, 700px);
  }

  .hero__fallback img,
  .hero__video {
    height: 92%;
    object-position: 30% top;
    opacity: 1;
    transform: translateX(68px) scale(0.96);
    transform-origin: center top;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 100%);
  }

  .hero__video.is-ready {
    opacity: 1;
  }

  .hero__ambient { z-index: -2; }
  .hero__scrim { display: none; }
  .hero__grid { z-index: 1; }

  .hero__photo-frame::after {
    display: none;
  }

  .hero__photo-picture {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: clamp(640px, 175vw, 760px);
    height: 100%;
    transform: translateX(-50%);
  }

  .hero__photo {
    transform: translate(-28px, -170px) scale(1.55) rotate(4deg);
    transform-origin: center center;
  }

  .hero__content {
    padding-top: 0;
  }

  .hero__eyebrow {
    position: relative;
    z-index: 3;
    gap: 10px;
    margin-bottom: 11.2px;
    font-size: clamp(0.756rem, 3.24vw, 0.8424rem);
    white-space: nowrap;
  }

  .hero__eyebrow::after {
    min-width: 19px;
  }

  .hero__subtitle {
    margin-bottom: 22px;
  }

  .hero__differentials {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(6px, 2vw, 10px);
    padding: 0;
    margin: 0 0 26px;
    list-style: none;
  }

  .hero__differentials li {
    display: grid;
    min-width: 0;
    align-content: start;
    justify-items: center;
    gap: 8px;
    color: rgba(255, 253, 248, 0.9);
    font-size: clamp(0.66rem, 2.7vw, 0.76rem);
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
  }

  .hero__differentials li > span:last-child {
    max-width: 12ch;
    text-wrap: balance;
  }

  .hero__differential-icon {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: 1px solid rgba(193, 233, 104, 0.3);
    border-radius: 11px;
    background: rgba(193, 233, 104, 0.1);
    color: var(--color-brand-lime);
    place-items: center;
  }

  .hero__differential-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.35;
  }

  .hero__actions--mobile .button {
    min-height: 50px;
    font-size: clamp(0.78rem, 3.3vw, 0.92rem);
  }

  .hero__actions--mobile .button--brand {
    flex-grow: 1.06;
  }

  .hero__actions--mobile .button--brand:hover,
  .hero__actions--mobile .button--outline:hover {
    border-color: var(--color-action-hover);
    background: var(--color-action-hover);
    color: var(--color-brand-olive-dark);
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero__visual {
    height: clamp(490px, 66vw, 560px);
  }

  .hero__photo-frame {
    height: clamp(530px, 70vw, 600px);
  }

  .hero__photo-picture {
    position: static;
    width: 100%;
    transform: none;
  }

  .hero__content {
    padding-top: 24px;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: clamp(3.08rem, 6.62vw, 4.02rem);
  }

  .hero__subtitle {
    max-width: 55ch;
  }

  .hero__differentials {
    display: grid;
    width: min(100%, 620px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 0 0 28px;
    list-style: none;
  }

  .hero__differentials li {
    display: grid;
    min-width: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    color: rgba(255, 253, 248, 0.9);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .hero__differential-icon {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 1px solid rgba(193, 233, 104, 0.3);
    border-radius: 12px;
    background: rgba(193, 233, 104, 0.1);
    color: var(--color-brand-lime);
    place-items: center;
  }

  .hero__differential-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.35;
  }
}

@media (min-width: 992px) {
  .hero {
    min-height: 600px;
    height: 100vh;
    height: 100svh;
    padding: 0;
  }

  .hero__fallback img,
  .hero__video {
    object-position: center;
  }

  .hero__scrim {
    background:
      linear-gradient(90deg, rgba(7, 19, 12, 0.98) 0%, rgba(7, 19, 12, 0.9) 32%, rgba(7, 19, 12, 0.18) 62%, rgba(7, 19, 12, 0.03) 78%),
      linear-gradient(180deg, rgba(7, 19, 12, 0.08), rgba(7, 19, 12, 0.5));
  }

  .hero__grid {
    min-height: 600px;
    height: 100%;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: stretch;
    gap: clamp(28px, 3vw, 42px);
  }

  .hero__content {
    display: flex;
    order: 1;
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    padding: 68px 0 0;
  }

  .hero__visual {
    position: relative;
    order: 2;
    height: auto;
  }

  .hero__photo-frame {
    top: auto;
    right: auto;
    bottom: -18px;
    left: -150px;
    width: clamp(760px, 64vw, 1040px);
    height: auto;
    aspect-ratio: 3 / 2;
    overflow: visible;
  }

  .hero__photo-frame::after {
    display: none;
  }

  .hero__photo {
    object-position: right bottom;
  }

  .hero__eyebrow {
    margin-bottom: 14.4px;
    font-size: clamp(0.8208rem, 0.864vw, 0.9288rem);
  }

  .hero h1 {
    max-width: 720px;
    margin-bottom: 26px;
    font-size: clamp(2.84rem, 3.93vw, 4.02rem);
    line-height: 0.99;
  }

  .hero__subtitle {
    max-width: 62ch;
    margin-bottom: 32px;
    font-size: clamp(1.06rem, 1.28vw, 1.18rem);
    line-height: 1.58;
  }

  .hero__actions--mobile {
    display: none;
  }

  .hero__actions--desktop {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 42px;
  }

  .hero__actions--desktop .button {
    min-height: 50px;
    padding-inline: 22px;
  }

  .hero__actions--desktop .button--brand:hover,
  .hero__actions--desktop .button--outline:hover {
    border-color: var(--color-action-hover);
    background: var(--color-action-hover);
    color: var(--color-brand-olive-dark);
  }

  .hero__differentials {
    display: grid;
    width: min(100%, 650px);
    max-width: 100%;
    align-items: center;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 24px);
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .hero__differentials li {
    display: grid;
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 0;
    color: rgba(255, 253, 248, 0.9);
    font-size: clamp(0.88rem, 0.95vw, 0.98rem);
    font-weight: 500;
    line-height: 1.35;
  }

  .hero__differentials li > span:last-child {
    max-width: 13ch;
    text-wrap: balance;
  }

  .hero__differential-icon {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid rgba(193, 233, 104, 0.3);
    border-radius: 13px;
    background: rgba(193, 233, 104, 0.1);
    color: var(--color-brand-lime);
    place-items: center;
  }

  .hero__differential-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.35;
  }
}

@media (min-width: 1200px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
    gap: clamp(32px, 2.7vw, 42px);
  }

  .hero__photo-frame {
    left: -126px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hero__photo-frame {
    left: -92px;
  }

  .hero__subtitle {
    max-width: calc(100% - 72px);
  }

  .hero h1 {
    font-size: clamp(2.7rem, 4.25vw, 3.17rem);
  }
}

@media (min-width: 992px) and (max-height: 800px) {
  .hero,
  .hero__grid {
    min-height: 600px;
  }

  .hero__content {
    padding-top: 64px;
  }

  .hero h1 {
    font-size: clamp(2.79rem, 3.69vw, 3.64rem);
  }

  .hero__actions--desktop {
    margin-top: 34px;
  }
}

@media (min-width: 992px) and (max-width: 1099px) and (max-height: 680px) {
  .hero__eyebrow {
    margin-bottom: 9.6px;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.51rem, 3.97vw, 2.74rem);
  }

  .hero__subtitle {
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero__differential-icon {
    width: 40px;
    height: 40px;
  }

  .hero__differentials li {
    grid-template-columns: 40px auto;
    font-size: 0.85rem;
  }

  .hero__actions--desktop {
    margin-top: 26px;
  }

  .hero__actions--desktop .button {
    min-height: 48px;
  }
}

@media (min-width: 1920px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .hero__photo-frame {
    right: -36px;
    bottom: -24px;
    left: auto;
    width: min(640px, 33vw);
    aspect-ratio: 1;
  }

  .hero h1 {
    max-width: 720px;
    font-size: clamp(3.5rem, 2.27vw, 3.78rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }

  .hero h1 span::after {
    animation: none;
    clip-path: none;
  }

}

/* Compact first fold on phones; content remains in normal flow. */
@media (max-width: 767px) {
  .hero { min-height: calc(100vh - var(--admin-bar-offset, 0px)); min-height: calc(100svh - var(--admin-bar-offset, 0px)); padding-bottom: 28px; display: grid; align-content: center; }
  .hero__visual { height: clamp(270px, 43svh, 400px); }
  .hero__content { padding-top: 46px; }
  /* Follow the reading area so short screens retain the same contrast. */
  .hero__content::before {
    position: absolute;
    z-index: -1;
    inset: -120px calc(-1 * var(--gutter)) -80px;
    background: linear-gradient(180deg,
      rgba(7, 19, 12, 0) 0%,
      rgba(7, 19, 12, 0.18) 12%,
      rgba(7, 19, 12, 0.76) 30%,
      rgba(7, 19, 12, 0.94) 48%,
      var(--color-deep-green) 70%);
    content: "";
    pointer-events: none;
  }
  .hero__photo-frame { top: 0; }
  .hero__photo { transform: translate(calc(-5vw + 16px), -198px) scale(-1.944, 1.944) rotate(4deg); }
  .hero__eyebrow { margin-bottom: 11.2px; font-size: clamp(0.648rem, 2.862vw, 0.81rem); }
  .hero h1 { font-size: clamp(2.15rem, 8.27vw, 3.97rem); line-height: 1.06; margin-bottom: 24px; }
  .hero__subtitle { font-size: clamp(.9rem, 3.65vw, 1.06rem); line-height: 1.55; margin-bottom: 26px; color: rgba(255, 253, 248, .9); }
  .hero__differentials { display: none; }
  .hero__actions--mobile .button { gap: 6px; min-height: 48px; padding-inline: 8px; }
  .hero__actions svg { flex-shrink: 0; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero { min-height: 0; padding-bottom: 44px; }
  .hero__visual { height: 380px; }
  .hero__photo-frame { height: 440px; }
  .hero h1 { max-width: 100%; font-size: 3.25rem; }
  .hero__differentials { display: none; }
}

@media (max-width: 767px) and (max-height: 650px) {
  .hero { padding-bottom: 18px; }
  .hero__visual { height: 190px; }
  .hero__photo-frame { top: -10px; height: 540px; }
  .hero__photo { transform: translate(calc(-5vw + 16px), -184px) scale(-1.8, 1.8) rotate(4deg); }
  .hero__content { padding-top: 30px; }
  .hero h1 { font-size: clamp(1.56rem, 7.56vw, 1.89rem); margin-bottom: 12px; }
  .hero__subtitle { font-size: .86rem; margin-bottom: 14px; }
}
