/* ============================================================
   Majesty 御膳房 — "Imperial Ceremony" (Stitch redesign)
   Dark lacquer canvas, brass hairlines, jade for private dining.
   Light Noto Serif headlines over Work Sans; generous space.
   Tokens follow the Stitch DESIGN.md.
   ============================================================ */

:root{
  --void:#0d0d0e;
  --lacquer:#110e0d;
  --surface:#141416;
  --surface-2:#1a1716;
  --jade:#10312b;
  --crimson:#942624;
  --gold:#d4af37;
  --brass:#c5a059;
  --brass-hi:#e8c87a;
  --ivory:#f8f6f0;
  --silk:#dcd7ce;

  --text-2:rgba(220,215,206,0.88);
  --text-3:rgba(220,215,206,0.68);
  --hair:rgba(197,160,89,0.15);
  --hair-2:rgba(197,160,89,0.32);
  --hair-white:rgba(255,255,255,0.05);

  --serif:'Noto Serif', 'Noto Serif SC', Georgia, serif;
  --zh:'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --sans:'Work Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --margin:clamp(20px, 4.5vw, 64px);
  --max:1320px;
  --ease:cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:cubic-bezier(0.77, 0, 0.175, 1);
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:80px; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--void);
  color:var(--silk);
  font-family:var(--sans);
  font-size:16px;
  font-weight:300;
  line-height:1.7;
  letter-spacing:0.005em;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
::selection{ background:rgba(197,160,89,0.3); color:var(--brass-hi); }
:focus-visible{ outline:1px solid var(--brass-hi); outline-offset:4px; }

.wrap{ max-width:calc(var(--max) + 2 * var(--margin)); margin:0 auto; padding-inline:var(--margin); }
.wrap-narrow{ max-width:720px; margin:0 auto; padding-inline:var(--margin); }

/* ---------- type ---------- */
h1, h2, h3{
  margin:0;
  font-family:var(--serif);
  font-weight:300;
  color:var(--ivory);
  letter-spacing:0.01em;
  text-wrap:balance;
}
h1{ font-size:clamp(38px, 5vw, 64px); line-height:1.12; letter-spacing:0.02em; }
h1 em{ font-style:italic; font-weight:400; color:var(--brass-hi); }
h2{ font-size:clamp(28px, 3.2vw, 40px); line-height:1.3; }
h3{ font-size:20px; line-height:1.4; }
.h-xl{ font-size:clamp(34px, 4vw, 52px); line-height:1.15; }
.h-lg{ font-size:clamp(28px, 3vw, 36px); }
.h-md{ font-size:clamp(22px, 2.2vw, 28px); line-height:1.3; }
p{ margin:0; }

.eyebrow{
  display:flex; align-items:center; flex-wrap:wrap; gap:10px;
  margin:0;
  font-family:var(--sans);
  font-size:11.5px;
  font-weight:600;
  letter-spacing:0.26em;
  text-transform:uppercase;
  color:var(--brass);
}
.eyebrow .zh{ font-size:14px; letter-spacing:0.1em; font-weight:400; }
.pip{ width:6px; height:6px; border-radius:50%; background:var(--brass-hi); }
.slash{ color:rgba(255,255,255,0.2); }
.muted{ color:var(--text-3); }
.zh{ font-family:var(--zh); }
.zh-tag{ font-family:var(--zh); font-weight:300; font-size:17px; letter-spacing:0.22em; color:rgba(197,160,89,0.8); }
.center{ text-align:center; align-items:center; }

/* ---------- buttons & links ---------- */
.btn{
  display:inline-flex; align-items:center; gap:12px;
  padding:14px 26px;
  border:1px solid transparent;
  border-radius:2px;
  font-family:var(--sans);
  font-size:12px;
  font-weight:600;
  letter-spacing:0.2em;
  text-transform:uppercase;
  transition:background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform 160ms var(--ease);
}
.btn:active{ transform:scale(0.97); }
.btn-sm{ padding:10px 20px; font-size:11px; letter-spacing:0.25em; }
.btn-gold{ background:var(--brass); color:var(--void); }
.btn-gold:hover{ background:var(--brass-hi); box-shadow:0 16px 48px -12px rgba(212,175,55,0.25); }
.btn-ghost{ border-color:rgba(197,160,89,0.55); color:var(--brass-hi); }
.btn-ghost:hover{ border-color:var(--brass); background:rgba(197,160,89,0.08); }
.btn-row{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 28px; }

