/* ==========================================================
   Dim Sum Fuzhou — styles
   Tokens come from the logo: lacquer red + steamer tan.
   ========================================================== */
:root {
  --tan: #FDDCA7;          /* exact logo background */
  --tan-2: #F6C988;
  --cream: #FFF4E2;
  --paper: #FFFBF4;
  --red: #992A16;          /* logo red */
  --red-2: #B4361D;
  --red-deep: #5E170B;
  --ink: #2A1810;
  --ink-2: #5C4232;
  --ink-3: #8A6E5C;
  --gold: #BE8A3F;
  --line: rgba(42, 24, 16, .12);
  --line-2: rgba(42, 24, 16, .2);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-brush: "Ma Shan Zheng", "STKaiti", "KaiTi", serif;

  --step--1: clamp(.83rem, .8rem + .15vw, .92rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.4vw, 4.9rem);
  --step-5: clamp(3.2rem, 2rem + 5.6vw, 7rem);

  --gutter: clamp(1rem, .6rem + 2vw, 2.5rem);
  --maxw: 1240px;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 1px 2px rgba(94, 23, 11, .06), 0 10px 30px -12px rgba(94, 23, 11, .25);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -.015em; font-variation-settings: "SOFT" 60, "WONK" 0; }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: var(--cream); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: .6rem 1rem; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font: 600 var(--step--1)/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.zh { font-family: var(--f-brush); font-weight: 400; letter-spacing: 0; }
.lead { font-size: var(--step-1); color: var(--ink-2); line-height: 1.5; max-width: 34ch; }
.price { font: 600 1em/1 var(--f-label); letter-spacing: .02em; white-space: nowrap; }
.price small { font-size: .7em; margin-right: .15em; opacity: .75; }
.placeholder {
  display: inline; background: repeating-linear-gradient(-45deg, rgba(190,138,63,.18) 0 6px, rgba(190,138,63,.08) 6px 12px);
  border-bottom: 1px dashed var(--gold); padding: 0 .25em; border-radius: 3px; color: var(--ink-2);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --bg-h: var(--red-2); --fg: var(--cream);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .8em 1.6em; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 600 1rem/1 var(--f-body); letter-spacing: .01em;
  box-shadow: 0 6px 16px -10px rgba(94, 23, 11, .55);
  transition: transform .35s var(--ease), background-color .3s, box-shadow .35s var(--ease), color .3s;
}
.btn:hover, .btn:focus-visible { background: var(--bg-h); transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(94, 23, 11, .6); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform .35s var(--ease); }
.btn--ghost { --bg: transparent; --bg-h: rgba(153, 42, 22, .07); --fg: var(--red-deep); box-shadow: inset 0 0 0 1.5px rgba(153, 42, 22, .45); }
.btn--ghost:hover, .btn--ghost:focus-visible { box-shadow: inset 0 0 0 1.5px var(--red); color: var(--red); }
.btn--light { --bg: var(--cream); --bg-h: #fff; --fg: var(--red-deep); }
.btn--wa { --bg: #1FAF5A; --bg-h: #189A4E; --fg: #fff; }
.btn--sm { min-height: 42px; padding: .6em 1.15em; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header--tan { background: color-mix(in srgb, var(--tan) 90%, transparent); }
.header__in { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font: 700 1.25rem/1 var(--f-display); color: var(--red); letter-spacing: .01em; }
.brand__sub { display: block; font: 600 .7rem/1 var(--f-label); letter-spacing: .28em; color: var(--ink-2); margin-top: 4px; }
.brand__sub .zh { letter-spacing: .1em; font-size: .85rem; margin-left: .3em; color: var(--red); }

.nav { display: none; gap: .25rem; }
.nav a {
  position: relative; text-decoration: none; padding: .55rem .9rem; border-radius: 999px;
  font-weight: 500; font-size: .97rem; color: var(--ink-2); transition: color .25s, background .25s;
}
.nav a:hover { color: var(--ink); background: rgba(153, 42, 22, .07); }
.nav a[aria-current="page"] { color: var(--red); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--red); transform: translateX(-50%);
}
.header__tools { display: flex; align-items: center; gap: .5rem; }
.lang {
  display: inline-flex; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); padding: 3px; background: var(--paper);
}
.lang button { border: 0; background: none; padding: .35rem .6rem; border-radius: 999px; font: 600 .78rem/1 var(--f-label); letter-spacing: .12em; color: var(--ink-3); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--red); color: var(--cream); display: grid; place-items: center; text-decoration: none;
  transition: transform .35s var(--ease-back);
}
.cart-btn:hover { transform: rotate(-6deg) scale(1.05); }
.cart-btn svg { width: 22px; height: 22px; }
/* the count is a red seal stamp (印章) */
.cart-count {
  position: absolute; top: -4px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 6px; background: var(--cream); color: var(--red);
  box-shadow: inset 0 0 0 1.5px var(--red); font: 700 .78rem/1 var(--f-label);
  transform: rotate(8deg) scale(0); transition: transform .35s var(--ease-back);
}
.cart-count.has-items { transform: rotate(8deg) scale(1); }
.cart-count.stamp { animation: stamp .5s var(--ease-back); }
@keyframes stamp { 0% { transform: rotate(8deg) scale(1.9); opacity: .2; } 60% { transform: rotate(8deg) scale(.88); opacity: 1; } 100% { transform: rotate(8deg) scale(1); } }

