.bite {
  --header-height: 77px;
  --stage-height: calc(100svh - var(--header-height));
  --bite-cream: #f5e8ce;
  --piece-width: min(56vw, 720px, 90svh);
  --strip-start-y: 45%;
  --swipe-start-gap: 11%;
  --swipe-dock-gap: 10%;
  --lineup-y: 54%;
  --lineup-size: .54;
  --card-spacing: min(22vw, 335px);
  background: var(--bite-cream);
}
.bite-stage {
  position: relative;
  display: grid;
  min-height: min(660px, var(--stage-height));
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 46%, #fff3d9 0, transparent 49%),
    repeating-linear-gradient(125deg, #9f442006 0 1px, transparent 1px 5px),
    var(--bite-cream);
}
.bite-inner { position: relative; }
.bite-intro, .bite-finish {
  position: absolute;
  z-index: 7;
  top: 49%;
  left: 2%;
  width: min(60%, 630px);
  transform: translateY(-50%);
}
.bite h1, .bite-finish-title {
  margin: .84rem 0 1.18rem;
  font: 900 clamp(4.5rem, 8.8vw, 8.8rem)/.91 var(--display);
  letter-spacing: -.026em;
}
.bite h1 em { color: var(--red); font-style: normal; }
.bite-intro > p:not(.origin), .bite-finish > p:not(.origin,.bite-finish-title) {
  font-size: clamp(1rem, 1.45vw, 1.23rem);
  margin-bottom: 1.25rem;
}
.bite-intro { opacity: var(--intro, 1); }
.bite-intro .intro-break { display: block; }
.bite:is(.is-animated, [data-bite-preview] .bite) .bite-intro {
  top: 4.5%;
  left: 0;
  width: 100%;
  transform: none;
  text-align: center;
}
.bite:is(.is-animated, [data-bite-preview] .bite) .bite-intro .origin { justify-content: center; }
.bite:is(.is-animated, [data-bite-preview] .bite) .bite-intro .intro-break { display: inline; }
.bite:is(.is-animated, [data-bite-preview] .bite) .bite-intro h1 {
  font-size: clamp(2.75rem, 7vw, 6.9rem);
  margin: .68rem 0 .9rem;
}
.bite:is(.is-animated, [data-bite-preview] .bite) .bite-intro > p:not(.origin) { margin-bottom: .65rem; }
.bite-finish {
  visibility: hidden;
  opacity: var(--finish, 0);
  color: #fff1d2;
}
.bite-finish[aria-hidden="false"] { visibility: visible; }
.bite-finish .origin-mark { color: #ffc85b; }
.bite-finish-title { font-size: clamp(3.8rem, 8.6vw, 8.1rem); }
.bite .bite-cta { background: #ffc85b; color: #39200d; }
.bite .bite-cta:hover { background: #fff0cb; }
.bite-red { position: absolute; pointer-events: none; }
.bite-red {
  inset: 0;
  opacity: var(--redness, 0);
  background:
    repeating-linear-gradient(122deg, transparent 0 4px, #460a0b25 4px 5px),
    radial-gradient(ellipse at 68% 37%, #c44a2b, #a7231c 52%, #6b160f);
}
.bite-pack, .bite-strip {
  position: absolute;
  pointer-events: none;
}
.bite-pack {
  inset: 0;
  opacity: var(--pack-opacity, 1);
}
.pack-backdrop, .pack-front-face {
  position: absolute;
  left: var(--pack-x, 72%);
  top: var(--pack-y, 53%);
  width: var(--pack-size, min(29vw, 340px, 48svh));
  transform: translate(-50%, -50%) rotate(var(--pack-angle, -10deg)) scale(var(--pack-scale, 1));
}
.pack-backdrop, .pack-front-face { height: auto; }
.pack-backdrop { z-index: 3; filter: var(--pack-tone,) drop-shadow(12px 22px 18px #41180759); }
.pack-front-face { z-index: 6; clip-path: inset(3% 0 0); filter: var(--pack-tone, none); }
.bite-strip {
  z-index: 5;
  opacity: var(--strip-opacity, 0);
  top: var(--strip-y, 50%);
  left: var(--strip-x, 50%);
  width: var(--piece-width);
  max-width: none;
  transform: translate(-50%, -50%) rotateZ(var(--strip-roll, 0deg)) scale(var(--strip-scale, 1));
  filter: drop-shadow(13px 24px 16px #65251069);
}
html[data-bite-preview] .bite:not(.is-animated) .bite-pack { opacity: 0; }
html[data-bite-preview] .bite:not(.is-animated) .bite-strip { top: var(--strip-start-y); opacity: 1; }
.swipe-dot, .swipe-target { display: none; }
.bite.is-animated :is(.swipe-dot, .swipe-target), html[data-bite-preview] .swipe-dot {
  display: block;
  position: absolute;
  z-index: 8;
  border-radius: 50%;
  pointer-events: none;
}
.swipe-dot {
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--red);
}
html[data-bite-preview] .bite:not(.is-animated) .swipe-dot {
  top: calc(var(--strip-start-y) + var(--swipe-start-gap));
  left: 50%;
  transform: translate(-50%, -50%);
}
.swipe-target {
  top: calc(var(--lineup-y) + var(--swipe-dock-gap));
  left: 50%;
  width: 22px;
  height: 22px;
  border: 1px solid var(--red);
  opacity: 0;
  transform: translate(-50%, -50%);
}
/* Scroll only changes transforms and opacity on these visual layers. */
.bite.is-animated :is(.bite-strip, .pack-backdrop, .pack-front-face) {
  top: 0;
  left: 0;
  will-change: transform;
}
.bite.is-animated .bite-strip { will-change: transform, opacity; }
.bite:is(.is-animated, [data-bite-preview] .bite) { height: calc(var(--stage-height) + 295svh); }
.bite:is(.is-animated, [data-bite-preview] .bite) .bite-stage { position: sticky; top: var(--header-height); height: var(--stage-height); }

@media (max-width: 720px) {
  .bite {
    --header-height: 65px;
    --piece-width: min(89vw, 510px, 72svh);
    --strip-start-y: 47%;
    --lineup-y: 53%;
    --lineup-size: .55;
    --card-spacing: min(43vw, 170px);
  }
  .bite-stage { min-height: min(620px, var(--stage-height)); }
  .bite-intro, .bite-finish {
    top: 8%;
    left: 1%;
    width: 98%;
    transform: none;
  }
  .bite h1 { font-size: clamp(4rem, 14vw, 6.3rem); }
  .bite:is(.is-animated, [data-bite-preview] .bite) .bite-intro h1 { font-size: clamp(2.7rem, 10.3vw, 4.7rem); }
  .bite-finish-title { font-size: clamp(3.1rem, 12vw, 5.6rem); }
  .bite-finish {
    top: auto;
    bottom: 6%;
  }
  .bite-intro > p:not(.origin), .bite-finish > p:not(.origin,.bite-finish-title) { margin-bottom: .85rem; }
  .bite-pack { --pack-size: min(57vw, 280px, 43svh); }
  .bite:not(.is-animated) .bite-pack { --pack-x: 55%; --pack-y: 73%; --pack-size: min(46vw, 260px, 35svh); }
  .bite:is(.is-animated, [data-bite-preview] .bite) { height: calc(var(--stage-height) + 280svh); }
}
@media (max-width: 720px) and (max-height: 740px) {
  .bite-intro { top: 5%; }
  .bite h1 { margin: .55rem 0 .65rem; }
  .bite-finish-title { margin: .5rem 0 .62rem; }
  .bite-finish { bottom: 4%; }
}
@media (max-height: 520px) {
  .bite:not(.is-animated) .bite-stage { min-height: 410px; }
}

.bite-notes {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
  opacity: var(--notes-opacity, 0);
  visibility: hidden;
}
.bite-notes[aria-hidden="false"] { visibility: visible; }
.bite-note {
  position: absolute;
  width: min(23%, 236px);
}
.bite-note-taste { top: 30%; left: 1%; }
.bite-note-flavors { top: 58%; right: 1%; }
.bite-note .origin { color: var(--red-dark); }
.bite-note .bite-note-title {
  margin: .45rem 0 .55rem;
  font: 800 clamp(1.65rem, 3vw, 3.35rem)/.96 var(--display);
}
@media (max-width: 720px) {
  .bite-note { width: min(80%, 230px); }
  .bite-note-taste { top: 6%; left: 3%; }
  .bite-note-flavors { top: auto; bottom: 5%; right: 3%; text-align: right; }
  .bite-note-flavors .origin { justify-content: flex-end; }
  .bite-note .bite-note-title { font-size: clamp(1.5rem, 6vw, 2.35rem); }
}
@media (max-width: 720px) and (max-height: 620px) {
  .bite-note-taste { top: 2%; }
  .bite-note .bite-note-title { margin-block: .25rem; }
  .bite-note p:not(.origin,.bite-note-title) { font-size: .9rem; }
}

.bite-lineup {
  position: absolute;
  z-index: 7;
  inset: 0;
  visibility: hidden;
  opacity: var(--lineup-opacity, 0);
  pointer-events: none;
  text-align: center;
}
.bite-lineup[data-visible="true"] { visibility: visible; }
.lineup-heading {
  position: absolute;
  top: 12%;
  left: 0;
  right: 0;
  opacity: var(--lineup-caption, 1);
}
.lineup-heading .origin { justify-content: center; margin-bottom: .72rem; }
.lineup-heading h2 { font-size: clamp(3.4rem, 7.7vw, 6.9rem); }
.lineup-track {
  position: absolute;
  top: var(--lineup-y);
  left: 50%;
  width: 100vw;
  height: min(37%, 310px);
  transform: translate(-50%, -50%);
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-inline: contain;
  cursor: grab;
}
.lineup-track:active { cursor: grabbing; }
.lineup-card {
  position: absolute;
  z-index: calc(8 - var(--distance));
  top: 50%;
  left: 50%;
  width: var(--piece-width);
  aspect-ratio: 2.75;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  opacity: max(0, calc(1 - var(--distance) * .21));
  transform:
    translate(calc(-50% + var(--slot) * var(--card-spacing) * var(--fan, 1)), calc(-50% + var(--distance) * 16px * var(--fan, 1)))
    rotate(calc(var(--slot) * 11deg * var(--fan, 1)))
    scale(calc(var(--lineup-size) - var(--distance) * .17 * var(--fan, 1)));
  transition: transform .47s cubic-bezier(.22,.8,.24,1), opacity .34s;
  cursor: inherit;
}
.lineup-track.is-fanning .lineup-card { transition: none; }
.lineup-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(11px 22px 12px #65251059);
  user-select: none;
  -webkit-user-drag: none;
}
.lineup-card[data-distant="true"] { opacity: 0; pointer-events: none; }
.lineup-card[data-selected="true"] { z-index: 10; }
.bite-lineup[data-interactive="true"] .lineup-track { pointer-events: auto; }
.lineup-copy {
  position: absolute;
  top: calc(var(--lineup-y) + 20%);
  left: 0;
  right: 0;
  opacity: var(--lineup-caption, 1);
}
.lineup-name { font: 800 clamp(2rem, 4.6vw, 4.8rem)/.94 var(--display); }
.lineup-flavors { width: min(92%, 36rem); margin: .65rem auto 0; font-size: .94rem; font-weight: 600; }
.lineup-hint {
  position: absolute;
  bottom: 4%;
  inset-inline: 0;
  color: var(--red-dark);
  font-size: .78rem;
  font-weight: 700;
  visibility: hidden;
}
.bite-lineup[data-interactive="true"] .lineup-hint { visibility: visible; }
.bite-finish > .finish-preview:not(.origin,.bite-finish-title) { margin: -.75rem 0 .9rem; font-size: .875rem; }
.bite.has-lineup:not(.is-animated) .bite-inner { min-height: max(940px, calc(95vh + 380px)); }
.bite.has-lineup:not(.is-animated) .bite-intro { top: 26%; }
.bite.has-lineup:not(.is-animated) .bite-pack { --pack-y: 26%; }
.bite.has-lineup:not(.is-animated) .bite-lineup { top: 53%; }
.bite.has-lineup:not(.is-animated) .lineup-card { transition: none; }

@media (max-width: 720px) {
  .lineup-heading { top: 14%; }
  .lineup-heading h2 { font-size: clamp(2.9rem, 11vw, 4.6rem); }
  .lineup-copy { top: calc(var(--lineup-y) + 18%); }
  .bite.has-lineup:not(.is-animated) .bite-inner { min-height: 1030px; }
  .bite.has-lineup:not(.is-animated) .bite-intro { top: 3%; }
  .bite.has-lineup:not(.is-animated) .bite-pack { --pack-y: 36%; }
}
@media (max-width: 720px) and (max-height: 740px) {
  .bite.is-animated { --lineup-y: 51%; }
}
@media (max-width: 345px) and (max-height: 620px) {
  .bite.is-animated .lineup-name { font-size: 1.8rem; }
  .bite.is-animated .lineup-flavors { margin-top: .25rem; font-size: .84rem; }
}
@media (max-height: 740px) and (min-width: 721px) {
  .lineup-heading { top: 11%; }
}
@media (prefers-reduced-motion: reduce) {
  .lineup-card { transition: none; }
}

.bite-intro .store-kicker { font: inherit; color: inherit; }
.bite.no-featured :is(.bite-pack, .bite-strip) { display: none; }
.store-error { padding-block: 1rem; color: var(--red-dark); }