.link{
  position:relative;
  display:inline-block;
  font-size:12px;
  font-weight:600;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--brass-hi);
  padding-block:2px;
  transition:color .3s ease;
}
.link::after{
  content:""; position:absolute; left:0; bottom:-3px;
  width:100%; height:1px; background:var(--brass);
  transform:scaleX(0); transform-origin:left;
  transition:transform .45s var(--ease);
}
.link:hover{ color:var(--ivory); }
.link:hover::after{ transform:scaleX(1); }

.price{ font-family:var(--serif); font-size:15px; color:var(--brass); letter-spacing:0.04em; }

/* ---------- framed imagery ---------- */
.frame{
  position:relative;
  overflow:hidden;
  border-radius:2px;
  border:1px solid var(--hair-white);
  background:var(--surface);
  margin:0;
}
.frame img{ width:100%; height:100%; object-fit:cover; }
.zoom img{ transition:transform 1.4s var(--ease), scale 1.6s var(--ease); }
@media (hover:hover) and (pointer:fine){
  .zoom:hover img{ transform:scale(1.045); }
}
.ratio-1{ aspect-ratio:1; }
.ratio-4-5{ aspect-ratio:4/5; }
.ratio-16-11{ aspect-ratio:16/11; }
.panel{ background:rgba(26,23,22,0.5); border:1px solid var(--hair-white); border-radius:2px; }

/* ---------- reveal on scroll (only when JS is running) ---------- */
.js .reveal, .js .reveal-scale{
  opacity:0;
  transition:opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay:var(--delay, 0ms);
}
.js .reveal{ transform:translateY(32px); }
.js .reveal-scale{ transform:scale(0.96); transition-duration:1.3s; }
.js .is-visible{ opacity:1; transform:none; }

/* Photos settle into place as they reveal: the frame wipes open from the
   bottom while the photo inside eases down from a slight zoom. Once only. */
.js .reveal .frame img, .js .frame.reveal img{ scale:1.12; }
.js .is-visible .frame img, .js .frame.is-visible img{ scale:1; }
.js .reveal .frame:not(.map){
  clip-path:inset(100% 0 0 0);
  transition:clip-path 1s var(--ease-in-out);
  transition-delay:calc(var(--delay, 0ms) + var(--stagger, 0ms));
}
.js .is-visible .frame:not(.map){ clip-path:inset(0 0 0 0); }
.triad figure:nth-child(2), .collage .frame:nth-child(2){ --stagger:80ms; }
.triad figure:nth-child(3){ --stagger:160ms; }
@media (prefers-reduced-motion:reduce){
  .js .reveal, .js .reveal-scale{ opacity:1; transform:none; transition:none; }
  .zoom img{ transition:none; }
  .js .reveal .frame img, .js .frame.reveal img{ scale:1; }
  .js .reveal .frame:not(.map){ clip-path:none; }
}

