/* ─────────────────────────────────────────────────────────────
   Odoriko · digital menu
   White ground, black type, deep red used rarely.
   ───────────────────────────────────────────────────────────── */

:root {
  --ink: #0A0A0A;
  --ink-soft: #2C2A28;
  --ink-mute: #6E6A65;
  --ink-faint: #B5B0A8;
  --paper: #FFFFFF;
  --paper-warm: #FFFFFF;     /* match paper so blended images sit seamlessly */
  --rule: #1A1A1A;
  --rule-soft: #ECE9E2;
  --red: #8C1C1C;
  --gold: #B8945B;

  --serif-display: "Cormorant Garamond", "Noto Serif JP", "Amiri", Georgia, serif;
  --serif-body: "EB Garamond", "Noto Serif JP", "Amiri", Georgia, serif;

  --col: min(440px, 100vw);
  --pad: clamp(20px, 6vw, 28px);

  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quiet: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 220ms;
  --t-med: 480ms;
  --t-slow: 720ms;
  --t-very-slow: 900ms;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* phone-width column, always centred */
.frame {
  width: var(--col);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 var(--pad);
  background: var(--paper);
  position: relative;
}

/* ─── language-aware bodies ─── */
body.lang-ar { font-family: "Amiri", "EB Garamond", Georgia, serif; }
body.lang-ar .frame { direction: rtl; }
body.lang-ar .wordmark,
body.lang-ar .cat-name,
body.lang-ar .dish-name,
body.lang-ar .index-name,
body.lang-ar .sub-name { font-family: "Amiri", serif; font-weight: 400; }

body.lang-ja { font-family: "Noto Serif JP", "EB Garamond", serif; }
body.lang-ja .wordmark,
body.lang-ja .cat-name,
body.lang-ja .index-name,
body.lang-ja .sub-name { font-family: "Noto Serif JP", serif; font-weight: 500; }

/* ─── masthead — sticks to top of viewport while scrolling ─── */
.masthead {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  background: var(--paper);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  box-shadow: 0 1px 0 var(--rule-soft);
}
body.lights-low .masthead { background: var(--paper); }
.masthead > .masthead-meta,
.masthead > .back { justify-self: start; }
.masthead-meta { font-style: italic; letter-spacing: 0.16em; }
.masthead-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 0 6px;
  transition: opacity var(--t-fast) var(--ease-quiet);
}
.masthead-logo img {
  display: block;
  height: 26px;
  width: auto;
  max-width: 92px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.masthead-logo:hover { opacity: 0.7; }
body.lights-low .masthead-logo img { mix-blend-mode: screen; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.back svg { transition: transform var(--t-fast) var(--ease-quiet); }
.back:hover svg { transform: translateX(-3px); }
body.lang-ar .back svg { transform: scaleX(-1); }
body.lang-ar .back:hover svg { transform: scaleX(-1) translateX(-3px); }

.masthead-right {
  display: inline-flex;
  align-items: center;
  justify-self: end;
}

/* language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lang-toggle button {
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  padding: 6px 2px;
  transition: color var(--t-fast) var(--ease-quiet);
}
.lang-toggle button.active { color: var(--ink); }
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle .lang-ja-label {
  font-family: "Noto Serif JP", serif;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 6px 0;
}
.lang-sep { color: var(--ink-faint); font-size: 10px; }

/* ─── demo banner ─── */
.demo-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 0 0 6px;
  background: rgba(140, 28, 28, 0.04);
  border-inline-start: 2px solid var(--red);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.demo-banner-mark {
  font-family: "Noto Serif JP", serif;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--red);
  flex-shrink: 0;
}
.demo-banner-text { min-width: 0; }
body.lights-low .demo-banner { background: rgba(244, 239, 227, 0.04); }

/* ─── hair rules ─── */
.hair {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
  height: 0;
}
.hair-soft { border-top-color: var(--rule-soft); }

/* ─── kicker / meta ─── */
.kicker {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 12px;
  font-family: var(--serif-body);
  font-style: italic;
}

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

/* ═══════════════════════════════════════════════════════════
   LANDING
   ═══════════════════════════════════════════════════════════ */
.landing { padding-bottom: 80px; }

.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.wordmark {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(74px, 22vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}
.hero-jp {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.32em;
  color: var(--red);
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  animation: heroJpFade 1400ms 360ms var(--ease-slow) forwards;
}
@keyframes heroJpFade {
  to { opacity: 0.85; transform: translateY(0); }
}

.prelude { padding: 36px 6px 32px; }
.prelude-body {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 32ch;
}

.index { padding: 8px 0 28px; }

.index-row {
  display: grid;
  grid-template-columns: 28px 1fr 96px;
  gap: 16px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  transition: padding var(--t-fast) var(--ease-quiet);
  opacity: 0;
  transform: translateY(14px);
  animation: indexFadeIn 800ms var(--ease-slow) forwards;
}
.index-row:nth-child(1)  { animation-delay: 80ms; }
.index-row:nth-child(2)  { animation-delay: 140ms; }
.index-row:nth-child(3)  { animation-delay: 200ms; }
.index-row:nth-child(4)  { animation-delay: 260ms; }
.index-row:nth-child(5)  { animation-delay: 320ms; }
.index-row:nth-child(6)  { animation-delay: 380ms; }
.index-row:nth-child(7)  { animation-delay: 440ms; }
.index-row:nth-child(8)  { animation-delay: 500ms; }
.index-row:nth-child(9)  { animation-delay: 560ms; }
.index-row:nth-child(10) { animation-delay: 620ms; }
.index-row:nth-child(11) { animation-delay: 680ms; }
@keyframes indexFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.index-row:last-child { border-bottom: 0; }
.index-row:hover { padding-left: 4px; }
body.lang-ar .index-row:hover { padding-left: 0; padding-right: 4px; }

.index-num {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  align-self: start;
  padding-top: 6px;
}
.index-num-roman {
  font-family: var(--serif-body);
  font-style: italic;
  font-variant-numeric: oldstyle-nums;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.index-num-kanji {
  font-family: "Noto Serif JP", serif;
  font-size: 13px;
  color: var(--red);
  letter-spacing: 0;
  line-height: 1;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 600ms var(--ease-slow), transform 600ms var(--ease-slow);
}
.index-row.in-view .index-num-kanji,
.index-row:hover .index-num-kanji { opacity: 1; transform: translateY(0); }
/* fallback: animation runs even without IntersectionObserver via existing fade-in */
.index-row .index-num-kanji {
  animation: indexKanjiFade 800ms 400ms var(--ease-slow) forwards;
}
@keyframes indexKanjiFade { to { opacity: 0.85; transform: translateY(0); } }
.index-text { min-width: 0; }
.index-name {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.02;
  margin: 0 0 8px;
  letter-spacing: -0.008em;
  transition: letter-spacing var(--t-med) var(--ease-slow);
}
.index-row:hover .index-name { letter-spacing: 0.005em; }
.index-meta {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
}
.index-thumb {
  width: 96px;
  height: 116px;
  overflow: hidden;
  background: var(--paper);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.index-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.landing-foot {
  padding-top: 22px;
}
.foot-line {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 12px;
  margin: 14px 0 6px;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY
   ═══════════════════════════════════════════════════════════ */
.category { padding-bottom: 120px; }

.cat-head {
  padding: 28px 0 28px;
}
.cat-back {
  display: inline-block;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  padding: 6px 0;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--rule-soft);
  transition: color var(--t-fast) var(--ease-quiet), border-color var(--t-fast) var(--ease-quiet), padding-inline-start var(--t-fast) var(--ease-quiet);
}
.cat-back:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
  padding-inline-start: 4px;
}
.cat-name {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(54px, 16vw, 76px);
  line-height: 0.96;
  margin: 0 0 14px;
  letter-spacing: -0.012em;
}
.cat-meta {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0;
  letter-spacing: 0.02em;
}

/* filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 18px 0 18px;
}
.filter-chip {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease-quiet), border-color var(--t-fast) var(--ease-quiet);
}
.filter-chip:hover { color: var(--ink-soft); }
.filter-chip.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* dishes */
.dishes { padding: 8px 0 0; }

.sub-section {
  padding: 28px 0 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.sub-head { min-width: 0; flex: 1; }
.sub-name {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 4px;
}
.sub-lookbook {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 1px;
  transition: color var(--t-fast) var(--ease-quiet), border-color var(--t-fast) var(--ease-quiet);
  align-self: center;
}
.sub-lookbook:hover { color: var(--ink); border-bottom-color: var(--ink); }
.sub-rule {
  width: 28px;
  height: 1px;
  background: var(--ink);
  margin: 10px 0 22px;
}
.sub-portion {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0 0 22px;
  letter-spacing: 0.04em;
}

/* ── editorial dish article: photo dominates ── */
.dish-row {
  display: block;
  padding: 0 0 28px;
  margin: 28px 0 0;
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms var(--ease-slow), transform 900ms var(--ease-slow);
}
.dish-row.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* photo sized to its own intrinsic ratio — no cropping, no letterbox */
.dish-thumb {
  width: 100%;
  overflow: hidden;
  background: var(--paper);
  position: relative;
  margin: 0 0 18px;
}
.dish-thumb img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

/* lean rows (no description, no tags, no signature) get MORE breathing
   room around them — a deliberate negative-space pause in the editorial */
.dish-row--lean {
  padding-bottom: 56px;
  margin-top: 56px;
}
.dish-row--lean .dish-thumb { margin-bottom: 14px; }
.dish-row--lean .dish-name-row { margin-bottom: 0; }

/* ── reactive Japanese stamp ──
   A small red 印 (seal) sits in the bottom-right of every dish — faintly
   visible always, becomes more present on hover/tap. Signature dishes carry
   it at full saturation. */
.dish-row::after {
  content: '印';
  position: absolute;
  bottom: 8px;
  inset-inline-end: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  color: var(--red);
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.18;
  transform: rotate(-6deg);
  transition: opacity var(--t-med) var(--ease-slow), transform var(--t-med) var(--ease-slow);
  pointer-events: none;
}
.dish-row:hover::after,
.dish-row.tap-active::after {
  opacity: 0.55;
  transform: rotate(-6deg) scale(1.08);
}
.dish-row.has-signature::after { opacity: 0.85; }

.dish-body { min-width: 0; padding: 0; }
.dish-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
}
.dish-name {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.008em;
  flex: 1;
}
.dish-price {
  font-family: var(--serif-body);
  font-variant-numeric: oldstyle-nums;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: 0.02em;
  padding-top: 7px;
}
.dish-price-alt {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
}
.dish-currency {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-inline-start: 4px;
}

.dish-desc {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 14px;
  max-width: 42ch;
}

.dish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: var(--serif-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 6px 0 0;
}
.dish-meta .tag-spicy { color: var(--red); }
.dish-meta .dot { color: var(--ink-faint); }

.signature {
  position: absolute;
  inset-inline-start: -10px;
  top: 10px;
  bottom: 38px;
  width: 1.5px;
  background: var(--red);
  opacity: 0.85;
}
.signature-label {
  display: inline-block;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
  padding-top: 8px;
}

.dish-row.has-signature { padding-inline-start: 14px; }

/* terms (underlined inline) */
.term {
  border-bottom: 1px dotted var(--ink-mute);
  cursor: pointer;
  padding-bottom: 1px;
  transition: border-color var(--t-fast) var(--ease-quiet), color var(--t-fast) var(--ease-quiet);
}
.term:hover { border-bottom-color: var(--ink); color: var(--ink); }

.empty-state {
  padding: 60px 0;
  text-align: center;
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--ink-mute);
}

.cat-foot { padding-top: 32px; }

/* ═══════════════════════════════════════════════════════════
   TABLE PILL
   ═══════════════════════════════════════════════════════════ */
.table-pill {
  position: fixed;
  bottom: 22px;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  z-index: 20;
  transition: transform var(--t-med) var(--ease-slow), opacity var(--t-med) var(--ease-slow);
}
.table-pill[hidden] { display: none; }
.table-pill.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.pill-label { font-style: italic; }
.pill-count {
  font-variant-numeric: oldstyle-nums;
  border-inline-start: 1px solid rgba(255,255,255,0.3);
  padding-inline-start: 12px;
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════
   OVERLAYS — shared
   ═══════════════════════════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  background: var(--paper);
  transition: opacity var(--t-slow) var(--ease-slow);
  overflow: hidden;
}
.overlay[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
}
.overlay.term-pop { background: transparent; z-index: 200; border: 0; }

/* ═══════════════════════════════════════════════════════════
   CINEMATIC DISH VIEW
   ═══════════════════════════════════════════════════════════ */
.cinematic {
  display: flex;
  justify-content: center;
}
.cinematic-frame {
  width: var(--col);
  background: var(--paper);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cinematic-close {
  position: fixed;
  top: 18px;
  inset-inline-end: calc(50vw - var(--col) / 2 + 18px);
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: var(--ink);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-slow) 220ms;
}
.cinematic[aria-hidden="false"] .cinematic-close { opacity: 1; }

.cinematic-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--paper);
}
.cinematic-hero img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.cinematic-content {
  padding: 36px var(--pad) 60px;
  flex: 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-slow) var(--ease-slow) 320ms,
              transform var(--t-slow) var(--ease-slow) 320ms;
}
.cinematic[aria-hidden="false"] .cinematic-content {
  opacity: 1;
  transform: translateY(0);
}

