/* ==========================================================================
   BAOBAO — Taiwanese street food, Boxpark Croydon
   ========================================================================== */

:root {
  --bg: #0a0a09;
  --panel: #111110;
  --panel-2: #161614;
  --line: rgba(239, 230, 212, 0.14);
  --line-strong: rgba(239, 230, 212, 0.28);
  --cream: #efe6d4;
  --text: #e9e4da;
  --muted: #9a958b;
  --dim: #6d6961;

  --font-display: "Libre Caslon Text", Georgia, serif;
  --display-weight: 700;
  --font-serif: "Libre Caslon Text", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gap: 14px;
  --bar-h: 34px;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 6px; }

.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;
}

.page {
  padding: var(--gap);
  min-height: calc(100vh - var(--bar-h));
  min-height: calc(100dvh - var(--bar-h));
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: uppercase;
  color: var(--cream);
  line-height: 0.95;
  letter-spacing: 0;
  margin: 0;
}
.display--xl { font-size: clamp(2.5rem, 8.4vw, 8.5rem); }
.display--lg { font-size: clamp(2.6rem, 6vw, 6rem); }
.display--md { font-size: clamp(2.2rem, 4.4vw, 4.4rem); }

.eyebrow {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cream);
  font-size: 1.05rem;
  margin: 0;
}

/* Section title flanked by thin diamond-tipped rules: ◇—— TITLE ——◇ */
.rule-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-weight: 400; /* only 400 is loaded; avoid faux-bold blur */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cream);
  font-size: 1.15rem;
  white-space: nowrap;
  margin: 0;
}
/* Solid rule with an outlined diamond at the outer end: ◇——  TITLE  ——◇ */
.rule-title::before,
.rule-title::after {
  --rule: #8c8579;
  content: "";
  flex: 0 1 52px;
  min-width: 22px;
  height: 9px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath d='M4.5.9 8.1 4.5 4.5 8.1.9 4.5Z' fill='none' stroke='%238c8579' stroke-width='1'/%3E%3C/svg%3E") left center / 9px 9px no-repeat,
    linear-gradient(var(--rule), var(--rule)) right center / calc(100% - 8px) 1px no-repeat;
}
.rule-title::after { transform: scaleX(-1); }

.muted { color: var(--muted); }

/* ---------- Panels ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1a1916;
  isolation: isolate;
}
.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
  z-index: -1;
}
.photo--shade::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.75) 100%);
}

.photo__title {
  position: absolute;
  left: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 36px);
}

/* Notch: a little bg-colored tab cut into the bottom-right of a card */
.notch {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px 4px 16px; /* keep the button clear of the card's rounded corner */
  background: var(--bg);
  border-top-left-radius: var(--radius);
}
.notch::before,
.notch::after {
  content: "";
  position: absolute;
  width: var(--radius);
  height: var(--radius);
  background: radial-gradient(circle at 0 0, transparent var(--radius), var(--bg) calc(var(--radius) + 0.5px));
}
.notch::before { right: 0; top: calc(var(--radius) * -1); }
.notch::after { left: calc(var(--radius) * -1); bottom: 0; }

/* ---------- Buttons ---------- */

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  transition: background .25s, color .25s, border-color .25s;
}
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn:hover { background: var(--cream); color: var(--bg); border-color: var(--cream); }
.icon-btn--solid { background: var(--cream); color: var(--bg); border-color: var(--cream); }
.icon-btn--solid:hover { background: transparent; color: var(--cream); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--bg);
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  transition: opacity .2s;
}
.btn:hover { opacity: .88; }

/* ---------- Header / nav ---------- */

.site-header {
  position: absolute;
  top: calc(var(--gap) + 10px);
  left: calc(var(--gap) + 10px);
  right: calc(var(--gap) + 10px);
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 5px 5px 5px;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  margin: 0 14px 0 8px;
}

.nav-link {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  padding: 7px 10px;
  border-radius: 999px;
  transition: color .2s;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--cream); text-decoration: underline; text-underline-offset: 5px; }
