/* ==========================================================================
   Shark's Bay Oasis — digital menu
   Red Sea above, warm ivory below. Composition, photography and type carry
   the luxury; effects stay quiet.
   ========================================================================== */

:root {
  --ocean: #082E3A;
  --ocean-2: #103F50;
  --ocean-3: #05212B;
  --turquoise: #31BDB5;
  --turquoise-soft: #8FDAD4;
  --ivory: #F8F5EF;
  --sand: #DCC6A3;
  --champagne: #C6A36A;
  --champagne-deep: #87683A;
  --white: #FFFFFF;
  --ink: #142A31;
  --ink-soft: #4E6066;
  --line: rgba(20, 42, 49, .12);

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', 'Times New Roman', serif;
  --font-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;

  --ease: cubic-bezier(.22, .8, .2, 1);        /* calm deceleration */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --radius-lg: 26px;
  --bar-h: 60px;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
html[lang="ar"] body { font-family: var(--font-ar); }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; border-radius: 12px; }
/* headings receive focus after navigation (for screen readers) but are not controls */
[tabindex="-1"]:focus-visible { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.noscript { padding: 24px; text-align: center; }

.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -.005em; }
html[lang="ar"] .display { font-family: var(--font-ar); font-weight: 700; letter-spacing: 0; }

.eyebrow { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
html[lang="ar"] .eyebrow { font-family: var(--font-ar); font-size: 14px; font-weight: 500; letter-spacing: 0; }

[dir="rtl"] .icon-dir { transform: scaleX(-1); }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Views ---------- */
#app { position: relative; min-height: 100vh; }
.view { position: relative; min-height: 100vh; min-height: 100svh; }
.view--leaving { position: fixed; inset-inline: 0; z-index: 30; pointer-events: none; }
.view--fade-out { animation: fade-out .32s ease forwards; }
.view--fade-in { animation: fade-in .4s ease both; }
.view--relang { animation: fade-in .28s ease both; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } }

/* ---------- Language switch: a small pill with a sliding marker ---------- */
.lang {
  --w: 42px;
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(5, 33, 43, .34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.lang::before {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: var(--w);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--ivory);
  box-shadow: 0 1px 3px rgba(5, 33, 43, .25);
  transition: transform .32s var(--ease);
}
.lang[data-active="ar"]::before { transform: translateX(var(--w)); }
[dir="rtl"] .lang[data-active="ar"]::before { transform: translateX(calc(-1 * var(--w))); }
.lang button {
  position: relative;
  z-index: 1;
  width: var(--w);
  height: 32px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .86);
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.lang button[lang="ar"] { font-family: var(--font-ar); font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1; padding-bottom: 2px; }
.lang button[aria-pressed="true"] { color: var(--ocean); }
/* 44px touch target without enlarging the pill */
.lang button::after { content: ""; position: absolute; inset: -6px -1px; }

.lang--light { background: rgba(20, 42, 49, .06); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.lang--light::before { background: var(--ocean); box-shadow: none; }
.lang--light button { color: var(--ink-soft); }
.lang--light button[aria-pressed="true"] { color: var(--ivory); }

/* ---------- Pill buttons (Home, Stations) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: rgba(5, 33, 43, .34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.pill::after { content: ""; position: absolute; inset: -4px 0; }  /* 48px tap height */
html[lang="ar"] .pill { font-size: 15px; font-weight: 500; }
[dir="rtl"] .pill { padding: 0 12px 0 16px; }
.pill:hover { background: rgba(5, 33, 43, .55); }
.pill:active { transform: scale(.97); }
.pill .icon { width: 18px; height: 18px; }
.pill--icon { width: 40px; padding: 0; justify-content: center; }
[dir="rtl"] .pill--icon { padding: 0; }

/* ==========================================================================
   SCREEN 1 — Welcome
   ========================================================================== */
.home {
  --sea-h: 64svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: var(--ivory);
}

/* The sea. It is masked (not covered) into the ivory page, so there is no edge. */
.home__sea {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--sea-h);
  z-index: -1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, .55) 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0, 0, 0, .55) 80%, transparent 100%);
}
.home__drift {
  position: absolute;
  inset: -3%;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 1.2s var(--ease);
}
.home__drift picture, .home__drift img { width: 100%; height: 100%; }
.home__drift img {
  object-fit: cover;
  object-position: 50% 0%;
  animation:
    sea-reveal 1.6s var(--ease) both,
    sea-breathe 26s 1.6s ease-in-out infinite alternate;
}
@keyframes sea-reveal { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1); } }
@keyframes sea-breathe { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.035) translate3d(-.8%, -.6%, 0); } }