/* ---------- header ---------- */
.nav{
  position:fixed; inset:0 0 auto; z-index:50;
  padding-block:22px;
  border-bottom:1px solid rgba(255,255,255,0.04);
  transition:background-color .5s ease, padding .5s ease, backdrop-filter .5s ease;
}
.nav.is-solid{
  padding-block:14px;
  background:rgba(13,13,14,0.9);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand{ display:flex; flex-direction:column; line-height:1.2; }
.brand-en{ font-family:var(--serif); font-weight:300; font-size:19px; letter-spacing:0.25em; text-transform:uppercase; color:var(--ivory); }
.brand-sub{ margin-top:3px; font-size:10.5px; font-weight:500; letter-spacing:0.35em; text-transform:uppercase; color:var(--brass); }
.brand-sub [lang]{ font-family:var(--zh); letter-spacing:0.2em; }
.nav-links{ display:flex; gap:34px; }
.nav-links a{
  position:relative;
  font-size:12px; font-weight:500; letter-spacing:0.2em; text-transform:uppercase;
  color:rgba(220,215,206,0.85); transition:color .3s ease;
}
.nav-links a::after{
  content:""; position:absolute; left:0; right:0.2em; bottom:-6px; height:1px;
  background:var(--brass); transform:scaleX(0); transform-origin:left;
  transition:transform .35s var(--ease);
}
.nav-links a.is-active{ color:var(--brass-hi); }
.nav-links a.is-active::after{ transform:scaleX(1); }
.nav-links a:hover{ color:var(--brass-hi); }

/* ---------- hero ---------- */
.hero{
  position:relative;
  min-height:92svh;
  display:flex; align-items:center;
  padding:128px 0 80px;
  overflow:hidden;
}
.hero-glow{
  position:absolute; top:20%; left:50%; transform:translateX(-50%);
  width:680px; height:680px; max-width:100vw; border-radius:50%;
  background:rgba(197,160,89,0.05); filter:blur(160px);
  pointer-events:none;
}
.hero-grid{ position:relative; width:100%; display:grid; grid-template-columns:7fr 5fr; gap:64px; align-items:center; }
.hero-copy{ display:flex; flex-direction:column; gap:22px; }
.hero .lede{ max-width:540px; color:var(--text-2); font-size:18px; line-height:1.75; }
.hero .btn-row{ padding-top:8px; }
.hero-meta{
  display:grid; grid-template-columns:1fr 1fr; gap:24px;
  max-width:440px; margin:10px 0 0; padding-top:26px;
  border-top:1px solid rgba(255,255,255,0.06);
}
.hero-meta dt{ font-size:10.5px; font-weight:600; letter-spacing:0.28em; text-transform:uppercase; color:rgba(197,160,89,0.85); }
.hero-meta dd{ margin:4px 0 0; font-size:15px; color:rgba(248,246,240,0.9); }
.status{ display:flex; align-items:center; gap:8px; }
.dot{ flex:none; width:6px; height:6px; border-radius:50%; background:#8fc79a; box-shadow:0 0 0 3px rgba(143,199,154,0.16); }
.dot.is-closed{ background:var(--brass); box-shadow:0 0 0 3px rgba(197,160,89,0.16); }

.hero-figure{ aspect-ratio:4/5; }
.hero-figure::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(13,13,14,0.92), transparent 48%);
  pointer-events:none;
}

/* Slideshow (driven by site.js). Without JS only the first photo shows. */
.hero-slides{ position:absolute; inset:0; will-change:translate; }
.hero-slide{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
  opacity:0;
  transition:opacity 1.2s ease;
}
.hero-slide.is-active{ opacity:1; }
.hero-slide:nth-child(1){ transform-origin:50% 30%; }
.hero-slide:nth-child(2){ transform-origin:30% 60%; }
.hero-slide:nth-child(3){ transform-origin:70% 50%; }
.hero-slide:nth-child(4){ transform-origin:50% 70%; }
/* Slow push-in while a photo holds. The outgoing photo keeps zooming as it
   fades (same animation, so it doesn't restart or snap back). */
.is-auto .hero-slide.is-active, .is-auto .hero-slide.is-leaving{ animation:hero-push 7.4s linear both; }
@keyframes hero-push{ from{ transform:scale(1); } to{ transform:scale(1.1); } }