.burger { width: 46px; height: 46px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .35s var(--ease), background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--paper);
  padding: 2rem var(--gutter); display: flex; flex-direction: column; gap: .25rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .4s var(--ease), visibility .3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a:not(.btn) { font: 600 var(--step-3)/1.2 var(--f-display); text-decoration: none; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--red); }
.mobile-nav .btn { margin-top: 1.5rem; }
.mobile-nav__zh { margin-top: auto; font-size: 5rem; color: var(--tan-2); line-height: 1; }

@media (min-width: 960px) {
  .nav { display: flex; }
  .burger, .mobile-nav { display: none; }
}

/* ---------- Lattice ornament (window-frame corners, from the shop's posters) ---------- */
.lattice { position: absolute; width: clamp(70px, 9vw, 120px); height: auto; color: var(--red); pointer-events: none; }
.lattice path { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.is-in .lattice path, .lattice.is-in path { stroke-dashoffset: 0; }
.lattice--tl { top: 14px; left: 14px; width: clamp(48px, 6vw, 90px); opacity: .7; }
.lattice--tr { top: 18px; right: 18px; transform: scaleX(-1); }
.lattice--bl { bottom: 18px; left: 18px; transform: scaleY(-1); }
.lattice--br { bottom: 18px; right: 18px; transform: scale(-1, -1); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--tan); overflow: hidden; isolation: isolate; }
.hero::after { /* soft paper grain */
  content: ""; position: absolute; inset: 0; z-index: 3; opacity: .35; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .35 0 0 0 0 .2 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__in {
  display: grid; gap: 1rem; align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); min-height: min(88vh, 860px);
}
.hero__copy { position: relative; z-index: 2; max-width: 620px; }
.hero h1 { font-size: var(--step-5); font-weight: 600; color: var(--ink); margin: 1.1rem 0 1.4rem; line-height: .95; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--red); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero .lead { color: var(--ink-2); margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(94, 23, 11, .18); }
.hero__facts div { font: 600 .78rem/1.3 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.hero__facts strong { display: block; font: 600 1.6rem/1.1 var(--f-display); letter-spacing: 0; text-transform: none; color: var(--red); }

.hero__art { position: relative; justify-self: center; width: min(100%, 560px); aspect-ratio: 1; }
.hero__art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  /* fade the logo's patterned side columns into the hero */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.hero__art canvas { position: absolute; inset: -30% -10% 25%; width: 120%; height: 105%; pointer-events: none; z-index: 1; }
.hero__vertical {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; color: rgba(153, 42, 22, .12);
  pointer-events: none; display: none;
}
.hero__hint { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); font: 600 .72rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: rgba(94,23,11,.55); white-space: nowrap; z-index: 2; }

@media (min-width: 900px) {
  .hero__in { grid-template-columns: 1.05fr .95fr; gap: 2rem; }
  .hero__vertical { display: block; }
}

