.hero.home-hero {
  max-width: 1472px;
  margin-inline: auto;
  padding-inline: 12px;
  container-type: inline-size;
}

.home-hero__frame {
  --home-hero-fade: 1400ms;
  --hero-text: #472026;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-areas: "content" "photos";
  grid-template-columns: minmax(0, 1fr);
  background: #f1e9de;
  color: var(--hero-text);
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
}

.home-hero__photos {
  grid-area: photos;
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.home-hero__photos picture,
.home-hero__photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero__photos picture { opacity: 0; }

.home-hero__photos img {
  object-fit: cover;
  object-position: center;
}

.home-hero__photos .is-base { z-index: 0; opacity: 1; }

.home-hero__photos .is-fading {
  z-index: 1;
  transition: opacity var(--home-hero-fade) ease-in-out;
}

.home-hero__photos .is-fading.is-visible { opacity: 1; }

.home-hero__content {
  grid-area: content;
  display: grid;
  align-content: center;
  gap: clamp(12px, 3.4cqw, 22px);
  min-width: 0;
  padding: clamp(20px, 5.6cqw, 42px) clamp(18px, 5cqw, 42px);
}

.home-hero__eyebrow,
.home-hero__lead {
  margin: 0;
  font: 600 clamp(.9rem, 2.8cqw, 1.125rem) / 1.3 var(--font-sans);
  letter-spacing: .025em;
}

.home-hero__title {
  margin: 0;
  font: 400 clamp(2.05rem, 8.8cqw, 4rem) / 1.02 var(--font-serif);
  letter-spacing: -.015em;
}

.home-hero__title span { display: block; }

.home-hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2.8cqw, 18px);
}

.home-hero__actions .btn {
  min-height: 44px;
  min-width: 0;
  padding: 8px clamp(8px, 2cqw, 18px);
  border: 1px solid transparent;
  box-shadow: 0 5px 12px #352d2426;
  font-size: clamp(.875rem, 2.45cqw, 1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: normal;
  text-align: center;
  white-space: normal;
}

.home-hero__actions .btn--primary {
  background: var(--cap-burgundy, #751f2a);
  color: #fff;
}

.home-hero__actions .btn--primary:hover { background: var(--wine, #4a171c); }

.home-hero__actions .btn--secondary {
  background: #fff;
  color: var(--cap-burgundy, #751f2a);
}

.home-hero__actions .btn--secondary:hover { background: #f7f4ee; }

.home-hero__pause {
  position: absolute;
  z-index: 4;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #2b1a1733;
  border-radius: 50%;
  background: #f7f4eede;
  color: #2b1a17;
  font: 600 15px / 1 var(--font-sans);
  cursor: pointer;
}

.home-hero__pause:focus-visible { outline-offset: -4px; }
.home-hero__pause[hidden] { display: none; }

@media (min-width: 768px) {
  .hero.home-hero { padding-inline: 16px; }

  .home-hero__frame {
    grid-template-areas: "content photos";
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .home-hero__title { font-size: clamp(2.05rem, 4.7cqw, 3.2rem); }
}

@media (min-width: 1024px) {
  .home-hero__frame {
    display: block;
    aspect-ratio: 4500 / 2241;
  }

  .home-hero__photos {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
  }

  .home-hero__photos::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(90deg, rgb(241 235 224 / 74%), rgb(241 235 224 / 65%) 35%, rgb(241 235 224 / 54%) 49%, rgb(241 235 224 / 26%) 57%, transparent 64%);
    pointer-events: none;
  }

  .home-hero__content {
    display: block;
    position: absolute;
    z-index: 3;
    inset: 0;
    padding: 0;
    pointer-events: none;
  }

  .home-hero__eyebrow,
  .home-hero__title,
  .home-hero__actions,
  .home-hero__lead {
    position: absolute;
    left: 2%;
  }

  .home-hero__eyebrow {
    top: 20.3%;
    font-size: min(2.14cqw, 2rem);
  }

  .home-hero__title {
    top: 30.8%;
    width: 59%;
    font-size: min(6.25cqw, 5.625rem);
    line-height: 1.045;
    letter-spacing: .005em;
  }

  .home-hero__actions {
    top: 73.5%;
    width: 34.9%;
    height: 8.6%;
    min-height: 44px;
    gap: 2.9cqw;
    pointer-events: auto;
  }

  .home-hero__actions .btn {
    padding: 0 .7cqw;
    box-shadow: 0 7px 15px #352d2438;
    font-size: max(.875rem, min(1.33cqw, 1.2rem));
  }

  .home-hero__lead {
    top: 90.1%;
    width: 60%;
    font-size: min(1.59cqw, 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__photos .is-fading { transition: none; }
}
