/* ==================================================================
   SIN HUAT EATING HOUSE — rustic kopitiam theme
   ================================================================== */
:root {
  --red: #B83232;          /* traditional red */
  --red-deep: #8E2424;
  --orange: #E66B2E;       /* crab-shell orange */
  --gold: #D9A441;         /* wok-fried golden brown */
  --blue: #1C39BB;         /* Persian blue — brand accents & calligraphy */
  --blue-deep: #142A8C;    /* hover / footer */
  --cream: #FAF8F5;        /* page background */
  --paper: #F4EADA;        /* panels */
  --ink: #2B1D14;          /* text — dark soy brown */
  --ink-soft: #6A5242;
  --line: rgba(43, 29, 20, 0.16);
  --white: #FFFDF7;

  --f-sign: "Libre Caslon Condensed", "Libre Caslon Text", Georgia, serif;
  --f-zh: "LXGW WenKai TC", "Kaiti TC", "STKaiti", "KaiTi", serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --gutter: 16px;
  --radius: 6px;
  --shadow: 0 10px 30px -12px rgba(43, 29, 20, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  /* faint paper grain so the cream never looks flat */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3, .h2 { font-family: var(--f-sign); font-weight: 600; line-height: 1.1; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 9vw, 5.2rem); }
h2, .h2 { font-size: clamp(2rem, 6vw, 3.2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.zh { font-family: var(--f-zh); font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .8em;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40ch; }
.center .lede { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  padding: 14px 26px; border-radius: var(--radius); border: 2px solid var(--red);
  background: var(--red); color: var(--white);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--red); }
.btn--ghost:hover { background: var(--red); color: var(--white); }
.btn--orange { background: var(--orange); border-color: var(--orange); }
.btn--orange:hover { background: #cf5a20; border-color: #cf5a20; }
.btn--big { font-size: 1.3rem; padding: 20px 44px; }
.btn svg { width: 1.2em; height: 1.2em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- kopitiam floor-tile band ---------- */
.tiles {
  height: 22px;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Crect width='22' height='22' fill='%23FBF4E4'/%3E%3Cpath d='M11 0 22 11 11 22 0 11z' fill='%23B83232'/%3E%3Ccircle cx='11' cy='11' r='3.2' fill='%23FBF4E4'/%3E%3Ccircle cx='0' cy='0' r='3' fill='%23E66B2E'/%3E%3Ccircle cx='22' cy='0' r='3' fill='%23E66B2E'/%3E%3Ccircle cx='0' cy='22' r='3' fill='%23E66B2E'/%3E%3Ccircle cx='22' cy='22' r='3' fill='%23E66B2E'/%3E%3C/svg%3E");
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}

/* ---------- header (the shop's signboard: white board, blue English, red Chinese) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 3px 0 var(--red), 0 8px 18px -10px rgba(43,29,20,.35);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .zh { font-size: 1.5rem; line-height: 1; color: var(--red); }
.brand .en { font-family: var(--f-sign); font-weight: 600; font-size: 1.12rem; letter-spacing: .06em; line-height: 1.05; color: var(--blue); }
.brand .en small { display: block; font-size: .66rem; letter-spacing: .32em; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--blue); text-decoration: none; font-weight: 700; font-size: .88rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 4px;
}
.nav a:hover { background: rgba(28,57,187,.08); }
.nav .nav-cta { background: var(--red); color: var(--white); margin-left: 6px; }
.nav .nav-cta:hover { background: var(--red-deep); }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--blue); color: var(--blue);
  border-radius: 4px; width: 44px; height: 40px; cursor: pointer; font-size: 1.3rem; line-height: 1;
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 67px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--white); padding: 8px var(--gutter) 16px; gap: 0;
    border-bottom: 3px solid var(--blue);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .nav-cta { margin: 12px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- mobile sticky order bar ---------- */
.order-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--cream); border-top: 2px solid var(--ink);
}
.order-bar .btn { flex: 1; padding: 12px 10px; font-size: .9rem; }
.order-bar .count {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: 99px;
  background: var(--white); color: var(--red); font-size: .8rem;
}
@media (max-width: 860px) {
  .order-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- home hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; gap: 24px; align-items: center; }
.hero-zh {
  font-family: var(--f-zh); font-weight: 700; color: var(--red);
  font-size: clamp(4.5rem, 22vw, 10rem); line-height: .95; margin: 0;
  text-shadow: 3px 3px 0 rgba(230, 107, 46, .25);
}
.hero h1 { margin-top: .1em; }
.hero h1 small {
  display: block; font-size: .32em; letter-spacing: .32em; color: var(--orange); margin-top: .4em;
}
.hero .lede { margin-bottom: 1.6em; }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--ink-soft); }
.hero-meta span::before { content: "◆"; color: var(--orange); margin-right: 8px; font-size: .7em; vertical-align: 2px; }
.stamp {
  justify-self: center; width: 210px; aspect-ratio: 1; border-radius: 50%;
  border: 3px double var(--red); color: var(--red);
  display: grid; place-items: center; text-align: center; transform: rotate(-8deg);
  font-family: var(--f-sign); padding: 22px; line-height: 1.2;
  background: rgba(255, 253, 247, .6);
}
.stamp b { display: block; font-size: 1.5rem; }
.stamp span { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
@media (min-width: 861px) {
  .hero { padding: 90px 0 70px; }
  .hero .wrap { grid-template-columns: 1.5fr 1fr; }
  .stamp { width: 250px; }
}

/* ---------- crab reveal (scroll-driven) ---------- */
.reveal-scroller { position: relative; height: 240vh; background: var(--ink); color: var(--cream); }
.reveal-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; place-items: center;
}
.reveal-sticky .dish {
  width: min(92vw, 78vh); aspect-ratio: 1;
  transform: scale(calc(.55 + var(--p, 0) * .5)) rotate(calc(var(--p, 0) * 70deg));
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.55));
  will-change: transform;
}
.reveal-sticky .dish img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.reveal-copy {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  padding: 90px var(--gutter) 7vh;
  background: linear-gradient(180deg, transparent, rgba(43, 29, 20, .9) 42%);
  opacity: calc(var(--p, 0) * 2.2 - .9);
  transform: translateY(calc((1 - var(--p, 0)) * 40px));
}
.reveal-copy h2 { color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,.8); margin-bottom: .2em; }
.reveal-copy .zh { color: #FCE8B8; font-size: 1.6rem; display: block; }
.reveal-copy p { max-width: 46ch; margin: 0 auto 1em; text-shadow: 0 2px 12px rgba(0,0,0,.9); }
.reveal-intro {
  position: absolute; top: 9vh; left: 0; right: 0; text-align: center; padding: 0 var(--gutter);
  opacity: calc(1 - var(--p, 0) * 3);
}
.reveal-intro .zh { font-size: clamp(2.4rem, 9vw, 4rem); color: var(--orange); display: block; }
.reveal-intro p { letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; opacity: .8; }
.price-tag {
  display: inline-block; font-family: var(--f-sign); font-size: 1.4rem;
  background: var(--orange); color: var(--white); padding: 4px 16px; border-radius: 3px; margin-bottom: 1em;
}

/* ---------- facts strip ---------- */
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--white); padding: 26px 22px; }
.fact b { display: block; font-family: var(--f-sign); font-size: 2.2rem; color: var(--red); line-height: 1; margin-bottom: 6px; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }

