/* ==========================================================================
   B's Bakes — "paper bag & chalkboard" theme
   Loaded AFTER styles.css on the customer pages only (the Kitchen dashboard
   keeps the base look). The 3D box, its rolls and the phone slide-away
   behaviour live in styles.css / bread3d.js / hero.js and are not restyled here;
   this file only adds how the box enters and idles.
   Motion is gated on <html class="motion"> (set in <head> when the visitor has
   not asked for reduced motion), so every pre-animation state is opt-in.
   ========================================================================== */

:root {
  --cream: #faf3e3;          /* flour */
  --cream-2: #f1e5cb;
  --paper: #edddbb;          /* light paper bag */
  --kraft: #c9a26f;          /* the box */
  --kraft-deep: #9b744a;
  --glaze: #c4781f;          /* toasted golden-brown */
  --glaze-deep: #9c5a10;
  --ink: #2b1d14;            /* cocoa, not black */
  --ink-2: #5e4d3f;
  --line: #dfcda8;
  --berry: #9b2743;          /* the one accent */
  --berry-deep: #741b31;
  --board: #29221d;          /* chalkboard */
  --chalk: #f5efe4;
  --puff: "Bagel Fat One", "Fraunces", Georgia, serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36  0 0 0 0 .24  0 0 0 0 .12  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M2 7c9-7 14 6 23 0s14-6 23 0 14 6 23 0 14-6 23 0 14 5 22 0' fill='none' stroke='%239B2743' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  --squiggle-chalk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M2 7c9-7 14 6 23 0s14-6 23 0 14 6 23 0 14-6 23 0 14 5 22 0' fill='none' stroke='%23EBCB86' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- base: paper grain, softer serif cut, focus ---------- */
body {
  background-color: var(--cream);
  background-image: var(--grain);
  font-variation-settings: "SOFT" 100, "WONK" 0;   /* Fraunces: its soft, rounded cut */
}
h1, h2, h3 { font-weight: 900; }
.script { color: var(--berry); }
:where(a, button, summary, input, textarea, select):focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }
.band-dark :where(a, button):focus-visible, .hero-video :where(a, button):focus-visible { outline-color: var(--butter); }

/* ---------- buttons: pressable, squish on tap ---------- */
.btn {
  background: var(--berry); color: #fff8ec; border: 0; min-height: 48px;
  box-shadow: 0 4px 0 var(--berry-deep), 0 12px 18px -10px rgba(116, 27, 49, .55);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--berry-deep), 0 16px 22px -10px rgba(116, 27, 49, .55); }
.btn:active { transform: translateY(3px) scale(1.03, .93); box-shadow: 0 1px 0 var(--berry-deep); }
.btn:disabled { transform: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--butter-soft); box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-1px); }
.btn-ghost:active { transform: scale(1.03, .93); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-sm { min-height: 42px; box-shadow: 0 3px 0 var(--berry-deep); }
.btn-light { background: var(--butter); color: var(--ink); box-shadow: 0 5px 0 #a98838, 0 18px 30px rgba(0, 0, 0, .35); }
.btn-light:hover { background: var(--butter-soft); box-shadow: 0 7px 0 #a98838, 0 20px 34px rgba(0, 0, 0, .4); }
.btn-light:active { box-shadow: 0 1px 0 #a98838; }
.order-foot .btn { box-shadow: 0 3px 0 var(--berry-deep); }
.order-foot .btn-ghost { box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- nav: solid paper, stitched edge (no frosted glass) ---------- */
.nav { background: var(--cream) var(--grain); backdrop-filter: none; border-bottom: 2px dashed var(--line); }
.brand { font-family: var(--puff); font-weight: 400; font-size: 1.35rem; letter-spacing: .01em; }
.nav nav a:not(.btn) { position: relative; padding: .4rem 0; }
.nav nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 8px; background: var(--squiggle) center / auto 8px repeat-x; opacity: 0; transition: opacity .15s; }
.nav nav a:not(.btn):hover::after, .nav nav a[aria-current="page"]::after { opacity: 1; }

/* ---------- section heads: big puffy headings + hand-drawn underline ---------- */
.section-head h2, .footer-cta h2 { font-family: var(--puff); font-weight: 400; letter-spacing: 0; line-height: .98; font-synthesis: none; }
.section-head h2 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); }
.section-head h2::after { content: ""; display: block; width: 120px; height: 12px; margin: .35em auto 0; background: var(--squiggle) center / contain no-repeat; }
.section-tight { padding-block: clamp(20px, 4vw, 44px); }

/* ==========================================================================
   HERO — video stays; copy sits low-left, big; a stamp presses on
   ========================================================================== */
.hero-video { place-items: end start; }
.hero-shade { background: linear-gradient(200deg, rgba(27, 18, 10, .08) 28%, rgba(27, 18, 10, .82) 94%); }
.hero-inner { text-align: left; max-width: none; padding: 0 clamp(20px, 5vw, 72px) clamp(84px, 13vh, 150px); }
.hero-inner .script { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.hero-inner h1 { font-family: var(--puff); font-weight: 400; font-synthesis: none; font-size: clamp(3.3rem, 11.5vw, 10.5rem); line-height: .9; letter-spacing: -.005em; margin: .08em 0 .34em; }
.hero-inner h1 em { font-family: var(--display); font-weight: 700; font-size: .8em; display: inline-block; transform: rotate(-3deg); transform-origin: left center; }
.hero-inner h1 .word { display: inline-block; white-space: nowrap; }
.hero-inner h1 .ch { display: inline-block; }
.hero-stamp {
  position: absolute; right: clamp(14px, 6vw, 96px); top: clamp(14px, 8vh, 84px);
  width: clamp(104px, 15vw, 196px); height: auto; padding: 6px; border-radius: 50%;
  color: var(--berry); background: var(--cream); transform: rotate(12deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .32);
}
.hero-stamp text { fill: currentColor; font-family: var(--body); font-weight: 700; }
.hero-stamp .s-script { font-family: var(--script); font-size: 30px; }
.hero-stamp .s-big { font-family: var(--puff); font-weight: 400; font-size: 31px; letter-spacing: 1px; }
@media (max-width: 720px) {
  .hero-inner { padding-bottom: 76px; }
  .hero-inner .btn { width: 100%; }
}
.ribbon { background: var(--berry); border-block-color: var(--ink); }
.ribbon span { color: #fff8ec; font-weight: 800; }
.ribbon span::after { color: var(--butter); }

.motion .hero-inner .script { animation: fadeUp .6s ease .05s backwards; }
.motion .hero-inner h1 .ch { animation: rise .62s cubic-bezier(.2, 1.35, .4, 1) calc(var(--i) * 30ms + .18s) backwards; }
.motion .hero-inner .btn { animation: popIn .5s cubic-bezier(.3, 1.5, .5, 1) 1s backwards; }
.motion .hero-stamp { animation: stampHero .5s cubic-bezier(.2, 1.4, .4, 1) 1.25s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(.55em) rotate(9deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px) rotate(-2deg); } }
@keyframes popIn { from { opacity: 0; transform: scale(.7); } }
@keyframes stampHero { 0% { opacity: 0; transform: rotate(32deg) scale(2.3); } 60% { opacity: 1; transform: rotate(9deg) scale(.93); } }

/* ---------- reels: quiet frames ---------- */
.reels-grid .instagram-media { border: 0 !important; border-radius: 10px !important; box-shadow: 0 2px 0 rgba(90, 60, 20, .12), 0 20px 32px -22px rgba(70, 40, 10, .6) !important; }
.reel-nav { border: 0; background: var(--ink); color: var(--cream); box-shadow: 0 3px 0 #000; }
.reel-nav:hover { background: var(--berry); }

/* ==========================================================================
   MENU — the flavor stage: a berry band with pinked edges holding a
   colour-blocked carousel. Each flavor floats on its own pastel panel;
   "Take a closer look" opens the panel and slides in a bakery-receipt slip.
   Markup comes from renderMenu() in app.js; behaviour is in flavors.js.
   ========================================================================== */
#menu { position: relative; isolation: isolate; padding-block: clamp(76px, 10vw, 140px); }
#menu::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw;
  background: var(--berry-deep) var(--grain);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 26px 51% repeat-x,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 26px 51% repeat-x;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 26px 51% repeat-x,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 26px 51% repeat-x;
}
#menu .section-head { text-align: left; margin-left: 0; max-width: 760px; }
#menu .section-head .script { color: var(--butter); }
#menu .section-head h2 { color: #fff8ec; }
#menu .section-head h2::after { margin-left: 0; background-image: var(--squiggle-chalk); }
#menu .section-head p:not(.script) { color: #f0dccd; }
#menu :where(a, button, .flavor-stage):focus-visible { outline-color: var(--butter); }

.flavor-wrap { position: relative; }
.flavor-stage {
  position: relative; display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 28px;
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6);
}
.flavor-stage::-webkit-scrollbar { display: none; }
.flavor {
  position: relative; flex: 0 0 64%; scroll-snap-align: center; overflow: hidden;
  min-height: clamp(540px, 48vw, 640px);
  padding: clamp(1.8rem, 4vw, 2.8rem) 1.2rem 6rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--bg) var(--grain); color: var(--fg);
}
.flavor-title { font-family: var(--puff); font-weight: 400; font-synthesis: none; text-transform: uppercase; font-size: clamp(2.1rem, 5.4vw, 4rem); line-height: .92; letter-spacing: .01em; color: var(--fg); margin: 0; }
.flavor-title span { display: block; }
.flavor-tag {
  position: absolute; left: clamp(10px, 4%, 40px); top: clamp(92px, 13vw, 150px); z-index: 2; width: 86px; height: 86px; padding: 10px; border-radius: 50%;
  display: grid; place-items: center; background: var(--berry); color: #fff8ec; font: 700 1.25rem/.92 var(--script);
  outline: 2px dashed rgba(255, 248, 236, .7); outline-offset: -7px; box-shadow: 0 5px 12px rgba(0, 0, 0, .25); transform: rotate(-14deg);
}
/* the floating roll: a die-cut sticker of the real photo, until cut-out shots exist */
.flavor-float { width: min(72%, 440px); margin-top: clamp(1.2rem, 3vw, 2.2rem); display: grid; justify-items: center; }
.motion .flavor-float { animation: puffFloat 5.6s ease-in-out infinite; }
.motion .flavor:nth-child(2) .flavor-float { animation-delay: -1.9s; }
.motion .flavor:nth-child(3) .flavor-float { animation-delay: -3.6s; }
@keyframes puffFloat { 50% { transform: translateY(-12px) rotate(.8deg); } }
.flavor-photo {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border: 8px solid #fffdf8; border-radius: 46% 54% 50% 50% / 56% 52% 48% 44%;
  box-shadow: 0 20px 26px -18px rgba(40, 20, 5, .6);
  transform: rotate(-3deg); transition: transform .55s cubic-bezier(.2, .9, .3, 1.25);
}
.flavor:nth-child(even) .flavor-photo { transform: rotate(2.5deg); border-radius: 52% 48% 46% 54% / 50% 56% 44% 50%; }
.flavor-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flavor-photo .open-shot { opacity: 0; transition: opacity .45s ease; }
.flavor.open .flavor-photo .open-shot { opacity: 1; }
/* real cut-out renders (transparent PNG): no sticker frame, just the floating roll */
.flavor.cutout .flavor-photo { border: 0; border-radius: 0; overflow: visible; box-shadow: none; }
.flavor.cutout .flavor-photo img { object-fit: contain; filter: drop-shadow(0 18px 14px rgba(40, 20, 5, .35)); }
.flavor-shadow { width: 46%; height: 18px; margin-top: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 20, 5, .3), transparent); }

