/* ==========================================================================
   site.css — storefront styles
   Tokens first; brand colours live here and in site.config.js.
   Motion: three curves, four durations. Slow "story" timing is reserved for
   the hero intro, the pan, the filling wipe and the locked-in finish.
   ========================================================================== */

:root {
  /* colour */
  --ink: #110e0c;
  --ink-2: #1b1714;
  --ink-3: #26201c;
  --line: rgba(245, 240, 235, 0.12);
  --text: #f5f0eb;
  --dim: #b8aba1;
  --red: #d24b3a;
  --red-hi: #e05a47;
  --gold: #c9893f;
  --yellow: #f2c14e;
  --paper: #f7f1e8;
  --paper-2: #efe6d9;
  --paper-line: #ddd0bf;
  --ink-on-paper: #2a211b;
  --dim-on-paper: #6e6157;
  --ok: #3f9a5a;

  /* type */
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-mask: cubic-bezier(.65, 0, .35, 1);
  --t-tap: 160ms;
  --t-ui: 320ms;
  --t-section: 600ms;
  --t-story: 1200ms;

  --radius: 18px;
  --gutter: 20px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; overflow-x: clip; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--sans);
  color: var(--text);
  background:
    radial-gradient(90% 60% at 85% -10%, rgba(210, 75, 58, .16), transparent 60%),
    radial-gradient(70% 50% at -10% 30%, rgba(201, 137, 63, .10), transparent 60%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.ico-sm { width: .9em; height: .9em; opacity: .7; }

/* type scale: 12 · 14 · 16 · 24 · fluid display */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.h2 { font: 900 clamp(28px, 6vw, 44px)/1.08 var(--serif); margin: 0; letter-spacing: -.01em; }
.h3 { font: 700 16px/1.3 var(--sans); margin: 0; }
.muted { color: var(--dim); font-size: 14px; }
.hint { color: var(--dim); font-size: 14px; margin-top: 10px; }
.fine { font-size: 12px; color: var(--dim); margin-top: 14px; text-align: center; }
.fine a { color: inherit; }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 700 16px/1 var(--sans); text-decoration: none;
  transition: transform var(--t-tap) var(--ease-spring), background var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out), opacity var(--t-ui);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(210, 75, 58, .35); }
.btn-primary:hover { background: var(--red-hi); }
.btn-primary[aria-disabled="true"] { opacity: .5; box-shadow: none; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn-sub { font-weight: 500; font-size: 14px; opacity: .85; }
.btn-sub:not(:empty)::before { content: '·'; margin-right: 10px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: rgba(245, 240, 235, .3); }
.btn-ghost-dark { background: transparent; color: var(--ink-on-paper); border: 1px solid var(--paper-line); min-height: 46px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--dim); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(184, 171, 161, .4); }
.link-dark { color: var(--dim-on-paper); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; display: inline-grid; place-items: center; background: rgba(245, 240, 235, .08); flex-shrink: 0; }
.icon-btn-dark { background: rgba(42, 33, 27, .06); color: var(--ink-on-paper); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(245, 240, 235, .04); font-size: 14px; color: var(--text); text-decoration: none; }
.pill-link:hover { border-color: rgba(245, 240, 235, .3); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.pill-status.is-open .status-dot { background: #57c27a; box-shadow: 0 0 0 4px rgba(87, 194, 122, .15); }
.pill-status.is-closed .status-dot { background: var(--red); }

/* ── closed bar ──────────────────────────────────────────────────────── */
.closed-bar { position: sticky; top: 0; z-index: 30; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px var(--gutter); background: var(--ink-3); border-bottom: 1px solid var(--line); font-size: 14px; text-align: center; }
.closed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

/* ── hero ────────────────────────────────────────────────────────────── */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hero { display: grid; gap: 28px; padding: 28px 0 40px; overflow-x: clip; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.lockup { display: flex; align-items: center; justify-content: center; }
.taxi { position: relative; z-index: 3; flex-shrink: 0; margin-right: -14px; transform-origin: 50% 100%; }
.lockup-logo { width: clamp(84px, 24vw, 150px); height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5)); }
.speed { position: absolute; right: 92%; top: 46%; display: grid; justify-items: end; gap: 7px; pointer-events: none; }
.speed i { display: block; height: 2px; border-radius: 2px; background: rgba(245, 240, 235, .45); transform: scaleX(0); transform-origin: right; }
.speed i:nth-child(1) { width: 40px; } .speed i:nth-child(2) { width: 56px; } .speed i:nth-child(3) { width: 72px; display: none; }
.puff { position: fixed; z-index: 4; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(222, 206, 190, .55), transparent 70%); }
.wordmark { font: 900 clamp(46px, 14vw, 104px)/1 var(--serif); margin: 0; display: flex; letter-spacing: -.02em; white-space: nowrap; }
.wm-slot { display: inline-block; height: 1em; overflow: hidden; color: var(--gold); }
.wm-reel { display: flex; flex-direction: column; transform: translateY(-50%); }
.wm-reel > span { height: 1em; line-height: 1; }
.tagline { font-size: clamp(16px, 4.2vw, 19px); color: var(--dim); letter-spacing: .02em; }
.tagline em { font-style: normal; color: var(--gold); }
.hero-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.hero-cta .btn { width: min(100%, 360px); }
.proof { font-size: 14px; color: var(--dim); min-height: 1.5em; }
.proof .stars { color: var(--yellow); letter-spacing: 1px; }
.hero-media { position: relative; margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 72vh; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); background: var(--ink-2); }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms var(--ease-out); }
.hero-video.on { opacity: 1; }

