@font-face { font-family: 'Alfa Slab One'; src: url(../fonts/alfa-slab-one.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(../fonts/figtree.woff2) format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  /* Named after the shop floor: the photos are shot on a dark backdrop and old wood. */
  --fryer: #15100c;      /* page */
  --char: #211913;       /* surfaces */
  --char-2: #2d231b;     /* raised */
  --line: rgba(251, 241, 222, .13);
  --paper: #fbf1de;      /* text */
  --salt: #c3b397;       /* secondary text */
  --gold: #EECA09;       /* Nimo's yellow (their logo): primary action */
  --on-gold: #1b1208;
  --green: #3fae7c;      /* open */
  --green-deep: #183d2d;
  --ketchup: #ef6049;    /* closed, errors */
  --radius: 14px;
  --display: 'Alfa Slab One', 'Rockwell', 'Georgia', serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-h: 60px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 64px); }
body {
  margin: 0; background: var(--fryer); color: var(--paper);
  font: 400 1rem/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Online ordering on or off (core.js sets html[data-mode]). Until the API has answered, the phone copy shows:
   the site never promises online ordering it has not confirmed. */
[data-mode='online'] .when-phone, :root:not([data-mode='online']) .when-online { display: none !important; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 14px; border-radius: 8px; font-weight: 700; transform: translateY(calc(-100% - 40px)); }
.skip:focus { transform: none; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.head {
  position: sticky; top: 0; z-index: 40; height: var(--head-h);
  background: rgba(21, 16, 12, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.mark { font-family: var(--display); font-size: 1.6rem; letter-spacing: .01em; text-decoration: none; color: var(--gold); line-height: 1; }
.mark img { display: block; width: auto; height: 34px; }
.mark small { display: block; font: 600 .62rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--salt); margin-top: 4px; }
.head nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.head nav a.link { text-decoration: none; font-weight: 600; padding: 12px 10px; border-radius: 10px; color: var(--salt); }
.head nav a.link:hover, .head nav a.link[aria-current] { color: var(--paper); }
.status-pill { display: none; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--salt); padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; }
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ketchup); }
[data-status][data-open='yes']::before { background: var(--green); box-shadow: 0 0 0 4px rgba(63, 174, 124, .18); }
.basket-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: var(--gold); color: var(--on-gold); font-weight: 800; text-decoration: none; border-radius: 99px;
}
.basket-btn svg { width: 20px; height: 20px; }
.basket-btn .count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--on-gold); color: var(--gold); font-size: .8rem; }
@media (min-width: 720px) { .status-pill { display: inline-flex; } }
@media (max-width: 420px) { .head nav a.link.hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 99px; font-weight: 800; font-size: 1.05rem; text-decoration: none; border: 0;
  transition: transform .18s var(--ease), background-color .18s;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: #f7d93a; }
.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--salt); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; } /* no scroll hold: scrolling moves straight on (Master: "too fiddly") */
.hero-stage { position: sticky; top: var(--head-h); height: calc(100vh - var(--head-h)); height: calc(100svh - var(--head-h)); overflow: hidden; }
.hero-stage::before { /* heat-lamp glow behind the pizza */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 50% 62%, rgba(244, 138, 40, .28), transparent 70%),
              radial-gradient(90% 60% at 50% 110%, rgba(24, 61, 45, .55), transparent 70%);
}
.hero-copy { position: relative; z-index: 2; padding-top: clamp(20px, 5vh, 56px); }
.eyebrow { font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.hero h1 {
  font-family: var(--display); font-weight: 400; margin: 0; line-height: .92; letter-spacing: -.01em;
  font-size: clamp(3rem, 13vw, 7.4rem); text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.hero .lede { max-width: 30ch; color: var(--salt); font-size: 1.08rem; margin: 14px 0 0; }
.hero-actions { position: absolute; z-index: 3; left: 0; right: 0; bottom: max(20px, env(safe-area-inset-bottom)); }
.hero-actions .wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn { flex: 1 1 160px; }
.pizza-stage { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; }
.pizza-stage canvas { width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .2s var(--ease); }
.pizza-stage.ready canvas { opacity: 1; }
.pizza-stage.ready .pizza-poster { opacity: 0; }
.pizza-poster {
  position: absolute; width: min(88vw, 62vh); aspect-ratio: 1; top: 58%; left: 50%;
  transform: translate(-50%, -50%) perspective(900px) rotateX(52deg);
  transition: opacity .2s var(--ease);
}
.pizza-poster img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 40px 60px -20px rgba(0, 0, 0, .8); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-hint { position: absolute; z-index: 2; right: 16px; top: 45%; writing-mode: vertical-rl; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--salt); opacity: .7; }
@media (min-width: 900px) {
  .hero-copy { padding-top: 12vh; }
  .hero h1 { font-size: clamp(5rem, 8vw, 8rem); }
  .pizza-poster { left: min(75%, calc(50% + 460px)); top: 56%; width: min(38vw, 60vh); }
  .hero-stage::before { background: radial-gradient(40% 50% at 75% 58%, rgba(244, 138, 40, .28), transparent 70%), radial-gradient(90% 60% at 50% 110%, rgba(24, 61, 45, .55), transparent 70%); }
  .hero-actions { position: absolute; bottom: auto; top: calc(12vh + 29rem); }
  .hero-actions .wrap { max-width: 1180px; }
  .hero-actions .btn, .hero-actions .btn-gold.when-phone { flex: 0 0 auto; }
}

/* Phones with large text (text-only zoom or a big default font size): the fixed hero layout would overlap, so it
   stacks by content. em in a media query follows the user's font size, so this only matches when text is large. */
@media (max-width: 899px) and (max-height: 36em) {
  .hero { height: auto; }
  .hero-stage { position: relative; top: 0; height: auto; padding-bottom: 24px; }
  .pizza-stage { position: relative; inset: auto; height: min(70vw, 320px); }
  .pizza-poster { top: 50%; width: min(60vw, 280px); }
  .hero-actions { position: relative; bottom: auto; margin-top: 8px; }
}

/* ---------- status band ---------- */
.band { position: relative; z-index: 5; background: var(--char); border-block: 1px solid var(--line); }
.band .wrap { display: grid; gap: 18px; padding-block: 26px; }
.band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 5vw, 2.2rem); margin: 0; line-height: 1.05; display: flex; align-items: center; gap: 12px; }
.band h2::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ketchup); }
.band[data-open='yes'] h2::before { background: var(--green); box-shadow: 0 0 0 6px rgba(63, 174, 124, .2); }
.band p { margin: 6px 0 0; color: var(--salt); }
.times { display: flex; gap: 10px; flex-wrap: wrap; }
.time-chip { flex: 1 1 140px; background: var(--char-2); border-radius: var(--radius); padding: 12px 14px; }
.time-chip b { display: block; font-size: 1.35rem; }
.time-chip span { color: var(--salt); font-size: .9rem; }
@media (min-width: 900px) { .band .wrap { grid-template-columns: 1.4fr 1fr; align-items: center; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 10vw, 110px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1; margin: 0; }
.section-head a { color: var(--gold); font-weight: 700; text-decoration: none; padding: 10px 0; white-space: nowrap; }

/* popular list */
.popular { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .popular { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .popular { grid-template-columns: repeat(3, 1fr); } }
.pop {
  display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px; text-decoration: none;
  background: var(--char); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s var(--ease);
}
.pop:hover { border-color: var(--gold); }
.pop:active { transform: scale(.98); }
.pop .rank { font-family: var(--display); color: var(--gold); font-size: 1.3rem; width: 1.6em; flex: none; }
.pop .t { font-weight: 700; }
.pop .d { color: var(--salt); font-size: .88rem; }
.pop .p { margin-left: auto; font-weight: 800; white-space: nowrap; }

/* photo-led category bands ("Off the pass"). Without the scroll scenes this is a plain zig-zag list. */
.counter { position: relative; padding-block: clamp(56px, 10vw, 110px) 0; overflow-x: clip; }
.counter-head { margin-bottom: 26px; }
.counter-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1; margin: 0; }
.counter-track { width: min(1180px, 100% - 32px); margin-inline: auto; }
.counter-rail, .dish-word { display: none; }
.dishes { display: grid; gap: clamp(40px, 8vw, 90px); }
.dish { display: grid; gap: 18px; align-items: center; text-decoration: none; }
.dish figure { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--char); }
.dish img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform .3s var(--ease); }
.dish h3 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 9vw, 4.2rem); line-height: .95; margin: 0 0 8px; }
.dish p { margin: 0 0 14px; color: var(--salt); max-width: 40ch; }
.dish .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--gold); min-height: 44px; }
.dish .go svg { width: 20px; transition: transform .2s var(--ease); }
.dish:hover .go svg { transform: translateX(4px); }
@media (min-width: 900px) {
  .dish { grid-template-columns: 1.35fr 1fr; gap: 56px; }
  .dish:nth-child(even) figure { order: 2; }
}

