/* =========================================================
   Mary's Mountain Cookies · Downtown Loveland
   Design architecture: full-bleed colour bands, slab display
   type with a hard offset shadow, zero radius, starburst
   product badges, zigzag punctuation (after the Lamanna
   system), painted in Mary's own logo colours.
   ========================================================= */

@font-face {
  font-family: "Bowlby One SC";
  src: url("assets/fonts/bowlby-one-sc-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800; font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("assets/fonts/oswald-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 700; font-display: swap;
}

:root {
  /* Mary's logo, sampled */
  --raspberry: #aa223f;   /* ribbon: the brand canvas      */
  --wine:      #75162e;   /* outer ring: hard shadows, ink */
  --sky:       #22c3f3;   /* mountain sky: second band     */
  --snow:      #ffffff;   /* snowcaps: display type        */
  --cookie:    #9a6c3d;   /* mountain: warm accents        */
  /* supporting */
  --cream:     #f9efe3;   /* from the shop's own site      */
  --sprinkle:  #ffd21f;   /* starbursts, zigzags           */
  --cocoa:     #24120c;   /* the build stage               */
  --ink:       #2a1712;   /* body text on light bands      */

  --f-display: "Bowlby One SC", "Arial Black", Impact, sans-serif;
  --f-body: "Open Sans", system-ui, sans-serif;
  --f-action: "Oswald", "Arial Narrow", sans-serif;

  --pad: clamp(20px, 4vw, 60px);
  --band: clamp(72px, 10vw, 140px);
  --starburst: polygon(50.00% 0.00%, 57.47% 7.65%, 67.10% 3.02%, 71.50% 12.76%, 82.14% 11.70%, 82.94% 22.36%, 93.30% 25.00%, 90.41% 35.29%, 99.24% 41.32%, 93.00% 50.00%, 99.24% 58.68%, 90.41% 64.71%, 93.30% 75.00%, 82.94% 77.64%, 82.14% 88.30%, 71.50% 87.24%, 67.10% 96.98%, 57.47% 92.35%, 50.00% 100.00%, 42.53% 92.35%, 32.90% 96.98%, 28.50% 87.24%, 17.86% 88.30%, 17.06% 77.64%, 6.70% 75.00%, 9.59% 64.71%, 0.76% 58.68%, 7.00% 50.00%, 0.76% 41.32%, 9.59% 35.29%, 6.70% 25.00%, 17.06% 22.36%, 17.86% 11.70%, 28.50% 12.76%, 32.90% 3.02%, 42.53% 7.65%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(16px, 1.1vw + 10px, 19px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--raspberry);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--sprinkle); outline-offset: 3px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--snow); color: var(--wine); padding: 10px 16px;
  font-family: var(--f-action); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- display type: slabs with a hard offset shadow ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: .89;
  letter-spacing: -.01em;
  color: var(--snow);
  text-shadow: .06em .06em 0 var(--wine);
  text-wrap: balance;
}
.display span { display: block; }
.display--hero { font-size: clamp(54px, 9.4vw, 152px); }
.display--section { font-size: clamp(40px, 6vw, 92px); }
.display--build { font-size: clamp(30px, 4.2vw, 64px); }
.display--wine { color: var(--raspberry); text-shadow: .06em .06em 0 var(--wine); }

/* ---------- buttons: outlined, square, condensed ---------- */
.btn {
  --c: var(--wine);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-action); font-weight: 600; font-size: 19px; letter-spacing: .02em;
  line-height: 1; text-transform: uppercase; text-decoration: none;
  padding: 12px 20px;
  color: var(--c); background: transparent;
  border: 2px solid var(--c); border-radius: 0;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--c); color: var(--on, var(--snow)); }
.btn--lg { font-size: clamp(19px, 1.5vw, 24px); padding: 16px 26px; }
.btn--block { width: 100%; }
.btn--sky { --c: var(--sky); --on: var(--wine); }
.btn--snow { --c: var(--snow); --on: var(--raspberry); }
.btn--wine { --c: var(--wine); --on: var(--snow); }
.btn--sprinkle { --c: var(--sprinkle); --on: var(--cocoa); }

/* ---------- zigzag punctuation ---------- */
.zigzag {
  position: absolute; width: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='28' viewBox='0 0 26 28'%3E%3Cpath d='M3 0 L23 14 L3 28' fill='none' stroke='%23ffd21f' stroke-width='3.5' stroke-linejoin='miter'/%3E%3C/svg%3E") repeat-y top center / 26px 28px;
}

/* =========================== NAV =========================== */
.nav {
  position: relative; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding: 14px var(--pad) 0;
  background: var(--raspberry); color: var(--snow);
}
.nav__side { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
.nav__side--right { justify-content: flex-end; }
.nav__side a {
  font-family: var(--f-action); font-weight: 500; font-size: 18px; letter-spacing: .03em;
  text-transform: uppercase; text-decoration: none;
  text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.nav__side a:hover { text-decoration: underline; text-decoration-color: var(--sprinkle); }
.nav__logo img { width: clamp(120px, 13vw, 190px); }
.nav__count {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .3em;
  background: var(--sprinkle); color: var(--cocoa); font-size: .85em;
}
.nav__count.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* =========================== HERO =========================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--raspberry); color: var(--snow);
  padding: clamp(36px, 5vw, 70px) 0 0;
}
.zigzag--left { left: clamp(8px, 1.5vw, 24px); top: 40px; height: 62%; }
.zigzag--right { right: clamp(8px, 1.5vw, 24px); top: 40px; height: 62%; transform: scaleX(-1); }
.hero__copy { position: relative; padding: 0 calc(var(--pad) + 40px); max-width: 1500px; }
.hero__lede {
  margin-top: clamp(22px, 3vw, 40px); max-width: 34em;
  font-size: clamp(18px, 1.35vw, 22px); line-height: 1.67;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.burst {
  display: grid; place-items: center; text-align: center;
  background: var(--sprinkle); color: var(--wine);
  clip-path: var(--starburst);
  font-family: var(--f-display); line-height: .95;
}
.burst--hero {
  position: absolute; right: calc(var(--pad) + 40px); bottom: -10px;
  width: clamp(130px, 15vw, 230px); aspect-ratio: 1;
  font-size: clamp(17px, 1.9vw, 30px);
  transform: rotate(-12deg); z-index: 2;
}
.hero__photo { margin-top: clamp(40px, 6vw, 80px); }
.hero__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%; }

/* =========================== BUILD (scroll story) =========================== */
.build {
  position: relative;
  height: auto;
  background: var(--cocoa); color: var(--snow);
}
.build__stage {
  position: relative; height: min(100vh, 960px); height: min(100svh, 960px); min-height: 640px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center;
  padding: clamp(28px, 5vh, 56px) var(--pad) clamp(20px, 4vh, 40px);
  background:
    radial-gradient(ellipse 46% 52% at 50% 56%, rgba(255, 210, 31, .11), transparent 70%),
    var(--cocoa);
}
.build__heading { text-align: center; position: relative; z-index: 3; }
.build__hint {
  margin-top: 14px; font-family: var(--f-action); font-size: 17px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--sky);
}
.display--build { max-width: 15em; margin: 0 auto; text-shadow: .07em .07em 0 var(--raspberry); }

.sandwich {
  --s: 0; /* 0 = assembled, 1 = exploded (set by JS) */
  position: relative; align-self: center;
  height: min(64vh, 680px); aspect-ratio: 660 / 720;
  max-width: 88vw;
}
.layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  will-change: transform; user-select: none; -webkit-user-drag: none;
}
/* translate values are a share of the layer box: tuned so the
   three slices of the exploded photo sit snugly when --s is 0 */
