/* Long Proof: Bristol Blue + flour, butter only on the pre-order CTA and live/selected states.
   One family: Bricolage Grotesque (variable opsz / wdth / wght). Eases: out + in-out. Durations: 180 / 450 / 1100ms. */
:root {
  --blue: #1C3480;
  --deep: #13245C;
  --flour: #F3EEE4;
  --flour-2: #E6DFD0;
  --butter: #F5C842;
  --on-blue-2: rgba(243, 238, 228, .74);
  --on-blue-3: rgba(243, 238, 228, .2);
  --on-flour-2: rgba(19, 36, 92, .74);
  --on-flour-3: rgba(19, 36, 92, .16);
  --f: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io: cubic-bezier(.76, 0, .24, 1);
  --t-fast: 180ms;
  --t-mid: 450ms;
  --t-slow: 1100ms;
  --r: 6px;
  --pad: clamp(16px, 3.4vw, 56px);
  --navh: 64px;
  --s-1: 14px; --s0: 16px; --s1: 19px; --s2: 24px; --s3: clamp(28px, 3.2vw, 44px); --s4: clamp(40px, 5.6vw, 84px);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--blue); color: var(--flour);
  font-family: var(--f); font-size: var(--s0); line-height: 1.5;
  font-variation-settings: "opsz" 14, "wdth" 100; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--butter); color: var(--deep); }
