/* =========================================================================
   ONYX digital menu, V3 "Cinematic"
   Arabic first (RTL), mobile first, dark only.
   The page is one continuous film: an opening shot (cover photo + glowing
   logo), then every category opens on its own mood photo that drifts as it
   crosses the screen, with smoky glass cards tinted by that photo (--tint,
   set per section from menu.json, as "r g b").

   Motion is CSS only. Parallax uses scroll-driven animations where the
   browser supports them (otherwise the photos simply stay still), and
   everything moving stops for prefers-reduced-motion.
   ========================================================================= */

/* ---------- Fonts (self-hosted subsets) ---------- */
@font-face {
  font-family: "El Messiri";
  src: url("/assets/fonts/messiri-ar-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200F, U+FE70-FEFF;
}
@font-face {
  font-family: "El Messiri";
  src: url("/assets/fonts/messiri-lat-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2026;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/plex-ar-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200F, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/plex-ar-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200F, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/plex-lat-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+00D7, U+2013-2026, U+2212;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/plex-lat-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+00D7, U+2013-2026, U+2212;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --font-display: "El Messiri", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-text: "IBM Plex Sans Arabic", "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;

  --gutter: 16px;
  --measure: 720px;
  --nav-h: 66px;
  --ease: cubic-bezier(0.22, 0.7, 0.18, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);

  --bg: #0b0907;
  --bg-rgb: 11 9 7;
  --surface: #16130f;
  --surface-2: #1e1a15;
  --line: rgb(255 236 204 / 0.09);
  --line-strong: rgb(255 236 204 / 0.17);
  --text: #f4ecdf;
  --text-2: #b8aa94;
  --gold: #d6b27a;
  --gold-hi: #f1d39a;
  --gold-rgb: 214 178 122;
  --title: #e9c98f;
  --accent: var(--gold);
  --tile-icon: #f1d39a;
  --cta-bg: linear-gradient(135deg, #f6deaa 0%, #d9ad63 52%, #b98a43 100%);
  --cta-flat: #d6aa60;
  --cta-text: #1b130a;
  --cta-soft: rgb(27 19 10 / 0.14);
  --scrim: rgb(0 0 0 / 0.66);
  --shadow: 0 18px 48px rgb(0 0 0 / 0.55), 0 2px 8px rgb(0 0 0 / 0.4);
  --tint: 201 161 90; /* replaced per category */
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg { display: block; }
a { color: inherit; }
/* author display rules (flex, grid) must never override the hidden attribute */
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cta-flat);
  color: var(--cta-text);
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.ico,
.art {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* =========================================================================
   Opening shot
   Phones: the logo glows in the dark upper part, the cover photo fills the
   lower two thirds (3:4 crop). Wide screens: the photo fills the screen.
   ========================================================================= */
.opening {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(70% 38% at 50% 18%, rgb(var(--gold-rgb) / 0.16), transparent 70%),
    var(--bg);
}
.opening__photo {
  position: absolute;
  z-index: -2;
  inset: auto 0 0 0;
  height: 68%;
  overflow: hidden;
}
.opening__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}
.opening__veil {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      var(--bg) 30%,
      rgb(var(--bg-rgb) / 0.6) 42%,
      rgb(var(--bg-rgb) / 0.08) 58%,
      rgb(var(--bg-rgb) / 0) 74%,
      rgb(var(--bg-rgb) / 0.55) 90%,
      var(--bg) 100%),
    radial-gradient(120% 60% at 50% 100%, transparent 40%, rgb(var(--bg-rgb) / 0.6) 100%);
}
.opening__content {
  position: relative;
  width: 100%;
  padding: calc(max(18px, env(safe-area-inset-top, 0px)) + 5svh) var(--gutter) 0;
}
.opening__brand {
  position: relative;
  width: min(270px, 68vw);
  margin: 0 auto;
}
.opening__logo {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 26px rgb(0 0 0 / 0.65));
}
.opening__halo {
  position: absolute;
  inset: -30% -22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--gold-rgb) / 0.32), rgb(var(--gold-rgb) / 0.08) 55%, transparent 75%);
  pointer-events: none;
}
/* a band of light that crosses the letters only (masked by the logo itself) */
.opening__sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgb(255 250 236 / 0.95) 50%, transparent 62%);
  background-size: 260% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  -webkit-mask: url("/assets/img/onyx-logo.webp") center / contain no-repeat;
  mask: url("/assets/img/onyx-logo.webp") center / contain no-repeat;
  mix-blend-mode: screen;
}
.opening__tagline {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--title);
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.8);
}
.opening__hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgb(var(--gold-rgb) / 0.24);
  background: rgb(var(--bg-rgb) / 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--text);
}
.opening__hint svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--gold-hi);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.opening__note { margin: 10px 0 0; font-size: 13px; color: var(--text-2); }