/* sunlight drifting across the water — one soft layer, transform-only */
.home__glint {
  position: absolute;
  inset: 30% -40% 0 -40%;
  background: radial-gradient(40% 30% at 50% 40%, rgba(255, 246, 225, .38), transparent 70%);
  mix-blend-mode: soft-light;
  animation: glint 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glint { from { transform: translate3d(-12%, 0, 0); } to { transform: translate3d(12%, -4%, 0); } }

/* a whisper of shade at the very top so the label and switch stay legible */
.home__sea::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(5, 33, 43, .38), transparent);
}

.home__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) var(--gutter) 0;
}
.home__place {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--white);
  text-shadow: 0 1px 10px rgba(5, 33, 43, .35);
}
.home__rule {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  animation: rule-draw .9s .25s var(--ease) both;
}
[dir="rtl"] .home__rule { transform-origin: right center; }
@keyframes rule-draw { from { transform: scaleX(0); } }
.home__place-text { animation: fade-in .8s .6s ease both; }
.home__top .lang { animation: fade-in .8s .5s ease both; }

.home__content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 28px calc(34px + env(safe-area-inset-bottom));
}

/* The real logo, presented in three parts so it can arrive in sequence. */
.brand { display: flex; flex-direction: column; align-items: center; margin: 0; }
.brand__mark {
  width: clamp(92px, 26vw, 120px);
  height: auto;
  animation: rise 1s .45s var(--ease) both;
  filter: drop-shadow(0 10px 14px rgba(8, 46, 58, .12));
}
.brand__name {
  width: clamp(250px, 76vw, 330px);
  height: auto;
  margin-top: 16px;
  animation: name-reveal 1.1s .75s var(--ease-io) both;
}
@keyframes name-reveal {
  from { opacity: 0; clip-path: inset(0 50% 0 50%); }
  40% { opacity: 1; }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
.brand__sub {
  width: calc(clamp(250px, 76vw, 330px) * .785);
  height: auto;
  margin-top: 12px;
  opacity: .9;
  animation: fade-in .9s 1.25s ease both;
}

.home__tagline {
  margin: 26px 0 30px;
  max-width: 24ch;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
  animation: rise 1s 1.35s var(--ease) both;
}
html[lang="ar"] .home__tagline { font-family: var(--font-ar); font-style: normal; font-size: 18px; font-weight: 500; line-height: 1.6; max-width: 26ch; }

/* The one call to action */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(100%, 300px);
  height: 60px;
  padding: 0 8px 0 30px;
  border-radius: 999px;
  background: var(--ocean);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(198, 163, 106, .32),
    0 1px 2px rgba(8, 46, 58, .18),
    0 14px 28px -16px rgba(8, 46, 58, .7);
  transition: transform .5s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
  animation: rise 1s 1.5s var(--ease) both;
}
[dir="rtl"] .cta { padding: 0 30px 0 8px; }
html[lang="ar"] .cta { font-family: var(--font-ar); font-size: 17px; font-weight: 700; letter-spacing: 0; text-transform: none; }
/* a slow band of light that crosses the button once on hover */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .14) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.cta__label { position: relative; flex: 1; text-align: center; }
.cta__arrow {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--turquoise);
  color: var(--ocean);
  transition: transform .5s var(--ease), background-color .4s;
}
.cta__arrow .icon { width: 18px; height: 18px; transition: transform .5s var(--ease); }
@media (hover: hover) {
  .cta:hover { background: var(--ocean-2); box-shadow: inset 0 0 0 1px rgba(198, 163, 106, .5), 0 1px 2px rgba(8, 46, 58, .18), 0 18px 34px -16px rgba(8, 46, 58, .75); }
  .cta:hover::before { transform: translateX(120%); }
  .cta:hover .cta__arrow .icon { transform: translateX(3px); }
  [dir="rtl"] .cta:hover .cta__arrow .icon { transform: scaleX(-1) translateX(3px); }
}
.cta:active, .cta.is-pressed { transform: scale(.975); transition-duration: .12s; }
.cta.is-pressed .cta__arrow { background: var(--turquoise-soft); }

