/* Rootist fermentation prototype — scoped to this homepage section. */
.rt-ferment {
  --rt-light: 0;
  --rt-glow-x: 72%;
  --rt-glow-y: 50%;
  --rt-stage: #1c0c13;
  --rt-ferment-y: 128px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--rt-ferment-y) 0 calc(var(--rt-ferment-y) * .6);
  background: var(--rt-stage);
  color: #fffbf5;
}
.rt-ferment::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: var(--rt-light);
  background: radial-gradient(34% 46% at var(--rt-glow-x) var(--rt-glow-y), rgb(242 165 126 / .5), rgb(242 165 126 / .1) 55%, transparent 75%);
}
.rt-ferment-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity .9s ease;
}
.rt-ferment-canvas.is-ready { opacity: 1; }
/* A still of the scene, for when the section is reached before the scene has drawn (a jump down the page, a
   reload that lands here): under the canvas, placed on the stage by rootist-ferment.js, shown as the light rises
   (--rt-light), its edges softened only where it stops short of the section's. The canvas fades in over it, then it goes. */
.rootist-store .rt-ferment > img.rt-ferment-poster {
  position: absolute; z-index: -1; display: block; max-width: none; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
  --rt-fade-l: 0%; --rt-fade-r: 0%; --rt-fade-t: 0%; --rt-fade-b: 0%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--rt-fade-l), #000 calc(100% - var(--rt-fade-r)), transparent), linear-gradient(180deg, transparent, #000 var(--rt-fade-t), #000 calc(100% - var(--rt-fade-b)), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 var(--rt-fade-l), #000 calc(100% - var(--rt-fade-r)), transparent), linear-gradient(180deg, transparent, #000 var(--rt-fade-t), #000 calc(100% - var(--rt-fade-b)), transparent);
  mask-composite: intersect;
}
.rootist-store .rt-ferment > img.rt-ferment-poster.is-loaded { opacity: var(--rt-light); }
.rootist-store .rt-ferment.is-live > img.rt-ferment-poster { opacity: 0; transition: opacity 0s linear .9s; }
.rt-ferment-canvas canvas { display: block; width: 100%; height: 100%; }
.rt-ferment-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--rt-stage) 0%, rgb(28 12 19 / .72) 26%, rgb(28 12 19 / .28) 44%, rgb(28 12 19 / 0) 58%);
}
.rt-ferment-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.rt-ferment .rt-eyebrow { color: #e4e825; }
.rt-ferment .rt-h2 {
  max-width: 13ch;
  font: 500 clamp(42px, 4.2vw, 64px)/1.06 'Fraunces', Georgia, serif;
  letter-spacing: -.035em;
  color: #fffbf5;
}
.rt-ferment .rt-ferment-copy > .rt-ferment-point { margin-top: 28px; }
.rt-ferment .rt-ferment-copy > .rt-h2 + .rt-ferment-point { margin-top: 40px; }
.rt-ferment .rt-ferment-point > h3 {
  margin: 0 0 6px;
  font: 700 17px/21px "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px !important; /* Override legacy .rootist-store h3 !important. */
  line-height: 21px !important;
  letter-spacing: .01em;
  color: #fffbf5;
}
.rt-ferment .rt-ferment-point > p {
  margin: 0;
  max-width: 30em;
  font: 400 17px/25px "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: rgb(255 251 245 / .76);
}
.rt-ferment .rt-ferment-copy > .rt-actions { margin-top: 40px; }
.rt-ferment .rt-actions .rt-link--light,
.rt-ferment .rt-actions .rt-link--light:hover {
  color: #fffbf5;
  font: 700 14px/20px "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
}
.rt-ferment-stage { height: min(72vh, 700px); min-height: 420px; }
.rt-ferment .rt-ferment-copy > .rt-ferment-ingredients {
  margin-top: 40px;
  margin-bottom: 0;
  font: 500 12px/16px "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgb(255 251 245 / .72);
}
@media (max-width: 1068px) { .rt-ferment { --rt-ferment-y: 104px; } }
@media (max-width: 900px) {
  .rt-ferment { --rt-glow-x: 50%; --rt-glow-y: 72%; }
  .rt-ferment-grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .rt-ferment-stage { height: 520px; min-height: 0; }
  .rt-ferment-canvas::after { background: none; }
  .rt-ferment-copy { position: relative; }
  .rt-ferment-copy::before {
    content: ""; position: absolute; z-index: -1;
    top: calc(-1 * var(--rt-ferment-y)); bottom: -120px; left: -50vw; right: -50vw;
    pointer-events: none;
    background: linear-gradient(180deg, var(--rt-stage) 0%, var(--rt-stage) calc(100% - 200px), rgb(28 12 19 / .6) calc(100% - 100px), rgb(28 12 19 / 0) 100%);
  }
}
@media (max-width: 734px) {
  .rt-ferment { --rt-ferment-y: 80px; }
  .rt-ferment-stage { height: 440px; }
  .rt-ferment .rt-h2 { font-size: clamp(36px, 10vw, 46px); }
}
@media (prefers-reduced-motion: reduce) { .rt-ferment-canvas { transition: none; } .rootist-store .rt-ferment > img.rt-ferment-poster { transition: none; } }

/* CHANGE 46: the copy beside the fermentation scene a step smaller, and the ingredient list most of all. */
.rootist-store .rt-ferment .rt-ferment-copy > .rt-ferment-point { margin-top: 22px; }
.rootist-store .rt-ferment .rt-ferment-copy > .rt-h2 + .rt-ferment-point { margin-top: 32px; }
.rootist-store .rt-ferment .rt-ferment-point > h3 { font-size: 15px !important; line-height: 20px !important; }
.rootist-store .rt-ferment .rt-ferment-point > p { max-width: 28em; font-size: 15px; line-height: 22px; }
.rootist-store .rt-ferment .rt-ferment-copy > .rt-actions { margin-top: 32px; }
.rootist-store .rt-ferment .rt-actions .rt-link--light,
.rootist-store .rt-ferment .rt-actions .rt-link--light:hover { font-size: 13px; }
.rootist-store .rt-ferment .rt-ferment-copy > .rt-ferment-ingredients { max-width: none; margin-top: 28px; font-size: 10px; line-height: 15px; letter-spacing: .09em; color: rgb(255 251 245 / .6); }