.sandwich { --shift-top: 14.5%; --shift-cream: 2%; --shift-bottom: -11%; }
.layer--top    { z-index: 3; transform: translateY(var(--bob-top, 0%)) translateY(calc((1 - var(--s)) * var(--shift-top))) rotate(calc((1 - var(--s)) * -1.5deg + var(--s) * var(--tilt-top, 0deg))); }
.layer--cream  { z-index: 2; transform: translateY(var(--bob-cream, 0%)) translateY(calc((1 - var(--s)) * var(--shift-cream))) rotate(calc(var(--s) * var(--tilt-cream, 0deg))) scale(calc(.97 + var(--s) * .03)); }
.layer--bottom { z-index: 1; transform: translateY(var(--bob-bottom, 0%)) translateY(calc((1 - var(--s)) * var(--shift-bottom))) rotate(calc(var(--s) * var(--tilt-bottom, 0deg))); }
.layer--bits   { z-index: 4; opacity: var(--s); transform: scale(calc(.8 + var(--s) * .2)); }
.layer[hidden] { display: none; }
.sandwich__glow {
  position: absolute; left: 10%; right: 10%; top: 20%; bottom: 10%;
  background: radial-gradient(closest-side, rgba(255, 190, 120, .22), transparent);
  filter: blur(30px);
}
.sandwich__shadow {
  position: absolute; left: 18%; right: 18%; bottom: calc(1% + (1 - var(--s)) * 9%); height: 7%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent);
  z-index: 0; transform: scaleX(calc(1 - var(--s) * .25));
}
.sprinkles { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.sprinkle {
  position: absolute; left: 50%; top: 50%;
  width: 1.55%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.85) 0 14%, var(--c) 46%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  opacity: var(--o, 0);
  transform: translate(-50%, -50%) translate(var(--x, 0), var(--y, 0));
}

/* callouts sit around the cookie, like a diagram */
.callouts { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.callout {
  position: absolute; width: min(280px, 24vw);
  opacity: 0; transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease;
}
.callout.is-on { opacity: 1; transform: none; }
.callout h3 {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(19px, 1.7vw, 26px); line-height: 1;
  color: var(--sprinkle); margin-bottom: 8px;
}
.callout p { font-size: clamp(14px, 1vw, 16px); line-height: 1.55; color: rgba(255, 255, 255, .86); }
.callout::before {
  content: ""; position: absolute; top: .55em; height: 2px; width: clamp(24px, 3.4vw, 54px);
  background: var(--sprinkle);
}
.callout--top-left, .callout--mid-left { text-align: right; }
.callout--top-left::before, .callout--mid-left::before { left: calc(100% + 16px); }
.callout--mid-right::before, .callout--bottom-right::before { right: calc(100% + 16px); }
.callout--top-left     { left: calc(50% - min(30vh, 320px) - min(280px, 24vw) - 60px); top: 27%; }
.callout--mid-right    { right: calc(50% - min(30vh, 320px) - min(280px, 24vw) - 60px); top: 43%; }
.callout--mid-left     { left: calc(50% - min(30vh, 320px) - min(280px, 24vw) - 60px); top: 55%; }
.callout--bottom-right { right: calc(50% - min(30vh, 320px) - min(280px, 24vw) - 60px); top: 72%; }

.build__cta {
  position: relative; z-index: 6;
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s;
  pointer-events: none;
}
.build__cta.is-on { opacity: 1; transform: none; pointer-events: auto; }
.build__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.08);
}
.build__progress span { display: block; height: 100%; width: 100%; background: var(--sprinkle); transform-origin: left; transform: scaleX(0); }

/* ======================= BAND HEADERS ======================= */
.band-head { padding: 0 var(--pad); margin-bottom: clamp(40px, 6vw, 80px); }
.band-head__lede { margin-top: 22px; max-width: 36em; font-size: clamp(17px, 1.25vw, 21px); line-height: 1.67; }

/* =========================== FLAVORS =========================== */
.flavors { background: var(--cream); padding: var(--band) 0; }
.burst-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(36px, 4vw, 64px) clamp(16px, 2.5vw, 40px);
  padding: 0 var(--pad);
}
.flavor { display: grid; grid-template-rows: auto auto auto 1fr auto auto; justify-items: center; align-items: start; text-align: center; gap: 14px; }
.flavor__badge {
  --burst: var(--sprinkle);
  position: relative; width: 100%; max-width: 250px; aspect-ratio: 1;
  display: grid; place-items: center;
}
.flavor:nth-child(3n+2) .flavor__badge { --burst: var(--sky); }
.flavor:nth-child(3n) .flavor__badge { --burst: var(--raspberry); }
/* the starburst and its white plate live on a pseudo-element, so the gluten and the bubble can fly past the edge */
.flavor__badge::before {
  content: ""; position: absolute; inset: 0; clip-path: var(--starburst);
  background: radial-gradient(circle closest-side, var(--snow) 0 74%, transparent 74.6%), var(--burst);
}
.flavor__badge { cursor: pointer; }
.crumble { position: relative; width: 74%; aspect-ratio: 1; }
.crumble__whole {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  border-radius: 50%; mix-blend-mode: multiply; will-change: transform;
}
/* ingredients start tucked behind the cookie and burst out around it */
.flavor { position: relative; }
.flavor.is-crumbling { z-index: 6; }
.ings { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.ing { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; opacity: 0; transform: translate(-50%, -50%) scale(.1); will-change: transform; filter: drop-shadow(0 6px 6px rgba(42, 23, 18, .25)); }
.ing svg { display: block; width: 100%; height: 100%; overflow: visible; }
.crumb { position: absolute; left: 50%; top: 50%; width: 7%; aspect-ratio: 1; border-radius: 40% 55% 45% 60%; background: #d89346; border: 2px solid var(--ink); opacity: 0; }
.crumb:nth-child(odd) { width: 5%; background: #4a2416; }
.ings__says {
  position: absolute; left: 50%; top: 58%; z-index: 5; width: 58%;
  color: var(--ink); opacity: 0; transform: translate(-50%, -50%) scale(.6);
  font-family: var(--f-display); font-size: clamp(13px, 1.15vw, 17px); line-height: 1.05; text-align: center;
}
.gluten {
  position: absolute; left: 50%; top: 22%; z-index: 3; opacity: 0;
  display: grid; justify-items: center; gap: 2px; pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
}
.gluten svg { width: 34px; height: auto; }
.gluten path { stroke: #8a5a14; stroke-width: 3; fill: none; stroke-linecap: round; }
.gluten ellipse { fill: #e2b04a; stroke: #8a5a14; stroke-width: 2; }
.gluten b { font-family: var(--f-action); font-weight: 600; font-size: 14px; background: var(--ink); color: var(--snow); padding: 2px 7px; text-transform: uppercase; letter-spacing: .04em; }
.flavor__bubble { z-index: 4; left: 56%; top: -4%; opacity: 0; transform-origin: bottom left; font-size: 16px; padding: 7px 10px; }
.gf-tag {
  font-family: var(--f-action); font-weight: 600; font-size: 14px; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 9px; margin-top: -4px; border: 2px solid currentColor;
}
.gf-tag--yes { color: #1f7a3a; background: #e3f6e8; }
.gf-tag--yes::before { content: "✓ "; }
.gf-tag--no { color: color-mix(in srgb, var(--ink) 60%, transparent); }
.gf-add {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--wine);
  font-family: var(--f-action); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px;
}
.gf-add:hover { color: var(--raspberry); }
.flavor__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 1.5vw, 24px); line-height: 1; color: var(--ink); }
.flavor__desc { font-size: 14px; line-height: 1.5; max-width: 22em; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.flavor__row { display: flex; align-items: center; gap: 12px; }
.flavor__price { font-family: var(--f-action); font-weight: 600; font-size: 19px; color: var(--wine); }
.btn--add { --c: var(--wine); font-size: 15px; padding: 8px 12px; }

.seasonal {
  margin: clamp(64px, 8vw, 110px) var(--pad) 0;
  padding-top: 40px;
  border-top: 3px solid var(--wine);
  display: grid; grid-template-columns: minmax(200px, 1fr) 2.4fr; gap: 20px 48px;
}
.seasonal__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 36px); line-height: .95; color: var(--wine); }
.seasonal__list { display: flex; flex-wrap: wrap; gap: 10px; }
.seasonal__list li {
  font-family: var(--f-action); font-weight: 500; font-size: 18px; padding: 6px 14px;
  border: 2px solid var(--sky); color: var(--ink);
}
.seasonal__note { grid-column: 2; max-width: 40em; font-size: 15px; }

/* =========================== CROWD =========================== */
.crowd { background: var(--raspberry); padding: var(--band) 0 0; color: var(--snow); }
.crowd .display--wine { color: var(--snow); }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; background: var(--raspberry); border-top: 3px solid var(--raspberry); }
.tile { background: var(--snow); color: var(--ink); display: grid; grid-template-rows: auto 1fr; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tile__body { padding: 22px clamp(16px, 1.6vw, 26px) 28px; display: grid; grid-template-rows: auto auto 1fr; gap: 10px; border-top: 3px solid var(--raspberry); }
.tile__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 1.7vw, 28px); line-height: .95; color: var(--raspberry); }
.tile__desc { font-size: 15px; line-height: 1.55; }
.tile__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; align-self: end; }