/* Explore → step inside: the sea rushes closer, the lockup bows out */
.view--dive .home__content, .view--dive .home__top { animation: dive-out .35s var(--ease-io) forwards; }
.view--dive .home__drift { transform: scale(1.14); transition: transform .7s var(--ease-io); }
.view--dive { animation: fade-out .35s .3s ease forwards; }
@keyframes dive-out { to { opacity: 0; transform: translate3d(0, 10px, 0); } }

/* very small phones: tighten rhythm, keep the button in reach */
@media (max-height: 700px) {
  .home { --sea-h: 58svh; }
  .brand__mark { width: 84px; }
  .brand__name { margin-top: 12px; width: 240px; }
  .brand__sub { width: calc(240px * .785); }
  .home__tagline { margin: 18px 0 22px; font-size: 19px; }
}

/* Landscape screens: an editorial split — ivory column, sea opening to the side */
@media (min-aspect-ratio: 1/1) and (min-width: 900px) {
  .home { --sea-h: 100%; flex-direction: row; }
  .home__sea {
    inset: 0;
    height: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 28%, rgba(0, 0, 0, .55) 42%, #000 60%);
            mask-image: linear-gradient(to right, transparent 0%, transparent 28%, rgba(0, 0, 0, .55) 42%, #000 60%);
  }
  [dir="rtl"] .home__sea {
    -webkit-mask-image: linear-gradient(to left, transparent 0%, transparent 28%, rgba(0, 0, 0, .55) 42%, #000 60%);
            mask-image: linear-gradient(to left, transparent 0%, transparent 28%, rgba(0, 0, 0, .55) 42%, #000 60%);
  }
  .home__drift img { object-position: 60% 45%; }
  .home__glint { inset: 35% -20% 0 0; }
  .home__sea::after { display: none; }
  .home__top {
    position: absolute;
    inset: 0 0 auto 0;
    padding: 32px 44px 0;
  }
  .home__place { color: var(--ink); text-shadow: none; }
  .home__content {
    margin: 0;
    width: min(40vw, 540px);
    justify-content: center;
    padding: 80px 24px 64px 5vw;
  }
  [dir="rtl"] .home__content { padding: 80px 5vw 64px 24px; }
  .brand__mark { width: clamp(96px, 9vw, 132px); }
  .brand__name { width: clamp(280px, 26vw, 380px); margin-top: 20px; }
  .brand__sub { width: calc(clamp(280px, 26vw, 380px) * .785); margin-top: 14px; }
  .home__tagline { font-size: clamp(22px, 1.8vw, 26px); margin: 30px 0 38px; }
  .cta { width: 300px; }
}
@media (min-aspect-ratio: 1/1) and (min-width: 900px) and (max-height: 800px) {
  .brand__mark { width: 92px; }
  .home__content { padding-top: 64px; padding-bottom: 48px; }
  .home__tagline { margin: 22px 0 28px; }
}

/* ==========================================================================
   SCREEN 2 — The station room
   ========================================================================== */
.room {
  color: var(--ivory);
  background: linear-gradient(to bottom, var(--ocean-2) 0, var(--ocean) 420px, var(--ocean-3) 100%);
  padding-bottom: calc(52px + env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
}

/* the same Red Sea, seen dimly through the restaurant's ceiling — continuity from the welcome screen */
.room__sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  z-index: -1;
  opacity: .42;
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 10%, transparent 100%);
}
.room__sky picture, .room__sky img { width: 100%; height: 100%; }
.room__sky img { object-fit: cover; object-position: 50% 35%; mix-blend-mode: luminosity; }
.room__sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(16, 63, 80, .35), rgba(8, 46, 58, .8)); }

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(16px + env(safe-area-inset-top)) var(--gutter) 0;
}
.topbar__group { display: flex; align-items: center; gap: 8px; }