:focus-visible { outline: 2px solid var(--butter); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--butter); color: var(--deep); padding: 10px 14px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tab { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--r);
  font-size: 17px; font-weight: 600; font-variation-settings: "opsz" 18, "wdth" 92;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) ease, scale var(--t-fast) var(--e-out), color var(--t-fast) ease;
}
.btn:active { scale: .975; }
.btn .ico { transition: transform var(--t-mid) var(--e-out); }
.btn:hover .ico { transform: translateX(4px); }
.btn-butter { background: var(--butter); color: var(--deep); }
.btn-butter:hover { background: #F8D467; }
.btn-ink { background: var(--deep); color: var(--flour); }
.btn-ink:hover { background: var(--blue); }
.btn-ghost { background: transparent; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--on-flour-3); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--deep); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.link { font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-decoration-color: var(--on-blue-3); transition: text-decoration-color var(--t-fast) ease; }
.link:hover { text-decoration-color: currentColor; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--navh);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  color: var(--flour); transition: color var(--t-mid) ease, background-color var(--t-mid) ease;
}
.nav.scrolled { background: rgba(28, 52, 128, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav.on-flour { color: var(--deep); }
.nav.scrolled.on-flour { background: rgba(243, 238, 228, .92); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; font-variation-settings: "opsz" 24, "wdth" 78; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark path:first-child { fill: currentColor; }
.brand-mark .score { fill: none; stroke: var(--butter); stroke-width: 2.4; stroke-linecap: round; }
.nav.on-flour .brand-mark .score { stroke: var(--flour); }
.nav-links { display: none; gap: 26px; margin-left: 18px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; opacity: .86; transition: opacity var(--t-fast) ease; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.nav-status { display: none; margin-left: auto; align-items: center; gap: 8px; font-size: 14px; font-variant-numeric: tabular-nums; opacity: .86; }
.nav .btn-sm { margin-left: auto; }
.nav.on-flour .btn-butter { background: var(--deep); color: var(--flour); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; flex: none; }
.shop-open .nav-status .live-dot, .board.is-live .bc-state .live-dot { background: var(--butter); opacity: 1; animation: pulse 2s var(--e-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 200, 66, .55); } 100% { box-shadow: 0 0 0 10px rgba(245, 200, 66, 0); } }

/* ---------- HERO ---------- */
.hero { position: relative; height: 250vh; background: var(--blue); }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.hero-pin::before { /* oven light rises with the bake */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 58%, rgba(255, 190, 110, calc(var(--hp, 0) * .16)), transparent 70%);
}
.hw {
  position: absolute; z-index: 1; display: block; color: var(--flour);
  font-weight: 800; font-size: var(--hw); line-height: .8; letter-spacing: -.025em;
  font-variation-settings: "wdth" 75, "wght" 760, "opsz" 96;
  white-space: nowrap; pointer-events: none; user-select: none;
}
.hero { --hw: 31vw; }
.hw-long { left: calc(var(--pad) - .04em); top: calc(var(--navh) + 2svh); }
.hw-proof { right: calc(var(--pad) - .02em); top: 51.5svh; }
.hero-word { margin: 0; font-size: inherit; }
.hw-front { z-index: 3; clip-path: inset(34% -5% -10% -5%); }
.dough-stage { position: absolute; inset: 0; z-index: 2; }
.dough-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.dough-poster {
  position: absolute; left: 50%; top: 46%; width: 84vw; max-width: 760px; transform: translate(-50%, -50%);
  pointer-events: none; transition: opacity .5s ease;
}
.gl-ready .dough-poster { opacity: 0; }
.no-gl .dough-stage canvas { display: none; }
.no-gl .poke, .rm .poke { display: none; }

.hero-copy { position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: calc(112px + env(safe-area-inset-bottom)); }
.hero-cta .link { display: none; }
@media (max-width: 899px) and (max-height: 760px) { .hero-lede { display: none; } }
.hero-lede { font-size: 16px; line-height: 1.4; max-width: 30ch; font-variation-settings: "opsz" 16, "wdth" 96; margin-bottom: 18px; }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.poke { position: absolute; z-index: 4; right: var(--pad); top: calc(var(--navh) + 31vw - 1svh); text-align: right; max-width: 44%; pointer-events: none; }
.poke-k { display: block; font-size: 15px; line-height: 1; font-weight: 600; color: var(--butter); font-variation-settings: "opsz" 12, "wdth" 90; }
.poke-v { display: block; font-size: 13px; line-height: 1.3; margin-top: 2px; }
.stage { position: absolute; z-index: 4; left: var(--pad); width: 46%; top: calc(var(--navh) + 31vw - 1svh); display: grid; gap: 2px; font-variant-numeric: tabular-nums; pointer-events: none; }
.stage-time { font-size: 15px; font-weight: 700; font-variation-settings: "opsz" 24, "wdth" 80; line-height: 1; }
.stage-what { font-size: 13px; line-height: 1.3; color: var(--on-blue-2); }
.stage-bar { display: block; height: 2px; background: var(--on-blue-3); margin-top: 6px; overflow: hidden; }
.stage-bar i { display: block; height: 100%; background: var(--flour); transform-origin: 0 50%; transform: scaleX(0); }
.scroll-hint { display: none; }

@media (min-width: 900px) {
  .hero { --hw: 19.5vw; height: 280vh; }
  .hw-long { top: calc(var(--navh) + 1vh); }
  .hw-proof { top: auto; bottom: 2.5vh; }
  .hw-front { clip-path: inset(-10% -5% -10% -5%); }
  .dough-poster { width: 47vw; top: 52%; }
  .hero-copy { left: auto; right: var(--pad); top: calc(var(--navh) + 5vh); bottom: auto; width: 360px; }
  .hero-lede { font-size: 19px; }
  .poke { left: var(--pad); right: auto; top: auto; bottom: calc(3vh + 46px + 110px); text-align: left; max-width: 300px; }
  .poke-k { font-size: 13px; }
  .poke-v { font-size: 17px; }
  .stage { top: auto; right: auto; bottom: calc(3vh + 46px); width: min(30vw, 380px); }
  .hero-cta .link { display: inline; }
  .stage-time { font-size: 30px; }
  .stage-what { font-size: 14px; min-height: 0; }
  .scroll-hint { display: flex; position: absolute; z-index: 4; right: var(--pad); top: calc(var(--navh) + 5vh + 210px); width: 360px; align-items: center; gap: 8px; font-size: 14px; color: var(--on-blue-2); opacity: calc(1 - var(--hp, 0) * 8); }
}
@media (min-width: 900px) and (max-aspect-ratio: 13/10) {
  .hero { --hw: 17vw; }
}

/* ---------- shared chapter label ---------- */
.chap { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 14, "wdth" 88; margin-bottom: 18px; }
.ln { padding-bottom: .06em; }

/* ---------- THESIS ---------- */
.thesis { position: relative; background: var(--blue); padding: 18vh var(--pad) 20vh; display: grid; gap: 40px; }
.thesis-tag { font-size: 15px; font-weight: 600; color: var(--on-blue-2); }
.thesis-h { font-size: clamp(30px, 4.3vw, 66px); line-height: 1.04; font-weight: 600; letter-spacing: -.02em; font-variation-settings: "opsz" 72, "wdth" 86; max-width: 22ch; text-wrap: balance; }
.thesis-side { display: grid; gap: 22px; max-width: 34ch; font-size: 17px; color: var(--on-blue-2); }
.thesis-hours { color: var(--flour); font-size: 22px; line-height: 1.25; font-variation-settings: "opsz" 24, "wdth" 90; }
.thesis-hours b { font-weight: 700; }
@media (min-width: 900px) {
  .thesis { grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 22vh var(--pad) 24vh; }
  .thesis-tag { grid-column: 1 / 4; }
  .thesis-h { grid-column: 1 / 9; grid-row: 2; font-size: min(4.6vw, 8.4vh); }
  .thesis-side { grid-column: 10 / 13; grid-row: 2; align-self: end; font-size: 18px; }
}

/* ---------- 36-HOUR LOAF ---------- */
.loaf { background: var(--flour); color: var(--deep); }
.loaf-pin { padding: 14vh 0 12vh; }
.loaf-head { padding: 0 var(--pad); margin-bottom: 40px; }
.loaf-h { font-size: clamp(56px, 15vw, 220px); line-height: .84; font-weight: 800; letter-spacing: -.03em; font-variation-settings: "opsz" 96, "wdth" 75; }
.loaf-sub { margin-top: 18px; font-size: 17px; max-width: 32ch; color: var(--on-flour-2); }
.rail {
  display: flex; gap: 22px; padding: 6px var(--pad) 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.st { position: relative; flex: 0 0 74vw; scroll-snap-align: start; display: grid; align-content: start; gap: 6px; }
.st figure { overflow: hidden; border-radius: var(--r); background: var(--flour-2); margin-bottom: 12px; }
.st figure img { width: 100%; height: 100%; object-fit: cover; }
.st-tall figure { aspect-ratio: 3 / 4; }
.st-wide figure, .st-low figure { aspect-ratio: 4 / 3; }
.st-h { font-size: 64px; line-height: .9; font-weight: 800; letter-spacing: -.03em; font-variation-settings: "opsz" 96, "wdth" 75; font-variant-numeric: tabular-nums; display: block; }
.st h3 { font-size: 22px; font-weight: 700; line-height: 1.15; font-variation-settings: "opsz" 24, "wdth" 90; }
.st p { font-size: 16px; line-height: 1.45; color: var(--on-flour-2); max-width: 32ch; }
.st-text { flex-basis: 64vw; align-content: end; padding-top: 30vw; }
.st-text .st-h { font-size: 96px; }
.st-last .st-h { color: var(--blue); }
.crumb-pos { object-position: 50% 78%; }
@media (min-width: 900px) {
  .loaf-pin { height: 100vh; padding: calc(var(--navh) + 4vh) 0 5vh; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
  .loaf-head { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 4vw; margin-bottom: 5vh; }
  .loaf-head .chap { grid-column: 1 / -1; margin-bottom: 1vh; }
  .loaf-h { font-size: min(10vw, 15vh); }
  .loaf-sub { margin: 0 0 1.2vh; font-size: 18px; }
  .rail { overflow: visible; scroll-snap-type: none; gap: 4.2vw; padding: 0 var(--pad); align-items: flex-start; width: max-content; will-change: transform; }
  .st { flex: 0 0 auto; width: auto; }
  .st figure { margin-bottom: 1.6vh; }
  .st-tall figure { height: 41vh; width: 30.75vh; aspect-ratio: auto; }
  .st-wide figure { height: 33vh; width: 49.5vh; aspect-ratio: auto; margin-top: 5vh; }
  .st-low figure { height: 27vh; width: 20.25vh; aspect-ratio: auto; margin-top: 12vh; }
  .st-low.st-text { margin-top: 12vh; }
  .st-text { width: 27vh; padding-top: 8vh; align-content: start; }
  .st-text .st-h { font-size: 13vh; white-space: nowrap; }
  .st-img .st-h { position: absolute; top: -.6em; right: -.25em; font-size: 9vh; color: var(--deep); mix-blend-mode: normal; }
  .st-wide .st-h { top: calc(5vh - .6em); }
  .st-low.st-img .st-h { top: calc(12vh - .6em); }
  .st-img h3 { padding-right: 10px; }
  .st h3 { font-size: clamp(19px, 2.4vh, 24px); }
  .st p { font-size: clamp(14px, 1.8vh, 17px); max-width: 30ch; }
  .st-wide p { max-width: 40ch; }
  .st-last { padding-right: 6vw; }
}

/* ---------- PASTRY ---------- */
.pastry { background: var(--deep); color: var(--flour); padding: 16vh var(--pad) 18vh; display: grid; gap: 36px; position: relative; overflow: hidden; }
.pastry figure { overflow: hidden; border-radius: var(--r); }
.pastry figure img { width: 100%; height: 100%; object-fit: cover; }
.pastry-a { aspect-ratio: 4 / 5; }
.pastry-a img { object-position: 30% 50%; }
.pastry-b { aspect-ratio: 3 / 2; width: 78%; justify-self: end; }
.pastry-h { font-size: clamp(52px, 13vw, 168px); line-height: .84; font-weight: 800; letter-spacing: -.03em; font-variation-settings: "opsz" 96, "wdth" 75; margin-bottom: 26px; }
.pastry-text > p:not(.chap) { font-size: 17px; max-width: 38ch; color: var(--on-blue-2); }
.spec { margin-top: 30px; border-top: 1px solid var(--on-blue-3); }
.spec div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--on-blue-3); }
.spec dt { font-size: 17px; font-weight: 500; }
.spec dd { font-size: 17px; font-variant-numeric: tabular-nums; font-weight: 600; }
.pastry-note { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.12; font-weight: 600; letter-spacing: -.015em; font-variation-settings: "opsz" 48, "wdth" 86; max-width: 20ch; }
@media (min-width: 900px) {
  .pastry { grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 0; padding: 20vh var(--pad) 14vh; }
  .pastry-a { grid-column: 1 / 7; grid-row: 1 / 3; aspect-ratio: 4 / 5; }
  .pastry-text { grid-column: 8 / 13; grid-row: 1; align-self: start; padding-top: 2vh; }
  .pastry-h { font-size: min(9.6vw, 168px); margin-left: -8vw; position: relative; z-index: 2; mix-blend-mode: normal; }
  .pastry-b { grid-column: 8 / 13; grid-row: 2; width: 100%; align-self: end; margin-top: 10vh; }
  .pastry-note { grid-column: 2 / 7; grid-row: 3; margin-top: 6vh; }
}

/* ---------- BAKE BOARD ---------- */
.board { background: var(--blue); color: var(--flour); padding: 16vh var(--pad) 14vh; position: relative; }
.board-top { display: grid; gap: 22px; margin-bottom: 40px; }
.board-h { font-size: clamp(64px, 19vw, 260px); line-height: .8; font-weight: 800; letter-spacing: -.03em; font-variation-settings: "opsz" 96, "wdth" 75; }
.board-clock { display: grid; gap: 6px; align-content: end; }
.bc-time { font-size: clamp(54px, 8vw, 120px); line-height: .85; font-weight: 700; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 96, "wdth" 75; letter-spacing: -.02em; }
.bc-state { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; }
.board .bc-state .live-dot { background: var(--butter); opacity: 1; animation: pulse 2s var(--e-out) infinite; }
.bc-note { font-size: 14px; line-height: 1.4; color: var(--on-blue-2); max-width: 44ch; }
.board-grid { display: grid; gap: 40px; }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1) 18px; padding: 2px var(--pad); }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; display: inline-flex; align-items: baseline; gap: 6px; min-height: 42px; padding: 0 15px; border-radius: var(--r);
  background: transparent; border: 0; box-shadow: inset 0 0 0 1.5px var(--on-blue-3); font-size: 15px; font-weight: 600;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.filters button span { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .7; }