@media (min-width: 960px) {
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; min-height: min(88vh, 820px); gap: 56px; padding-top: 40px; }
  .hero-copy { align-items: flex-start; text-align: left; }
  .wordmark { font-size: clamp(56px, 5.6vw, 84px); }
  .lockup-logo { width: 124px; }
  .speed i:nth-child(3) { display: block; }
  .lockup { justify-content: flex-start; }
  .hero-pills { justify-content: flex-start; }
  .hero-cta { align-items: flex-start; }
}

/* ── first-visit intro (slow reveal #1) ─────────────────────────────── */
/* Every visit: the taxi dash is the splash (driven by app.js, playTaxiIntro,
   0–3.5 s), then the hero reveals one piece at a time on the previous
   build's timing:
   3.43 s "Born in Manila." · 3.90 s PH turns red and shakes · 4.35 s rolls
   to CA with a gold flash · 5.00 s "Made fresh for Toronto." rises from its
   slot · 5.85 s pills · 6.15 s order button · 6.45 s the photo opens.
   Scrolling or Skip removes .intro and shows it all. */
.intro .taxi, .intro .wordmark { opacity: 0; }
.intro .tl-a { display: inline-block; animation: rise-22 550ms var(--ease-out) 3430ms both; }
.intro .wm-from { animation: reel-wrong 400ms ease 3900ms both; }
.intro .wm-reel { animation: reel-roll 550ms var(--ease-out) 4350ms both; }
.intro .wm-to { animation: ca-flash 600ms ease 4650ms both; }
.intro .tl-b { animation: slot-rise 500ms var(--ease-out) 5000ms both; }
.intro .hero-pills { animation: rise-22 600ms var(--ease-out) 5850ms both; }
.intro .hero-cta { animation: rise-22 600ms var(--ease-out) 6150ms both; }
.intro .hero-media { animation: iris-open var(--t-story) var(--ease-mask) 6450ms both; }
.intro .hero-img, .intro .hero-video { animation: settle 1600ms var(--ease-out) 6450ms both; }
@keyframes rise-22 { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes slot-rise { 0% { transform: translateY(115%); } 72% { transform: translateY(-7%); } 100% { transform: none; } }
@keyframes ca-flash { 0%, 100% { text-shadow: none; } 45% { text-shadow: 0 0 28px rgba(201, 137, 63, .9); } }
.intro-skip { display: none; }
.intro .intro-skip { display: block; position: fixed; top: 18px; right: 18px; z-index: 50; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(245, 240, 235, .06); color: var(--dim); font-size: 12px; letter-spacing: .1em; animation: rise 400ms var(--ease-out) 600ms both; }
@keyframes iris-open { from { clip-path: circle(0% at 50% 52%); } 30% { clip-path: circle(36% at 50% 52%); } to { clip-path: circle(75% at 50% 52%); } }
.tl-slot { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; }
.tl-b { display: inline-block; }
@keyframes flip-up { from { transform: translateY(110%); } to { transform: none; } }
/* The reel holds two 1em items, so -50% shows the second; it overshoots and settles like the old one */
@keyframes reel-roll { 0% { transform: translateY(0); } 72% { transform: translateY(-53.5%); } 86% { transform: translateY(-48.5%); } 100% { transform: translateY(-50%); } }
@keyframes reel-wrong { 0% { color: var(--red); transform: none; } 15% { transform: translateX(-.06em); } 35% { transform: translateX(.05em); } 55% { transform: translateX(-.04em); } 75% { transform: translateX(.025em); } 100% { color: var(--red); transform: none; } }
@keyframes iris { from { clip-path: circle(36% at 50% 52%); } to { clip-path: circle(75% at 50% 52%); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── ambient bonito flakes ───────────────────────────────────────────── */
.flakes { position: absolute; inset: 0; pointer-events: none; }
.flake { position: absolute; width: 22px; height: 9px; border-radius: 40% 60% 55% 45%; background: linear-gradient(120deg, #f1d6b8, #c99a72); opacity: .85; transform-origin: 30% 80%; }
.flakes.play .flake { animation: sway 2.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.4s); }
@keyframes sway { from { transform: rotate(calc(-8deg + var(--r))) translateY(0); } to { transform: rotate(calc(8deg + var(--r))) translateY(-3px); } }

/* ── section rhythm + scroll reveal ──────────────────────────────────── */
section { scroll-margin-top: 16px; }
.section-head { margin-bottom: 24px; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-section) var(--ease-out), transform var(--t-section) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── builder ─────────────────────────────────────────────────────────── */
.builder { padding: 32px 0 48px; display: grid; gap: 28px; }
.step { padding: 22px 0; border-top: 1px solid var(--line); }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; background: rgba(245, 240, 235, .08); }
.h3 .muted { font-weight: 400; }

.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.seg-opt {
  text-align: left; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(245, 240, 235, .03);
  display: flex; flex-direction: column; gap: 2px; min-height: 64px;
  transition: border-color var(--t-ui) var(--ease-out), background var(--t-ui) var(--ease-out), transform var(--t-tap) var(--ease-spring);
}
.seg-opt:active { transform: scale(.97); }
.seg-opt strong { font-size: 16px; }
.seg-opt span { font-size: 14px; color: var(--dim); }
.seg-opt .price { font: 700 20px/1.2 var(--serif); color: var(--gold); }
.seg-opt[aria-checked="true"] { border-color: var(--yellow); background: rgba(242, 193, 78, .08); box-shadow: inset 0 0 0 1px var(--yellow); }

/* the pan (slow reveal #2) */
/* The pan reads as cast iron: fine grain, one warm light from the top left, darker edges */
.pan { position: relative; margin-top: 18px; padding: 16px; max-width: 480px; border-radius: 22px; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27160%27 height=%27160%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.9%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .08 0%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E"), linear-gradient(160deg, #2b2623, #151210); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), inset 0 -10px 24px rgba(0, 0, 0, .6), 0 18px 40px rgba(0, 0, 0, .35); }
.pan::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; background: radial-gradient(120% 90% at 16% 8%, rgba(255, 232, 196, .13), transparent 55%), radial-gradient(150% 130% at 50% 45%, transparent 55%, rgba(0, 0, 0, .38) 100%); }
.pan-grid { display: grid; gap: 7px; }
/* Wells: oil gloss on the rim; each ball sits in its well on a thin dark ring */
.cell { aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 24%, rgba(255, 240, 210, .14), transparent 28%), radial-gradient(circle at 50% 35%, #0b0908 30%, #2a2420 75%); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .8), inset 0 -1px 0 rgba(255, 236, 200, .1); position: relative; }
/* Real iron (pan.ironImage): one photo across the pan, and a darkened patch of it in each well */
.pan.iron { background: var(--iron) center / cover; }
.pan.iron .cell { background: radial-gradient(circle at 30% 24%, rgba(255, 240, 210, .12), transparent 28%), radial-gradient(circle at 50% 40%, rgba(0, 0, 0, .8) 30%, rgba(0, 0, 0, .45) 78%), var(--iron) var(--ip, 50% 50%) / 420%; }
.cell::after { content: ''; position: absolute; inset: 6%; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .5); pointer-events: none; }
/* Per-ball variety (set in app.js): angle, size, offset, shade. The flip then turns on a different axis for each ball. */
.spin { position: absolute; inset: 0; transform: translate(var(--jx, 0), var(--jy, 0)) rotate(var(--rot, 0deg)) scale(var(--sc, 1)); }
.pan:not(.sprites) .spin { perspective: 300px; }
.sheen { display: none; }
.ball { position: absolute; inset: 8%; border-radius: 50%; opacity: 0; transform: translateY(-40%) scale(.5); background: radial-gradient(circle at 35% 30%, #fff2cf, #f0d39a 45%, #d9b06c 100%); }
.ball::after { content: ''; position: absolute; left: 18%; right: 18%; top: 38%; height: 18%; border-radius: 50%; background: rgba(80, 40, 20, .0); }
.pan.filled .ball.on { animation: drop 280ms var(--ease-out) calc(var(--d) * 12ms + var(--j, 0ms)) both, flip var(--fd, 520ms) var(--ease-mask) calc(var(--d) * 12ms + var(--j, 0ms) + 340ms) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-60%) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes flip {
  0% { transform: rotateX(0); background: radial-gradient(circle at 35% 30%, #fff2cf, #f0d39a 45%, #d9b06c 100%); }
  49% { transform: rotateX(90deg); background: radial-gradient(circle at 35% 30%, #fff2cf, #f0d39a 45%, #d9b06c 100%); }
  51% { transform: rotateX(90deg); background: radial-gradient(circle at 35% 30%, #f4c27a, #c9792f 50%, #8f4a1c 100%); }
  100% { opacity: 1; transform: rotateX(0); background: radial-gradient(circle at 35% 30%, #f4c27a, #c9792f 50%, #8f4a1c 100%); }
}
/* Photo tiles (pan.batterImage / goldenImage in site.config.js): the ball ROLLS.
   A fixed round ball holds a strip, golden on top and batter below with a dark seam;
   only the strip moves, so the cooked side rolls up into view while a fixed sphere
   shading layer keeps it reading as a ball, never a flat card. Per ball: D = drop
   start (diagonal wave + jitter), --fd = roll time. Order: drop, set (dome + gloss
   fades), then roll with a small pick lift. */
.pan.sprites .ball { overflow: hidden; background: none; opacity: 0; transform: none; box-shadow: 0 0 3px 1px rgba(0, 0, 0, .5); }
.pan.sprites .ball::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 200%; transform: translateY(-50%);
  background: linear-gradient(to bottom, transparent 45%, rgba(40, 20, 8, .6) 50%, transparent 55%), var(--golden) 0 0 / 100% 50% no-repeat, var(--batter) 0 100% / 100% 50% no-repeat; }
.pan.sprites .ball::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 34% 28%, rgba(255, 245, 225, .35), transparent 22%), radial-gradient(circle, transparent 52%, rgba(0, 0, 0, .55) 100%), rgba(0, 0, 0, var(--shade, 0)); }
.pan.sprites .sheen { display: block; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 36% 30%, rgba(255, 250, 235, .7), transparent 30%); opacity: 0; }
.pan.sprites.filled .ball.on { animation:
  tk-drop 280ms var(--ease-out) calc(var(--d) * 12ms + var(--j, 0ms)) both,
  tk-set 200ms var(--ease-out) calc(var(--d) * 12ms + var(--j, 0ms) + 280ms) both,
  tk-lift var(--fd, 540ms) linear calc(var(--d) * 12ms + var(--j, 0ms) + 480ms) forwards; }
.pan.sprites.filled .ball.on::before { animation: tk-roll var(--fd, 540ms) cubic-bezier(.5, 0, .2, 1) calc(var(--d) * 12ms + var(--j, 0ms) + 480ms) both; }
.pan.sprites.filled .ball.on .sheen { animation: tk-sheen 200ms linear calc(var(--d) * 12ms + var(--j, 0ms) + 280ms) both; }
@keyframes tk-drop { from { translate: 0 -60%; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes tk-set { from { scale: .96; } to { scale: 1; } }
@keyframes tk-sheen { from { opacity: .7; } to { opacity: 0; } }
@keyframes tk-roll { 0% { transform: translateY(-50%); } 72% { transform: translateY(1.5%); } 100% { transform: translateY(0); } }
@keyframes tk-lift { 0% { scale: 1; rotate: 0deg; animation-timing-function: var(--ease-out); } 40% { scale: 1.05; rotate: 5deg; } 80% { scale: .99; rotate: -2deg; } 100% { scale: 1; rotate: 0deg; } }
.rm .pan.sprites.filled .ball.on { opacity: 1; }
.rm .pan.sprites .ball.on::before { transform: none; }
.rm .sheen { display: none !important; }
/* Steam rises once the balls have turned (app.js adds the wisps, then they remove themselves) */
.steam { position: absolute; bottom: 38%; width: 48px; height: 72px; margin-left: -24px; border-radius: 50%; background: radial-gradient(ellipse at 50% 60%, rgba(255, 250, 240, .5), transparent 70%); filter: blur(8px); opacity: 0; pointer-events: none; z-index: 3; animation: steam-rise 1900ms ease-out var(--sd, 0ms) forwards; }
@keyframes steam-rise { 0% { opacity: 0; transform: translate(0, 10px) scale(.6, .5); } 25% { opacity: .5; } 100% { opacity: 0; transform: translate(var(--sx, 0px), -80px) scale(1.2, 1.4); } }
.pan.filled .ball.on.done { opacity: 1; transform: none; background: radial-gradient(circle at 35% 30%, #f4c27a, #c9792f 50%, #8f4a1c 100%); animation: none; }

/* fillings (slow reveal #3: the cross-section wipe) */
.fillings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fill-card {
  position: relative; padding: 14px 10px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(245, 240, 235, .03);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  transition: border-color var(--t-ui) var(--ease-out), background var(--t-ui) var(--ease-out), transform var(--t-tap) var(--ease-spring);
}
.fill-card:active { transform: scale(.96); }
.fill-card[aria-pressed="true"] { border-color: var(--yellow); background: rgba(242, 193, 78, .08); box-shadow: inset 0 0 0 1px var(--yellow); }
.fill-card strong { font-size: 16px; }
.fill-card .gloss { font-size: 12px; color: var(--dim); }
.fill-card .check { position: absolute; top: 8px; right: 8px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; transform: scale(0); transition: transform var(--t-ui) var(--ease-spring); }
.fill-card[aria-pressed="true"] .check { transform: scale(1); }
.ball-art { position: relative; width: 64px; height: 64px; border-radius: 50%; }
.ball-in { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--inside) 0 26%, #fbe6b8 27% 58%, #d58b42 59% 100%); }
/* Filling photo: a cut takoyaki on slate, shown whole (4:3), zooming in a touch when picked */
.fill-frame { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--ink-2); }
/* The chosen sauce on the filling photos (app.js applySauceFx) */
.fill-frame::before, .fill-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 1; }
/* Regular: a glossy sweep once, then a soft wet sheen and slightly richer colour */
.fill-frame::before { background: linear-gradient(110deg, transparent 30%, rgba(255, 242, 220, .55) 48%, transparent 66%) 120% 0 / 260% 100% no-repeat, radial-gradient(70% 55% at 32% 22%, rgba(255, 236, 205, .22), transparent 70%); }
.fx-regular::before { opacity: 1; animation: sauce-sweep 900ms var(--ease-out) both; }
@keyframes sauce-sweep { from { background-position: 120% 0, 0 0; } to { background-position: -40% 0, 0 0; } }
.fx-regular .fill-photo { filter: saturate(1.1) contrast(1.04); }
/* Spicy: heat haze on the photo, a red-orange glow rising from below, drifting heat lines */
.fill-frame::after { background: radial-gradient(90% 70% at 50% 115%, rgba(255, 72, 30, .55), rgba(255, 120, 40, .18) 50%, transparent 75%); }
.fx-spicy::after { animation: heat-pulse 2.4s ease-in-out infinite alternate; }
@keyframes heat-pulse { from { opacity: .55; } to { opacity: 1; } }
.fx-spicy .fill-photo { filter: url(#heatHaze) saturate(1.25) contrast(1.05); }
.fx-heat { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none; }
.fx-spicy .fx-heat { display: block; }
.fx-heat i { position: absolute; bottom: -20%; width: 2px; height: 40%; border-radius: 2px; opacity: 0; background: linear-gradient(to top, transparent, rgba(255, 190, 150, .6), transparent); filter: blur(1px); animation: heat-rise 1.8s ease-in infinite; }
.fx-heat i:nth-child(1) { left: 28%; }
.fx-heat i:nth-child(2) { left: 52%; animation-delay: .6s; }
.fx-heat i:nth-child(3) { left: 74%; animation-delay: 1.2s; }
@keyframes heat-rise { 0% { opacity: 0; transform: translateY(0) scaleY(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-140%) scaleY(1.1) skewX(8deg); } }
.rm .fx-spicy::after { opacity: .8; }
.rm .fx-spicy .fill-photo { filter: saturate(1.2); }
.rm .fx-spicy .fx-heat { display: none; }
.fill-photo { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform var(--t-section) var(--ease-out), opacity var(--t-ui) var(--ease-out); }
.fill-card:hover .fill-photo { opacity: .95; }
.fill-card[aria-pressed="true"] .fill-photo { opacity: 1; transform: scale(1.06); }
.ball-in::before, .ball-in::after { content: ''; position: absolute; width: 16%; height: 16%; border-radius: 40%; background: var(--inside); top: 30%; left: 58%; }
.ball-in::after { top: 56%; left: 30%; width: 12%; height: 12%; }
.ball-out { position: absolute; inset: 0; border-radius: 50%; background:
  repeating-linear-gradient(115deg, transparent 0 9px, rgba(255, 248, 235, .85) 9px 11px, transparent 11px 20px),
  radial-gradient(circle at 35% 30%, #f4c27a, #c9792f 50%, #7d3f17 100%);
  clip-path: inset(0 0 0 0); transition: clip-path 700ms var(--ease-mask); }
.fill-card[aria-pressed="true"] .ball-out { clip-path: inset(0 0 0 100%); }
.fill-caption { margin-top: 12px; font-size: 14px; color: var(--dim); min-height: 1.5em; }

/* sauces: the same glossy drop for both (they're the same colour in real life);
   a heat meter tells them apart. Picking draws the drop's shine; Spicy also
   pops its chilies in one by one and warms the card once. */
.sauces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sauce-card {
  position: relative; overflow: hidden;
  padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(245, 240, 235, .03);
  display: flex; align-items: center; gap: 12px; text-align: left;
  transition: border-color var(--t-ui) var(--ease-out), background var(--t-ui) var(--ease-out), transform var(--t-tap) var(--ease-spring);
}
.sauce-card:active { transform: scale(.96); }
.sauce-card[aria-checked="true"] { border-color: var(--yellow); background: rgba(242, 193, 78, .08); box-shadow: inset 0 0 0 1px var(--yellow); }
.sauce-text { display: grid; gap: 2px; min-width: 0; position: relative; z-index: 1; }
.sauce-text strong { font-size: 16px; }
.sauce-text .gloss { font-size: 12px; color: var(--dim); }
.heat { display: flex; align-items: center; gap: 3px; margin-top: 4px; }
.pip { width: 14px; height: 19px; overflow: visible; }
.pip-pod { fill: rgba(245, 240, 235, .18); }
.pip-stem { fill: none; stroke: rgba(245, 240, 235, .18); stroke-width: 1.6; stroke-linecap: round; }
.pip.hot .pip-stem { stroke: rgba(110, 170, 80, .7); }
.pip.hot .pip-pod { fill: rgba(240, 78, 50, .55); }
.sauce-card[aria-checked="true"] .pip.hot .pip-pod { fill: #ff5533; }
.sauce-card[aria-checked="true"] .pip.hot .pip-stem { stroke: #7cc35a; }
.sauce-card[aria-checked="true"] .pip.hot { animation: pip-pop 340ms var(--ease-spring) calc(var(--i) * 90ms) both; }
@keyframes pip-pop { from { transform: scale(.4); } to { transform: none; } }
.heat-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-left: 6px; }
.sauce-card.hot-card .heat-label { color: #ff8a6e; }
.sauce-card.hot-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(120% 120% at 15% 50%, rgba(232, 64, 42, .3), transparent 62%); }
.sauce-card.hot-card[aria-checked="true"]::after { opacity: .4; animation: heat-glow 900ms ease-out both; }
@keyframes heat-glow { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: .4; } }

.allergen { padding-top: 6px; }
.allergen-panel { margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); font-size: 14px; display: grid; gap: 6px; }

/* order slip: bottom bar on phones */
.slip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(17, 14, 12, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform var(--t-ui) var(--ease-out); }
.slip.show { transform: none; }
.slip-inner { display: flex; align-items: center; gap: 14px; max-width: var(--max); margin: 0 auto; }
.slip-text { flex: 1; min-width: 0; }
.slip-label { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.slip-line { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip-total { font: 700 20px/1 var(--serif); color: var(--gold); }
.slip .btn { min-height: 46px; padding: 0 20px; }
body.has-slip { padding-bottom: 88px; }

@media (min-width: 960px) {
  .builder { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 48px; }
  .slip { position: sticky; top: 24px; left: auto; right: auto; bottom: auto; transform: none; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; margin-top: 96px; }
  .slip-inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 22px; border-radius: 22px; background: var(--paper); color: var(--ink-on-paper); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
  .slip-label { color: var(--dim-on-paper); }
  .slip-line { white-space: normal; font-size: 16px; }
  .slip-total { font-size: 28px; color: var(--ink-on-paper); }
  .slip .btn { min-height: 52px; }
  body.has-slip { padding-bottom: 0; }
}

/* ── reviews ─────────────────────────────────────────────────────────── */
.reviews { padding: 40px 0; }
.scrib { position: relative; white-space: nowrap; color: var(--red-hi); margin-left: .12em; }
.scrib-svg { position: absolute; left: -8px; top: -6px; width: calc(100% + 16px); height: calc(100% + 12px); overflow: visible; pointer-events: none; }
.scrib-svg path { fill: none; stroke: var(--red-hi); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal.in .scrib-svg path { transition: stroke-dashoffset 900ms var(--ease-out) 300ms; stroke-dashoffset: 0; }
.review-strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.review-strip::-webkit-scrollbar { display: none; }
.review-card { scroll-snap-align: start; border-radius: 20px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 360px; }
.review-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.review-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.review-stars { color: var(--yellow); font-size: 14px; letter-spacing: 2px; }
.review-text { font-size: 16px; }
.review-name { font-size: 14px; color: var(--dim); }
.review-ask { padding: 20px; gap: 10px; justify-content: center; }
.review-ask form { display: grid; gap: 10px; margin-top: 6px; }
.stars-input { display: flex; gap: 4px; }
.stars-input button { background: none; border: 0; font-size: 26px; line-height: 1; padding: 2px; color: rgba(245, 240, 235, .25); transition: transform var(--t-tap) var(--ease-spring), color var(--t-tap); }
.stars-input button.on { color: var(--yellow); }
.stars-input button:active { transform: scale(.85); }
.rv-fields { display: grid; gap: 10px; }
.form-error { color: #ff8a7a; font-size: 14px; }
.review-thanks { color: var(--yellow); }
@media (min-width: 960px) { .review-strip { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; } }

/* ── how pickup works ────────────────────────────────────────────────── */
.how { padding: 40px 0; }
.how-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.how-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.how-steps .n { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; }
.how-steps strong { display: block; }
.how-steps span { font-size: 14px; color: var(--dim); }
@media (min-width: 720px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }
.how-info { display: grid; gap: 14px; }
.pay { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); font-size: 14px; }
.pay-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: contain; background: #fff; }
.pay-chip em { font-style: normal; font-size: 12px; color: var(--yellow); }
.info-rows { display: grid; gap: 10px; }
.info-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; }
.info-row > span { flex: 1; display: grid; }

/* ── footer ──────────────────────────────────────────────────────────── */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--line); text-align: center; display: grid; gap: 16px; }
.origin { font: 700 clamp(20px, 5vw, 28px)/1.3 var(--serif); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ── order sheet ─────────────────────────────────────────────────────── */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(10, 8, 7, .6); opacity: 0; transition: opacity var(--t-ui) var(--ease-out); }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink-on-paper); border-radius: 26px 26px 0 0;
  padding: 26px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  transform: translateY(102%); transition: transform var(--t-ui) var(--ease-out);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .4);
}
.sheet::before { content: ''; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--paper-line); }
.sheet.open { transform: none; }
.sheet-close { position: absolute; top: 14px; right: 14px; }
.sheet-view { display: grid; gap: 4px; max-width: 520px; margin: 0 auto; }
.sheet-view.enter { animation: rise var(--t-ui) var(--ease-out) both; }
.eyebrow-dark { color: var(--red); }
.h2-dark { color: var(--ink-on-paper); font-size: clamp(26px, 6vw, 34px); margin-bottom: 10px; }
.muted-dark { color: var(--dim-on-paper); font-size: 14px; }
.hint-dark { color: var(--dim-on-paper); font-size: 14px; margin-top: 8px; }
.fine-dark { color: var(--dim-on-paper); }
@media (min-width: 720px) {
  .sheet { left: auto; top: 0; width: 480px; max-height: none; border-radius: 0; padding: 40px 32px; transform: translateX(102%); box-shadow: -20px 0 60px rgba(0, 0, 0, .4); }
  .sheet::before { display: none; }
}

.sum { padding: 14px 16px; border-radius: 14px; background: var(--paper-2); margin-bottom: 8px; }
.sum-line { font-weight: 500; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; font: 700 20px/1.2 var(--serif); }
.advance-note { padding: 12px 14px; border-radius: 12px; background: rgba(210, 75, 58, .1); color: var(--ink-on-paper); font-size: 14px; }

.group { border: 0; margin: 0; padding: 14px 0 0; min-width: 0; }
.group-tight { padding-top: 8px; }
.label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim-on-paper); margin-bottom: 8px; padding: 0; }
.field { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(245, 240, 235, .04); color: var(--text); font: 400 16px/1.4 var(--sans); }
.field-light { background: #fffdf9; color: var(--ink-on-paper); border-color: var(--paper-line); }
.field:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(210, 75, 58, .18); }
.field.bad { border-color: var(--red); background: #fff1ee; }
.field-code { text-transform: uppercase; letter-spacing: .1em; }
.field-code.ok { border-color: var(--ok); }
textarea.field { resize: vertical; }
.code-fb { font-size: 14px; margin-top: 6px; min-height: 0; }
.code-fb.ok { color: var(--ok); } .code-fb.bad { color: var(--red); } .code-fb.info { color: var(--dim-on-paper); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips-time { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); overflow: visible; }
.chip { flex-shrink: 0; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--paper-line); background: #fffdf9; color: var(--ink-on-paper); font-size: 14px; font-weight: 500; display: grid; gap: 0; text-align: center; transition: transform var(--t-tap) var(--ease-spring), background var(--t-tap), border-color var(--t-tap); }
.chip small { font-size: 12px; font-weight: 400; color: var(--dim-on-paper); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--ink-on-paper); color: var(--paper); border-color: var(--ink-on-paper); }
.chip[aria-pressed="true"] small { color: var(--paper-2); }
.chip:disabled { opacity: .38; text-decoration: line-through; cursor: not-allowed; }

.dep-note { margin: 16px 0 12px; font-size: 14px; color: var(--dim-on-paper); }
.ticket { margin: 14px 0; border-radius: 16px; background: #fffdf9; border: 1px dashed var(--paper-line); padding: 6px 16px; }
.ticket-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--paper-line); font-size: 14px; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row span { width: 72px; color: var(--dim-on-paper); flex-shrink: 0; }
.ticket-row strong { flex: 1; word-break: break-word; }
.upload { display: block; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--paper-line); font-size: 14px; cursor: pointer; margin-bottom: 12px; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-preview { max-height: 160px; border-radius: 12px; margin: 0 auto 12px; }

/* locked in (slow reveal #4) */
.sheet-done { text-align: center; justify-items: center; }
.done-art { position: relative; width: 180px; height: 150px; margin: 6px auto 8px; }
.done-logo { width: 110px; margin: 10px auto 0; position: relative; z-index: 1; }
.flakes-done .flake { opacity: 0; }
.flakes-done.play .flake { animation: flake-rise 900ms var(--ease-out) calc(var(--i) * 70ms) both, sway 2.4s ease-in-out calc(900ms + var(--i) * 70ms) infinite alternate; }
@keyframes flake-rise { from { opacity: 0; transform: rotate(var(--r)) translateY(40px); } to { opacity: .9; transform: rotate(calc(-8deg + var(--r))) translateY(0); } }
.stamp { position: absolute; right: -6px; bottom: 6px; z-index: 2; padding: 6px 12px; border: 3px solid var(--red); border-radius: 8px; color: var(--red); font: 900 18px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-10deg); background: rgba(247, 241, 232, .9); }
.sheet-done.enter .stamp { animation: thump 260ms var(--ease-spring) 520ms both; }
@keyframes thump { from { opacity: 0; transform: rotate(-10deg) scale(1.5); } to { opacity: 1; transform: rotate(-10deg) scale(1); } }
.done-when { font-weight: 700; margin: 8px 0; }
.done-note { padding: 10px 14px; border-radius: 12px; background: rgba(63, 154, 90, .12); font-size: 14px; margin: 4px 0; }
.done-note-soft { background: var(--paper-2); }
.share { width: 100%; padding: 16px; margin: 12px 0; border-radius: 16px; background: var(--paper-2); display: grid; gap: 8px; text-align: left; }
.share-row { display: flex; gap: 10px; align-items: center; }
.share-code { flex: 1; font: 700 24px/1 var(--serif); letter-spacing: .08em; }
.consent { display: flex; gap: 8px; font-size: 12px; color: var(--dim-on-paper); align-items: flex-start; }
.sheet-done .btn { margin-top: 8px; }

/* ── toasts + lightbox ───────────────────────────────────────────────── */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line); color: var(--text); font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: rise var(--t-ui) var(--ease-out) both; }
.toast.error { border-color: rgba(210, 75, 58, .6); }
.toast.out { opacity: 0; transition: opacity var(--t-ui); }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(8, 6, 5, .9); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-height: 86vh; border-radius: 16px; animation: rise var(--t-ui) var(--ease-out) both; }
.lightbox-close { position: absolute; top: 16px; right: 16px; }

/* ── reduced motion / data saver ─────────────────────────────────────── */
.rm *, .rm *::before, .rm *::after { animation: none !important; transition: none !important; }
.rm .reveal, .rm .scrib-svg path { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
.rm .pan.filled .ball.on { opacity: 1; transform: none; background: radial-gradient(circle at 35% 30%, #f4c27a, #c9792f 50%, #8f4a1c 100%); }
.rm .flakes, .rm .steam { display: none; }