.flavor-actions { position: absolute; left: 0; right: 0; bottom: 1.6rem; display: flex; justify-content: center; padding: 0 4.6rem; }
.flavor-reveal { background: var(--fg); box-shadow: 0 4px 0 rgba(0, 0, 0, .45); }
.flavor-reveal:hover { box-shadow: 0 6px 0 rgba(0, 0, 0, .45); }
.flavor-reveal:active { box-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.flavor-add, .flavor.open .flavor-reveal { display: none; }
.flavor.open .flavor-add { display: inline-flex; }
.flavor-close { display: none; position: absolute; top: 14px; right: 14px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fffdf6; color: var(--ink); font: 700 1.5rem/1 var(--body); cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.flavor.open .flavor-close { display: grid; place-items: center; }
.flavor-close:active { transform: scale(.9); }
.flavor-nav { position: absolute; bottom: 1.6rem; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fffdf6; color: var(--ink); font: 700 1.5rem/1 var(--body); cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.flavor-nav.prev { left: 16px; } .flavor-nav.next { right: 16px; }
.flavor-nav:active { transform: scale(.88); }
.flavor-nav:disabled { opacity: .35; cursor: default; }

/* the receipt slip + price, shown when a panel is open */
.receipt {
  background: #fffdf6; color: var(--ink); text-align: left; text-transform: uppercase; letter-spacing: .02em;
  font: 500 .76rem/1.55 "DM Mono", ui-monospace, Menlo, monospace; padding: 1.5rem 1.1rem 1.6rem;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 14px 51% repeat-x,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 51% repeat-x;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 14px 51% repeat-x,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 51% repeat-x;
}
.receipt h4 { margin: 0 0 .6rem; text-align: center; font: 400 1.45rem/1 var(--puff); letter-spacing: .03em; color: var(--berry); }
.receipt dl { margin: 0; padding: .55rem 0; border-top: 1.5px dashed var(--ink); }
.receipt dl div { display: flex; justify-content: space-between; gap: .8rem; }
.receipt dd { margin: 0; text-align: right; }
.receipt p, .receipt ul { margin: 0; padding: .55rem 0; border-top: 1.5px dashed var(--ink); }
.receipt ul { list-style: "• " inside; }
.receipt dl:last-of-type dd { font-weight: 500; }
.flavor-side p { margin: 0 0 .8rem; text-transform: uppercase; letter-spacing: .04em; font: 500 .82rem/1.5 "DM Mono", ui-monospace, Menlo, monospace; }
.flavor-price { font: 400 clamp(2.4rem, 4vw, 3.2rem)/1 var(--puff); }
.flavor-price small { font: 700 1.5rem var(--script); margin-left: .3rem; }

.flavor.open { flex-basis: 100%; }
.flavor.open .flavor-photo { transform: rotate(1.5deg) scale(1.06); }
@media (min-width: 821px) {
  .receipt, .flavor-side { position: absolute; top: 37%; opacity: 0; visibility: hidden; transition: transform .5s cubic-bezier(.2, 1.2, .3, 1), opacity .3s ease, visibility 0s .3s; }
  .receipt { left: clamp(18px, 4.5%, 60px); width: min(250px, 25%); transform: translateX(-50px) rotate(-14deg); }
  .flavor-side { right: clamp(18px, 5%, 70px); width: min(240px, 24%); transform: translateX(40px); }
  .flavor.open .receipt { opacity: 1; visibility: visible; transform: rotate(-5deg); transition-delay: .12s, .12s, 0s; }
  .flavor.open .flavor-side { opacity: 1; visibility: visible; transform: none; transition-delay: .2s, .2s, 0s; }
  .flavor.open .flavor-float { width: min(46%, 440px); }
  .flavor.open .flavor-tag { display: none; }
}
@media (max-width: 820px) {
  .flavor { flex-basis: 86%; min-height: 520px; padding-inline: 1rem; }
  .flavor-float { width: min(86%, 340px); }
  .flavor-tag { width: 76px; height: 76px; font-size: 1.1rem; top: 104px; left: 8px; }
  .flavor-actions { padding: 0 4.2rem; }
  .flavor-actions .btn { padding-inline: 1rem; font-size: .95rem; }
  .receipt, .flavor-side { display: none; }
  .flavor.open { padding-bottom: 6.4rem; }
  .flavor.open .flavor-float { width: min(70%, 280px); }
  .flavor.open .receipt { display: block; width: min(100%, 300px); margin-top: 1.2rem; transform: rotate(-2deg); }
  .flavor.open .flavor-side { display: block; margin-top: 1.1rem; }
  .flavor.open .flavor-side p { display: none; }
  .motion .flavor.open .receipt { animation: slipIn .45s cubic-bezier(.2, 1.2, .3, 1) backwards; }
  @keyframes slipIn { from { opacity: 0; transform: translateY(24px) rotate(-9deg); } }
}

/* ---------- treats teaser: a kraft bag, pinked top, no gradient ---------- */
.treats-teaser {
  background: var(--kraft) var(--grain); border: 0; border-radius: 0 0 10px 10px;
  padding: clamp(2.2rem, 5vw, 3rem) clamp(1.4rem, 4vw, 2.6rem) clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: none; filter: drop-shadow(0 16px 14px rgba(70, 40, 10, .28));
  transform: rotate(-.7deg);
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 22px 100% repeat-x;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 22px 100% repeat-x;
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.3);
}
.treats-teaser:hover { transform: rotate(-.2deg) translateY(-4px); }
.treats-teaser .script { color: var(--berry-deep); }
.treats-teaser h2 { font-family: var(--puff); font-weight: 400; font-synthesis: none; letter-spacing: 0; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1; }
.treats-teaser p:not(.script) { color: #3b2a1c; }
.treats-teaser .btn { background: var(--ink); box-shadow: 0 4px 0 #0e0906; }
@media (max-width: 720px) { .treats-teaser .btn { width: 100%; } }

/* ==========================================================================
   ORDER — same flow; reads as a bakery order ticket
   ========================================================================== */
.order-card { border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 0 2px 0 rgba(90, 60, 20, .14), 0 30px 44px -30px rgba(70, 40, 10, .65); }
.steps-bar button { border-style: dashed; border-color: var(--kraft); min-height: 44px; }
.steps-bar li.on button { border-style: solid; }
.qty-row { border-radius: 12px; }
.q-photo { border: 3px solid #fffdf8; border-radius: 6px; box-shadow: 0 4px 8px -4px rgba(60, 35, 10, .6); transform: rotate(-3deg); }
.qty-row:nth-child(even) .q-photo { transform: rotate(2.5deg); }
.q-price { font-family: var(--script); font-size: 1.15rem !important; color: var(--ink) !important; }
.stepper button { min-width: 44px; min-height: 44px; }
.stepper button:active:not(:disabled) { transform: scale(.86); }
.order-foot { border-top: 2px dashed var(--ink); background: var(--cream-2) var(--grain); }
.foot-total { position: relative; }
.added-pop {
  position: absolute; left: 50%; top: -38px; padding: .1rem .7rem .2rem; border-radius: 999px; white-space: nowrap;
  background: var(--berry); color: #fff8ec; font: 700 1.25rem/1.2 var(--script); pointer-events: none;
  transform: translateX(-50%) rotate(-6deg); animation: addedPop .9s cubic-bezier(.2, 1.5, .4, 1) forwards;
}
@keyframes addedPop {
  0% { opacity: 0; transform: translateX(-50%) translateY(14px) rotate(-16deg) scale(.4); }
  25% { opacity: 1; transform: translateX(-50%) rotate(-6deg) scale(1.08); }
  70% { opacity: 1; transform: translateX(-50%) translateY(-4px) rotate(-6deg) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-18px) rotate(-3deg) scale(.95); }
}
.success-card { border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 0 30px 44px -30px rgba(70, 40, 10, .65); }

/* ==========================================================================
   HOW IT WORKS — a chalkboard with scalloped edges; the chalk line draws
   itself as you scroll
   ========================================================================== */
.band-dark { position: relative; margin: 34px 0; background: var(--board) radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .05), transparent 60%); color: var(--chalk); }
.band-dark::before, .band-dark::after { content: ""; position: absolute; left: 0; right: 0; height: 16px; background-repeat: repeat-x; background-size: 32px 16px; }
.band-dark::before { top: -15px; background-image: radial-gradient(circle at 16px 16px, var(--board) 15.5px, transparent 16px); }
.band-dark::after { bottom: -15px; background-image: radial-gradient(circle at 16px 0, var(--board) 15.5px, transparent 16px); }
.band-dark .section-head h2 { color: var(--chalk); }
.band-dark .section-head h2::after { background-image: var(--squiggle-chalk); }
.band-dark .how-grid { position: relative; gap: clamp(1rem, 3vw, 2.4rem); }
.band-dark .how-grid::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 36px; border-top: 3px dashed rgba(245, 239, 228, .5);
  transform: scaleX(var(--p, 1)); transform-origin: left center;
}
.band-dark .how-grid li { --at: 0; position: relative; background: none; border: 0; padding: 0 .4rem; text-align: center; }
.band-dark .how-grid li:nth-child(2) { --at: .2; } .band-dark .how-grid li:nth-child(3) { --at: .42; } .band-dark .how-grid li:nth-child(4) { --at: .64; }
.motion .band-dark .how-grid li { opacity: clamp(0, calc((var(--p, 1) - var(--at)) * 6), 1); }
.band-dark .how-n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto .9rem;
  background: var(--board); border: 3px solid var(--chalk); border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  font-size: 2.9rem; color: var(--butter); transform: rotate(-5deg);
}
.band-dark .how-grid li:nth-child(even) .how-n { transform: rotate(4deg); border-radius: 52% 48% 47% 53% / 48% 53% 47% 52%; }
.band-dark .how-grid h3 { font-size: 1.45rem; color: var(--chalk); }
.band-dark .how-grid p { color: #d3c8b8; }
@media (max-width: 820px) {
  .band-dark .how-grid { grid-template-columns: 1fr; gap: 1.5rem; max-width: 440px; margin-inline: auto; }
  .band-dark .how-grid::before { left: 29px; right: auto; top: 12px; bottom: 12px; border-top: 0; border-left: 3px dashed rgba(245, 239, 228, .5); transform: scaleY(var(--p, 1)); transform-origin: center top; }
  .band-dark .how-grid li { display: grid; grid-template-columns: 60px 1fr; column-gap: 1rem; text-align: left; padding: 0; align-items: start; }
  .band-dark .how-n { grid-row: span 2; width: 60px; height: 60px; margin: 0; font-size: 2.3rem; }
  .band-dark .how-grid h3 { margin: .25rem 0 .1rem; }
}

/* ---------- FAQ: a notepad column beside its heading, ruled lines not boxes ---------- */
#faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
#faq .section-head { text-align: left; margin: 0; position: sticky; top: 104px; }
#faq .section-head h2::after { margin-left: 0; }
.faq { max-width: none; margin: 0; gap: 0; }
.faq details { background: none; border: 0; border-bottom: 2px dashed var(--line); border-radius: 0; padding: 1.15rem .2rem; }
.faq details:first-child { border-top: 2px dashed var(--line); }
.faq details[open] { border-color: var(--line); }
.faq summary { font: 800 1.2rem/1.25 var(--display); align-items: center; min-height: 32px; }
.faq summary::after { color: var(--berry); font-size: 1.6rem; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq p { max-width: 58ch; }
@media (max-width: 820px) {
  #faq { display: block; }
  #faq .section-head { position: static; margin-bottom: 1.6rem; }
}

/* ==========================================================================
   THE BOX ("Ready for a dozen?") — unchanged box; new entrance + idle life
   ========================================================================== */
.footer-cta h2 { font-size: clamp(2.7rem, 6.2vw, 4.8rem); }
@media (max-width: 720px) { .footer-cta-stage h2 { font-size: clamp(2.3rem, 10.5vw, 3rem); } }
.box-sticker {
  position: absolute; right: 1%; top: 5%; z-index: 2; width: 104px; height: 104px; padding: 14px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--berry); color: #fff8ec; font: 700 1.3rem/.92 var(--script);
  outline: 2px dashed rgba(255, 248, 236, .7); outline-offset: -8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .22); transform: rotate(14deg);
}
.dust { position: absolute; left: 20%; right: 20%; top: 10%; height: 26%; pointer-events: none; }
.dust i { position: absolute; bottom: 0; left: calc(var(--x) * 1%); width: var(--s, 5px); height: var(--s, 5px); border-radius: 50%; background: rgba(173, 134, 86, .6); opacity: 0; }
@media (max-width: 720px) { .box-sticker { width: 84px; height: 84px; font-size: 1.05rem; padding: 12px; } }