.dish-sub-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 18px;
}
.dish-sub-line .dot { color: var(--ink-faint); }

.cinematic .dish-name {
  font-size: 38px;
  line-height: 1.02;
  margin: 0 0 14px;
  letter-spacing: -0.012em;
}
.cinematic .dish-desc {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 36ch;
  margin: 0 0 28px;
}

.cinematic-price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 32px;
  font-family: var(--serif-body);
}
.cinematic-price-row .price-large {
  font-size: 22px;
  font-variant-numeric: oldstyle-nums;
}
.cinematic-price-row .price-alt {
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
}

.cinematic-rule {
  border: 0;
  border-top: 1px solid var(--rule);
  width: 28px;
  margin: 0 0 24px;
}

.pairing {
  padding: 20px 0 24px;
}
.pairing-label {
  font-size: 10.5px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pairing-label .pending {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--ink-mute);
}
.pairing-body {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.55;
  max-width: 32ch;
}
.pairing-body .placeholder {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink-faint);
}

.cinematic-signature {
  margin: 24px 0;
  padding: 12px 0 12px 14px;
  border-inline-start: 1.5px solid var(--red);
}
.cinematic-signature-label {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 4px;
}
.cinematic-signature-body {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.cinematic-add {
  position: sticky;
  bottom: 16px;
  margin: 24px 0 0;
  align-self: flex-start;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: background var(--t-fast) var(--ease-quiet), color var(--t-fast) var(--ease-quiet);
}
.cinematic-add:hover { background: var(--ink); color: var(--paper); }
.cinematic-add.added { background: var(--ink); color: var(--paper); }

/* FLIP clone */
.flip-clone {
  position: fixed;
  z-index: 150;
  margin: 0;
  pointer-events: none;
  background: var(--paper);
  overflow: hidden;
  transition: top var(--t-very-slow) var(--ease-slow),
              left var(--t-very-slow) var(--ease-slow),
              width var(--t-very-slow) var(--ease-slow),
              height var(--t-very-slow) var(--ease-slow);
}
.flip-clone {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flip-clone img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* ═══════════════════════════════════════════════════════════
   TERM POPOVER
   ═══════════════════════════════════════════════════════════ */
.term-pop-inner {
  position: absolute;
  max-width: 280px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 16px 16px;
  font-family: var(--serif-display);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--t-fast) var(--ease-quiet),
              transform var(--t-fast) var(--ease-quiet);
  pointer-events: auto;
}
.overlay.term-pop[aria-hidden="false"] .term-pop-inner {
  opacity: 1;
  transform: translateY(0);
}
.term-pop-word {
  display: block;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.term-pop-body { color: var(--paper); font-size: 14px; }

/* ═══════════════════════════════════════════════════════════
   SHEET (table)
   ═══════════════════════════════════════════════════════════ */
.sheet {
  background: rgba(10,10,10,0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet-inner {
  width: var(--col);
  background: var(--paper);
  padding: 20px var(--pad) 28px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(40px);
  transition: transform var(--t-slow) var(--ease-slow);
  display: flex;
  flex-direction: column;
}
.sheet[aria-hidden="false"] .sheet-inner { transform: translateY(0); }

.sheet-handle {
  width: 36px;
  height: 2px;
  background: var(--ink-faint);
  margin: 0 auto 22px;
  border-radius: 2px;
}
.sheet-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 4px;
}
.sheet-title {
  font-family: var(--serif-display);
  font-size: 26px;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.005em;
}
.sheet-count {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
}
.sheet-sub {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 20px;
}

.compose {
  margin: 0 0 22px;
  padding: 18px 18px;
  border-inline-start: 1.5px solid var(--gold);
  background: rgba(184,148,91,0.04);
}
.compose-label {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
  font-family: var(--serif-display);
  font-style: italic;
}
.compose-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.compose-list li {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.4;
  padding: 3px 0;
}
.compose-list li + li {
  margin-top: 2px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 8px;
}

.sheet-list { padding: 4px 0 0; }
.sheet-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: center;
}
.sheet-item-thumb {
  width: 56px;
  height: 56px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sheet-item-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.sheet-item-name {
  font-family: var(--serif-display);
  font-size: 15px;
  margin: 0;
  line-height: 1.2;
}
.sheet-item-sub {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-mute);
  margin: 2px 0 0;
}
.sheet-item-price {
  font-family: var(--serif-body);
  font-variant-numeric: oldstyle-nums;
  font-size: 14px;
}
.sheet-item-remove {
  display: block;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
  transition: color var(--t-fast) var(--ease-quiet);
}
.sheet-item-remove:hover { color: var(--red); }

.sheet-total {
  display: flex;
  justify-content: space-between;
  padding: 18px 0 22px;
  border-top: 1px solid var(--rule);
  margin-top: 12px;
  font-family: var(--serif-display);
}
.sheet-total-label {
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.sheet-total-amt {
  font-family: var(--serif-body);
  font-variant-numeric: oldstyle-nums;
  font-size: 18px;
}

.sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sheet-cta {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.08em;
  transition: background var(--t-fast) var(--ease-quiet);
}
.sheet-cta:hover { background: var(--red); }
.sheet-close {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px;
}

.sheet-empty {
  text-align: center;
  padding: 30px 0 10px;
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--ink-mute);
}

/* ═══════════════════════════════════════════════════════════
   WAITER VIEW (show-to-waiter)
   ═══════════════════════════════════════════════════════════ */
.waiter {
  background: var(--ink);
  display: flex;
  justify-content: center;
}
.waiter-frame {
  width: var(--col);
  background: var(--paper);
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--pad) 80px;
  position: relative;
}
.waiter-close {
  position: fixed;
  top: 18px;
  inset-inline-end: calc(50vw - var(--col) / 2 + 18px);
  z-index: 10;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.waiter-head {
  padding: 60px 0 18px;
  text-align: center;
}
.waiter-head h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.waiter-head p {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--ink-mute);
  font-size: 14px;
  margin: 0;
}
.waiter-list { padding: 24px 0 0; }
.waiter-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
}
.waiter-card-thumb {
  width: 88px;
  height: 88px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.waiter-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.waiter-card-name {
  font-family: var(--serif-display);
  font-size: 20px;
  margin: 0 0 4px;
  line-height: 1.15;
}
.waiter-card-sub {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}
.waiter-card-price {
  font-family: var(--serif-body);
  font-variant-numeric: oldstyle-nums;
  font-size: 14px;
  color: var(--ink);
}

.waiter-total {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
}
.waiter-total-label {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 16px;
}
.waiter-total-amt {
  font-family: var(--serif-body);
  font-variant-numeric: oldstyle-nums;
  font-size: 22px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — wider screens just centre the column
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 600px) {
  body { background: #F4F2EC; }   /* warm grey, only outside the column */
  .frame {
    box-shadow: 0 0 60px rgba(10,10,10,0.05);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   PHOTO LOOKBOOK
   ═══════════════════════════════════════════════════════════ */
.lookbook-overlay {
  display: flex;
  justify-content: center;
}
.lookbook-frame {
  width: var(--col);
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}
.lookbook-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
.lookbook-head > * { pointer-events: auto; }
.lookbook-title {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.lookbook-close {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 8px;
}
.lookbook-track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.lookbook-track::-webkit-scrollbar { display: none; }
.lookbook-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
}
.lookbook-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px var(--pad);
}
.lookbook-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.lookbook-caption {
  padding: 24px var(--pad) 32px;
}
.lookbook-name {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  margin: 0 0 8px;
  letter-spacing: -0.008em;
}
.lookbook-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  font-family: var(--serif-body);
  font-size: 14px;
  color: var(--ink-mute);
}
.lookbook-meta-left {
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.lookbook-price {
  font-variant-numeric: oldstyle-nums;
  color: var(--ink);
  font-size: 15px;
}
.lookbook-open {
  display: inline-block;
  margin: 14px 0 0;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.08em;
  background: var(--paper);
  transition: background var(--t-fast) var(--ease-quiet), color var(--t-fast) var(--ease-quiet);
}
.lookbook-open:hover { background: var(--ink); color: var(--paper); }
.lookbook-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: none;     /* progress indicator off by default; can re-enable */
}

/* ═══════════════════════════════════════════════════════════
   TASTING MENU BUILDER
   ═══════════════════════════════════════════════════════════ */
.tasting-overlay {
  display: flex;
  justify-content: center;
}
.tasting-frame {
  width: var(--col);
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--pad) 80px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tasting-close {
  position: absolute;
  top: 18px;
  inset-inline-end: var(--pad);
  z-index: 10;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tasting-close:hover { color: var(--ink); }
.tasting-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 40px;
  min-height: 80vh;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms var(--ease-slow), transform 700ms var(--ease-slow);
  pointer-events: none;
  position: absolute;
  inset: 0 var(--pad);
}
.tasting-step.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  inset: auto;
}
/* Moods step: 7 cards — top-align and let the page scroll */
.tasting-step.tasting-step-moods {
  justify-content: flex-start;
  padding: 60px 0 40px;
  min-height: 0;
}
.tasting-step-moods .tasting-question {
  font-size: 34px;
  margin: 0 0 12px;
  max-width: 18ch;
}
.tasting-intro-line {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin: 0 0 28px;
  max-width: 34ch;
}
.tasting-choices-moods .tasting-choice {
  padding: 18px 0;
}
.tasting-choices-moods .tasting-choice-title {
  font-size: 24px;
  margin-bottom: 4px;
}
.tasting-choices-moods .tasting-choice-desc {
  font-size: 13px;
  line-height: 1.45;
  max-width: 36ch;
}
.tasting-back {
  align-self: flex-start;
  margin: 36px 0 0;
  padding: 8px 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-quiet);
}
.tasting-back:hover { color: var(--ink); }
.tasting-progress {
  font-family: var(--serif-body);
  font-style: italic;
  font-variant-numeric: oldstyle-nums;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin: 0 0 28px;
}
.tasting-question {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0 0 40px;
  max-width: 14ch;
}
.tasting-choices {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tasting-choice {
  display: block;
  width: 100%;
  text-align: start;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  background: none;
  font: inherit;
  color: var(--ink);
  transition: padding var(--t-fast) var(--ease-quiet);
  position: relative;
}
.tasting-choice:last-child { border-bottom: 1px solid var(--rule); }
.tasting-choice:hover { padding-inline-start: 8px; }
.tasting-choice-title {
  display: block;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  margin: 0 0 6px;
  letter-spacing: -0.008em;
}
.tasting-choice-desc {
  display: block;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
}
.tasting-choice::after {
  content: '→';
  position: absolute;
  top: 50%;
  inset-inline-end: 0;
  transform: translateY(-50%);
  font-family: var(--serif-body);
  color: var(--ink-faint);
  font-size: 18px;
  transition: color var(--t-fast) var(--ease-quiet), transform var(--t-fast) var(--ease-quiet);
}
body.lang-ar .tasting-choice::after { content: '←'; }
.tasting-choice:hover::after { color: var(--ink); transform: translateY(-50%) translateX(4px); }
body.lang-ar .tasting-choice:hover::after { transform: translateY(-50%) translateX(-4px); }

/* result */
.tasting-result {
  padding: 60px 0 0;
  display: none;
}
.tasting-result.active { display: block; }
.tasting-result-kicker {
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-style: italic;
  margin: 0 0 16px;
}
.tasting-result-name {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 54px;
  line-height: 0.98;
  letter-spacing: -0.014em;
  margin: 0 0 16px;
}
.tasting-result-note {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 32ch;
}
.tasting-courses {
  margin: 0;
}
.tasting-course {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: start;
}
.tasting-course:first-child { border-top: 0; }
.tasting-course-thumb {
  width: 96px;
  height: 120px;
  overflow: hidden;
  background: var(--paper);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tasting-course-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.tasting-course-num {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 6px;
}
.tasting-course-name {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.05;
  margin: 0 0 8px;
}
.tasting-course-desc {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 0 0 6px;
}
.tasting-course-price {
  font-family: var(--serif-body);
  font-variant-numeric: oldstyle-nums;
  font-size: 13px;
  color: var(--ink-mute);
}
.tasting-result-foot {
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.tasting-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--serif-display);
  margin: 0 0 24px;
}
.tasting-total-label {
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.tasting-total-amt {
  font-family: var(--serif-body);
  font-variant-numeric: oldstyle-nums;
  font-size: 20px;
}
.tasting-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tasting-action-primary {
  padding: 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.08em;
  transition: background var(--t-fast) var(--ease-quiet);
}
.tasting-action-primary:hover { background: var(--red); }
.tasting-action-secondary {
  padding: 10px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tasting-action-secondary:hover { color: var(--ink); }

/* landing entry — chef's recommender */
.tasting-entry {
  margin: 28px 0 4px;
  padding: 22px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  background: var(--paper);
  transition: background var(--t-med) var(--ease-quiet), color var(--t-med) var(--ease-quiet);
  text-align: start;
  width: 100%;
}
.tasting-entry:hover { background: var(--ink); color: var(--paper); }
.tasting-entry:hover .tasting-entry-desc,
.tasting-entry:hover .tasting-entry-kicker { color: rgba(255,255,255,0.7); }
.tasting-entry-body { min-width: 0; }
.tasting-entry-kicker {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 8px;
  transition: color var(--t-med) var(--ease-quiet);
}
.tasting-entry-title {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.tasting-entry-desc {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.45;
  max-width: 36ch;
  transition: color var(--t-med) var(--ease-quiet);
}
.tasting-entry-arrow {
  font-family: var(--serif-body);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform var(--t-med) var(--ease-slow);
}
.tasting-entry:hover .tasting-entry-arrow { transform: translateX(6px); }
body.lang-ar .tasting-entry-arrow { transform: scaleX(-1); }
body.lang-ar .tasting-entry:hover .tasting-entry-arrow { transform: scaleX(-1) translateX(6px); }

/* ═══════════════════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 1100ms var(--ease-slow), visibility 0s 1100ms;
}
.preloader.gone {
  opacity: 0;
  visibility: hidden;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.preloader-logo {
  max-width: 140px;
  max-height: 120px;
  width: auto;
  height: auto;
  opacity: 0;
  transform: translateY(8px);
  animation: preloaderLogo 1400ms 200ms var(--ease-slow) forwards;
}
.preloader-mark {
  display: none;             /* shown only if logo fails to load */
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 54px;
  letter-spacing: -0.005em;
  color: var(--ink);
  opacity: 0;
  animation: preloaderLogo 1400ms 200ms var(--ease-slow) forwards;
}
.preloader-line {
  display: block;
  width: 0;
  height: 1px;
  background: var(--ink);
  animation: preloaderLine 2200ms 400ms var(--ease-slow) forwards;
}
@keyframes preloaderLogo {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes preloaderLine {
  from { width: 0; }
  to { width: 64px; }
}

/* ─── micro-affordance hint above filters ───────────────── */
.tap-hint {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tap-hint::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--ink-mute);
  flex-shrink: 0;
}
.tap-hint.terms-hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-faint);
}
.tap-hint.terms-hint::before { background: var(--ink-faint); }

/* ─── page entrance ──────────────────────────────────────── */
.frame > main {
  animation: pageEnter 900ms var(--ease-slow) both;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── table pill: pulse when count changes ──────────────── */
.table-pill.pulse {
  animation: pillPulse 900ms var(--ease-slow);
}
@keyframes pillPulse {
  0%   { transform: translateX(-50%) translateY(0) scale(1); }
  35%  { transform: translateX(-50%) translateY(0) scale(1.08); }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}

/* ─── cinematic add-to-table feedback flash ─────────────── */
.cinematic-add.flash {
  animation: addFlash 700ms var(--ease-slow);
}
@keyframes addFlash {
  0%   { background: var(--ink); color: var(--paper); }
  35%  { background: var(--gold); color: var(--paper); border-color: var(--gold); }
  100% { background: var(--ink); color: var(--paper); }
}

/* ─── added-confirmation toast ───────────────────────────── */
.toast {
  position: fixed;
  bottom: 90px;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  transition: opacity 420ms var(--ease-slow), transform 420ms var(--ease-slow);
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── kintsugi ribbon ─────────────────────────────────────
   A slow gold thread that draws across the top hairline on
   add-to-table — a small branded reward.                   */
.kintsugi {
  position: fixed;
  top: 0;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(184,148,91,0.0) 8%,
      var(--gold) 50%,
      rgba(184,148,91,0.0) 92%,
      transparent 100%);
  filter: drop-shadow(0 0 6px rgba(184,148,91,0.5));
  pointer-events: none;
  opacity: 0;
  z-index: 950;
}
.kintsugi.active {
  animation: kintsugiDraw 1800ms var(--ease-slow);
}
@keyframes kintsugiDraw {
  0%   { width: 0;     opacity: 0; }
  20%  { width: 90px;  opacity: 1; }
  60%  { width: 240px; opacity: 1; }
  100% { width: 240px; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   HOUSE LIGHTS — low-light mode for a dimmed dining room
   ═══════════════════════════════════════════════════════════ */
body.lights-low {
  --ink: #F4EFE3;
  --ink-soft: #D6CFC1;
  --ink-mute: #8C857A;
  --ink-faint: #4A463E;
  --paper: #0B0A09;
  --paper-warm: #0B0A09;
  --rule: #2A2620;
  --rule-soft: #1C1A16;
  --red: #C25656;
  --gold: #D4AC72;
}
body.lights-low,
body.lights-low html { background: var(--paper); color: var(--ink); }
body.lights-low .frame { background: var(--paper); }
@media (min-width: 600px) {
  body.lights-low { background: #06060A; }
  body.lights-low .frame { box-shadow: 0 0 80px rgba(0,0,0,0.6); }
}
body.lights-low .dish-thumb,
body.lights-low .index-thumb,
body.lights-low .sheet-item-thumb,
body.lights-low .waiter-card-thumb,
body.lights-low .cinematic-hero,
body.lights-low .flip-clone { background: #0B0A09; }
body.lights-low .dish-thumb img,
body.lights-low .index-thumb img,
body.lights-low .sheet-item-thumb img,
body.lights-low .waiter-card-thumb img,
body.lights-low .cinematic-hero img,
body.lights-low .flip-clone img,
body.lights-low .lookbook-slide img {
  /* white photo backgrounds now dissolve into black */
  mix-blend-mode: screen;
  filter: brightness(0.92) saturate(1.05);
}
body.lights-low .preloader,
body.lights-low .cinematic,
body.lights-low .waiter,
body.lights-low .lookbook-overlay,
body.lights-low .tasting-overlay { background: var(--paper); }
body.lights-low .preloader-line { background: var(--ink); }
body.lights-low .sheet-cta { background: var(--ink); color: var(--paper); }
body.lights-low .sheet-cta:hover { background: var(--red); color: var(--paper); }
body.lights-low .table-pill { background: var(--ink); color: var(--paper); }
body.lights-low .pill-count { border-color: rgba(11,10,9,0.3); }
body.lights-low .cinematic-add { border-color: var(--ink); }
body.lights-low .cinematic-add:hover,
body.lights-low .cinematic-add.added { background: var(--ink); color: var(--paper); }
body.lights-low .cinematic-close { background: rgba(11,10,9,0.92); color: var(--ink); }
body.lights-low .term { border-bottom-color: var(--ink-mute); }
body.lights-low .term-pop-inner { background: var(--ink); color: var(--paper); }
body.lights-low .term-pop-word { color: rgba(11,10,9,0.55); }
body.lights-low .term-pop-body { color: var(--paper); }

.lights-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-inline-start: 14px;
  color: var(--ink-mute);
  transition: color var(--t-fast) var(--ease-quiet), transform var(--t-fast) var(--ease-quiet);
}
.lights-button:hover { color: var(--ink); }
.lights-button:active { transform: scale(0.94); }
.lights-button svg { width: 16px; height: 16px; }
body.lights-low .lights-button { color: var(--ink); }
.lights-button .icon-moon { display: none; }
.lights-button .icon-sun  { display: block; }
body.lights-low .lights-button .icon-moon { display: block; }
body.lights-low .lights-button .icon-sun  { display: none; }