/* ---------- group dining panel ---------- */
.panel {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 32px 22px; position: relative; box-shadow: 6px 6px 0 var(--red);
}
@media (min-width: 861px) { .panel { padding: 48px; } }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 861px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.guide { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.guide li {
  display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.guide .pax { font-family: var(--f-sign); font-size: 1.3rem; color: var(--white); background: var(--red); text-align: center; border-radius: 4px; padding: 6px 0; }
.guide li.best { border: 2px solid var(--orange); }
.guide li.best .pax { background: var(--orange); }
.guide small { display: block; color: var(--ink-soft); }

/* ---------- press marquee ---------- */
.press-strip { background: var(--red); color: var(--white); padding: 34px 0; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.press-strip .eyebrow { color: #FCE8B8; }
.press-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; font-family: var(--f-sign); font-size: clamp(1.1rem, 3.4vw, 1.6rem); }
.press-names span { white-space: nowrap; }
.press-names .zh { font-family: var(--f-zh); }

/* ---------- quote / video ---------- */
.quote-card { display: grid; gap: 24px; align-items: center; }
@media (min-width: 861px) { .quote-card { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #1b120c center / cover no-repeat; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--orange);
}
.video button {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: var(--white);
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.6));
  display: grid; place-items: center; font: inherit;
}
.video .play {
  width: 74px; height: 74px; border-radius: 50%; background: var(--red); display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(184, 50, 50, .35); transition: transform .2s ease;
}
.video button:hover .play { transform: scale(1.08); }
.video .caption { position: absolute; left: 16px; bottom: 12px; font-size: .9rem; text-align: left; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
blockquote { margin: 0; font-family: var(--f-sign); font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.3; }
blockquote footer { font-family: var(--f-body); font-size: .95rem; color: var(--ink-soft); margin-top: 14px; }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 56px 0 36px; text-align: center; }
.page-head .zh { display: block; font-size: clamp(2.6rem, 10vw, 4.4rem); color: var(--red); line-height: 1; margin-bottom: .1em; }

/* ---------- menu ---------- */
.signature {
  position: relative; min-height: calc(100vh - 64px); background: var(--ink); color: var(--cream);
  display: grid; align-items: center; overflow: hidden;
}
.signature .wrap { display: grid; gap: 24px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.signature .dish { width: min(88vw, 560px); justify-self: center; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); animation: spin 120s linear infinite; }
.signature .dish img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.signature h1 { color: var(--white); }
.signature .zh-title { font-family: var(--f-zh); font-weight: 700; color: var(--orange); font-size: clamp(2.2rem, 8vw, 3.4rem); line-height: 1; }
.signature p { color: #E9DCC3; }
.signature .ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 6px; }
.signature .ticks li::before { content: "✦"; color: var(--orange); margin-right: 10px; }
@media (min-width: 861px) { .signature .wrap { grid-template-columns: 1.1fr 1fr; } .signature .dish { order: 2; } }
@keyframes spin { to { transform: rotate(360deg); } }

.dish-grid { display: grid; gap: 20px; }
@media (min-width: 600px) { .dish-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .dish-grid { grid-template-columns: repeat(3, 1fr); } }
.dish-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.dish-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dish-card .ph {
  aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 55%),
    linear-gradient(135deg, var(--orange), var(--red));
  color: #FFF1D6;
}
.dish-card:nth-child(3n+2) .ph { background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.3), transparent 55%), linear-gradient(135deg, var(--gold), var(--orange)); }
.dish-card:nth-child(3n) .ph { background: radial-gradient(circle at 40% 70%, rgba(255,255,255,.2), transparent 55%), linear-gradient(135deg, var(--red), var(--red-deep)); }
.dish-card .ph .zh { font-size: clamp(2.4rem, 9vw, 3.2rem); writing-mode: vertical-rl; letter-spacing: .08em; text-shadow: 2px 2px 0 rgba(0,0,0,.18); }
.dish-card .ph::after {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,241,214,.5); border-radius: 3px;
}
.dish-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.dish-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.dish-card h3 { margin-bottom: .15em; }
.dish-card .zh-sm { font-family: var(--f-zh); color: var(--red); font-size: 1.05rem; }
.dish-card .price { font-weight: 700; color: var(--orange); white-space: nowrap; }
.dish-card .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.dish-card p { color: var(--ink-soft); font-size: .97rem; margin: 10px 0 16px; flex: 1; }