/* ---------- Marquee band ---------- */
.band { background: var(--red); color: var(--cream); overflow: hidden; padding: 1.1rem 0; position: relative; }
.band__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.band__track span { display: inline-flex; align-items: center; gap: .7rem; padding-right: 2.6rem; font: 500 var(--step-2)/1 var(--f-display); font-style: italic; white-space: nowrap; }
.band__track .zh { font-style: normal; font-size: .9em; color: var(--tan); }
.band__track span::after { content: "✦"; font-style: normal; font-size: .5em; color: var(--tan-2); margin-left: 2rem; }
.band:hover .band__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--cream { background: var(--cream); }
.section--tan { background: var(--tan); }
.section--ink { background: var(--red-deep); color: var(--cream); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); position: relative; }
.section-head h2 { font-size: var(--step-4); max-width: 16ch; }
.section-head p { color: var(--ink-2); max-width: 46ch; margin: 0; font-size: var(--step-1); line-height: 1.5; }
.section-head__zh { position: absolute; right: 0; top: -.2em; font-size: clamp(5rem, 14vw, 11rem); line-height: 1; color: rgba(153, 42, 22, .08); pointer-events: none; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Dish cards (steamer lids) ---------- */
.dishes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.dish {
  position: relative; background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.dish:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.dish__art {
  position: relative; aspect-ratio: 4 / 3; background: var(--tan); display: grid; place-items: center; overflow: hidden;
  background-image: radial-gradient(circle at 50% 120%, var(--tan-2) 0 38%, transparent 38.5%), repeating-radial-gradient(circle at 50% 120%, transparent 0 22px, rgba(153,42,22,.07) 22px 23px);
}
.dish__art img { width: 100%; height: 100%; object-fit: cover; }
.dish__glyph { font-size: clamp(3.2rem, 7vw, 4.6rem); color: var(--red); line-height: 1; position: relative; z-index: 1; transition: transform .6s var(--ease); }
.dish__art::before { /* the steamer lid that lifts on hover */
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 12%; height: 26%; border-radius: 50% 50% 14px 14px / 70% 70% 14px 14px;
  background: linear-gradient(#f2bd7a, #d99a54); box-shadow: inset 0 -6px 0 rgba(94,23,11,.18), 0 8px 14px -8px rgba(94,23,11,.5);
  transition: transform .6s var(--ease); z-index: 2;
}
.dish__art::after { /* steam wisp */
  content: ""; position: absolute; left: 50%; bottom: 38%; width: 34px; height: 60px; z-index: 0;
  border-left: 3px solid rgba(255,255,255,.85); border-radius: 50%; filter: blur(1px);
  opacity: 0; transform: translate(-50%, 10px); transition: opacity .5s, transform .9s var(--ease);
}
.dish:hover .dish__art::before { transform: translateY(-58%) rotate(-7deg); }
.dish:hover .dish__art::after { opacity: 1; transform: translate(-50%, -26px); }
.dish:hover .dish__glyph { transform: translateY(-4px) scale(1.04); }
.dish--photo .dish__art::before, .dish--photo .dish__art::after { display: none; }
.dish__body { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.dish__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dish h3 { font-size: var(--step-1); }
.dish__alt { font: 600 .74rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.dish p { font-size: .95rem; color: var(--ink-2); margin: .2rem 0 1rem; flex: 1; }
.dish .price { font-size: 1.35rem; color: var(--red); }

.add-btn {
  display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  border: 0; border-radius: 999px; padding: .55rem 1rem .55rem .65rem; background: var(--ink); color: var(--cream);
  font: 600 .9rem/1 var(--f-body); transition: background .25s, transform .3s var(--ease-back);
}
.add-btn::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--red); font-size: 1.1rem; line-height: 1; transition: transform .4s var(--ease-back); }
.add-btn:hover { background: var(--red); }
.add-btn:hover::before { background: var(--red-deep); transform: rotate(90deg); }
.add-btn:active { transform: scale(.94); }
.add-btn.added::before { content: "✓"; font-size: .8rem; }

/* flying bao (add-to-cart micro-interaction) */
.fly-bao { position: fixed; z-index: 300; width: 28px; height: 28px; pointer-events: none; left: 0; top: 0; }

/* ---------- Story split ---------- */
.story { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.story__img { position: relative; width: min(100%, 480px); justify-self: center; }
.story__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 30px 60px -30px rgba(94,23,11,.55); }
.story__img .seal {
  position: absolute; right: 2%; bottom: 6%; width: 96px; height: 96px; border-radius: 14px; background: var(--red); color: var(--cream);
  display: grid; place-items: center; text-align: center; font-size: 2.1rem; line-height: 1.05; transform: rotate(-8deg);
  box-shadow: 0 10px 24px -10px rgba(94,23,11,.6); writing-mode: vertical-rl;
}
.story h2 { font-size: var(--step-4); margin: 1rem 0 1.5rem; }
.story p { color: var(--ink-2); max-width: 52ch; }
@media (min-width: 900px) { .story { grid-template-columns: .9fr 1.1fr; } .story--rev { grid-template-columns: 1.1fr .9fr; } .story--rev .story__img { order: 2; } }

/* ---------- Steps (how to order) — a stack of steamer baskets ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step {
  position: relative; padding: 2rem 1.6rem 1.8rem; border-radius: var(--radius); background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 600 var(--step-4)/1 var(--f-display); color: var(--red); display: block; margin-bottom: 1rem; font-variation-settings: "SOFT" 100;
}
.step h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.step p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.step__rim { position: absolute; inset: auto 1.6rem 0; height: 6px; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(90deg, var(--tan-2) 0 12px, var(--tan) 12px 16px); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } .step:nth-child(2) { transform: translateY(2rem); } .step:nth-child(3) { transform: translateY(4rem); } }

/* ---------- Combos — oversized prices ---------- */
.combos { display: grid; gap: 1px; background: rgba(255, 244, 226, .18); border-radius: var(--radius); overflow: hidden; }
.combo { background: var(--red-deep); padding: clamp(1.8rem, 4vw, 2.75rem); display: flex; flex-direction: column; gap: .9rem; position: relative; }
.combo__num { font: 600 .8rem/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--tan-2); }
.combo h3 { font-size: var(--step-2); color: var(--cream); }
.combo ul { list-style: none; padding: 0; margin: 0 0 .5rem; color: rgba(255,244,226,.78); font-size: .97rem; }
.combo li { padding: .45rem 0; border-bottom: 1px dashed rgba(255,244,226,.18); display: flex; justify-content: space-between; gap: 1rem; }
.combo li span:last-child { font-family: var(--f-label); letter-spacing: .08em; color: var(--tan); }
.combo__price { font: 600 clamp(3.6rem, 9vw, 6rem)/.9 var(--f-display); color: var(--tan); margin-top: auto; font-variation-settings: "SOFT" 100; }
.combo__price small { font-size: .32em; vertical-align: top; margin-right: .2em; font-family: var(--f-label); letter-spacing: .1em; }
.combo .add-btn { background: var(--cream); color: var(--red-deep); }
.combo .add-btn:hover { background: var(--tan); }
@media (min-width: 900px) { .combos { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Photo strip ---------- */
.photo-feature { position: relative; border-radius: var(--radius); overflow: hidden; }
.photo-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-feature figcaption {
  position: absolute; left: 1rem; bottom: 1rem; background: var(--paper); padding: .55rem .9rem; border-radius: 999px;
  font: 600 .78rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}

/* ---------- Lanterns (hero) ---------- */
.lanterns { position: absolute; top: 0; right: clamp(1rem, 6vw, 7rem); display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); z-index: 2; pointer-events: none; }
.lantern { width: clamp(34px, 4vw, 54px); height: auto; aspect-ratio: 1 / 2; transform-origin: 50% 0; animation: sway 6s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(180,54,29,.35)); }
.lantern--2 { margin-top: -18px; width: clamp(28px, 3.2vw, 44px); animation-duration: 7.5s; animation-delay: -2s; }
@keyframes sway { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-3deg); } }
@media (max-width: 899px) { .lanterns { right: 1rem; opacity: .9; } .lantern--2 { display: none; } .hero .lattice--tl, .page-hero .lattice--tl { display: none; } }

