/* DeNoble Bakes */

:root {
  --cocoa: #3d1b16;
  --cocoa-2: #5a2a22;
  --crust: #c4812c;
  --gold: #e9b867;
  --butter: #f4e4c1;
  --cream: #fbf6ee;
  --paper: #fffdf9;
  --tomato: #c8452c;
  --leaf: #6f7a4b;
  --ink: #2b1310;
  --muted: #7a6158;
  --line: #e8dccb;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Bricolage Grotesque", system-ui, sans-serif;

  --r: 18px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--cocoa); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- small parts ---------- */
.eyebrow {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--crust);
  margin-bottom: 1.2rem;
}
.eyebrow--light { color: var(--gold); }
.num { font: 600 .9rem/1 var(--sans); color: var(--tomato); letter-spacing: .1em; margin: 0 0 .6rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 999px; border: 1.5px solid var(--cocoa);
  font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1;
  transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--dark { background: var(--cocoa); color: var(--cream); box-shadow: 0 6px 0 -2px var(--crust); }
.btn--dark:hover { box-shadow: 0 9px 0 -2px var(--crust); }
.btn--line { background: transparent; color: var(--cocoa); }
.btn--line:hover { background: var(--cocoa); color: var(--cream); }
.btn--butter { background: var(--gold); border-color: var(--gold); color: var(--cocoa); }
.btn--butter:hover { background: var(--butter); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: .25em .6em; border-radius: 6px; letter-spacing: .02em; }
.tag--sub { background: var(--leaf); color: #fff; }
.tag--once { background: var(--butter); color: var(--cocoa); }

.section-head { display: grid; grid-template-columns: auto 1fr; column-gap: 1.2rem; align-items: end; margin-bottom: 2.4rem; }
.section-head .num { grid-column: 1 / -1; }
.section-head h2 { grid-column: 1; }
.section-head__note { grid-column: 2; justify-self: end; max-width: 34ch; color: var(--muted); margin: 0; text-align: right; }

/* ---------- inner pages ---------- */
.page-title { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -.02em; line-height: .98; }
.trade h1.page-title, .story h1.page-title { font-weight: 600; }
main > section:first-child:not(.hero) { padding-top: clamp(36px, 6vw, 72px); }
main > .trade:first-child, main > .story:first-child { margin-top: 0; }
main > .story:first-child .story__intro { padding-top: 0; }

/* ---------- notice + nav ---------- */
.notice { background: var(--cocoa); color: var(--butter); text-align: center; font-size: .85rem; padding: .55rem var(--gutter); }
.notice p { margin: 0; }
.notice a { color: var(--gold); text-underline-offset: 3px; }

.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem var(--gutter);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.nav__brand img { border-radius: 50%; border: 1px solid var(--line); }
.nav__brand span { font: 600 1.35rem/1 var(--serif); }
.nav__brand em { font-style: italic; font-weight: 400; color: var(--crust); margin-left: .15em; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { text-decoration: none; font-weight: 500; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--tomato); transition: right .3s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { right: 0; }
.nav__links a[aria-current="page"] { color: var(--crust); }
.nav__cart {
  position: relative; display: flex; align-items: center; gap: .45rem;
  background: var(--paper); border: 1.5px solid var(--cocoa); border-radius: 999px; padding: .5rem .95rem; cursor: pointer; font-weight: 600;
}
.nav__cart svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.nav__count {
  position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 999px; background: var(--tomato); color: #fff; font-size: .75rem;
}
.nav__count[hidden] { display: none; }
.nav__count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.nav__burger { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--cocoa); transition: transform .3s var(--ease), top .3s; }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); font-weight: 800; letter-spacing: -.025em; line-height: .95; }
.scribble { position: relative; white-space: nowrap; font-style: italic; font-weight: 400; color: var(--crust); }
.scribble svg { position: absolute; left: 0; bottom: -.12em; width: 100%; height: .28em; overflow: visible; }
.scribble path { fill: none; stroke: var(--tomato); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.2s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lede { font-size: 1.18rem; max-width: 46ch; margin: 1.6rem 0 2rem; color: #4b2c26; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__facts { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: .92rem; color: var(--muted); }
.hero__facts b { display: block; font: 600 1.25rem/1.2 var(--serif); color: var(--cocoa); }

.hero__art { position: relative; aspect-ratio: 5 / 6; }
.hero__video {
  position: absolute; margin: 0; right: 0; top: 0; width: 64%; height: 86%;
  border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--butter);
  box-shadow: 0 30px 60px -30px rgba(61, 27, 22, .45);
}
.hero__video video { width: 100%; height: 100%; object-fit: cover; }
.hero__photo {
  position: absolute; margin: 0; left: 0; bottom: 0; width: 50%; aspect-ratio: 4 / 5;
  border-radius: 24px; overflow: hidden; border: 8px solid var(--paper); transform: rotate(-4deg);
  box-shadow: 0 24px 40px -24px rgba(61, 27, 22, .55);
  transition: transform .6s var(--ease);
}
.hero__photo:hover { transform: rotate(-1deg) scale(1.02); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.stamp { position: absolute; left: 6%; top: 16%; width: 124px; height: 124px; display: grid; place-items: center; }
.stamp svg { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.stamp text { font: 600 9.6px/1 var(--sans); letter-spacing: .2em; fill: var(--cocoa); }
.stamp img { width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__caption { position: absolute; right: 2%; bottom: 2%; margin: 0; font: italic 400 .95rem/1.2 var(--serif); color: var(--muted); max-width: 16ch; text-align: right; }

/* ---------- ticker ---------- */
.ticker { background: var(--tomato); color: var(--cream); overflow: hidden; padding: 1rem 0; transform: rotate(-1.2deg); margin: 0 -2%; }
.ticker__track { display: flex; gap: 1.6rem; width: max-content; animation: tick 34s linear infinite; font: italic 400 clamp(1.4rem, 2.6vw, 2.1rem)/1 var(--serif); white-space: nowrap; align-items: center; }
.ticker i { font-style: normal; color: var(--gold); font-size: .8em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- menu ---------- */
.menu, .how, .builder, .faq { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.filters button:hover { border-color: var(--cocoa); }
.filters button[aria-selected="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--cream); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.4rem; }
.product {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(61, 27, 22, .5); }
.product.is-hidden { display: none; }
.product__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--butter); }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product:hover .product__img img { transform: scale(1.05); }
.product__tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.product__body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.product__title { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.product h3 { font-size: 1.4rem; }
.product__price { font: 600 1.1rem/1 var(--sans); color: var(--crust); white-space: nowrap; }
.product__desc { color: var(--muted); font-size: .95rem; margin: 0; }
.product__opts { display: flex; flex-wrap: wrap; gap: .35rem; }
.opt {
  border: 1.5px solid var(--line); background: var(--cream); border-radius: 8px; padding: .3rem .65rem; font-size: .85rem; cursor: pointer;
}
.opt[aria-pressed="true"] { border-color: var(--cocoa); background: var(--cocoa); color: var(--cream); }
.product__packs { display: flex; flex-wrap: wrap; gap: .35rem; }
.pack {
  border: 1.5px dashed var(--crust); background: transparent; color: var(--cocoa); border-radius: 8px;
  padding: .3rem .6rem; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .2s;
}
.pack:hover { background: var(--butter); }
.product__min { margin: 0; font-size: .8rem; color: var(--muted); }
.sub-item__price small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); }
.product__foot { margin-top: auto; padding-top: .4rem; display: flex; gap: .6rem; align-items: center; }
.product__foot .btn { flex: 1; padding: .75em 1em; }

.linkish {
  align-self: flex-start; border: 0; background: none; padding: .2rem 0; cursor: pointer;
  font-size: .88rem; font-weight: 600; color: var(--leaf); text-decoration: underline; text-underline-offset: 3px;
}
.linkish:hover { color: var(--cocoa); }

/* illustrated tile for products without a photo yet */
.cake-art { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #fff6e3, var(--butter)); }
.cake-art svg { width: 62%; height: auto; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--cocoa); border-radius: 999px; overflow: hidden; background: var(--paper); }
.stepper button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 1.15rem; line-height: 1; }
.stepper button:hover { background: var(--butter); }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; }

/* ---------- chin chin feature ---------- */
.chinchin {
  margin-top: clamp(80px, 10vw, 140px);
  background: var(--cocoa); color: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(56px, 8vw, 110px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  position: relative; overflow: hidden;
}
.chinchin h2 { color: var(--butter); margin-bottom: 1rem; }
.chinchin p { max-width: 44ch; color: #e9d8cf; }
.flavours { display: flex; gap: .5rem; margin: 1.6rem 0 .8rem; flex-wrap: wrap; }
.flavour {
  border: 1.5px solid color-mix(in srgb, var(--c) 70%, transparent); background: transparent; color: var(--cream);
  padding: .6rem 1.1rem; border-radius: 999px; cursor: pointer; font-weight: 600; position: relative; padding-left: 2.2rem;
}
.flavour::before { content: ""; position: absolute; left: .75rem; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--c); }
.flavour.is-active { background: var(--c); color: var(--cocoa); }
.flavour.is-active::before { background: var(--cocoa); }
.flavour__note { min-height: 3em; font-style: italic; font-family: var(--serif); font-size: 1.1rem; }
.chinchin__art { position: relative; aspect-ratio: 1 / 1; }
.pouch {
  position: absolute; width: 52%; left: 4%; top: 0; transform: rotate(-6deg);
  filter: drop-shadow(0 26px 22px rgba(0,0,0,.45)); transition: transform .5s var(--ease), opacity .25s;
}
.pouch.is-swapping { opacity: 0; transform: rotate(-12deg) translateY(10px); }
.pouches-real { position: absolute; width: 60%; right: 0; bottom: 4%; border-radius: 14px; border: 6px solid var(--cream); transform: rotate(4deg); }

/* ---------- how ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1.5px solid var(--cocoa); }
.steps li { padding: 1.8rem 1.6rem 0 0; position: relative; }
.steps li + li { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.steps__n { font: italic 400 4.2rem/1 var(--serif); color: var(--gold); display: block; margin-bottom: .6rem; }
.steps h3 { font-size: 1.6rem; margin-bottom: .6rem; }
.steps p { color: var(--muted); }

/* ---------- builder ---------- */
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.preset {
  text-align: left; border: 1.5px solid var(--line); background: var(--paper); border-radius: var(--r); padding: 1.1rem 1.2rem 1.2rem; cursor: pointer;
  transition: border-color .2s, transform .3s var(--ease), background .2s; position: relative;
}
.preset:hover { transform: translateY(-3px); border-color: var(--cocoa); }
.preset[aria-pressed="true"] { border-color: var(--cocoa); background: var(--butter); }
.preset[aria-pressed="true"]::after { content: "Selected"; position: absolute; right: 12px; top: 12px; font-size: .7rem; font-weight: 600; background: var(--cocoa); color: var(--cream); border-radius: 6px; padding: .2em .5em; }
.preset b { display: block; font: 600 1.25rem/1.15 var(--serif); margin-bottom: .35rem; }
.preset span { font-size: .88rem; color: var(--muted); display: block; }
.preset small { display: block; margin-top: .7rem; font-weight: 600; color: var(--crust); }

.builder__photo { position: relative; margin: 0 0 2rem; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 40px -28px rgba(61, 27, 22, .6); }
.builder__photo img { display: block; width: 100%; height: clamp(200px, 32vw, 360px); object-fit: cover; object-position: center 45%; }
.builder__photo figcaption {
  position: absolute; left: 1rem; bottom: 1rem; background: var(--cream); color: var(--cocoa);
  padding: .45rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.cart img[src$=".webp"], .sub-item__thumb[src$=".webp"], .order-card__thumb[src$=".webp"] { object-fit: contain; background: var(--butter); }
.product__img img.is-pouch { object-fit: contain; padding: .9rem; filter: drop-shadow(0 12px 12px rgba(61, 27, 22, .3)); }
.product__img img.is-swapping { opacity: 0; }
.product__img img { transition: transform .7s var(--ease), opacity .2s; }
.builder__grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.panel { border: 0; padding: 0; margin: 0 0 2.2rem; }
.panel legend { font: 600 1.5rem/1 var(--serif); margin-bottom: 1rem; display: flex; align-items: center; gap: .7rem; padding: 0; }
.panel legend span { width: 30px; height: 30px; border-radius: 50%; background: var(--cocoa); color: var(--cream); font: 600 .9rem/30px var(--sans); text-align: center; }

.sub-items { display: grid; gap: .5rem; }
.sub-group { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--crust); font-weight: 600; margin: 1rem 0 .2rem; }
.sub-group:first-child { margin-top: 0; }
.sub-item {
  display: grid; grid-template-columns: 56px 1fr auto auto; gap: 1rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: .55rem .75rem .55rem .55rem;
  transition: border-color .2s, background .2s;
}
.sub-item.has-qty { border-color: var(--cocoa); background: #fff8ea; }
.sub-item__thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--butter); }
.sub-item__thumb.is-art { display: grid; place-items: center; }
.sub-item__thumb.is-art svg { width: 70%; }
.sub-item__name { font-weight: 600; line-height: 1.25; }
.sub-item__name small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.sub-item__price { color: var(--crust); font-weight: 600; font-size: .95rem; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.segmented label, .toggle label, .chips label { cursor: pointer; }
.segmented label, .toggle label, .chips label { position: relative; }
.field .segmented input, .field .toggle input, .field .chips input,
.segmented input, .toggle input, .chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.segmented span {
  display: block; border: 1.5px solid var(--line); border-radius: 14px; padding: .9rem 1rem; background: var(--paper);
  transition: border-color .2s, background .2s;
}
.segmented b { display: block; font: 600 1.15rem/1.1 var(--serif); }
.segmented small { color: var(--muted); }
.segmented input:checked + span { border-color: var(--cocoa); background: var(--butter); }
.segmented input:focus-visible + span, .toggle input:focus-visible + span, .chips input:focus-visible + span { outline: 3px solid var(--tomato); outline-offset: 2px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field__label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; padding: .7rem .85rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cocoa); outline: none; }
.field.is-off { display: none; }
.chips, .toggle { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips span, .toggle span {
  display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: .55rem 1rem; background: var(--paper); font-weight: 500;
}
.chips input:checked + span, .toggle input:checked + span { background: var(--cocoa); color: var(--cream); border-color: var(--cocoa); }

.summary { position: sticky; top: 92px; }
.summary__card {
  background: var(--paper); border: 1.5px solid var(--cocoa); border-radius: 22px; padding: 1.4rem;
  box-shadow: 10px 10px 0 var(--gold);
}
.summary__kicker { font: 600 1.6rem/1 var(--serif); margin-bottom: 1rem; }
.summary__items { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; font-size: .95rem; min-height: 1.5rem; }
.summary__items li { display: flex; justify-content: space-between; gap: 1rem; }
.summary__items li.is-empty { color: var(--muted); font-style: italic; }
.summary__items li.pop { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateX(-6px); } }
.summary__totals { margin: 0 0 1rem; border-top: 1px dashed var(--line); padding-top: .8rem; display: grid; gap: .3rem; }
.summary__totals div { display: flex; justify-content: space-between; }
.summary__totals dt { color: var(--muted); }
.summary__totals dd { margin: 0; font-weight: 600; }
.summary__totals .save dd { color: var(--leaf); }
.summary__totals .total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .6rem; }
.summary__totals .total dt { color: var(--ink); font-weight: 600; }
.summary__totals .total dd { font: 800 1.6rem/1 var(--serif); }
.summary__cadence { font-size: .92rem; color: var(--muted); margin-bottom: .8rem; }
.summary__dates { background: var(--cream); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }
.summary__dates p { margin: 0 0 .4rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--crust); }
.summary__dates ol { margin: 0; padding-left: 1.2rem; font-size: .92rem; display: grid; gap: .15rem; }
.summary__warn { background: #fbe4dc; color: #8a2b17; border-radius: 10px; padding: .55rem .8rem; font-size: .88rem; }
.summary__small { font-size: .8rem; color: var(--muted); text-align: center; margin: .7rem 0 0; }

/* ---------- story ---------- */
.story { margin-top: clamp(80px, 10vw, 140px); background: var(--butter); padding: clamp(56px, 8vw, 110px) 0; }
.story__intro {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: 2.5rem; align-items: end;
}
.story__intro .num { grid-column: 1 / -1; margin-bottom: -1.6rem; }
.story h1 em, .story h2 em { font-weight: 400; color: var(--crust); }
.story__text { color: #4b2c26; }
.story__baker { margin: 0; border-radius: 999px 999px 18px 18px; overflow: hidden; aspect-ratio: 3 / 4; }
.story__baker img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

.process {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 3rem max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 1rem;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: thin; scrollbar-color: var(--cocoa) transparent;
}
.process figure { flex: 0 0 clamp(220px, 24vw, 300px); margin: 0; scroll-snap-align: start; }
.process img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; }
.process figure:nth-child(even) { margin-top: 2.4rem; }
.process figcaption { margin-top: .7rem; font-size: .92rem; color: #4b2c26; }
.process figcaption b { display: block; font: 600 1.15rem/1.2 var(--serif); color: var(--cocoa); }

/* ---------- review ---------- */
.review {
  max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 0;
  display: grid; grid-template-columns: .5fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.review__shot { margin: 0; transform: rotate(-3deg); border-radius: 26px; overflow: hidden; border: 8px solid var(--ink); max-width: 300px; justify-self: center; box-shadow: 0 30px 50px -30px rgba(0,0,0,.6); }
.review blockquote { margin: 0; }
.review blockquote p { font: italic 400 clamp(2rem, 4.4vw, 3.6rem)/1.08 var(--serif); letter-spacing: -.015em; }
.review blockquote span { color: var(--tomato); font-style: normal; font-weight: 800; }
.review footer { color: var(--muted); }

/* ---------- parties ---------- */
.parties {
  max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.parties__img { position: relative; aspect-ratio: 1 / 1; }
.parties__img img { position: absolute; border-radius: 18px; object-fit: cover; box-shadow: 0 24px 40px -26px rgba(61,27,22,.6); }
.parties__img img:first-child { width: 58%; height: 94%; left: 0; top: 0; }
.parties__img img:last-child { width: 48%; height: 66%; right: 0; bottom: 0; border: 7px solid var(--cream); }
.parties h1, .parties h2 { margin-bottom: 1rem; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 2rem; display: grid; gap: .5rem; }
.ticks li { padding-left: 1.9rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.1rem; height: .6rem; border-left: 2.5px solid var(--tomato); border-bottom: 2.5px solid var(--tomato); transform: rotate(-45deg); }

/* ---------- home: three ways to order ---------- */
.ways { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.ways__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.way {
  display: flex; flex-direction: column; text-decoration: none; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.way:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(61, 27, 22, .5); }
.way img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; transition: transform .7s var(--ease); }
.way:hover img { transform: scale(1.04); }
.way__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem 1.3rem 1.4rem; flex: 1; }
.way__body b { font: 600 1.55rem/1.1 var(--serif); }
.way__body > span { color: var(--muted); font-size: .95rem; flex: 1; }
.way__body i { font-style: normal; font-weight: 600; color: var(--tomato); }
.way__body i::after { content: " →"; display: inline-block; transition: transform .3s var(--ease); }
.way:hover .way__body i::after { transform: translateX(4px); }

.band {
  max-width: var(--max); margin: clamp(64px, 9vw, 120px) auto 0; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
  background: var(--leaf); color: var(--cream); border-radius: calc(var(--r) + 6px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem;
  width: calc(100% - 2 * var(--gutter));
}
.band .eyebrow { margin-bottom: .6rem; color: var(--butter); }
.band h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }

.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }

/* ---------- stockists page ---------- */
.sx-hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--gutter) 0;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.sx-hero h1 em { font-weight: 400; color: var(--crust); }
.sx-hero .lede { margin: 1.4rem 0 1.8rem; }
.sx-hero__art { position: relative; aspect-ratio: 6 / 5; }
.sx-hero__shop {
  position: absolute; right: 0; top: 0; width: 88%; height: 78%; object-fit: cover;
  border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(61, 27, 22, .5);
}
.sx-hero__pouches {
  position: absolute; left: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 18px; border: 8px solid var(--paper); transform: rotate(-4deg);
  box-shadow: 0 24px 40px -24px rgba(61, 27, 22, .6); transition: transform .6s var(--ease);
}
.sx-hero__pouches:hover { transform: rotate(-1deg) scale(1.02); }
.sx-hero__tag {
  position: absolute; right: -1%; bottom: 16%; margin: 0; background: var(--tomato); box-shadow: 0 12px 24px -12px rgba(61, 27, 22, .6); color: var(--cream);
  font: 600 .95rem/1.2 var(--serif); padding: .8rem 1rem; border-radius: 14px; transform: rotate(3deg);
}

.sx-range, .sx-where { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.sx-range__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.sx-item { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.sx-item img, .sx-item__art { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--butter); transition: transform .6s var(--ease); }
.sx-item:hover img { transform: scale(1.03); }
.sx-item__art { display: grid; place-items: center; }
.sx-item__art svg { width: 62%; }
.sx-item figcaption { padding: .9rem 1rem 1.1rem; color: var(--muted); font-size: .92rem; }
.sx-item figcaption b { display: block; font: 600 1.2rem/1.2 var(--serif); color: var(--ink); margin-bottom: .2rem; }

.sx-where__grid { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 1.2rem; align-items: stretch; }
.sx-spot { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; min-height: 420px; background: var(--cocoa); }
.sx-spot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.sx-spot:hover img { transform: scale(1.04); }
.sx-spot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(43, 19, 16, .88) 0%, rgba(43, 19, 16, .2) 55%, transparent 75%); }
.sx-spot figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.3rem 1.3rem 1.4rem; color: #f1e4dc; font-size: .95rem; }
.sx-spot figcaption b { display: block; font: 600 1.5rem/1.1 var(--serif); color: var(--cream); margin-bottom: .35rem; }