.qty { display: inline-flex; align-items: center; border: 2px solid var(--red); border-radius: var(--radius); overflow: hidden; }
.qty button {
  width: 42px; height: 42px; border: 0; background: var(--white); color: var(--red);
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
}
.qty button:hover { background: var(--red); color: var(--white); }
.qty output { min-width: 34px; text-align: center; font-weight: 700; }
.add-btn { align-self: flex-start; padding: 10px 18px; font-size: .88rem; }
.add-btn.added { background: var(--white); color: var(--red); }

.seasonal {
  background: var(--paper); border-top: 2px dashed var(--red); border-bottom: 2px dashed var(--red);
}
.seasonal-empty {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 30px 22px; text-align: center; max-width: 560px; margin: 0 auto; box-shadow: 6px 6px 0 var(--orange);
}
.seasonal-empty .zh { font-size: 2.4rem; color: var(--red); display: block; }

.order-now { background: var(--red); color: var(--white); text-align: center; padding: 80px 0; }
.order-now h2 { color: var(--white); }
.order-now .zh { display: block; font-size: 2.6rem; color: #FCE8B8; }
.order-now p { opacity: .9; max-width: 44ch; margin: 0 auto 1.6em; }
.order-now .btn { background: var(--white); color: var(--red); border-color: var(--white); }
.order-now .btn:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* floating order summary on menu page (desktop) */
.float-order {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; display: none;
}
@media (min-width: 861px) { .float-order.show { display: block; } }

/* ---------- order form ---------- */
.order-layout { display: grid; gap: 28px; }
@media (min-width: 961px) { .order-layout { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
@media (min-width: 861px) { .card { padding: 32px; } }
.card h2 { font-size: 1.9rem; }
.steps { counter-reset: s; }
.step-title { display: flex; align-items: center; gap: 10px; font-family: var(--f-sign); font-size: 1.5rem; margin: 0 0 14px; }
.step-title::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: var(--white); font-family: var(--f-body); font-size: 1rem;
}
fieldset { border: 0; padding: 0; margin: 0 0 30px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid #CDBB9E; border-radius: var(--radius);
  background: #FFFEFA; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.order-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.order-lines li {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #FFFEFA;
}
.order-lines li.on { border-color: var(--orange); background: #FFF4E8; }
.order-lines .name { font-weight: 600; line-height: 1.25; }
.order-lines .name small { display: block; font-weight: 400; color: var(--ink-soft); }
.order-lines .qty button { width: 36px; height: 36px; }
.hint { font-size: .9rem; color: var(--ink-soft); }
.error { color: var(--red); font-weight: 600; font-size: .95rem; min-height: 1.4em; }
.wa-submit { width: 100%; background: #1F8A4C; border-color: #1F8A4C; font-size: 1.1rem; padding: 18px; }
.wa-submit:hover { background: #17703D; border-color: #17703D; }
.preview {
  white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: .85rem;
  background: #F4F0E6; border-left: 4px solid #1F8A4C; padding: 14px; border-radius: 4px; color: var(--ink);
}
.map { aspect-ratio: 4 / 3; width: 100%; border: 3px solid var(--ink); border-radius: var(--radius); display: block; }
.info-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.info-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.info-list .ico { color: var(--red); font-size: 1.1rem; }

/* ---------- about ---------- */
.chapter { display: grid; gap: 26px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; }
@media (min-width: 861px) {
  .chapter { grid-template-columns: 1fr 1fr; gap: 64px; padding: 72px 0; }
  .chapter:nth-child(even) .art { order: 2; }
}
.chapter .num { font-family: var(--f-zh); font-size: 3.4rem; color: var(--orange); line-height: 1; }
.art {
  aspect-ratio: 4 / 5; border-radius: var(--radius); position: relative; overflow: hidden;
  display: grid; place-items: center; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--red);
  background: linear-gradient(160deg, var(--paper), #E9D3A7);
}
.art .zh { font-size: clamp(5rem, 22vw, 9rem); color: var(--red); writing-mode: vertical-rl; opacity: .9; }
.art .tag {
  position: absolute; left: 12px; bottom: 12px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,253,247,.85); padding: 4px 8px; border-radius: 3px; color: var(--ink-soft);
}
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- press ---------- */
.press-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .press-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.press-card {
  background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--red);
  border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; min-width: 0;
}
.press-card.feature { border-top-color: var(--orange); }
.press-card .src { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.press-card h3 { margin: .4em 0 .5em; }
.press-card p { color: var(--ink-soft); font-size: .97rem; flex: 1; }
.press-card a.more { font-weight: 700; text-decoration: none; }
.press-card a.more::after { content: " →"; }
.clip {
  aspect-ratio: 3 / 2; width: 100%; height: auto; min-height: 0; margin-bottom: 14px; border: 1px dashed #B9A27C; border-radius: 4px;
  display: grid; place-items: center; text-align: center; font-size: .85rem; color: var(--ink-soft);
  background: repeating-linear-gradient(0deg, #F7EFDD 0 22px, #F1E6CE 22px 23px);
}
.michelin {
  display: grid; gap: 20px; align-items: center; background: var(--ink); color: var(--cream);
  border-radius: var(--radius); padding: 32px 24px;
}
@media (min-width: 761px) { .michelin { grid-template-columns: auto 1fr; padding: 40px 48px; gap: 36px; } }
.michelin .badge {
  width: 140px; height: 140px; border-radius: 50%; background: var(--red); display: grid; place-items: center; text-align: center;
  font-family: var(--f-sign); line-height: 1.1; border: 4px solid var(--gold); justify-self: center; font-size: 1.15rem;
}
.michelin h2 { color: var(--white); }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-deep); color: #DCE2F7; padding: 56px 0 40px; font-size: .95rem; }
.site-footer .grid { display: grid; gap: 28px; }
@media (min-width: 761px) { .site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .zh { font-size: 2.2rem; color: #FFD9C7; line-height: 1; }
.site-footer h4 { font-family: var(--f-sign); color: var(--white); font-size: 1.2rem; margin: 0 0 10px; font-weight: 600; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .fine { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; opacity: .7; }

/* ---------- scroll-in animation ---------- */
.rise { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .signature .dish { animation: none; }
  .reveal-sticky .dish { transform: none; }
  .reveal-copy, .reveal-intro { opacity: 1; transform: none; }
  .reveal-intro { display: none; }
}

/* ==================================================================
   SINGLE-PAGE LAYOUT (v2)
   ================================================================== */
html { scroll-padding-top: 76px; }
.section--tight { padding: 48px 0; }
.btn--light { background: transparent; color: var(--white); border-color: rgba(255,253,247,.8); }
.btn--light:hover { background: var(--white); color: var(--red); border-color: var(--white); }
.nav .count, .order-bar .count {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: 99px;
  background: var(--white); color: var(--red); font-size: .78rem; margin-left: 4px;
}
.nav .count[hidden], .order-bar .count[hidden] { display: none; }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head .zh { display: block; font-size: clamp(2.6rem, 10vw, 4rem); color: var(--red); line-height: 1; margin-bottom: .15em; }
.section-head .lede { margin: 0 auto; }

/* ---------- hero (scroll-driven, full screen) ---------- */
.reveal-scroller { height: 260vh; background: #1C120C; }
.reveal-sticky::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(230,107,46,.22), transparent 60%);
}
.reveal-sticky .dish { position: relative; transform: scale(calc(.62 + var(--p, 0) * .5)) rotate(calc(var(--p, 0) * 70deg)); }
.reveal-intro {
  top: auto; bottom: 0; padding: 120px var(--gutter) 9vh;
  background: linear-gradient(180deg, transparent, rgba(28,18,12,.92) 45%);
  opacity: calc(1 - var(--p, 0) * 3.2);
}
.reveal-intro h1 { color: var(--white); font-size: clamp(3rem, 12vw, 5.6rem); line-height: .95; margin-bottom: .25em; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.reveal-intro .kicker { letter-spacing: .26em; text-transform: uppercase; font-size: .72rem; color: #F3D9A0; margin-bottom: 1em; opacity: 1; }
.reveal-intro .sub { letter-spacing: .04em; text-transform: none; font-size: .95rem; color: #E9DCC3; opacity: 1; }
.scroll-cue { display: inline-block; margin-top: 14px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.hero-calli {
  position: absolute; top: 84px; right: max(16px, calc(50% - 560px)); display: flex; gap: 6px;
  writing-mode: vertical-rl; font-family: var(--f-zh); font-weight: 700; color: #FCE8B8;
  font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1; letter-spacing: .1em;
  text-shadow: 0 2px 18px rgba(0,0,0,.7); opacity: calc(1 - var(--p, 0) * 1.6);
}
.hero-calli span:last-child { color: var(--orange); }
.reveal-copy .zh { color: var(--orange); }
@media (max-width: 860px) { .hero-calli { top: 76px; } }

/* ---------- photo slots (fill automatically when the file exists) ---------- */
.ph { background-size: cover; background-position: center; }
.ph.has-photo { background-image: var(--photo) !important; }
.ph.has-photo > .zh, .ph.has-photo::after { display: none; }
.ph.has-photo > .tag { display: inline-block; }
.clip.has-photo { color: transparent; border-style: solid; }

/* ---------- signature card ---------- */
.sig-card {
  display: grid; background: var(--ink); color: #E9DCC3; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(43,29,20,.6); margin-bottom: 28px;
}
@media (min-width: 861px) { .sig-card { grid-template-columns: 1.15fr 1fr; } }
.sig-photo {
  min-height: 300px; aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,.15), transparent 60%), linear-gradient(135deg, var(--orange), var(--red));
}
.sig-photo .zh { font-size: clamp(3rem, 12vw, 5rem); color: #FFF1D6; writing-mode: vertical-rl; }
@media (min-width: 861px) { .sig-photo { aspect-ratio: auto; } }
.sig-body { padding: 28px 22px; }
@media (min-width: 861px) { .sig-body { padding: 44px; } }
.sig-body h3 { color: var(--white); font-size: clamp(2.2rem, 6vw, 3rem); margin: .3em 0 .1em; }
.sig-body .zh-sm { color: var(--red); font-size: 1.3rem; }
.sig-body .ticks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; }
.sig-body .ticks li::before { content: "✦"; color: var(--orange); margin-right: 10px; }
.sig-body .price { color: #FCE8B8; font-family: var(--f-sign); font-size: 1.6rem; }
.badge { display: inline-block; background: var(--red); color: var(--white); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- add / quantity control ---------- */
.pick .qty { display: none; }
[data-dish].picked .pick .qty { display: inline-flex; }
[data-dish].picked .pick .add-btn { display: none; }
.sig-card .qty { border-color: var(--orange); }
.sig-card .qty button { background: transparent; color: #FCE8B8; }
.sig-card .qty button:hover { background: var(--orange); color: var(--white); }
.sig-card .add-btn { background: var(--orange); border-color: var(--orange); }

/* ---------- cascade of side dishes ---------- */
.cascade { display: grid; gap: 18px; }
@media (min-width: 700px) { .cascade { grid-template-columns: 1fr 1fr; gap: 22px; } }
.dish-row {
  display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: stretch;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dish-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dish-row.picked { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.dish-row .ph {
  border-radius: 6px; display: grid; place-items: center; min-height: 112px; position: relative;
  background-image: linear-gradient(135deg, var(--orange), var(--red)); color: #FFF1D6;
}
.dish-row:nth-child(3n+2) .ph { background-image: linear-gradient(135deg, var(--gold), var(--orange)); }
.dish-row:nth-child(3n) .ph { background-image: linear-gradient(135deg, var(--red), var(--red-deep)); }
.dish-row .ph .zh { font-size: 1.5rem; writing-mode: vertical-rl; letter-spacing: .05em; }
.dish-row h3 { font-size: 1.35rem; margin: 0; }
.dish-row .zh-sm { font-family: var(--f-zh); color: var(--red); font-size: 1rem; }
.dish-row .tag { font-size: .78rem; font-weight: 700; color: var(--orange); margin-left: 6px; }
.dish-row p { color: var(--ink-soft); font-size: .92rem; margin: 6px 0 10px; }
.dish-row .price { font-weight: 700; color: var(--red); font-size: .9rem; }
.dish-row .price-row { margin-top: auto; }
.dish-row .info { display: flex; flex-direction: column; }
.dish-row .qty button { width: 36px; height: 36px; }
.dish-row .add-btn { padding: 8px 14px; font-size: .8rem; }
@media (min-width: 1000px) { .dish-row { grid-template-columns: 150px 1fr; } .dish-row .ph { min-height: 150px; } }

.group-guide {
  margin-top: 36px; display: grid; gap: 20px; align-items: center;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 26px 20px; box-shadow: 6px 6px 0 var(--blue);
}
@media (min-width: 861px) { .group-guide { grid-template-columns: 1fr 1.6fr; padding: 36px; } }
.group-guide h3 { font-size: 2rem; margin: 0; }

/* ---------- heritage ---------- */
.heritage { background: var(--paper); border-top: 2px solid var(--line); }
.heritage .chapter { border-bottom-color: rgba(43,29,20,.12); }
.chapter .num { color: var(--blue); }
.art { box-shadow: 8px 8px 0 var(--blue); }
.art .tag { display: inline-block; }

/* ---------- media ---------- */
.badge-round {
  width: 140px; height: 140px; border-radius: 50%; background: var(--red); display: grid; place-items: center; text-align: center;
  font-family: var(--f-sign); line-height: 1.1; border: 4px solid var(--gold); justify-self: center; font-size: 1.15rem; color: var(--white);
}
.michelin { margin-bottom: 28px; }
.michelin .h2 { color: var(--white); }
.michelin .eyebrow { color: var(--orange); }
.press-card { border-top-color: var(--blue); }
.press-card.feature { border-top-color: var(--red); }
.press-card .src { color: var(--blue); }
.also { text-align: center; max-width: 720px; margin: 40px auto 0; color: var(--ink-soft); }

/* ---------- order funnel ---------- */
.order-section { background: linear-gradient(180deg, var(--cream), var(--paper)); }
.order-layout { display: grid; gap: 22px; align-items: start; }
@media (min-width: 961px) { .order-layout { grid-template-columns: 1fr 1fr; } }
.order-layout fieldset:last-child { margin-bottom: 0; }
.totals { margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--line); display: grid; gap: 4px; font-size: .95rem; }
.totals .row { display: flex; justify-content: space-between; gap: 12px; }
.totals .row b { font-family: var(--f-sign); font-size: 1.3rem; color: var(--red); }
.order-groups { display: grid; gap: 22px; }
.order-group { border: 1px solid var(--line); border-radius: 6px; padding: 14px; background: var(--white); }
.order-group-title { margin: 0 0 10px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.order-group .totals { margin-top: 12px; padding-top: 10px; }
.qty.qty--toggle button, .order-lines .qty.qty--toggle button { width: auto; padding: 0 14px; font-size: .82rem; font-weight: 600; }
.totals .empty { color: var(--ink-soft); text-align: center; padding: 6px 0; }
.preview-wrap { margin-bottom: 8px; }
.preview-wrap summary { cursor: pointer; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.step-title::before { background: var(--blue); }

/* ---------- location ---------- */
.location .split { align-items: center; }
.big-zh { display: block; font-size: clamp(2.4rem, 9vw, 3.6rem); color: var(--red); line-height: 1; margin-bottom: .2em; }
.info-list .ico { color: var(--blue); }

/* ---------- floating WhatsApp (desktop) ---------- */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 58px; height: 58px; border-radius: 50%;
  background: #1F8A4C; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
  transition: transform .2s ease;
}
.fab-wa:hover { transform: scale(1.07); }
.fab-wa svg { width: 30px; height: 30px; }
@media (max-width: 860px) { .fab-wa { bottom: 88px; right: 14px; width: 52px; height: 52px; } }
.order-lines .empty-line { display: block; text-align: center; color: var(--ink-soft); border-style: dashed; }

/* ---------- order type switch (Takeaway / Dine In) ---------- */
.mode-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px;
  background: var(--paper); border: 1.5px solid #CDBB9E; border-radius: var(--radius);
}
.mode-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mode-switch label {
  text-align: center; padding: 10px 12px; border-radius: calc(var(--radius) - 2px);
  font-weight: 700; color: var(--ink-soft); cursor: pointer; transition: background .15s, color .15s;
}
.mode-switch input:checked + label { background: var(--ink); color: var(--white); }
.mode-switch input:focus-visible + label { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- hero colour scheme (light cream, from the alternate version) ---------- */
.reveal-scroller { background: #FCF8EC; color: var(--ink); }
.reveal-sticky::before { background: radial-gradient(circle at 50% 55%, rgba(217,164,65,.16), transparent 60%); }
.reveal-sticky .dish { filter: drop-shadow(0 30px 40px rgba(43,29,20,.35)); }
.reveal-sticky .dish img { box-shadow: 0 0 0 10px #E7E2DA, 0 0 0 12px #CFC6B8; }
.reveal-intro { background: linear-gradient(180deg, transparent, rgba(252,248,236,.95) 45%); }
.reveal-intro h1 { color: var(--blue); text-shadow: none; }
.reveal-intro .kicker { color: var(--red); }
.reveal-intro .sub { color: var(--ink-soft); }
.scroll-cue { color: var(--red); }
.hero-calli { color: var(--red); text-shadow: none; }
.hero-calli span:last-child { color: var(--blue); }
.reveal-copy { background: linear-gradient(180deg, transparent, rgba(252,248,236,.96) 42%); }
.reveal-copy h2 { color: var(--blue); text-shadow: none; }
.reveal-copy .zh { color: var(--red); }
.reveal-copy p { color: var(--ink); text-shadow: none; }
.reveal-copy .btn--light { color: var(--ink); border-color: var(--ink); }
.reveal-copy .btn--light:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* address eyebrow: top-left of the hero, mirroring the calligraphy on the right */
.hero-kicker {
  position: absolute; top: 84px; left: max(16px, calc(50% - 560px)); z-index: 2; margin: 0;
  letter-spacing: .26em; text-transform: uppercase; font-size: .72rem; color: var(--red);
  opacity: calc(1 - var(--p, 0) * 3.2);
}
@media (max-width: 860px) { .hero-kicker { top: 76px; } }

/* deposit notice under the order totals (always shown) */
.deposit-note {
  margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--orange); border-radius: 4px;
  background: var(--paper); color: var(--ink); font-size: .9rem; line-height: 1.5;
}

/* footer rises out of the page on a scalloped wave (from the alternate version) */
.site-footer { position: relative; margin-top: 30px; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -29px; height: 30px;
  background: radial-gradient(circle at 30px 30px, var(--blue-deep) 29px, transparent 30px) 0 0 / 60px 30px repeat-x;
}

/* back-to-top button, stacked above the WhatsApp button; appears after the first screen */
.fab-top {
  position: fixed; right: 29px; bottom: 92px; z-index: 45; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--blue); border: 2px solid var(--blue); display: grid; place-items: center;
  box-shadow: 0 8px 18px -8px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.fab-top.show { opacity: 1; visibility: visible; transform: none; }
.fab-top:hover { background: var(--blue); color: var(--white); }
.fab-top svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .fab-top { right: 18px; bottom: 150px; } }

/* order section intro runs wider so it sits on two lines on desktop */
#order .section-head .lede { max-width: 68ch; }

/* KF Seetoh quote: proof card under "The Original Crab Beehoon" (own solid background, it sits over the plate) */
.hero-quote {
  margin: 4px auto 16px; max-width: 520px; padding: 12px 18px;
  background: var(--white); border: 1px solid #CFC6B8; border-top: 3px solid var(--red); border-radius: 4px;
  box-shadow: 0 8px 20px -14px rgba(43,29,20,.45);
}
.hero-quote blockquote {
  margin: 0; font-family: "Libre Caslon Text", Georgia, serif; font-style: italic; color: var(--ink);
  font-size: clamp(.92rem, 2.4vw, 1.02rem); line-height: 1.45;
}
.hero-quote figcaption { margin-top: 6px; font-family: var(--f-body); font-size: .68rem; line-height: 1.45; color: var(--ink-soft); }
.hero-quote .who { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.hero-quote .src::before { content: " · "; }
.hero-quote cite { font-style: italic; }
.reveal-copy { padding-top: 70px; }
@media (max-width: 520px) { .hero-quote .who, .hero-quote .src { display: block; } .hero-quote .src::before { content: none; } }
.deposit-note + .deposit-note { margin-top: 8px; }

/* location: storefront photo stacked under the map */
.map-stack { display: grid; gap: 16px; min-width: 0; }
.storefront { width: 100%; height: auto; display: block; border: 3px solid var(--ink); border-radius: var(--radius); }

/* Bourdain chapter: text on the left, video on the right (desktop) */
@media (min-width: 861px) { #bourdain .video { order: 2; } }

/* photo credits */
.photo-credit { margin: -6px 0 12px; font-size: .72rem; color: var(--ink-soft); letter-spacing: .02em; }
.art .photo-credit { position: absolute; right: 8px; bottom: 6px; margin: 0; z-index: 2; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.dish-row .photo-credit { display: none; position: absolute; right: 5px; bottom: 4px; margin: 0; z-index: 2; font-size: .6rem; color: #fff; text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.dish-row .ph.has-photo > .photo-credit { display: block; }

/* Michelin decade copy */
.michelin-sub { margin: 22px 0 8px; font-size: 1.15rem; color: var(--white); }

/* ---------- price footnote ---------- */
.price-note { margin: 10px 0 0; font-size: .8rem; color: var(--ink-soft); text-align: left; }
/* sit right under the crab card, keeping the card's usual gap before the dish list */
.sig-card + .price-note { margin: -18px 0 28px; }

/* ---------- language toggle ---------- */
.lang-toggle { text-decoration: none; font-weight: 700; color: var(--blue); }
.lang-toggle--bar { display: none; }
.nav a.lang-toggle--nav {
  font-size: .8rem; letter-spacing: .06em; text-transform: none; font-weight: 600;
  margin: 0 2px 0 8px; padding: 6px 4px 6px 14px; border-radius: 0; opacity: .75;
  border-left: 1px solid var(--line);
}
.nav a.lang-toggle--nav:hover { background: none; opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
/* Simplified pages: keep LXGW WenKai TC first, add Simplified-capable fallbacks for glyphs it lacks */
html[lang="zh-Hans"] { --f-zh: "LXGW WenKai TC", "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif; }
@media (max-width: 860px) {
  .nav a.lang-toggle--nav { display: none; }
  .lang-toggle--bar {
    display: flex; align-items: center; justify-content: center; margin-left: auto; margin-right: 8px;
    height: 40px; min-width: 44px; padding: 0 10px; border: 2px solid var(--blue); border-radius: 4px;
    font-size: .95rem; line-height: 1; background: var(--white);
  }
  .lang-toggle--bar:hover { background: rgba(28,57,187,.08); }
  .site-header .wrap { gap: 0; }
}