/* reveals */
[data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .22s var(--ease), transform .22s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.dish[data-reveal] { opacity: 1; transform: none; }
.dish[data-reveal] figure { clip-path: inset(6% 3% 6% 3% round 22px); transition: clip-path .28s var(--ease); }
.dish[data-reveal].in figure { clip-path: inset(0 0 0 0 round 22px); }
.dish[data-reveal].in img { transform: scale(1); }
.dish[data-reveal] .dish-copy { opacity: 0; transform: translateY(8px); transition: opacity .22s .04s var(--ease), transform .22s .04s var(--ease); }
.dish[data-reveal].in .dish-copy { opacity: 1; transform: none; }

/* hours + find us */
.visit { display: grid; gap: 28px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; gap: 48px; } }
.card { background: var(--char); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card h3 { margin: 0 0 14px; font-size: 1.1rem; letter-spacing: .02em; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { font-weight: 600; }
.hours td { color: var(--salt); }
.hours tr[aria-current] th, .hours tr[aria-current] td { color: var(--gold); font-weight: 700; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.addr { font-style: normal; font-size: 1.15rem; line-height: 1.5; margin-bottom: 18px; }
.stack { display: grid; gap: 10px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom)); color: var(--salt); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; justify-content: space-between; }
.foot strong { font-family: var(--display); font-weight: 400; color: var(--paper); font-size: 1.3rem; }
.foot a { color: var(--paper); }
.foot a.tap, .menu-allergy a.tap { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
.foot-allergy { flex-basis: 100%; margin: 4px 0 0; font-size: .92rem; }
.foot-allergy b { color: var(--paper); }

/* Text that comes from the menu or a customer (names, notes, addresses) can be one long unbroken word: wrap it anywhere. */
.item .t, .item .d, .sheet h2, .sheet .desc, .opt span, .line .t, .line .o, .pop .t, .pop .d, .track-summary, .notice { overflow-wrap: anywhere; }
.item .body, .pop > span:first-child, .line > * { min-width: 0; }
.item .sizes .pair { white-space: nowrap; }

/* ---------- menu page ---------- */
.menu-top { padding-block: 28px 8px; }
.menu-top h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 9vw, 4rem); margin: 0; line-height: 1; }
.menu-top p { color: var(--salt); margin: 8px 0 0; }
.phone-order { margin: 16px 0 6px; padding: 16px 18px; border-radius: var(--radius); background: var(--char); border: 2px solid var(--gold); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.phone-order p { flex: 1 1 280px; margin: 0; color: var(--paper); }
.phone-order strong { color: var(--gold); }
.phone-order .btn { flex: 0 0 auto; }
/* Until /api/menu answers, grey rows hold the menu's space so nothing jumps under a thumb on a slow phone. */
.menu-list[aria-busy='true'] { min-height: 160vh; }
.menu-skeleton { display: grid; gap: 8px; padding-top: 28px; }
@media (min-width: 800px) { .menu-skeleton { grid-template-columns: 1fr 1fr; } }
.menu-skeleton i { display: block; height: 92px; border-radius: var(--radius); background: linear-gradient(90deg, var(--char) 0 40%, var(--char-2) 50%, var(--char) 60%) 0 0 / 250% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.cats {
  position: sticky; top: var(--head-h); z-index: 30; background: rgba(21, 16, 12, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.cats ul { list-style: none; margin: 0 auto; padding: 10px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 1180px; }
.cats ul::-webkit-scrollbar { display: none; }
.cats a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; white-space: nowrap;
  text-decoration: none; font-weight: 700; font-size: .95rem; background: var(--char); color: var(--salt); border: 1px solid var(--line);
}
.cats a[aria-current='true'] { background: var(--paper); color: var(--fryer); border-color: var(--paper); }
.menu-cat { padding-top: 36px; }
.menu-cat h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 0 0 14px; line-height: 1; }
.cat-photo { margin: 0 0 16px; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--char); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 800px) { .items { grid-template-columns: 1fr 1fr; } }
.item {
  width: 100%; text-align: left; display: flex; gap: 14px; align-items: flex-start; padding: 16px; min-height: 76px;
  background: var(--char); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .15s var(--ease);
}
.item:hover { border-color: var(--salt); }
.item:active { transform: scale(.985); }
.item .body { flex: 1; min-width: 0; }
.item .t { font-weight: 700; font-size: 1.05rem; display: block; }
.item .d { color: var(--salt); font-size: .9rem; display: block; margin-top: 2px; }
.item .sizes { color: var(--salt); font-size: .85rem; display: block; margin-top: 6px; }
.item .p { font-weight: 800; white-space: nowrap; }
.item .p small { display: block; font-weight: 600; font-size: .72rem; color: var(--salt); text-align: right; }
.item .plus { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--char-2); color: var(--gold); }
.tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-left: 6px; vertical-align: 2px; }