/* ---------- Photo dish cards ---------- */
.dish--photo .dish__art { background: #fff; padding: 8px 8px 0; }
.dish--photo .dish__art img { border-radius: 12px; }
.dish__zh { position: absolute; right: 16px; bottom: 10px; z-index: 2; background: rgba(255,251,244,.92); color: var(--red); padding: .25rem .55rem; border-radius: 8px; font-size: 1.15rem; line-height: 1; box-shadow: 0 4px 10px -6px rgba(94,23,11,.5); }
.dish:hover .dish__art img { transform: scale(1.05); }
.dish__art img { transition: transform .7s var(--ease); }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.review {
  position: relative; background: var(--paper); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.3rem; display: flex; flex-direction: column; gap: 1rem;
  box-shadow: 0 0 0 1px var(--line), 0 18px 34px -26px rgba(94,23,11,.5);
}
.review::before { content: "“"; position: absolute; right: 1.1rem; top: -.1rem; font: 600 5rem/1 var(--f-display); color: rgba(153,42,22,.12); }
.review__stars { color: #E8A93B; letter-spacing: .12em; font-size: 1.05rem; }
.review__text { font: 500 var(--step-1)/1.4 var(--f-display); color: var(--ink); margin: 0; flex: 1; font-variation-settings: "SOFT" 80; }
.review__who { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px dashed var(--line-2); }
.review__who b { display: block; font-weight: 600; font-size: .95rem; }
.review__who span:not(.review__avatar):not(.review__g) { font-size: .8rem; color: var(--ink-3); }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--cream); font-weight: 700; flex: none; overflow: hidden; }
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__g { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem/1 var(--f-body); color: #4285F4; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.rating-pill { display: inline-flex; align-items: center; gap: .8rem; padding: .7rem 1.2rem .7rem .8rem; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--shadow); text-decoration: none; line-height: 1.2; transition: transform .35s var(--ease); }
.rating-pill:hover { transform: translateY(-2px); }
.rating-pill__g { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line); font: 700 1.1rem/1 var(--f-body); color: #4285F4; }
.rating-pill strong { font: 600 1.5rem/1 var(--f-display); color: var(--ink); }
.rating-pill .stars { color: #E8A93B; letter-spacing: .08em; }
.rating-pill small { color: var(--ink-3); font-size: .8rem; }
.reviews-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.section--tan-soft { background: linear-gradient(var(--paper), var(--cream)); }
.muted { color: var(--ink-3); font-size: .9em; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 340px; box-shadow: 0 0 0 1px var(--line), var(--shadow); background: var(--cream); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: saturate(.85) sepia(.12); }

/* ---------- Visit / contact ---------- */
.visit { display: grid; gap: 1.25rem; }
.visit__card { background: var(--paper); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 0 0 1px var(--line); }
.visit__card h3 { font-size: var(--step-2); margin-bottom: 1.25rem; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info-list li { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; align-items: start; }
.info-list .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--tan); color: var(--red); display: grid; place-items: center; }
.info-list .ico svg { width: 20px; height: 20px; }
.info-list strong { display: block; font: 600 .75rem/1.2 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .2rem; }
.info-list a { text-decoration: none; font-weight: 600; }
.info-list a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.map-ph {
  min-height: 300px; border-radius: var(--radius); display: grid; place-items: center; text-align: center; padding: 2rem;
  background: var(--tan); background-image: linear-gradient(rgba(153,42,22,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(153,42,22,.08) 1px, transparent 1px); background-size: 32px 32px;
  color: var(--ink-2);
}
.map-ph .pin { width: 54px; height: 54px; margin: 0 auto 1rem; color: var(--red); animation: bob 2.8s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.socials { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.socials a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); text-decoration: none; font-weight: 600; font-size: .9rem; transition: background .25s, color .25s, box-shadow .25s; }
.socials a:hover { background: var(--red); color: var(--cream); box-shadow: inset 0 0 0 1px var(--red); }
.socials svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative; background: var(--red); color: var(--cream); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4.5rem); overflow: hidden; isolation: isolate;
  display: grid; gap: 1.5rem; align-items: center;
}
.cta-panel h2 { font-size: var(--step-4); max-width: 14ch; }
.cta-panel p { color: rgba(255,244,226,.82); max-width: 44ch; margin: 0; }
.cta-panel .lattice { color: var(--tan-2); opacity: .6; }
.cta-panel__zh { position: absolute; right: -2%; bottom: -18%; font-size: clamp(10rem, 30vw, 22rem); line-height: 1; color: rgba(255,244,226,.08); z-index: -1; }
@media (min-width: 900px) { .cta-panel { grid-template-columns: 1fr auto; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--tan); position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-size: var(--step-5); margin: 1rem 0 1rem; line-height: .95; }
.page-hero h1 em { font-style: italic; font-weight: 500; color: var(--red); font-variation-settings: "SOFT" 100, "WONK" 1; }
.page-hero .lead { margin: 0; }
.page-hero__zh { position: absolute; right: var(--gutter); bottom: -.15em; font-size: clamp(8rem, 24vw, 18rem); line-height: 1; color: rgba(153,42,22,.1); pointer-events: none; }

