/* Leaven House concept demo — ShiftLogic
   Palette is lifted from the place itself: white brick, the chalkboard menu,
   wood-trimmed windows, buttercream. */

@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../assets/fonts/caveat.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  --ink: #20242e;
  --ink-2: #2b303c;
  --ink-soft: #4b5160;
  --cream: #f7f1e7;
  --paper: #fffbf4;
  --line: #e6dccb;
  --gold: #c8853b;
  --gold-deep: #a9692a;
  --butter: #f2d9a6;
  --blush: #e9b7b0;
  --sage: #6f9468;
  --berry: #b5473c;
  --chalk: #f3efe6;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --r: 18px;
  --shadow: 0 1px 2px rgba(32, 36, 46, .06), 0 12px 32px -12px rgba(32, 36, 46, .22);
  --shadow-lift: 0 2px 4px rgba(32, 36, 46, .08), 0 28px 48px -18px rgba(32, 36, 46, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
  --banner-h: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  animation: page-in .7s var(--ease) both;
}
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
[hidden] { display: none !important; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--ink-soft); }
.fine { font-size: .8rem; color: var(--ink-soft); margin-top: .7rem; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -.02em; font-variation-settings: "opsz" 144; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font-size: 1.45rem; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; font-weight: 300; color: var(--gold-deep); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .9rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin-top: 1rem; text-wrap: pretty; }
.handnote { font-family: var(--hand); font-size: 1.35rem; line-height: 1.15; color: var(--ink-soft); }
.handnote.big { font-size: 2.1rem; color: var(--gold-deep); }
.stars { color: #e3a12c; letter-spacing: .12em; font-size: 1rem; }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 650; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { --bg: var(--ink); --fg: var(--cream); box-shadow: 0 10px 22px -12px rgba(32, 36, 46, .7); }
.btn-primary:hover { --bg: var(--gold-deep); box-shadow: 0 16px 28px -12px rgba(169, 105, 42, .7); }
.btn-cream { --bg: var(--cream); --fg: var(--ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); }
.btn-cream:hover { --bg: #fff; }
.btn-outline { border-color: rgba(255, 255, 255, .65); --fg: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, .08); }
.btn-outline:hover { background: rgba(255, 255, 255, .2); }
.btn-ghost { border-color: var(--line); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-link { padding-inline: .4rem; text-decoration: underline; text-underline-offset: 4px; }
.btn-sm { padding: .55rem .95rem; font-size: .92rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; pointer-events: none; }
.btn.is-busy [data-submit-label]::after { content: "…"; }

/* ---------- banner + header ---------- */
.demo-banner {
  background: var(--ink); color: var(--butter); text-align: center; font-size: .78rem; letter-spacing: .02em;
  min-height: var(--banner-h); display: grid; place-items: center; padding: .3rem 1rem; position: relative; z-index: 60;
}
.demo-banner strong { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(247, 241, 231, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(32, 36, 46, .5); background: rgba(247, 241, 231, .95); }
.header-row { display: flex; align-items: center; gap: 1.2rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand-mark { position: relative; width: 46px; height: 46px; flex: none; }
.brand-mark > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-rive { opacity: 0; transition: opacity .3s; }
.brand-mark.rive-on .logo-rive { opacity: 1; }
.brand-mark.rive-on .logo-svg { opacity: 0; }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { white-space: nowrap; font-family: var(--serif); font-size: 1.32rem; letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.brand-tag { white-space: nowrap; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: .2rem; }

.nav { display: flex; gap: 1.5rem; }
.nav a { white-space: nowrap; text-decoration: none; font-weight: 550; font-size: .95rem; position: relative; padding: .4rem 0; color: var(--ink-soft); transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-current { color: var(--ink); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: .55rem; }
.open-pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; color: var(--ink-soft); padding: .35rem .7rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); white-space: nowrap; }
.open-pill i { width: 8px; height: 8px; border-radius: 50%; background: #b9b3a6; }
.open-pill.is-open i { background: #3fa35b; box-shadow: 0 0 0 0 rgba(63, 163, 91, .6); animation: pulse 2s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 9px rgba(63, 163, 91, 0); } }
.btn-order { padding-left: .5rem; }
.btn-rive { width: 28px; height: 28px; margin: -6px 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh - var(--header-h) - var(--banner-h), 860px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-media { position: absolute; inset: -4% 0; z-index: -2; will-change: transform; }
.hero-media picture, .hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { animation: kenburns 18s ease-in-out infinite alternate; transform-origin: 60% 55%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(20, 22, 28, .82) 0%, rgba(20, 22, 28, .55) 42%, rgba(20, 22, 28, .12) 75%),
  linear-gradient(0deg, rgba(20, 22, 28, .75) 0%, rgba(20, 22, 28, 0) 38%); }
.hero-inner { padding-block: clamp(4rem, 12vh, 8rem) clamp(5.5rem, 12vh, 7.5rem); }
.hero-eyebrow { color: var(--butter); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.hero-eyebrow span + span::before { content: "·"; margin-right: 1.2rem; opacity: .6; }
.hero-title { font-size: clamp(2.7rem, 7.4vw, 6rem); font-weight: 350; max-width: 13ch; text-wrap: initial; }
.hero-title em { color: var(--butter); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; white-space: nowrap; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 50ch; margin-top: 1.4rem; color: rgba(255, 255, 255, .9); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-rating { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.6rem; text-decoration: none; font-size: .95rem; color: rgba(255, 255, 255, .92); }
.hero-rating:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.hero-eyebrow, .hero-sub, .hero-cta, .hero-rating { opacity: 0; animation: fade-up .9s var(--ease) forwards; }
.hero-eyebrow { animation-delay: .05s; } .hero-sub { animation-delay: .45s; } .hero-cta { animation-delay: .6s; } .hero-rating { animation-delay: .75s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-foot { position: absolute; left: 0; right: 0; bottom: 1.4rem; display: flex; justify-content: flex-end; align-items: center; gap: .8rem; pointer-events: none; }
.hero-foot > * { pointer-events: auto; }
.shot-caption { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--hand); font-size: 1.35rem; color: #fff; background: rgba(20, 22, 28, .45); backdrop-filter: blur(8px); padding: .25rem .9rem .3rem; border-radius: 999px; }
.shot-caption [data-shot-caption] { transition: opacity .35s, transform .35s var(--ease); display: inline-block; }
.shot-caption.is-swapping [data-shot-caption] { opacity: 0; transform: translateY(6px); }
.shot-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--butter); }
.video-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(20, 22, 28, .45); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); }
.video-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.video-toggle .i-play, .video-toggle.is-paused .i-pause { display: none; }
.video-toggle.is-paused .i-play { display: block; }

/* ---------- ticker ---------- */
.ticker { background: var(--gold); color: var(--ink); overflow: hidden; padding: .75rem 0; border-block: 1px solid rgba(32, 36, 46, .12); }
.ticker-track { display: flex; gap: 1.6rem; width: max-content; animation: ticker 40s linear infinite; font-family: var(--serif); font-style: italic; font-size: 1.15rem; white-space: nowrap; }
.ticker-track i { font-style: normal; font-size: .7rem; align-self: center; opacity: .7; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 760px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.arch { border-radius: 999px 999px var(--r) var(--r); overflow: hidden; }

/* ---------- order ---------- */
.order { background: var(--paper); }
.order-shell { background: var(--cream); border: 1px solid var(--line); border-radius: 28px; padding: clamp(.7rem, 2vw, 1.4rem); box-shadow: var(--shadow); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; padding: .35rem; background: var(--paper); border-radius: 20px; border: 1px solid var(--line); }
.tab { display: flex; align-items: center; gap: .7rem; text-align: left; padding: .7rem 1rem; border: 0; border-radius: 15px; background: transparent; cursor: pointer; transition: background-color .3s, color .3s, box-shadow .3s, transform .2s; }
.tab:hover { background: var(--cream); }
.tab.is-active { background: var(--ink); color: var(--cream); box-shadow: var(--shadow); }
.tab b { display: block; font-weight: 650; line-height: 1.2; }
.tab small { font-size: .78rem; opacity: .7; }
.tab-ico { font-size: 1.5rem; line-height: 1; }
.panel { padding: clamp(.9rem, 2vw, 1.4rem) clamp(.2rem, 1vw, .6rem) .4rem; }
.panel.is-active { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }

.pickup { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); align-items: start; }

/* the chalkboard */
.board { background: radial-gradient(120% 90% at 20% 0%, #323848 0%, var(--ink) 60%); color: var(--chalk); border-radius: 20px; padding: clamp(1.1rem, 2.6vw, 2rem); border: 10px solid #b08a5b; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4), inset 0 0 60px rgba(0, 0, 0, .35), var(--shadow); }
.board-head { text-align: center; margin-bottom: 1rem; }
.board-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: .18em; text-transform: uppercase; line-height: 1; transform: scaleY(1.25); transform-origin: bottom; }
.board-note { font-family: var(--hand); font-size: 1.15rem; opacity: .7; margin-top: .3rem; }
.board-cats { columns: 2 260px; column-gap: 1.6rem; }
.cat { break-inside: avoid; border: 1px solid rgba(243, 239, 230, .28); border-radius: 6px; padding: 1.2rem .9rem .6rem; margin: 1.1rem 0 .4rem; position: relative; }
.cat-name { position: absolute; top: -.95rem; left: 50%; transform: translateX(-50%) rotate(-2deg); background: var(--ink-2); padding: 0 .8rem; font-family: var(--hand); font-size: 1.7rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .4rem .6rem; padding: .28rem 0; }
.item-name { font-family: var(--hand); font-size: 1.42rem; line-height: 1.1; }
.item-price { font-family: var(--hand); font-size: 1.2rem; opacity: .75; margin-left: .5rem; }
.sizes { display: inline-flex; gap: 2px; margin-left: .5rem; vertical-align: middle; }
.sizes button { border: 1px solid rgba(243, 239, 230, .3); background: transparent; color: var(--chalk); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .16rem .42rem; border-radius: 6px; cursor: pointer; transition: background-color .2s, color .2s; }
.sizes button[aria-pressed="true"] { background: var(--chalk); color: var(--ink); }
.qty { display: inline-flex; align-items: center; gap: .15rem; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(243, 239, 230, .45); background: transparent; color: var(--chalk); font-size: 1.2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background-color .2s, color .2s, transform .2s var(--ease), border-color .2s; }
.qty button:hover { background: var(--chalk); color: var(--ink); transform: scale(1.08); }
.qty .q-minus, .qty output { display: none; }
.item.has-qty .q-minus, .item.has-qty output { display: grid; }
.item.has-qty .q-plus { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.qty output { min-width: 1.5rem; place-items: center; font-weight: 700; }
.item.bump .q-plus { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.board-foot { font-size: .86rem; opacity: .7; margin-top: 1.1rem; text-align: center; }

.bag { position: sticky; top: calc(var(--header-h) + 14px); }
.bag-inner { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 1.3rem; }
.bag-title { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.bag-count { background: var(--gold); color: var(--ink); font: 700 .85rem var(--sans); min-width: 1.6rem; height: 1.6rem; border-radius: 999px; display: grid; place-items: center; padding: 0 .4rem; }
.bag-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .97rem; animation: fade-up .35s var(--ease); }
.bag-list li span:first-child b { color: var(--gold-deep); margin-right: .3rem; }
.bag-empty { color: var(--ink-soft); font-size: .95rem; padding: .6rem 0 .2rem; }
.bag-total { display: flex; justify-content: space-between; align-items: baseline; padding: .8rem 0 .2rem; font-weight: 600; }
.bag-total small { font-weight: 400; color: var(--ink-soft); }
.bag-total strong { font-family: var(--serif); font-size: 1.5rem; }

.field { display: grid; gap: .3rem; margin-top: .85rem; font-size: .84rem; font-weight: 650; }
.field small { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea { width: 100%; padding: .78rem .85rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 1rem; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 3rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 133, 59, .2); }
.field .is-bad, .chips.is-bad { border-color: var(--berry); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-error { color: var(--berry); font-size: .9rem; font-weight: 600; margin-top: .8rem; }
.pickup .btn-block, .quote .btn, .pies .btn { margin-top: 1.1rem; }

.quote { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(1.2rem, 3vw, 2.6rem); align-items: start; padding: .4rem; }
.quote-photo img { border-radius: 999px 999px var(--r) var(--r); aspect-ratio: 3 / 4; object-fit: cover; box-shadow: var(--shadow); }
.quote-photo .handnote { margin-top: .8rem; text-align: center; }
.quote-fields h3 { margin-bottom: .3rem; }
.chips { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; border-radius: 12px; }
.chips legend { font-size: .84rem; font-weight: 650; margin-bottom: .45rem; width: 100%; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 550; font-size: .95rem; transition: all .2s var(--ease); }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: scale(1.04); }
.chips input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.pies { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2.4rem; padding: .4rem; align-items: start; }
.pies-intro { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: .2rem 2rem; align-items: end; }
.pies-intro .muted { grid-column: 1; }
.price-tag { grid-column: 2; grid-row: 1 / 3; font-family: var(--hand); font-size: 1.5rem; transform: rotate(-4deg); background: var(--butter); padding: .5rem 1.1rem; border-radius: 12px; }
.price-tag b { font-size: 2.2rem; }
.pie-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.1rem; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; margin-bottom: .6rem; transition: border-color .2s, transform .2s var(--ease); }
.pie-row.has-qty { border-color: var(--gold); }
.pie-row b { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.pie-row small { display: block; color: var(--ink-soft); font-size: .85rem; }
.pie-row .qty button { border-color: var(--line); color: var(--ink); }
.pie-row .qty button:hover { background: var(--ink); color: var(--cream); }
.pie-row .qty .q-minus, .pie-row .qty output { display: grid; }

.success { text-align: center; padding: clamp(1.5rem, 5vw, 3.5rem) 1rem 2rem; animation: panel-in .6s var(--ease); }
.success:focus { outline: 0; }
.success-art { position: relative; width: 160px; height: 160px; margin: 0 auto .6rem; }
.success-art > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.success-svg circle { stroke-dasharray: 290; stroke-dashoffset: 290; animation: draw .7s .1s var(--ease) forwards; }
.success-svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-art.rive-on .success-svg { display: none; }
.success h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.success-msg { color: var(--ink-soft); max-width: 46ch; margin: .6rem auto 0; }
.receipt { max-width: 420px; margin: 1.4rem auto 0; background: #fff; border: 1px dashed var(--ink-soft); border-radius: 14px; padding: 1rem 1.2rem; text-align: left; font-size: .95rem; }
.receipt div { display: flex; justify-content: space-between; gap: 1rem; padding: .22rem 0; }
.receipt .r-total { border-top: 1px dashed var(--line); margin-top: .4rem; padding-top: .55rem; font-weight: 700; }
.success-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.4rem; }

/* ---------- bakes ---------- */
.bake-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.4vw, 2rem); align-items: start; }
.bake:nth-child(2) { --d: .08s; margin-top: 2.5rem; } .bake:nth-child(3) { --d: .16s; } .bake:nth-child(4) { --d: .24s; }
.bake-img { aspect-ratio: 3 / 4; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.bake-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bake:hover .bake-img { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.bake:hover .bake-img img { transform: scale(1.07); }
.bake h3 { margin-top: 1.1rem; }
.bake p { color: var(--ink-soft); font-size: .98rem; margin-top: .3rem; }
.add-link { text-align: left; margin-top: .7rem; background: none; border: 0; padding: .3rem 0; font-weight: 650; color: var(--gold-deep); cursor: pointer; border-bottom: 2px solid var(--butter); transition: border-color .2s, color .2s; }
.add-link:hover { border-color: var(--gold); color: var(--ink); }
.add-link.is-added { color: var(--sage); border-color: var(--sage); }
.bake-text { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.4rem; margin-top: 2.5rem; }
.picks { margin: .8rem 0 1.4rem; }
.picks li { display: flex; justify-content: space-between; gap: .8rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.picks b { font-weight: 600; color: var(--gold-deep); white-space: nowrap; }

/* ---------- cakes ---------- */
.cakes { background: var(--ink); color: var(--cream); overflow: hidden; }
.cakes h2 em, .cakes .eyebrow { color: var(--butter); }
.cakes .lede { color: rgba(247, 241, 231, .78); }
.cakes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cakes-photos { position: relative; padding: 0 12% 12% 0; }
.cake-a img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.cake-b { position: absolute; right: 0; bottom: 0; width: 46%; border-radius: var(--r); overflow: hidden; border: 6px solid var(--ink); box-shadow: var(--shadow-lift); transform: rotate(3deg); transition: transform .6s var(--ease); }
.cakes-photos:hover .cake-b { transform: rotate(0) translateY(-6px); }
.cake-b img { aspect-ratio: 4 / 5; object-fit: cover; }
.stamp { position: absolute; left: -26px; bottom: 16%; width: 112px; height: 112px; background: var(--gold); color: var(--ink); border-radius: 50%; display: grid; place-items: center; }
.stamp svg { position: absolute; inset: 0; animation: spin 24s linear infinite; }
.stamp text { font: 700 10.5px var(--sans); letter-spacing: .12em; fill: currentColor; }
.stamp b { font-size: 1.6rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { counter-reset: s; margin: 1.8rem 0 2rem; display: grid; gap: 1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .9rem; }
.steps li::before { content: counter(s); grid-row: 1 / 3; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid var(--butter); color: var(--butter); display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; }
.steps span { color: rgba(247, 241, 231, .72); font-size: .97rem; }
.cakes .btn-primary { --bg: var(--cream); --fg: var(--ink); }
.cakes .btn-primary:hover { --bg: var(--butter); }

/* ---------- AI assistants ---------- */
.agents { background: var(--paper); }
.agents-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.agent-logos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.agent-logos li { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .9rem; }
.agent-how { margin-top: 1.6rem; display: grid; gap: .7rem; }
.agent-how li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .7rem; font-size: .98rem; color: var(--ink-soft); }
.agent-how li::before { content: "✓"; color: var(--sage); font-weight: 800; }
.agent-how b { color: var(--ink); }
.agent-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.chat { background: var(--ink); border-radius: 26px; padding: 1.1rem 1.1rem 1.3rem; box-shadow: var(--shadow-lift); color: var(--cream); max-width: 480px; margin-inline: auto; width: 100%; }
.chat-bar { display: flex; align-items: center; gap: .5rem; font-size: .8rem; opacity: .7; padding: .1rem .3rem .8rem; }
.chat-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3fa35b; }
.chat-log { display: grid; gap: .6rem; min-height: 330px; align-content: start; }
.msg { max-width: 88%; padding: .7rem .95rem; border-radius: 18px; font-size: .95rem; line-height: 1.45; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.msg.is-in { opacity: 1; transform: none; }
.msg-user { justify-self: end; background: var(--gold); color: var(--ink); border-bottom-right-radius: 6px; }
.msg-bot { background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .1); border-bottom-left-radius: 6px; }
.msg-tool { font: 500 .78rem ui-monospace, SFMono-Regular, Menlo, monospace; background: transparent; border: 1px dashed rgba(255, 255, 255, .25); color: var(--butter); padding: .45rem .7rem; border-radius: 10px; }
.msg-card { background: var(--cream); color: var(--ink); border-radius: 14px; width: 88%; }
.msg-card b { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.msg-card small { color: var(--ink-soft); }
.chat-replay { margin-top: .9rem; background: none; border: 0; color: var(--butter); font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.try-box { margin-top: 1.4rem; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; font-size: .9rem; }
.try-box code { display: block; margin-top: .4rem; font: 500 .82rem ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; border: 1px solid var(--line); padding: .5rem .6rem; border-radius: 8px; overflow-x: auto; white-space: nowrap; }
.try-box .live { color: var(--sage); font-weight: 700; }
.try-box .off { color: var(--ink-soft); }

/* ---------- reviews ---------- */
.reviews-top { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin-bottom: 2.6rem; }
.score { display: grid; justify-items: center; gap: .2rem; background: var(--ink); color: var(--cream); border-radius: 999px 999px var(--r) var(--r); padding: 2.6rem 2.2rem 1.6rem; }
.score-num { font-family: var(--serif); font-size: 5rem; line-height: .9; font-weight: 350; }
.score .stars { font-size: 1.2rem; }
.score-sub { font-size: .82rem; opacity: .75; }
.mentions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.mentions li { padding: .38rem .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; transition: transform .25s var(--ease), border-color .25s; }
.mentions li:hover { transform: translateY(-3px); border-color: var(--gold); }
.mentions b { color: var(--gold-deep); margin-left: .25rem; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.q { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; display: grid; gap: .8rem; align-content: start; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.q:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.q blockquote { font-family: var(--serif); font-size: 1.16rem; line-height: 1.42; font-variation-settings: "opsz" 24; }
.q figcaption { font-weight: 650; font-size: .92rem; }
.q figcaption small { font-weight: 400; color: var(--ink-soft); margin-left: .3rem; }
.q-photo { padding: 0; overflow: hidden; }
.q-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; transition: transform 1.2s var(--ease); }
.q-photo:hover img { transform: scale(1.06); }
.q-sm blockquote { font-size: 1.05rem; }
.q-cta { background: var(--butter); border-color: transparent; place-items: center; text-align: center; align-content: center; }
.q-cta p { font-family: var(--hand); font-size: 1.7rem; }
.quote-grid .q:nth-child(2) { --d: .08s; } .quote-grid .q:nth-child(3) { --d: .16s; } .quote-grid .q:nth-child(5) { --d: .08s; } .quote-grid .q:nth-child(6) { --d: .16s; }

/* ---------- gallery ---------- */
.gallery { background: var(--paper); }
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 19vw, 250px); gap: .8rem; grid-auto-flow: dense; }
.g { position: relative; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.g::after { content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .7rem; color: #fff; font-size: .88rem; font-weight: 600; text-align: left; background: linear-gradient(0deg, rgba(20, 22, 28, .7), transparent); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.g:hover, .g:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lift); z-index: 2; }
.g:hover img { transform: scale(1.08); }
.g:hover::after, .g:focus-visible::after { opacity: 1; transform: none; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.credit { margin-top: 1.2rem; font-weight: 650; }
.credit a { color: var(--gold-deep); text-underline-offset: 4px; }
.credit span { font-weight: 400; color: var(--ink-soft); }

/* ---------- visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.open-line { margin-top: 1rem; font-weight: 650; display: inline-flex; align-items: center; gap: .5rem; }
.open-line::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #b9b3a6; }
.open-line.is-open::before { background: #3fa35b; }
.hours { width: 100%; max-width: 380px; border-collapse: collapse; margin: 1.2rem 0; }
.hours td { padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { font-weight: 700; color: var(--gold-deep); }
.hours tr.is-closed td:last-child { color: var(--ink-soft); }
.addr { font-style: normal; line-height: 1.5; }
.visit-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; }
.perks { margin-top: 1.4rem; display: grid; gap: .35rem; color: var(--ink-soft); font-size: .96rem; }
.perks li::before { content: "✦"; color: var(--gold); margin-right: .55rem; font-size: .8rem; }
.map-frame { position: relative; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lift); background: var(--line); }
.map-frame img, .map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.map-frame .btn { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); }
.map-frame .btn:hover { transform: translateX(-50%) translateY(-2px); }

/* ---------- faq ---------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.faq .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.faq a { color: var(--gold-deep); text-underline-offset: 3px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.4rem 1.15rem 0; font-family: var(--serif); font-size: 1.22rem; position: relative; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-family: var(--sans); font-weight: 300; color: var(--gold-deep); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--gold-deep); }
.faq details p { padding: 0 2rem 1.3rem 0; color: var(--ink-soft); animation: fade-up .4s var(--ease); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(247, 241, 231, .8); padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.6rem; color: var(--cream); margin-bottom: .6rem; }
.footer-brand svg { width: 40px; height: 40px; }
.footer-h { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--butter); font-weight: 700; margin-bottom: .6rem; }
.site-footer a { text-decoration: none; border-bottom: 1px solid rgba(247, 241, 231, .25); transition: border-color .2s, color .2s; }
.site-footer a:hover { color: #fff; border-color: var(--gold); }
.footer-base { margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(247, 241, 231, .14); font-size: .82rem; opacity: .8; }

/* ---------- mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 22, 28, .93); display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 1rem; animation: page-in .3s; }
.lightbox[hidden] { display: none; }
.lightbox figure { display: grid; justify-items: center; gap: .7rem; min-width: 0; }
.lightbox img { max-height: 84vh; max-width: 100%; border-radius: 10px; animation: lb-in .4s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
.lightbox figcaption { color: #fff; font-family: var(--hand); font-size: 1.4rem; }
.lb-nav, .lb-close { background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background-color .2s; }
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, .28); }
.lb-close { position: absolute; top: 1rem; right: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) { .open-pill { display: none; } }
@media (max-width: 1080px) {
  .nav { display: none; }
  .bake-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bake:nth-child(2), .bake-text { margin-top: 0; }
}
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .open-pill, .header-msg { display: none; }
  .pickup, .quote, .cakes-grid, .visit-grid, .faq-grid, .agents-grid, .pies { grid-template-columns: 1fr; }
  .bag { position: static; }
  .quote-photo { max-width: 260px; margin-inline: auto; }
  .faq .section-head { position: static; }
  .reviews-top { grid-template-columns: 1fr; justify-items: start; }
  .score { grid-auto-flow: column; align-items: center; gap: .9rem; border-radius: 999px; padding: .7rem 1.6rem; }
  .score-num { font-size: 2.6rem; }
  .quote-grid { grid-template-columns: 1fr 1fr; }
  .g-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; }
  .footer-grid { grid-template-columns: 1fr; }
  .cakes-photos { max-width: 480px; margin-inline: auto; width: 100%; }
  .stamp { left: -8px; }
  .hero-shade { background: linear-gradient(0deg, rgba(20, 22, 28, .9) 0%, rgba(20, 22, 28, .55) 55%, rgba(20, 22, 28, .25) 100%); }

  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; gap: .5rem; align-items: stretch; padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(255, 251, 244, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(32, 36, 46, .5); }
  .mobile-bar a { display: grid; place-items: center; gap: .1rem; text-decoration: none; font-size: .7rem; font-weight: 650; padding: .3rem .8rem; border-radius: 12px; color: var(--ink-soft); }
  .mobile-bar a[hidden] { display: none; }
  .mobile-bar svg { width: 22px; height: 22px; fill: currentColor; }
  .mobile-bar .mobile-order { flex: 1; background: var(--ink); color: var(--cream); font-size: 1.02rem; border-radius: 999px; grid-auto-flow: column; justify-content: center; gap: .6rem; }
  .mobile-order b { background: var(--gold); color: var(--ink); min-width: 1.5rem; height: 1.5rem; border-radius: 999px; display: grid; place-items: center; font-size: .82rem; padding: 0 .35rem; }
  .mobile-order b[hidden] { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: min(1180px, 100% - 2rem); }
  .brand-tag { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.18rem; }
  .hero { min-height: calc(100svh - var(--header-h) - var(--banner-h) - 66px); }
  .hero-inner { padding-block: 3rem 5rem; }
  .hero-title { font-size: clamp(2.3rem, 11.2vw, 3.4rem); }
  .hero-eyebrow { display: grid; gap: .2rem; }
  .hero-eyebrow span + span::before { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-foot { justify-content: space-between; bottom: 1rem; }
  .shot-caption { font-size: 1.15rem; }
  .tabs { gap: .25rem; }
  .tab { flex-direction: column; text-align: center; gap: .2rem; padding: .6rem .3rem; }
  .tab small { display: none; }
  .tab b { font-size: .86rem; }
  .board { border-width: 7px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .pies-intro { grid-template-columns: 1fr; }
  .price-tag { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .6rem; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: 1.2rem; }
  .lb-prev { left: 1.2rem; } .lb-next { right: 1.2rem; }
  .bake h3 { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .ticker-track { animation: none; }
  .msg { opacity: 1; transform: none; }
}