/* basket bar (menu, mobile) */
.basket-bar {
  position: fixed; z-index: 35; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 20px;
  background: var(--gold); color: var(--on-gold); border-radius: 99px; text-decoration: none; font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.has-bar { padding-bottom: 96px; }

/* ---------- item sheet ---------- */
dialog.sheet {
  padding: 0; border: 0; color: var(--paper); background: var(--char); width: 100%; max-width: 560px;
  max-height: 92vh; max-height: 92dvh; margin: auto auto 0; border-radius: 22px 22px 0 0; overflow: hidden;
}
@media (min-width: 640px) { dialog.sheet { margin: auto; border-radius: 22px; } }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .62); }
dialog.sheet[open] { animation: sheet-in .16s var(--ease); display: flex; flex-direction: column; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 20px; }
.sheet-photo { margin: 0 -20px 16px; aspect-ratio: 2 / 1; overflow: hidden; }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; }
.sheet h2 { margin: 0; font-size: 1.45rem; line-height: 1.2; }
.sheet .desc { color: var(--salt); margin: 6px 0 0; }
.close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--char-2); display: grid; place-items: center; }
.close svg { width: 20px; height: 20px; }
fieldset.group { border: 0; padding: 0; margin: 22px 0 0; }
fieldset.group legend { display: flex; width: 100%; justify-content: space-between; align-items: center; font-weight: 800; padding: 0; margin-bottom: 10px; }
.req { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 99px; background: var(--char-2); color: var(--salt); }
.req.must { background: var(--green-deep); color: #bfeed6; }
.group.invalid .req.must { background: #4a1a12; color: #ffc9bf; }
.group-error { color: var(--ketchup); font-weight: 700; margin: 8px 0 0; font-size: .92rem; }
.opt {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; margin-top: 8px; border-radius: 12px;
  background: var(--char-2); border: 2px solid transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.opt:has(input:checked) { border-color: var(--gold); }
.opt:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.opt input { width: 20px; height: 20px; accent-color: var(--gold); margin: 0; }
.opt span { flex: 1; min-width: 0; font-weight: 600; }
.opt b { font-weight: 700; color: var(--salt); }
.sheet-foot { display: flex; gap: 10px; align-items: center; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--char); }
.qty { display: inline-flex; align-items: center; background: var(--char-2); border-radius: 99px; }
.qty button { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; font-size: 1.3rem; font-weight: 700; color: var(--paper); }
.qty output { min-width: 26px; text-align: center; font-weight: 800; }
.sheet-foot .btn { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; font-size: 1rem; white-space: nowrap; }
@media (max-width: 380px) { .sheet-foot .btn .sep { display: none; } }
.sheet-allergy { margin: 22px 0 0; font-size: .9rem; color: var(--salt); }
.sheet-allergy a, .allergy a, .menu-allergy a { color: var(--gold); font-weight: 700; }
.menu-allergy { font-size: .92rem; }
.allergy { margin: 22px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--char); border: 1px solid var(--line); font-size: .92rem; color: var(--salt); }
.allergy b { color: var(--paper); }
.chars-left { margin: 4px 0 0; text-align: right; }
.chars-left.low { color: var(--gold); font-weight: 700; }
.hint-soft { margin: 0; color: var(--gold); font-size: .9rem; }


.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--paper); color: var(--fryer); font-weight: 700; padding: 12px 18px; border-radius: 99px;
  transition: opacity .2s, transform .2s var(--ease); pointer-events: none; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- checkout ---------- */