.filters button:hover { box-shadow: inset 0 0 0 1.5px var(--flour); }
.filters button[aria-selected="true"] { background: var(--flour); color: var(--deep); box-shadow: none; }
.rows-head { display: none; }
.rows { border-top: 1.5px solid var(--flour); }
.row {
  position: relative; display: grid; grid-template-columns: 1fr auto 46px; grid-template-rows: auto auto; column-gap: 14px; row-gap: 4px;
  align-items: center; padding: 14px 0; border-bottom: 1px solid var(--on-blue-3);
  transition: opacity var(--t-mid) ease;
}
.r-name { grid-column: 1; grid-row: 1; min-width: 0; }
.r-name b { display: block; font-size: 19px; font-weight: 700; line-height: 1.15; font-variation-settings: "opsz" 20, "wdth" 88; }
.r-name small { display: block; font-size: 14px; color: var(--on-blue-2); line-height: 1.35; margin-top: 2px; }
.r-out, .r-price { grid-column: 1; grid-row: 2; justify-self: start; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--on-blue-2); }
.r-out::before { content: "Out "; }
.r-price { margin-left: 6.2em; color: var(--flour); font-weight: 600; }
.r-left { grid-column: 2; grid-row: 1 / 3; position: relative; display: grid; justify-items: end; gap: 3px; min-width: 88px; }
.flap {
  position: relative; display: inline-block; min-width: 2.3ch; padding: 4px 6px 2px; border-radius: 4px; text-align: center;
  background: var(--deep); color: var(--flour); font-size: 30px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums;
  font-variation-settings: "opsz" 32, "wdth" 75; transform-origin: 50% 50%; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25);
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(28, 52, 128, .9); }
.flap.flip { animation: flap .42s var(--e-out); }
@keyframes flap { 0% { transform: perspective(200px) rotateX(-88deg); filter: brightness(.6); } 100% { transform: perspective(200px) rotateX(0); filter: none; } }
.r-state { font-size: 13px; color: var(--on-blue-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row.is-low .r-state { color: var(--butter); font-weight: 600; }
.row.is-low .flap { box-shadow: inset 0 0 0 1.5px var(--butter); }
.row.is-due .flap { color: var(--on-blue-2); background: transparent; box-shadow: inset 0 0 0 1px var(--on-blue-3); }
.stamp {
  position: absolute; right: -4px; top: 50%; translate: 0 -50%; rotate: -7deg; padding: 5px 9px 4px; border: 2px solid var(--flour); border-radius: 4px;
  font-size: 14px; font-weight: 800; font-variation-settings: "wdth" 80; white-space: nowrap; color: var(--flour);
  opacity: 0; scale: 1.6; transition: opacity .25s ease, scale .35s var(--e-out); pointer-events: none;
}
.row.is-out .stamp { opacity: 1; scale: 1; }
.row.is-out .flap, .row.is-out .r-state { visibility: hidden; }
.row.is-out .r-name, .row.is-out .r-out, .row.is-out .r-price { opacity: .45; }
.row.is-out .r-state { visibility: visible; position: absolute; top: calc(100% + 16px); right: 0; opacity: .8; }
.row.is-out .r-left { align-self: start; padding-top: 8px; }
.r-add {
  grid-column: 3; grid-row: 1 / 3; width: 46px; height: 46px; border-radius: var(--r); border: 0; background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--on-blue-3); display: grid; place-items: center; font-size: 20px;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-fast) ease, opacity var(--t-fast) ease;
}
.r-add:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--flour); background: rgba(243, 238, 228, .08); }
.r-add:disabled { opacity: .25; cursor: not-allowed; }
.row.in-tray .r-add { background: var(--butter); color: var(--deep); box-shadow: none; }
.r-add.pop { animation: pop .38s var(--e-out); }
@keyframes pop { 0% { transform: scale(.82); } 100% { transform: scale(1); } }
.r-sold { position: absolute; right: 62px; top: 8px; font-size: 14px; font-weight: 700; color: var(--butter); opacity: 0; pointer-events: none; font-variant-numeric: tabular-nums; }
.r-sold.go { animation: sold 1.2s var(--e-out); }
@keyframes sold { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-18px); } }
.board-foot { margin-top: 18px; font-size: 14px; color: var(--on-blue-2); }
.board.for-tomorrow .flap, .board.for-tomorrow .r-state { opacity: .5; }

