/* Spirit Bistro 豐味 — demo site styles. Mobile first; 768px and 1200px breakpoints. */
:root {
  --paper: #FBF8F1;
  --ink: #1D1B1A;
  --spirit-red: #D2232A;
  --red-deep: #A3161C;
  --menu-green: #2F8A3E;
  --green-ink: #236B2F;   /* darker green for small text on paper (AA) */
  --green-tint: #E7F2E6;
  --night: #141A3A;
  --neon: #3D7BFF;
  --wood: #B07A4A;
  --rule: #D9D2C3;
  --muted: #5A534C;
  --white: #FFFFFF;
  --f-display: "DM Serif Display", Georgia, serif;
  --f-zh: "Noto Serif SC", "Noto Serif TC", "Songti SC", serif;
  --f-body: "Work Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1200px;
  --gut: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--spirit-red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 2px solid var(--spirit-red); outline-offset: 2px; }
.night :focus-visible { box-shadow: 0 0 0 4px var(--white); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; color: var(--spirit-red); }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); color: var(--ink); }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.zh { font-family: var(--f-zh); font-weight: 400; }
.mono { font-family: var(--f-mono); font-weight: 500; letter-spacing: .02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { font: 500 .8rem/1.4 var(--f-mono); letter-spacing: .12em; color: var(--green-ink); margin-bottom: 1rem; }
.lede { font-size: 1.125rem; max-width: 38em; }
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em; border-radius: 3px; border: 2px solid var(--spirit-red);
  background: var(--spirit-red); color: var(--white); font: 500 1rem/1.2 var(--f-body);
  text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s var(--ease);
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--spirit-red); }
.btn--ghost:hover { background: var(--spirit-red); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--spirit-red); }
.btn--light:hover { background: var(--paper); color: var(--red-deep); border-color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 500; }

/* ---------- Tick boxes (CSS, not ☐) ---------- */
.tick {
  --s: 16px; position: relative; display: inline-block; flex: none;
  width: var(--s); height: var(--s); border: 2px solid var(--spirit-red); border-radius: 2px; vertical-align: -2px;
}
.tick::after {
  content: ""; position: absolute; left: 3px; top: -3px; width: 6px; height: 12px;
  border: solid var(--spirit-red); border-width: 0 3px 3px 0; transform: rotate(40deg);
  clip-path: inset(0 0 100% 0); transition: clip-path .25s var(--ease);
}
.tick.on::after, .is-ticked .tick::after { clip-path: inset(0 0 0 0); }

/* ---------- The knot ---------- */
.knot { width: 40px; height: 40px; color: var(--spirit-red); flex: none; }
.knot-draw { fill: none; stroke: var(--spirit-red); stroke-width: 3; display: none; }
.knot-border {
  height: 18px; background-repeat: repeat-x; background-size: 18px 18px; background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke-linejoin='round'%3E%3Crect x='8' y='32' width='84' height='36' rx='18' stroke='%23D2232A' stroke-width='9'/%3E%3Crect x='32' y='8' width='36' height='84' rx='18' stroke='%23D2232A' stroke-width='9'/%3E%3C/g%3E%3C/svg%3E");
  opacity: .55;
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 2px solid var(--spirit-red); }
.hdr { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--spirit-red); margin-right: auto; }
.brand__name { font: 400 1.45rem/1 var(--f-display); white-space: nowrap; }
.brand__zh { font: 700 .82rem/1.05 var(--f-zh); writing-mode: vertical-rl; text-orientation: upright; letter-spacing: .05em; }
.nav { display: none; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px; color: var(--ink);
  text-decoration: none; font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--spirit-red); }