.co { display: grid; gap: 22px; padding-block: 28px 60px; }
@media (min-width: 960px) { .co { grid-template-columns: 1.3fr 1fr; align-items: start; } .co aside { position: sticky; top: calc(var(--head-h) + 20px); } }
.co h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 8vw, 3.4rem); margin: 0; line-height: 1; }
.notice { border-radius: var(--radius); padding: 14px 16px; background: #3a1d14; border: 1px solid #6b3122; color: #ffd9cf; }
.notice.info { background: var(--green-deep); border-color: #2b6b4f; color: #d6f5e6; }
.method { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0; }
.method legend { font-weight: 800; margin-bottom: 10px; }
.method label {
  display: block; padding: 14px; border-radius: var(--radius); background: var(--char); border: 2px solid var(--line); cursor: pointer; min-height: 88px;
}
.method label:has(input:checked) { border-color: var(--gold); background: var(--char-2); }
.method label:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.method label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.method input { position: absolute; opacity: 0; }
.method b { display: block; font-size: 1.08rem; }
.method span { color: var(--salt); font-size: .88rem; }
.method-note { grid-column: 1 / -1; margin: 0; color: var(--salt); font-size: .9rem; }
.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line .t { font-weight: 700; }
.line .o { color: var(--salt); font-size: .88rem; grid-column: 1; }
.line .lt { font-weight: 800; text-align: right; }
.line .qty { grid-column: 1; justify-self: start; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-weight: 700; }
.field .hint { color: var(--salt); font-size: .85rem; font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; font-size: 1rem;
  background: var(--fryer); border: 1.5px solid rgba(251, 241, 222, .28);
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(238, 202, 9, .3); }
.field [aria-invalid='true'] { border-color: var(--ketchup); }
.field .err { color: var(--ketchup); font-weight: 700; font-size: .9rem; margin: 0; }
.bill { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bill th, .bill td { padding: 8px 0; font-weight: 400; text-align: left; }
.bill td { text-align: right; }
.bill .total th, .bill .total td { font-weight: 800; font-size: 1.3rem; border-top: 1px solid var(--line); padding-top: 14px; }
.small { color: var(--salt); font-size: .85rem; }
.pay { width: 100%; margin-top: 14px; }
.empty { text-align: center; padding: 50px 20px; }
.empty h2 { font-family: var(--display); font-weight: 400; font-size: 2rem; margin: 0 0 10px; }

/* ---------- scroll scenes (js/scenes.js adds these classes once GSAP has loaded) ---------- */
/* Desktop: the counter pins and the dishes slide past like plates along the pass. */
.counter.scene-h { padding-top: 0; }
.counter.scene-h .counter-pin { height: calc(100vh - var(--head-h)); height: calc(100svh - var(--head-h)); overflow: hidden; display: flex; flex-direction: column; }
.counter.scene-h .counter-head { padding-top: clamp(24px, 6vh, 64px); margin-bottom: 0; flex: none; }
.counter.scene-h .counter-track { flex: 1; width: max-content; margin: 0; display: flex; align-items: center; gap: 7vw; padding-inline: max(16px, (100vw - 1180px) / 2) 12vw; will-change: transform; }
.counter.scene-h .dish { position: relative; flex: none; grid-template-columns: auto minmax(260px, 30vw); gap: 48px; isolation: isolate; }
.counter.scene-h .dish:nth-child(even) figure { order: 0; }
.counter.scene-h .dish figure { height: min(54vh, 520px); aspect-ratio: 4 / 3; clip-path: none; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.counter.scene-h .dish img { width: 120%; max-width: none; margin-left: -10%; transform: none; transition: none; will-change: transform; }
.counter.scene-h .dish-copy { opacity: 1; transform: none; transition: none; }
.counter.scene-h .dish-word { /* rises from behind the plate: only its top half shows */
  display: block; position: absolute; z-index: -1; left: -4%; top: 0; translate: 0 -50%; pointer-events: none; white-space: nowrap;
  font: 400 clamp(6rem, 12vw, 12rem)/1 var(--display); color: transparent; -webkit-text-stroke: 2px rgba(238, 202, 9, .42);
}
.counter.scene-h .counter-rail { display: block; position: relative; flex: none; padding-block: 18px 26px; }
/* The plates at the screen edges fade out instead of showing words cut mid-letter. */
.counter.scene-h .counter-pin { position: relative; }
.counter.scene-h .counter-head, .counter.scene-h .counter-rail { position: relative; z-index: 2; }
.counter.scene-h .counter-pin::before, .counter.scene-h .counter-pin::after {
  content: ''; position: absolute; z-index: 1; top: 0; bottom: 0; width: clamp(60px, 12vw, 240px); pointer-events: none;
}
.counter.scene-h .counter-pin::before { left: 0; background: linear-gradient(90deg, var(--fryer) 20%, transparent); }
.counter.scene-h .counter-pin::after { right: 0; background: linear-gradient(-90deg, var(--fryer) 20%, transparent); }
.counter-rail ol { list-style: none; margin: 0; padding: 0 0 12px; display: flex; justify-content: space-between; }
.counter-rail li { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--salt); opacity: .6; transition: color .3s, opacity .3s; }
.counter-rail li.on { color: var(--gold); opacity: 1; }
.counter-rail::before, .counter-fill { content: ''; position: absolute; left: 0; right: 0; bottom: 26px; height: 2px; background: var(--line); }
.counter-fill { background: var(--gold); transform: scaleX(0); transform-origin: left; }
/* Phones: the plates come up the page; each photo opens from a smaller window and the word slides across it. */
.counter.scene-v .counter-track { padding-top: 34px; }
.counter.scene-v .dish { position: relative; }
.counter.scene-v .dish figure { clip-path: none; transition: none; }
.counter.scene-v .dish img { transform: none; transition: none; will-change: transform; }
.counter.scene-v .dish-copy { opacity: 1; transform: none; transition: none; }
.counter.scene-v .dish-word {
  display: block; position: absolute; z-index: 2; left: 0; top: 0; translate: 0 -46%; pointer-events: none; white-space: nowrap;
  font: 400 clamp(4.4rem, 22vw, 7rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(238, 202, 9, .7);
}
@media (max-width: 500px) { .counter.scene-v .dish-word { display: none; } } /* too wide for a phone: cut words read as a mistake */

/* The wall: every photo from the shoot in three rows, each at its own depth. */
.wall { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(120px, 22vw, 220px); }
.wall-rows { position: absolute; inset: 0; z-index: -2; display: flex; flex-direction: column; justify-content: center; gap: clamp(10px, 1.4vw, 18px); }
.wall-row { display: flex; gap: clamp(10px, 1.4vw, 18px); width: max-content; will-change: transform; }
.wall-row img { width: var(--tile); height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; background: var(--char); }
.wall-back { --tile: 132px; filter: brightness(.42) saturate(.75); margin-left: -90px; }
.wall-mid { --tile: 176px; filter: brightness(.58) saturate(.9); margin-left: -260px; }
.wall-front { --tile: 226px; filter: brightness(.72); margin-left: -40px; }
@media (min-width: 900px) { .wall-back { --tile: 200px; } .wall-mid { --tile: 264px; } .wall-front { --tile: 330px; } }
.wall::before { /* dark pool in the middle so the words read, fading into the page top and bottom */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(56% 40% at 50% 50%, rgba(21, 16, 12, .88), rgba(21, 16, 12, .4) 62%, rgba(21, 16, 12, 0) 100%),
              linear-gradient(var(--fryer), transparent 18%, transparent 82%, var(--fryer));
}
.wall-copy { text-align: center; }
.wall-copy h2 { font: 400 clamp(3.2rem, 15vw, 8.5rem)/.9 var(--display); margin: 0; text-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.wall-copy p { color: var(--paper); margin: 16px auto 26px; max-width: 32ch; font-size: 1.08rem; }

/* ---------- add to basket ---------- */
.fly { position: fixed; z-index: 90; left: 0; top: 0; pointer-events: none; }
.fly-token {
  width: 72px; height: 72px; border-radius: 50%; background: var(--gold) center / cover no-repeat; color: var(--on-gold);
  display: grid; place-items: center; font: 800 1.2rem var(--body); box-shadow: 0 0 0 3px var(--gold), 0 14px 30px rgba(0, 0, 0, .55);
}
.basket-btn.caught::after { content: ''; position: absolute; inset: 0; border-radius: inherit; animation: caught .32s var(--ease) forwards; pointer-events: none; }
@keyframes caught { from { box-shadow: 0 0 0 0 rgba(238, 202, 9, .7); } to { box-shadow: 0 0 0 18px rgba(238, 202, 9, 0); } }
.item.sold { opacity: .55; cursor: not-allowed; }
.item.sold .plus { display: none; }
.tag-sold { color: var(--ketchup); }
.opt.sold { opacity: .5; cursor: not-allowed; }
.opt small { color: var(--ketchup); font-weight: 700; margin-left: 6px; }

/* menu category photos drift inside their frames while you scroll (CSS only, where supported) */
@supports (animation-timeline: view()) {
  .cat-photo img { scale: 1.16; animation: drift linear both; animation-timeline: view(); }
  @keyframes drift { from { translate: 0 -6%; } to { translate: 0 6%; } }
}

/* ---------- placing and tracking an order ---------- */
.pay.is-sending { opacity: 1 !important; background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: sweep 1.1s linear infinite; }
@keyframes sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.track { display: grid; gap: 22px; padding-block: 28px 60px; }
@media (min-width: 960px) { .track { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.ticket { position: relative; background: var(--char); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 36px); overflow: hidden; }
.ticket::before { /* the torn top edge of a docket */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: radial-gradient(circle at 8px -2px, var(--fryer) 7px, transparent 7.5px) 0 0 / 16px 10px repeat-x;
}
.ticket h1 { margin: 6px 0 0; line-height: .9; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ticket-label { display: block; font: 700 1rem var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--salt); }
.ticket-no { display: block; font: 400 clamp(4.5rem, 22vw, 8rem)/.9 var(--display); color: var(--gold); }
.ticket.bump .ticket-no { animation: bump .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.12) rotate(-2deg); } }
.ticket-ref { margin: 8px 0 0; }
.test-tag { display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 6px; background: repeating-linear-gradient(135deg, #1b1208 0 10px, #2b2110 10px 20px); color: #ffe36b; font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 0 2px #ffe36b; }
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: step; }
.steps li { position: relative; padding-top: 18px; font-size: .88rem; color: var(--salt); }
.steps li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 99px; background: var(--char-2); }
.steps li.done::before { background: var(--green); }
.steps li.now::before { background: linear-gradient(90deg, var(--gold) 0 50%, var(--char-2) 50%) 0 0 / 200% 100%; animation: fill 1.6s var(--ease) infinite alternate; }
.ticket[data-state='completed'] .steps li.now::before { background: var(--green); animation: none; }
@keyframes fill { from { background-position: 100% 0; } to { background-position: 0 0; } }
.steps b { display: block; color: var(--paper); font-size: .95rem; }
.steps li.now b { color: var(--gold); }
.steps span { display: block; line-height: 1.3; margin-top: 2px; }
.ticket[data-state='rejected'] .steps, .ticket[data-state='cancelled'] .steps, .ticket[data-state='missing'] .steps { opacity: .35; }
.track-now { margin-top: 26px; }
.track-now h2 { font: 400 clamp(1.7rem, 6vw, 2.4rem)/1.05 var(--display); margin: 0; }
.track-now p { color: var(--salt); margin: 8px 0 0; }
.track-actions { margin-top: 24px; }
.track-summary h2 { margin: 0 0 6px; font-size: 1.15rem; }

/* ---------- page transitions: the page settles in on arrival and lifts away when you follow a link (js/core.js) ---------- */
main, .foot { animation: page-in .45s var(--ease) backwards; }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }
html.leaving main, html.leaving .foot { opacity: 0; transform: translateY(-10px); transition: opacity .18s cubic-bezier(.4, 0, 1, 1), transform .18s cubic-bezier(.4, 0, 1, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero { height: auto; }
  .hero-stage { position: relative; top: 0; height: calc(100svh - var(--head-h)); min-height: 560px; }
  [data-reveal], .dish[data-reveal] figure, .dish[data-reveal] .dish-copy, .dish img { opacity: 1; transform: none; clip-path: none; }
  .hero-copy > *, .hero-actions .btn, .hero h1 .w > span { opacity: 1 !important; transform: none !important; }
  .wall-pizza { display: none; }
}

/* ---------- privacy notice and 404 ---------- */
.prose { max-width: 68ch; padding-block: 28px 60px; }
.prose h1, .empty .nf { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 8vw, 3.4rem); margin: 0; line-height: 1; }
.prose .lede-s { color: var(--salt); font-size: 1.08rem; margin: 12px 0 0; }
.prose h2 { font-size: 1.15rem; margin: 30px 0 6px; }
.prose p, .prose li { color: var(--salt); line-height: 1.6; }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose a:not(.btn) { color: var(--gold); font-weight: 700; }
.prose .btn { margin-top: 18px; }


/* ---------- always-visible order button (Master, 25 Sep 2026: "order now on top and always in view") ---------- */
.order-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--gold); color: var(--fryer); font-weight: 800; text-decoration: none; white-space: nowrap;
  transition: transform .12s var(--ease), filter .12s;
}
.order-cta:hover { filter: brightness(1.06); }
.order-cta:active { transform: scale(.96); }
.order-cta:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.cta-bar { display: none; }
@media (max-width: 699px) {
  .head nav .order-cta { display: none; }              /* on phones the bottom bar carries it */
  .head nav a.link { padding: 12px 8px; }
  .cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(21, 16, 12, .96);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .45);
  }
  .cta-bar .order-cta { flex: 1; min-height: 52px; font-size: 1.05rem; }
  html.has-cta-bar body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) { .head .mark small { display: none; } }