/* =========================== STORY =========================== */
.story {
  background: var(--wine); color: var(--snow);
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center;
  gap: clamp(32px, 6vw, 100px); padding: var(--band) var(--pad);
}
.story__copy { display: grid; gap: 22px; justify-items: start; }
.story__copy p { max-width: 34em; font-size: clamp(17px, 1.25vw, 21px); line-height: 1.67; }
.story__copy .display { margin-bottom: 10px; font-size: clamp(40px, 5.2vw, 84px); }
.story__photos { position: relative; justify-self: center; width: min(560px, 100%); padding-bottom: 18%; }
.story__portrait img { width: 100%; transform: rotate(-3deg); box-shadow: 14px 14px 0 var(--raspberry); border: 6px solid var(--snow); }
.story__photos .story__book { position: absolute; right: -4%; bottom: 0; width: 42%; }
.story__photos .story__book::before {
  content: ""; position: absolute; inset: -14% -18%; z-index: 0;
  background: var(--sprinkle); clip-path: var(--starburst); transform: rotate(8deg);
}
.story__book img { position: relative; z-index: 1; width: 100%; transform: rotate(-4deg); box-shadow: 14px 14px 0 var(--raspberry); }
.story .display { text-shadow: .06em .06em 0 var(--raspberry); }

/* =========================== VISIT =========================== */
.visit {
  background: var(--sprinkle); color: var(--ink);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px);
  padding: calc(var(--band) + 110px) var(--pad) var(--band);
}
.visit__where { display: grid; gap: 24px; justify-items: start; align-content: start; }
.visit address { font-style: normal; font-family: var(--f-display); font-size: clamp(26px, 2.8vw, 42px); line-height: 1; color: var(--wine); }
.visit__links { font-family: var(--f-action); font-size: 22px; font-weight: 500; line-height: 1.5; }
.visit__links a { text-decoration-thickness: 2px; text-underline-offset: 5px; }
.visit__hours h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); color: var(--wine); margin-bottom: 14px; }
.hours { width: 100%; max-width: 520px; border-collapse: collapse; font-size: 19px; }
.hours th, .hours td { padding: 12px 0; border-bottom: 2px solid var(--wine); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-family: var(--f-action); font-weight: 500; font-size: 20px; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--raspberry); font-weight: 700; }
.hours tr.is-today th::after { content: " (today)"; font-weight: 400; }

/* =========================== FOOTER =========================== */
.foot {
  background: var(--wine); color: var(--snow); text-align: center;
  padding: 60px var(--pad) 48px; display: grid; justify-items: center; gap: 14px; font-size: 15px;
}
.foot__logo { width: 150px; }
.foot__links { display: flex; gap: 24px; font-family: var(--f-action); font-size: 17px; text-transform: uppercase; letter-spacing: .03em; }

/* =========================== BOX DRAWER =========================== */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(36, 18, 12, .55); }
.box {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(440px, 100vw); background: var(--cream); color: var(--ink);
  border-left: 6px solid var(--wine);
  display: grid; grid-template-rows: auto 1fr auto;
  transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  visibility: hidden;
}
.box.is-open { transform: none; visibility: visible; }
.box__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; background: var(--raspberry); }
.box__head h2 { font-family: var(--f-display); font-weight: 400; font-size: 32px; color: var(--snow); text-shadow: 3px 3px 0 var(--wine); }
.box__close { background: none; border: 2px solid var(--snow); color: var(--snow); width: 40px; height: 40px; font-size: 26px; line-height: 1; cursor: pointer; }
.box__body { overflow-y: auto; padding: 8px 24px; }
.box__empty { padding: 40px 0; display: grid; gap: 16px; justify-items: start; }
.box__empty p { font-size: 17px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 2px solid color-mix(in srgb, var(--wine) 25%, transparent); }
.line img { width: 64px; height: 64px; object-fit: cover; background: var(--snow); }
.line__name { font-family: var(--f-action); font-weight: 600; font-size: 18px; line-height: 1.2; }
.line__price { font-size: 14px; color: color-mix(in srgb, var(--ink) 75%, transparent); }
.qty { display: flex; align-items: center; border: 2px solid var(--wine); }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 18px; color: var(--wine); cursor: pointer; }
.qty button:hover { background: var(--wine); color: var(--snow); }
.qty output { min-width: 26px; text-align: center; font-family: var(--f-action); font-weight: 600; }
.box__foot { padding: 20px 24px 26px; border-top: 3px solid var(--wine); display: grid; gap: 14px; }
.box__total { display: flex; justify-content: space-between; font-family: var(--f-action); font-size: 20px; }
.box__fine { font-size: 13px; color: color-mix(in srgb, var(--ink) 75%, transparent); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, calc(100% + 40px)); transition: transform .3s, visibility .3s;
  visibility: hidden;
  background: var(--wine); color: var(--snow); padding: 14px 22px;
  font-family: var(--f-action); font-weight: 500; font-size: 18px;
  border: 2px solid var(--sprinkle);
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 1100px) {
  .burst-grid { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr; padding-bottom: 10px; }
  .nav__side--left { display: none; }
  .nav__logo img { width: 110px; }
  .burst--hero { right: 10px; bottom: -40px; width: 120px; font-size: 16px; }
  .story, .visit { grid-template-columns: 1fr; }
  .story__book { width: min(300px, 80%); margin-top: 30px; }
  .seasonal { grid-template-columns: 1fr; }
  .seasonal__note { grid-column: 1; }

  /* build story on small screens: one caption at a time, under the cookie */
  .sandwich { height: min(48vh, 520px); }
  .callouts { inset: auto var(--pad) 84px; height: 7.5em; }
  .callout { left: 0 !important; right: 0 !important; top: 0 !important; width: auto; text-align: center !important; }
  .callout::before { display: none; }
  .callout.is-on:not(.is-current) { opacity: 0; }
}
@media (max-width: 620px) {
  .hero__copy { padding: 0 calc(var(--pad) + 22px); }
  .zigzag { width: 16px; background-size: 16px 18px; }
  .nav__phone { display: none; }
  .burst-grid { grid-template-columns: repeat(2, 1fr); }
  .flavor__desc { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .burst--hero { right: 0; bottom: -56px; width: 104px; font-size: 14px; }
}


/* =========================== LIVE STATUS =========================== */
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-action); font-weight: 500; font-size: 19px; letter-spacing: .02em;
}
.status::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: #2fbf5b; box-shadow: 0 0 0 0 rgba(47, 191, 91, .6);
  animation: pulse 2s infinite;
}
.status[data-state="closed"]::before { background: var(--sprinkle); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47, 191, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 91, 0); } }
.status--hero { margin-top: 22px; }
.status--visit { margin-bottom: 16px; color: var(--wine); }