.hero-figure figcaption{
  position:absolute; left:24px; right:72px; bottom:30px; z-index:1;
  display:grid;
  font-family:var(--serif); font-weight:300; font-size:19px; line-height:1.4; color:var(--ivory);
}
.hero-cap{
  grid-area:1/1; align-self:end;
  display:flex; flex-direction:column; gap:6px;
  opacity:0; translate:0 10px;
  transition:opacity .5s ease, translate .7s var(--ease);
}
.hero-cap.is-active{ opacity:1; translate:0 0; transition-delay:.35s; }
.hero-cap .eyebrow{ font-size:10px; }
.hero-cap .zh{ margin-left:6px; font-size:15px; color:var(--brass-hi); }

/* Progress ticks: the active one fills over the hold time. Its
   animationend is what advances the slideshow. */
.hero-ticks{ position:absolute; left:24px; right:72px; bottom:16px; z-index:1; display:flex; gap:6px; }
.hero-ticks span{ flex:1; height:2px; background:rgba(248,246,240,0.18); overflow:hidden; }
.hero-ticks i{ display:block; height:100%; background:var(--brass-hi); transform:scaleX(0); transform-origin:left; }
.hero-ticks .is-active i{ transform:scaleX(1); }
.is-auto .hero-ticks .is-active i{ animation:hero-fill 6s linear both; }
@keyframes hero-fill{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }

.hero-pause{
  position:absolute; right:18px; bottom:14px; z-index:2;
  width:40px; height:40px; display:grid; place-items:center;
  border:1px solid rgba(248,246,240,0.25); border-radius:50%;
  background:rgba(13,13,14,0.45); color:var(--ivory); cursor:pointer;
  transition:border-color .3s ease, transform 160ms var(--ease);
}
.hero-pause:hover{ border-color:var(--brass); }
.hero-pause:active{ transform:scale(0.94); }
.hero-pause span{ width:10px; height:12px; border-inline:3px solid currentColor; }
.hero-pause.is-held span{ width:0; height:0; border:0; border-left:11px solid currentColor; border-block:7px solid transparent; margin-left:3px; }

/* The dish words in the opening line pick the photo. The lit one carries
   the same fill as the active tick. */
.hero-dish{
  position:relative;
  padding:0; margin:0; border:0; background:none; cursor:pointer;
  font:inherit; color:var(--ivory);
  transition:color .3s ease;
}
.hero-dish::before{ content:""; position:absolute; left:0; right:0; bottom:1px; height:1px; background:rgba(197,160,89,0.35); }
.hero-dish::after{
  content:""; position:absolute; left:0; right:0; bottom:1px; height:1px;
  background:var(--brass-hi); transform:scaleX(0); transform-origin:left;
}
.hero-dish:hover, .hero-dish.is-active{ color:var(--brass-hi); }
.hero-dish.is-active::after{ transform:scaleX(1); }
.is-auto .hero-dish.is-active::after{ animation:hero-fill 6s linear both; }

.is-paused .hero-dish::after,
.is-paused .hero-ticks i,
.is-paused .hero-slide{ animation-play-state:paused; }

/* ---------- ceremonial divider ---------- */
.seal-rule{ position:relative; height:1px; background:linear-gradient(90deg, transparent, var(--hair-2) 20%, var(--hair-2) 80%, transparent); }
.seal-rule span{
  position:absolute; left:50%; top:50%;
  width:9px; height:9px;
  transform:translate(-50%, -50%) rotate(45deg);
  border:1px solid var(--brass);
  background:var(--void);
}

/* ---------- sections ---------- */
.section{ padding-block:clamp(72px, 9vw, 112px); }
.section-tight{ padding-block:clamp(56px, 6vw, 72px); border-block:1px solid rgba(255,255,255,0.04); background:rgba(26,23,22,0.3); }
.section-sunk{ background:rgba(10,9,8,0.6); border-block:1px solid rgba(255,255,255,0.04); }
.section-jade{
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(197,160,89,0.07), transparent 60%),
    var(--jade);
}
.stack{ display:flex; flex-direction:column; gap:22px; }
.stack > p:not(.eyebrow){ color:var(--text-2); max-width:580px; font-size:17px; line-height:1.75; }
.center.stack > p{ margin-inline:auto; }