.room__intro { position: relative; text-align: center; padding: 26px 24px 36px; }
.room__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 0 0 1px rgba(198, 163, 106, .7), 0 0 0 5px rgba(198, 163, 106, .12), 0 12px 30px -12px rgba(0, 0, 0, .6);
  animation: rise .8s .05s var(--ease) both;
}
.room__mark img { width: 44px; height: auto; }
.room__eyebrow { margin: 0; color: var(--champagne); animation: fade-in .8s .15s ease both; }
.room__title {
  margin: 8px 0 8px;
  font-size: clamp(42px, 11vw, 64px);
  line-height: 1;
  font-weight: 500;
  animation: rise .9s .2s var(--ease) both;
}
html[lang="ar"] .room__title { font-size: clamp(34px, 9vw, 52px); line-height: 1.25; }
.room__hint { margin: 0; color: rgba(248, 245, 239, .74); font-size: 14.5px; animation: fade-in .8s .35s ease both; }
html[lang="ar"] .room__hint { font-size: 16px; }
.room--return .room__mark, .room--return .room__eyebrow, .room--return .room__title, .room--return .room__hint { animation: none; }

.hall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 30px 14px;
  padding: 0 16px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ---------- A station: pendant lamp, arched alcove, sand-stone counter ---------- */
.station {
  --arch: 50% 50% 12px 12px / 34% 34% 12px 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  animation: rise .8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms + 260ms);
  border-radius: 14px;
}
.room--return .station { animation: none; }

.station__lamp {
  position: relative;
  align-self: center;
  width: 1px;
  height: 22px;
  margin-bottom: 8px;
  background: linear-gradient(to bottom, rgba(198, 163, 106, 0), rgba(198, 163, 106, .8));
}
.station__lamp::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 16px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 10px 10px 3px 3px;
  background: var(--champagne);
  box-shadow: 0 8px 22px 6px rgba(255, 214, 150, .34);
}

.station__arch {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--arch);
  overflow: hidden;
  background: var(--ocean-2);
  box-shadow: 0 0 0 1px rgba(198, 163, 106, .5), 0 26px 40px -22px rgba(0, 0, 0, .85);
  transition: transform .45s var(--ease), box-shadow .45s;
  transform: translateZ(0);
}
.station__arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.station__arch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(255, 226, 180, .22), transparent 70%),
    linear-gradient(to bottom, transparent 55%, rgba(5, 33, 43, .42));
  box-shadow: inset 0 0 0 7px rgba(8, 46, 58, 0), inset 0 0 0 8px rgba(198, 163, 106, .3);
  border-radius: inherit;
}

.station__counter {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 0 auto;   /* counters in the same row share one height */
  gap: 10px;
  min-height: 64px;
  margin: -16px -4px 0;
  padding: 12px 12px 12px 14px;
  border-radius: 10px;
  border-top: 1.5px solid var(--champagne);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .6), transparent 45%),
    linear-gradient(to bottom, var(--ivory), #EADCC4);
  color: var(--ink);
  box-shadow: 0 16px 24px -14px rgba(0, 0, 0, .8);
}
[dir="rtl"] .station__counter { padding: 12px 14px 12px 12px; }