/* own label */
.sx-label {
  max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.sx-label h2 em { font-weight: 400; color: var(--crust); }
.sx-label__copy > p:not(.eyebrow) { color: #4b2c26; max-width: 48ch; margin-top: 1rem; }
.sx-label__list { list-style: none; padding: 0; margin: 1.4rem 0 2rem; border-top: 1px solid var(--line); }
.sx-label__list li { padding: .8rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; color: var(--muted); }
.sx-label__list b { font: 600 1.1rem/1.3 var(--serif); color: var(--ink); }
.sx-label__art {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem;
  background: var(--butter); border-radius: calc(var(--r) + 8px); padding: clamp(1.2rem, 3vw, 2.4rem);
}
.sx-label__arrow { font: 400 2.4rem/1 var(--serif); color: var(--crust); }
.sx-pouch { margin: 0; text-align: center; }
.sx-pouch figcaption { margin-top: .7rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--crust); }
.sx-pouch img, .sx-pouch__face { width: 100%; aspect-ratio: 7 / 10; border-radius: 12px 12px 18px 18px; box-shadow: 0 22px 34px -22px rgba(61, 27, 22, .6); }
.sx-pouch--ours img { object-fit: contain; transform: rotate(-4deg); box-shadow: none; filter: drop-shadow(0 18px 18px rgba(61, 27, 22, .35)); }
.sx-item--pouch img { object-fit: contain; padding: 1rem 1rem .4rem; filter: drop-shadow(0 14px 14px rgba(61, 27, 22, .3)); }
.sx-pouch__face {
  background: var(--paper); border: 2px dashed var(--crust); transform: rotate(3deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: 1rem .6rem;
}
.sx-pouch__logo {
  width: 56px; height: 56px; border-radius: 50%; border: 2px dashed var(--muted); display: grid; place-items: center;
  font-size: .62rem; line-height: 1.1; color: var(--muted); text-align: center; margin-bottom: .3rem;
}
.sx-pouch__face b { font: italic 600 1.35rem/1.05 var(--serif); color: var(--cocoa); }
.sx-pouch__product { font: 800 1.25rem/1 var(--serif); letter-spacing: .04em; text-transform: uppercase; color: var(--tomato); }
.sx-pouch__flavour { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.sx-band {
  margin-top: clamp(80px, 10vw, 140px); min-height: clamp(240px, 34vw, 420px);
  display: grid; place-items: center; text-align: center; padding: 3rem var(--gutter);
  background: linear-gradient(rgba(43, 19, 16, .62), rgba(43, 19, 16, .62)), url("assets/img/stockists/shelves.jpg") center / cover;
}
.sx-band p { margin: 0; color: var(--cream); font: 600 clamp(2rem, 5vw, 4rem)/1.05 var(--serif); letter-spacing: -.01em; }
.sx-band em { font-weight: 400; color: var(--gold); }
.sx-band + .trade { margin-top: 0; }
.trade__list a { color: inherit; text-underline-offset: 3px; }

/* home: stockist band gets a shop photo */
.band--photo {
  background: linear-gradient(90deg, var(--leaf) 38%, rgba(111, 122, 75, .55) 70%, rgba(111, 122, 75, .2)), url("assets/img/stockists/aisle.jpg") right center / cover;
  min-height: 220px;
}

/* ---------- wholesale ---------- */
.trade {
  margin-top: clamp(80px, 10vw, 140px);
  background: var(--leaf); color: var(--cream);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: start;
  padding: clamp(56px, 8vw, 110px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.trade .num { color: var(--butter); }
.trade h1, .trade h2 { color: var(--cream); margin-bottom: 1rem; }
.trade h1 em { color: var(--gold); }
.trade__copy > p { max-width: 46ch; color: #eef0e2; }
.trade__list { list-style: none; padding: 0; margin: 1.8rem 0; border-top: 1px solid rgba(251,246,238,.3); }
.trade__list li { padding: .85rem 0; border-bottom: 1px solid rgba(251,246,238,.3); display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; }
.trade__list b { font: 600 1.15rem/1.3 var(--serif); color: var(--butter); }
.trade__who { font-size: .92rem; font-style: italic; }
.trade__form {
  background: var(--cream); color: var(--ink); border-radius: var(--r); padding: clamp(1.2rem, 3vw, 2rem);
  display: grid; gap: 1rem; box-shadow: 0 30px 50px -30px rgba(0,0,0,.45);
}
.trade__form .row { margin: 0; }
.trade__form .field__label small { font-weight: 400; }
.trade__form .chips span { padding: .45rem .85rem; font-size: .92rem; }
.trade__form .btn--butter { border-color: var(--cocoa); background: var(--cocoa); color: var(--cream); }
.trade__form .btn--butter:hover { background: var(--ink); }
.trade__kicker { font: 600 1.5rem/1 var(--serif); margin: 0; }
.trade__small { font-size: .82rem; color: var(--muted); margin: -.3rem 0 0; }
.trade__form .is-bad input, .trade__form input.is-bad { border-color: var(--tomato); }

/* ---------- faq ---------- */
.faq__list { border-top: 1.5px solid var(--cocoa); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 3rem 1.3rem 0; position: relative;
  font: 600 1.3rem/1.25 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font: 400 2rem/1 var(--sans); color: var(--crust); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: #4b2c26; max-width: 62ch; padding-bottom: 1.2rem; margin: 0; }

/* ---------- footer ---------- */
.footer { margin-top: clamp(80px, 10vw, 140px); background: var(--cocoa); color: var(--butter); padding: clamp(56px, 8vw, 100px) var(--gutter) 2rem; }
.footer__big { max-width: var(--max); margin: 0 auto 4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer__big p { margin: 0; font: italic 400 clamp(3rem, 9vw, 7.5rem)/.9 var(--serif); color: var(--gold); letter-spacing: -.03em; }
.footer__cols { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 2rem; border-top: 1px solid rgba(244, 228, 193, .2); padding-top: 2rem; }
.footer__cols h3 { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer__cols p { color: #e9d8cf; max-width: 34ch; }
.footer__cols a { text-underline-offset: 3px; }
.footer__logo { border-radius: 50%; margin-bottom: 1rem; }
.footer__legal { max-width: var(--max); margin: 2.5rem auto 0; font-size: .82rem; color: #b79d93; }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(43, 19, 16, .45); animation: fade .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  background: var(--cream); display: flex; flex-direction: column;
  animation: slide .4s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.6rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; }
.drawer__foot { padding: 1.1rem 1.4rem 1.3rem; border-top: 1px solid var(--line); background: var(--paper); }
.cart { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .8rem; }
.cart li { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; }
.cart img, .cart .is-art { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--butter); display: grid; place-items: center; }
.cart .is-art svg { width: 70%; }
.cart__name { font-weight: 600; line-height: 1.25; }
.cart__name small { display: block; color: var(--muted); font-weight: 400; }
.cart__right { display: grid; justify-items: end; gap: .3rem; }
.cart__right b { color: var(--crust); }
.cart__empty { text-align: center; padding: 3rem 0; color: var(--muted); }
.checkout { display: grid; gap: .9rem; border-top: 1px dashed var(--line); padding-top: 1.2rem; }
.checkout .row { margin: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--cream); padding: .8rem 1.2rem; border-radius: 999px; font-weight: 500; z-index: 80;
  transition: transform .4s var(--ease), opacity .3s, visibility .3s; max-width: calc(100% - 32px); text-align: center;
  opacity: 0; visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- hero chat box ---------- */
.hero__ask { margin-top: 1.6rem; max-width: 520px; }
.hero__ask label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .45rem; }
.hero__ask div {
  display: flex; align-items: center; gap: .4rem; background: var(--paper); border: 1.5px solid var(--cocoa);
  border-radius: 999px; padding: .3rem .3rem .3rem 1.1rem; box-shadow: 0 10px 30px -18px rgba(61,27,22,.5);
}
.hero__ask input { flex: 1; min-width: 0; border: 0; background: none; padding: .55rem 0; outline: none; }
.hero__ask button, .chat__send {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tomato); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: transform .2s var(--ease), background .2s;
}
.hero__ask button:hover, .chat__send:hover { transform: scale(1.06); background: var(--cocoa); }
.hero__ask svg, .chat__send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- chat ---------- */
.chat-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: flex; align-items: center; gap: .55rem; padding: .85rem 1.2rem .85rem 1rem;
  background: var(--cocoa); color: var(--cream); border: 0; border-radius: 999px; cursor: pointer; font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(43,19,16,.6); transition: transform .25s var(--ease), opacity .25s;
}
.chat-launch:hover { transform: translateY(-3px); }
.chat-launch svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linejoin: round; }
.chat-launch__dot { position: absolute; top: 8px; left: 30px; width: 9px; height: 9px; border-radius: 50%; background: #5fbf6b; border: 2px solid var(--cocoa); }
.chat-open .chat-launch { opacity: 0; pointer-events: none; }

.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(420px, calc(100vw - 40px)); height: min(680px, calc(100vh - 40px));
  display: flex; flex-direction: column; background: var(--cream); border: 1.5px solid var(--cocoa); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(43,19,16,.55); animation: chatIn .35s var(--ease);
}
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.chat__head { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; background: var(--cocoa); color: var(--cream); }
.chat__head img { border-radius: 50%; border: 2px solid var(--gold); }
.chat__head div { flex: 1; min-width: 0; }
.chat__head h2 { font-size: 1.15rem; color: var(--butter); }
.chat__head p { margin: 0; font-size: .8rem; color: #d9c3b8; }
.chat__head .icon-btn { background: transparent; border-color: rgba(244,228,193,.3); color: var(--cream); }
.chat__reset { border: 0; background: none; color: var(--gold); font-size: .8rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.chat__log { flex: 1; overflow-y: auto; padding: 1rem .9rem .5rem; display: flex; flex-direction: column; gap: .55rem; scroll-behavior: smooth; }
.msg { max-width: 86%; animation: pop .3s var(--ease); }
.msg p { margin: 0; padding: .65rem .9rem; border-radius: 18px; font-size: .96rem; line-height: 1.45; white-space: pre-wrap; }
.msg--bot { align-self: flex-start; }
.msg--bot p { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; }
.msg--me p { background: var(--cocoa); color: var(--cream); border-bottom-right-radius: 6px; }
.msg--typing { display: flex; gap: 4px; padding: .8rem .95rem; background: var(--paper); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--crust); animation: dot 1.1s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat__chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 .9rem .6rem; }
.chat__chips:empty { display: none; }
.chip { border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: .4rem .8rem; font-size: .85rem; cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--cocoa); }

.chat__form { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); background: var(--paper); }
.chat__form textarea {
  flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 20px; padding: .65rem .9rem; background: var(--cream);
  max-height: 140px; line-height: 1.4;
}
.chat__form textarea:focus { outline: none; border-color: var(--cocoa); }

.order-card {
  align-self: stretch; background: var(--paper); border: 1.5px solid var(--cocoa); border-radius: 18px; padding: .9rem; margin-top: .2rem;
  box-shadow: 6px 6px 0 var(--gold); animation: pop .35s var(--ease);
}
.order-card.is-ready { box-shadow: 6px 6px 0 var(--leaf); }
.order-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.order-card__kind { font: 600 1.1rem/1 var(--serif); }
.order-card__draft, .order-card__ok { font-size: .72rem; font-weight: 600; border-radius: 6px; padding: .2em .55em; }
.order-card__draft { background: var(--butter); color: var(--cocoa); }
.order-card__ok { background: var(--leaf); color: #fff; }
.order-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.order-card li { display: grid; grid-template-columns: 38px 1fr auto; gap: .6rem; align-items: center; font-size: .92rem; }
.order-card__thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: var(--butter); display: grid; place-items: center; }
.order-card__thumb svg { width: 80%; }
.order-card li small { display: block; color: var(--muted); font-size: .8rem; }
.order-card li b { color: var(--crust); }
.order-card__facts { display: flex; flex-wrap: wrap; gap: .3rem; margin: .7rem 0 0; }
.order-card__facts span { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; font-size: .8rem; }
.order-card dl { margin: .7rem 0 0; padding-top: .55rem; border-top: 1px dashed var(--line); display: grid; gap: .2rem; font-size: .9rem; }
.order-card dl div { display: flex; justify-content: space-between; }
.order-card dt { color: var(--muted); }
.order-card dd { margin: 0; font-weight: 600; }
.order-card dl .total dt { color: var(--ink); font-weight: 600; }
.order-card dl .total dd { font: 800 1.3rem/1 var(--serif); }
.order-card__actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: .5rem; margin-top: .8rem; }
.order-card__actions .btn { padding: .7em .8em; font-size: .92rem; }

/* voice */
.chat__mic, .hero__mic {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--cream); color: var(--cocoa);
  cursor: pointer; display: grid; place-items: center; position: relative; transition: background .2s, border-color .2s, color .2s;
}
.hero__mic { border-color: transparent; background: var(--butter); }
.chat__mic:hover, .hero__mic:hover { border-color: var(--cocoa); }
.chat__mic svg, .hero__mic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.chat__mic[hidden], .hero__mic[hidden] { display: none; }
.chat__mic.is-live { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.chat__mic.is-live::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--tomato);
  animation: ring 1.4s var(--ease) infinite;
}
@keyframes ring { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }

.voicebar {
  display: flex; align-items: center; gap: .7rem; margin: 0 .7rem .5rem; padding: .55rem .6rem .55rem .9rem;
  background: var(--cocoa); color: var(--cream); border-radius: 14px; font-size: .88rem;
}
.voicebar[hidden] { display: none; }
.voicebar__status { flex: 1; }
.voicebar__end { border: 1px solid rgba(244,228,193,.35); background: none; color: var(--butter); border-radius: 999px; padding: .3rem .75rem; cursor: pointer; font-size: .8rem; font-weight: 600; }
.voicebar__end:hover { background: rgba(244,228,193,.12); }
.voicebar__wave { display: flex; align-items: center; gap: 3px; height: 20px; }
.voicebar__wave i { width: 3px; height: 6px; border-radius: 2px; background: var(--gold); transition: height .2s; }
.voicebar[data-state="listening"] .voicebar__wave i { background: #ff8a70; animation: wave .9s ease-in-out infinite; }
.voicebar[data-state="speaking"] .voicebar__wave i { animation: wave 1.1s ease-in-out infinite; }
.voicebar[data-state="thinking"] .voicebar__wave i { animation: think 1s ease-in-out infinite; }
.voicebar__wave i:nth-child(2) { animation-delay: .1s !important; }
.voicebar__wave i:nth-child(3) { animation-delay: .2s !important; }
.voicebar__wave i:nth-child(4) { animation-delay: .3s !important; }
.voicebar__wave i:nth-child(5) { animation-delay: .4s !important; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 18px; } }
@keyframes think { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.btn.is-nudge { animation: nudge 1s var(--ease) 3; }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateY(-3px) scale(1.04); } 50% { transform: none; } }