.nav-link--cta { border: 1px solid var(--line-strong); padding: 7px 12px; text-decoration: none !important; }
.nav-link--cta[aria-current="page"] { border-color: var(--cream); }
.nav-link--cta:hover { background: var(--cream); color: var(--bg); text-decoration: none; }

.socials { display: flex; gap: 8px; }

/* Concept / credit stripe */
.concept-bar {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 calc(var(--gap) + 10px);
  background: #000;
  color: var(--muted);
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}
.concept-bar p { display: flex; align-items: center; gap: 10px; margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.concept-tag {
  flex-shrink: 0;
  font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream); background: rgba(239, 230, 212, .12);
  border: 1px solid var(--line-strong);
  padding: 3px 7px 2px; border-radius: 4px;
}
.concept-short { display: none; }
.concept-bar a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; color: var(--cream); letter-spacing: .02em; }
.concept-bar a strong { font-weight: 500; letter-spacing: .06em; }
.concept-bar a svg { width: .9em; height: .9em; }
.concept-bar a:hover { color: #fff; }
.concept-long a { display: inline; color: inherit; letter-spacing: 0; text-decoration: underline; text-underline-offset: 3px; }

/* Full-screen menu */
.overlay-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 8, 7, .97);
  display: grid;
  grid-template-columns: 1fr minmax(0, 1fr);
  padding: var(--gap);
  gap: var(--gap);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.overlay-nav.is-open { opacity: 1; visibility: visible; }
.overlay-nav__close { position: fixed; top: 29px; left: 29px; z-index: 1; } /* JS aligns it to the burger */
.overlay-nav__links {
  list-style: none;
  margin: 0;
  padding: 90px clamp(24px, 5vw, 80px) 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.overlay-nav__links a {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 1.08;
  color: var(--dim);
  transition: color .25s, padding .35s var(--ease);
  display: inline-block;
}
.overlay-nav__links a:hover,
.overlay-nav__links a[aria-current="page"] { color: var(--cream); padding-left: 14px; }
.overlay-nav__info {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  bottom: 32px;
  font-size: .8rem;
  color: var(--muted);
}
.overlay-nav .photo { min-height: 0; }

/* Open/close choreography: links rise in one by one, photo wipes up, close button spins in.
   Closing drops the delays so everything leaves together with the backdrop fade. */
.overlay-nav__links li,
.overlay-nav__info {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .3s, transform .3s var(--ease);
}
.overlay-nav.is-open .overlay-nav__links li,
.overlay-nav.is-open .overlay-nav__info {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.overlay-nav.is-open .overlay-nav__links li:nth-child(1) { transition-delay: .12s; }
.overlay-nav.is-open .overlay-nav__links li:nth-child(2) { transition-delay: .18s; }
.overlay-nav.is-open .overlay-nav__links li:nth-child(3) { transition-delay: .24s; }
.overlay-nav.is-open .overlay-nav__links li:nth-child(4) { transition-delay: .30s; }
.overlay-nav.is-open .overlay-nav__links li:nth-child(5) { transition-delay: .36s; }
.overlay-nav.is-open .overlay-nav__info { transition-delay: .46s; }
.overlay-nav > .photo {
  clip-path: inset(100% 0 0 0 round var(--radius));
  transition: clip-path .4s var(--ease);
}
.overlay-nav.is-open > .photo {
  clip-path: inset(0 0 0 0 round var(--radius));
  transition: clip-path 1s .08s var(--ease);
}
.overlay-nav > .photo img { transform: scale(1.15); transition: transform .4s var(--ease); }
.overlay-nav.is-open > .photo img { transform: scale(1); transition: transform 1.4s .08s var(--ease); }
.overlay-nav__close { transform: rotate(-90deg); transition: transform .5s var(--ease), background .25s, color .25s, border-color .25s; }
.overlay-nav.is-open .overlay-nav__close { transform: none; }

/* ==========================================================================
   Home
   ========================================================================== */

.home {
  display: grid;
  grid-template-rows: minmax(420px, 1fr) clamp(160px, 23vh, 230px);
  gap: var(--gap);
  height: calc(100dvh - var(--bar-h) - var(--gap) * 2);
  min-height: 640px;
}

.hero .photo__title { bottom: auto; top: 50%; transform: translateY(-40%); }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.1) 100%);
}
.hero > img { animation: slowzoom 22s ease-in-out infinite alternate; }
@keyframes slowzoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }

.hero .notch { padding: 12px 4px 4px 14px; }

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.card-link .notch { padding: 8px 4px 4px 18px; }
.card-link__label {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: .82rem;
  color: var(--cream);
}
.card-link:hover > img { transform: scale(1.06); }
.card-link:hover .icon-btn { background: var(--cream); color: var(--bg); }

/* ==========================================================================
   Split pages (About / Contact / Reservation)
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  min-height: calc(100dvh - var(--bar-h) - var(--gap) * 2);
}
.split > .photo { min-height: 520px; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr auto;
  gap: var(--gap);
}
.about-grid .photo { min-height: 240px; }

.text-card {
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.text-card h2:not(.rule-title) {
  font-family: var(--font-serif);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--cream);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.25;
  margin: 0;
}
.text-card p { margin: 0; color: var(--muted); font-size: .88rem; }

.awards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.award {
  padding: 18px 12px;
  text-align: center;
}
.award__stars { letter-spacing: 4px; color: var(--cream); font-size: .7rem; }
.award__star-off { color: var(--dim); }
a.award { transition: border-color .25s; }
a.award:hover { border-color: var(--line-strong); }
.award__name {
  font-family: var(--font-serif);
  text-transform: uppercase;
  color: var(--cream);
  font-size: .82rem;
  margin: 6px 0 2px;
  letter-spacing: .03em;
}
.award__note { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }

.story {
  max-width: 1080px;
  margin: clamp(60px, 9vw, 120px) auto clamp(40px, 6vw, 80px);
  padding: 0 clamp(8px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.story__body p { color: var(--muted); margin: 0 0 1.1em; }
.story__body p:first-child { color: var(--text); font-size: 1.1rem; }
.story__quote {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: uppercase;
  color: var(--cream);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  margin: 28px 0 0;
}

/* ---------- Contact ---------- */

.contact-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
}

.info-card { padding: clamp(20px, 2.2vw, 30px); display: flex; flex-direction: column; }
.info-card .rule-title { margin-bottom: auto; }

.info-list { margin: 28px 0 0; display: grid; gap: 14px; font-size: .82rem; }
.info-list > div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; }
.info-list dt { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); padding-top: 2px; }
.info-list dd { margin: 0; text-align: right; color: var(--text); }
.info-list dd a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.info-list .socials { justify-content: flex-end; }
.info-list .icon-btn { width: 26px; height: 26px; }
.info-list .icon-btn svg { width: 12px; height: 12px; }