.station__name { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.1; }
html[lang="ar"] .station__name { font-family: var(--font-ar); font-size: 16px; font-weight: 700; line-height: 1.45; }

.station__cue {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ocean);
  color: var(--ivory);
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.station__cue .icon { width: 15px; height: 15px; }

.station--featured { grid-column: 1 / -1; --arch: 50% 50% 12px 12px / 62% 62% 12px 12px; }
.station--featured .station__arch { aspect-ratio: 16 / 10; }
.station--featured .station__name { font-size: 26px; }
html[lang="ar"] .station--featured .station__name { font-size: 20px; }
.station__sig {
  display: block;
  margin-bottom: 3px;
  color: var(--champagne-deep);
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
html[lang="ar"] .station__sig { font-family: var(--font-ar); letter-spacing: 0; font-size: 13px; font-weight: 500; }

@media (hover: hover) {
  .station:hover .station__arch { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(198, 163, 106, .9), 0 34px 50px -24px rgba(0, 0, 0, .9); }
  .station:hover .station__arch img { transform: scale(1.045); }
  .station:hover .station__cue { background: var(--turquoise); color: var(--ocean); transform: translateX(2px); }
  [dir="rtl"] .station:hover .station__cue { transform: translateX(-2px); }
}
.station.is-pressed .station__arch { transform: scale(.97); transition-duration: .12s; }

/* ---------- Living stations ----------
   Footage and vapour sit between the photo and the arch's lighting (::after).
   They stay invisible until the first frame actually plays, so the photo never blinks. */
.fx-video, .fx-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s ease, transform .9s var(--ease);
}
.fx-video.is-live { opacity: 1; }
.fx-layer { mix-blend-mode: screen; }
.fx-layer.is-live { opacity: var(--vapour, .6); }
.fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
@media (hover: hover) {
  .station:hover .fx-video { transform: scale(1.045); }
  .station:hover .fx-layer { --vapour: .8; }
}

/* Shisha — smoke curls up from the bowl and drifts out to the sides; the base and glass stay clear */
.fx-layer--smoke {
  --vapour: .72;
  -webkit-mask-image: radial-gradient(70% 55% at 55% 28%, #000 35%, rgba(0, 0, 0, .5) 62%, transparent 85%);
          mask-image: radial-gradient(70% 55% at 55% 28%, #000 35%, rgba(0, 0, 0, .5) 62%, transparent 85%);
}
/* the candle beside the hookah breathes, irregularly, like a real flame */
.fx--lounge::before {
  content: "";
  position: absolute;
  left: 83%; top: 66%;
  width: 70%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 176, 92, .42), rgba(255, 140, 60, .12) 55%, transparent);
  mix-blend-mode: screen;
  animation: candle 3.7s steps(1, end) infinite, candle-sway 2.3s ease-in-out infinite alternate;
}
@keyframes candle {
  0% { opacity: .85; } 13% { opacity: .7; } 21% { opacity: .95; } 37% { opacity: .78; }
  52% { opacity: 1; } 64% { opacity: .74; } 71% { opacity: .9; } 88% { opacity: .8; }
}
@keyframes candle-sway { to { transform: translate(-48%, -52%) scale(1.06); } }