@media (max-width: 560px) {
  .chat { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; }
  .chat-launch span:last-child { display: none; }
  .chat-launch { padding: 1rem; }
  .chat-launch__dot { left: 32px; top: 10px; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .builder__grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .presets { grid-template-columns: repeat(2, 1fr); }
  .story__intro { grid-template-columns: 1fr 1fr; }
  .story__baker { display: none; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 90px var(--gutter) 2rem; background: var(--cream);
    flex-direction: column; gap: 1.2rem; font: 600 1.8rem/1.1 var(--serif); z-index: -1;
    transform: translateY(-100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s .45s; border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .nav__burger { display: block; }
  .nav__cart span { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; width: 100%; justify-self: center; }
  .chinchin { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps li { padding: 1.4rem 0; }
  .review { grid-template-columns: 1fr; }
  .review__shot { max-width: 220px; }
  .parties { grid-template-columns: 1fr; }
  .ways__grid { grid-template-columns: 1fr; }
  .trade { grid-template-columns: 1fr; }
  .sx-hero { grid-template-columns: 1fr; }
  .sx-range__grid { grid-template-columns: repeat(2, 1fr); }
  .sx-where__grid { grid-template-columns: 1fr; }
  .sx-label { grid-template-columns: 1fr; }
  .sx-label__list li { grid-template-columns: 1fr; gap: .1rem; }
  .sx-spot { min-height: 320px; }
  .band--photo { background: linear-gradient(rgba(111, 122, 75, .9), rgba(111, 122, 75, .78)), url("assets/img/stockists/aisle.jpg") center / cover; }
  .story__intro { grid-template-columns: 1fr; gap: 1.4rem; }
  .story__intro .num { margin-bottom: 0; }
  .footer__cols { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-head__note { grid-column: 1; justify-self: start; text-align: left; margin-top: .8rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__facts { grid-template-columns: 1fr; }
  .presets { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .trade__list li { grid-template-columns: 1fr; gap: .1rem; }
  .sub-item { grid-template-columns: 48px 1fr auto; }
  .sub-item__thumb { width: 48px; height: 48px; }
  .sub-item__price { grid-column: 2; grid-row: 2; margin-top: -.5rem; font-size: .85rem; }
  .sub-item .stepper { grid-column: 3; grid-row: 1 / span 2; }
  .stamp { width: 96px; height: 96px; }
  .stamp img { width: 48px; height: 48px; }
  .notice { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .scribble path { stroke-dashoffset: 0; }
}

.msg--bot a { color: var(--tomato); font-weight: 600; text-underline-offset: 3px; }
.cart__note { margin: -.4rem 0 0; font-size: .85rem; color: var(--muted); }
.band__sub { margin: .5rem 0 0; color: var(--butter); font-size: 1.05rem; }

/* ---------- customer order page (order.html) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.op-head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); background: var(--paper); }
.op-head__menu { padding: .6em 1.1em; }
.op { max-width: 1040px; margin: 0 auto; padding: 2.4rem var(--gutter) 4rem; }
.op-loading { color: var(--muted); }
.op-title { font-size: clamp(2rem, 6vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.2rem; }
.op-pill { font: 600 .85rem/1 var(--sans); letter-spacing: 0; padding: .5em .9em; border-radius: 999px; background: var(--butter); color: var(--cocoa); }
.op-pill[data-status="paid"], .op-pill[data-status="active"], .op-pill[data-status="completed"], .op-pill[data-status="ready"] { background: var(--leaf); color: #fff; }
.op-pill[data-status="cancelled"], .op-pill[data-status="payment_failed"] { background: var(--tomato); color: #fff; }
.op-banner { background: var(--paper); border: 1.5px solid var(--gold); border-radius: 14px; padding: .9rem 1.1rem; margin-bottom: 1.4rem; }
.op-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.4rem; align-items: start; }
.op-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.op-h { font-size: 1.5rem; margin-bottom: 1rem; }
.op-facts { display: grid; gap: .5rem; margin: 0 0 1.2rem; }
.op-facts div { display: flex; justify-content: space-between; gap: 1rem; }
.op-facts dt { color: var(--muted); }
.op-facts dd { margin: 0; text-align: right; font-weight: 600; }
.op-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.op-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.op-items small { display: block; color: var(--muted); font-size: .85rem; }
.op-totals { margin: .8rem 0 1.2rem; display: grid; gap: .35rem; }
.op-totals div { display: flex; justify-content: space-between; }
.op-totals dd { margin: 0; }
.op-totals .total { font: 600 1.3rem/1.2 var(--serif); padding-top: .4rem; }
.op-actions { display: grid; gap: .6rem; }
.op-small { color: var(--muted); font-size: .88rem; margin: .7rem 0 0; }
.op-thread { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .7rem; max-height: 420px; overflow-y: auto; }
.op-msg { padding: .7rem .9rem; border-radius: 14px; background: var(--cream); max-width: 92%; }
.op-msg p { margin: .2rem 0 0; }
.op-msg__who { font-size: .78rem; color: var(--muted); }
.op-msg--customer { background: var(--butter); justify-self: end; }
.op-msg--bakery { background: var(--cream); border: 1px solid var(--line); }
.op-msg--empty { color: var(--muted); background: none; padding: 0; }
.op-send { display: grid; gap: .6rem; }
.op-send textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .8rem; background: var(--cream); resize: vertical; }
.op-send .btn { justify-self: end; }
@media (max-width: 760px) { .op-grid { grid-template-columns: 1fr; } }

/* ---------- checkout extras (cart and box builder) ---------- */
.checkout__review { background: var(--butter); border-radius: 12px; padding: .7rem .9rem; font-size: .9rem; margin: 0 0 .8rem; }
.checkout__errors { color: var(--tomato); font-size: .9rem; margin: .4rem 0 0; }

/* ---------- my account (account.html) ---------- */
.nav__account { font-weight: 600; }
.acc { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gutter) 5rem; }
.acc-loading { color: var(--muted); min-height: 40vh; }
.acc-auth { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.acc-auth .page-title { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1.4rem; }
.acc-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.acc-perks li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.acc-perks li::before { content: "\2713"; position: absolute; left: 0; color: var(--leaf); font-weight: 700; }
.acc-perks b { display: block; color: var(--ink); }
.acc-auth__box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; display: grid; gap: 1rem; }
.acc-switch { display: grid; grid-template-columns: 1fr 1fr; }
.acc-switch span { text-align: center; }
.acc-form { display: grid; gap: .9rem; }
.acc-form .row { margin: 0; }
.acc-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.acc-check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--cocoa); flex: none; }
.acc-small { font-size: .86rem; color: var(--muted); margin: 0; }
.acc-err { color: var(--tomato); margin: 0; font-size: .92rem; }
.acc-claim { background: var(--butter); border-radius: 10px; padding: .6rem .8rem; margin: 0; font-size: .92rem; }
.acc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.acc-head .page-title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.acc-head__btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.acc-alert { background: var(--butter); border-left: 4px solid var(--gold); border-radius: 10px; padding: .8rem 1rem; }
.acc-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.acc-offer { background: var(--cocoa); color: var(--cream); border-radius: var(--r); padding: 1.4rem; display: grid; gap: .6rem; align-content: start; }
.acc-offer .eyebrow { margin: 0; }
.acc-offer h2 { font-size: 1.6rem; }
.acc-offer p { margin: 0; }
.acc-offer__until { font-size: .85rem; opacity: .8; }
.acc-offer .btn { justify-self: start; margin-top: .4rem; }
.acc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; align-items: start; }
.acc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; margin-bottom: 1.4rem; display: grid; gap: .9rem; }
.acc-card h2 { font-size: 1.5rem; }
.acc-order { display: grid; gap: .3rem; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--cream); text-decoration: none; color: inherit; margin-bottom: .6rem; }
a.acc-order:hover { border-color: var(--crust); }
.acc-order__top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.acc-order__items { margin: 0; font-size: .95rem; }
.acc-order__meta { margin: 0; font-size: .84rem; color: var(--muted); }
.acc-order__btns { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .4rem; }
.acc-order__btns .btn { padding: .55em 1em; font-size: .88rem; }
.acc-btn--bad { color: var(--tomato); border-color: var(--tomato); }
.acc-link { font-size: .88rem; color: var(--cocoa-2); }
.acc-pill { font-size: .75rem; font-weight: 700; padding: .3em .7em; border-radius: 999px; background: var(--butter); color: var(--cocoa); white-space: nowrap; }
.acc-pill[data-tone="good"] { background: var(--leaf); color: #fff; }
.acc-pill[data-tone="bad"] { background: var(--tomato); color: #fff; }
.acc-empty { color: var(--muted); margin: 0; }
.op-save { margin-top: .8rem; }
@media (max-width: 860px) {
  .acc-auth, .acc-grid { grid-template-columns: 1fr; }
}

/* ---------- reviews, social links ---------- */
.footer__social { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.footer__social a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.footer__social a:hover { text-decoration: underline; }
.footer__social svg, .follow__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.reviews { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.rv { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.3rem; display: grid; gap: .6rem; align-content: start; }
.rv blockquote { margin: 0; font: 400 1.05rem/1.5 var(--serif); }
.rv figcaption { font-size: .86rem; color: var(--muted); }
.rv figcaption a { color: inherit; }
.stars-show { color: var(--gold); letter-spacing: .08em; font-size: 1.1rem; white-space: nowrap; }
.stars-show i { color: var(--line); font-style: normal; }
.follow { max-width: var(--max); margin: clamp(2.5rem, 6vw, 4.5rem) auto clamp(3rem, 7vw, 5rem); padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; }
.follow h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .6rem; }
.follow p { color: var(--muted); margin: 0; }
.follow .eyebrow { color: var(--crust); margin-bottom: .8rem; }
.follow__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.follow__link { display: grid; gap: .2rem; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.follow__link:hover { border-color: var(--cocoa); transform: translateY(-2px); }
.follow__link svg { width: 26px; height: 26px; margin-bottom: .4rem; color: var(--cocoa); }
.follow__link span { font-size: .85rem; color: var(--muted); }
/* star picker on the order page: 5 radio buttons shown right to left so hovering fills the stars before it */
.stars { border: 0; margin: 0 0 .6rem; padding: 0; display: inline-flex; flex-direction: row-reverse; gap: .15rem; justify-self: start; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2.2rem; line-height: 1; color: var(--line); cursor: pointer; transition: color .15s, transform .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--gold); }
.stars label:hover { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 3px solid var(--tomato); outline-offset: 2px; border-radius: 4px; }
.op-review { margin-top: 1.4rem; }
.op-review__form { display: grid; gap: .6rem; }
.op-review__form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .8rem; background: var(--cream); resize: vertical; }
.op-review__form .btn { justify-self: start; }
.op-social { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 0; }
.op-social .btn { padding: .6em 1.1em; }
@media (max-width: 860px) {
  .follow { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .follow__links { grid-template-columns: 1fr; }
}

/* ---------- site credit ---------- */
/* Kept on the left, with room underneath, so the floating "Order by chat" button never covers it */
.footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; padding-bottom: 3.5rem; }
.footer__credit a { color: var(--gold); text-underline-offset: 3px; }
.footer__credit a:hover { color: var(--cream); }

/* ---------- delivery address fields ---------- */
.field.addr { gap: .5rem; }
.addr__row { display: grid; grid-template-columns: 1.3fr 1fr; gap: .5rem; }