.map {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1b1b19;
}
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: invert(.92) hue-rotate(180deg) grayscale(.6) brightness(.85) contrast(.95);
}
.map .notch { gap: 8px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.tiles .photo { min-height: 120px; border-radius: var(--radius-sm); }
.tiles .photo:hover > img { transform: scale(1.06); }

.hours { margin: 26px 0 0; display: grid; gap: 11px; font-size: .78rem; }
.hours > div { display: flex; align-items: baseline; gap: 10px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.hours > div::after { content: none; }
.hours .fill { flex: 1; border-bottom: 1px dashed var(--line); transform: translateY(-4px); }
.hours .is-today dt,
.hours .is-today dd { color: var(--cream); }
.hours .is-today dt::after { content: " · today"; color: var(--dim); font-size: .7rem; }

/* ---------- Reservation ---------- */

.reserve-panel {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 70px) clamp(20px, 4vw, 60px);
}
.reserve-form { width: 100%; max-width: 440px; }
.reserve-form .rule-title { font-size: 1.5rem; }
.reserve-form__intro { text-align: center; color: var(--muted); font-size: .85rem; margin: 16px auto 34px; max-width: 360px; }

.field { position: relative; margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.field label { position: absolute; left: 19px; top: 27px; transform: translateY(-50%); font-size: .78rem; color: var(--muted); pointer-events: none; transition: all .2s var(--ease); }
.field input,
.field select {
  display: block;
  width: 100%;
  height: 54px;
  padding: 22px 18px 6px;
  line-height: 1.25;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: .85rem;
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s;
}
.field select {
  cursor: pointer;
  padding-right: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239a958b' stroke-width='1.4'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 16px center / 14px no-repeat;
}
.field select option { background: var(--panel); color: var(--text); }

/* Native date input: keep its text on one line under the floating label */
.field input[type="date"] { padding-right: 16px; }
/* Empty date: the dd/mm/yyyy hint reads as a placeholder, like the other fields */
.field input[type="date"]:invalid { color: var(--muted); }
.field input[type="date"]::-webkit-datetime-edit { padding: 0; line-height: 1.25; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .6;
  cursor: pointer;
  margin: -16px 0 0;
}

.field input:focus,
.field select:focus { outline: none; border-color: var(--cream); }

/* Floating label: small, at the top, once the field has (or shows) a value */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field select + label,
.field input[type="date"] + label { top: 9px; transform: none; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }

/* Empty select reads like a placeholder, centred */
.field select:required:invalid:not(:focus) + label { top: 50%; transform: translateY(-50%); font-size: .78rem; letter-spacing: 0; text-transform: none; }
.field.is-invalid input,
.field.is-invalid select { border-color: #d98b7a; }
.field__error { display: none; font-size: .7rem; color: #e4a493; margin: 4px 0 0 18px; }
.field.is-invalid .field__error { display: block; }

.reserve-form .btn { width: 100%; margin-top: 10px; }
.reserve-form__note { text-align: center; color: var(--dim); font-size: .72rem; margin-top: 16px; }

.reserve-success { text-align: center; display: none; }
.reserve-success.is-visible { display: block; animation: rise .6s var(--ease); }
.reserve-success p { color: var(--muted); }
.reserve-success strong { color: var(--cream); font-weight: 500; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Menu
   ========================================================================== */

.menu-page {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  height: calc(100dvh - var(--bar-h) - var(--gap) * 2);
  min-height: 680px;
  padding-top: calc(var(--gap) + 50px); /* clear the floating header */
}
.menu-page > .display { padding: 8px 2px 0; }

.menu-rail {
  flex: 1;
  display: flex;
  gap: var(--gap);
  min-height: 0;
}

.cat {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  gap: var(--gap);
  transition: flex-grow .7s var(--ease);
}
.cat.is-open { flex-grow: 2.7; }
.menu-rail.has-open .cat:not(.is-open) { flex-grow: .62; }

.cat__card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #141311;
  cursor: pointer;
  text-align: left;
  isolation: isolate;
}
.cat__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  filter: blur(2px) brightness(.32) saturate(.8);
  transform: scale(1.08);
}
.cat__plate {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(82%, 380px);
  aspect-ratio: 1;
  transform: translate(-50%, -54%);
  border-radius: 50%;
  object-fit: cover;
  clip-path: circle(49.5%);
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
  transition: transform .9s var(--ease), width .7s var(--ease);
}
.cat__card:hover .cat__plate { transform: translate(-50%, -54%) rotate(-8deg) scale(1.04); }
.cat__name {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: uppercase;
  color: var(--cream);
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 6px 30px rgba(0,0,0,.6);
}
.cat__card .notch .icon-btn { transition: transform .8s var(--ease), background .25s, color .25s; }
.cat.is-open .cat__card .notch .icon-btn { transform: rotate(225deg); background: var(--cream); color: var(--bg); }

.cat__list {
  position: relative;
  flex: 0 0 0;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  border-width: 0;
  transition: flex-basis .7s var(--ease), opacity .4s .1s, border-width 0s .7s;
}
.cat.is-open .cat__list {
  flex-basis: 62%;
  opacity: 1;
  border-width: 1px;
  transition: flex-basis .7s var(--ease), opacity .5s .25s, border-width 0s;
}
.cat__list-inner {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: clamp(22px, 3vw, 40px) clamp(20px, 3vw, 44px);
  min-width: 360px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.cat__list .rule-title { margin-bottom: clamp(20px, 3vh, 36px); }

.dish-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(16px, 2.6vh, 26px); }
.dish { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; }
.dish__img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  clip-path: circle(48%);
  background: #f4f2ee;
}
.dish__head { display: flex; align-items: baseline; gap: 10px; }
.dish__name {
  font-family: var(--font-serif);
  text-transform: uppercase;
  color: var(--cream);
  font-size: .82rem;
  letter-spacing: .03em;
  margin: 0;
}
.dish__name span { text-transform: none; letter-spacing: 0; margin-left: 4px; }
.dish__veg { width: 12px; height: 12px; color: var(--muted); flex: none; }
.dish__dots { flex: 1; border-bottom: 1px solid var(--line); transform: translateY(-4px); min-width: 16px; }
.dish__price { font-family: var(--font-serif); color: var(--cream); font-size: .85rem; }
.dish__desc { margin: 4px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }

.menu-legend { display: flex; gap: 18px; justify-content: flex-end; font-size: .72rem; color: var(--dim); padding: 0 4px; }
.menu-legend svg { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 10px 10px;
  color: var(--dim);
  font-size: .72rem;
  letter-spacing: .04em;
}
.site-footer a:hover { color: var(--cream); }
.concept-note { flex-basis: 100%; color: var(--muted); }
.concept-note a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.site-footer--home { padding-top: 14px; }

/* ==========================================================================
   Reveal on load
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.reveal--1 { animation-delay: .08s; }
.reveal--2 { animation-delay: .18s; }
.reveal--3 { animation-delay: .28s; }
.reveal--4 { animation-delay: .38s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .split > .photo { min-height: 62vh; }
  .menu-rail { flex-direction: column; min-height: 0; }
  .cat, .cat.is-open, .menu-rail.has-open .cat:not(.is-open) { flex: none; flex-direction: column; }
  .cat__card { flex: none; height: 300px; }
  .cat__plate { width: 230px; }
  .cat__name { bottom: 16%; }
  .cat__list { flex-basis: auto !important; max-height: 0; transition: max-height .7s var(--ease), opacity .4s; }
  .cat.is-open .cat__list { max-height: 2400px; }
  .cat__list-inner { position: static; min-width: 0; }
  .menu-page { height: auto; min-height: 0; }
}

@media (max-width: 760px) {
  .concept-long { display: none; }
  .concept-short { display: inline; }
  :root { --gap: 10px; --radius: 16px; }
  .site-header { top: calc(var(--gap) + 8px); left: calc(var(--gap) + 8px); right: calc(var(--gap) + 8px); }
  .nav-link:not(.nav-link--cta) { display: none; }
  .site-header .socials { display: none; }
  /* first screen = hero + three stacked link cards */
  .home { grid-template-rows: minmax(0, 1fr) auto; height: calc(100svh - var(--bar-h) - var(--gap) * 2); min-height: 460px; }
  .hero .photo__title { top: auto; bottom: 22px; transform: none; }
  .home-cards { grid-template-columns: 1fr; }
  .home-cards .photo { height: 96px; }
  .home-cards .card-link__label { font-size: .74rem; }
  /* tone the three strips down to one quiet set so the hero stays the focus */
  .home-cards .photo > img { filter: brightness(.62) saturate(.75); }
  .home-cards .photo:nth-child(1) > img { object-position: 50% 62%; }
  .home-cards .photo:nth-child(2) > img { object-position: 50% 55%; }
  .home-cards .photo:nth-child(3) > img { object-position: 50% 45%; }
  .hero .notch { display: none; }
  .about-grid, .contact-side { grid-template-columns: 1fr; grid-template-rows: none; }
  .awards { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .map { min-height: 280px; }
  /* keep the OSM attribution (bottom-left) visible: arrow only */
  .map .notch .card-link__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .map .notch { padding-left: 10px; }
  .overlay-nav { grid-template-columns: 1fr; }
  .overlay-nav > .photo { display: none; }
  .dish { grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
  .cat { gap: 0; }
  .cat.is-open { gap: var(--gap); }
  .dish__img { width: 52px; height: 52px; }
}

@media (max-width: 400px) {
  .concept-short { display: none; }
}