/* ---------- premium motion, lightning fast (Master, 25 Sep 2026) ----------
   Every move is transform/opacity only, 0.2-0.5 s, springy ease-out. Nothing pins or holds the scroll. */
:root { --snap: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); }

/* Hero entrance: plays on load from CSS, so it never waits for a script. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes word-up { from { transform: translateY(105%); } }
.hero-copy .eyebrow { animation: rise .35s var(--snap) both; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .w > span { display: inline-block; animation: word-up .45s var(--snap) both; animation-delay: calc(.05s + var(--i) * .05s); }
.hero .lede { animation: rise .4s .22s var(--snap) both; }
.hero-actions .btn { animation: pop-in .38s var(--spring) both; }
.hero-actions .btn:nth-child(2) { animation-delay: .3s; } .hero-actions .btn:nth-child(1) { animation-delay: .26s; }
.hero-actions .btn:nth-child(3) { animation-delay: .26s; } .hero-actions .btn:nth-child(4) { animation-delay: .3s; }
.pizza-poster img { animation: spin 14s linear infinite, pizza-drop .55s var(--spring) both; }
@keyframes pizza-drop { from { opacity: 0; transform: scale(.7) rotate(-90deg); } }

/* Reveals: a quick spring up with a touch of scale, staggered by position. */
[data-reveal] { transform: translateY(22px) scale(.97); transition: opacity .3s var(--snap), transform .38s var(--spring); transition-delay: calc(var(--i, 0) * 45ms); }
.popular li:nth-child(2) { --i: 1; } .popular li:nth-child(3) { --i: 2; } .popular li:nth-child(4) { --i: 3; }
.popular li:nth-child(5) { --i: 4; } .popular li:nth-child(6) { --i: 5; } .visit .card + .card { --i: 1; }
.dish[data-reveal] figure { clip-path: inset(10% 6% 10% 6% round 22px); transition: clip-path .4s var(--snap); }
.dish[data-reveal] img { transform: scale(1.18); transition: transform .5s var(--snap); }
.dish[data-reveal].in img { transform: scale(1.04); }
.dish:hover img { transform: scale(1.09) !important; }
.dish figure { position: relative; }
.dish figure::after { /* one glint across the photo as it lands */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 200, .22) 50%, transparent 65%);
  transform: translateX(-120%);
}
.dish[data-reveal].in figure::after { transform: translateX(120%); transition: transform .6s .12s var(--snap); }
.pop { transition: border-color .2s, transform .25s var(--spring), box-shadow .25s; }
.pop:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(238, 202, 9, .45); }