.nav a .tick { --s: 14px; }
.nav a .tick::after { left: 2px; top: -3px; width: 5px; height: 10px; border-width: 0 2.5px 2.5px 0; }
.nav a:hover .tick::after, .nav a:focus-visible .tick::after, .nav a[aria-current="page"] .tick::after { clip-path: inset(0 0 0 0); }
.hdr__call { display: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 3px;
  border: 2px solid var(--spirit-red); background: transparent; color: var(--spirit-red); cursor: pointer; padding: 0;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn--fill { background: var(--spirit-red); color: var(--white); }
.icon-btn--fill:hover { background: var(--red-deep); color: var(--white); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border: 1.5px solid var(--ink);
  border-radius: 999px; font: 500 .74rem/1.2 var(--f-mono); white-space: nowrap; background: var(--white);
}
.chip__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #8C857C; flex: none; }
.chip.is-open .chip__dot { background: var(--neon); }
.chip.is-open .chip__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--neon); opacity: 0;
}
.chip-bar { display: flex; justify-content: center; padding: 0 0 10px; }
.hdr .chip { display: none; }

.sheet { display: none; border-top: 1px solid var(--rule); background: var(--paper); }
.sheet.open { display: block; }
.sheet nav { display: grid; padding: 8px var(--gut) 16px; }
.sheet a { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px dotted var(--rule); }
.sheet a[aria-current="page"] { color: var(--spirit-red); }
.sheet a[aria-current="page"] .tick::after { clip-path: inset(0); }

@media (min-width: 900px) {
  .nav { display: flex; gap: 18px; }
  .hdr .chip { display: inline-flex; }
  .chip-bar, .hdr__menu, .hdr__phone, .sheet, .sheet.open { display: none; }
  .hdr__call { display: inline-flex; }
  .hdr { gap: 22px; min-height: 80px; }
  .brand__name { font-size: 1.7rem; }
  .knot { width: 46px; height: 46px; }
}