/* tray: a paper bag ticket */
.tray { position: relative; }
.tray-in, .ticket {
  position: relative; background: var(--flour); color: var(--deep); padding: 24px 22px 34px; border-radius: var(--r) var(--r) 0 0;
  --zz: 10px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zz)) 100%;
}
.tray-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1.5px solid var(--deep); }
.tray-head h3 { font-size: 26px; font-weight: 800; font-variation-settings: "opsz" 32, "wdth" 78; letter-spacing: -.01em; }
.tray-count { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--on-flour-2); }
.tray-items { padding: 6px 0; min-height: 70px; }
.tray-items li { display: grid; grid-template-columns: 1fr auto 64px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--on-flour-3); }
.tray-items .tray-empty { display: block; border: 0; font-size: 15px; color: var(--on-flour-2); padding: 12px 0; }
.ti-n { font-weight: 600; font-size: 16px; line-height: 1.2; }
.ti-q { display: inline-flex; align-items: center; gap: 4px; }
.ti-q button { width: 36px; height: 36px; border: 0; border-radius: var(--r); background: transparent; box-shadow: inset 0 0 0 1.5px var(--on-flour-3); display: grid; place-items: center; font-size: 15px; transition: box-shadow var(--t-fast) ease; }
.ti-q button:hover { box-shadow: inset 0 0 0 1.5px var(--deep); }
.ti-q b { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.ti-p { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tray-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; font-size: 15px; color: var(--on-flour-2); }
.tray-total b { font-size: 28px; color: var(--deep); font-weight: 800; font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 32, "wdth" 80; }
.pick { margin-top: 14px; }
.pick legend { font-size: 15px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.days button, .slots button {
  min-height: 42px; border: 0; border-radius: var(--r); background: transparent; box-shadow: inset 0 0 0 1.5px var(--on-flour-3);
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.days button:hover:not(:disabled), .slots button:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--deep); }
.days button[aria-pressed="true"] { background: var(--deep); color: var(--flour); box-shadow: none; }
.days button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); grid-auto-rows: 42px; gap: 6px; max-height: 138px; overflow-y: auto; scrollbar-width: thin; padding: 2px 2px 2px 0; overscroll-behavior: contain; }
.slots button:disabled { display: none; }
.slots button[aria-pressed="true"] { background: var(--butter); color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--deep); }
.name-f { display: grid; gap: 6px; margin-top: 16px; font-size: 15px; font-weight: 700; }
.name-f input { min-height: 48px; padding: 0 14px; border-radius: var(--r); border: 0; background: #FBF8F2; box-shadow: inset 0 0 0 1.5px var(--on-flour-3); font-weight: 500; font-size: 16px; color: var(--deep); }
.name-f input::placeholder { color: rgba(19, 36, 92, .5); }
.name-f input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--deep); }
.tray-err { min-height: 1.4em; margin: 10px 0 8px; font-size: 14px; font-weight: 600; color: #9B2A1E; }
.tray .btn-butter { box-shadow: inset 0 0 0 1.5px var(--deep); }

.ticket { padding-top: 28px; text-align: left; }
.ticket.print { animation: print 1.1s var(--e-io); }
@keyframes print { 0% { clip-path: inset(0 0 100% 0); transform: translateY(-20px); } 100% { clip-path: inset(0 0 0 0); transform: none; } }
.ticket:focus { outline: none; }
.t-k { font-size: 14px; font-weight: 600; color: var(--on-flour-2); }
.t-code { font-size: 64px; line-height: .9; font-weight: 800; letter-spacing: -.02em; font-variation-settings: "opsz" 96, "wdth" 75; margin: 8px 0 10px; font-variant-numeric: tabular-nums; }
.t-when { font-size: 17px; font-weight: 600; padding-bottom: 14px; border-bottom: 1.5px solid var(--deep); }
.t-items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--on-flour-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.t-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; font-weight: 600; }
.t-total b { font-size: 24px; font-variant-numeric: tabular-nums; }
.t-note { font-size: 15px; margin-bottom: 6px; }
.t-demo { font-size: 13px; color: var(--on-flour-2); margin-bottom: 16px; }

