.he-home {
  --display: var(--he-display);
  --section: var(--he-space-section);
}

.he-home main :is(h1, h2, h3) {
  font-weight: 800;
  line-height: .97;
  text-transform: uppercase;
}

.he-home main h2 { font-size: clamp(2.65rem, 5.5vw, 5.2rem); }
.he-home main h3 { font-size: clamp(1.9rem, 3.25vw, 3.15rem); }

.home-hero {
  background: var(--he-cream);
  color: var(--he-forest);
}

.home-hero .hero-grid {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4.2rem);
  padding-block: clamp(2.25rem, 4.3vw, 4.25rem);
}

.home-hero .eyebrow { color: var(--he-forest); margin-block-end: .85rem; }
.he-home .home-hero h1 {
  font-size: clamp(3.35rem, 7.4vw, 7.3rem);
  text-wrap: wrap;
}
.home-hero .hero-intro { color: var(--he-ink); max-width: 34ch; margin-block: 1.2rem 1.45rem; }
.home-hero .primary { background: var(--he-forest); color: var(--he-cream); }
.home-hero .primary:hover { background: var(--he-mango); color: var(--he-forest); }
.home-hero .primary:focus-visible { outline-color: var(--he-forest); }

.home-hero__art { min-width: 0; padding: .35rem; border: 1px solid var(--he-line-soft); border-radius: var(--he-radius-panel); }
.home-hero__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .65rem; background: var(--he-forest); }

