/* ==========================================================================
   Germy — Refined Direction
   B “After Hours” header/hero + C “The Seasonal Journal” editorial details.
   Tokens below are the single source of truth; see /design.md.
   ========================================================================== */

/* Traditional Chinese handwriting for The Chef's Notes: 清松手寫體5 · 行楷 (SIL OFL, assets/fonts/OFL.txt),
   subset to the characters that copy uses (npm run hand-font). Anything missing falls back to LXGW WenKai TC. */
@font-face {
  font-family: "Germy Hand TC";
  src: url("../assets/fonts/jason-handwriting-5.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --ivory: #F3EFE7;
  --charcoal: #22211E;
  --olive: #343C32;
  --brass: #A58B61;
  --linen: #DDD6CB;
  --error-dark: #E8A58C;   /* error text on dark (≥7:1 on charcoal) */
  --error-light: #9A3B22;  /* error text on ivory (≥6:1) */

  /* Roles */
  --paper: var(--ivory);           /* light section background */
  --ink: var(--charcoal);          /* text on light sections */
  --night: var(--charcoal);        /* dark section background */
  --accent: var(--brass);          /* decorative lines, numerals on dark */
  --accent-ink: color-mix(in srgb, var(--accent) 70%, #000); /* accent text on light */
  --h-scale: 1;
  --body-size: 1rem;
  --space-scale: 1;
  --hero-overlay: .78;
  --reveal: 18px;
  --dur: 800ms;
  --fade: 800ms;

  /* Type */
  --font-display-en: "Bodoni Moda", "Noto Serif TC", serif;
  --font-display-zh: "Noto Serif TC", "Bodoni Moda", serif;
  --font-body-en: "Manrope", "Noto Sans TC", sans-serif;
  --font-body-zh: "Noto Sans TC", "Manrope", sans-serif;
  --font-display: var(--font-display-en);
  --font-body: var(--font-body-en);
  --font-hand-en: "Caveat", "LXGW WenKai TC", cursive;
  --font-hand-zh: "Germy Hand TC", "LXGW WenKai TC", "Caveat", serif;
  --font-hand: var(--font-hand-en);

  /* Layout */
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1360px;
  --section-y: calc(clamp(88px, 11vw, 168px) * var(--space-scale));
  --header-h: 88px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-fade: cubic-bezier(.4, 0, .2, 1);
}
html[lang="zh-HK"] {
  --font-display: var(--font-display-zh);
  --font-body: var(--font-body-zh);
  --font-hand: var(--font-hand-zh);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.75;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html.js body { transition: opacity 280ms ease; }
html.i18n-pending body { opacity: 0; }
html[lang="zh-HK"] body { line-height: 1.85; letter-spacing: .02em; }
html[lang="zh-HK"] em, html[lang="zh-HK"] i { font-style: normal; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--ivory); color: var(--charcoal); text-decoration: none; }
.skip:focus { top: 12px; }
.noscript { padding: 16px var(--gutter); background: var(--ivory); color: var(--charcoal); }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* ---------- Themes ---------- */
.theme-night, .hero {
  --bg: var(--night); --fg: var(--ivory);
  --muted: rgba(243, 239, 231, .76);
  --rule: rgba(243, 239, 231, .16);
  --rule-strong: color-mix(in srgb, var(--accent) 60%, transparent);
  --acc: var(--accent);
  --btn-bg: var(--ivory); --btn-fg: var(--charcoal); --btn-hover: var(--linen);
  --focus: var(--accent);
  --error: var(--error-dark);
  --pop-bg: color-mix(in srgb, var(--night) 92%, var(--ivory));
}
.theme-olive {
  --bg: var(--olive); --fg: var(--ivory);
  --muted: rgba(243, 239, 231, .8);
  --rule: rgba(243, 239, 231, .22);
  --rule-strong: color-mix(in srgb, var(--accent) 70%, transparent);
  --acc: var(--accent);
  --btn-bg: var(--ivory); --btn-fg: var(--olive); --btn-hover: var(--linen);
  --focus: var(--accent);
}
.theme-paper, .theme-linen {
  --bg: var(--paper); --fg: var(--ink);
  --muted: color-mix(in srgb, var(--ink) 80%, transparent);
  --rule: color-mix(in srgb, var(--ink) 15%, transparent);
  --rule-strong: var(--ink);
  --acc: var(--accent-ink);
  --btn-bg: var(--olive); --btn-fg: var(--ivory); --btn-hover: var(--charcoal);
  --focus: var(--olive);
  --error: var(--error-light);
  --pop-bg: color-mix(in srgb, var(--paper) 45%, #fff);
}
.theme-linen { --bg: color-mix(in srgb, var(--paper) 45%, var(--linen)); }
.section { position: relative; padding-block: var(--section-y); background: var(--bg); color: var(--fg); }
/* Consecutive ivory sections share one fine rule instead of a doubled gap */
.theme-paper + .theme-paper { padding-top: 0; }
.theme-paper + .theme-paper > .wrap { padding-top: calc(var(--section-y) * .62); border-top: 1px solid var(--rule); }

/* ---------- Editorial type ---------- */
.sec-no { display: flex; align-items: center; gap: 16px; font-family: var(--font-display-en); font-style: italic; font-size: 1.125rem; line-height: 1; color: var(--acc); }
.sec-no::after { content: ""; flex: 0 0 64px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow { margin-top: 18px; font-size: .8125rem; line-height: 1.5; font-weight: 500; letter-spacing: .16em; color: var(--acc); }
html[lang="zh-HK"] .eyebrow { font-size: .875rem; letter-spacing: .26em; }

.h2 { margin-top: 14px; font-family: var(--font-display); font-size: calc(clamp(2.5rem, 4.8vw, 4.25rem) * var(--h-scale)); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
.h2 em { font-style: italic; }
html[lang="zh-HK"] .h2 { font-weight: 500; font-size: calc(clamp(2rem, 3.6vw, 3.25rem) * var(--h-scale)); line-height: 1.32; letter-spacing: .06em; }
.h3 { font-family: var(--font-display); font-size: calc(clamp(1.625rem, 2.4vw, 2.25rem) * var(--h-scale)); line-height: 1.15; }
html[lang="zh-HK"] .h3 { font-weight: 500; font-size: calc(clamp(1.375rem, 2vw, 1.75rem) * var(--h-scale)); line-height: 1.5; letter-spacing: .06em; }
.lead { margin-top: 24px; max-width: 34em; font-size: 1.125rem; color: var(--muted); }
.lead-serif { font-family: var(--font-display); font-size: calc(clamp(1.625rem, 2.8vw, 2.5rem) * var(--h-scale)); line-height: 1.3; text-wrap: balance; }
html[lang="zh-HK"] .lead-serif { line-height: 1.65; letter-spacing: .06em; }
.roman { font-family: var(--font-display-en); font-style: italic; color: var(--acc); }
.tag { display: inline-block; margin-top: 20px; padding: 6px 10px 5px; border: 1px solid var(--rule-strong); font-size: .75rem; line-height: 1.4; letter-spacing: .08em; color: var(--muted); }


/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 50px; padding: 0 1.6rem; border: 1px solid transparent; border-radius: 1px;
  font: 500 .9375rem/1.2 var(--font-body); letter-spacing: .08em; text-decoration: none; text-align: center;
  cursor: pointer; transition: color 500ms var(--ease), border-color 500ms var(--ease);
}
html[lang="zh-HK"] .btn { letter-spacing: .16em; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 300ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--solid { --btn-sweep: var(--btn-hover, var(--linen)); background: var(--btn-bg, var(--ivory)); color: var(--btn-fg, var(--charcoal)); }
.btn--ghost { --btn-sweep: var(--btn-bg, var(--ivory)); border-color: currentColor; background: transparent; color: inherit; }
.btn--ghost:hover { color: var(--btn-fg, var(--charcoal)); border-color: var(--btn-bg, var(--ivory)); }
/* Hover: a fill opens from the centre out to both edges at once (solid → hover tone, ghost → theme fill) */
.btn { position: relative; isolation: isolate; overflow: hidden; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-sweep); transform: scaleX(0); transform-origin: center; transition: transform 500ms var(--ease); }
.btn:hover::before { transform: scaleX(1); }
.btn:disabled::before, .btn[aria-disabled="true"]::before { transform: scaleX(0); }
.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: .875rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

.link-line { position: relative; display: inline-flex; align-items: center; gap: .5em; padding: 8px 0; font-weight: 500; letter-spacing: .06em; text-decoration: none; }
.link-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(.35); transition: transform 450ms var(--ease); }
.link-line:hover::after, .link-line:focus-visible::after { transform: scaleX(1); }
.text-btn { padding: 4px 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Header (B) ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 30; color: var(--ivory); transition: background-color 400ms var(--ease); --focus: var(--accent); --btn-bg: var(--ivory); --btn-fg: var(--charcoal); --btn-hover: var(--linen); }
.header__bar { display: flex; align-items: center; height: var(--header-h); gap: 24px; border-bottom: 1px solid rgba(243, 239, 231, .14); transition: height 400ms var(--ease); }
.site-header.is-solid { background: color-mix(in srgb, var(--night) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header.is-solid .header__bar { height: 72px; }
.brand { display: inline-flex; flex: none; text-decoration: none; }
.logo { display: block; height: 34px; width: auto; }
.logo--lg { height: 44px; }
.logo__ring { stroke: var(--accent); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 34px); margin-left: auto; font-size: .9375rem; letter-spacing: .08em; white-space: nowrap; }
html[lang="zh-HK"] .nav { letter-spacing: .16em; }
.nav-link { position: relative; padding: 8px 0; text-decoration: none; }
.nav-link::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 1px; background: var(--accent); transition: left 350ms var(--ease), right 350ms var(--ease); }
.nav-link:hover::after, .nav-link:focus-visible::after { left: 0; right: 0; }
.header__tools { display: flex; align-items: center; gap: 18px; }
.header__reserve .short { display: none; }

.lang { display: inline-flex; align-items: center; gap: 4px; padding-left: 18px; border-left: 1px solid rgba(243, 239, 231, .22); font-size: .8125rem; letter-spacing: .08em; white-space: nowrap; }
.lang__btn { min-height: 40px; min-width: 32px; padding: 0 4px; border: 0; background: none; color: rgba(243, 239, 231, .62); cursor: pointer; text-underline-offset: 7px; text-decoration-thickness: 1px; transition: color 250ms var(--ease); }
.lang__btn:hover { color: var(--ivory); }
.lang__btn[aria-pressed="true"] { color: var(--ivory); text-decoration-line: underline; text-decoration-color: var(--accent); }
.lang__sep { color: rgba(243, 239, 231, .35); }
.lang--menu, .lang--footer { padding-left: 0; border-left: 0; font-size: .9375rem; }
.lang--footer { margin-top: 20px; margin-left: -4px; }
.lang--footer .lang__btn { color: var(--muted); }
.lang--footer .lang__btn[aria-pressed="true"] { color: var(--ivory); }

.menu-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer; }
.menu-toggle.is-visible { display: inline-flex; }
.menu-toggle svg { width: 26px; height: 26px; }

dialog.menu { margin: 0; padding: 0; border: 0; width: 100%; max-width: none; height: 100%; max-height: none; background: var(--night); color: var(--ivory); --focus: var(--accent); }
dialog.menu::backdrop { background: rgba(34, 33, 30, .5); }
dialog.menu[open] { animation: fade-in 380ms var(--ease); }
.menu__inner { display: flex; flex-direction: column; min-height: 100%; padding: 16px var(--gutter) 32px; }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.menu__list { display: grid; margin-top: 40px; }
.menu__list a { display: flex; align-items: baseline; gap: 18px; padding: 15px 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-family: var(--font-display); font-size: 1.625rem; line-height: 1.3; text-decoration: none; }
html[lang="zh-HK"] .menu__list a { font-size: 1.5rem; letter-spacing: .12em; }
.menu__list .roman { width: 28px; flex: none; font-size: .9375rem; color: var(--accent); }
.menu__foot { display: grid; gap: 20px; margin-top: auto; padding-top: 40px; }
.menu__foot .btn { width: 100%; }

/* ---------- Hero (B) with dining-sequence slideshow ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: max(700px, 100svh); overflow: hidden; background: var(--night); color: var(--ivory); touch-action: pan-y; /* horizontal swipes change chapter (app.js) */ }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; opacity: 0; z-index: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); }
.slide.is-prev { opacity: 1; z-index: 1; }
.slide.is-active { opacity: 1; z-index: 2; transition: opacity var(--fade) var(--ease-fade); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(22,21,19,var(--hero-overlay)) 0%, rgba(22,21,19,calc(var(--hero-overlay) * .5)) 46%, rgba(22,21,19,0) 70%),
    linear-gradient(0deg, rgba(22,21,19,calc(var(--hero-overlay) * .95)) 0%, rgba(22,21,19,0) 46%),
    linear-gradient(180deg, rgba(22,21,19,.6) 0%, rgba(22,21,19,0) 22%);
}
.hero__inner { width: min(100% - var(--gutter) * 2, var(--max)); padding-top: 140px; padding-bottom: clamp(36px, 4.5vw, 64px); }
.hero__copy { max-width: 760px; }
.hero__pre { font-size: .8125rem; font-weight: 500; letter-spacing: .16em; color: var(--accent); }
html[lang="zh-HK"] .hero__pre { font-size: .9375rem; letter-spacing: .32em; }
.hero__title { margin-top: 22px; font-family: var(--font-display); font-size: calc(clamp(3.4rem, 8.4vw, 8.25rem) * var(--h-scale)); line-height: .92; letter-spacing: -.025em; }
.hero__title em { font-style: italic; }
html[lang="zh-HK"] .hero__title { margin-top: 20px; font-weight: 500; font-size: calc(clamp(2.75rem, 6vw, 5.75rem) * var(--h-scale)); line-height: 1.24; letter-spacing: .1em; }
.hero__title .ln { display: block; white-space: nowrap; }
.hero__title .ln + .ln { padding-left: 1.2em; }
.hero__sub { margin-top: 26px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; letter-spacing: .02em; color: rgba(243, 239, 231, .88); }
html[lang="zh-HK"] .hero__sub { margin-top: 22px; font-family: var(--font-display-zh); letter-spacing: .18em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }

.hero__controls { display: flex; align-items: flex-end; gap: 28px; width: min(100%, 760px); margin-top: clamp(40px, 5.5vw, 72px); }
/* Each progress line is ~1.5–2× its label: “Prelude” 1.55×, “Finale” 1.9×, “Focus” 2.1×; 序曲 ≈ 2× */
.ind-list { --ind-w: 5.85rem; flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, var(--ind-w))); gap: 28px; }
html[lang="zh-HK"] .ind-list { --ind-w: 5rem; }
.ind { position: relative; min-height: 54px; padding: 16px 0 4px; border: 0; background: none; color: rgba(243, 239, 231, .58); text-align: left; line-height: 1.4; cursor: pointer; transition: color 350ms var(--ease); }
.ind:hover { color: rgba(243, 239, 231, .86); }
.ind[aria-current="true"] { color: var(--ivory); }
.ind__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; overflow: hidden; background: rgba(243, 239, 231, .2); }
.ind__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; transform: scaleX(0); will-change: transform; }
.ind[aria-current="true"] .ind__fill { background: var(--ivory); }
.ind__k { font-family: var(--font-display-en); font-style: italic; font-size: 1.125rem; letter-spacing: .01em; }
html[lang="zh-HK"] .ind__k { font-family: var(--font-display-zh); font-style: normal; font-size: 1rem; letter-spacing: .28em; }
html[lang="zh-HK"] .ind[aria-current="true"] .ind__k { font-weight: 500; }
.ind:focus-visible { outline-offset: 6px; }