.tray-bar {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(104px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border-radius: var(--r);
  background: var(--butter); color: var(--deep); text-decoration: none; font-size: 15px; font-variant-numeric: tabular-nums;
  box-shadow: 0 14px 30px -14px rgba(10, 18, 50, .7); animation: barin .45s var(--e-out);
}
.tray-bar b { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.tray-seen .tray-bar { opacity: 0; pointer-events: none; transform: translateY(16px); transition: opacity .3s ease, transform .3s var(--e-out); }
@keyframes barin { from { transform: translateY(24px); opacity: 0; } }

@media (min-width: 900px) {
  .board { padding: 20vh var(--pad) 18vh; }
  .board-top { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 7vh; }
  .board-clock { justify-items: end; text-align: right; }
  .board-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 4vw; align-items: start; }
  .filters { margin: 0 0 22px; padding: 2px 0; }
  .rows-head { display: grid; grid-template-columns: 74px 1fr 90px 130px 46px; column-gap: 20px; padding: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--on-blue-2); }
  .rows-head span:nth-child(3), .rows-head span:nth-child(4) { text-align: right; }
  .row { grid-template-columns: 74px 1fr 90px 130px 46px; grid-template-rows: auto; column-gap: 20px; padding: 16px 0; }
  .row:hover { background: linear-gradient(90deg, transparent, rgba(243, 238, 228, .04) 20%, rgba(243, 238, 228, .04) 80%, transparent); }
  .r-out { grid-column: 1; grid-row: 1; font-size: 18px; font-weight: 600; color: var(--flour); }
  .r-out::before { content: none; }
  .r-name { grid-column: 2; grid-row: 1; }
  .r-name b { font-size: 22px; }
  .r-price { grid-column: 3; grid-row: 1; margin: 0; justify-self: end; font-size: 18px; }
  .r-left { grid-column: 4; grid-row: 1; grid-template-columns: auto auto; align-items: center; justify-content: end; gap: 10px; }
  .row.is-out .r-left { align-self: center; padding-top: 0; }
  .row.is-out .r-state { position: static; visibility: hidden; }
  .r-add { grid-column: 5; grid-row: 1; }
  .r-sold { right: 74px; top: 4px; }
  .tray { position: sticky; top: calc(var(--navh) + 20px); }
  .tray-bar { display: none !important; }
}