.opening__cue {
  position: absolute;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  inset-inline: 0;
  width: max-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 6px 18px;
  color: var(--gold-hi);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.9);
}
/* once the gold total bar is showing, the cue sits above it */
.has-tray .opening__cue { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
.opening__cue svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 6px rgb(0 0 0 / 0.8));
}

@media (min-width: 700px) {
  .opening__photo { inset: 0; height: 100%; }
  .opening__photo img { object-position: 60% 60%; }
  .opening__veil {
    background:
      linear-gradient(180deg, rgb(var(--bg-rgb) / 0.86) 0%, rgb(var(--bg-rgb) / 0.35) 34%, rgb(var(--bg-rgb) / 0) 55%, rgb(var(--bg-rgb) / 0.4) 82%, var(--bg) 100%),
      radial-gradient(90% 80% at 50% 45%, transparent 50%, rgb(var(--bg-rgb) / 0.7) 100%);
  }
  .opening__content { padding-top: calc(28px + 6svh); }
}

/* =========================================================================
   Category bar (sticky)
   ========================================================================= */
.catnav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  background: rgb(var(--bg-rgb) / 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .catnav {
    background: rgb(var(--bg-rgb) / 0.66);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
  }
}
.catnav.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.9);
}
.is-unavailable .catnav { display: none; }

.catnav__scroller {
  position: relative; /* the ring is placed against this box and scrolls with the chips */
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}
.catnav__scroller::-webkit-scrollbar { display: none; }

.catnav__track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
}

.chip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding-inline: 5px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(255 240 215 / 0.04);
  color: var(--text-2);
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.chip__thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(255 236 204 / 0.14);
  filter: saturate(0.85) brightness(0.9);
  transition: filter 0.4s var(--ease);
}
.chip .ico {
  width: 22px;
  height: 22px;
  margin-inline-start: 8px;
  stroke-width: 1.5;
  color: var(--gold);
}
.chip[aria-current="true"] {
  border-color: transparent;
  background: rgb(var(--tint) / 0.2);
  color: var(--gold-hi);
}
.chip[aria-current="true"] .chip__thumb { filter: none; }

/* the gold ring that slides to the active chip (ui/navigation.js sets width + translateX) */
.catnav__ring {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  height: 46px;
  margin-top: -23px;
  border-radius: 999px;
  border: 1.5px solid rgb(var(--gold-rgb) / 0.9);
  box-shadow: 0 0 14px rgb(var(--gold-rgb) / 0.35), inset 0 0 10px rgb(var(--gold-rgb) / 0.15);
  pointer-events: none;
  opacity: 0;
}
.catnav__ring.is-placed { opacity: 1; }


/* ---------- Review bell (ui/review.js) ---------- */
.bell {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-inline: 2px 12px;
  padding: 0;
  border: 1px solid rgb(var(--gold-rgb) / 0.42);
  border-radius: 50%;
  background: rgb(var(--bg-rgb) / 0.55);
  color: var(--gold-hi);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.15s var(--ease);
}
.bell:active { transform: scale(0.93); }
.bell__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 12%;
}
.bell__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid var(--bg);
  background: #e5484d;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  transform: scale(0);
  transition: transform 0.35s var(--spring);
}
.bell.is-ringing {
  border-color: rgb(var(--gold-rgb) / 0.95);
  box-shadow: 0 0 0 1px rgb(var(--gold-rgb) / 0.3), 0 0 22px rgb(var(--gold-rgb) / 0.6);
}
.bell.is-ringing .bell__badge { transform: scale(1); }