/* =========================== DELIVERY =========================== */
.deliver { background: var(--sky); color: var(--ink); padding: var(--band) var(--pad); }
.deliver__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; }
.deliver .display { max-width: 11em; }
.status--deliver { background: var(--snow); padding: 10px 16px; border: 3px solid var(--wine); color: var(--ink); }
.deliver__lede { margin-top: 22px; max-width: 38em; font-size: clamp(17px, 1.25vw, 21px); line-height: 1.67; }
.deliver__lede a { font-weight: 700; color: var(--wine); }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; margin-top: clamp(36px, 5vw, 64px); border: 3px solid var(--wine); background: var(--snow); }
.way { padding: 28px clamp(18px, 2vw, 32px) 32px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; justify-items: start; }
.way + .way { border-left: 3px solid var(--wine); }
.way--doordash { background: var(--sprinkle); }
.way__icon svg { width: 64px; height: 48px; fill: none; stroke: var(--wine); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.way--doordash .way__icon svg { animation: ride 1.6s ease-in-out infinite; }
@keyframes ride { 50% { transform: translateX(8px) rotate(-3deg); } }
.way__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: .95; color: var(--raspberry); }
.way__body { font-size: 16px; line-height: 1.55; max-width: 26em; }

/* =========================== FAQ =========================== */
.faq { background: var(--cream); padding: var(--band) var(--pad); display: grid; grid-template-columns: minmax(240px, .8fr) 1.6fr; gap: 32px clamp(32px, 6vw, 100px); align-items: start; }
.faq__list { border-top: 3px solid var(--wine); }
.faq details { border-bottom: 3px solid var(--wine); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-family: var(--f-action); font-weight: 600; font-size: clamp(19px, 1.5vw, 24px); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border: 2px solid var(--wine); color: var(--wine); font-size: 22px; line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sprinkle); }
.faq details p { padding: 0 0 22px; max-width: 42em; font-size: 17px; line-height: 1.65; }
.faq details a { color: var(--wine); font-weight: 600; }