.motion #footerArt:not(.in) .footer-render, .motion #footerArt:not(.in) .float-wrap,
.motion #footerArt:not(.in) .box-sticker, .motion #footerArt:not(.in) .float-shadow { opacity: 0; }
.motion #footerArt.in .footer-render, .motion #footerArt.in .float-wrap {
  animation: boxDrop .95s cubic-bezier(.3, .8, .4, 1) backwards, floatSway 6.5s ease-in-out .95s infinite;
}
.motion #footerArt.in .float-shadow { animation: shadowLand .95s ease-out backwards, floatShadow 6.5s ease-in-out .95s infinite; }
.motion #footerArt.in .box-sticker { animation: stampBox .45s cubic-bezier(.2, 1.4, .4, 1) 1.05s backwards; }
.motion #footerArt.in .dust i { animation: dust var(--t, 5s) ease-in-out var(--d, 0s) infinite; }
@keyframes boxDrop {
  0% { opacity: 0; transform: translateY(-150px) rotate(-9deg); }
  52% { opacity: 1; transform: translateY(12px) rotate(1.2deg) scale(1.03, .93); }
  72% { transform: translateY(-9px) rotate(-.6deg) scale(.99, 1.02); }
  88% { transform: translateY(3px) scale(1.01, .99); }
  100% { transform: none; }
}
@keyframes floatSway {
  0%, 100% { transform: none; }
  25% { transform: translateY(-9px) rotate(1deg); }
  50% { transform: translateY(-16px) rotate(-.4deg); }
  75% { transform: translateY(-7px) rotate(-1.4deg); }
}
@keyframes shadowLand { from { opacity: 0; transform: translateX(-50%) scale(.3); } }
@keyframes stampBox { 0% { opacity: 0; transform: rotate(34deg) scale(2.4); } 60% { opacity: 1; transform: rotate(11deg) scale(.92); } }
@keyframes dust {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  20% { opacity: .75; }
  100% { opacity: 0; transform: translate3d(var(--dx, 10px), -72px, 0) scale(.55); }
}