/* =========================================================================
   Categories: a mood photo, then the cards
   ========================================================================= */
.menu {
  padding: 0 0 12px;
  outline: none;
}

.cat {
  position: relative;
  padding-bottom: 14px;
  scroll-margin-top: var(--nav-h);
}
.cat + .cat { margin-top: 22px; }

.scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(300px, 60svh, 520px);
  max-width: 760px;
  margin: 0 auto;
  /* shown alone if the photo is missing or still loading */
  background:
    radial-gradient(80% 70% at 50% 62%, rgb(var(--tint) / 0.5), transparent 72%),
    linear-gradient(180deg, #15110c, var(--bg));
}
.scene__frame {
  position: absolute;
  z-index: -2;
  inset: -9% 0;
}
.scene__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}
.scene__veil {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgb(var(--bg-rgb) / 0.55) 0%,
      rgb(var(--bg-rgb) / 0) 22%,
      rgb(var(--bg-rgb) / 0) 46%,
      rgb(var(--bg-rgb) / 0.62) 72%,
      var(--bg) 100%),
    radial-gradient(90% 45% at 50% 100%, rgb(var(--tint) / 0.3), transparent 70%);
}
.scene__titles {
  position: absolute;
  inset-inline: 0;
  bottom: 14px;
  padding: 0 var(--gutter);
  text-align: center;
}
.scene__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 10.5vw, 54px);
  line-height: 1.2;
  color: var(--gold-hi);
  background: linear-gradient(180deg, #fff0cf 0%, #f0cf91 45%, #c89a52 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgb(0 0 0 / 0.75));
  outline: none;
  text-wrap: balance;
}
.scene__name:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 4px;
  border-radius: 8px;
}
.scene__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  margin: 4px 0 0;
  font-size: 13px;
  color: rgb(244 236 223 / 0.82);
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.9);
}
.scene__en {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.scene__meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgb(var(--gold-rgb) / 0.8);
}

/* ---------- Product cards: smoky glass, tinted by the category photo ---------- */
.dishes {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 4px auto 0;
  padding: 0 var(--gutter);
  list-style: none;
}

/* the card is one big "add" button; its "−" sits beside the count once selected */
.dish-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.dish-item > .dish { grid-area: 1 / 1 / 2 / 3; }
.dish-item.is-selected > .dish { padding-inline-end: 62px; }

.dish {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgb(var(--tint) / 0.16), rgb(255 240 215 / 0.025) 58%),
    rgb(22 18 14 / 0.82);
  box-shadow: inset 0 1px 0 rgb(255 248 235 / 0.05);
  text-align: start;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.2s var(--ease), background-color 0.35s var(--ease);
}
button.dish:active { transform: scale(0.982); }
.dish--static { cursor: default; }
.dish:focus-visible { outline-offset: -2px; }
@media (hover: hover) {
  button.dish:hover { border-color: rgb(var(--tint) / 0.5); }
}
.dish.is-selected {
  border-color: rgb(var(--gold-rgb) / 0.6);
  box-shadow:
    inset 0 1px 0 rgb(255 248 235 / 0.06),
    0 0 0 1px rgb(var(--gold-rgb) / 0.18),
    0 14px 34px -16px rgb(var(--tint) / 0.75);
}