/* ---------- BREAD CLUB ---------- */
.club { background: var(--flour); color: var(--deep); padding: 16vh var(--pad); display: grid; gap: 30px; overflow: hidden; }
.club-price { display: flex; align-items: flex-end; gap: 12px; line-height: .8; }
.club-price span { font-size: clamp(120px, 40vw, 420px); font-weight: 800; letter-spacing: -.045em; font-variation-settings: "opsz" 96, "wdth" 75; font-variant-numeric: tabular-nums; margin-left: -.04em; }
.club-price small { font-size: 18px; font-weight: 600; padding-bottom: .4em; }
.club-h { font-size: clamp(32px, 4vw, 60px); line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variation-settings: "opsz" 72, "wdth" 82; margin-bottom: 20px; max-width: 16ch; }
.club-text > p:not(.chap) { font-size: 17px; max-width: 40ch; color: var(--on-flour-2); }
.club-form { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.club-form input { flex: 1 1 220px; min-height: 52px; padding: 0 16px; border-radius: var(--r); border: 0; background: #FBF8F2; box-shadow: inset 0 0 0 1.5px var(--on-flour-3); font-size: 16px; color: var(--deep); }
.club-form input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--deep); }
.club-form input::placeholder { color: rgba(19, 36, 92, .5); }
.club-msg { flex-basis: 100%; min-height: 1.4em; font-size: 15px; font-weight: 600; }
.club-form.done input, .club-form.done button { display: none; }
@media (min-width: 900px) {
  .club { grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 18vh var(--pad); align-items: center; }
  .club-price { grid-column: 1 / 7; flex-direction: column; align-items: flex-start; }
  .club-price span { font-size: min(30vw, 44vh); }
  .club-price small { padding: 0 0 0 .3em; font-size: 22px; margin-top: 16px; }
  .club-text { grid-column: 8 / 13; }
}