.footer-base { border-top: 2px dashed var(--line); }
.footer .ig { text-decoration-color: var(--berry); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ==========================================================================
   OTHER TREATS page — paper cards with a flavour-colour edge
   ========================================================================== */
.treat { background: var(--white); border: 0; border-radius: 6px 6px 12px 12px; box-shadow: inset 0 -7px 0 var(--tc), 0 16px 24px -20px rgba(70, 40, 10, .6); padding: 1.1rem 1.2rem 1.4rem; transform: rotate(-.8deg); transition: transform .25s cubic-bezier(.2, .9, .3, 1.3); }
.treat:nth-child(even) { transform: rotate(.9deg); }
.treat:hover { border: 0; transform: rotate(0) translateY(-5px); }
.treat-name { font-size: 1.25rem; font-weight: 900; }
.treat-form, .treat-done { border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 0 2px 0 rgba(90, 60, 20, .14), 0 30px 44px -30px rgba(70, 40, 10, .65); }
.pick span { min-height: 40px; display: inline-flex; align-items: center; }
.receipt dt { flex: none; }

/* ==========================================================================
   MAIN SCREEN — the flavor stage is the first thing on the page.
   The butter-pour video sits below it as a shorter band.
   ========================================================================== */
#feature { padding-block: clamp(18px, 3vw, 34px) clamp(56px, 7vw, 96px); max-width: 1320px; }
#feature::before {
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 26px 100% repeat-x;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 26px 100% repeat-x;
}
#feature .section-head { max-width: none; margin-bottom: clamp(.9rem, 2vw, 1.4rem); display: grid; grid-template-columns: 1fr auto; column-gap: 2rem; align-items: end; }
#feature .section-head .script { grid-column: 1 / -1; font-size: 1.35rem; margin: 0; }
#feature h1 { font-family: var(--puff); font-weight: 400; font-synthesis: none; letter-spacing: 0; line-height: 1; color: #fff8ec; font-size: clamp(1.9rem, 4.2vw, 3.2rem); margin: 0; }
#feature h1 em { font-family: var(--display); font-weight: 700; font-size: .86em; color: var(--butter); }
#feature h1 .word, #feature h1 .ch { display: inline-block; }
#feature h1 .word { white-space: nowrap; }
#feature .section-head p:not(.script) { margin: 0 0 .35rem; max-width: 30ch; text-align: right; font-size: .95rem; }
#feature .flavor { min-height: clamp(520px, calc(100svh - 250px), 760px); }
.motion #feature h1 .ch { animation: rise .6s cubic-bezier(.2, 1.35, .4, 1) calc(var(--i) * 26ms + .1s) backwards; }
.motion #feature .flavor-wrap { animation: stageIn .7s cubic-bezier(.2, .9, .3, 1.1) .25s backwards; }
@keyframes stageIn { from { opacity: 0; transform: translateY(40px) scale(.98); } }
@media (max-width: 820px) {
  #feature .section-head { display: block; }
  #feature .section-head p:not(.script) { text-align: left; max-width: none; margin-top: .4rem; }
  #feature .flavor { min-height: clamp(500px, calc(100svh - 270px), 620px); }
}