/* Section headings: words slide up out of a mask (split by scenes.js). */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; }

/* The wall: rows drift against each other with the scroll, a pizza rolls across. */
.wall-pizza { position: absolute; z-index: -1; width: clamp(120px, 26vw, 260px); height: auto; top: 8%; left: 0; border-radius: 50%;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .8); will-change: transform; transform: translateX(-120%); }

/* Order button: a gold sheen passes every few seconds so the eye finds it. */
.order-cta { position: relative; overflow: hidden; transition: transform .2s var(--spring), filter .2s; }
.order-cta::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-130%); animation: sheen 3.2s 1.2s var(--snap) infinite; }
@keyframes sheen { 0% { transform: translateX(-130%); } 22%, 100% { transform: translateX(130%); } }
.cta-bar { animation: bar-up .4s .35s var(--spring) both; }
@keyframes bar-up { from { transform: translateY(120%); } }
@media (prefers-reduced-motion: reduce) { .order-cta::after { display: none; } }
@media (max-width: 699px) {
  html.has-cta-bar .hero-actions { bottom: calc(84px + env(safe-area-inset-bottom)); } /* clear the pinned bar */
  html.has-cta-bar .hero-actions .btn-gold { display: none; } /* the pinned bar is the menu button; keep Call in view */
}
.wall-pizza { top: auto; bottom: 5%; }