/* Seafood — cold air drifting low across the ice, and a cool light gliding over the display */
.fx-layer--mist {
  --vapour: .55;
  -webkit-mask-image: linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, .6) 55%, #000 80%);
          mask-image: linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, .6) 55%, #000 80%);
  animation: mist-drift 22s ease-in-out infinite alternate;
}
@keyframes mist-drift { from { transform: translate3d(-3%, 0, 0) scale(1.08); } to { transform: translate3d(3%, -2%, 0) scale(1.08); } }
/* this one photo is a still display, so it alone gets a very slow push-in, as if stepping up to the counter */
.station__arch:has(.fx--chill) > img, .detail__hero:has(.fx--chill) > img { animation: counter-approach 26s ease-in-out infinite alternate; }
@keyframes counter-approach { from { transform: scale(1); } to { transform: scale(1.045) translate3d(0, 1%, 0); } }
.fx--chill::before {
  content: "";
  position: absolute;
  inset: -20% -60%;
  background:
    linear-gradient(100deg, transparent 40%, rgba(200, 236, 255, .2) 48%, rgba(255, 255, 255, .38) 50%, rgba(200, 236, 255, .18) 52%, transparent 60%);
  mix-blend-mode: soft-light;
  animation: glide 11s cubic-bezier(.45, 0, .25, 1) infinite;
}
/* a cool cast settling over the ice — the counter reads chilled */
.fx--chill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(150, 210, 235, .14), transparent 60%);
  mix-blend-mode: soft-light;
}

/* Sandwiches — a reflection crossing the display glass every few seconds, then resting */
.fx--glass::before {
  content: "";
  position: absolute;
  inset: -10% -70%;
  background:
    linear-gradient(112deg, transparent 44%, rgba(255, 255, 255, .13) 48%, rgba(255, 255, 255, .03) 52%, transparent 56%),
    linear-gradient(112deg, transparent 57%, rgba(255, 255, 255, .07) 59%, transparent 61%);
  mix-blend-mode: screen;
  animation: glide 9.5s cubic-bezier(.45, 0, .25, 1) infinite;
}
@keyframes glide {
  0% { transform: translate3d(-38%, 0, 0); }
  55%, 100% { transform: translate3d(38%, 0, 0); }
}

/* Pizza — the oven's light spilling onto the arch, flickering with the fire behind it */
.fx--oven::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(85% 55% at 50% 52%, rgba(255, 150, 60, .3), transparent 70%);
  mix-blend-mode: soft-light;
  animation: oven 2.9s ease-in-out infinite;
}
@keyframes oven {
  0%, 100% { opacity: .6; } 18% { opacity: .9; } 31% { opacity: .7; } 47% { opacity: 1; } 66% { opacity: .65; } 81% { opacity: .85; }
}

/* the menu page header: wide screens keep the sharp still; phones continue the footage */
.detail__hero .fx-video--hero { z-index: 0; }
@media (min-width: 900px) { .fx-video--hero { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .fx, .fx-video, .fx-layer { display: none; }
}
.station.is-pressed .station__cue { background: var(--turquoise); color: var(--ocean); }

.room__floor {
  height: 60px;
  margin: 8px 16px 0;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 0%, rgba(198, 163, 106, .16), transparent 70%);
}

@media (min-width: 600px) {
  .hall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; padding-inline: 28px; }
  .station--featured .station__arch { aspect-ratio: 21 / 9; }
  .station--featured { --arch: 50% 50% 12px 12px / 70% 70% 12px 12px; }
}
@media (min-width: 900px) {
  .topbar { padding: 28px 44px 0; }
  .room__intro { padding: 10px 24px 48px; }
  .room__sky { height: 520px; }
  .hall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 26px; padding-inline: 40px; max-width: 1100px; }
  .station--featured { grid-column: span 2; --arch: 50% 50% 12px 12px / 46% 46% 12px 12px; }
  .station--featured .station__arch { aspect-ratio: 3 / 2; }
  .station__name { font-size: 22px; }
  html[lang="ar"] .station__name { font-size: 17px; }
  .station__counter { min-height: 70px; padding-inline-start: 18px; }
}

/* ==========================================================================
   SCREEN 3 — Category menu
   ========================================================================== */
.detail { background: var(--ivory); color: var(--ink); }