/* ---------- 01 Our Story ---------- */
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 7vw, 112px); align-items: center; }
.story__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 38%; }
.story__title { margin-top: 14px; font-family: var(--font-display); font-size: calc(clamp(2.75rem, 5.2vw, 5rem) * var(--h-scale)); line-height: 1.02; letter-spacing: -.015em; text-wrap: balance; }
html[lang="zh-HK"] .story__title { font-weight: 500; font-size: calc(clamp(2.25rem, 4vw, 3.75rem) * var(--h-scale)); line-height: 1.3; letter-spacing: .12em; }
.story__rule { width: 56px; height: 1px; margin: clamp(28px, 3vw, 40px) 0; border: 0; background: var(--accent); }
.story__desc { max-width: 30em; font-size: 1.125rem; line-height: 1.8; color: var(--muted); }
html[lang="zh-HK"] .story__desc { max-width: 24em; font-size: 1.0625rem; line-height: 1.95; letter-spacing: .04em; }

/* ---------- 02 The Experience (full-bleed table photograph, text on its dark left side) ---------- */
.experience { isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: clamp(620px, 54vw, 880px); }
.experience > .wrap { position: relative; }
.experience__bg { position: absolute; inset: 0; z-index: -2; margin: 0; }
.experience__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.experience::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(22,21,19,.84) 0%, rgba(22,21,19,.62) 34%, rgba(22,21,19,0) 60%),
    linear-gradient(0deg, rgba(22,21,19,.55) 0%, rgba(22,21,19,0) 28%),
    linear-gradient(180deg, rgba(22,21,19,.45) 0%, rgba(22,21,19,0) 22%);
}
.experience__text { grid-column: 1 / span 5; }