/* ---------- VISIT + CLOSE ---------- */
.visit { background: var(--blue); padding: 16vh var(--pad) 12vh; }
.close-word { display: grid; font-size: clamp(64px, 20vw, 300px); line-height: .82; font-weight: 800; letter-spacing: -.035em; font-variation-settings: "opsz" 96, "wdth" 75; margin-bottom: 10vh; }
.close-word span:nth-child(2) { justify-self: end; color: var(--on-blue-2); font-weight: 300; font-variation-settings: "opsz" 96, "wdth" 75, "wght" 300; }
.close-word span:nth-child(3) { justify-self: start; padding-left: 8vw; }
.visit-grid { display: grid; gap: 32px; border-top: 1.5px solid var(--flour); padding-top: 28px; }
.visit-grid h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.visit-grid p { font-size: 17px; line-height: 1.5; color: var(--on-blue-2); }
.visit-grid p + p { margin-top: 10px; }
.visit-grid a { text-decoration: none; color: var(--flour); }
.visit-grid a:hover { text-decoration: underline; text-underline-offset: 4px; }
.visit-cta { justify-self: start; }
@media (min-width: 900px) {
  .close-word { font-size: min(17vw, 34vh); }
  .close-word span:nth-child(3) { padding-left: 22vw; }
  .visit-grid { grid-template-columns: repeat(4, 1fr); column-gap: 24px; }
  .visit-cta { align-self: start; justify-self: end; }
}