.detail__bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  transition: background-color .3s, box-shadow .3s;
}
.detail__bar.is-stuck { background: rgba(248, 245, 239, .97); box-shadow: 0 1px 0 var(--line), 0 10px 24px -20px rgba(8, 46, 58, .5); }
.detail__bar.is-stuck .pill { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.detail__bar.is-stuck .pill:hover { background: rgba(20, 42, 49, .05); }
.detail__bar.is-stuck .lang { background: rgba(20, 42, 49, .06); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.detail__bar.is-stuck .lang::before { background: var(--ocean); box-shadow: none; }
.detail__bar.is-stuck .lang button { color: var(--ink-soft); }
.detail__bar.is-stuck .lang button[aria-pressed="true"] { color: var(--ivory); }
.detail__bar-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 19px;
  opacity: 0;
  transition: opacity .3s;
}
.detail__bar.is-stuck .detail__bar-title { opacity: 1; }
html[lang="ar"] .detail__bar-title { font-size: 15px; }

.detail__hero {
  position: relative;
  height: clamp(300px, 48vh, 580px);
  margin-top: calc(-1 * (var(--bar-h) + env(safe-area-inset-top)));
  overflow: hidden;
  background: var(--ocean-2);
  color: var(--white);
}
.detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.detail__hero picture { display: block; width: 100%; height: 100%; }
.detail__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 33, 43, .5), rgba(5, 33, 43, 0) 26%),
    linear-gradient(to top, rgba(5, 33, 43, .9), rgba(5, 33, 43, .2) 52%, rgba(5, 33, 43, 0) 72%);
}
.detail__heading {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  bottom: 48px;
  padding: 0 24px;
  max-width: 820px;
  margin: 0 auto;
}
.detail__count { color: var(--turquoise-soft); margin: 0 0 8px; }
.detail__title { margin: 0; font-size: clamp(42px, 11vw, 68px); line-height: .98; font-weight: 500; text-wrap: balance; }
html[lang="ar"] .detail__title { font-size: clamp(30px, 8.5vw, 52px); line-height: 1.3; }
.detail__tagline {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .86);
  font-family: var(--font-display);
  font-size: 21px;
  font-style: italic;
}
html[lang="ar"] .detail__tagline { font-family: var(--font-ar); font-style: normal; font-size: 17px; }

.detail__sheet {
  position: relative;
  z-index: 2;
  margin-top: -26px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--ivory);
  padding: 14px 0 calc(44px + env(safe-area-inset-bottom));
}
.detail__inner { max-width: 820px; margin: 0 auto; padding: 0 22px; }
/* ---- arriving from a station ----
   The page is see-through while the shared image travels underneath it: the header's gradient and
   title draw over the moving photo, and the sheet rises over the dimmed room. Nothing is ever blank. */
.detail--arriving, .detail--leaving { background: transparent; }
.detail--arriving .detail__hero, .detail--leaving .detail__hero { background: transparent; }
.detail--arriving:not(.detail--landed) .detail__hero > img,
.detail--arriving:not(.detail--landed) .detail__hero > picture,
.detail--arriving .detail__hero > .fx-video.is-live,
.detail--arriving .detail__hero > .fx-layer.is-live { opacity: 0; }
.detail--arriving .detail__hero > img, .detail--arriving .detail__hero > picture { transition: opacity .2s ease; }
.detail--arriving .detail__hero::after { animation: fade-in .45s .2s both; }
.detail--arriving .detail__heading { animation: rise .5s .36s var(--ease) both; }
.detail--arriving .detail__bar { animation: fade-in .4s .42s both; }

/* rows follow the sheet in: a short stagger for the first few, the rest arrive together */
.detail--enter .group__title { animation: fade-in .4s .1s both; }
.detail--enter .item { animation: rise .38s var(--ease) both; animation-delay: calc(min(var(--n, 0), 7) * 30ms + 120ms); }