.home-pantry {
  background: #e3e9d0;
  color: var(--he-forest);
  border-block-end: 1px solid var(--he-line-soft);
}
.home-pantry .strip-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  max-width: 46rem;
}
.home-pantry a {
  justify-content: center;
  gap: clamp(.45rem, 2vw, .85rem);
  min-height: 4.1rem;
  padding: .55rem .3rem;
  font-size: clamp(.84rem, 2.6vw, 1rem);
  line-height: 1.2;
}
.home-pantry a + a { border-inline-start: 1px solid #38221960; }
.home-pantry a:hover { text-decoration: none; background: #fff4dd55; }
.home-pantry a:hover strong { text-decoration: underline; }
.home-pantry a:focus-visible { outline-color: var(--he-ink); outline-offset: -3px; }
.home-pantry a :is(small, strong) { display: block; }
.home-pantry a small { margin-block-start: .15rem; font-size: .78rem; }
.home-pantry__seal {
  display: grid;
  flex: 0 0 clamp(1.55rem, 6vw, 2.55rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid;
  border-radius: 50%;
}
.home-pantry__seal svg { width: 68%; height: 68%; }

.home-range { background: #f4e7c8; }
.home-range .section-intro {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  margin-block-end: clamp(1.5rem, 3vw, 2.35rem);
}
.home-range .product-grid { gap: var(--he-space-gap); }
.home-range :is(.section-intro > p, .range-note) { color: inherit; }
.home-range .product {
  border: 1px solid var(--he-line-soft);
  border-radius: var(--he-radius-panel);
  background: var(--he-cream);
  color: var(--he-forest);
}
.home-range .product-art { background: #e4e6c8; }
.home-range .dates .product-art { background: #c8dbb8; }
.home-range .product-art img { aspect-ratio: 1.7; }
.home-range .product-copy { padding: var(--he-space-card); }
.home-range .product-copy > p { color: inherit; }
.home-range .product-note {
  color: var(--he-ink);
  background: var(--he-cream);
  border: 1px solid var(--he-ink);
}
.home-range .tags li { border-color: var(--he-line-soft); }
.home-flavours li { padding: 0; }
.home-flavours a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: .25rem .68rem;
  border-radius: inherit;
  font-weight: 600;
  text-decoration: none;
}
.home-flavours a:hover { background: var(--he-forest); color: var(--he-cream); }
.home-flavours a:focus-visible { outline-color: var(--he-forest); }

.home-serving { background: var(--he-forest); color: var(--he-cream); }
.home-serving__inner { padding-block: var(--section) clamp(1.6rem, 4vw, 3.2rem); }
.home-serving__intro { margin-block-end: clamp(1.75rem, 4vw, 3.5rem); scroll-margin-block-start: 6rem; }
.home-serving__intro h2 { color: var(--he-mango); }
.home-serving__intro p { margin-block-start: .75rem; font-size: clamp(1rem, 1.7vw, 1.2rem); }
.home-serving__sequence { --chai-gallery-gap: clamp(1.5rem, 6vw, 5rem); }
.chai-steps { padding: 0; margin: 0; }
.chai-step {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: var(--chai-gallery-gap);
  padding-block: clamp(1.25rem, 3.25vw, 2.8rem);
  border-block-start: 1px solid #fff4dd45;
}
.chai-step__copy { display: grid; justify-items: start; gap: .8rem; }
.chai-step--finish { grid-template-areas: "copy image" "actions image"; row-gap: 1rem; }
.chai-step--finish .chai-step__copy { grid-area: copy; align-self: end; }
.chai-step--finish .chai-step__art { grid-area: image; }
.chai-step__actions { grid-area: actions; align-self: start; display: grid; justify-items: start; gap: .35rem; }
.chai-step__number { color: var(--he-mango); font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.he-home .chai-step h3 { font-size: clamp(2.25rem, 5.4vw, 4.7rem); text-wrap: balance; }
.chai-step p { max-width: 32ch; }
.chai-step .text-link { color: var(--he-cream); }
.chai-step .primary { margin-block-start: .3rem; background: var(--he-mango); color: var(--he-forest); border-color: var(--he-mango); }
.chai-step .primary:hover { background: var(--he-cream); border-color: var(--he-cream); }
.chai-step .primary:focus-visible { outline-color: var(--he-cream); }
.chai-step__art, .chai-stage {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--he-radius-panel);
  background: #0d2e20;
}
.chai-stage { display: none; }
.home-serving__note { margin-block: 1rem; font-size: .85rem; }
.home-serving__more { display: flex; flex-wrap: wrap; gap: 0 clamp(1rem, 3vw, 2rem); padding-block-start: .8rem; border-block-start: 1px solid #fff4dd45; }

@media (min-width: 58rem) and (min-height: 40rem) and (prefers-reduced-motion: no-preference) {
  .home-serving__sequence:has(.chai-stage) {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: var(--chai-gallery-gap);
  }
  .home-serving__sequence:has(.chai-stage) .chai-step {
    grid-template-columns: minmax(0, 1fr);
    min-height: clamp(24rem, 51vh, 34rem);
  }
  .home-serving__sequence:has(.chai-stage) .chai-step > .chai-step__art {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
  }
  .home-serving__sequence:has(.chai-stage) .chai-step--finish {
    grid-template-areas: "copy" "actions";
    align-content: center;
  }
  .chai-stage {
    display: block;
    position: sticky;
    top: max(6rem, calc(50vh - 14rem));
    max-height: calc(100vh - 9rem);
    overflow: hidden;
  }
  .chai-stage img {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0;
    object-position: center;
    transition: opacity .35s ease;
  }
  .chai-stage img.is-current { opacity: 1; }
}

.he-home .story { background: var(--he-forest); color: var(--he-cream); }
.he-home .story-grid { padding-block: var(--he-space-section); }
.he-home .story .eyebrow, .he-home .story h2 { color: var(--he-mango); }
.he-home .story h2 { max-width: 11ch; }
.home-story__kicker { display: flex; align-items: center; gap: .5rem; }
.home-story__kicker svg { flex: none; }
.home-story__frame {
  padding: .38rem;
  border: 1px solid var(--he-mango);
  border-radius: .5rem;
}
.home-story__art { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .18rem; }
.home-story__link { gap: .65rem; text-decoration: none; }
.home-story__link-label { text-decoration: underline; }
.home-story__arrow {
  display: grid;
  flex: 0 0 2rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--he-mango);
}

.home-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  margin-block: clamp(1.5rem, 5vw, 4.5rem);
  overflow: clip;
  border: 1px solid var(--he-forest);
  border-radius: var(--he-radius-panel);
  background: var(--he-forest);
  color: var(--he-cream);
}
.home-guide__copy { align-self: center; padding: clamp(1.35rem, 3.2vw, 2.8rem); }
.home-guide__copy .eyebrow { margin-bottom: .65rem; color: var(--he-cream); }
.home-guide__art { min-width: 0; background: var(--he-mango); }
.home-guide__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 59% center; }
.he-home .home-guide h2 { color: var(--he-mango); }
.home-guide h2 + p { max-width: 41ch; margin-block: .85rem 1rem; }
.home-guide__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1rem; }
.home-guide .button { margin: 0; background: var(--he-mango); border-color: var(--he-mango); color: var(--he-forest); }
.home-guide .button:hover { background: var(--he-pink); border-color: var(--he-pink); }
.home-guide .text-link { color: var(--he-cream); font-size: .88rem; }

.home-contact { background: var(--he-cream); border-block-start: 1px solid #38221960; }
.home-contact .contact p:not(.eyebrow) { color: inherit; }
.home-contact .secondary:hover { background: var(--he-mango); }

@media (max-width: 46rem) {
  .home-hero .hero-grid, .chai-step { grid-template-columns: minmax(0, 1fr); }
  .home-hero .hero-grid { gap: 1.25rem; padding-block: 1.85rem 1.35rem; }
  .home-hero .hero-intro { margin-block: 1rem; font-size: 1rem; }
  .home-hero .actions { gap: .4rem .95rem; }
  .home-hero .button { padding-inline: 1rem; }
  .home-hero__art img { aspect-ratio: 1.46; }
  .chai-step { gap: 1rem; }
  .chai-step--finish { grid-template-areas: "copy" "image" "actions"; }
  .chai-step__copy { gap: .45rem; }
}
@media (max-width: 41rem) {
  .home-range .section-intro { grid-template-columns: minmax(0, 1fr); }
  .home-range .section-intro { gap: .75rem; }
  .home-range .section-intro > p { font-size: 1rem; }
  .home-pantry a { gap: .38rem; }
  .home-pantry a small { font-size: .69rem; }
  .home-guide { grid-template-columns: minmax(0, 1fr); }
  .home-guide__art { aspect-ratio: 1.8; }
  .home-guide__art img { object-position: center 56%; }
}

@media (max-width: 23rem) {
  .home-pantry__arrow { display: none; }
}