/* Hero pizza film (Veo, real pizza) — fills the pizza stage, fades into the page at the edges */
.pizza-video { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.pizza-clip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; width: auto; height: auto; object-fit: cover;
  -webkit-mask-image: radial-gradient(120% 90% at 60% 45%, #000 55%, transparent 100%); mask-image: radial-gradient(120% 90% at 60% 45%, #000 55%, transparent 100%); }
@media (min-width: 900px) { .pizza-clip { -webkit-mask-image: radial-gradient(75% 90% at 68% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(75% 90% at 68% 50%, #000 58%, transparent 100%); } }
@media (prefers-reduced-motion: reduce) { .pizza-clip { display: none; } .pizza-video { background: center/cover no-repeat url('../img/pizza-hero-poster.jpg'); } }
/* readability scrim so the hero copy pops over the film */
.pizza-video::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(21,16,12,.72) 0%, rgba(21,16,12,.28) 34%, rgba(21,16,12,0) 55%),
              linear-gradient(90deg, rgba(21,16,12,.55) 0%, rgba(21,16,12,0) 60%); }
@media (min-width: 900px) { .pizza-video::after { background: linear-gradient(90deg, rgba(21,16,12,.75) 0%, rgba(21,16,12,.15) 45%, rgba(21,16,12,0) 65%); } }