.split{ display:grid; gap:clamp(40px, 6vw, 80px); align-items:center; }
.split-7-5{ grid-template-columns:7fr 5fr; }
.split-5-7{ grid-template-columns:5fr 7fr; }
.split-6-6{ grid-template-columns:1fr 1fr; }

/* ---------- signatures ---------- */
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap;
  padding-bottom:56px;
}
.section-head > div:first-child{ display:flex; flex-direction:column; gap:12px; }
.head-links{ display:flex; gap:28px; flex-wrap:wrap; }
.dish-grid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:32px; }
.dish{ display:flex; flex-direction:column; gap:10px; }
.dish .frame{ margin-bottom:8px; }
.dish-title{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.dish-title h3{ transition:color .3s ease; }
.dish:hover h3{ color:var(--brass-hi); }
.dish-title .zh{ flex:none; font-size:14px; color:rgba(232,200,122,0.9); }
.dish p{ font-size:15px; line-height:1.65; color:var(--text-2); }

.wok{
  margin-top:64px;
  padding:clamp(28px, 3vw, 40px);
  display:grid; grid-template-columns:5fr 7fr; gap:32px; align-items:center;
}
.wok .zh{ font-size:0.8em; color:var(--brass); margin-left:6px; }
.wok-img{ height:224px; }

/* ---------- dim sum ---------- */
.aside{ font-family:var(--serif); font-style:italic; font-size:14px; color:var(--text-3); }
.triad{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
.triad figure{ margin:0; }
.triad figcaption{ display:flex; flex-direction:column; gap:2px; padding-top:12px; }
.triad .t{ font-family:var(--serif); font-size:17px; color:var(--ivory); }
.triad .s{ font-size:13px; color:rgba(197,160,89,0.85); }
.triad [lang]{ font-family:var(--zh); }

/* ---------- private dining ---------- */
.collage{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.collage .frame:nth-child(2){ margin-top:40px; }
.facts{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:20px;
  margin:4px 0; padding-block:18px;
  border-block:1px solid var(--hair-2);
}
.facts dt{ font-size:10.5px; font-weight:600; letter-spacing:0.25em; text-transform:uppercase; color:var(--brass); }
.facts dd{ margin:4px 0 0; font-size:15px; color:var(--ivory); }

/* ---------- catering ---------- */
.catering{ display:grid; grid-template-columns:1.4fr 1fr; gap:48px; align-items:center; }
.contact-list{ list-style:none; margin:0; padding:0; border-top:1px solid var(--hair); }
.contact-list li{
  display:flex; justify-content:space-between; align-items:baseline; gap:16px;
  padding:14px 0; border-bottom:1px solid var(--hair);
}
.contact-list span{ font-size:10.5px; font-weight:600; letter-spacing:0.28em; text-transform:uppercase; color:var(--text-3); }
.contact-list .link{ letter-spacing:0.08em; text-transform:none; font-size:15px; font-weight:400; overflow-wrap:anywhere; text-align:right; }

/* ---------- guest words ---------- */
.center-head{ display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center; margin-bottom:56px; }
.quotes{ display:grid; grid-template-columns:repeat(3, 1fr); gap:32px; }
.quote{ margin:0; padding:32px; display:flex; flex-direction:column; justify-content:space-between; gap:24px; background:rgba(26,23,22,0.2); }
.quote blockquote{ margin:0; font-family:var(--serif); font-style:italic; font-weight:300; font-size:18px; line-height:1.7; color:rgba(248,246,240,0.92); }
.quote figcaption{ display:flex; flex-direction:column; gap:2px; padding-top:16px; border-top:1px solid rgba(255,255,255,0.05); }
.quote strong{ font-size:12px; font-weight:500; letter-spacing:0.1em; color:var(--brass-hi); }
.quote figcaption span{ font-size:11px; letter-spacing:0.2em; text-transform:uppercase; color:var(--text-3); }

/* ---------- visit ---------- */
.visit{ display:grid; grid-template-columns:repeat(3, 1fr); gap:48px; align-items:stretch; }
.visit address{ font-style:normal; color:var(--text-2); }
.socials{ list-style:none; margin:auto 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px 24px; }
.socials a{ font-size:12px; font-weight:500; letter-spacing:0.2em; text-transform:uppercase; color:var(--text-3); transition:color .3s ease; }
.socials a:hover{ color:var(--brass-hi); }
.hours{ padding:32px; display:flex; flex-direction:column; gap:20px; background:rgba(26,23,22,0.3); }
.hours .eyebrow{ color:var(--brass-hi); }
.hours dl{ margin:0; display:flex; flex-direction:column; gap:14px; font-size:15px; }
.hours dl > div{ display:flex; justify-content:space-between; gap:16px; padding-bottom:12px; border-bottom:1px solid rgba(255,255,255,0.05); }
.hours dt{ color:var(--ivory); }
.hours dt small{ display:block; font-size:12px; color:var(--brass); }
.hours dd{ margin:0; text-align:right; color:var(--text-2); }
.hours .note{ font-size:13px; line-height:1.6; color:var(--text-3); }
.map{ min-height:320px; display:flex; flex-direction:column; }
.map iframe{ flex:1; display:block; width:100%; min-height:280px; border:0; }
/* Sits under the map, not over it, so Google's attribution stays visible. */
.map-bar{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:12px 14px;
  background:rgba(13,13,14,0.9);
  border-top:1px solid var(--hair-white);
  font-size:13px; color:var(--ivory);
}
.map-bar .link{ flex:none; white-space:nowrap; font-size:10.5px; letter-spacing:0.25em; }

/* ---------- invitation ---------- */
.invitation{ padding-block:clamp(88px, 11vw, 128px); }
.seal-text{ font-size:16px; letter-spacing:0.2em; color:var(--brass); }

/* ---------- 404 ---------- */
.notfound{ min-height:100svh; display:grid; place-items:center; padding-block:140px 96px; }
.center .btn-row{ justify-content:center; }

/* ---------- footer ---------- */
.footer{ padding-block:56px 40px; background:rgba(10,9,8,0.8); border-top:1px solid rgba(255,255,255,0.04); }
.footer-inner{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px 32px; }
.footer-brand{ font-family:var(--serif); font-weight:300; font-size:14px; letter-spacing:0.2em; text-transform:uppercase; color:var(--ivory); }
.footer-brand [lang]{ font-family:var(--zh); letter-spacing:0.1em; }
.footer-brand .muted{ font-family:var(--sans); font-size:12px; letter-spacing:0.12em; }
.footer-links{ display:flex; flex-wrap:wrap; gap:10px 32px; }
.footer-links a{ font-size:11px; font-weight:500; letter-spacing:0.18em; text-transform:uppercase; color:var(--text-3); transition:color .3s ease; }
.footer-links a:hover{ color:var(--brass-hi); }
.credits{ flex-basis:100%; font-size:12px; color:rgba(220,215,206,0.5); }
.credits a{ text-decoration:underline; }

/* ---------- responsive ---------- */
@media (max-width:1199px){
  .nav-links{ gap:24px; }
  .dish-grid{ grid-template-columns:repeat(2, 1fr); }
  .visit{ grid-template-columns:1fr 1fr; }
  .map{ grid-column:1 / -1; }
}
@media (max-width:1023px){
  .nav-links{ display:none; }
  .hero{ min-height:auto; }
  .hero-grid, .split-7-5, .split-5-7, .split-6-6, .wok, .catering{ grid-template-columns:1fr; }
  .hero-figure{ max-width:520px; }
  .quotes{ grid-template-columns:1fr; max-width:600px; margin-inline:auto; }
}
@media (max-width:767px){
  .hero{ padding-top:112px; }
  .dish-grid{ grid-template-columns:1fr; gap:40px; }
  .triad{ grid-template-columns:1fr 1fr; gap:16px; }
  .triad figure:last-child{ display:none; }
  .facts{ grid-template-columns:1fr; gap:12px; }
  .facts > div{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; }
  .facts dd{ margin:0; }
  .visit{ grid-template-columns:1fr; }
  .wok-img{ height:180px; }
  .head-links{ gap:20px; }
}

/* ---------- tap-to-enlarge ---------- */
.is-zoomable{ cursor:zoom-in; }
.is-zoomable:focus-visible{ outline:2px solid var(--brass-hi); outline-offset:3px; }
.lightbox{
  width:100vw; height:100dvh; max-width:none; max-height:none;
  margin:0; padding:0; border:0; background:transparent;
  display:grid; place-items:center; cursor:zoom-out;
}
.lightbox:not([open]){ display:none; }
.lightbox::backdrop{ background:rgba(8,7,6,0.92); }
.lightbox img{
  max-width:min(94vw, 1600px); max-height:90dvh;
  width:auto; height:auto; object-fit:contain;
  box-shadow:0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close{
  position:fixed; top:max(14px, env(safe-area-inset-top)); right:14px;
  width:44px; height:44px; border-radius:50%;
  border:1px solid var(--hair-2); background:rgba(17,14,13,0.7);
  color:var(--ivory); font-size:26px; line-height:1; cursor:pointer;
}
.lightbox-close:hover{ border-color:var(--brass-hi); color:var(--brass-hi); }
@media (prefers-reduced-motion:no-preference){
  .lightbox[open] img{ animation:lightbox-in .32s var(--ease); }
  .lightbox[open]::backdrop{ animation:lightbox-fade .25s ease-out; }
}
@keyframes lightbox-in{ from{ opacity:0; transform:scale(0.96); } }
@keyframes lightbox-fade{ from{ opacity:0; } }


/* ---------- dining room gallery ---------- */
.gallery{ padding-block:clamp(72px, 9vw, 112px); }
.gallery-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:36px; }
.gallery-head > div{ flex:1 1 auto; display:flex; flex-direction:column; gap:12px; }
.gallery-progress{ flex:0 0 220px; height:1px; background:var(--hair-2); overflow:hidden; }
.gallery-progress span{ display:block; height:100%; background:var(--brass-hi); transform:scaleX(0); transform-origin:left; }
.gallery-viewport{
  overflow-x:auto; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory; scrollbar-width:none;
  padding-inline:var(--margin);
}
.gallery-viewport::-webkit-scrollbar{ display:none; }
.gallery-track{ display:flex; gap:clamp(16px, 2.5vw, 32px); margin:0; padding:0; list-style:none; width:max-content; }
.gallery-item{ scroll-snap-align:center; }
.gallery-item figure{ margin:0; }
.gallery-item .frame{ height:clamp(340px, 62vh, 600px); max-width:80vw; }
.gallery-item .frame img{ scale:1.12; }
.gallery-item figcaption{ padding-top:12px; font-family:var(--serif); font-size:16px; color:var(--ivory); }

/* Desktop with motion allowed: site.js pins the section and moves the
   track sideways as you scroll down. */
.gallery.is-pinned{ padding-block:0; }
.gallery.is-pinned .gallery-pin{
  position:sticky; top:0; height:100vh; height:100svh;
  display:flex; flex-direction:column; justify-content:center;
  padding-top:72px;               /* clear the fixed nav */
  overflow:hidden;
}
.gallery.is-pinned .gallery-head{ width:100%; }   /* flex column + auto margins would shrink-centre it */
.gallery.is-pinned .gallery-item .frame{ height:clamp(300px, 56vh, 560px); }
.gallery.is-pinned .gallery-viewport{ overflow:visible; scroll-snap-type:none; }
.gallery.is-pinned .gallery-track{ will-change:transform; }

/* ---------- side-scrolling rows: faded ends with < > buttons ----------
   The fade dims whatever sits under each end; the round button inside it
   moves the row. The fade itself lets clicks through to the photos. At the
   start or end of a row (not the endless strip) that side fades away. */
.scroller{ position:relative; --edge-bg:var(--void); --btn-y:50%; }
.edge{
  position:absolute; top:0; bottom:0; z-index:2;
  width:clamp(56px, 8vw, 128px);
  margin:0; padding:0; border:0;
  pointer-events:none;
  transition:opacity .35s ease;
}
.edge-prev{ left:0;  background:linear-gradient(90deg,  var(--edge-bg) 8%, transparent); }
.edge-next{ right:0; background:linear-gradient(270deg, var(--edge-bg) 8%, transparent); }
.edge-btn{
  position:absolute; top:var(--btn-y); translate:0 -50%;
  width:46px; height:46px; display:grid; place-items:center;
  border:1px solid rgba(197,160,89,0.5); border-radius:50%;
  background:rgba(13,13,14,0.6);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  color:var(--brass-hi); cursor:pointer; pointer-events:auto;
  transition:border-color .3s ease, background-color .3s ease, transform 160ms var(--ease);
}
.edge-prev .edge-btn{ left:clamp(8px, 1.6vw, 24px); }
.edge-next .edge-btn{ right:clamp(8px, 1.6vw, 24px); }
@media (hover:hover) and (pointer:fine){
  .edge-btn:hover{ border-color:var(--brass-hi); background:rgba(40,32,22,0.8); }
}
.edge:active .edge-btn{ transform:scale(0.94); }
.edge:focus-visible{ outline:none; }
.edge:focus-visible .edge-btn{ outline:1px solid var(--brass-hi); outline-offset:3px; }
.edge:disabled{ opacity:0; }
/* Gallery at either end: that arrow turns to point the way the loop goes. */
.edge-btn svg{ transition:transform .45s var(--ease); }
.edge.is-rewind .edge-btn svg{ transform:rotate(180deg); }
.edge:disabled .edge-btn{ pointer-events:none; }
.scroller-strip{ --edge-bg:#0b0b0a; --btn-y:162px; }  /* section-sunk tone; middle of the photo */
.scroller-gallery{ --btn-y:calc(clamp(340px, 62vh, 600px) / 2); }
.gallery.is-pinned .scroller-gallery{ --btn-y:calc(clamp(300px, 56vh, 560px) / 2); }
@media (max-width:767px){
  .edge-btn{ width:38px; height:38px; }
}

/* ---------- more-from-the-menu strip ---------- */
.strip{ margin-top:clamp(64px, 8vw, 96px); }
.strip-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:24px; }
.strip-head h3{ margin:0; }
.strip-note{ font-size:13px; color:var(--text-3); }
@media (hover:hover) and (pointer:fine){
  .strip-viewport{ cursor:grab; }
  .strip-viewport.is-dragging{ cursor:grabbing; user-select:none; }
}
.strip-viewport{
  overflow-x:auto; scrollbar-width:none;
}
.strip-viewport::-webkit-scrollbar{ display:none; }
.strip-viewport:focus-visible{ outline:2px solid var(--brass-hi); outline-offset:4px; }
.strip-track{ display:flex; gap:20px; margin:0; padding:0 var(--margin); list-style:none; width:max-content; }
.strip-item{ width:260px; }
.strip-item figure{ margin:0; }
.strip-item figcaption{ display:flex; flex-direction:column; gap:4px; padding-top:12px; }
.strip-item .t{ font-family:var(--serif); font-size:16px; line-height:1.35; color:var(--ivory); }
.strip-item .s{ display:flex; justify-content:space-between; gap:12px; font-size:13px; }
.strip-item .zh{ color:rgba(232,200,122,0.9); }
@media (max-width:767px){
  .strip-item{ width:220px; }
  .strip-head{ flex-direction:column; gap:6px; }
  .scroller-strip{ --btn-y:137px; }
  .gallery-head{ flex-direction:column; align-items:stretch; }
  .gallery-progress{ flex-basis:auto; }
}
@media (prefers-reduced-motion:reduce){
  .gallery-item .frame img{ scale:1; }
  .hero-slide, .hero-cap{ transition-duration:.3s; }
  .hero-cap{ translate:none; }
}