/* ---------- Section heads ---------- */
.sec-head { align-items: end; }
.sec-head__main { grid-column: 1 / span 6; }
/* Centred variant (Our Menus): number between two fine rules; eyebrow and heading centred, heading on one line from tablet up */
.sec-head--center { text-align: center; }
.sec-head--center .sec-no { justify-content: center; }
.sec-head--center .sec-no::before { content: ""; flex: 0 0 64px; height: 1px; background: currentColor; opacity: .55; }
@media (min-width: 721px) { .sec-head--center .h2 { white-space: nowrap; } }
.sec-head__aside { grid-column: 8 / -1; }
.sec-head__aside .lead { margin-top: 0; }

/* ---------- 03 Our menus: three cards, each with a PDF download ---------- */
.menu-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 56px); margin-top: clamp(48px, 6vw, 80px); }
/* Subgrid: numeral, name, description, facts and button share rows across all three cards */
.menu-card { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; align-content: start; padding-top: 24px; border-top: 1px solid var(--rule-strong); }
.menu-card__no { font-size: 1.25rem; }
.menu-card .h3 { margin-top: 6px; }
.menu-card__desc { margin-top: 12px; color: var(--muted); }
.menu-card__facts { display: grid; grid-template-columns: auto 1fr; margin: 24px 0 32px; font-size: .9375rem; }
.menu-card__facts dt, .menu-card__facts dd { padding: 10px 0; border-top: 1px solid var(--rule); }
.menu-card__facts dt { padding-right: 16px; color: var(--muted); }
.menu-card__facts dd { text-align: right; }
.menu-card__dl { justify-self: center; align-self: start; }
.menu-card__dl:hover svg { transform: translateY(2px); }
.menu-tabs { display: none; }
.menu-tab { position: relative; min-height: 50px; padding: 10px 4px 12px; border: 0; background: none; color: var(--muted); font: 500 .9375rem/1.3 var(--font-body); letter-spacing: .06em; cursor: pointer; transition: color 300ms var(--ease); }
html[lang="zh-HK"] .menu-tab { letter-spacing: .2em; }
.menu-tab .roman { margin-right: .4em; font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.menu-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--olive); transform: scaleX(0); transition: transform 400ms var(--ease); }
.menu-tab:hover { color: var(--fg); }
.menu-tab[aria-selected="true"] { color: var(--fg); }
.menu-tab[aria-selected="true"]::after { transform: scaleX(1); }
.menu-card__fmt { padding-left: .7em; border-left: 1px solid currentColor; font-size: .75rem; letter-spacing: .12em; opacity: .75; }