/* ---- leaving back to the room ---- the photo is handed to the shared image, the rest bows out */
.detail--leaving .detail__hero > img,
.detail--leaving .detail__hero > picture,
.detail--leaving .detail__hero > video,
.detail--leaving .detail__hero > .fx { visibility: hidden; }
.detail--leaving .detail__heading,
.detail--leaving .detail__bar,
.detail--leaving .detail__hero::after { animation: fade-out .22s ease both; }

/* the room's shade while the camera is away from it */
.view-veil { position: absolute; inset: 0; z-index: 5; background: rgba(5, 33, 43, .62); opacity: 0; pointer-events: none; }

.group { padding-top: 24px; }
.group__title { display: flex; align-items: center; gap: 14px; margin: 0 0 4px; color: var(--champagne-deep); }
.group__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, rgba(198, 163, 106, .7), transparent); }
[dir="rtl"] .group__title::after { background: linear-gradient(to left, rgba(198, 163, 106, .7), transparent); }

.items { list-style: none; margin: 0; padding: 0; }
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: 0; }
.item--img { grid-template-columns: 84px 1fr auto; align-items: center; }
.item__media {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--sand);
  box-shadow: 0 0 0 1px rgba(198, 163, 106, .35), 0 8px 18px -12px rgba(8, 46, 58, .5);
}
.item__media img { width: 100%; height: 100%; object-fit: cover; }
.item__name { margin: 0; font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.15; }
html[lang="ar"] .item__name { font-family: var(--font-ar); font-size: 18px; font-weight: 700; line-height: 1.5; }
.item__desc { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }
.item__options { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.item__options li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(49, 189, 181, .1);
  box-shadow: inset 0 0 0 1px rgba(49, 189, 181, .18);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
html[lang="ar"] .item__options li { font-size: 14px; }
.item__options li span { color: var(--ink-soft); font-weight: 500; }
.item__tags { display: flex; gap: 6px; margin-top: 6px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: rgba(20, 42, 49, .07); color: var(--ink-soft); }
.item__status { display: inline-block; margin-top: 6px; color: #A0412D; font-size: 13px; font-weight: 600; }
.item--off .item__name, .item--off .price { opacity: .5; }

.price { white-space: nowrap; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ocean); }
.price small { margin-inline-start: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--champagne-deep); }
html[lang="ar"] .price { font-size: 19px; }
html[lang="ar"] .price small { font-size: 12px; letter-spacing: 0; }

.detail__foot { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; }
.detail__note { margin: 0 0 18px; color: var(--ink-soft); font-size: 13px; }
html[lang="ar"] .detail__note { font-size: 15px; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid var(--ocean);
  border-radius: 999px;
  background: transparent;
  color: var(--ocean);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
html[lang="ar"] .btn-outline { font-size: 16px; }
.btn-outline:hover { background: var(--ocean); color: var(--ivory); }
.btn-outline:active { transform: scale(.98); }

.empty { padding: 40px 0; text-align: center; color: var(--ink-soft); }

@media (min-width: 900px) {
  .detail__bar { padding-inline: 32px; }
  .detail__hero { height: clamp(380px, 54vh, 640px); }
  .detail__heading { bottom: 70px; }
  .detail__sheet { margin-top: -34px; padding-top: 26px; }
  .item { padding: 22px 0; }
  .item--img { grid-template-columns: 104px 1fr auto; }
  .item__media { width: 104px; height: 104px; }
  .item__name { font-size: 26px; }
}

/* ---------- Missing images fall back to a calm ocean tile ---------- */
.media.is-missing { background: linear-gradient(135deg, var(--ocean-2), var(--ocean)); }
.media.is-missing img { visibility: hidden; }

/* ---------- Zoom layer used for the station ↔ menu transition ---------- */
/* sits between the room (below) and the menu page (above); sized as the photo, moved only by transform + clip */
.zoom-layer {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform, clip-path;
  backface-visibility: hidden;
}
.zoom-layer img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reduced motion: no drift, no glint, no staged entrance ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .home__glint { display: none; }
}