/* blend a flat-background product shot into its panel */
.flavor.cutout .flavor-photo { transform: none; aspect-ratio: 4 / 3; }
.flavor.cutout .flavor-photo img { filter: none; -webkit-mask: radial-gradient(ellipse 50% 50% at center, #000 62%, #0000 100%); mask: radial-gradient(ellipse 50% 50% at center, #000 62%, #0000 100%); }
.flavor.cutout .flavor-shadow { display: none; }
.flavor.cutout .flavor-float { width: min(92%, 560px); margin-top: 0; }
.flavor.cutout.open .flavor-photo { transform: scale(1.04); }
@media (min-width: 821px) { .flavor.cutout.open .flavor-float { width: min(52%, 560px); } }

/* butter-pour band */
.hero-video.hero-band { min-height: clamp(380px, 62svh, 620px); }
.hero-band .hero-inner { padding-bottom: clamp(40px, 8vh, 80px); }
.hero-inner h2 { font-family: var(--puff); font-weight: 400; font-synthesis: none; font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: .92; margin: .08em 0 .4em; text-shadow: 0 4px 30px rgba(0, 0, 0, .35); }
.hero-inner h2 em { font-family: var(--display); font-weight: 700; font-style: italic; font-size: .8em; color: var(--butter); display: inline-block; transform: rotate(-3deg); transform-origin: left center; }
.motion .hero-band .hero-inner .script, .motion .hero-band .hero-inner .btn, .motion .hero-band .hero-stamp { animation: none; }
#feature .section-head .script { justify-self: start; margin-bottom: .45rem; }
#feature .flavor { min-height: clamp(500px, calc(100svh - 300px), 760px); }

/* ==========================================================================
   LAYOUT v3 — main screen is ONE featured flavor (no carousel, no video).
   The three-flavor carousel is its own menu section further down, on paper.
   ========================================================================== */
#feature { position: relative; isolation: isolate; }
#feature::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; background: var(--berry-deep) var(--grain); }
#feature .section-head { text-align: left; }
#feature .section-head .script { color: var(--butter); }
#feature .section-head p:not(.script) { color: #f0dccd; }
#feature .section-head h1::after { content: none; }
.feature-stage { display: flex; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .6); }
.motion #feature .feature-stage { animation: stageIn .7s cubic-bezier(.2, .9, .3, 1.1) .25s backwards; }
.flavor.feature { flex: 1 1 100%; }
.flavor.feature .flavor-title { font-size: clamp(2.4rem, 7vw, 5.4rem); }
.flavor.feature .hero-stamp { position: absolute; right: clamp(22px, 9%, 130px); top: clamp(120px, 21%, 190px); width: clamp(84px, 9vw, 124px); padding: 5px; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
@media (min-width: 821px) {
  .flavor.feature .receipt { top: 34%; width: min(270px, 24%); }
  .flavor.feature .flavor-side { top: 52%; }
  .flavor.feature.open .flavor-float, .flavor.feature.cutout.open .flavor-float { width: min(50%, 620px); }
}
@media (max-width: 820px) {
  .flavor.feature { padding-bottom: 6rem; }
  .flavor.feature.open .receipt { display: none; }          /* the slip is in the menu carousel below */
  .flavor.feature.open .flavor-float, .flavor.feature.cutout.open .flavor-float { width: min(96%, 380px); }
  .flavor.feature .hero-stamp { right: 10px; top: auto; bottom: 5.4rem; width: 78px; }
  .flavor.feature .flavor-actions .btn { width: 100%; }
  .flavor.feature .flavor-actions { padding: 0 1rem; }
}

/* menu carousel, now lower on the page, back on the paper-bag band */
#menu { padding-block: clamp(76px, 10vw, 140px); }
#menu::before { background: var(--paper) var(--grain); }
#menu .section-head .script { color: var(--berry); }
#menu .section-head h2 { color: var(--ink); }
#menu .section-head h2::after { background-image: var(--squiggle); }
#menu .section-head p:not(.script) { color: var(--ink-2); }
#menu :where(a, button, .flavor-stage):focus-visible { outline-color: var(--berry); }
#menu .flavor-stage { box-shadow: 0 30px 44px -30px rgba(70, 40, 10, .7); }

/* main screen with the tumbling-rolls shot: the image runs off the bottom of the panel */
.flavor.feature.stack .flavor-photo, .flavor.feature.stack.open .flavor-photo { transform: none; }
.flavor.feature.stack .flavor-photo img {
  -webkit-mask: linear-gradient(#0000, #000 15%), linear-gradient(90deg, #0000, #000 12%, #000 88%, #0000); -webkit-mask-composite: source-in;
          mask: linear-gradient(#0000, #000 15%), linear-gradient(90deg, #0000, #000 12%, #000 88%, #0000); mask-composite: intersect;
}
@media (min-width: 821px) {
  .flavor.feature.stack { min-height: clamp(560px, calc(100svh - 250px), 820px); }
  .flavor.feature.stack .flavor-float, .flavor.feature.stack.open .flavor-float { position: absolute; left: 50%; bottom: -18px; margin: 0 0 0 calc(min(46%, 640px) / -2); width: min(46%, 640px); }
  .flavor.feature.stack .flavor-title { position: relative; z-index: 2; }
  .flavor.feature.stack .flavor-actions { z-index: 2; }
}
@media (max-width: 820px) {
  .flavor.feature.stack .flavor-float, .flavor.feature.stack.open .flavor-float { width: 100%; margin-top: .4rem; }
}
@media (min-width: 821px) {
  .flavor.feature.stack .flavor-float, .flavor.feature.stack.open .flavor-float { width: min(56%, 780px); margin-left: calc(min(56%, 780px) / -2); bottom: -10px; }
  .flavor.feature.stack { min-height: clamp(600px, calc(100svh - 240px), 860px); }
}

/* ==========================================================================
   MAIN SCREEN v4 — the panel fills the screen; the rolls are a transparent
   cut-out that runs off the top and bottom of the panel (no fade).
   Title sits top-left so the rolls never cover it.
   ========================================================================== */
#feature { max-width: none; padding-inline: clamp(12px, 2vw, 28px); padding-top: clamp(12px, 1.6vw, 22px); }
#feature .section-head { padding-inline: clamp(4px, 1vw, 14px); }
.flavor.feature.fill { min-height: clamp(520px, calc(100svh - 215px), 1100px); align-items: flex-start; text-align: left; padding: clamp(1.8rem, 4vw, 3.4rem) clamp(1.4rem, 5vw, 5rem) 6rem; }
.flavor.feature.fill .flavor-title { position: relative; z-index: 2; font-size: clamp(2.6rem, 6.4vw, 6.4rem); }
.flavor.feature.fill .flavor-photo, .flavor.feature.fill.open .flavor-photo { transform: none; border: 0; border-radius: 0; overflow: visible; box-shadow: none; aspect-ratio: 2200 / 1228; width: auto; height: 100%; }
.flavor.feature.fill .flavor-photo img { position: static; width: auto; height: 100%; object-fit: contain; -webkit-mask: none; mask: none; filter: drop-shadow(0 26px 22px rgba(60, 30, 5, .22)); }
.flavor.feature.fill .flavor-shadow { display: none; }
.motion .flavor.feature.fill .flavor-float { animation: none; }
.motion .flavor.feature.fill .flavor-photo { animation: heroDrift 7s ease-in-out infinite; }
@keyframes heroDrift { 50% { transform: translateY(-10px) rotate(-.6deg); } }
@media (min-width: 821px) {
  .flavor.feature.fill .flavor-float, .flavor.feature.fill.open .flavor-float {
    position: absolute; z-index: 1; top: 0; left: 54%; width: auto; height: 104%; margin: 0;
    transform: translateX(-50%); display: block;
  }
  .flavor.feature.fill .receipt { z-index: 2; top: auto; bottom: clamp(5.5rem, 13%, 9rem); left: clamp(1.4rem, 5vw, 5rem); width: min(270px, 22%); }
  .flavor.feature.fill .flavor-side { z-index: 2; top: 50%; right: clamp(1.4rem, 5vw, 5.5rem); text-align: right; }
  .flavor.feature.fill .hero-stamp { z-index: 2; top: clamp(1.6rem, 9%, 5rem); right: clamp(1.6rem, 5vw, 5.5rem); width: clamp(96px, 9vw, 150px); }
  .flavor.feature.fill .flavor-actions { z-index: 2; justify-content: flex-end; padding: 0 clamp(1.4rem, 5vw, 5.5rem); bottom: clamp(1.6rem, 6%, 3rem); }
  .flavor.feature.fill .flavor-actions .btn { font-size: 1.1rem; padding: 1rem 1.8rem; }
}
@media (max-width: 820px) {
  .flavor.feature.fill { min-height: 0; align-items: center; text-align: center; padding: 0 1rem 6rem; }
  .flavor.feature.fill .flavor-float, .flavor.feature.fill.open .flavor-float { order: -1; width: calc(100% + 2rem); height: clamp(250px, 76vw, 340px); margin: 0 -1rem .9rem; overflow: hidden; display: flex; justify-content: center; }
  .flavor.feature.fill .flavor-photo { flex: none; height: 108%; }
  .flavor.feature.fill .flavor-photo img { filter: none; }
  .flavor.feature.fill .hero-stamp { top: 12px; right: 12px; bottom: auto; width: 74px; z-index: 2; }
}
/* flat panel colour (no grain) so it matches the cut-out's own background exactly */
.flavor.feature.fill { background: var(--bg); }
.flavor.feature.fill .flavor-photo img { filter: none; }

/* ==========================================================================
   MAIN SCREEN v5 — no berry frame. The panel is full-bleed, edge to edge,
   and is the whole first screen under the nav.
   ========================================================================== */
#feature { padding: 0; max-width: none; }
#feature::before { display: none; }
.feature-stage { border-radius: 0; box-shadow: none; }
.flavor.feature.fill { min-height: clamp(540px, calc(100svh - 64px), 1200px); }
#feature .section-head { display: block; position: absolute; z-index: 3; top: clamp(1rem, 3.2vh, 2.2rem); left: clamp(1.4rem, 5vw, 5rem); margin: 0; padding: 0; max-width: 60%; }
#feature .section-head .script { color: var(--berry); font-size: 1.3rem; margin: 0; }
#feature h1 { color: var(--ink); font-size: clamp(1.15rem, 1.7vw, 1.6rem); }
#feature h1 em { color: var(--berry); }
#feature .section-head p:not(.script) { display: none; }
@media (min-width: 821px) {
  .flavor.feature.fill { padding-top: clamp(6.2rem, 15vh, 9.5rem); }
}
@media (max-width: 820px) {
  #feature .section-head { position: static; max-width: none; padding: 1rem 1rem .8rem; }
  .flavor.feature.fill { min-height: 0; }
}
#feature .flavor.feature.fill { min-height: clamp(540px, calc(100svh - 64px), 1200px); }
@media (max-width: 820px) { #feature .flavor.feature.fill { min-height: 0; } }
@media (min-width: 821px) and (max-height: 760px) {
  .flavor.feature.fill .flavor-title { font-size: clamp(2.4rem, 5vw, 4.4rem); }
  .flavor.feature.fill .receipt { bottom: 4.5rem; }
}
@media (max-width: 820px) { .flavor.feature.fill .flavor-photo img { width: 100%; height: 100%; } }

/* ==========================================================================
   THREE TYPEFACES ONLY: Bagel Fat One (headings), DM Sans (everything else),
   Caveat (handwritten accents). (Fraunces now only appears on the printed box.)
   ========================================================================== */
:root { --display: var(--body); }
h3, .pane-title, .treat-name, .faq summary { font-family: var(--puff); font-weight: 400; letter-spacing: .005em; font-synthesis: none; }
.faq summary { font-size: 1.3rem; }
#feature h1 em, .hero-inner h1 em, .hero-inner h2 em { font-family: var(--script); font-style: normal; font-weight: 700; font-size: 1.2em; }
.receipt, .flavor-side p { font-family: var(--body); font-weight: 700; letter-spacing: .05em; }
.receipt { font-size: .74rem; }
.menu-card h3, .band-dark .how-grid h3 { font-weight: 400; }

/* logo in the stamp */
.hero-stamp image { image-rendering: auto; }

/* ==========================================================================
   MENU CAROUSEL v2 — each flavor fills the whole stage; panels slide with a
   fluid parallax (title and roll move at different speeds) and a wavy edge.
   ========================================================================== */
#menu .flavor { flex-basis: 100%; min-height: clamp(540px, 46vw, 700px); }
#menu .flavor.open { flex-basis: 100%; }
#menu .flavor-title { font-size: clamp(2.3rem, 6.4vw, 5.2rem); }
#menu .flavor.cutout .flavor-float { width: min(86%, 620px); }
#menu .flavor-wave {
  position: absolute; z-index: 2; top: 0; bottom: 0; right: -1px; width: 64px; background: var(--nx);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='220' viewBox='0 0 64 220' preserveAspectRatio='none'%3E%3Cpath d='M64 0H34C4 40 60 80 30 125 8 160 52 190 34 220h30z'/%3E%3C/svg%3E") 0 0 / 64px 220px repeat-y;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='220' viewBox='0 0 64 220' preserveAspectRatio='none'%3E%3Cpath d='M64 0H34C4 40 60 80 30 125 8 160 52 190 34 220h30z'/%3E%3C/svg%3E") 0 0 / 64px 220px repeat-y;
}
.motion #menu .flavor-wave { transform: translateX(calc(var(--o, 0) * -40px)); }
.motion #menu .flavor .flavor-title { transform: translate3d(calc(var(--o, 0) * 38%), 0, 0); }
.motion #menu .flavor .flavor-photo,
.motion #menu .flavor.open .flavor-photo {
  transition: none;
  transform: translate3d(calc(var(--o, 0) * -46%), 0, 0) rotate(calc(var(--o, 0) * -22deg)) scale(calc(1 - max(var(--o, 0), var(--o, 0) * -1) * .28));
}
.motion #menu .flavor .flavor-actions { transform: translate3d(calc(var(--o, 0) * 60%), 0, 0); }
.motion #menu .flavor .flavor-tag { opacity: calc(1 - max(var(--o, 0), var(--o, 0) * -1) * 2); }
@media (max-width: 820px) {
  #menu .flavor { flex-basis: 100%; min-height: 520px; }
  #menu .flavor-wave { width: 40px; }
}

/* ==========================================================================
   MENU CAROUSEL v3 — no "closer look" button: the panel in view opens itself.
   ========================================================================== */
#menu .flavor .flavor-float, #menu .flavor.open .flavor-float,
#menu .flavor.cutout .flavor-float, #menu .flavor.cutout.open .flavor-float { width: min(50%, 580px); }
#menu .flavor.open .flavor-tag { display: grid; }
@media (max-width: 820px) {
  #menu .flavor .flavor-float, #menu .flavor.open .flavor-float,
  #menu .flavor.cutout .flavor-float, #menu .flavor.cutout.open .flavor-float { width: min(84%, 330px); }
  #menu .flavor { min-height: 0; padding-bottom: 6.4rem; }
  /* keep every panel the same height so nothing jumps: the slip is always laid out, it just fades in */
  #menu .flavor .receipt, #menu .flavor .flavor-side { display: block; opacity: 0; transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.2, .3, 1); }
  #menu .flavor .receipt { width: min(100%, 300px); margin-top: 1.2rem; transform: translateY(20px) rotate(-7deg); }
  #menu .flavor .flavor-side { margin-top: 1.1rem; }
  #menu .flavor .flavor-side p { display: none; }
  #menu .flavor.open .receipt { opacity: 1; transform: rotate(-2deg); animation: none; }
  #menu .flavor.open .flavor-side { opacity: 1; }
}
#menu .flavor-add { display: inline-flex; opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .25s ease, transform .35s cubic-bezier(.3, 1.5, .5, 1); }
#menu .flavor.open .flavor-add { opacity: 1; transform: none; pointer-events: auto; transition-delay: .25s; }
#menu .flavor.open .flavor-add:hover { transform: translateY(-2px); transition-delay: 0s; }
#menu .flavor.open .flavor-add:active { transform: translateY(3px) scale(1.03, .93); transition-delay: 0s; }
.motion #menu .flavor .flavor-actions { transform: none; }

/* ==========================================================================
   HOW ORDERING WORKS v2 — clip-art steps on a winding chalk trail
   ========================================================================== */
.how-wind { position: relative; }
.band-dark .how-grid::before { content: none; }
.band-dark .how-grid { position: relative; z-index: 1; grid-template-columns: repeat(4, 1fr); gap: clamp(.8rem, 2.4vw, 2rem); padding-bottom: 96px; }
.band-dark .how-grid li { padding: 0 .3rem; }
.band-dark .how-grid li:nth-child(even) { margin-top: 96px; }
.how-art { position: relative; width: min(190px, 78%); margin: 0 auto .5rem; transform: rotate(-5deg); }
.band-dark .how-grid li:nth-child(even) .how-art { transform: rotate(4deg); }
.band-dark .how-grid li:nth-child(3) .how-art { transform: rotate(-2deg); }
.how-art img { width: 100%; height: auto; display: block; }
.band-dark .how-art .how-n {
  position: absolute; left: -6px; top: -4px; width: 44px; height: 44px; margin: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--butter); color: var(--ink);
  font: 400 1.35rem/1 var(--puff); transform: rotate(-8deg); box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}
.band-dark .how-grid li:nth-child(even) .how-art .how-n { transform: rotate(7deg); border-radius: 50%; }
.band-dark .how-grid h3 { font-size: 1.6rem; margin: .2rem 0 .3rem; }
.how-trail { position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 300px; overflow: visible; -webkit-clip-path: inset(-20px calc((1 - var(--trail, 1)) * 100%) -20px 0); clip-path: inset(-20px calc((1 - var(--trail, 1)) * 100%) -20px 0); }
.how-trail path { fill: none; stroke: rgba(245, 239, 228, .5); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 11; vector-effect: non-scaling-stroke; }
@media (max-width: 820px) {
  .how-trail { display: none; }
  .band-dark .how-grid { grid-template-columns: 1fr; gap: 1.6rem; padding-bottom: 0; max-width: 460px; }
  .band-dark .how-grid li { display: grid; grid-template-columns: 104px 1fr; column-gap: 1rem; align-items: center; text-align: left; margin: 0; }
  .band-dark .how-grid li:nth-child(even) { margin-top: 0; grid-template-columns: 1fr 104px; text-align: right; }
  .band-dark .how-grid li:nth-child(even) .how-art { order: 2; grid-column: 2; grid-row: 1 / span 2; }
  .band-dark .how-grid li:nth-child(even) h3, .band-dark .how-grid li:nth-child(even) p { grid-column: 1; }
  .how-art { width: 104px; margin: 0; grid-row: 1 / span 2; }
  .band-dark .how-art .how-n { width: 34px; height: 34px; font-size: 1.05rem; grid-row: auto; }
  .band-dark .how-grid h3 { align-self: end; margin: 0; }
  .band-dark .how-grid p { align-self: start; }
}

/* ==========================================================================
   ORDER v2 — flavor cards with the floating rolls, a live order slip beside
   the form, and stamp-style steps. Same form, same logic.
   ========================================================================== */
.wizard { max-width: 1120px; }
.order-desk { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: start; }
@media (max-width: 980px) { .order-desk { display: block; } .order-slip { display: none; } .wizard { max-width: 760px; } }

/* steps: three stamps on a dashed line */
.steps-bar { position: relative; max-width: 560px; margin: 0 auto 1.6rem; gap: 0; justify-content: space-between; }
.steps-bar::before { content: ""; position: absolute; left: 12%; right: 12%; top: 24px; border-top: 3px dashed var(--kraft); }
.steps-bar li { flex: 0 0 auto; position: relative; }
.steps-bar button, .steps-bar li.on button, .steps-bar li.done button { flex-direction: column; gap: .35rem; padding: 0 .6rem; min-height: 0; border: 0; border-radius: 0; background: none; color: var(--ink-2); font: 700 .9rem var(--body); }
.steps-bar button span, .steps-bar li.on button span, .steps-bar li.done button span { width: 50px; height: 50px; background: var(--cream); border: 3px solid var(--kraft); color: var(--ink-2); font: 400 1.35rem/1 var(--puff); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background .2s; }
.steps-bar li.on button { color: var(--ink); }
.steps-bar li.on button span { background: var(--berry); border-color: var(--berry-deep); color: #fff8ec; transform: rotate(-8deg) scale(1.12); box-shadow: 0 4px 0 var(--berry-deep); }
.steps-bar li.done button span { background: var(--butter); border-color: var(--ink); color: var(--ink); font-size: 0; }
.steps-bar li.done button span::after { font: 400 1.2rem var(--puff); }

.order-card { border: 0; border-radius: 26px; background: var(--white); box-shadow: 0 2px 0 rgba(90, 60, 20, .14), 0 34px 50px -34px rgba(70, 40, 10, .7); }
.pane-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: .2rem; }
.pane-note { margin: 0 0 1.3rem; font: 700 1.3rem var(--script); color: var(--berry); transform: rotate(-1.2deg); transform-origin: left center; }

/* flavor cards */
.pane .qty-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding-top: 6px; }
.qty-row, .qty-row.active {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem;
  position: relative; overflow: hidden; padding: 0 .9rem 1.2rem; border: 0; border-radius: 22px;
  background: var(--tile); color: var(--fg);
  transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s ease;
}
.qty-row:nth-child(1) { --tilt: -1.4deg; } .qty-row:nth-child(2) { --tilt: 1deg; } .qty-row:nth-child(3) { --tilt: -.8deg; }
.qty-row.active { transform: translateY(-8px) rotate(var(--tilt, -1deg)); box-shadow: 0 22px 26px -18px rgba(60, 35, 10, .55), inset 0 0 0 3px var(--fg); }
.q-art { position: relative; width: calc(100% + 1.8rem); aspect-ratio: 4 / 3; margin: 0 -.9rem -.6rem; }
.q-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
.qty-row.active .q-art img { transform: scale(1.12) rotate(-5deg); }
.q-badge {
  position: absolute; right: 10px; top: 10px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--berry); color: #fff8ec; font: 400 1.35rem/1 var(--puff);
  outline: 2px dashed rgba(255, 248, 236, .7); outline-offset: -5px; box-shadow: 0 4px 8px rgba(0, 0, 0, .25);
  transform: rotate(12deg) scale(0); transition: transform .35s cubic-bezier(.3, 1.7, .5, 1);
}
.qty-row.active .q-badge { transform: rotate(12deg) scale(1); }
.q-info { display: grid; gap: .1rem; }
.qty-row .q-name { font: 400 1.5rem/1.05 var(--puff); color: var(--fg); }
.qty-row .q-price { font: 700 1.25rem var(--script) !important; color: var(--fg) !important; }
.q-rolls { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.qty-row .stepper { background: #fffdf6; border: 0; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); padding: 4px; gap: 2px; overflow: visible; }
.qty-row .stepper button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 50%; font-size: 1.5rem; line-height: 1; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background .15s; }
.qty-row .stepper button[data-d="1"] { background: var(--berry); color: #fff8ec; box-shadow: 0 3px 0 var(--berry-deep); }
.qty-row .stepper button[data-d="1"]:hover:not(:disabled) { background: var(--berry-deep); }
.qty-row .stepper button[data-d="1"]:active:not(:disabled) { transform: translateY(2px) scale(.9); box-shadow: 0 1px 0 var(--berry-deep); }
.qty-row .stepper button[data-d="-1"] { color: var(--ink); }
.qty-row .stepper output { min-width: 40px; font: 400 1.5rem var(--puff); color: var(--ink); }
@media (max-width: 700px) {
  .pane .qty-list { grid-template-columns: 1fr; gap: .8rem; }
  .qty-row, .qty-row.active { flex-direction: row; text-align: left; gap: .8rem; padding: 0 .8rem 0 0; }
  .qty-row.active { transform: translateX(4px) rotate(0); }
  .q-art { flex: none; width: 104px; aspect-ratio: 1; margin: 0; }
  .q-info { flex: 1; min-width: 0; padding-block: .6rem; }
  .qty-row .q-name { font-size: 1.2rem; }
  .q-badge { width: 40px; height: 40px; font-size: 1rem; right: 4px; top: 4px; }
  .qty-row .stepper button { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  .qty-row .stepper output { min-width: 28px; font-size: 1.25rem; }
  .steps-bar button span, .steps-bar li.on button span, .steps-bar li.done button span { width: 44px; height: 44px; }
  .steps-bar::before { top: 21px; }
}

/* order slip */
.order-slip { position: sticky; top: 96px; transform: rotate(2.2deg); filter: drop-shadow(0 18px 16px rgba(70, 40, 10, .28)); }
.order-slip .receipt { font-size: .8rem; padding: 1.8rem 1.2rem 2rem; }
.order-slip .receipt h4 { font-size: 1.7rem; }
.order-slip ul { list-style: none; margin: 0; padding: .6rem 0; border-top: 1.5px dashed var(--ink); display: grid; gap: .35rem; }
.order-slip li { display: flex; justify-content: space-between; gap: .8rem; }
.order-slip li.muted { opacity: .55; }
.order-slip .slip-total dt { font: 400 1.2rem var(--puff); letter-spacing: .03em; }
.order-slip .slip-total dd { font: 400 1.9rem/1 var(--puff); color: var(--berry); }
.order-slip .slip-total div { align-items: baseline; }
.slip-stamp { position: absolute; right: -18px; bottom: -26px; width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; transform: rotate(-14deg); }
.order-foot { border-top: 2px dashed var(--kraft); border-radius: 0 0 26px 26px; }
@media (min-width: 981px) { .order-foot .foot-total strong { font-family: var(--puff); font-weight: 400; } }
/* order slip uses the receipt look but is always visible and in flow */
.order-slip .receipt { position: static; opacity: 1; visibility: visible; transform: none; width: auto; display: block; transition: none; }
.q-art { margin-bottom: 0; }
.q-info { position: relative; z-index: 1; }
.qty-row.active .q-art img { transform: translateY(-4px) scale(1.07) rotate(-4deg); }
.slip-stamp { right: auto; left: -20px; bottom: -34px; transform: rotate(12deg); }
@media (max-width: 700px) { .q-art { width: 88px; } .qty-row .q-price { white-space: nowrap; font-size: 1.1rem !important; } .qty-row .q-name { font-size: 1.1rem; } }

.added-pop { display: none; }

/* ==========================================================================
   ORDER v2 — step 2 (Pickup): tear-off calendar days + ticket-stub times
   ========================================================================== */
.wk-head { margin-bottom: 1rem; }
.wk-label { font: 400 1.35rem var(--puff); }
.wk-nav { border: 0; background: var(--ink); color: var(--cream); box-shadow: 0 3px 0 #000; width: 42px; height: 42px; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), background .15s; }
.wk-nav:hover:not(:disabled) { background: var(--berry); }
.wk-nav:active:not(:disabled) { transform: translateY(2px) scale(.9); }
.wk-days { gap: .55rem; padding-top: 8px; }
.wk-days .date-chip {
  position: relative; overflow: hidden; padding: 0 0 .6rem; gap: .2rem; border: 0; border-radius: 12px 12px 16px 16px;
  background: #fffdf6; box-shadow: 0 2px 0 rgba(90, 60, 20, .16), 0 10px 14px -10px rgba(70, 40, 10, .5);
  transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s ease, background .2s ease;
}
.wk-days .date-chip .dow { display: block; width: 100%; padding: .32rem 0 .28rem; margin-bottom: .2rem; background: var(--kraft); color: var(--ink); font: 700 .7rem var(--body); letter-spacing: .12em; }
.wk-days .date-chip .day { font: 400 1.7rem/1.05 var(--puff); color: var(--ink); }
.wk-days .date-chip:hover:not(:disabled) { border: 0; transform: translateY(-3px); }
.wk-days .date-chip:nth-child(odd)[aria-checked="true"] { --tilt: -3deg; }
.wk-days .date-chip[aria-checked="true"] { background: var(--butter); color: var(--ink); border: 0; transform: translateY(-7px) rotate(var(--tilt, 3deg)); box-shadow: 0 0 0 3px var(--berry), 0 16px 18px -12px rgba(70, 40, 10, .6); }
.wk-days .date-chip[aria-checked="true"] .dow { background: var(--berry); color: #fff8ec; }
.wk-days .date-chip:disabled { background: transparent; box-shadow: none; opacity: .55; }
.wk-days .date-chip:disabled .dow { background: transparent; }
.wk-days .date-chip:disabled .day { font-size: 1.4rem; }
.dot { width: 8px; height: 8px; }
.wk-legend { font-weight: 700; }

.time-grid { border-top: 2px dashed var(--kraft); }
.times-for { font: 400 1.25rem var(--puff); margin-bottom: .9rem; }
.time-list { gap: .7rem; }
.time-list .time-chip {
  position: relative; height: 74px; align-items: center; text-align: center; padding: .6rem .5rem; border: 0; border-radius: 14px;
  background: var(--butter-soft); color: var(--ink);
  /* ticket stub: a little notch bitten out of each side */
  -webkit-mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  transition: transform .28s cubic-bezier(.3, 1.5, .5, 1), background .2s ease, color .2s ease;
}
.time-list .time-chip .t { font: 400 1.3rem/1.1 var(--puff); }
.time-list .time-chip .r { font: 700 .74rem var(--body); letter-spacing: .04em; color: var(--ink-2); }
.time-list .time-chip:hover:not(:disabled) { transform: translateY(-3px); border: 0; }
.time-list .time-chip[aria-checked="true"] { background: var(--berry); color: #fff8ec; border: 0; box-shadow: none; transform: translateY(-4px) rotate(-2.5deg) scale(1.04); }
.time-list .time-chip[aria-checked="true"] .r { color: #fbe3e8; }
.time-list .time-chip.low .r { color: var(--berry); }
.time-list .time-chip[aria-checked="true"].low .r { color: #fbe3e8; }
.time-list .time-chip.full { background: var(--cream-2); opacity: .55; }
@media (max-width: 600px) {
  .wk-days { gap: .3rem; }
  .wk-days .date-chip .day { font-size: 1.3rem; }
  .wk-days .date-chip .dow { font-size: .58rem; letter-spacing: .06em; }
}

/* ==========================================================================
   ORDER v2 — step 3 (Your info): order-pad fields, big pay choices, kraft note
   ========================================================================== */
.pane .field > span { font: 700 .74rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--berry-deep); }
.pane .field > span b { font-weight: 700; }
.pane .field input {
  padding: .95rem 1.1rem; border: 2px solid var(--line); border-radius: 14px; background: #fffdf6; font-size: 1.02rem; font-weight: 500;
  box-shadow: inset 0 -3px 0 rgba(201, 162, 111, .28); transition: border-color .15s, box-shadow .2s, transform .25s cubic-bezier(.3, 1.5, .5, 1);
}
.pane .field input::placeholder { color: #a8977f; font-weight: 400; }
.pane .field input:focus { border-color: var(--berry); background: #fff; box-shadow: 0 0 0 4px var(--butter-soft), inset 0 -3px 0 rgba(155, 39, 67, .18); transform: translateY(-1px); }
.pane .field input.invalid { border-color: var(--berry); background: var(--guava-soft); }
.pane .field-error { font-weight: 700; color: var(--berry); }

.pane .segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; width: 100%; padding: 0; border: 0; background: none; border-radius: 0; }
.pane .segmented span {
  position: relative; display: grid; place-items: center; min-height: 54px; padding: .5rem 1rem; border-radius: 14px;
  background: var(--butter-soft); color: var(--ink); font: 400 1.2rem var(--puff);
  transition: transform .28s cubic-bezier(.3, 1.5, .5, 1), background .2s ease, color .2s ease;
}
.pane .segmented label:hover span { transform: translateY(-2px); }
.pane .segmented input:checked + span { background: var(--berry); color: #fff8ec; transform: rotate(-2deg) scale(1.03); box-shadow: 0 4px 0 var(--berry-deep); }
.pane .segmented input:checked + span::after { content: "✓"; position: absolute; right: -8px; top: -10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--butter); color: var(--ink); font: 700 .95rem var(--body); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); transform: rotate(10deg); }
.pane .segmented input:focus-visible + span { outline: 3px solid var(--berry); outline-offset: 3px; }

.pane .ack { align-items: center; padding: 1rem 1.1rem; border: 0; border-radius: 4px 14px 14px 4px; background: var(--kraft) var(--grain); color: var(--ink); font-size: .95rem; font-weight: 500; transform: rotate(-.6deg); box-shadow: inset 6px 0 0 var(--kraft-deep), 0 10px 14px -10px rgba(70, 40, 10, .5); }
.pane .ack:hover { border: 0; }
.pane .ack input { width: 26px; height: 26px; margin: 0; accent-color: var(--berry); }

/* main screen: the small headline above the flavor title is hidden from view
   (kept in the page for search engines and screen readers) */
#feature .section-head, #feature .section-head * { animation: none !important; }
#feature .section-head { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 821px) { .flavor.feature.fill { padding-top: clamp(2.4rem, 7vh, 4.5rem); } }

/* ==========================================================================
   SECTION EDGES — one edge per join (no zigzag stacked on scallops)
   hero → menu: paper scallops rise into the hero
   menu → how:  dark scallops rise into the paper band (no cream gap)
   how → order: dark scallops drop into the cream page
   ========================================================================== */
#menu::before { -webkit-mask: none; mask: none; }
#menu::after {
  content: ""; position: absolute; z-index: 1; left: calc(50% - 50vw); width: 100vw; top: -15px; height: 16px;
  background: radial-gradient(circle at 16px 16px, var(--paper) 15.5px, transparent 16px) 0 0 / 32px 16px repeat-x;
}
.band-dark { margin-top: 0; }
#menu { padding-bottom: clamp(70px, 8vw, 110px); }
/* scallops into the hero use the same paper + grain as the band, so the shade matches */
#menu::after {
  background: var(--paper) var(--grain);
  -webkit-mask: radial-gradient(circle at 16px 16px, #000 15.5px, #0000 16px) 0 0 / 32px 16px repeat-x;
          mask: radial-gradient(circle at 16px 16px, #000 15.5px, #0000 16px) 0 0 / 32px 16px repeat-x;
}

/* phone fixes */
body { padding-bottom: 0 !important; }           /* leftover space from an old sticky bar */
@media (max-width: 700px) {
  .q-badge { width: 32px; height: 32px; font-size: .82rem; right: auto; left: 3px; top: 3px; outline-offset: -4px; outline-width: 1.5px; }
}

/* ==========================================================================
   MAIN SCREEN on phones — the rolls fill the whole yellow panel and sit
   BEHIND the title, price and button.
   ========================================================================== */
@media (max-width: 820px) {
  #feature .flavor.feature.fill { min-height: clamp(540px, calc(100svh - 64px), 780px); justify-content: flex-end; padding: 0 1rem 1.4rem; overflow: hidden; }
  .flavor.feature.fill .flavor-float, .flavor.feature.fill.open .flavor-float {
    position: absolute; inset: 0; z-index: 0; order: 0; width: 100%; height: 100%; margin: 0; display: block; overflow: visible;
  }
  .flavor.feature.fill .flavor-photo, .flavor.feature.fill.open .flavor-photo { position: absolute; top: -3%; left: 50%; height: 106%; width: auto; margin-left: calc(106svh * -1); margin-left: 0; translate: -50% 0; }
  .flavor.feature.fill .flavor-photo img { width: auto; height: 100%; max-width: none; }
  .flavor.feature.fill .flavor-title, .flavor.feature.fill .flavor-side, .flavor.feature.fill .flavor-actions { position: relative; z-index: 2; }
  .flavor.feature.fill .flavor-title { color: #fff8ec; font-size: clamp(2.8rem, 14vw, 3.8rem); text-shadow: 0 3px 0 var(--fg), 0 0 22px rgba(60, 30, 5, .75), 0 0 6px rgba(60, 30, 5, .6); }
  .flavor.feature.fill.open .flavor-side { display: block; margin: .5rem 0 .9rem; }
  .flavor.feature.fill .flavor-price { color: #fff8ec; text-shadow: 0 2px 0 var(--fg), 0 0 18px rgba(60, 30, 5, .8); }
  .flavor.feature.fill .flavor-actions { position: relative; left: auto; right: auto; bottom: auto; width: 100%; padding: 0; }
  .flavor.feature.fill .flavor-actions .btn { width: 100%; }
  .flavor.feature.fill .flavor-tag { z-index: 2; top: 14px; left: 10px; }
  .flavor.feature.fill .hero-stamp { z-index: 2; top: 12px; right: 12px; }
}
@media (max-width: 820px) {
  .flavor.feature.fill .flavor-photo, .flavor.feature.fill.open .flavor-photo { position: absolute; inset: 0; top: 0; left: 0; width: 100%; height: 100%; aspect-ratio: auto; translate: none; margin: 0; }
  .flavor.feature.fill .flavor-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
}
@media (max-width: 820px) {
  /* a touch smaller and shifted so both rolled ends stay in frame */
  .flavor.feature.fill .flavor-photo img { inset: auto; top: 0; left: 0; height: 88%; object-position: 45% 50%; }
}
@media (max-width: 820px) {
  /* original brown text; a soft panel-coloured glow keeps it readable over the bread */
  .flavor.feature.fill .flavor-title { color: var(--fg); text-shadow: 0 0 14px var(--bg), 0 0 14px var(--bg), 0 0 26px var(--bg), 0 0 4px var(--bg); }
  .flavor.feature.fill .flavor-price { color: var(--fg); text-shadow: 0 0 12px var(--bg), 0 0 12px var(--bg), 0 0 22px var(--bg), 0 0 4px var(--bg); }
  /* image runs to the bottom of the panel so its lower edge never shows */
  .flavor.feature.fill .flavor-photo img { height: 100%; object-position: 46% 50%; }
}

/* phones: zoomed out so BOTH rolls are fully in frame, side to side.
   The image is sized so the rolls span the screen width; the panel is exactly
   as tall as the image, so the rolls still run cleanly off its top and bottom. */
@media (max-width: 820px) {
  #feature .flavor.feature.fill { min-height: 0; height: 122.7vw; }
  .flavor.feature.fill .flavor-photo img { inset: auto; top: 0; left: -61.5vw; width: 219.8vw; height: 122.7vw; max-width: none; object-fit: fill; }
  .flavor.feature.fill .flavor-title { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .flavor.feature.fill.open .flavor-side { margin: .3rem 0 .7rem; }
}

/* phones: taller panel — the rolls fade out toward the bottom and the title,
   price and button get their own clear space underneath */
@media (max-width: 820px) {
  #feature .flavor.feature.fill { height: auto; min-height: 0; justify-content: flex-start; padding: 96vw 1rem 1.8rem; }
  .flavor.feature.fill .flavor-photo img {
    -webkit-mask: linear-gradient(#000 62%, #0000 92%); mask: linear-gradient(#000 62%, #0000 92%);
  }
  .flavor.feature.fill .flavor-title { font-size: clamp(2.6rem, 13vw, 3.6rem); text-shadow: 0 0 16px var(--bg), 0 0 8px var(--bg); }
  .flavor.feature.fill .flavor-price { text-shadow: none; }
  .flavor.feature.fill.open .flavor-side { margin: .7rem 0 1.2rem; }
}

/* previous flavor's color peeks in on the left edge too (mirror of the right-hand wave) */
#menu .flavor-wave.prev { right: auto; left: -1px; background: var(--pv); transform: scaleX(-1); }
.motion #menu .flavor-wave.prev { transform: scaleX(-1) translateX(calc(var(--o, 0) * 40px)); }

/* order limits: a quiet note under the dozen picker that turns into a friendly warning */
.qty-limit { margin: .7rem 0 0; font-size: .9rem; color: var(--ink-2, #5b5047); }
.qty-limit a { color: var(--berry, #9B2743); font-weight: 700; }
.qty-limit.warn { background: #fbe9d4; border: 2px dashed #d9892b; color: #6b3b0c; border-radius: 14px; padding: .7rem .9rem; font-weight: 500; }