/* ---------- 04 Chef's notes ---------- */
/* Portrait left (alternates with The Experience); notes in a handwritten hand: Caveat (EN) / LXGW WenKai TC (中) */
.chef__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 7vw, 112px); align-items: center; }
.chef__fig img { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100svh - 200px); min-height: 380px; object-fit: cover; object-position: 50% 26%; }
/* Signature line under the portrait: handwritten name — hairline — role */
.chef__sign { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.chef__name { font-family: var(--font-hand-en); font-size: clamp(2rem, 2.8vw, 2.5rem); font-weight: 500; line-height: 1; white-space: nowrap; }
.chef__line { flex: 1; height: 1px; background: var(--rule-strong); }
.chef__role { font-size: .8125rem; font-weight: 500; letter-spacing: .16em; color: var(--muted); white-space: nowrap; }
.chef__sign--head { display: none; } /* phones only: shown under the heading when the portrait is hidden */
html[lang="zh-HK"] .chef__role { font-size: .875rem; letter-spacing: .26em; }
.hand { font-family: var(--font-hand); }
.quote { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule-strong); }
.quote p { font-size: calc(clamp(2.125rem, 3.4vw, 3.125rem) * var(--h-scale)); font-weight: 500; line-height: 1.15; text-wrap: balance; }
html[lang="zh-HK"] .quote p { font-size: calc(clamp(1.5rem, 2.3vw, 2.125rem) * var(--h-scale)); font-weight: 400; line-height: 1.6; letter-spacing: .04em; }
.principles { margin-top: 32px; }
.principles li { display: grid; grid-template-columns: 40px 1fr; padding: 14px 0; border-top: 1px solid var(--rule); }
.principles li:last-child { border-bottom: 1px solid var(--rule); }
.principles .roman { padding-top: 4px; }
.principles h3 { font-size: 1.75rem; font-weight: 600; line-height: 1.1; }
html[lang="zh-HK"] .principles h3 { font-size: 1.375rem; font-weight: 400; line-height: 1.4; letter-spacing: .12em; }
.principles p { margin-top: 2px; font-size: 1.375rem; line-height: 1.3; color: var(--muted); text-wrap: pretty; }
html[lang="zh-HK"] .principles p { font-size: 1.0625rem; line-height: 1.8; letter-spacing: .03em; }