/* ---------- FOOTER ---------- */
.footer { background: var(--deep); color: var(--flour); padding: 9vh var(--pad) calc(132px + env(safe-area-inset-bottom)); overflow: hidden; }
.foot-word { display: inline-block; font-size: 100px; line-height: .8; font-weight: 800; letter-spacing: -.03em; font-variation-settings: "opsz" 96, "wdth" 75; white-space: nowrap; padding-bottom: .16em; margin-bottom: 4vh; }
.foot-grid { display: grid; gap: 14px; font-size: 14px; line-height: 1.5; color: var(--on-blue-2); }
.foot-line { color: var(--flour); }
.foot-grid a { color: var(--flour); }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 1.1fr 1.4fr .7fr; column-gap: 40px; }
  .foot-meta { text-align: right; }
  .footer { padding-bottom: 120px; }
}

/* ---------- concept badge ---------- */
.concept-badge {
  position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--r); background: var(--flour); color: var(--deep); font-size: 12px; font-weight: 600; line-height: 1.2;
  text-decoration: none; box-shadow: 0 8px 24px -12px rgba(8, 14, 40, .7); transition: transform var(--t-fast) var(--e-out);
}
.concept-badge:hover { transform: translateY(-1px); }

/* ---------- poke cursor (fine pointers) ---------- */
.poke-cursor {
  position: fixed; left: 0; top: 0; z-index: 70; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%;
  display: grid; place-items: center; background: var(--flour); color: var(--deep); font-size: 14px; font-weight: 700;
  pointer-events: none; opacity: 0; scale: .4; transition: opacity .25s ease, scale .35s var(--e-out);
}
.poke-cursor.on { opacity: 1; scale: 1; }
.poke-cursor.on.down { scale: .78; }
.poked .scroll-hint { opacity: 0; }

@media (min-width: 900px) {
  :root { --navh: 72px; }
  .nav-links { display: flex; }
  .nav-status { display: inline-flex; }
  .nav-status + .btn-sm { margin-left: 0; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .nav-links { gap: 18px; margin-left: 4px; }
  .nav-links a:nth-child(2) { display: none; }
}

/* ---------- reduced motion ---------- */
.rm .hero { height: auto; }
.rm .hero-pin { position: relative; height: 100svh; min-height: 640px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .scroll-hint { display: none !important; }
}

/* grid items never force overflow */
.board-grid, .pastry, .thesis, .club, .visit-grid { grid-template-columns: minmax(0, 1fr); }
.board-grid > *, .pastry > *, .thesis > *, .club > *, .visit-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .thesis, .pastry, .club { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .board-grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .visit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