/* ---------- Hero ---------- */
.hero { padding: 36px 0 64px; }
.hero__grid { display: grid; gap: 40px; }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--spirit-red); margin: 0 0 14px; }
.wordmark__en { font: 400 clamp(1.6rem, 4vw, 2.2rem)/1 var(--f-display); }
.wordmark__zh { font: 700 clamp(.95rem, 2.2vw, 1.2rem)/1.05 var(--f-zh); writing-mode: vertical-rl; text-orientation: upright; }
.hero h1 { margin-bottom: .35em; }
.hero__media { position: relative; padding-bottom: 72px; }
.hero__photo { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 4.4; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.orderpad {
  position: absolute; right: 8px; bottom: 0; width: min(290px, 82%);
  background: var(--white); border: 2px solid var(--spirit-red); border-radius: 3px; padding: 0 16px 14px;
  box-shadow: 0 10px 30px rgba(29, 27, 26, .16); transform: rotate(-1.5deg);
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, #EFE9DC 33px 34px);
  background-position: 0 40px;
}
.orderpad__head { margin: 0 -16px 10px; padding: 7px 16px; background: var(--spirit-red); color: var(--white); font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; }
.orderpad__ticks { display: flex; gap: 18px; margin: 4px 0 10px; font-weight: 500; }
.orderpad__ticks span { display: inline-flex; align-items: center; gap: 8px; }
.orderpad__line { font: 500 .95rem/1.4 var(--f-mono); padding: 6px 0; border-top: 1px dashed var(--rule); margin: 0; }
.orderpad__line a { color: var(--ink); text-decoration: none; }
.orderpad__line a:hover { color: var(--spirit-red); }
@media (min-width: 900px) {
  .hero { padding: 64px 0 96px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
  .orderpad { left: -48px; right: auto; }
}

/* ---------- Dish strip ---------- */
.strip { padding: 8px 0 24px; }
.strip__list {
  list-style: none; margin: 0; padding: 0 var(--gut) 12px; display: grid; grid-auto-flow: column;
  grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.strip__list li { scroll-snap-align: start; }
.strip__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; }
.strip__img img { width: 100%; height: 100%; object-fit: cover; }
.strip__cap { font: 500 .78rem/1.35 var(--f-mono); margin-top: 8px; color: var(--muted); }
@media (min-width: 768px) { .strip__list { grid-auto-columns: 30%; } }
@media (min-width: 1200px) {
  .strip__list { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; max-width: var(--wrap); margin: 0 auto; }
}

/* ---------- Tickets (Dinner for one) ---------- */
.d41 { display: grid; gap: 32px; }
.tickets { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.ticket {
  position: relative; background: var(--white); border: 1.5px solid var(--ink); border-radius: 2px; padding: 18px 18px 16px;
  --tilt: 0deg;
}
.ticket::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: -1.5px; height: 6px;
  background: radial-gradient(circle at 5px 0, var(--paper) 4px, transparent 4.5px) 0 0 / 14px 6px repeat-x;
}
.ticket__no { font: 500 .8rem/1 var(--f-mono); letter-spacing: .1em; color: var(--muted); }
.ticket__title { font: 400 1.7rem/1.1 var(--f-display); color: var(--spirit-red); margin: 6px 0 8px; }
.ticket__plus { font-weight: 500; margin: 0 0 12px; }
.ticket__price { font: 500 1.2rem/1 var(--f-mono); border-top: 1px dashed var(--rule); padding-top: 12px; }
.d41__photo { max-width: 260px; }
.d41__photo img { border-radius: 3px; }
@media (min-width: 768px) { .tickets { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .d41 { grid-template-columns: 1fr 260px; align-items: end; } }

/* ---------- Green combo panel ---------- */
.panel {
  background: var(--green-tint); border: 2px solid var(--menu-green); border-radius: 3px;
  outline: 1px solid var(--menu-green); outline-offset: -8px; padding: 28px 22px; transform-origin: top center;
}
.panel h2, .panel h3 { color: var(--spirit-red); }
.panel__grid { display: grid; gap: 28px; align-items: center; }
.panel__img img { border-radius: 3px; width: 100%; }
.panel__label { font: 500 .78rem/1 var(--f-mono); letter-spacing: .12em; color: var(--green-ink); margin-bottom: 12px; }
@media (min-width: 900px) { .panel { padding: 44px; } .panel__grid { grid-template-columns: 1fr 1.1fr; gap: 48px; } }

/* ---------- Dotted-leader rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease), opacity .3s var(--ease); }
.row > .row__in { overflow: hidden; min-height: 0; }
.row__line { display: flex; align-items: baseline; gap: 8px; padding: 7px 0 0; }
.row__name { font-weight: 500; }
.row__lead { flex: 1 1 24px; min-width: 24px; height: 2px; align-self: baseline; transform-origin: left center;
  background: radial-gradient(circle, var(--rule) 1.1px, transparent 1.4px) 0 0 / 7px 2px repeat-x; position: relative; top: -4px; }
.row__price { font: 500 .95rem/1.3 var(--f-mono); white-space: nowrap; text-align: right; }
.row__zh { display: block; font-family: var(--f-zh); font-size: .86rem; line-height: 1.3; color: var(--muted); padding: 1px 0 3px; }
.row mark { background: none; color: var(--spirit-red); font-weight: 600; }
.row.is-hidden { grid-template-rows: 0fr; opacity: 0; }
.row.is-hidden .row__in { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .rows--reveal .row__zh { opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease); }
  .rows--reveal .row:hover .row__zh, .rows--reveal .row:focus-within .row__zh, .rows--reveal .row.has-match .row__zh { opacity: 1; transform: none; }
}
@media (max-width: 480px) { .row__line { flex-wrap: wrap; } .row__name { flex: 1 1 60%; } }

/* ---------- Beyond the classics ---------- */
.beyond { display: grid; gap: 32px; }
.beyond__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.beyond__photos img { border-radius: 3px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.beyond__photos picture:last-child { margin-top: 40px; }
@media (min-width: 900px) { .beyond { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; } }

/* ---------- Night band ---------- */
.night { background: var(--night); color: #E8E7F2; overflow: hidden; }
.night h2 { color: var(--white); }
.night__grid { display: grid; gap: 32px; align-items: center; }
.night__photo { clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); }
.night__photo img { width: 100%; }
.neon {
  position: relative; display: inline-block; font: 500 1.05rem/1 var(--f-mono); letter-spacing: .3em; padding: 10px 10px 10px 16px;
  color: #CFE0FF; border: 2px solid var(--neon); border-radius: 8px; margin-bottom: 22px;
  text-shadow: 0 0 6px rgba(61, 123, 255, .9);
}
.neon::after {
  content: ""; position: absolute; inset: -2px; border-radius: 8px; opacity: .35;
  box-shadow: 0 0 18px 4px var(--neon), inset 0 0 12px 2px rgba(61, 123, 255, .6);
}
@media (min-width: 900px) { .night__grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } .night { padding: 0; } .night__copy { padding: 88px 0; } .night__photo { align-self: stretch; } .night__photo img { height: 100%; object-fit: cover; } }

/* ---------- Reviews ---------- */
.rating { font: 500 .95rem/1.4 var(--f-mono); margin-bottom: 28px; }
.reviews { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.review { margin: 0; background: var(--white); border: 1.5px solid var(--ink); padding: 22px 20px 18px; position: relative; }
.review::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--spirit-red); }
.review blockquote { margin: 6px 0 14px; font-size: 1.02rem; }
.review figcaption { font: 500 .8rem/1.3 var(--f-mono); color: var(--muted); border-top: 1px dashed var(--rule); padding-top: 10px; }
@media (min-width: 768px) { .reviews { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ---------- Find us ---------- */
.findus { border-top: 2px solid var(--menu-green); border-bottom: 2px solid var(--menu-green); padding: 36px 0; }
.findus__grid { display: grid; gap: 22px; }
.findus dl { margin: 0; display: grid; gap: 14px; }
.findus dt { font: 500 .75rem/1 var(--f-mono); letter-spacing: .12em; color: var(--green-ink); margin-bottom: 4px; }
.findus dd { margin: 0; }
@media (min-width: 900px) { .findus__grid { grid-template-columns: 1fr auto; align-items: center; } .findus dl { grid-template-columns: 1fr 1.4fr; gap: 28px; } }

/* ---------- Page heads ---------- */
.pagehead { padding: 40px 0 28px; }
.pagehead__grid { display: grid; gap: 28px; align-items: end; }
.pagehead__img img { border-radius: 3px; width: 100%; }
@media (min-width: 900px) { .pagehead { padding: 64px 0 40px; } .pagehead__grid { grid-template-columns: 1.2fr 1fr; gap: 56px; } }

/* ---------- Menu page ---------- */
.menu-tools { position: sticky; top: 0; z-index: 15; background: var(--paper); border-bottom: 1px solid var(--rule); }
.tabs { position: relative; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gut); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 14px 10px 12px; font-weight: 500; font-size: .92rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.tab .tick { --s: 13px; border-width: 1.5px; }
.tab .tick::after { left: 2px; top: -3px; width: 5px; height: 10px; border-width: 0 2.5px 2.5px 0; }
.tab[aria-current="true"] { color: var(--spirit-red); }
.tab[aria-current="true"] .tick::after { clip-path: inset(0); }
.tabs__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100px; background: var(--spirit-red); transform-origin: left; transition: transform .35s var(--ease); pointer-events: none; }
.search { padding: 10px var(--gut) 12px; display: flex; gap: 10px; align-items: center; max-width: var(--wrap); margin: 0 auto; }
.search label { font: 500 .8rem/1 var(--f-mono); letter-spacing: .08em; white-space: nowrap; }
.search input {
  flex: 1; min-width: 0; font: 400 1rem var(--f-body); padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--white); color: var(--ink);
}
.search input:focus-visible { outline: 2px solid var(--spirit-red); outline-offset: 1px; }
.search__count { font: 500 .78rem/1 var(--f-mono); color: var(--muted); white-space: nowrap; }
.menu-cat { padding: 36px 0 8px; scroll-margin-top: 120px; }
.menu-cat.is-empty { display: none; }
.menu-cat__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; border-bottom: 2px solid var(--spirit-red); margin-bottom: 8px; padding-bottom: 6px; }
.menu-cat__head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; }
.menu-cat__head .zh { color: var(--spirit-red); font-size: 1.1rem; }
.menu-cat__note { font: 500 .78rem/1.3 var(--f-mono); color: var(--muted); margin-left: auto; }
.menu-cat__body { display: grid; gap: 24px; }
.menu-fig figcaption { font: 500 .78rem/1.3 var(--f-mono); color: var(--muted); margin-top: 8px; }
.menu-fig img { border-radius: 3px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
  .menu-cat__body { grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
  .menu-fig { position: sticky; top: 140px; }
  .menu-fig img { aspect-ratio: 4 / 5; }
}
.menu-empty { padding: 32px 0; font-weight: 500; }
.row-note { font-size: .92rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Dinner builder ---------- */
.builder { display: grid; gap: 28px; }
.pad {
  background: var(--white); border: 2px solid var(--spirit-red); border-radius: 3px; padding: 0 18px 20px;
}
.pad__head { margin: 0 -18px 16px; padding: 9px 18px; background: var(--spirit-red); color: var(--white); font: 500 .75rem/1 var(--f-mono); letter-spacing: .14em; display: flex; justify-content: space-between; }
.stepper { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stepper__label { font: 500 .8rem/1 var(--f-mono); letter-spacing: .1em; width: 100%; }
.stepper button {
  width: 48px; height: 48px; border-radius: 3px; border: 2px solid var(--spirit-red); background: var(--white); color: var(--spirit-red);
  font: 500 1.5rem/1 var(--f-mono); cursor: pointer;
}
.stepper button:hover:not(:disabled) { background: var(--spirit-red); color: var(--white); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { font: 400 2.6rem/1 var(--f-display); min-width: 2ch; text-align: center; color: var(--ink); }
.stepper--sm button { width: 40px; height: 40px; font-size: 1.2rem; }
.stepper--sm output { font: 500 1.3rem/1 var(--f-mono); }
.price-flap { display: inline-flex; font: 500 clamp(2.2rem, 7vw, 3.2rem)/1 var(--f-mono); color: var(--spirit-red); }
.flap { display: inline-block; height: 1em; overflow: hidden; position: relative; }
.flap__col { display: flex; flex-direction: column; transition: transform .45s var(--ease); }
.flap__col span { height: 1em; line-height: 1em; }
.flap--static { overflow: visible; }
.builder__what { font-weight: 500; margin: 10px 0 4px; min-height: 3.2em; }
.builder__fine { font-size: .92rem; color: var(--muted); margin: 0; }
.stack { width: 100%; max-width: 280px; height: 120px; display: block; margin-top: 12px; }
.stack .box { transform-box: fill-box; transform-origin: center bottom; transition: transform .2s var(--ease), opacity .2s; }
.stack .box.off { opacity: 0; transform: scale(.6); }
.checklist-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px 18px; }
@media (min-width: 600px) { .checklist { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dotted var(--rule); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .tick { margin-top: 4px; }
.check input:checked + .tick::after { clip-path: inset(0); }
.check input:focus-visible + .tick { outline: 2px solid var(--spirit-red); outline-offset: 2px; }
.check input:disabled ~ span:last-child { color: #8F887F; }
.check input:disabled + .tick { border-color: #B9B1A4; }
.check:has(input:disabled) { cursor: not-allowed; }
.counter-pill { font: 500 .85rem/1 var(--f-mono); padding: 6px 10px; border: 1.5px solid var(--ink); border-radius: 999px; }
.counter-pill.full { border-color: var(--spirit-red); color: var(--spirit-red); }
.ruled { display: grid; gap: 14px; margin: 18px 0; }
.ruled label { display: flex; align-items: baseline; gap: 10px; font: 500 .82rem/1 var(--f-mono); letter-spacing: .08em; }
.ruled input, .ruled textarea, .ruled select {
  flex: 1; min-width: 0; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; padding: 8px 2px;
  font: 400 1rem var(--f-body); color: var(--ink); border-radius: 0;
}
.ruled textarea { resize: vertical; min-height: 70px; border: 1.5px solid var(--ink); }
.ruled input:focus-visible, .ruled textarea:focus-visible { outline: 2px solid var(--spirit-red); outline-offset: 2px; }
.ruled--2 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .ruled--2 { grid-template-columns: 1fr 1fr; } .ruled .full { grid-column: 1 / -1; } }
.tickrow { display: flex; gap: 22px; flex-wrap: wrap; border: 0; padding: 0; margin: 8px 0 0; }
.tickrow legend { font: 500 .82rem/1 var(--f-mono); letter-spacing: .08em; margin-bottom: 10px; padding: 0; }
.tickrow label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 500; }
.tickrow input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tickrow input:checked + .tick::after { clip-path: inset(0); }
.tickrow input:focus-visible + .tick { outline: 2px solid var(--spirit-red); outline-offset: 2px; }
@media (min-width: 1000px) { .builder { grid-template-columns: 360px 1fr; align-items: start; } .builder__side { position: sticky; top: 24px; } }

/* ---------- Visit page ---------- */
.visit-top { display: grid; gap: 32px; }
.addr { font: 400 1.5rem/1.3 var(--f-display); margin: 0 0 6px; }
.map { width: 100%; max-width: 520px; height: auto; display: block; border: 1.5px solid var(--ink); background: #F3EEE2; }
.map .pin { transform-box: fill-box; transform-origin: center bottom; }
.hours { list-style: none; margin: 0; padding: 0; font: 500 .95rem/1.3 var(--f-mono); }
.hours li { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-bottom: 1px dashed var(--rule); isolation: isolate; }
.hours li::before { content: ""; position: absolute; inset: 0; background: var(--green-tint); z-index: -1; clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease) .2s; }
.hours li.today::before { clip-path: inset(0 0 0 0); }
.hours .tick { --s: 14px; visibility: hidden; }
.hours .tick::after { left: 2px; top: -3px; width: 5px; height: 10px; border-width: 0 2.5px 2.5px 0; }
.hours li.today .tick { visibility: visible; }
.hours li.today .tick::after { clip-path: inset(0); }
.hours__day { flex: 1; }
.hours__today { font-size: .72rem; letter-spacing: .1em; color: var(--spirit-red); }
.goodto { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.goodto li { display: flex; gap: 10px; align-items: center; }
.goodto .tick::after { clip-path: inset(0); }
.photo-pair { display: grid; gap: 14px; align-content: start; }
.photo-pair img { border-radius: 3px; width: 100%; object-fit: cover; }
.photo-pair picture:last-child img { aspect-ratio: 4 / 3; object-position: center 62%; }
@media (min-width: 900px) { .visit-top { grid-template-columns: 1fr 1fr; gap: 56px; } }
.two { display: grid; gap: 36px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 3px solid var(--menu-green); margin-top: 0; }
.footer { padding: 36px 0 28px; display: grid; gap: 18px; }
.footer p { margin: 0; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--spirit-red); font: 400 1.4rem/1 var(--f-display); }
.footer__tag { font: 400 1.25rem/1.2 var(--f-display); color: var(--green-ink); }
.footer__credit { font: 500 .78rem/1.4 var(--f-mono); color: var(--muted); border-top: 1px dashed var(--rule); padding-top: 14px; }
@media (min-width: 900px) { .footer { grid-template-columns: 1.4fr 1fr; } .footer__credit, .footer__tag { grid-column: 1 / -1; } }

/* ---------- Demo modal ---------- */
.modal { border: 2px solid var(--spirit-red); border-radius: 4px; padding: 0; max-width: min(440px, calc(100vw - 32px)); background: var(--white); color: var(--ink); }
.modal::backdrop { background: rgba(20, 26, 58, .6); }
.modal__head { background: var(--spirit-red); color: var(--white); padding: 9px 20px; font: 500 .75rem/1 var(--f-mono); letter-spacing: .14em; display: flex; align-items: center; gap: 10px; }
.modal__body { padding: 22px 22px 24px; }
.modal h2 { font-size: 1.7rem; color: var(--ink); }

/* ---------- Motion (only when allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* 1 knot draws itself */
  .js .knot--intro .knot-fill { opacity: 0; animation: knotFill .35s ease-out .85s forwards; }
  .js .knot--intro .knot-draw { display: inline; stroke-dasharray: 100; stroke-dashoffset: 100; animation: knotDraw .9s ease-in-out forwards, knotOut .3s ease-out 1.1s forwards; }
  /* 2 open-now pulse (loop 1) */
  .chip.is-open .chip__dot::after { animation: pulse 2.4s ease-out infinite; }
  /* 5 section stamps */
  .js .stamp { opacity: 0; transform: rotate(-2deg) scale(1.04); transform-origin: left center; transition: opacity .35s ease-out, transform .45s var(--ease); }
  .js .stamp.in { opacity: 1; transform: none; }
  /* 4 leaders fill */
  .js .rows--anim .row__lead { transform: scaleX(0); transition: transform .5s var(--ease); }
  .js .rows--anim .row__price { opacity: 0; transition: opacity .3s ease .35s; }
  .js .rows--anim.in .row__lead { transform: none; }
  .js .rows--anim.in .row__price { opacity: 1; }
  /* 6 sign lights up */
  .js .wordmark--lit { animation: flicker .7s steps(1, end) both; }
  /* 7 order-pad slide */
  .js .orderpad { animation: padIn .8s var(--ease) .35s both; }
  /* 8 dish strip wipe */
  .js .strip__list li .strip__img { clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--ease); transition-delay: calc(var(--i) * 80ms); }
  .js .strip__list.in li .strip__img { clip-path: inset(0 0 0 0); }
  /* 9 panel unfold */
  .js .panel--unfold { transform: scaleY(.04); opacity: 0; transition: transform .5s var(--ease), opacity .2s ease; }
  .js .panel--unfold.in { transform: none; opacity: 1; }
  /* 10 neon breathe (loop 2) */
  .neon::after { animation: breathe 3s ease-in-out infinite; }
  /* 11 review tickets straighten */
  .js .review, .js .ticket { opacity: 0; transform: rotate(var(--tilt, 2deg)) translateY(14px); transition: transform .6s var(--ease), opacity .4s ease; }
  .js .review.in, .js .ticket.in { opacity: 1; transform: none; }
  /* 18 pin drop */
  .js .map .pin { transform: translateY(-60px); opacity: 0; }
  .js .map.in .pin { animation: pinDrop .7s cubic-bezier(.3, 1.4, .5, 1) forwards; }
  /* generic fade-up */
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .6s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
  /* 15 Chinese name reveal + 14 filter use transitions defined above */
}
@keyframes knotDraw { to { stroke-dashoffset: 0; } }
@keyframes knotOut { to { opacity: 0; } }
@keyframes knotFill { to { opacity: 1; } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
@keyframes flicker { 0% { opacity: .15; } 18% { opacity: 1; } 28% { opacity: .25; } 44% { opacity: 1; } 56% { opacity: .4; } 70%, 100% { opacity: 1; } }
@keyframes padIn { from { transform: translateY(80px) rotate(4deg); opacity: 0; } to { transform: rotate(-1.5deg); opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
@keyframes pinDrop { 0% { transform: translateY(-60px); opacity: 0; } 40% { opacity: 1; } 100% { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .neon::after { opacity: .6; }
}