/* ---------- Reservation ---------- */
.reserve__head { grid-column: 1 / span 4; }
.reserve__head .eyebrow { margin-top: 0; }
.reserve__head .lead { max-width: 24em; }
.reserve__body { grid-column: 6 / -1; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--wide, .form__summary { grid-column: 1 / -1; }
.field label, .field__label { font-size: .8125rem; letter-spacing: .12em; color: var(--muted); }
html[lang="zh-HK"] .field label, html[lang="zh-HK"] .field__label { letter-spacing: .2em; }
.field input, .field textarea, .picker__btn {
  width: 100%; min-height: 48px; margin-top: 6px; padding: 10px 0;
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); border-radius: 0;
  background: transparent; color: var(--fg); font: inherit; font-size: 1rem;
  transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder, .picker__ph { color: color-mix(in srgb, var(--fg) 55%, transparent); }
.field input:hover, .field textarea:hover, .picker__btn:hover { border-bottom-color: color-mix(in srgb, var(--fg) 60%, transparent); }
/* Focus: no outline on fields (by request); the underline turns accent (accent-ink on ivory) and doubles to 2px instead */
.field input:focus, .field textarea:focus, .picker__btn:focus, .picker.is-open .picker__btn { border-bottom-color: var(--acc); box-shadow: 0 1px 0 var(--acc); outline: none; }
.field[data-invalid] input, .field[data-invalid] .picker__btn { border-bottom-color: var(--error); }
.field[data-invalid] .picker__btn:focus { box-shadow: 0 1px 0 var(--error); }

/* Custom pickers (date, time, guests, occasion): underline button + popover below it */
.picker__anchor { position: relative; }
.picker__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; }
.picker__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__icon { width: 18px; height: 18px; flex: none; color: var(--acc); transition: transform 300ms var(--ease); }
.picker.is-open .picker__chev { transform: rotate(180deg); }
.picker__pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; width: 100%; min-width: 248px; margin: 0;
  border: 1px solid var(--rule); border-top: 1px solid var(--acc);
  background: var(--pop-bg); color: var(--fg);
  animation: pop-in 220ms var(--ease);
}
.picker__pop:focus { outline: none; }
.picker__list { max-height: 296px; overflow-y: auto; padding: 6px 0; overscroll-behavior: contain; }
.picker__list [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 18px; color: var(--muted); cursor: pointer; transition: color 200ms var(--ease), background-color 200ms var(--ease); }
.picker__list [role="option"].is-active { background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--fg); }
.picker__list [role="option"][aria-selected="true"] { color: var(--fg); }
.picker__list [role="option"][aria-selected="true"]::after { content: ""; flex: none; width: 16px; height: 16px; background: var(--acc); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E"); }
.picker__list:focus-visible [role="option"].is-active { box-shadow: inset 2px 0 0 var(--acc); }

.cal { min-width: 296px; padding: 12px 14px 14px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal__title { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.3; }
html[lang="zh-HK"] .cal__title { font-size: 1rem; letter-spacing: .12em; }
.cal__nav { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--fg); cursor: pointer; transition: color 200ms var(--ease); }
.cal__nav svg { width: 18px; height: 18px; }
.cal__nav:hover { color: var(--acc); }
.cal__nav:disabled { color: color-mix(in srgb, var(--fg) 25%, transparent); cursor: default; }
.cal__grid { width: 100%; margin-top: 6px; border-collapse: collapse; table-layout: fixed; }
.cal__grid th { padding: 6px 0 8px; font-size: .75rem; font-weight: 500; letter-spacing: .06em; color: color-mix(in srgb, var(--fg) 62%, transparent); text-align: center; }
.cal__grid td { padding: 1px; text-align: center; }
.cal__day { position: relative; width: 100%; height: 38px; padding: 0; border: 0; background: none; color: var(--fg); font: inherit; font-size: .9375rem; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.cal__day:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.cal__day[aria-current="date"]::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--acc); }
.cal__day[aria-disabled="true"] { color: color-mix(in srgb, var(--fg) 28%, transparent); cursor: default; }
.cal__day[aria-disabled="true"]:hover { background: none; }
[aria-selected="true"] > .cal__day { background: var(--btn-bg); color: var(--btn-fg); }
.cal__day:focus-visible, .cal__nav:focus-visible { outline: 1px solid var(--acc); outline-offset: -1px; }
.field__error { margin-top: 8px; font-size: .875rem; color: var(--error); }
.field__error:empty { display: none; }
.form__summary { padding: 12px 16px; border: 1px solid var(--error); color: var(--error); font-size: .9375rem; }
.form__actions { margin-top: 8px; }
.spinner { display: none; width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 800ms linear infinite; }
[aria-busy="true"] .spinner { display: inline-block; }
[aria-busy="true"] { cursor: progress; }
/* Booking details pop-up (native modal): ivory sheet like the policy dialog, brass top rule */
dialog.result {
  width: min(100% - 32px, 560px); max-height: calc(100svh - 32px); padding: 0; overflow-y: auto;
  border: 0; border-top: 2px solid var(--accent); background: var(--paper); color: var(--ink);
  --fg: var(--ink); --muted: color-mix(in srgb, var(--ink) 80%, transparent); --rule: color-mix(in srgb, var(--ink) 15%, transparent);
  --acc: var(--accent-ink); --focus: var(--olive); --btn-bg: var(--olive); --btn-fg: var(--ivory); --btn-hover: var(--charcoal);
}
dialog.result[open] { animation: fade-in 320ms var(--ease); }
dialog.result::backdrop { background: rgba(34, 33, 30, .7); }
.result__inner { position: relative; padding: clamp(28px, 5vw, 44px); }
.result__x { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.result__x svg { width: 22px; height: 22px; }
.result__eyebrow { margin-top: 0; }
.result .h3 { margin-top: 10px; padding-right: 32px; }
.result__body { margin-top: 14px; color: var(--muted); }
.result__label { margin-top: 28px; }
.result__list { display: grid; grid-template-columns: auto 1fr; margin: 10px 0 0; font-size: .9375rem; }
.result__list dt, .result__list dd { padding: 9px 0; border-top: 1px solid var(--rule); }
.result__list dt { padding-right: 24px; color: var(--muted); }
.result__list dd { overflow-wrap: anywhere; }
.result__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 479px) {
  .result__label { margin-top: 22px; }
  .result__list dt, .result__list dd { padding: 7px 0; }
  .result__actions { margin-top: 24px; }
  .result__actions .btn { flex: 1 1 100%; }
}