/* ---------- Menu / ordering page ---------- */
.order-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1080px) { .order-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 3rem; } }

.cat-bar {
  position: sticky; top: var(--header-h); z-index: 30; background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.cat-bar__in { display: flex; gap: .4rem; overflow-x: auto; padding: .75rem 0; scrollbar-width: none; scroll-snap-type: x proximity; }
.cat-bar__in::-webkit-scrollbar { display: none; }
.cat-bar a {
  flex: none; scroll-snap-align: start; text-decoration: none; padding: .5rem 1rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .25s, color .25s, box-shadow .25s; white-space: nowrap;
}
.cat-bar a:hover { color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.cat-bar a.is-active { background: var(--red); color: var(--cream); box-shadow: inset 0 0 0 1px var(--red); }

.menu-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin: 2rem 0 .5rem; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search input {
  width: 100%; min-height: 50px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--paper);
  padding: .7rem 1rem .7rem 2.8rem; font: inherit; color: var(--ink); transition: box-shadow .25s;
}
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--red); }
.search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); }
.menu-note { font-size: .88rem; color: var(--ink-3); margin: 0; }

.menu-cat { padding-top: 2.5rem; }
.menu-cat__head { display: flex; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); margin-bottom: .5rem; }
.menu-cat__head h2 { font-size: var(--step-3); }
.menu-cat__head .zh { font-size: var(--step-2); color: var(--red); }
.menu-cat__head .count { margin-left: auto; font: 600 .78rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

.mitem { display: grid; grid-template-columns: 76px 1fr auto; gap: .5rem 1.1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.mitem__main p { margin: .35rem 0 0; }
.mitem__img { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: #fff; position: relative; padding: 4px; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -10px rgba(94,23,11,.4); }
.mitem__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; transition: transform .5s var(--ease); }
.mitem:hover .mitem__img img { transform: scale(1.06); }
.photo-note { font-size: .78rem; color: var(--ink-3); margin-top: 1.5rem; }
.photo-note a { color: var(--ink-2); }
.yape-box { border-radius: var(--radius-sm); background: #F6F0FB; padding: .9rem; display: grid; gap: .6rem; box-shadow: inset 0 0 0 1px rgba(116,34,132,.18); }
.yape-box__top { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; }
.yape-box__label { display: block; font-size: .78rem; color: #6B3A7E; }
.yape-box__num { display: block; font: 700 1.25rem/1.1 var(--f-body); color: #4A1A7A; letter-spacing: .02em; }
.yape-box__name { display: block; font-size: .76rem; color: #6B3A7E; }
.yape-box__amt { font: 600 1.35rem/1 var(--f-display); color: #4A1A7A; }
.yape-box__copy { border: 0; border-radius: 999px; min-height: 40px; background: #742284; color: #fff; font-weight: 600; font-size: .9rem; transition: background .2s; }
.yape-box__copy:hover { background: #5E1A6C; }
.yape-box .form-note { color: #6B3A7E; }
.mitem__img--ph {
  display: grid; place-items: center; color: var(--red);
  background: radial-gradient(circle at 50% 130%, var(--tan-2) 0 45%, transparent 46%), repeating-radial-gradient(circle at 50% 130%, transparent 0 10px, rgba(153,42,22,.08) 10px 11px), var(--tan);
}
.mitem__img--ph .zh { font-size: 1.7rem; line-height: 1; }
.mitem__img--ph .ph-letter { font: 600 1.9rem/1 var(--f-display); }
.ph-tag { position: absolute; left: 5px; bottom: 5px; font: 600 .56rem/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; background: rgba(255,251,244,.9); color: var(--ink-3); padding: 3px 5px; border-radius: 4px; }
.dish__art .ph-tag { left: 10px; top: 10px; bottom: auto; z-index: 3; font-size: .62rem; }
@media (max-width: 560px) {
  .mitem { grid-template-columns: 64px 1fr; }
  .mitem__img { width: 64px; height: 64px; }
  .mitem__buy { grid-column: 2; }
  .variants { grid-column: 1 / -1 !important; }
}
.mitem__name { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; }
.mitem h3 { font-size: var(--step-1); }
.mitem .zh { color: var(--red); font-size: 1.15rem; }
.mitem__meta { font: 600 .74rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.mitem p { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: .95rem; max-width: 60ch; }
.mitem__buy { display: flex; align-items: center; gap: .9rem; }
.mitem__buy .price { font-size: 1.3rem; color: var(--red); }
.mitem__dots { display: none; }
.badge-star { font: 600 .66rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; background: var(--tan); color: var(--red-deep); padding: .3rem .5rem; border-radius: 4px; }
.variants { grid-column: 2 / -1; display: grid; gap: .5rem; margin-top: .5rem; }
.variant { display: grid; grid-template-columns: 1fr auto auto; gap: .9rem; align-items: center; padding: .65rem .65rem .65rem 1rem; background: var(--cream); border-radius: var(--radius-sm); }
.variant span:first-child { font-size: .95rem; }
.variant .price { color: var(--red); font-size: 1.1rem; }
.variant .add-btn { padding: .45rem; }
.variant .add-btn .lbl { display: none; }
.empty-search { padding: 3rem 0; text-align: center; color: var(--ink-3); }

/* cart panel */
.cart {
  background: var(--paper); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), var(--shadow);
  display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h) - 2rem);
}
@media (min-width: 1080px) { .cart { position: sticky; top: calc(var(--header-h) + 84px); margin-top: 2rem; max-height: calc(100vh - var(--header-h) - 100px); } }
html:has(.cat-bar) { scroll-padding-top: calc(var(--header-h) + 80px); }
.cart__head { padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .75rem; }
.cart__head h2 { font-size: var(--step-2); }
.cart__head .zh { color: var(--red); font-size: 1.5rem; }
.cart__close { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); display: grid; place-items: center; }
.cart__body { overflow-y: auto; padding: .5rem 1.4rem; flex: 1; overscroll-behavior: contain; }
.cart__empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-3); }
.cart__empty svg { width: 70px; height: 70px; margin: 0 auto 1rem; color: var(--tan-2); }
.citem { display: grid; grid-template-columns: 1fr auto; gap: .35rem .75rem; padding: .9rem 0; border-bottom: 1px dashed var(--line-2); }
.citem__name { font-weight: 600; line-height: 1.3; }
.citem__var { display: block; font-size: .85rem; color: var(--ink-3); font-weight: 400; }
.citem .price { color: var(--ink); font-size: 1.05rem; align-self: start; }
.qty { justify-self: start; display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.qty button { width: 34px; height: 34px; border: 0; background: none; border-radius: 50%; font-size: 1.1rem; display: grid; place-items: center; }
.qty button:hover { background: var(--cream); color: var(--red); }
.qty output { min-width: 26px; text-align: center; font-weight: 700; font-size: .95rem; }
.cart__foot { padding: 1.1rem 1.4rem 1.4rem; border-top: 1px solid var(--line); background: var(--cream); border-radius: 0 0 var(--radius) var(--radius); }
.cart__sub { display: grid; gap: .35rem; margin-bottom: .8rem; padding-bottom: .8rem; border-bottom: 1px dashed var(--line-2); font-size: .9rem; color: var(--ink-2); }
.cart__sub[hidden] { display: none; }
.cart__sub > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.cart__sub small { color: var(--ink-3); font-size: .78rem; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.cart__total span { font: 600 .8rem/1 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.cart__total strong { font: 600 2rem/1 var(--f-display); color: var(--red); }

/* checkout form */
.checkout { display: grid; gap: .9rem; margin-top: .5rem; padding-bottom: 1rem; }
.field { display: grid; gap: .35rem; }
.field label, .field legend, .field__label { font: 600 .74rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-radius: var(--radius-sm); background: var(--cream); box-shadow: inset 0 0 0 1px var(--line-2);
  padding: .75rem .9rem; font: inherit; font-size: 1rem; color: var(--ink); min-height: 48px;
}
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--red); }
.field input:invalid:not(:placeholder-shown) { box-shadow: inset 0 0 0 2px #c0392b; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-top: .35rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-transform: none; letter-spacing: 0; font: 600 .95rem/1.2 var(--f-body); color: var(--ink); text-align: center; padding: .8rem .5rem; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: background .2s, box-shadow .2s, color .2s; }
.seg input:checked + label { background: var(--ink); color: var(--cream); box-shadow: none; }
.seg input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 2px; }
.field-row { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.pickup-only { display: flex; gap: .75rem; align-items: center; padding: .8rem .9rem; border-radius: var(--radius-sm); background: var(--cream); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .88rem; line-height: 1.35; color: var(--ink-2); }
.pickup-only strong { display: block; color: var(--ink); font-size: .95rem; }
.pickup-only__ico { flex: none; font-size: 1.3rem; line-height: 1; }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg--3 label { display: grid; justify-items: center; gap: .3rem; padding: .7rem .3rem; font-size: .88rem; }
.pay-ico { font-size: 1.15rem; line-height: 1; }
.pay-ico--yape { font: 800 .62rem/1 var(--f-body); font-style: italic; background: #742284; color: #fff; padding: .3rem .4rem; border-radius: 6px; }
.pay-note { min-height: 1.2em; }
.order-done { text-align: center; padding: 2rem .5rem 1.5rem; display: grid; gap: .6rem; justify-items: center; }
.order-done__seal { width: 72px; height: 72px; border-radius: 16px; background: var(--red); color: var(--cream); display: grid; place-items: center; font-size: 2.6rem; transform: rotate(-8deg); animation: stamp .6s var(--ease-back); }
.order-done h3 { font-size: var(--step-2); margin-top: .5rem; }
.order-done__id { font: 600 .85rem/1 var(--f-label); letter-spacing: .18em; color: var(--ink-3); margin: 0; }
.order-done p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.order-done .btn { margin-top: .4rem; }
.form-note { font-size: .82rem; color: var(--ink-3); margin: 0; line-height: 1.45; }
.yape { display: flex; gap: .75rem; align-items: center; padding: .8rem .9rem; border-radius: var(--radius-sm); background: #F3ECFA; color: #4A1A7A; font-size: .88rem; line-height: 1.35; }
.yape b { font-weight: 700; }
.yape__logo { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #742284; color: #fff; display: grid; place-items: center; font: 800 .8rem/1 var(--f-body); font-style: italic; }

/* mobile cart drawer + bar */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem .55rem .55rem 1.2rem; border-radius: 999px; background: var(--ink); color: var(--cream); box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.cart-bar.is-visible { transform: none; }
.cart-bar__sum { font-weight: 600; font-size: .95rem; }
.cart-bar__sum strong { font-family: var(--f-display); font-size: 1.2rem; color: var(--tan); margin-left: .35rem; }
.scrim { position: fixed; inset: 0; background: rgba(42,24,16,.45); z-index: 70; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.scrim.is-open { opacity: 1; visibility: visible; }
@media (max-width: 1079.98px) {
  .cart { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .5s var(--ease); visibility: hidden; }
  .cart.is-open { transform: none; visibility: visible; }
  .cart__foot { border-radius: 0; padding-bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
}
@media (min-width: 1080px) { .cart-bar, .cart__close, .scrim { display: none; } }

/* toast */
.toast { position: fixed; left: 50%; top: calc(var(--header-h) + 12px); z-index: 120; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--cream); padding: .7rem 1.1rem; border-radius: 999px; font-size: .92rem; font-weight: 600; transition: opacity .3s, transform .45s var(--ease); max-width: calc(100% - 24px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Story page ---------- */
.history { display: grid; gap: 1.1rem; max-width: 62ch; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.history p { margin: 0; color: var(--ink-2); line-height: 1.65; }
.history .history__lead { font: 500 var(--step-2)/1.35 var(--f-display); color: var(--ink); }
.history .history__sign { font: italic 500 var(--step-1)/1.3 var(--f-display); color: var(--red); }
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(var(--red) 0 6px, transparent 6px 12px); }
.tl-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; padding-bottom: 2.75rem; }
.tl-dot { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--red); display: grid; place-items: center; color: var(--red); font-size: 1.6rem; position: relative; z-index: 1; }
.tl-year { font: 600 .8rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: .5rem; }
.tl-item h3 { font-size: var(--step-2); margin-bottom: .6rem; }
.tl-item p { color: var(--ink-2); max-width: 56ch; margin: 0; }
@media (min-width: 900px) {
  .timeline::before { left: 50%; transform: translateX(-1px); }
  .tl-item { grid-template-columns: 1fr 56px 1fr; gap: 2.5rem; }
  .tl-item .tl-dot { grid-column: 2; grid-row: 1; }
  .tl-item .tl-body { grid-column: 3; grid-row: 1; }
  .tl-item:nth-child(even) .tl-body { grid-column: 1; text-align: right; }
  .tl-item:nth-child(even) .tl-body p { margin-left: auto; }
}

.pillars { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.pillar { background: var(--paper); padding: clamp(1.75rem, 4vw, 2.5rem); }
.pillar .zh { font-size: 3.4rem; line-height: 1; color: var(--red); display: block; margin-bottom: 1rem; }
.pillar h3 { font-size: var(--step-2); margin-bottom: .6rem; }
.pillar p { color: var(--ink-2); margin: 0; font-size: .97rem; }
@media (min-width: 820px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--tan); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g-big { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery .g-sq { aspect-ratio: 1; }
.gallery .g-ph { display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--ink-3); font-size: .85rem; background: repeating-linear-gradient(-45deg, var(--tan) 0 14px, var(--cream) 14px 28px); }
.g-ph .zh { display: block; font-size: 2.6rem; color: var(--red); opacity: .5; }
/* Big tile ≈ 4:3 on desktop so the storefront sign fits */
@media (min-width: 900px) { .gallery { grid-template-columns: 2.7fr 1fr 1fr; } .gallery .g-big { grid-column: auto; grid-row: span 2; aspect-ratio: auto; } }

.facts-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.fact { border-top: 2px solid var(--ink); padding-top: 1rem; }
.fact .zh { font-size: 2.4rem; color: var(--red); line-height: 1.1; }
.fact h3 { font-size: var(--step-1); margin: .3rem 0 .4rem; }
.fact p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,244,226,.75); padding-top: clamp(3.5rem, 7vw, 6rem); position: relative; overflow: hidden; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--tan); }
.footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer__logo { width: 120px; border-radius: 16px; margin-bottom: 1.25rem; }
.footer h4 { font: 600 .78rem/1 var(--f-label); letter-spacing: .22em; text-transform: uppercase; color: var(--tan); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__tag { font: 500 var(--step-2)/1.15 var(--f-display); font-style: italic; color: var(--cream); max-width: 18ch; }
.footer__big { font-size: clamp(5rem, 22vw, 16rem); line-height: .8; color: rgba(255,244,226,.05); text-align: center; letter-spacing: .1em; user-select: none; margin-bottom: -.12em; }
.footer__base { border-top: 1px solid rgba(255,244,226,.12); padding: 1.25rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; font-size: .85rem; }
@media (min-width: 820px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- WhatsApp float (pages without the cart bar) ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 55; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(0,0,0,.4); transition: transform .35s var(--ease-back); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .lattice path { stroke-dashoffset: 0; }
  .band__track { animation: none; }
}
