/* Our chiles: a photograph to open, five real steps with film, the three chiles. */
.chhero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(calc(100svh - var(--head-h)), 820px); color: var(--paper); background: var(--maroon); overflow: hidden; }
.chhero__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.chhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 8, 7, .1) 30%, rgba(22, 8, 7, .85)); }
.chhero__text { display: grid; gap: 18px; padding: 0 var(--gutter) clamp(40px, 7vw, 88px); max-width: 60rem; }
.chhero h1 { font-size: clamp(3.4rem, 11vw, 10rem); line-height: .82; color: var(--marigold); }
.chhero__lead { font-size: clamp(1.125rem, 1.6vw, 1.4rem); font-weight: 500; max-width: 40ch; }
@media (prefers-reduced-motion: no-preference) {
  .chhero__img { animation: settle 2.4s var(--ease) both; }
  .chhero h1 { animation: fade-up 1s var(--ease) .2s both; }
}
@keyframes settle { from { transform: scale(1.08); } }
@keyframes fade-up { from { transform: translateY(18px); opacity: 0; } }

.steps { padding: clamp(64px, 9vw, 128px) var(--gutter); }
.steps__title { margin-bottom: clamp(28px, 4vw, 56px); color: var(--roast); }
.steps__list { display: grid; gap: clamp(56px, 8vw, 120px); }
.step { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 32px clamp(32px, 6vw, 96px); }
.step:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.step:nth-child(even) .step__media { order: 2; }
.step__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--maroon); }
.step__media video, .step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__media--jars { display: grid; place-items: center; background: var(--marigold); padding: 8% 0 6%; }
.step__jars { width: 62%; }
.step__toggle { position: absolute; left: 14px; bottom: 14px; }
.step__text { display: grid; gap: 14px; max-width: 30rem; }
.step__n { font: 400 3.4rem/1 var(--display); color: var(--roast); }
.step h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
.step p { font-size: 1.125rem; }

.three { padding: 0 var(--gutter) clamp(64px, 9vw, 128px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; }
.three__title { grid-column: 1 / -1; font-size: clamp(2.6rem, 6vw, 5.4rem); }
.three__row { display: grid; gap: 18px; align-content: start; }
.three__row--arbol { grid-column: 1 / 7; }
.three__row--morita { grid-column: 8 / 13; margin-top: 120px; }
.three__row--habanero { grid-column: 3 / 11; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 24px 48px; padding: 48px; }
.three__img { width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; }
.three__row--morita .three__img { aspect-ratio: 4 / 5; }
.three__jar { width: min(70%, 220px); justify-self: center; }
.three__text { display: grid; gap: 10px; }
.three h3 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
.three p { font-size: 1.0625rem; max-width: 40ch; }
.three__links { display: flex; flex-wrap: wrap; gap: 0 22px; }

.chcta { display: grid; justify-items: start; gap: 24px; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.chcta h2 { font-size: clamp(2.6rem, 6.4vw, 6rem); color: var(--field-ink); }

@media (max-width: 899px) {
  .chhero { min-height: 78svh; }
  .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 20px; }
  .step:nth-child(even) .step__media { order: 0; }
  .step__media { margin-inline: calc(var(--gutter) * -1); }
  .step__n { font-size: 2.6rem; }
  .three { grid-template-columns: 1fr; }
  .three__row--arbol, .three__row--morita, .three__row--habanero { grid-column: 1; margin-top: 0; }
  .three__row--habanero { grid-template-columns: 1fr; padding: 32px 20px; }
  .three__row--morita .three__img { aspect-ratio: 4 / 3.4; }
}