/* ---------- Footer ---------- */
.site-footer { padding: clamp(72px, 9vw, 120px) 0 40px; border-top: 1px solid var(--rule); background: var(--night); color: var(--fg); }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 56px; }
.footer__brand { grid-column: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.footer__tagline { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.4; }
html[lang="zh-HK"] .footer__tagline { letter-spacing: .12em; }
.footer__cols { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer__h { font-size: .8125rem; font-weight: 500; letter-spacing: .14em; color: var(--accent); }
html[lang="zh-HK"] .footer__h { letter-spacing: .24em; }
.footer__h--gap { margin-top: 28px; }
.footer__cols p, .footer__links { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.footer__links li + li { margin-top: 6px; }
.footer__links a, .footer__a { text-decoration: none; }
.footer__links a:hover, .footer__a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 5px; }
.footer__cols .footer__note { margin-top: 4px; font-size: .875rem; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--muted); }

dialog.policy { width: min(100% - 40px, 480px); padding: 0; border: 0; background: var(--paper); color: var(--ink); --focus: var(--olive); --btn-bg: var(--olive); --btn-fg: var(--ivory); --btn-hover: var(--charcoal); }
dialog.policy::backdrop { background: rgba(34, 33, 30, .6); }
.policy__inner { padding: 36px; }
.policy__inner p { margin-top: 14px; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.policy__inner .btn { margin-top: 28px; }
dialog.policy { max-height: calc(100svh - 40px); overflow-y: auto; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(var(--reveal)); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
/* Pre-rendered pages without JavaScript: hide controls that need scripts. */
html:not(.js) .site-header { position: absolute; } /* it only turns solid on scroll with JavaScript */
html:not(.js) [data-menu-open] { display: none; }
.lang__link { display: none; } /* the other language as a link to its page, swapped for its button */
html:not(.js) .lang__link { display: inline-flex; align-items: center; justify-content: center; letter-spacing: normal; text-decoration: none; }
html:not(.js) .lang__link + [data-lang] { display: none; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide.is-active { transition: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1179px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__tools { margin-left: auto; gap: 14px; }
  .header__reserve .long { display: none; }
  .header__reserve .short { display: inline; }
}

@media (max-width: 1023px) {
  .sec-head__main, .sec-head__aside { grid-column: 1 / -1; }
  .sec-head__aside { margin-top: 28px; }
  .reserve__head, .reserve__body { grid-column: 1 / -1; }
  .reserve__body { margin-top: 48px; }
  .footer__brand, .footer__cols { grid-column: 1 / -1; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Portrait tablets and phones: photo above, type settles onto charcoal below */
@media (max-width: 720px), (max-width: 1023px) and (orientation: portrait) {
  .hero { display: block; min-height: 0; padding-top: 44svh; }
  .hero__media { bottom: auto; height: 62svh; }
  .slide img { object-position: var(--pos-m, var(--pos)); }
  .hero::before {
    bottom: auto; height: 62svh;
    background: linear-gradient(180deg, rgba(34,33,30,.62) 0, rgba(34,33,30,0) 104px, rgba(34,33,30,0) 26svh, rgba(34,33,30,calc(var(--hero-overlay) + .12)) 46svh, var(--night) 62svh);
  }
  .hero__inner { margin-inline: auto; padding-top: 0; padding-bottom: 40px; }
}

@media (max-width: 860px) {
  .menu-cards { grid-template-columns: 1fr; max-width: 560px; gap: 56px; margin-inline: auto; }
  .menu-card { display: flex; flex-direction: column; grid-row: auto; }
  .menu-card__dl { align-self: center; }
  /* One menu at a time: swipe the track or use the tabs (without JavaScript all three stay stacked) */
  html.js .menu-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; margin: clamp(36px, 8vw, 48px) auto 0; border-bottom: 1px solid var(--rule); }
  html.js .menu-cards {
    position: relative; display: flex; align-items: flex-start; gap: 32px; margin-top: 32px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  html.js .menu-cards::-webkit-scrollbar { display: none; }
  html.js .menu-card { flex: 0 0 100%; padding-top: 0; border-top: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  html.js .menu-card__no { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .site-header.is-solid .header__bar { height: 64px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__title .ln + .ln { padding-left: .8em; }
  .hero { padding-top: 40svh; }
  .hero__sub { margin-top: 18px; }
  .hero__cta { gap: 12px; margin-top: 28px; }
  .hero__controls { align-items: stretch; gap: 10px; margin-top: 28px; }
  .ind-list { gap: 20px; }
  .ind { min-height: 52px; padding-top: 14px; }
  .story__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .chef__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .story__fig, .chef__fig { display: none; } /* phones: text only */
  .chef__sign--head { display: flex; margin-top: 20px; }
  .story__rule { margin: 28px 0; }
  .form { grid-template-columns: 1fr; }
  .form__actions .btn { width: 100%; }
  .footer__cols { grid-template-columns: 1fr; gap: 28px; }
  .footer__base { flex-direction: column; }
}

@media (max-width: 479px) {
  .header__tools .lang { display: none; }
}


/* Phones and portrait tablets: The Experience photograph as a band on top, copy below on charcoal */
@media (max-width: 720px), (max-width: 1023px) and (orientation: portrait) {
  .experience { display: block; min-height: 0; padding-top: 0; }
  .experience__bg { position: relative; inset: auto; z-index: auto; aspect-ratio: 4 / 3; }
  .experience__bg img { object-position: 80% 50%; }
  .experience::before { bottom: auto; height: 75vw; z-index: 1; background: linear-gradient(180deg, rgba(34,33,30,.35) 0%, rgba(34,33,30,0) 30%, rgba(34,33,30,0) 55%, var(--night) 100%); }
  .experience__text { grid-column: 1 / -1; max-width: 36em; padding-top: 8px; }
}