.dish__media {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(circle at 32% 26%, rgb(var(--tint) / 0.42), rgb(var(--tint) / 0.1) 75%);
  box-shadow: inset 0 0 0 1px rgb(255 236 204 / 0.08);
}
.dish__media .ico {
  width: 32px;
  height: 32px;
  stroke-width: 1.3;
  color: var(--tile-icon);
}
.dish__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dish__name {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.size {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgb(var(--gold-rgb) / 0.14);
  color: var(--gold-hi);
  font-size: 12px;
  line-height: 21px;
  vertical-align: 1px;
  white-space: nowrap;
}
.dish__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.dish__price {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}
.num { unicode-bidi: isolate; direction: ltr; }
.dec { font-size: 0.8em; opacity: 0.72; }

.dish__add {
  flex: 0 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgb(var(--gold-rgb) / 0.38);
  color: var(--gold-hi);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.dish__add .ico { width: 17px; height: 17px; stroke-width: 2; }
.dish__count {
  display: none;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dish.is-selected .dish__add {
  border-color: transparent;
  background: var(--cta-bg);
  color: var(--cta-text);
  box-shadow: 0 0 16px rgb(var(--gold-rgb) / 0.45);
}
.dish.is-selected .dish__add .ico { display: none; }
.dish.is-selected .dish__count { display: block; }
.dish__add.bump { animation: bump 0.36s var(--spring); }

.dish__minus {
  position: relative;
  grid-area: 1 / 2;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-inline-end: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
}
.dish__minus::before {
  /* a comfortable 46px touch area around the 38px circle */
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
}
.dish__minus .ico { width: 17px; height: 17px; stroke-width: 2; }
.dish__minus:active { transform: scale(0.92); }
@media (hover: hover) {
  .dish__minus:hover { border-color: var(--gold); color: var(--gold-hi); }
}

/* gold spark that flies from a card to the tray (ui/list.js) */
.spark {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6df 0%, #f1d39a 40%, rgb(var(--gold-rgb) / 0) 72%);
  box-shadow: 0 0 18px 6px rgb(var(--gold-rgb) / 0.55);
  pointer-events: none;
}

/* =========================================================================
   Floating summary
   ========================================================================= */
.tray {
  position: fixed;
  z-index: 30;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  visibility: hidden;
  transform: translateY(130%);
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.tray.is-open {
  visibility: visible;
  transform: none;
  transition: transform 0.55s var(--spring), visibility 0s;
}
.tray__btn {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 460px);
  height: 62px;
  padding-inline: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-text);
  box-shadow: 0 0 0 1px rgb(255 240 210 / 0.35) inset, 0 0 30px rgb(var(--gold-rgb) / 0.35), var(--shadow);
  cursor: pointer;
}
.tray__count {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--cta-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tray__label {
  min-width: 0;
  font-size: clamp(13px, 3.7vw, 15px);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tray__total { white-space: nowrap; }
/* narrow phones: the full «اضغط لعرض القائمة للموظف» still fits */
@media (max-width: 380px) {
  .tray__btn { gap: 8px; padding-inline: 8px 14px; }
  .tray__count { min-width: 36px; height: 36px; }
  .tray__chev { display: none; }
}
/* a band of light circling the gold bar: a rotating conic gradient, seen only
   through a thin ring because ::after repaints the bar's own gold on top */
.tray__btn { isolation: isolate; background: #6e4d1c; } /* dark bronze rim; the gold is ::after */
.tray__btn::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  width: 140%;
  aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent 0 52%, rgb(255 236 180 / 0.35) 62%, #fff6d8 72%, #ffffff 76%, #ffd98a 80%, transparent 88%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.tray__btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3px;
  border-radius: inherit;
  background: var(--cta-bg);
  pointer-events: none;
}
.tray__total {
  margin-inline-start: auto;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tray .cur { color: inherit; opacity: 0.72; }
.tray__chev { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tray.bump .tray__btn { animation: bump-soft 0.42s var(--spring); }
.has-tray .colophon { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }

/* =========================================================================
   Dialogs
   ========================================================================= */
html:has(dialog[open]) { overflow: hidden; }
dialog {
  padding: 0;
  border: 0;
  color: var(--text);
}
dialog::backdrop {
  background: var(--scrim);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.icon-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s var(--ease), opacity 0.3s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn--primary { background: var(--cta-bg); color: var(--cta-text); box-shadow: 0 0 22px rgb(var(--gold-rgb) / 0.28); }
.btn--quiet {
  min-height: 46px;
  background: transparent;
  color: var(--text-2);
  font-weight: 500;
}
.btn--dark { background: #17140f; color: #f6efe2; }

.disclaimer {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  text-align: center;
}

/* ---------- My list (bottom sheet) ---------- */
.sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: min(100%, 560px);
  max-width: none;
  max-height: min(88dvh, 760px);
  margin: 0 auto;
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(90% 40% at 50% 0%, rgb(var(--gold-rgb) / 0.1), transparent 70%),
    var(--surface);
  box-shadow: 0 -1px 0 rgb(var(--gold-rgb) / 0.35), var(--shadow);
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 12px;
}
.sheet__head > div { flex: 1; }
.sheet__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--title);
}
.sheet__sub { margin: 0; font-size: 13px; color: var(--text-2); }
.sheet__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 20px;
}
.sheet__empty { margin: 8px 0 20px; color: var(--text-2); text-align: center; }
.sheet__foot {
  display: grid;
  gap: 10px;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.lines { margin: 0; padding: 0; list-style: none; }
.line {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name sub"
    "unit controls";
  align-items: center;
  gap: 8px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.line:first-child { border-top: 0; }
.line__name { grid-area: name; font-size: 15.5px; line-height: 1.5; }
.line__sub {
  grid-area: sub;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold-hi);
}
.line__unit { grid-area: unit; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.line__controls { grid-area: controls; display: flex; align-items: center; gap: 8px; }

.stepper {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.stepper button,
.line__remove {
  display: grid;
  place-items: center;
  width: 44px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper svg,
.line__remove svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stepper output {
  min-width: 26px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.line__remove { width: 44px; height: 44px; color: var(--text-2); }

.total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 16px;
}
.total__value {
  font-size: 26px;
  font-weight: 600;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}
.cur { font-size: 0.62em; font-weight: 500; margin-inline-start: 4px; color: var(--text-2); }

/* ---------- Show to employee: always light, large and calm ---------- */
.staff {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  background: #fbf8f2;
  color: #17140f;
}
.staff[open] { display: block; overflow-y: auto; }
.staff__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
  min-height: 100%;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
}
.staff__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 16px;
  border-radius: 24px;
  background: radial-gradient(60% 80% at 50% 35%, #2b2216, transparent 72%), #0b0a08;
}
.staff__head { position: relative; }
.staff__plaque { display: block; }
/* the ringing bell sits in the dark header's top-left corner, clear of the logo */
.bell--staff {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 42px;
  height: 42px;
  margin: 0;
  background: rgb(255 255 255 / 0.06);
}
.bell--staff .bell__badge { border-color: #0b0a08; }
.staff__logo { width: 168px; height: auto; }
.staff__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #dcb97f;
}
.staff__count { margin: -4px 0 0; font-size: 14px; color: #c9b48f; }
.staff__list { margin: 0; padding: 0; list-style: none; }
.staff__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid rgb(52 38 18 / 0.12);
  font-size: 20px;
  line-height: 1.45;
}
.staff__qty {
  min-width: 2.4em;
  font-weight: 600;
  color: #85652f;
  font-variant-numeric: tabular-nums;
}
.staff__sub { font-size: 17px; color: #4e473d; font-variant-numeric: tabular-nums; }
.staff .size { background: #efe5d2; color: #6f5426; font-size: 14px; }
.staff__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 20px;
  background: #17140f;
  color: #f6efe2;
  font-size: 18px;
}
.staff__total strong { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.staff__total .cur { color: #d6b27a; }
.staff__note { margin: 0; font-size: 15px; color: #4e473d; text-align: center; }
.staff .btn { margin-top: auto; }

/* ---------- States ---------- */
.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 64px var(--gutter) 40px;
  text-align: center;
  color: var(--text-2);
}
.state svg { width: 16px; height: 16px; fill: var(--gold); }
.state--loading { opacity: 0; animation: fade-in 0.6s var(--ease) 0.35s forwards; }
.state--loading svg { animation: breathe 1.6s ease-in-out infinite; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
@media (hover: hover) {
  .pill:hover { color: var(--text); border-color: var(--gold); }
}

/* =========================================================================
   Footer and contact
   ========================================================================= */
.colophon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px var(--gutter) calc(36px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: radial-gradient(70% 50% at 50% 70%, rgb(var(--gold-rgb) / 0.08), transparent 70%);
}
.colophon__logo {
  width: 150px;
  height: auto;
  margin-top: 6px;
  opacity: 0.92;
}
.colophon__note { margin: 4px 0 16px; font-size: 12px; color: var(--text-2); opacity: 0.8; }
.colophon__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

.brand { fill: currentColor; stroke: none; }
.stroke-ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto 30px;
  padding: 22px 16px 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgb(var(--gold-rgb) / 0.07), transparent 60%),
    var(--surface);
}
.contact__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--title);
}
/* «قيّمنا على Google»: glowing, in the logo's gold */
.contact__review {
  --glow: 214 178 122;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding-inline: 9px 16px;
  border-radius: 18px;
  border: 1px solid rgb(var(--glow) / 0.7);
  background:
    linear-gradient(to left, rgb(var(--glow) / 0.18), rgb(var(--glow) / 0.05) 70%),
    var(--surface-2);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgb(var(--glow) / 0.12),
    0 0 18px rgb(var(--glow) / 0.22),
    inset 0 0 18px rgb(var(--glow) / 0.1);
  transition: transform 0.15s var(--ease);
}
.contact__review::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 26px 3px rgb(var(--glow) / 0.5);
  opacity: 0.55;
  pointer-events: none;
}
.contact__shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.contact__shine::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -45%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgb(255 244 222 / 0.22), transparent);
}
.contact__badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgb(var(--gold-rgb) / 0.2);
  color: var(--gold-hi);
}
.contact__label { flex: 1; text-align: start; }
.contact__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.contact__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.3s var(--ease), transform 0.15s var(--ease);
}
.contact__btn svg { width: 20px; height: 20px; }
.contact__number {
  margin: 12px 0 0;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.contact__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.contact__follow { font-size: 13px; color: var(--text-2); }
.socials { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: border-color 0.3s var(--ease), transform 0.15s var(--ease);
}
.social .brand { width: 21px; height: 21px; }
.contact__review:active, .contact__btn:active, .social:active { transform: scale(0.97); }
@media (hover: hover) {
  .contact__btn:hover, .social:hover { border-color: var(--gold); }
  .contact__review:hover::before { opacity: 1; }
}
.contact__badge .star { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.stars { display: flex; gap: 2px; color: var(--gold); filter: drop-shadow(0 0 3px rgb(var(--gold-rgb) / 0.65)); }
.stars .star { width: 13px; height: 13px; fill: currentColor; stroke: none; }

/* ---------- Review invitation (drops down from the bell; --bell-y set by ui/review.js) ---------- */
.invite {
  position: fixed;
  z-index: 35;
  top: var(--bell-y, calc(var(--nav-h) + 8px));
  left: var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "badge text"
    "actions actions";
  gap: 12px 14px;
  width: min(calc(100% - 2 * var(--gutter)), 380px);
  margin: 0;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgb(var(--gold-rgb) / 0.35);
  background:
    radial-gradient(90% 60% at 20% 0%, rgb(var(--gold-rgb) / 0.14), transparent 70%),
    var(--surface-2);
  color: var(--text);
  box-shadow: 0 0 34px rgb(var(--gold-rgb) / 0.16), var(--shadow);
  transform-origin: 12% 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.invite::before {
  /* little pointer towards the bell */
  content: "";
  position: absolute;
  top: -7px;
  left: 22px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgb(var(--gold-rgb) / 0.35);
  border-left: 1px solid rgb(var(--gold-rgb) / 0.35);
  background: var(--surface-2);
  transform: rotate(45deg);
}
.invite.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.4s var(--spring), visibility 0s;
}
.invite__stars { margin-inline-start: 8px; font-size: 13px; letter-spacing: 1px; color: #7a5a22; }
.invite__badge {
  grid-area: badge;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgb(var(--gold-rgb) / 0.16);
  color: var(--gold-hi);
}
.invite__badge svg { width: 24px; height: 24px; fill: currentColor; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.invite__text { grid-area: text; align-self: center; }
.invite__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--title);
}
.invite__body { margin: 1px 0 0; font-size: 14px; color: var(--text-2); }
.invite__actions { grid-area: actions; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.invite__rate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 600;
  text-decoration: none;
}
.invite__later {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.invite__rate:active, .invite__later:active { transform: scale(0.97); }

/* ---------- Undo toast ---------- */
.toast {
  position: fixed;
  z-index: 40;
  inset-inline: 0;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(calc(100% - 2 * var(--gutter)), 460px);
  min-height: 58px;
  margin: 0 auto;
  padding-block: 8px;
  padding-inline: 18px 8px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: var(--shadow);
  visibility: hidden;
  transform: translateY(150%);
  transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.toast.is-open { visibility: visible; transform: none; transition: transform 0.45s var(--spring), visibility 0s; }
.has-tray .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.toast__text { flex: 1; font-size: 14.5px; }
.toast__action {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================================
   Larger screens
   ========================================================================= */
@media (min-width: 620px) {
  .dishes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .cat + .cat { margin-top: 40px; }
  .scene { margin-top: 24px; border-radius: 30px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.9); }
  .scene__titles { bottom: 22px; }
  .dishes { margin-top: 18px; }
  .sheet {
    inset: 0;
    margin: auto;
    max-height: min(84dvh, 760px);
    border-radius: 28px;
  }
}

/* =========================================================================
   Motion
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* opening: the photo settles, the logo surfaces from the dark, light crosses it once */
  .opening__photo img { animation: settle 18s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  .opening__halo { animation: halo-in 1.6s var(--ease) 0.3s both, halo-breathe 5s ease-in-out 2.2s infinite; }
  .opening__logo { animation: logo-in 1.5s var(--ease) 0.15s both; }
  .opening__sweep { animation: sweep 8s cubic-bezier(0.45, 0, 0.2, 1) 1.4s infinite both; }
  .opening__tagline { animation: rise 1s var(--ease) 1s both; }
  .opening__hint { animation: rise 1s var(--ease) 1.25s both; }
  .opening__cue { animation: fade-in 1s var(--ease) 1.8s both; }
  .opening__cue svg { animation: cue 2.2s ease-in-out 2.4s infinite; }

  .catnav__ring.is-placed { transition: transform 0.55s var(--spring), width 0.55s var(--spring), opacity 0.4s var(--ease); }

  /* a category's cards rise in the first time it is reached (ui/navigation.js adds .is-in) */
  .reveal .cat:not(.is-in) .dish-item { opacity: 0; transform: translateY(18px); }
  .cat.is-in .dish-item { transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
  .cat.is-in .dish-item:nth-child(2) { transition-delay: 0.05s; }
  .cat.is-in .dish-item:nth-child(3) { transition-delay: 0.1s; }
  .cat.is-in .dish-item:nth-child(4) { transition-delay: 0.15s; }
  .cat.is-in .dish-item:nth-child(5) { transition-delay: 0.2s; }
  .cat.is-in .dish-item:nth-child(6) { transition-delay: 0.25s; }
  .cat.is-in .dish-item:nth-child(n + 7) { transition-delay: 0.3s; }

  .dish__minus { animation: pop-in 0.28s var(--ease); }
  .tray__btn::before { animation: tray-orbit 3s linear infinite; }
  .tray.is-open .tray__btn { animation: tray-glow 3s ease-in-out infinite; }
  .tray.is-open.bump .tray__btn { animation: bump-soft 0.42s var(--spring), tray-glow 3s ease-in-out infinite; }
  .bell { animation: bell-in 0.6s var(--spring); }
  .bell.is-ringing .bell__icon { animation: bell-swing 4s ease-in-out infinite; }
  .bell.is-ringing::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1.5px solid rgb(var(--gold-rgb) / 0.8);
    animation: bell-wave 2s ease-out infinite;
    pointer-events: none;
  }
  .sheet[open] { animation: sheet-up 0.45s var(--ease); }
  .sheet.is-closing { animation: sheet-down 0.24s ease-in forwards; }
  .staff[open] { animation: fade-in 0.3s var(--ease); }
  .contact__review::before { animation: glow-breathe 3.2s ease-in-out infinite; }
  .contact__shine::before { animation: shine-sweep 5.5s ease-in-out 1.2s infinite; }

  /* scroll-driven depth: photos drift slower than the page, titles rise into place */
  @supports (animation-timeline: view()) {
    .opening { view-timeline: --opening block; }
    .opening__photo { animation: opening-drift linear both; animation-timeline: --opening; animation-range: exit 0% exit 100%; }
    .opening__content { animation: opening-fade linear both; animation-timeline: --opening; animation-range: exit 0% exit 70%; }

    .scene { view-timeline: --scene block; }
    .scene__frame { animation: drift linear both; animation-timeline: --scene; animation-range: cover 0% cover 100%; }
    .scene__titles { animation: title-in linear both; animation-timeline: --scene; animation-range: entry 30% cover 42%; }
  }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .sheet[open] { animation: pop-in 0.32s var(--ease); }
  .sheet.is-closing { animation: fade-out 0.18s ease-in forwards; }
}
@media print {
  .dish-item { opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .tray, .tray.is-open, .toast, .toast.is-open, .invite, .invite.is-open { transition: none; }
  .dish__add.bump, .tray.bump .tray__btn, .state--loading svg { animation: none; }
}

@keyframes tray-orbit { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes tray-glow {
  50% { box-shadow: 0 0 0 1px rgb(255 240 210 / 0.45) inset, 0 0 42px rgb(var(--gold-rgb) / 0.6), var(--shadow); }
}
@keyframes bell-in { from { opacity: 0; transform: scale(0.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
/* swings for the first second of every 4 s, then rests */
@keyframes bell-swing {
  0%, 30%, 100% { transform: none; }
  4% { transform: rotate(18deg); }
  10% { transform: rotate(-15deg); }
  16% { transform: rotate(10deg); }
  22% { transform: rotate(-6deg); }
  27% { transform: rotate(2deg); }
}
@keyframes bell-wave { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
@keyframes settle { from { transform: scale(1.14); } to { transform: none; } }
@keyframes logo-in { from { opacity: 0; transform: scale(0.9); filter: blur(14px) drop-shadow(0 6px 26px rgb(0 0 0 / 0.65)); } to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 6px 26px rgb(0 0 0 / 0.65)); } }
@keyframes halo-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes halo-breathe { 50% { opacity: 0.65; transform: scale(1.06); } }
/* light crosses the logo in the first 20% of each 8 s cycle, then rests */
@keyframes sweep { 0% { background-position: 130% 0; } 20%, 100% { background-position: -30% 0; } }
@keyframes cue { 0%, 100% { transform: none; } 50% { transform: translateY(5px); } }
@keyframes opening-drift { to { transform: translateY(22%); } }
@keyframes opening-fade { to { opacity: 0; transform: translateY(-36px) scale(0.96); } }
@keyframes drift { from { transform: translateY(-8%) scale(1.04); } to { transform: translateY(8%) scale(1.04); } }
@keyframes title-in { from { opacity: 0; transform: translateY(26px); letter-spacing: 0.04em; } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes breathe { 50% { opacity: 0.35; transform: scale(0.8); } }
@keyframes bump { 40% { transform: scale(1.2); } 100% { transform: none; } }
@keyframes bump-soft { 40% { transform: scale(1.03); } 100% { transform: none; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes glow-breathe { 50% { opacity: 1; } }
@keyframes shine-sweep {
  0% { transform: translateX(0); }
  35%, 100% { transform: translateX(-380%); }
}