/* =========================== COOKIE BUDDY =========================== */
.buddy { display: block; width: 100%; height: auto; overflow: visible; }
.buddy__dough { stroke: var(--ink); stroke-width: 6; }
.buddy__crumb { fill: none; stroke: #a2622a; stroke-width: 3; stroke-linecap: round; opacity: .7; }
.buddy__chips path { fill: #4a2416; stroke: #2a1712; stroke-width: 2; stroke-linejoin: round; }
.buddy__eye { fill: var(--ink); transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.buddy__glint { fill: #fff; }
.buddy__cheek { fill: #ff7f98; opacity: .75; }
.buddy__smile { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.buddy__grin { fill: #5a1a14; stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; opacity: 0; }
.buddy__arm path { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; }
.buddy__arm circle { fill: #fff; stroke: var(--ink); stroke-width: 5; }
.buddy__arm { transform-box: view-box; }
.buddy__all, .buddy__leg, .buddy__loose { transform-box: view-box; }
.buddy__all { transform-origin: 120px 124px; }
.buddy__leg--left { transform-origin: 104px 186px; }
.buddy__leg--right { transform-origin: 136px 186px; }
.buddy__loose { transform-origin: 0 0; transform: translate(68px, 207px); opacity: 0; }
.buddy__leg path { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; }
.buddy__leg ellipse { fill: var(--raspberry); stroke: var(--ink); stroke-width: 5; }
.buddy__ouch { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; opacity: 0; }
.buddy__piece { stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.buddy__piece-chip { fill: #4a2416; }
/* the piece that breaks off stays invisible until the backflip: the whole cookie is already drawn underneath it */
.buddy__chunk--top { display: none; }
.buddy__chunk--butt { opacity: 0; }
.buddy__notch { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.is-patched .buddy__chunk--top { opacity: 0; }
.is-patched .buddy__notch { transform: scale(1); }
.is-patched .buddy__chunk--butt { opacity: 1; }
.buddy__arm--left { transform-origin: 54px 132px; transform: rotate(-20deg); }
.buddy__arm--right { transform-origin: 186px 132px; }

.bubble {
  position: absolute; white-space: nowrap;
  background: var(--snow); color: var(--ink); border: 3px solid var(--ink);
  font-family: var(--f-action); font-weight: 600; font-size: 17px; line-height: 1; padding: 9px 13px;
}
.bubble::after {
  content: ""; position: absolute; left: 18px; bottom: -11px; width: 16px; height: 16px;
  background: var(--snow); border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: rotate(45deg) skew(8deg, 8deg);
}

/* floating box dock: the buddy waves hello, then points at the box */
.dock {
  position: fixed; right: clamp(14px, 2.5vw, 32px); bottom: clamp(14px, 2.5vw, 28px); z-index: 30;
  display: flex; align-items: flex-end; gap: 4px;
  transform: translateY(160%); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
}
.dock.is-on { transform: none; }
body.box-open .dock { transform: translateY(160%); }
.dock__buddy { position: relative; z-index: 2; width: 128px; margin: 0 -10px -6px 0; cursor: pointer; }
.dock__bubble { left: 6px; bottom: calc(100% + 6px); opacity: 0; transform: translateY(6px); transition: opacity .3s .5s, transform .3s .5s; }
.dock.is-on .dock__bubble { opacity: 1; transform: none; }
.dock.is-quiet .dock__bubble { opacity: 0; transition-delay: 0s; }
.dock__bubble::after { left: 46px; }
.dock__btn {
  display: inline-flex; align-items: center; gap: .55em; cursor: pointer;
  font-family: var(--f-action); font-weight: 600; font-size: 20px; text-transform: uppercase; letter-spacing: .02em;
  padding: 14px 18px; background: var(--wine); color: var(--snow); border: 3px solid var(--sprinkle); border-radius: 0;
  box-shadow: 6px 6px 0 var(--ink);
}
.dock__btn:hover { background: var(--raspberry); }
.dock.is-waving .buddy__arm--right { animation: wave .5s ease-in-out 5 alternate; }
@keyframes wave { from { transform: rotate(-12deg); } to { transform: rotate(28deg); } }
.dock.is-pointing .buddy__arm--right { transform: rotate(62deg); animation: point 1.4s ease-in-out infinite; }
@keyframes point { 50% { transform: rotate(56deg) translateX(4px); } }
.dock.is-waving .buddy__grin, .dock.is-cheering:not(.is-dancing) .buddy__grin { opacity: 1; }
.dock.is-waving .buddy__smile, .dock.is-cheering:not(.is-dancing) .buddy__smile { opacity: 0; }
.dock.is-cheering .dock__buddy { animation: hop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hop { 40% { transform: translateY(-26px) rotate(-8deg); } }

/* the cookie that rolls in on the visit band */
.roller { position: absolute; left: 0; right: 0; top: clamp(24px, 4vw, 48px); height: 150px; pointer-events: none; }
.roller__mover { position: absolute; left: 0; bottom: 0; width: 170px; will-change: transform; }
.roller__spin { will-change: transform; transform-origin: 50% 50.6%; }
.roller__lift { transform: translateY(16%); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.roller.is-stopped .roller__lift { transform: none; }
.roller .buddy__legs { opacity: 0; transition: opacity .2s; }
.roller.is-stopped .buddy__legs { opacity: 1; }
.roller__shadow { position: absolute; left: 22%; right: 22%; bottom: -4px; height: 10px; border-radius: 50%; background: rgba(42, 23, 18, .22); z-index: -1; }
.roller .buddy__arm { opacity: 0; transition: opacity .2s; }
.roller__bubble { left: 62%; bottom: calc(100% - 22px); opacity: 0; transform: scale(.6); transform-origin: bottom left; transition: opacity .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.roller.is-stopped .buddy__arm { opacity: 1; }
.roller.is-stopped .buddy__arm--right { animation: wave .45s ease-in-out infinite alternate; }
.roller.is-stopped .buddy__arm--left { transform: rotate(-40deg); }
.roller.is-stopped .buddy__grin { opacity: 1; }
.roller.is-stopped .buddy__smile { opacity: 0; }
.roller.is-stopped .roller__bubble { opacity: 1; transform: none; }

/* a cookie photo flying into the box */
.flyer { position: fixed; z-index: 70; border-radius: 50%; object-fit: cover; background: var(--snow); border: 3px solid var(--wine); pointer-events: none; }

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .way + .way { border-left: 0; border-top: 3px solid var(--wine); }
  .dock__buddy { width: 96px; }
  .dock__btn { font-size: 17px; padding: 11px 14px; }
  .toast { bottom: 100px; }
  .roller__mover { width: 120px; }
  .roller__bubble { left: 40%; }
}


/* =========================== SLIDESHOW =========================== */
.reel {
  --bg: var(--raspberry); --fg: var(--snow); --accent: var(--sprinkle); --shadow: var(--wine);
  position: relative; overflow: hidden;
  background: var(--bg); color: var(--fg);
  transition: background-color .7s ease, color .7s ease;
  padding: clamp(48px, 7vw, 96px) 0 0;
}
.reel[data-theme="sky"] { --bg: var(--sky); --fg: var(--ink); --accent: var(--raspberry); --shadow: var(--wine); }
.reel[data-theme="sprinkle"] { --bg: var(--sprinkle); --fg: var(--ink); --accent: var(--raspberry); --shadow: var(--wine); }
.reel[data-theme="wine"] { --bg: var(--wine); --fg: var(--snow); --accent: var(--sky); --shadow: var(--raspberry); }
.reel__stage { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px clamp(24px, 4vw, 70px); padding: 0 var(--pad); min-height: min(68vh, 640px); }
.reel__title { font-family: var(--f-action); font-weight: 600; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.reel__cat { font-family: var(--f-action); font-weight: 500; font-size: 18px; opacity: .85; }
.reel__name {
  font-size: clamp(42px, 5.8vw, 96px); margin: 8px 0 18px; min-height: 1.8em;
  color: var(--fg); text-shadow: .06em .06em 0 var(--shadow);
  display: flex; align-items: flex-end;
}
.reel[data-theme="sky"] .reel__name, .reel[data-theme="sprinkle"] .reel__name { color: var(--snow); }
.reel__desc { max-width: 30em; min-height: 3.4em; font-size: clamp(16px, 1.2vw, 20px); line-height: 1.6; }
.reel__buy { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.reel__price { font-family: var(--f-display); font-size: clamp(28px, 2.6vw, 40px); }
.reel .btn { --c: var(--fg); --on: var(--bg); }
.reel__controls { display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.reel__ctl {
  min-width: 46px; height: 46px; padding: 0 14px; background: transparent; color: var(--fg);
  border: 2px solid var(--fg); border-radius: 0; cursor: pointer;
  font-family: var(--f-action); font-weight: 600; font-size: 24px; line-height: 1;
}
.reel__ctl--play { font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.reel__ctl:hover { background: var(--fg); color: var(--bg); }
.reel__count { margin-left: 8px; font-family: var(--f-action); font-size: 17px; }
.reel__visual { position: relative; aspect-ratio: 1; width: min(100%, 600px); justify-self: center; }
.reel__burst { position: absolute; inset: 0; background: var(--accent); clip-path: var(--starburst); transition: background-color .7s; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reel__disc {
  position: absolute; inset: 12%; border-radius: 50%; background: var(--snow); overflow: hidden;
  border: 6px solid var(--ink); visibility: hidden;
}
.reel__disc.is-current { visibility: visible; }
.reel__disc img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transform: scale(1.06); }
.reel__strip {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding: 34px var(--pad) 30px; margin-top: clamp(20px, 3vw, 40px);
}
.reel__strip::-webkit-scrollbar { display: none; }
.reel__thumb { flex: none; width: 72px; height: 72px; padding: 0; background: var(--snow); border: 3px solid transparent; border-radius: 50%; cursor: pointer; overflow: hidden; opacity: .75; transition: opacity .2s, transform .2s; }
.reel__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.reel__thumb:hover { opacity: 1; }
.reel__thumb[aria-selected="true"] { opacity: 1; border-color: var(--fg); transform: scale(1.15); }
.reel__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: color-mix(in srgb, var(--fg) 18%, transparent); }
.reel__bar span { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* =========================== ORDER ONLINE =========================== */
.shop { background: #fbd3d6; padding: var(--band) 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 var(--pad); margin: -30px 0 40px; }
.chip {
  font-family: var(--f-action); font-weight: 500; font-size: 18px; padding: 9px 14px; cursor: pointer;
  background: transparent; color: var(--ink); border: 2px solid var(--wine); border-radius: 0;
}
.chip span { font-size: .85em; opacity: .7; margin-left: 4px; }
.chip:hover { background: var(--snow); }
.chip[aria-pressed="true"] { background: var(--wine); color: var(--snow); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 3px; padding: 0; background: var(--wine); border-top: 3px solid var(--wine); border-bottom: 3px solid var(--wine); }
.item { background: var(--snow); display: grid; grid-template-rows: auto auto auto 1fr auto auto; gap: 8px; padding: 0 0 22px; }
.item[hidden] { display: none; }
.item__media { position: relative; aspect-ratio: 1; overflow: hidden; margin-bottom: 10px; }
.item__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s ease, transform .5s; }
/* products with more than one photo fade between them on their own */
.item--flip .item__media img { opacity: 0; }
.item--flip .item__media img.is-on { opacity: 1; }
.item:hover .item__media img { transform: scale(1.05); }
.item__flag { position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--snow); font-family: var(--f-action); font-weight: 600; padding: 6px 10px; text-transform: uppercase; font-size: 15px; }
.item.is-out .item__media { filter: grayscale(.7); opacity: .7; }
.item__cat, .item__name, .item__desc, .item__pick, .item__row { margin: 0 18px; }
.item__cat { font-family: var(--f-action); font-size: 14px; color: var(--raspberry); text-transform: uppercase; letter-spacing: .04em; }
.item__name { font-family: var(--f-display); font-weight: 400; font-size: 21px; line-height: 1; color: var(--ink); }
.item__desc { font-size: 14px; line-height: 1.5; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.item__pick { display: grid; gap: 4px; font-family: var(--f-action); font-size: 14px; }
.item__pick select { font: inherit; font-size: 16px; padding: 8px; border: 2px solid var(--wine); border-radius: 0; background: var(--snow); color: var(--ink); }
.item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: transparent; color: var(--c); }

/* =========================== COOKIE TRUCKS =========================== */
.trucks { position: relative; background: var(--cocoa); color: var(--snow); padding: 0 0 var(--band); overflow: hidden; }
.road { position: relative; height: clamp(150px, 16vw, 210px); border-bottom: 6px dashed var(--sprinkle); margin-bottom: var(--band); }
.road__truck { position: absolute; left: 0; bottom: -2px; width: clamp(240px, 26vw, 360px); will-change: transform; }
.truck { display: block; width: 100%; height: auto; overflow: visible; }
.truck__body { fill: var(--raspberry); stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; }
.truck__awning { fill: var(--snow); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.truck__stripes { stroke: var(--raspberry); stroke-width: 9; }
.truck__window { fill: #3a1e14; stroke: var(--ink); stroke-width: 4; }
.truck__counter { fill: var(--sprinkle); stroke: var(--ink); stroke-width: 4; }
.truck__cookie { fill: #d89346; stroke: var(--ink); stroke-width: 4; }
.truck__ink { fill: var(--ink); }
.truck__smile, .truck__arm { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.truck__chip { fill: #4a2416; }
.truck__glove { fill: var(--snow); stroke: var(--ink); stroke-width: 3; }
.truck__hand { transform-box: view-box; transform-origin: 126px 108px; animation: wave .45s ease-in-out infinite alternate; }
.truck__logo { fill: var(--sky); stroke: var(--snow); stroke-width: 5; }
.truck__peaks { fill: var(--snow); stroke: #7a4b28; stroke-width: 2; }
.truck__cab { fill: var(--snow); stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; }
.truck__glass { fill: var(--sky); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.truck__bumper { fill: var(--ink); }
.truck__wheel { transform-box: fill-box; transform-origin: center; }
.truck__wheel circle { fill: #1a0d09; stroke: var(--snow); stroke-width: 5; }
.truck__wheel path { stroke: var(--snow); stroke-width: 4; }
.truck__puff { fill: rgba(255, 255, 255, .5); }
.trucks__head { display: grid; justify-items: start; gap: 0; }
.trucks__head .btn { margin-top: 26px; }
.trucks .display { max-width: 14em; text-shadow: .06em .06em 0 var(--raspberry); }
.truck-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: clamp(40px, 5vw, 70px); background: var(--sprinkle); border-top: 3px solid var(--sprinkle); }
.truck-grid li { background: var(--cocoa); }
.truck-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.truck-grid p { padding: 16px var(--pad) 0 18px; font-family: var(--f-action); font-size: 18px; }
.truck-grid strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 1.8vw, 28px); color: var(--sprinkle); }

@media (max-width: 1000px) {
  .reel__stage { grid-template-columns: 1fr; min-height: 0; }
  .reel__visual { width: min(78vw, 440px); grid-row: 1; }
  .reel__name { min-height: 0; font-size: clamp(36px, 10vw, 64px); }
  .truck-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .item__desc { display: none; }
  .item__name { font-size: 18px; }
  .item__cat, .item__name, .item__pick, .item__row { margin: 0 12px; }
  .item__row { flex-direction: column; align-items: flex-start; }
  .reel__thumb { width: 58px; height: 58px; }
  .ings__says { font-size: 10.5px; width: 66%; }
  .gluten { top: 16%; }
  .gluten svg { width: 24px; }
  .gluten b { font-size: 11px; }
  .flavor:nth-child(even) .flavor__bubble { left: auto; right: 40%; transform-origin: bottom right; }
  .flavor:nth-child(even) .flavor__bubble::after { left: auto; right: 18px; }
}


/* =========================== OPENING SIZZLE =========================== */
body.intro-on { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: pointer;
  display: grid; place-items: center; background: #1b0c07; color: var(--snow);
}
.intro[hidden] { display: none; }
/* shown from the very first paint on a first visit, before any script runs */
html.intro-pending .intro[hidden] { display: grid; }
html.intro-pending, html.intro-pending body { overflow: hidden; }
.intro__warming {
  position: absolute; left: 0; right: 0; bottom: 18%; text-align: center;
  font-family: var(--f-action); font-weight: 500; font-size: 18px; letter-spacing: .04em; color: var(--sprinkle);
  animation: warming 1.2s ease-in-out infinite alternate;
}
.intro.is-ready .intro__warming { display: none; }
@keyframes warming { from { opacity: .35; } to { opacity: .9; } }
.intro__glow {
  position: absolute; inset: -25%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 176, 66, .5), rgba(255, 120, 30, .16) 32%, transparent 62%);
  animation: ovenGlow 1.4s ease-in-out infinite alternate;
}
@keyframes ovenGlow { to { opacity: .72; transform: scale(1.06); } }
.intro__stack { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2vh, 22px); padding: 20px; text-align: center; }
.intro__logo { width: clamp(100px, 11vw, 160px); opacity: 0; }
.intro__stage { position: relative; width: min(52vw, 34vh, 320px); aspect-ratio: 1; }
.intro__shot, .intro__plate {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--snow);
  border: 6px solid var(--ink); box-shadow: 0 0 90px rgba(255, 170, 60, .55); opacity: 0;
}
.intro__shot img, .intro__plate img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transform: scale(1.06); }
.intro__line { opacity: 0; }
.intro__line--1 { font-family: var(--f-display); font-size: clamp(44px, 8vw, 104px); line-height: .9; text-shadow: .06em .06em 0 var(--raspberry); }
.intro__line--2 { font-family: var(--f-action); font-weight: 500; font-size: clamp(18px, 2vw, 28px); color: var(--sprinkle); }
.intro__skip {
  position: absolute; right: 20px; bottom: 20px; cursor: pointer;
  background: transparent; color: var(--snow); border: 2px solid var(--snow); border-radius: 0;
  font-family: var(--f-action); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px;
}
.intro__skip:hover { background: var(--snow); color: var(--ink); }

/* steam: soft wisps that curl up off anything fresh */
.steam { position: absolute; pointer-events: none; }
.steam i {
  position: absolute; bottom: 0; width: 22%; height: 160%; opacity: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 60%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 72%);
  filter: blur(9px); border-radius: 50%;
}
.is-steaming .steam i { animation: steam 4.2s ease-in infinite; }
.steam i:nth-child(1) { left: 6%; animation-delay: 0s; }
.steam i:nth-child(2) { left: 30%; animation-delay: .9s; }
.steam i:nth-child(3) { left: 52%; animation-delay: .35s; }
.steam i:nth-child(4) { left: 74%; animation-delay: 1.5s; }
.steam i:nth-child(5) { left: 18%; animation-delay: 2.2s; }
.steam i:nth-child(6) { left: 63%; animation-delay: 2.9s; }
@keyframes steam {
  0% { transform: translateY(15%) scaleX(.55); opacity: 0; }
  20% { opacity: .95; }
  60% { transform: translateY(-45%) translateX(12%) scaleX(1.05) skewX(-10deg); opacity: .6; }
  100% { transform: translateY(-95%) translateX(-8%) scaleX(1.5) skewX(12deg); opacity: 0; }
}
.steam--intro { left: 6%; right: 6%; top: -45%; height: 80%; }
.steam--intro i { width: 26%; }

/* hero media: the cookie tray beside the film, steam rising off both */
.hero__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--sprinkle); border: 4px solid var(--sprinkle); }
.hero__panel { position: relative; overflow: hidden; margin: 0; background: var(--cocoa); }
.hero__panel img, .hero__video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* the tray leans in toward the sprinkle cookie like you're about to take a bite, then eases back */
.hero__panel--tray img { object-position: 50% 60%; transform-origin: 46% 62%; animation: biteIn 9s cubic-bezier(.45,0,.25,1) infinite; }
@keyframes biteIn {
  0%   { transform: scale(1) translateY(0); }
  55%  { transform: scale(1.42) translateY(2%); }
  68%  { transform: scale(1.47) translateY(2.4%); }
  100% { transform: scale(1) translateY(0); }
}
/* the film's own footage has dark rounded corners; crop them so the yellow frame runs clean */
.hero__video { transform: scale(1.07); }
.hero__film-hit { position: absolute; inset: 0; z-index: 2; background: transparent; border: 0; cursor: pointer; }
.hero__warmth {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(to top, rgba(255, 160, 50, .55), rgba(255, 190, 90, .15) 55%, transparent 80%);
  animation: warmth 3.2s ease-in-out infinite alternate;
}
@keyframes warmth { to { opacity: .55; } }
.steam--panel { left: 6%; right: 6%; bottom: 6%; height: 72%; z-index: 1; }
.steam--panel i { width: 17%; height: 120%; filter: blur(14px); }
/* over the bright film footage the steam gets a warm edge so it still reads */
.hero__panel--film .steam i { background: radial-gradient(ellipse 50% 50% at 50% 60%, rgba(255, 250, 240, .95), rgba(255, 214, 160, .35) 45%, rgba(255, 255, 255, 0) 72%); }
/* steam that rises off the slideshow cookie and the daily cookies */
.steam--reel { left: 16%; right: 16%; top: -14%; height: 56%; z-index: 3; }
.steam--reel i { width: 22%; height: 140%; filter: blur(12px); }
.steam--badge { left: 18%; right: 18%; top: -20%; height: 55%; z-index: 4; }
.steam--badge i { width: 24%; height: 140%; filter: blur(9px); }
.flavor__badge:hover .steam i, .flavor.is-fresh .steam i { animation: steam 3.2s ease-in infinite; }

/* other stores and the call button in the box */
.visit__where-note { font-family: var(--f-action); font-size: 18px; margin-top: -12px; }
.nearby { margin-top: 18px; border-top: 3px solid var(--wine); padding-top: 18px; width: 100%; max-width: 520px; }
.nearby h3 { font-family: var(--f-display); font-weight: 400; font-size: 22px; color: var(--wine); margin-bottom: 10px; }
.nearby li { padding: 8px 0; border-bottom: 2px solid color-mix(in srgb, var(--wine) 25%, transparent); font-size: 16px; }
.nearby strong { display: block; font-family: var(--f-action); font-weight: 600; font-size: 18px; }
.nearby a { color: var(--wine); font-weight: 600; margin-left: 6px; }
.nearby__all { display: inline-block; margin-top: 12px; font-family: var(--f-action); font-weight: 600; color: var(--wine); }
.box__call { --c: var(--wine); }


/* the "Watch with sound" button and the film player */
.hero__watch {
  position: absolute; left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 3;
  display: inline-flex; align-items: center; gap: 14px; cursor: pointer; text-align: left;
  padding: 12px 20px 12px 12px; background: var(--wine); color: var(--snow);
  border: 3px solid var(--sprinkle); border-radius: 0; box-shadow: 6px 6px 0 var(--ink);
  font-family: var(--f-action); font-weight: 600; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1;
}
.hero__watch small { display: block; font-weight: 400; font-size: 14px; text-transform: none; letter-spacing: 0; opacity: .85; }
.hero__watch:hover { background: var(--raspberry); }
.hero__play { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--sprinkle); }
.hero__play::after { content: ""; position: absolute; left: 18px; top: 13px; border-left: 16px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.film { width: min(1120px, 94vw); padding: 0; border: 4px solid var(--sprinkle); background: #000; overflow: visible; }
.film::backdrop { background: rgba(27, 12, 7, .88); }
.film__video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film__close {
  position: absolute; right: -4px; top: -52px; width: 44px; height: 44px; cursor: pointer;
  background: var(--sprinkle); color: var(--ink); border: 0; border-radius: 0; font-size: 30px; line-height: 1;
}
@media (max-width: 760px) {
  .hero__media { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero__watch { position: relative; left: auto; bottom: auto; margin: 14px var(--pad) 18px; font-size: 16px; padding: 8px 14px 8px 8px; gap: 10px; }
  .hero__play { width: 36px; height: 36px; }
  .hero__play::after { left: 14px; top: 10px; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
}


/* =========================== 40 YEARS =========================== */
.hero__kicker { margin-bottom: 18px; }
.hero__kicker a {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--f-action); font-weight: 600; font-size: clamp(17px, 1.5vw, 22px); letter-spacing: .03em; text-transform: uppercase;
  color: var(--ink); background: var(--sprinkle); padding: 8px 14px; box-shadow: 4px 4px 0 var(--wine);
}
.hero__kicker a::before { content: "★"; color: var(--raspberry); }
.burst--hero b { display: block; font-size: 2.1em; line-height: .8; }
.forty {
  background: var(--cream); padding: var(--band) var(--pad);
  display: grid; grid-template-columns: minmax(260px, .8fr) 1.6fr; gap: clamp(32px, 6vw, 100px); align-items: center;
}
.forty__mark { display: grid; justify-items: center; text-align: center; position: relative; }
.forty__badge { width: clamp(150px, 16vw, 230px); aspect-ratio: 1; border-radius: 50%; background: #241410; display: grid; place-items: center; border: 6px solid var(--sprinkle); box-shadow: 10px 10px 0 var(--raspberry); }
.forty__badge img { width: 82%; }
.forty__number {
  font-family: var(--f-display); font-size: clamp(120px, 16vw, 230px); line-height: .82; margin-top: 20px;
  color: var(--raspberry); text-shadow: .05em .05em 0 var(--wine);
}
.forty__years { font-family: var(--f-display); font-size: clamp(28px, 3vw, 44px); color: var(--wine); line-height: 1; }
.forty__copy { display: grid; gap: 18px; }
.forty__copy p { max-width: 38em; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.7; }
.forty__copy .forty__lede { font-size: clamp(19px, 1.45vw, 24px); line-height: 1.6; color: var(--ink); }
.forty__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 10px; border: 3px solid var(--wine); }
.forty__facts li { padding: 16px 18px; font-size: 15px; line-height: 1.4; }
.forty__facts li + li { border-left: 3px solid var(--wine); }
.forty__facts strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1; color: var(--raspberry); }

/* =========================== HOLIDAY SPECIALS =========================== */
.holidays { position: relative; overflow: hidden; background: #1f5c3f; color: var(--snow); padding: var(--band) var(--pad); }
.holidays .band-head { padding: 0; position: relative; }
.holidays .display { text-shadow: .06em .06em 0 var(--raspberry); }
.snow { position: absolute; inset: 0; pointer-events: none; }
.snow i { position: absolute; top: -10px; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .85); animation: snowfall linear infinite; }
@keyframes snowfall { to { transform: translate(var(--drift, 30px), 110vh); } }
.cookieday {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px clamp(20px, 3vw, 44px);
  background: var(--sprinkle); color: var(--ink); padding: clamp(20px, 2.5vw, 34px); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--raspberry);
  margin: -10px 0 clamp(36px, 5vw, 60px);
}
.cookieday__date { display: grid; place-items: center; width: clamp(96px, 9vw, 130px); aspect-ratio: 1; background: var(--raspberry); color: var(--snow); clip-path: var(--starburst); transform: rotate(-8deg); }
.cookieday__date span { font-family: var(--f-action); font-weight: 600; font-size: 18px; text-transform: uppercase; margin-bottom: -18px; }
.cookieday__date b { font-family: var(--f-display); font-weight: 400; font-size: clamp(46px, 4.5vw, 64px); line-height: 1; }
.cookieday h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 38px); line-height: .95; color: var(--raspberry); margin-bottom: 10px; }
.cookieday p { max-width: 40em; font-size: 17px; line-height: 1.55; }
.cookieday__count { margin-top: 8px; font-family: var(--f-action); font-weight: 600; font-size: 19px; color: var(--wine); }
.hol-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--sprinkle); border: 4px solid var(--sprinkle); }
.hol { background: var(--snow); color: var(--ink); display: grid; grid-template-rows: auto 1fr; }
.hol figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #f3ece4; }
.hol img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.hol--deal figure { background: #ece6e1; display: grid; place-items: center; }
.hol--deal img { height: auto; object-fit: contain; }
.hol:hover img { transform: scale(1.06); }
.hol__body { padding: 20px 20px 24px; display: grid; gap: 10px; align-content: start; }
.hol__when { font-family: var(--f-action); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: #1f5c3f; }
.hol h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 1.9vw, 30px); line-height: .95; color: var(--raspberry); }
.hol p { font-size: 15.5px; line-height: 1.55; }
.hol__note { font-family: var(--f-action); font-weight: 600; font-size: 16px !important; color: var(--wine); border-top: 2px solid #eadbd0; padding-top: 10px; }
.holidays__fine { position: relative; margin-top: 22px; font-size: 15px; }
.holidays__fine a { color: var(--sprinkle); font-weight: 700; }

/* free-shipping boxes in the delivery band */
.shipbox { margin-top: clamp(30px, 4vw, 50px); background: var(--snow); border: 3px solid var(--wine); padding: clamp(20px, 2.5vw, 32px); }
.shipbox__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.2vw, 32px); color: var(--raspberry); margin-bottom: 16px; }
.shipbox__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.shipbox__list a {
  display: grid; grid-template-rows: auto 1fr auto auto; gap: 6px; text-decoration: none; height: 100%;
  border: 2px solid var(--wine); padding: 0 0 14px; color: var(--ink); background: var(--snow); overflow: hidden;
}
.shipbox__list img { width: 100%; aspect-ratio: 234 / 201; object-fit: cover; margin-bottom: 6px; transition: transform .5s; }
.shipbox__list a.is-glow img, .shipbox__list a:hover img { transform: scale(1.06); }
.shipbox__name { font-family: var(--f-action); font-weight: 500; font-size: 17px; line-height: 1.2; padding: 0 14px; }
.shipbox__list b { font-family: var(--f-display); font-weight: 400; font-size: 26px; color: var(--raspberry); padding: 0 14px; }
.shipbox__go { font-family: var(--f-action); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--wine); padding: 0 14px; }
.shipbox__list a:hover { background: var(--sprinkle); }
@media (max-width: 1000px) { .shipbox__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .shipbox__list { grid-template-columns: repeat(2, 1fr); } }
.shipbox__fine { margin-top: 14px; font-size: 14.5px; color: color-mix(in srgb, var(--ink) 80%, transparent); }

/* follow us */
.follow { background: var(--raspberry); color: var(--snow); text-align: center; padding: clamp(56px, 7vw, 96px) var(--pad); display: grid; justify-items: center; gap: 16px; }
.follow .display { font-size: clamp(36px, 5vw, 72px); }
.follow p { max-width: 34em; font-size: 18px; }
.follow__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 10px; }
.follow__btn {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; text-align: left;
  background: var(--snow); color: var(--ink); padding: 14px 22px 14px 16px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--wine);
  font-family: var(--f-action); font-weight: 600; font-size: 20px; text-transform: uppercase; line-height: 1.1;
}
.follow__btn small { display: block; font-weight: 400; font-size: 14px; text-transform: none; color: var(--wine); }
.follow__btn svg { width: 34px; height: 34px; fill: var(--raspberry); }
.follow__btn:hover { background: var(--sprinkle); }

@media (max-width: 1000px) {
  .forty { grid-template-columns: 1fr; }
  .hol-grid { grid-template-columns: repeat(2, 1fr); }
  .cookieday { grid-template-columns: auto 1fr; }
  .cookieday .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 620px) {
  .forty__facts { grid-template-columns: 1fr; }
  .forty__facts li + li { border-left: 0; border-top: 3px solid var(--wine); }
  .hol-grid { grid-template-columns: 1fr; }
  .cookieday { grid-template-columns: 1fr; }
}


/* =========================== TYPED HEADLINES =========================== */
.tw { opacity: 0; }
.display span.tw { display: inline; }
.display span.tw-caret { display: inline-block; }
.tw.on { opacity: 1; animation: twPop .22s ease-out; }
@keyframes twPop { from { opacity: 0; filter: blur(3px); } }
.tw-caret { display: inline-block; width: .07em; height: .82em; margin-left: .04em; background: var(--sprinkle); vertical-align: -.04em; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.forty__title {
  text-shadow: .06em .06em 0 var(--wine), 0 0 .35em rgba(255, 196, 70, .55);
  animation: titleGlow 2.6s ease-in-out infinite alternate;
}
@keyframes titleGlow {
  from { text-shadow: .06em .06em 0 var(--wine), 0 0 .2em rgba(255, 196, 70, .25); }
  to   { text-shadow: .06em .06em 0 var(--wine), 0 0 .6em rgba(255, 186, 50, .85); }
}
.forty__badge { background: var(--snow) !important; animation: badgeGlow 2.4s ease-in-out infinite alternate; }
.forty__badge img { width: 84% !important; }
@keyframes badgeGlow {
  from { box-shadow: 10px 10px 0 var(--raspberry), 0 0 0 0 rgba(255, 196, 60, .0); }
  to   { box-shadow: 10px 10px 0 var(--raspberry), 0 0 46px 10px rgba(255, 190, 50, .75); }
}

/* free-shipping boxes take turns lighting up */
.shipbox__list a { position: relative; transition: background-color .35s, box-shadow .35s, transform .35s; }
.shipbox__list a.is-glow { background: var(--sprinkle); transform: translateY(-3px); box-shadow: 0 0 0 3px var(--sprinkle), 0 0 28px 6px rgba(255, 196, 40, .8); }

/* deconstruct: particles and a glossy shine across the layers */
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx--back { z-index: 0; }
.sandwich { z-index: 1; }
.fx--front { z-index: 2; }
.layer-shine {
  pointer-events: none; opacity: var(--shine-o, 0);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  background: linear-gradient(105deg, transparent 44%, rgba(255, 248, 235, .18) 49%, rgba(255, 240, 210, .08) 53%, transparent 58%);
  background-size: 320% 100%; background-position: var(--shine-x, 100%) 0; mix-blend-mode: screen;
}


/* =========================== HOLIDAY SKITS =========================== */
.skit { position: fixed; inset: 0; z-index: 31; pointer-events: none; overflow: hidden; }
.skit > * { position: absolute; }
.sprite { position: absolute; }
.sprite .buddy { display: block; width: 100%; height: auto; }
.sprite .sprite__acc { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; }
.sled-wrap svg, .deer-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.deer__bulb { animation: bulb .7s steps(1) infinite alternate; filter: drop-shadow(0 0 4px currentColor); }
@keyframes bulb { 50% { opacity: .25; } }
.deer__leg { transform-box: fill-box; transform-origin: 50% 0; animation: gallop .32s ease-in-out infinite alternate; }
.deer__leg--front { animation-delay: -.16s; }
@keyframes gallop { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
.deer-wrap svg { animation: deerBob .32s ease-in-out infinite alternate; }
@keyframes deerBob { to { transform: translateY(-6px); } }
.snowball { width: 20px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 40%, #d6e6f5 68%, #9fbad4); border: 3px solid #2a1712; box-shadow: 0 0 12px rgba(120, 170, 220, .7); opacity: 0; }
.skit__bubble { position: absolute; z-index: 2; white-space: nowrap; }
.dock.is-skit .dock__bubble { opacity: 0 !important; }
.dock.in-box .dock__buddy { visibility: hidden; }
.skit__clip { position: absolute; overflow: hidden; }
.skit__clip .sprite { position: absolute; }
.skit__bubble--ride { left: 30%; bottom: 100%; margin-bottom: 8px; }


/* eGift cards */
.giftcard {
  position: relative; display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  margin-top: clamp(36px, 5vw, 60px); padding: clamp(22px, 3vw, 40px); background: var(--wine); border: 4px solid var(--sprinkle); box-shadow: 10px 10px 0 var(--raspberry);
}
.giftcard__card {
  position: relative; display: grid; place-items: center; aspect-ratio: 1.6; overflow: hidden;
  background: #fff; border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 3px var(--sprinkle);
  transform: rotate(-4deg); animation: cardFloat 4s ease-in-out infinite alternate;
}
.giftcard__card img { width: 62%; }
.giftcard__card::after {
  content: ""; position: absolute; inset: -40%; transform: translateX(-60%) rotate(20deg);
  background: linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%);
  animation: cardShine 3.6s ease-in-out infinite;
}
.giftcard__label { position: absolute; right: 14px; bottom: 10px; font-family: var(--f-action); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--raspberry); }
@keyframes cardFloat { to { transform: rotate(3deg) translateY(-8px); } }
@keyframes cardShine { 0%, 55% { transform: translateX(-60%) rotate(20deg); } 100% { transform: translateX(60%) rotate(20deg); } }
.giftcard__copy { display: grid; gap: 14px; justify-items: start; }
.giftcard__copy h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 3vw, 42px); line-height: .95; color: var(--snow); text-shadow: .06em .06em 0 var(--raspberry); }
.giftcard__copy p { max-width: 38em; font-size: 17px; line-height: 1.6; color: var(--snow); }
@media (max-width: 760px) { .giftcard { grid-template-columns: 1fr; } .giftcard__card { max-width: 320px; } }


/* the cookie's thickness: a darker edge shows on the side swinging away */
/* a soft shadow that grows as each layer lifts away from the one below */
.layer:not(.layer-shine):not(.layer--bits) {
  filter: drop-shadow(0 calc(var(--shadow, 0) * 26px) calc(var(--shadow, 0) * 22px) rgba(0, 0, 0, calc(var(--shadow, 0) * .55)));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .build { height: auto; }
  .build__stage { position: relative; height: auto; min-height: 100vh; }
  .callout, .build__cta, .box, .toast, .dock { transition: none; }
  .giftcard__card, .giftcard__card::after, .forty__title, .forty__badge, .snow i, .hero__panel--tray img, .hero__warmth, .steam i, .intro__glow, .reel__burst, .truck__hand, .status::before, .buddy__eye, .way--doordash .way__icon svg, .roller.is-stopped .buddy__arm--right, .dock.is-pointing .buddy__arm--right { animation: none; }
}
