.store-section-flow:has(> .store-section-content > .home-hero:only-child) {
  --store-content:100%;
}

.store-section-content:has(> .home-hero:only-child) {
  inline-size:100%;
  --store-content:100%;
}

.home-hero {
  position:relative;
  isolation:isolate;
  width:100%;
  min-width:0;
  --hero-height:clamp(27rem,43vw,44rem);
  --copy-width:32rem;
  --copy-inset:clamp(2rem,7vw,8rem);
}

.home-hero[data-hero-height=compact] {
  --hero-height:clamp(22rem,33vw,34rem);
}

.home-hero[data-hero-height=tall] {
  --hero-height:clamp(32rem,52vw,55rem);
}

.home-hero[data-copy-width=narrow] {
  --copy-width:23rem;
}

.home-hero[data-copy-width=wide] {
  --copy-width:43rem;
}

.home-hero[data-copy-inset=compact] {
  --copy-inset:clamp(1rem,3vw,4rem);
}

.home-hero[data-copy-inset=wide] {
  --copy-inset:clamp(2rem,10vw,12rem);
}

.home-hero.store-carousel > .home-hero__viewport {
  display:flex;
  align-items:stretch;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
  min-width:0;
}

.home-hero__viewport::-webkit-scrollbar {
  display:none;
}

.home-hero__slide,.home-hero__empty {
  position:relative;
  isolation:isolate;
  display:grid;
  align-items:center;
  box-sizing:border-box;
  min-block-size:var(--hero-height);
  flex:0 0 100%;
  min-inline-size:0;
  padding:clamp(3rem,6vw,7rem) var(--copy-inset);
  scroll-snap-align:start;
  background:#e3dece;
  color:#193c32;
}

.home-hero__slide picture,.home-hero__slide img,.home-hero__slide::after {
  position:absolute;
  inset:0;
  inline-size:100%;
  block-size:100%;
}

.home-hero__slide picture {
  z-index:-2;
}

.home-hero__slide img {
  object-fit:cover;
  object-position:var(--hero-x) var(--hero-y);
}

.home-hero__slide::after {
  content:"";
  z-index:-1;
  pointer-events:none;
  background:rgb(0 0 0 / var(--hero-shade));
}

.home-hero__copy {
  display:grid;
  gap:1rem;
  justify-items:start;
  max-inline-size:var(--copy-width);
  overflow-wrap:anywhere;
}

.home-hero__slide[data-position=center] .home-hero__copy {
  justify-self:center;
  justify-items:center;
  text-align:center;
}

.home-hero__slide[data-position=end] .home-hero__copy {
  justify-self:end;
  justify-items:end;
  text-align:end;
}

.home-hero__copy h2,.home-hero__copy p {
  margin:0;
  color:inherit;
}

.home-hero__copy h2 {
  font:600 clamp(2.4rem,5vw,5rem)/1.02 "Plus Jakarta Sans",sans-serif;
  letter-spacing:-.045em;
  text-wrap:balance;
}

.home-hero__copy p {
  font-size:clamp(1rem,1.4vw,1.25rem);
  line-height:1.5;
}

.home-hero__button {
  display:inline-flex;
  padding:.8rem 1.4rem;
  min-height:2.75rem;
  align-items:center;
  border-radius:2rem;
  background:#173e32;
  color:white;
  font-weight:600;
  text-decoration:none;
}

.home-hero__button:is(:hover,:focus-visible) {
  background:#265746;
}

.home-hero__navigation {
  position:absolute;
  inset-inline-end:1.4rem;
  inset-block-end:1.4rem;
  z-index:2;
}

.home-hero__navigation .store-carousel__controls {
  position:static;
  display:flex;
  gap:.4rem;
}

.home-hero__navigation .store-carousel__controls[hidden] {
  display:none;
}

.home-hero__navigation button {
  border-radius:50%;
  background:#faf9f4;
  color:#173e32;
}

@media(max-width:48rem) {
  .home-hero {
    --copy-inset:1.25rem;
    --hero-height:clamp(24rem,110vw,34rem);
  }
  .home-hero[data-hero-height=compact] {
    --hero-height:clamp(20rem,92vw,28rem);
  }
  .home-hero[data-hero-height=tall] {
    --hero-height:clamp(29rem,132vw,40rem);
  }
  .home-hero__slide,.home-hero__empty {
    padding:4.5rem 1.25rem;
  }
  .home-hero__slide[data-position] .home-hero__copy {
    justify-self:center;
    text-align:center;
    justify-items:center;
  }
  .home-hero__navigation {
    inset-inline-end:1rem;
    inset-block-end:1rem;
  }
  .home-hero__copy {
    padding:.85rem;
    background:rgb(247 244 233 / .88);
    border-radius:.65rem;
  }
}
