/* Cup & Cone.
   Built from the client-approved concept deck (concept/pdf-work/head.html),
   rebuilt on 2026-09-19 onto one system: a type scale, a spacing scale, a
   radius set, three elevations and one motion vocabulary. Every size below
   comes from these tokens; a value that does not is a bug.

   Look: calm, vanilla / ink / almond, one espresso band. Type: Gilda Display
   + Parastoo on every line. Glass lives in two places only: the island that
   follows the reader, and the small controls laid over photos and video. */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: "Gilda Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/gilda-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Gilda Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/gilda-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
/* Parastoo is variable (400 to 700). At one pixel size its letters sit
   smaller than Gilda's; size-adjust evens the two scripts out at the source. */
@font-face {
  font-family: "Parastoo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  size-adjust: 108%;
  src: url("/fonts/parastoo-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF,
    U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF, U+102E0-102FB,
    U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EEFF;
}

/* ---------------------------------------------------------------- tokens */
:root {
  /* colour: one neutral ramp, one accent, one ink */
  --bg: #fcf2d3;
  --surface: #fff8e6;
  --fg: #2b2515;
  --muted: #766b4e; /* 4.7:1 on vanilla */
  --line: rgba(43, 37, 21, 0.12);
  --line-strong: rgba(43, 37, 21, 0.22);
  --accent: #a91f39; /* 6.4:1 on vanilla */
  --on-accent: #fcf2d3;
  --ring: #2b2515;
  --open: #3a9a5b;
  --addon: #c03b16; /* the add-ons, as on the board: between orange and red, 4.6:1 under cream, 4.8:1 on vanilla */
  --paid: #2c7a48; /* the paid stamp: 5:1 on the stub */
  --saving: #2c7a48; /* what a coupon took off: the success green, 4.7:1 on vanilla */
  --saving-lit: #7ed6a0; /* the same saving on espresso: 8.7:1 */
  --star: #b87c10; /* 3.2:1 on vanilla: the star means the rating, so it has to be seen */
  --studio: #fcf2d3; /* the ground the studio photos are multiplied into */
  --ink: #2b2515; /* the espresso: footer, moments band, the order */
  --cream: #f6eccf; /* text on espresso: 12.9:1 */
  --cream-muted: #b9ae90; /* secondary text on espresso: 7.1:1 */

  /* type: eight steps and two display sizes, nothing in between */
  --sans: "Gilda Display", "Parastoo", serif;
  --t-micro: 12px; /* circle labels, badges, legal */
  --t-caption: 13px; /* second lines, notes, meta */
  --t-small: 14px; /* chips, tabs, small controls */
  --t-ui: 15px; /* prices, list rows, secondary buttons */
  --t-body: 16px; /* reading text, names, primary buttons */
  --t-lead: 18px; /* a line that introduces: the hero's tag, quotes */
  --t-title: 21px; /* group headings inside a section */
  --t-h3: 28px; /* small display: the brand in the footer */
  --t-h2: clamp(2.5rem, 11.2vw, 3rem); /* section titles */
  --t-h1: clamp(2.75rem, 12.4vw, 3.5rem); /* the hero: caps read larger than
    the mixed-case question it replaced, so the step came down with it */
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.6;

  /* space: a 4px scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 32px;
  --s8: 40px;
  --s9: 48px;
  --s10: 64px;
  --s11: 80px;
  --gut: 20px; /* the deck's side margin */
  --page: 28rem;
  --section: 80px; /* the breath between sections */

  /* shape */
  --r-sm: 12px;
  --r-btn: 16px;
  --r-md: 24px;
  --r-lg: 28px;
  --r-xl: 32px;

  /* elevation: three depths, warm shadows, never grey */
  --sh-1: 0 1px 2px rgba(43, 37, 21, 0.06), 0 4px 14px -6px rgba(43, 37, 21, 0.14);
  --sh-2: 0 2px 6px -2px rgba(43, 37, 21, 0.12), 0 12px 30px -12px rgba(43, 37, 21, 0.38);
  --sh-3: 0 4px 12px -4px rgba(43, 37, 21, 0.14), 0 28px 60px -20px rgba(43, 37, 21, 0.55);

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* arrivals: fast out, long settle */
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1); /* things changing in place */
  --ease-icon: cubic-bezier(0.2, 0, 0, 1); /* icon and label swaps */
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  /* springs as easing curves (a damped spring leaving with some speed),
     calm on purpose: 2% settle for arrivals, 6% for a tap landing */
  --spring: linear(0, 0.307 4.5%, 0.532 9.1%, 0.693 13.6%, 0.808 18.2%, 0.887 22.7%, 0.94 27.3%,
    0.975 31.8%, 0.997 36.4%, 1.01 40.9%, 1.017 45.5%, 1.02 50%, 1.02 54.5%, 1.019 59.1%, 1.017 63.6%,
    1.015 68.2%, 1.012 72.7%, 1.01 77.3%, 1.008 81.8%, 1.007 86.4%, 1.005 90.9%, 1.004 95.5%, 1);
  --spring-pop: linear(0, 0.18 4.5%, 0.381 9.1%, 0.571 13.6%, 0.732 18.2%, 0.858 22.7%, 0.949 27.3%,
    1.009 31.8%, 1.043 36.4%, 1.058 40.9%, 1.06 45.5%, 1.055 50%, 1.045 54.5%, 1.034 59.1%,
    1.024 63.6%, 1.015 68.2%, 1.008 72.7%, 1.003 77.3%, 1 81.8%, 0.998 86.4%, 0.997 90.9%, 0.997 95.5%, 1);
  --t-press: 160ms;
  --t-state: 240ms;
  --t-enter: 800ms;

  --flow: -1; /* the direction reading continues in: left in Arabic */
  color-scheme: light;
}

html[dir="ltr"] {
  --flow: 1;
}

/* Night (switched off for now, NIGHT_MODE in wrangler.jsonc): the same page,
   dark after sunset in RAK. Kept at token level so it can come back. */
html[data-theme="night"] {
  --bg: #1b170e;
  --surface: #27211a;
  --fg: #f6eccf;
  --muted: #b9ae90;
  --line: rgba(246, 236, 207, 0.14);
  --line-strong: rgba(246, 236, 207, 0.24);
  --accent: #ec6e82;
  --on-accent: #1b170e;
  --ring: #f6eccf;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-synthesis: none; /* Gilda has one weight; never fake bold */
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--muted) var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox img,
  .lightbox .lightbox-cap {
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

[hidden] {
  display: none !important;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* propagates to the viewport: things waiting to slide in never widen the page */
  caret-color: var(--accent);
  -webkit-tap-highlight-color: transparent;
}

/* Things waiting to slide in sit off to the side; on a phone that would widen
   the layout viewport itself (body overflow does not stop it), so the page's
   content clips its own sideways overflow. clip, not hidden: no scroll box. */
main,
.footer {
  overflow-x: clip;
}

/* while a dialog is open the page stops scrolling; JS keeps the offset */
body.is-locked {
  position: fixed;
  inset-inline: 0;
  width: 100%;
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

/* Weights are chosen here, never inherited. The browser's own rule for b and
   strong is "bolder", which is relative: inside a 600 heading it computes to
   900, a weight neither face has, so it is faked and the serifs smear. Two
   real weights, and the headings name theirs. */
b,
strong {
  font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: 600;
  line-height: var(--lh-snug);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  text-align: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sr:focus-visible {
  position: fixed;
  z-index: 200;
  inset-block-start: var(--s2);
  inset-inline-start: var(--s2);
  width: auto;
  height: auto;
  clip-path: none;
  padding: var(--s3) var(--s4);
  border-radius: var(--r-sm);
  background: var(--fg);
  color: var(--bg);
}

.ico {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.en {
  direction: ltr;
  unicode-bidi: isolate;
}

.num {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

/* The UAE dirham sign, the Central Bank's own outline: taken from the
   vector drawing on the "Metrics" page of its Dirham Currency Symbol
   Guideline 1.0 (11.5 x 10 units: the high-contrast D, the pointed stem, the
   two bars with their swept ends). Neither of the site's fonts has it and
   most phones cannot show U+20C3 as a typed character yet, so it is drawn:
   a mask in the text colour. As the guideline asks, it is as tall as the
   digits (Gilda's are 0.70em), sits on their baseline, keeps clear of them,
   and always stands to the left of the amount, in Arabic and in English.
   Plain text (the WhatsApp message, Excel) keeps "د.إ" / "AED". */
.dh {
  display: inline-block;
  inline-size: 0.805em;
  block-size: 0.7em;
  margin-right: 0.16em;
  vertical-align: baseline;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 114.98 100'%3E%3Cpath d='M82.47 50 C82.47 51.71 82.43 53.38 82.36 55 L29.99 55.01 L29.99 45.01 L82.36 45 C82.43 46.61 82.47 48.28 82.47 50 M45.42 95 L29.99 95 L29.99 65 L81.3 65 C77.97 83.89 67.27 94.47 45.42 95 M29.99 5.01 L45.28 5.01 C65.86 5.01 77.77 14.12 81.33 35 L29.99 35 L29.99 5.01 Z M114.08 47 L114.98 47.85 L114.98 45.27 C114.98 39.6 111.01 34.99 106.12 34.99 L98.32 34.99 C92.86 12.24 74.25 0 46.57 0 C28.95 0 26.68 0 9.99 0 C9.99 0 15 4.21 15 17.47 L15 35 L5.77 35 C3.98 35 2.3 34.31 0.9 33 L0 32.15 L0 34.73 C0 40.4 3.97 45.01 8.86 45.01 L15 45.01 L15 55.01 L5.77 55.01 C3.98 55.01 2.3 54.32 0.9 53 L0 52.16 L0 54.73 C0 60.4 3.97 65.01 8.86 65.01 L15 65.01 L15 83.31 C15 96.2 9.99 100 9.99 100 L46.57 100 C75.12 100 93.13 87.68 98.38 64.99 L109.21 64.99 C111 64.99 112.68 65.69 114.08 67 L114.98 67.84 L114.98 65.27 C114.98 59.6 111.01 54.99 106.12 54.99 L99.82 55 C99.93 53.37 99.99 51.7 99.99 49.99 C99.99 48.29 99.93 46.62 99.81 45 L109.21 45 C111 45 112.68 45.69 114.08 47'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 114.98 100'%3E%3Cpath d='M82.47 50 C82.47 51.71 82.43 53.38 82.36 55 L29.99 55.01 L29.99 45.01 L82.36 45 C82.43 46.61 82.47 48.28 82.47 50 M45.42 95 L29.99 95 L29.99 65 L81.3 65 C77.97 83.89 67.27 94.47 45.42 95 M29.99 5.01 L45.28 5.01 C65.86 5.01 77.77 14.12 81.33 35 L29.99 35 L29.99 5.01 Z M114.08 47 L114.98 47.85 L114.98 45.27 C114.98 39.6 111.01 34.99 106.12 34.99 L98.32 34.99 C92.86 12.24 74.25 0 46.57 0 C28.95 0 26.68 0 9.99 0 C9.99 0 15 4.21 15 17.47 L15 35 L5.77 35 C3.98 35 2.3 34.31 0.9 33 L0 32.15 L0 34.73 C0 40.4 3.97 45.01 8.86 45.01 L15 45.01 L15 55.01 L5.77 55.01 C3.98 55.01 2.3 54.32 0.9 53 L0 52.16 L0 54.73 C0 60.4 3.97 65.01 8.86 65.01 L15 65.01 L15 83.31 C15 96.2 9.99 100 9.99 100 L46.57 100 C75.12 100 93.13 87.68 98.38 64.99 L109.21 64.99 C111 64.99 112.68 65.69 114.08 67 L114.98 67.84 L114.98 65.27 C114.98 59.6 111.01 54.99 106.12 54.99 L99.82 55 C99.93 53.37 99.99 51.7 99.99 49.99 C99.99 48.29 99.93 46.62 99.81 45 L109.21 45 C111 45 112.68 45.69 114.08 47'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

@media (forced-colors: active) {
  .dh {
    background: CanvasText;
  }
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------------------------------------------------------------- type */
.display {
  font-family: var(--sans);
  font-weight: 600;
  line-height: var(--lh-tight);
  text-wrap: balance;
}

/* Gilda sets wide when it is large; Arabic is never letter-spaced (it would
   break the joins), so only the English page tightens its display lines */
html[lang="en"] .display {
  letter-spacing: -0.015em;
}

/* Every section: a heading that carries its weight and one plain line. */
.sec-head {
  display: grid;
  gap: var(--s1);
  margin-block-end: var(--s6);
}

.sec-head h2 {
  font-size: var(--t-h2);
}

.sub {
  font-size: var(--t-body);
  color: var(--muted);
  text-wrap: pretty;
}

/* the heading's words rise out of a mask (see reveals) */
.mask {
  display: block;
  overflow: hidden;
  padding-block: 0.1em 0.22em;
  margin-block: -0.1em -0.22em;
}

.mask > span {
  display: block;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  height: 52px;
  padding-inline: var(--s5);
  border-radius: var(--r-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-size: var(--t-body);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    scale var(--t-press) var(--ease),
    background-color var(--t-state) var(--ease),
    box-shadow var(--t-state) var(--ease);
}

.btn .ico {
  width: 20px;
  height: 20px;
}

.btn:active {
  scale: 0.96;
}

.b1 {
  background: var(--accent);
  color: var(--on-accent);
}

.b2 {
  box-shadow: inset 0 0 0 1.5px var(--fg);
}

@media (hover: hover) {
  .b1:hover {
    background: color-mix(in srgb, var(--accent) 88%, #000);
  }
  .b2:hover {
    background: var(--surface);
  }
}

.stack {
  display: grid;
  margin-block-start: var(--s6);
}

/* toolbar buttons: a glyph in a 44px target, pressed state on the finger */
.tb {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition:
    scale var(--t-press) var(--ease),
    background-color var(--t-state) var(--ease);
}

.tb:active {
  scale: 0.96;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}

.tb .ico {
  width: 24px;
  height: 24px;
}

/* the language: a small ringed tag in the same 44px target */
.lang span {
  min-width: 30px;
  height: 30px;
  padding-inline: var(--s2);
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: var(--t-caption);
  font-weight: 600;
  line-height: 1;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

/* ---------------------------------------------------------------- loader */
/* Once per visit, typographic. It clears itself in CSS too: no script, no wall. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s2);
  text-align: center;
  animation: loader-out 500ms var(--ease) 2.6s forwards;
}

.seen .loader {
  display: none;
}

.loader.is-done {
  animation: loader-out 450ms var(--ease) forwards;
}

/* the lockup writes itself on, left to right, the way script is drawn */
.loader-logo {
  width: min(66vw, 280px);
  height: auto;
  animation: write 1040ms var(--ease-io) 80ms both;
}

@keyframes write {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0.4;
  }
  30% {
    opacity: 1;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* the same rise without the blur, for many things at once (the order's
   rows): a filter on each would repaint every row on every frame */
@keyframes rise-lite {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes loader-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader {
    display: none;
  }
}

/* ---------------------------------------------------------------- header */
/* Flat, on the page's ground, scrolls away with the hero. */
.site-header {
  position: relative;
  z-index: 40;
}

.header-in {
  height: 68px;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gut) calc(var(--gut) - 10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 44px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.brand b {
  font-size: var(--t-title);
  font-weight: 600;
  line-height: 1.2;
}

.d-links {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0;
}

.head-order {
  display: none;
}

/* the menu: hangs from whichever bar opened it, solid, above everything */
.nav-sheet {
  position: fixed;
  z-index: 50;
  inset-block-start: calc(env(safe-area-inset-top, 0px) + 76px);
  inset-inline-end: 12px;
  min-width: 14rem;
  padding: var(--s2);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--sh-3);
  display: grid;
  gap: 2px;
  transform-origin: calc(50% + var(--flow) * -40%) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  filter: blur(4px);
  transition:
    opacity 180ms var(--ease),
    transform 320ms var(--ease),
    filter 240ms var(--ease),
    visibility 0s 320ms;
}

.nav-sheet.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition:
    opacity 200ms var(--ease),
    transform 420ms var(--spring),
    filter 240ms var(--ease),
    visibility 0s;
}

.nav-sheet a {
  min-height: 48px;
  padding-inline: var(--s3);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--t-body);
  font-weight: 600;
  transition: background-color var(--t-state) var(--ease);
}

.nav-sheet a:active {
  background: var(--bg);
}

.nav-sheet .ico {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.nav-sheet .nav-lang {
  margin-block-start: var(--s1);
  border-block-start: 1px solid var(--line);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  color: var(--muted);
}

/* ---------------------------------------------------------------- the island */
/* One capsule of liquid glass (radius = half its height). Script brings it in
   once the hero has gone and keeps it; until then it is invisible and inert.
   It changes face: home (name, Instagram, menu) or, over the menu, the menu's
   own categories with a pill that slides to the one on screen. */
.island {
  position: fixed;
  z-index: 44;
  inset-block-start: calc(env(safe-area-inset-top, 0px) + 10px);
  inset-inline: 12px;
  max-width: 30rem;
  margin-inline: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px) scale(0.9);
  transform-origin: 50% 0;
  transition:
    opacity 200ms var(--ease-io),
    transform 320ms cubic-bezier(0.4, 0, 1, 1);
}

/* arriving: rises into place on a spring, and the glass itself gives a small
   liquid wobble (wider and flatter, then settling) as it lands */
.island.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition:
    opacity 260ms var(--ease),
    transform 760ms var(--spring-pop);
}

.island.is-on .isl-in {
  animation: liquid 820ms var(--ease) both;
}

@keyframes liquid {
  0% {
    scale: 0.94 0.86;
  }
  38% {
    scale: 1.035 0.95;
  }
  68% {
    scale: 0.992 1.015;
  }
  100% {
    scale: 1 1;
  }
}

.isl-in {
  position: relative;
  height: 56px;
  border-radius: 28px;
  background: color-mix(in srgb, #fff8e6 58%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.03);
  backdrop-filter: blur(22px) saturate(190%) brightness(1.03);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px rgba(43, 37, 21, 0.05),
    0 0 0 0.5px rgba(43, 37, 21, 0.16),
    var(--sh-2);
  transition:
    background-color 400ms var(--ease-io),
    box-shadow 400ms var(--ease-io),
    color 400ms var(--ease-io);
}

/* the light that catches the top of the glass, and its rim */
.isl-in::before,
.isl-in::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.isl-in::before {
  background:
    radial-gradient(120% 110% at 20% -30%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 55%),
    radial-gradient(70% 90% at 92% 130%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 60%);
}

.isl-in::after {
  padding: 1px;
  background: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.12) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.45)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* over the espresso band the glass turns dark with it */
html.on-dark .isl-in {
  background: color-mix(in srgb, #2b2515 62%, transparent);
  color: var(--cream);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.16),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2),
    0 0 0 0.5px rgba(255, 255, 255, 0.14),
    var(--sh-2);
}

html.on-dark .isl-in::before {
  opacity: 0.25;
}

@media (prefers-reduced-transparency: reduce) {
  .isl-in {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  html.on-dark .isl-in {
    background: var(--ink);
  }
}

/* the two faces share the capsule and cross-fade: opacity, scale and blur */
.isl-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  transition:
    opacity 280ms var(--ease-icon),
    scale 280ms var(--ease-icon),
    filter 280ms var(--ease-icon),
    visibility 0s;
}

.island.is-tabs .isl-home,
.island:not(.is-tabs) .isl-tabs {
  opacity: 0;
  scale: 0.96;
  filter: blur(4px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 200ms var(--ease-icon),
    scale 200ms var(--ease-icon),
    filter 200ms var(--ease-icon),
    visibility 0s 200ms;
}

.isl-home {
  padding-inline: var(--s2) var(--s1);
  gap: var(--s2);
}

.isl-brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-width: 0;
  min-height: 44px;
  padding-inline-end: var(--s2);
}

.isl-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.isl-brand b {
  font-size: var(--t-body);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.isl-links {
  display: none;
}

.isl-acts {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin-inline-start: auto;
}

/* the one thing the shop is for, always within reach: a filled disc on a
   phone (concentric inside the capsule), the words spelled out on a laptop.
   While the order itself floats over the menu, this steps aside rather than
   filling a second thing in the accent on the same screen. */
/* stepping aside means leaving no gap behind: it closes to nothing and the
   two quiet icons take the space back */
html.order-up .isl-order {
  width: 0;
  margin-inline-start: calc(var(--s1) * -1);
  opacity: 0;
  scale: 0.6;
  pointer-events: none;
}

.isl-order {
  overflow: hidden;
  transition:
    opacity 200ms var(--ease-icon),
    scale 320ms var(--spring),
    width 320ms var(--ease),
    margin-inline-start 320ms var(--ease);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  position: relative;
}

.isl-order span {
  display: none;
}

.isl-order .ico {
  width: 20px;
  height: 20px;
}

/* the disc is drawn at 40, but the thumb gets the full 44 */
.isl-order::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
}

.isl-tabs {
  padding: var(--s2);
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: space-between;
}

.isl-tabs::-webkit-scrollbar {
  display: none;
}

/* the tabs and the pill on one track, as wide as the whole row (it may be
   wider than the capsule and scroll) */
.isl-track {
  position: relative;
  flex: 1 0 auto;
  min-width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 2px;
}

.isl-tab {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  height: 40px;
  padding-inline: var(--s3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: var(--t-small);
  font-weight: 600;
  white-space: nowrap;
  transition:
    color var(--t-state) var(--ease),
    scale var(--t-press) var(--ease);
}

.isl-tab:active {
  scale: 0.96;
}

.isl-tab .ico {
  width: 18px;
  height: 18px;
}

/* the pill under the current category: a full-width shape cut down to the
   current tab with an inset clip (paint only, no layout), eased on a spring */
.isl-ind,
.isl-over {
  position: absolute;
  inset-block-start: 0;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
  clip-path: inset(0 var(--r, 100%) 0 var(--l, 0px) round 20px);
  transition: clip-path 520ms var(--spring);
}

.isl-ind {
  background: var(--ink);
  transition:
    clip-path 520ms var(--spring),
    background-color 400ms var(--ease-io);
}

/* the same row again, in the pill's colour, showing only where the pill is:
   a label is never half-legible while the pill travels across it */
.isl-over {
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 2px;
  color: var(--cream);
}

.isl-tabs.no-anim .isl-ind,
.isl-tabs.no-anim .isl-over {
  transition: none;
}

html.on-dark .isl-ind {
  background: var(--cream);
}

html.on-dark .isl-over {
  color: var(--ink);
}

/* where content meets the island, it fades rather than hitting a line */
.edge {
  position: fixed;
  z-index: 43;
  inset-inline: 0;
  inset-block-start: 0;
  height: calc(env(safe-area-inset-top, 0px) + 84px);
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--bg) 94%, transparent) 25%,
    color-mix(in srgb, var(--bg) 0%, transparent)
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms var(--ease-io);
}

html.isl-up .edge {
  opacity: 1;
}

html.on-dark .edge {
  background: linear-gradient(to bottom, rgba(43, 37, 21, 0.9) 25%, rgba(43, 37, 21, 0));
}

/* ---------------------------------------------------------------- live status */
/* The shop's status as a line, not a badge: a short rule and the words, the
   way a sign-painter would set it. The rule carries the state (green open,
   grey closed); the words say it too, so colour is never the only cue. */
.live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.live i {
  width: 22px;
  height: 2px;
  border-radius: 1px;
  flex: none;
  background: var(--muted);
}

.live[data-state="open"] i {
  background: var(--open);
}

.live .live-m {
  width: 15px;
  height: 15px;
  stroke-width: 1.6;
  color: var(--muted);
}

/* ---------------------------------------------------------------- hero */
/* Deck p05: status, the question, the cup's line, the swirl, two buttons. */
.hero-copy {
  padding: var(--s2) var(--gut) 0;
}

/* The name, set the way it is on their own cups: caps, lightly tracked. The
   copy stays in its natural case; only the rendering is capital, and Arabic
   is untouched by it. Two words to a line want tighter leading than a
   sentence does. */
.hero-h {
  font-size: var(--t-h1);
  margin-block-start: var(--s5);
  line-height: 1.06;
  text-transform: uppercase;
}

html[lang="en"] .hero-h {
  letter-spacing: 0.02em;
}

.hero-tag {
  margin-block-start: var(--s2);
  font-size: var(--t-lead);
  line-height: var(--lh-snug);
  color: var(--muted);
}

/* The studio shot is multiplied into its own vanilla ground: its white goes,
   its floor shadow stays. */
.hero-stage {
  position: relative;
  aspect-ratio: 390 / 430;
  margin-block-start: var(--s2);
  background: var(--studio);
  isolation: isolate;
  overflow: hidden;
}

html[data-theme="night"] .hero-stage {
  margin-inline: var(--gut);
  border-radius: var(--r-lg);
}

.hero-stage img.poster,
.hero-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 67%;
  mix-blend-mode: multiply;
}

/* "Scroll down, it builds. Scroll up, it sinks." --build (0 to 1) comes from
   the scroll; without script, or with reduced motion, the swirl stays whole. */
.hero-stage img.poster {
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 9%);
  mask-image: linear-gradient(to top, transparent 0, #000 9%);
}

@media (max-width: 63.99rem) {
  .js .hero-stage img.poster {
    --edge: calc(74% + var(--build, 0) * 34%);
    /* the same scroll that builds the swirl leans the cup in a little */
    transform: scale(calc(1 + var(--build, 0) * 0.035)) translateY(calc(var(--build, 0) * -6px));
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 9%, #000 var(--edge), transparent calc(var(--edge) + 6%));
    mask-image: linear-gradient(to top, transparent 0, #000 9%, #000 var(--edge), transparent calc(var(--edge) + 6%));
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-stage img.poster {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.hero-stage video {
  opacity: 0;
  transition: opacity 480ms var(--ease);
}

.hero-stage.film-ready video {
  opacity: 1;
}

.hero-stage.film-ready img.poster {
  opacity: 0;
}

/* side by side while the two labels fit, stacked when they do not: English
   runs longer than Arabic, and at 320px "Directions" was being cut off. The
   order button keeps the larger share of the row wherever both fit. */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  padding: var(--s4) var(--gut) 0;
}

.hero-cta .btn {
  flex: 1 1 9.5rem;
}

.hero-cta .b1 {
  flex-grow: 1.35;
}

.hero-cta .btn {
  height: 56px;
}

.hero-cats {
  display: none; /* laptop only: on a phone the circles live with the menu */
}

/* A tablet held upright gets the phone's hero, wider. Its words keep to the
   page's column like every section below them, and the cup is held to what
   leaves the order button on the first screen. The film is drawn whole
   (contain: the scroll-built swirl is masked by the frame's height, so the
   frame and the picture must stay the same height), and its sides fade into
   the page, which is the same vanilla as its studio ground: two still
   gradients laid over the edges, not a mask, which would be redrawn over the
   film on every frame of the scroll. */
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .hero-copy,
  .hero-cta {
    max-width: var(--page);
    margin-inline: auto;
  }

  .hero-stage {
    --stage-h: min(calc(100vw * 430 / 390), max(20rem, calc(100svh - 330px)));
    --half: calc(var(--stage-h) * 195 / 430); /* half the picture's width */
    aspect-ratio: auto;
    height: var(--stage-h);
  }

  .hero-stage::before,
  .hero-stage::after {
    content: "";
    position: absolute;
    inset-block: 0;
    z-index: 1;
    width: 60px;
    pointer-events: none;
  }

  .hero-stage::before {
    left: calc(50% - var(--half) - 4px);
    background: linear-gradient(to right, var(--studio) 4px, transparent);
  }

  .hero-stage::after {
    right: calc(50% - var(--half) - 4px);
    background: linear-gradient(to left, var(--studio) 4px, transparent);
  }

  .hero-stage img.poster,
  .hero-stage video {
    object-fit: contain;
  }
}

/* The hero arrives once the loader clears: the words rise in reading order,
   the cup settles, the buttons land last. (Script sets .is-ready; if it never
   runs, everything shows after a moment anyway.) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > *,
  .js .hero-cta > *,
  .js .hero-stage {
    opacity: 0;
    animation: show-late 0s 3s forwards;
  }

  .js.is-ready .hero-copy > * {
    animation: rise 900ms var(--ease) both;
  }

  /* the question slides up out of its mask, like every title on the page */
  .js.is-ready .hero-copy > .hero-h {
    opacity: 1;
    animation: none;
  }

  .js.is-ready .hero-h .mask > span {
    animation: mask-up 1100ms var(--ease) 80ms both;
  }

  .js.is-ready .hero-copy > .hero-tag {
    animation-delay: 180ms;
  }

  .js.is-ready .hero-stage {
    animation: stage-in 1300ms var(--ease) 140ms both;
  }

  .js.is-ready .hero-cta > * {
    animation: land 900ms var(--spring-pop) 420ms both;
  }

  .js.is-ready .hero-cta > :nth-child(2) {
    animation-delay: 500ms;
  }
}

@keyframes mask-up {
  from {
    transform: translateY(108%);
  }
  to {
    transform: none;
  }
}

@keyframes show-late {
  to {
    opacity: 1;
  }
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes land {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------- sections */
.section {
  padding-block-start: var(--section);
}

/* ---------------------------------------------------------------- circles */
/* Deck p06: their Instagram story highlights as the menu's categories. In the
   page they stay where the menu begins; once the menu scrolls, the island
   carries the categories instead, so they never stack on top of each other. */
.cats {
  display: flex;
  gap: var(--s4);
}

.cat {
  display: grid;
  justify-items: center;
  gap: var(--s2);
  width: 68px;
  flex: none;
}

.ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ring);
  transition:
    box-shadow var(--t-state) var(--ease),
    scale var(--t-press) var(--ease);
}

.cat:active .ring {
  scale: 0.96;
}

.cat[aria-current="true"] .ring {
  box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 5px var(--accent);
}

.ring .ico {
  width: 28px;
  height: 28px;
}

/* a tap: the ring gives and springs back, its icon draws itself */
.cat.drawing .ring {
  animation: ring-pop 640ms var(--spring-pop) both;
}

.cat.drawing .ring .ico path {
  stroke-dasharray: 1;
  animation: draw 1000ms var(--ease-io) 60ms both;
}

@keyframes ring-pop {
  from {
    transform: scale(0.86);
  }
  to {
    transform: scale(1);
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.lbl {
  font-size: var(--t-caption);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--muted);
  transition: color var(--t-state) var(--ease);
}

.cat[aria-current="true"] .lbl {
  color: var(--fg);
}

.cats-bar .cats {
  max-width: var(--page);
  margin-inline: auto;
  padding: var(--s2) var(--gut) var(--s4);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-padding-inline: var(--gut);
}

.cats-bar .cats::-webkit-scrollbar {
  display: none;
}

/* the circles and the island's tabs are one control in two places: as the
   menu reaches the top of the screen the island takes it over, and the
   circles hand it across rather than sitting under it */
.js .cats-bar {
  transition:
    opacity 260ms var(--ease),
    transform 320ms var(--ease);
}

html.isl-tabbed .cats-bar {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
}

/* ---------------------------------------------------------------- menu */
/* a #cat- link (shared, or without script) lands below the island */
.menu-group {
  scroll-margin-top: 88px;
}

/* a sideways pull belongs to the menu; up and down, and a pinch, stay the
   browser's */
.menu-list {
  touch-action: pan-y pinch-zoom;
}

/* under a finger: nothing eases in between, so the category tracks it 1:1 */
.js .menu-group.is-pull {
  transform: translate3d(var(--pull-x, 0px), 0, 0);
  opacity: calc(1 - var(--pull-p, 0) * 0.26);
  will-change: transform;
}

/* let go: it springs back, or carries the throw on into the handover */
.js .menu-group.is-pull-back {
  transition:
    transform 480ms var(--spring),
    opacity 260ms var(--ease);
}

.grp {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  margin-block: var(--s6) var(--s4);
}

.grp b {
  font-size: var(--t-title);
  font-weight: 600;
  line-height: var(--lh-snug);
}

.grp span {
  font-size: var(--t-caption);
  font-weight: 400;
  color: var(--muted);
}

/* the other language's name, as a quiet label. Only a Latin one is tracked
   and capitalised: letter-spacing would break the Arabic joins. */
.grp span.en,
.add-h span.en {
  font-size: var(--t-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* The shelf: two cups a row, each standing on its own soft tile. */
.shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s7) var(--s3);
}

@media (min-width: 48rem) {
  .shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  min-width: 0;
}

.card-open {
  display: grid;
  width: 100%;
  text-align: start;
}

.card-ph {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
  transition: scale var(--t-press) var(--ease);
}

/* the section's best seller today (best.js): a quiet espresso chip in the
   photo's corner, the same words in the item sheet */
.card-best {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: var(--t-micro);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.18);
  pointer-events: none;
}

.sheet-best {
  justify-self: start;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: var(--t-caption);
  font-weight: 700;
}

.sheet-best[hidden] {
  display: none;
}

.card-open:active .card-ph {
  scale: 0.96;
}

.card-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

/* the studio set is cut out and framed alike: whole, with its own shadow */
.card-ph img.cut,
.sheet-photo img.cut {
  object-fit: contain;
  mix-blend-mode: normal;
}

@media (hover: hover) and (pointer: fine) {
  .card-ph img.cut {
    transition: transform 560ms var(--spring);
  }
  .card-open:hover .card-ph img.cut {
    transform: translateY(-4%) scale(1.04);
  }
}

/* no photo yet: the category's line icon on the same tile every other card
   stands on, so the shelf reads as one material and only the icon says the
   photo is still to come */
.thumb-ico {
  width: 40px;
  height: 40px;
  color: color-mix(in srgb, var(--muted) 70%, var(--bg));
  stroke-width: 1.5;
}

.card-tx {
  display: grid;
  gap: 2px;
  margin-block-start: var(--s3);
  padding-inline: 2px;
  min-width: 0;
}

.card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
}

.card-name {
  min-width: 0;
  font-size: var(--t-body);
  font-weight: 600;
  line-height: var(--lh-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* the price is data, not emphasis: full ink at the real weight of the face
   the digits are set in, rather than a faked bold in a quieter colour */
.card-price {
  flex: none;
  font-size: var(--t-ui);
  font-weight: 400;
  color: var(--fg);
}

/* a limited item running low: how many are left, in the brand red */
.card-left {
  font-size: var(--t-caption);
  font-weight: 700;
  color: var(--accent);
}

.card-sub {
  font-size: var(--t-caption);
  line-height: var(--lh-snug);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-soldout {
  flex: none;
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--accent);
}

.card[data-soldout="true"] .card-ph {
  opacity: 0.55;
}

/* The + : a small glass disc in the tile's corner, concentric with it
   (radius 17 + inset 8 = the tile's 24). Its tap target is 44px. */
.add {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: var(--s2);
  margin-block-start: calc(100% - 42px); /* measured on the card's width = the tile */
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: none; /* without script the order is the WhatsApp button */
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, #ffffff 70%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 0 0 0.5px rgba(43, 37, 21, 0.14),
    0 4px 12px -4px rgba(43, 37, 21, 0.35);
  transition:
    scale var(--t-press) var(--ease),
    background-color var(--t-state) var(--ease),
    color var(--t-state) var(--ease);
}

.add::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
}

.js .add {
  display: grid;
}

.add:active {
  scale: 0.96;
}

.add .add-plus,
.add .add-n {
  position: absolute;
  transition:
    opacity 220ms var(--ease-icon),
    scale 220ms var(--ease-icon),
    filter 220ms var(--ease-icon);
}

.add .add-plus {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.add .add-n {
  font-size: var(--t-small);
  font-weight: 700;
  opacity: 0;
  scale: 0.25;
  filter: blur(4px);
}

.add.has {
  background: var(--accent);
  color: var(--on-accent);
}

.add.has .add-n {
  opacity: 1;
  scale: 1;
  filter: none;
}

.add.has .add-plus {
  opacity: 0;
  scale: 0.25;
  filter: blur(4px);
}

.add.is-popping,
.chip.is-popping {
  animation: pop 480ms var(--spring-pop);
}

@keyframes pop {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

/* toppings and milk choices: chips, each one a line in the order */
.addons {
  margin-block-start: var(--s8);
  padding-block-start: var(--s6);
  border-block-start: 1px solid var(--line);
}

.add-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
}

.add-h b {
  font-size: var(--t-title);
  font-weight: 600;
  line-height: var(--lh-snug);
}

.add-h span {
  font-size: var(--t-caption);
  color: var(--muted);
}

.add-grp {
  margin-block-start: var(--s5);
}

.add-t {
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--muted);
}

.add-grp ul {
  list-style: none;
  margin-block-start: var(--s2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  height: 40px;
  padding-inline: var(--s4);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--t-small);
  transition:
    background-color var(--t-state) var(--ease),
    box-shadow var(--t-state) var(--ease),
    scale var(--t-press) var(--ease);
}

.chip .num {
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--muted);
}

.chip:active {
  scale: 0.96;
}

.chip .add-n {
  display: none;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 11px;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--t-micro);
  font-weight: 700;
}

.chip.has {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.chip.has .add-n {
  display: inline-grid;
}

.add-note {
  margin-block-start: var(--s4);
  font-size: var(--t-caption);
  color: var(--muted);
}

html[dir="ltr"] .lnk .ico {
  transform: scaleX(-1);
}

/* ---------------------------------------------------------------- the order */
/* Without script: the deck's one floating button, riding with the menu. */
.basket {
  position: sticky;
  inset-block-end: calc(env(safe-area-inset-bottom, 0px) + var(--s4));
  z-index: 20;
  display: grid;
  width: min(100% - 2 * var(--gut), var(--page) - 2 * var(--gut));
  margin: var(--s6) auto 0;
}

.basket-direct {
  height: 56px;
  border-radius: 28px;
  box-shadow: var(--sh-2);
}

.basket-card {
  display: none;
}

/* With script it floats: the order button while it is empty and the menu is
   on screen, the order itself (everywhere) once something is in it. */
.js .basket {
  position: fixed;
  inset-inline: 12px;
  inset-block-end: calc(env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 40;
  width: auto;
  max-width: 30rem;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 260ms var(--ease),
    transform 620ms var(--spring);
}

.js .basket.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.js .basket:not([data-state="empty"]) .basket-card {
  display: block;
}

.js .basket:not([data-state="empty"]) .basket-direct {
  display: none;
}

/* nothing ordered yet: a pill the width of its own words, floating clear of
   the cards. Once something is in the order, the espresso capsule takes the
   full width, and the change of size is itself the signal. */
.js .basket[data-state="empty"] {
  justify-items: center;
}

.js .basket[data-state="empty"] .basket-direct {
  height: 52px;
  padding-inline: var(--s6);
  border-radius: 26px;
}

/* a capsule of espresso glass, the same shape as the island */
.basket-card {
  position: relative;
  /* the up-and-down drag on the order is the order's, not the page's;
     without this the browser claims it as a scroll and cancels the pointer
     stream half way through the pull */
  touch-action: pan-x pinch-zoom;
  border-radius: 30px;
  background: color-mix(in srgb, #2b2515 90%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  color: var(--cream);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    0 0 0 0.5px rgba(0, 0, 0, 0.3),
    var(--sh-3);
}

.basket {
  --bar-h: 60px;
}

.basket-bar {
  width: 100%;
  height: var(--bar-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  column-gap: var(--s3);
  padding-inline: 10px var(--s5);
  color: inherit;
  border-radius: 30px;
}

/* what is in it: the last three cups, overlapping */
.basket-faces {
  display: flex;
  flex: none;
}

.face {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 0 0 2px #2b2515;
  animation: face-in 520ms var(--spring-pop) both;
}

.face + .face {
  margin-inline-start: -14px;
}

.face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  scale: 1.28; /* the studio frame has air around the cup; fill the disc */
}

.face .ico {
  width: 18px;
  height: 18px;
}

@keyframes face-in {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.basket-label {
  flex: 1;
  min-width: 0;
  display: grid;
  text-align: start;
  line-height: 1.25;
}

.basket-label b {
  font-size: var(--t-body);
  font-weight: 600;
}

.basket-count {
  font-size: var(--t-caption);
  color: var(--cream-muted);
}

/* the total, the bar's biggest thing. Gilda has one weight (and faked bold
   is switched off), so its weight comes from a hairline stroke in its own
   colour, drawn under the fill */
.basket-sum {
  font-size: var(--t-title);
  font-weight: 600;
  line-height: 1;
  -webkit-text-stroke: 0.035em currentColor;
  paint-order: stroke fill;
}

.basket-sum.is-kicking,
.basket-faces.is-kicking {
  animation: kick 560ms var(--spring-pop);
}

@keyframes kick {
  from {
    transform: scale(1.18);
  }
  to {
    transform: scale(1);
  }
}

.basket-chev {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transform: rotate(90deg);
  transition: transform 460ms var(--spring);
}

.basket[data-state="open"] .basket-chev {
  transform: rotate(-90deg);
}

/* the list grows out of the bar, from its bottom edge; solid, not glass */
.basket-body {
  position: absolute;
  inset-inline: 0;
  inset-block-end: calc(100% + var(--s3));
  /* open, it takes the screen up to just under the top: the bar below it,
     a little room above */
  max-height: min(calc(100svh - var(--bar-h) - 12px - var(--s3) - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px) - 28px), 46rem);
  display: flex;
  flex-direction: column;
  padding: var(--s5) var(--s4) var(--s4);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--line), var(--sh-3);
  transform-origin: 50% 100%;
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  visibility: hidden;
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    opacity 180ms var(--ease),
    transform 320ms var(--ease),
    visibility 0s 320ms;
}

/* under a finger the panel is present and follows it: no transition in the
   way, and the travel drives how open it looks. Pulling it open lifts it out
   of the bar; pushing it closed takes it back down with the thumb. */
.basket.is-pulling .basket-body {
  visibility: visible;
  pointer-events: none;
  transition: none;
}

/* it becomes solid in the first half of the pull, so the order is never a
   sheet of glass with the menu reading through it */
.basket.is-pulling[data-pull="open"] .basket-body {
  opacity: min(1, calc(var(--pull-p, 0) * 2.4));
  transform: translateY(calc((1 - var(--pull-p, 0)) * 24px)) scale(calc(0.95 + var(--pull-p, 0) * 0.05));
}

.basket.is-pulling[data-pull="close"] .basket-body {
  opacity: calc(1 - var(--pull-p, 0) * 0.85);
  transform: translateY(var(--pull, 0px)) scale(calc(1 - var(--pull-p, 0) * 0.04));
}

/* the capsule itself leans with the pull, so the two read as one piece */
.basket.is-pulling .basket-card {
  transform: translateY(calc(var(--pull, 0px) * 0.06));
}

.basket[data-state="open"] .basket-body {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 220ms var(--ease),
    transform 560ms var(--spring),
    visibility 0s;
}

.basket-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding-inline: var(--s1);
  margin-block-end: var(--s3);
}

.basket-head b {
  font-size: var(--t-title);
  line-height: var(--lh-snug);
}

.basket-head span {
  font-size: var(--t-caption);
  color: var(--muted);
}

/* only the list scrolls; the note, the total and the send button stay put */
/* a list with more to show scrolls itself; one that fits takes no swipe at
   all, so the swipe cannot fall through to the menu behind it */
.basket-list:not(.can-scroll),
.bk-scroll:not(.can-scroll) {
  touch-action: none;
}

.basket-list {
  touch-action: pan-y; /* the list keeps its own scroll */
  list-style: none;
  display: grid;
  align-content: start;
  gap: var(--s1);
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-inline: calc(var(--s1) * -1);
  padding-inline: var(--s1);
  /* the fade is on whichever edge has more list behind it, and on neither
     when the whole order fits (a fade there reads as a rendering fault) */
  --fade-t: 0px;
  --fade-b: 0px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--fade-t),
    #000 calc(100% - var(--fade-b)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    #000 var(--fade-t),
    #000 calc(100% - var(--fade-b)),
    transparent 100%
  );
}

.basket-list.can-scroll {
  --fade-b: 20px;
}

.basket-list.can-scroll:not(.at-top) {
  --fade-t: 20px;
}

.basket-list.can-scroll.at-end {
  --fade-b: 0px;
}

.basket-head,
.basket-field,
.basket-total,
.basket-note,
.basket-send {
  flex: none;
}

.basket-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s3);
  padding: var(--s1);
}

.basket.is-opening .basket-row {
  animation: rise-lite 560ms var(--ease) both;
  animation-delay: calc(min(var(--n, 1) - 1 - var(--i), 6) * 55ms + 180ms);
}

.basket-row .ph {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface);
  color: var(--muted);
}

.basket-row .ph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  scale: 1.15;
}

.basket-row .ph .ico {
  width: 20px;
  height: 20px;
}

/* the name over its price, both starting at the same edge: the price sets its
   own direction for the numerals, so the grid places it, not text-align */
.basket-row .tx {
  display: grid;
  justify-items: start;
  gap: 2px;
}

.basket-row .nm {
  font-size: var(--t-ui);
  font-weight: 600;
  line-height: var(--lh-snug);
}

.basket-row .pr {
  font-size: var(--t-caption);
  color: var(--muted);
}

/* a line's own add-ons: listed under its name, chosen right under the row */
.basket-row .ad {
  font-size: var(--t-caption);
  font-weight: 600;
  line-height: var(--lh-snug);
  color: var(--addon);
}

/* the add-ons: the board's warm orange-red, filled, so no one misses that a
   cup can take toppings or a milk */
.bk-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  margin-block-start: 4px;
  padding-inline: 9px 14px;
  border-radius: 999px;
  background: var(--addon);
  color: var(--cream);
  box-shadow: 0 3px 10px -3px color-mix(in srgb, var(--addon) 70%, transparent);
  font-size: var(--t-caption);
  font-weight: 700;
  transition-property: background-color, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

/* the panel opening: each row's button pops in just after its row, and its
   glow rings out once */
@media (prefers-reduced-motion: no-preference) {
  .basket.is-opening .bk-add {
    animation:
      bk-add-pop 620ms var(--spring-pop) both,
      bk-add-glow 1100ms ease-out both;
    animation-delay: calc(min(var(--i, 0), 6) * 45ms + 360ms);
  }
}

@keyframes bk-add-pop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
}

@keyframes bk-add-glow {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--addon) 55%, transparent);
  }
  100% {
    box-shadow: 0 0 0 12px color-mix(in srgb, var(--addon) 0%, transparent);
  }
}

.bk-add .ico {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.bk-add.on {
  background: var(--fg);
  color: var(--bg);
  box-shadow: none;
}

.bk-add:active,
.basket-adds button:active {
  scale: 0.96;
}

.basket-adds {
  display: grid;
  gap: var(--s2);
  margin: 2px var(--s1) var(--s3);
  padding: var(--s3);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.basket-adds.enter {
  animation: rise 240ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.basket-adds h4 {
  font-size: var(--t-ui);
  font-weight: 600;
}

.basket-adds .ga {
  margin-block-start: var(--s1);
  font-size: var(--t-caption);
  color: var(--muted);
}

.basket-adds .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* an add-on: the pill as it always was; once chosen, a − and a + slide out
   of its two ends. Their width grows, so the pills beside it glide over
   rather than jump. */
.adc {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: var(--t-small);
  transition-property: background-color, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.adc:not([data-n="0"]) {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: none;
}

.ad-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding-inline: 13px;
  border-radius: 999px;
  color: inherit;
}

.ad-main small {
  font-size: var(--t-caption);
  opacity: 0.8;
}

.ad-n:empty {
  display: none;
}

.ad-n {
  font-weight: 600;
}

.ad-dec,
.ad-inc {
  flex: none;
  display: grid;
  place-items: center;
  width: 0;
  height: 30px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(252, 242, 211, 0.18);
  color: var(--on-accent);
  opacity: 0;
  scale: 0.5;
  pointer-events: none;
  transition:
    width 200ms cubic-bezier(0.23, 1, 0.32, 1),
    margin 200ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 150ms ease-out,
    scale 200ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 150ms ease-out;
}

.adc:not([data-n="0"]) .ad-dec,
.adc:not([data-n="0"]) .ad-inc {
  width: 30px;
  opacity: 1;
  scale: 1;
  pointer-events: auto;
}

.adc:not([data-n="0"]) .ad-dec {
  margin-inline-start: 5px;
}

.adc:not([data-n="0"]) .ad-inc {
  margin-inline-end: 5px;
}

.ad-dec .ico,
.ad-inc .ico {
  width: 15px;
  height: 15px;
}

.ad-inc:disabled {
  opacity: 0.35 !important;
}

.ad-dec:active,
.ad-inc:active {
  scale: 0.9;
}

@media (hover: hover) and (pointer: fine) {
  .adc:not([data-n="0"]) .ad-dec:hover,
  .adc:not([data-n="0"]) .ad-inc:not(:disabled):hover {
    background: rgba(252, 242, 211, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ad-dec,
  .ad-inc {
    transition-property: opacity, background-color;
  }
  .ad-dec,
  .ad-inc {
    scale: 1;
  }
}

.basket-adds .done {
  justify-self: end;
  min-height: 40px;
  margin-block-start: var(--s1);
  padding-inline: var(--s5);
  border-radius: 12px;
  background: var(--fg);
  color: var(--bg);
  font-size: var(--t-ui);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .basket-adds {
    animation: none;
  }
}

.qty {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.qty button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: scale var(--t-press) var(--ease), background-color var(--t-state) var(--ease);
}

.qty button:active {
  scale: 0.96;
  background: var(--bg);
}

.qty .ico {
  width: 16px;
  height: 16px;
}

.qty output {
  min-width: 20px;
  text-align: center;
  font-size: var(--t-small);
  font-weight: 700;
}

/* a line for the shop: "no ice", a pickup time */
.basket-field {
  display: grid;
  gap: var(--s1);
  margin-block-start: var(--s4);
  padding-inline: var(--s1);
}

.basket-field span {
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--muted);
}

.basket-field input {
  height: 48px;
  padding-inline: var(--s4);
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--t-body); /* 16px: iOS does not zoom the page */
  transition: box-shadow var(--t-state) var(--ease);
}

.basket-field input::placeholder {
  color: var(--muted); /* at full strength: 4.98:1 on the field, not 3.07:1 */
}

.basket-field input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--fg);
}

.basket-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-block-start: var(--s4);
  padding: var(--s4) var(--s1) var(--s3);
  border-block-start: 1px solid var(--line);
  font-weight: 600;
}

.basket-total b {
  font-size: var(--t-h3);
  font-weight: 400;
  line-height: var(--lh-tight);
}

.basket-note {
  padding: 0 var(--s1) var(--s3);
  font-size: var(--t-caption);
  color: var(--muted);
}

.basket-send {
  width: 100%;
  height: 56px;
  border-radius: 28px;
}

/* the cup on its way into the order (physical coordinates: measured on screen) */
.flyer {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}

.flyer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform, opacity;
}

/* ---------------------------------------------------------------- almond */
/* Deck p07: their photo, their caption word for word, then what customers said. */
.al-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.al-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 6;
  object-fit: cover;
}

.al-photo img.cut {
  object-fit: contain;
  padding-block: var(--s4) var(--s1);
}

.al-h {
  font-size: var(--t-h2);
  margin-block-start: var(--s6);
}

.al-q {
  margin-block-start: var(--s3);
  padding-inline-end: var(--s8);
}

.al-q p {
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: var(--lh-body);
  text-wrap: pretty; /* the closing guillemet never lands alone on a line */
}

.al-q small {
  display: block;
  margin-block-start: var(--s1);
  font-size: var(--t-caption);
  color: var(--muted);
}

.rvh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-block-start: var(--s7);
}

.rvh h3 {
  font-size: var(--t-title);
  font-weight: 600;
}

.rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-inline: var(--s3);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--t-caption);
  font-weight: 600;
}

.rate-pill .ico,
.rate .ico {
  width: 15px;
  height: 15px;
  fill: var(--star);
  stroke: none;
}

.rvs {
  display: flex;
  gap: var(--s3);
  margin-block-start: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rv {
  flex: 0 0 min(268px, 80%);
  scroll-snap-align: start;
  padding: var(--s4);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--t-ui);
}

.rv figcaption {
  margin-block-start: var(--s2);
  font-size: var(--t-caption);
  color: var(--muted);
}

/* ---------------------------------------------------------------- new + collabs */
/* Deck p08: their posters as they made them, one at a time; the one in the
   middle of the strip is in focus, its neighbours step back. */
.car {
  display: flex;
  gap: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut);
  padding: var(--s1) var(--gut) var(--s2);
  scrollbar-width: none;
}

.car::-webkit-scrollbar {
  display: none;
}

/* button.poster: the hero's photo also carries the class "poster" */
button.poster {
  flex: 0 0 min(300px, 76vw);
  aspect-ratio: 290 / 362;
  border-radius: var(--r-md);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--surface);
  outline: 1px solid rgba(0, 0, 0, 0.08);
  outline-offset: -1px;
  transition: scale var(--t-press) var(--ease);
}

button.poster:active,
.collab:active {
  scale: 0.96;
}

button.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    button.poster img {
      animation: in-focus linear both;
      animation-timeline: view(inline);
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes in-focus {
  0% {
    scale: 1.12;
    opacity: 0.55;
  }
  40%,
  60% {
    scale: 1;
    opacity: 1;
  }
  100% {
    scale: 1.12;
    opacity: 0.55;
  }
}

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 32px;
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: var(--line-strong);
  transition: background-color var(--t-state) var(--ease);
}

.dots i.on {
  width: 22px;
  background: var(--accent);
}

.collabs {
  display: grid;
  gap: var(--s3);
  margin-block-start: var(--s3);
}

.collab {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  transition: scale var(--t-press) var(--ease);
}

.collab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.collab .ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 10, 0.84), rgba(20, 16, 10, 0) 64%);
}

.collab .ct {
  position: absolute;
  inset-inline: var(--s5);
  inset-block-end: var(--s4);
  color: #fcf2d3;
  direction: ltr;
  text-align: left;
  display: grid;
  gap: 2px;
}

.collab .ct b {
  font-size: var(--t-title);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

.collab .ct span {
  font-size: var(--t-ui);
  opacity: 0.88;
}

/* ---------------------------------------------------------------- boxes */
.bx-photo {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}

.bx-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 35 / 29;
  object-fit: cover;
  object-position: 50% 66%;
}

.form {
  display: grid;
  gap: var(--s3);
  margin-block-start: var(--s4);
}

.fld {
  min-height: 56px;
  padding-inline: var(--s4);
  border-radius: var(--r-btn);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  font-size: var(--t-body);
}

.fld > b {
  font-weight: 600;
  flex: none;
}

.fld input,
.fld select {
  flex: 1;
  min-width: 0;
  font-size: var(--t-body);
  background: none;
  border: 0;
  text-align: end;
}

.fld input::placeholder {
  color: var(--muted);
}

.step {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.step button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.step button .ico {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--fg);
}

.step output {
  min-width: 2ch;
  text-align: center;
  font-size: var(--t-lead);
  font-weight: 600;
}

.note {
  font-size: var(--t-small);
  color: var(--muted);
}

/* ---------------------------------------------------------------- moments: the espresso band */
/* One dark peak in the scroll. Tokens are scoped, so everything inside reads
   its colours from the band. */
#moments {
  --fg: var(--cream);
  --muted: var(--cream-muted);
  --line: rgba(246, 236, 207, 0.14);
  --line-strong: rgba(246, 236, 207, 0.24);
  --surface: #352b1f;
  margin-block-start: var(--section);
  padding-block: var(--s10) var(--s9);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: var(--fg);
}

#moments .b2 {
  color: var(--fg);
}

/* reels: their own short videos, tall, silent, looping only while seen */
.reels {
  display: flex;
  gap: var(--s3);
  margin-inline: calc(var(--gut) * -1);
  padding: var(--s1) var(--gut) var(--s6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.reels::-webkit-scrollbar {
  display: none;
}

.reel {
  position: relative;
  flex: 0 0 min(46vw, 13rem);
  aspect-ratio: 9 / 16;
  border-radius: var(--r-md);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--surface);
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
}

.reel-v {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the pause control every playing video needs: a glass disc */
.reel-toggle {
  position: absolute;
  inset-block-start: var(--s2);
  inset-inline-end: var(--s2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(20, 16, 10, 0.3);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), 0 0 0 0.5px rgba(255, 255, 255, 0.18);
  transition: scale var(--t-press) var(--ease);
}

.reel-toggle::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
}

.reel-toggle:active {
  scale: 0.96;
}

.reel-toggle .ico {
  position: absolute;
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
  transition:
    opacity 220ms var(--ease-icon),
    scale 220ms var(--ease-icon),
    filter 220ms var(--ease-icon);
}

.reel-toggle .i-pause,
.is-playing > .reel-toggle .i-play {
  opacity: 0;
  scale: 0.25;
  filter: blur(4px);
}

.is-playing > .reel-toggle .i-pause {
  opacity: 1;
  scale: 1;
  filter: none;
}

html:not(.js) .reel-toggle {
  display: none;
}

/* the reels that show a menu item end in it */
.reel-chip {
  position: absolute;
  inset-inline: var(--s2);
  inset-block-end: var(--s2);
  height: 44px;
  padding-inline: var(--s3) 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  border-radius: 22px;
  color: var(--ink);
  background: color-mix(in srgb, #fcf2d3 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 8px 20px -10px rgba(0, 0, 0, 0.6);
  font-size: var(--t-small);
  font-weight: 600;
  transition: scale var(--t-press) var(--ease);
}

.reel-chip:active {
  scale: 0.96;
}

.reel-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reel-chip .ico {
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--accent);
  color: var(--on-accent);
  stroke-width: 2.2;
}

/* the photo mosaic: two columns, the second set lower */
.mas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  align-items: start;
}

.moment {
  display: block;
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
  transition: scale var(--t-press) var(--ease);
}

.moment:active {
  scale: 0.96;
}

.moment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moment:nth-child(4n + 1) {
  aspect-ratio: 170 / 300;
}
.moment:nth-child(4n + 2) {
  aspect-ratio: 170 / 250;
  margin-block-start: var(--s8);
}
.moment:nth-child(4n + 3) {
  aspect-ratio: 170 / 220;
}
.moment:nth-child(4n + 4) {
  aspect-ratio: 170 / 240;
  margin-block-start: calc(var(--s3) * -1);
}

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #0f0c07;
  color: var(--cream);
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms var(--ease), visibility 0s 260ms;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 260ms var(--ease), visibility 0s;
}

.lightbox img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

/* the photo under a finger: sideways to the next one, down to put it away.
   The gesture is the lightbox's, so the browser is told to keep only the
   pinch. Nothing eases while the finger is down; the release springs. */
.lightbox {
  touch-action: pinch-zoom;
}

.lightbox img,
.lightbox .lightbox-cap {
  transform: translate3d(var(--slide, 0px), var(--lift, 0px), 0);
  transition: transform 420ms var(--spring);
}

.lightbox.is-dragging img,
.lightbox.is-dragging .lightbox-cap {
  transition: none;
}

.lightbox.is-dragging {
  background: color-mix(in srgb, #0f0c07 calc(var(--dim, 1) * 100%), transparent);
}

.lightbox-cap {
  padding: var(--s5) var(--s6) calc(env(safe-area-inset-bottom, 0px) + var(--s6));
  display: grid;
  gap: var(--s2);
}

.lightbox-cap p {
  font-size: var(--t-title);
  font-weight: 600;
  line-height: var(--lh-snug);
}

.lightbox-cap p:empty {
  display: none;
}

#lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  font-size: var(--t-small);
  color: var(--cream-muted);
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  inset-block-start: calc(env(safe-area-inset-top, 0px) + var(--s4));
  inset-inline-end: var(--gut);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(246, 236, 207, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  transition: scale var(--t-press) var(--ease);
}

/* A finger swipes and a keyboard has its arrows; a mouse had neither, so on
   a pointer device the two steps are spelled out at the edges. */
.lightbox-step {
  position: absolute;
  z-index: 2;
  inset-block-start: 50%;
  width: 48px;
  height: 48px;
  margin-block-start: -24px;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: rgba(246, 236, 207, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: scale var(--t-press) var(--ease), opacity var(--t-state) var(--ease);
}

.lightbox-step:active {
  scale: 0.96;
}

.lb-prev {
  inset-inline-start: var(--s3);
}

.lb-next {
  inset-inline-end: var(--s3);
}

/* Each chevron points the way it travels. The icon is drawn pointing left,
   so in Arabic "next" (on the left) keeps it and "previous" (on the right)
   turns; in English it is the other way round. */
.lb-prev .ico {
  rotate: 180deg;
}

html[dir="ltr"] .lb-prev .ico {
  rotate: 0deg;
}

html[dir="ltr"] .lb-next .ico {
  rotate: 180deg;
}

@media (hover: hover) {
  .lightbox-step {
    display: grid;
  }
}

.lightbox-close:active {
  scale: 0.96;
}

.lightbox-close .ico {
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------------------------- visit */
/* Deck p11: the storefront edge to edge, fading into the page; the heading
   sits in the fade. */
.visit {
  padding-block-start: var(--section);
}

.v-photo {
  position: relative;
  height: min(400px, 100vw);
  overflow: hidden;
}

.v-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* the fade reaches 2px past the photo's edge, so no sub-pixel row of the
   picture shows below it */
.v-photo .grad {
  position: absolute;
  inset: 0 0 -2px;
  background: linear-gradient(to top, var(--bg) 7%, color-mix(in srgb, var(--bg) 0%, transparent) 58%);
}

.v-body {
  position: relative;
  margin-block-start: calc(var(--s10) * -1);
}

.v-h {
  font-size: var(--t-h2);
}

.v-body .live {
  margin-block-start: var(--s3);
}

.addr {
  display: grid;
  gap: var(--s2);
  margin-block-start: var(--s5);
}

.addr p {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 32px;
  font-size: var(--t-body);
}

.addr .ico {
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.acts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: var(--s2);
  margin-block-start: var(--s5);
}

.acts .btn {
  height: 52px;
  padding-inline: var(--s2);
  gap: 6px;
  font-size: var(--t-ui);
}

.acts .btn .ico {
  width: 19px;
  height: 19px;
}

.hours {
  margin-block-start: var(--s4);
  border-radius: var(--r-btn);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  font-size: var(--t-ui);
}

.hours div + div {
  border-block-start: 1px solid var(--line);
}

.hours div[data-today="true"] {
  font-weight: 600;
}

.rate {
  margin-block-start: var(--s4);
  min-height: 60px;
  padding-inline: var(--s4);
  border-radius: var(--r-btn);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.rate b {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-body);
  font-weight: 600;
}

.rate .ico {
  width: 18px;
  height: 18px;
}

.rate a {
  min-height: 44px;
  min-width: 44px;
  padding-inline: var(--s2);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: var(--t-ui);
  font-weight: 600;
}

/* ---------------------------------------------------------------- cta + footer */
.cta {
  margin-block-start: var(--section);
  padding: var(--s7) var(--s6) var(--s6);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s6);
}

.cta h2 {
  font-size: clamp(2.25rem, 10vw, 2.75rem);
}

.cta .btn {
  width: 100%;
  height: 56px;
}

.footer {
  margin-block-start: var(--section);
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--s8) var(--s6) calc(env(safe-area-inset-bottom, 0px) + var(--s8));
}

.footer-in {
  max-width: var(--page);
  margin-inline: auto;
}

.f-brand {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.f-brand img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.f-brand b {
  display: block;
  font-weight: 400;
  font-size: var(--t-h3);
  line-height: var(--lh-tight);
}

.f-brand span {
  font-size: var(--t-caption);
  color: var(--cream-muted);
}

.f-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--s4);
  margin-block-start: var(--s6);
  font-size: var(--t-body);
  font-weight: 500;
}

.f-links a {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.f-soc {
  display: grid;
  margin-block-start: var(--s5);
  padding-block-start: var(--s5);
  border-block-start: 1px solid rgba(246, 236, 207, 0.16);
}

.f-soc a {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--t-ui);
  font-weight: 500;
}

.f-soc .ico {
  width: 22px;
  height: 22px;
  color: var(--cream-muted);
}

.f-bot {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  margin-block-start: var(--s7);
  font-size: var(--t-micro);
  color: var(--cream-muted);
  direction: ltr;
}

.f-credit {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- item sheet */
/* Deck p06: photo, name + share, the other language, the way to what
   customers said, then the order. Dragged with the finger, springs back or
   closes; the backdrop follows. */
.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(12, 9, 5, 0.55); /* dim to focus; no blur: it follows the finger every frame */
  opacity: 0;
  pointer-events: none;
}

.sheet-scrim.is-open {
  pointer-events: auto;
}

.sheet {
  position: fixed;
  z-index: 61;
  inset-inline: 0;
  inset-block-end: 0;
  margin-inline: auto;
  width: 100%;
  max-width: 32rem;
  max-height: 92svh;
  background: var(--bg);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 0 var(--gut) calc(env(safe-area-inset-bottom, 0px) + var(--s5));
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  visibility: hidden;
  touch-action: none;
  will-change: transform;
  box-shadow: 0 -24px 60px -24px rgba(0, 0, 0, 0.4);
}

.sheet.is-open {
  visibility: visible;
}

.grab {
  flex: none;
  align-self: center;
  width: 96px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: grab;
}

.grab span {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--line-strong);
}

.sheet-photo {
  position: relative;
  flex: none;
  aspect-ratio: 35 / 29;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--studio);
  isolation: isolate;
}

.sheet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.sheet-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.sh-name {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s3);
  margin-block-start: var(--s5);
}

.sh-name h3 {
  font-size: clamp(2rem, 9.4vw, 2.5rem);
}

.share {
  width: 44px;
  height: 44px;
  margin-block-start: 2px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  transition:
    scale var(--t-press) var(--ease),
    color var(--t-state) var(--ease);
}

.share:active {
  scale: 0.96;
}

.share .ico {
  width: 20px;
  height: 20px;
}

.en-n {
  margin-block-start: var(--s1);
  font-size: var(--t-lead);
  color: var(--muted);
}

.en-n:empty {
  display: none;
}

.lnk {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  align-self: start;
  min-height: 44px;
  margin-block-start: var(--s1);
  color: var(--accent);
  font-size: var(--t-ui);
  font-weight: 600;
}

.lnk .ico {
  width: 18px;
  height: 18px;
}

.price {
  margin-block-start: auto;
  padding-block-start: var(--s5);
  align-self: start;
  font-size: var(--t-title);
  font-weight: 600;
}

.price:empty {
  display: none;
}

#sheet-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s3);
  margin-block-start: var(--s4);
}

#sheet-cta .btn {
  height: 56px;
}

#sheet-cta .b1:only-child {
  grid-column: 1 / -1;
}

.sheet-wa {
  width: 56px;
  padding: 0;
}

/* opening: the cup drops onto its tile, the words follow it in */
.sheet.is-open .sheet-photo img {
  animation: sheet-cup 780ms var(--spring-pop) 80ms both;
}

.sheet.is-open .sheet-body > * {
  animation: rise 600ms var(--ease) both;
}

.sheet.is-open .sheet-body > :nth-child(1) { animation-delay: 140ms; }
.sheet.is-open .sheet-body > :nth-child(2) { animation-delay: 190ms; }
.sheet.is-open .sheet-body > :nth-child(3) { animation-delay: 230ms; }
.sheet.is-open .sheet-body > :nth-child(4) { animation-delay: 260ms; }
.sheet.is-open .sheet-body > :nth-child(5) { animation-delay: 290ms; }

@keyframes sheet-cup {
  from {
    opacity: 0;
    transform: translateY(-10%) scale(0.88);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------- toast */
/* It rises clear of whatever action is at the bottom of the screen: the only
   thing that raises a toast is the share button inside the item sheet, and
   covering that sheet's own "add to order" button is the one place it must
   not land. */
.toast {
  position: fixed;
  z-index: 80;
  inset-inline: 0;
  inset-block-end: calc(env(safe-area-inset-bottom, 0px) + 104px);
  width: max-content;
  max-width: calc(100% - 2 * var(--gut));
  margin-inline: auto;
  padding: var(--s3) var(--s5);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: var(--t-ui);
  font-weight: 600;
  box-shadow: var(--sh-2);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  transition: opacity 200ms var(--ease), transform 420ms var(--spring);
}

.toast.on {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------- reveals */
/* Things arrive as they scroll in. Script adds .is-in; without it, or with
   reduced motion, nothing is ever hidden.
   - default: rises into focus
   - head: the title's words slide up out of a mask, the line follows
   - photo: opens from its bottom edge while the picture settles
   - slide / slide-start: in from the side the row continues to / starts on
   - pop: small things, with a little give
   - cards: the two columns come in from opposite sides, then the cup lands */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  transition:
    opacity 700ms var(--ease) var(--d, 0ms),
    transform var(--t-enter) var(--ease) var(--d, 0ms),
    filter 700ms var(--ease) var(--d, 0ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.js [data-reveal="head"] {
  opacity: 1;
  transform: none;
  filter: none;
}

.js [data-reveal="head"] .mask > span {
  transform: translateY(108%);
  transition: transform 1000ms var(--ease);
}

.js [data-reveal="head"] > :not(h2) {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  transition:
    opacity 700ms var(--ease) 180ms,
    transform 800ms var(--ease) 180ms,
    filter 700ms var(--ease) 180ms;
}

.js [data-reveal="head"].is-in .mask > span,
.js [data-reveal="head"].is-in > :not(h2) {
  opacity: 1;
  transform: none;
  filter: none;
}

.js [data-reveal="photo"] {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(18% 0 0 0);
  transition: clip-path 1100ms var(--ease-io) var(--d, 0ms);
}

.js [data-reveal="photo"].is-in {
  clip-path: inset(0);
}

.js [data-reveal="photo"] img {
  transform: scale(1.14);
  transition: transform 1600ms var(--ease) var(--d, 0ms);
}

.js [data-reveal="photo"].is-in img {
  transform: none;
}

.js [data-reveal="slide"] {
  transform: translateX(calc(var(--flow) * 64px));
}

.js [data-reveal="slide-start"] {
  transform: translateX(calc(var(--flow) * -48px));
}

.js [data-reveal="pop"] {
  transform: translateY(24px) scale(0.9);
  transition:
    opacity 520ms var(--ease) var(--d, 0ms),
    transform 800ms var(--spring-pop) var(--d, 0ms),
    filter 520ms var(--ease) var(--d, 0ms);
}

/* the menu's cards: odd ones from the reading start, even ones from its end
   (in Arabic: the right column from the right, the left one from the left) */
.card:nth-child(odd) {
  --col: calc(var(--flow) * -1);
}

.card:nth-child(even) {
  --col: var(--flow);
}

/* no blur here: blurring nineteen photo tiles at once costs frames */
.js .card {
  opacity: 0;
  transform: translate(calc(var(--col) * 44px + var(--enter-x, 0px)), 28px) scale(0.96);
  transition:
    opacity 480ms var(--ease) var(--d, 0ms),
    transform 900ms var(--spring) var(--d, 0ms);
}

.js .card.is-in {
  opacity: 1;
  transform: none;
}

.js .card .card-ph > img,
.js .card .card-ph > .thumb-ico {
  transition: transform 1000ms var(--spring-pop) calc(var(--d, 0ms) + 120ms);
}

.js .card:not(.is-in) .card-ph > img,
.js .card:not(.is-in) .card-ph > .thumb-ico {
  transform: translateY(-16%) scale(0.88);
}

/* a category leaving: a short, quiet step toward the side it came from */
.js .menu-group.is-leaving .card,
.js .menu-group.is-leaving .addons {
  opacity: 0;
  transform: translateX(var(--exit-x, 0px));
  transition-duration: 180ms;
  transition-delay: 0ms;
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal] img,
  .js [data-reveal] .mask > span,
  .js [data-reveal] > *,
  .js .card,
  .js .card .card-ph > img,
  .js .card .card-ph > .thumb-ico {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }

  .add.is-popping,
  .chip.is-popping,
  .basket-sum.is-kicking,
  .basket-faces.is-kicking,
  .basket.is-opening .basket-row,
  .face,
  .sheet.is-open .sheet-photo img,
  .sheet.is-open .sheet-body > *,
  .cat.drawing .ring,
  .cat.drawing .ring .ico path {
    animation: none;
  }

  .js .basket,
  .basket-body,
  .basket[data-state="open"] .basket-body,
  .basket-chev,
  .nav-sheet,
  .nav-sheet.is-open,
  .card-ph img.cut {
    transition: opacity 160ms linear !important;
  }

  .js .basket,
  .basket-body,
  .nav-sheet,
  .island {
    transform: none !important;
    filter: none !important;
  }

  .island,
  .island.is-on {
    transition: opacity 160ms linear !important;
  }

  .island.is-on .isl-in {
    animation: none;
  }

  .isl-ind,
  .isl-over {
    transition: none;
  }
}

/* ---------------------------------------------------------------- laptop */
/* Deck p12: links spelled out, a standing order button, the swirl filling its
   half of the screen, the circles under the buttons. */
/* ---------------------------------------------------------------- tablet */
/* An iPad held upright: more than a phone, not yet the laptop layout. The page
   opens to a comfortable column rather than a phone strip down the middle. */
@media (min-width: 44rem) and (max-width: 63.99rem) {
  :root {
    --page: 42rem;
    --gut: 32px;
    --section: 104px;
    --t-h2: 3.25rem;
    --t-h1: 4rem;
  }
}

@media (min-width: 64rem) {
  :root {
    --page: 72rem;
    --gut: 44px;
    --section: 128px;
    --t-h2: 3.75rem;
    /* caps run wider than mixed case: sized so the name breaks as CUP AND /
       CONE in its column, never one word to a line */
    --t-h1: clamp(4.5rem, 6.2vw, 5.5rem);
  }

  .header-in {
    height: 88px;
    padding-inline: var(--gut);
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand b {
    font-size: var(--t-h3);
  }

  .d-links,
  .isl-links {
    display: flex;
    gap: var(--s7);
    font-size: var(--t-body);
    font-weight: 500;
  }

  .d-links a,
  .isl-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: color var(--t-state) var(--ease);
  }

  .d-links a:hover,
  .d-links a[aria-current="true"],
  .isl-links a:hover {
    color: var(--accent);
  }

  .d-links a[aria-current="true"] {
    font-weight: 700;
  }

  .header-actions {
    gap: var(--s2);
  }

  .head-order,
  .isl-order {
    width: auto;
    height: 44px;
    padding-inline: var(--s5);
    font-size: var(--t-ui);
    border-radius: 22px;
  }

  .isl-order span {
    display: inline;
  }

  .menu-btn,
  .isl-menu,
  .nav-sheet {
    display: none;
  }

  .island {
    max-width: 64rem;
  }

  .isl-in {
    height: 64px;
    border-radius: 32px;
  }

  .isl-home {
    padding-inline: var(--s3) 10px;
    gap: var(--s6);
  }

  .isl-links {
    margin-inline-start: auto;
  }

  .isl-acts {
    margin-inline-start: 0;
    gap: var(--s2);
  }

  .isl-tabs {
    justify-content: center;
    gap: var(--s2);
    padding: 10px;
  }

  .isl-tab {
    flex: 0 0 auto;
    height: 44px;
    padding-inline: var(--s5);
    border-radius: 22px;
    font-size: var(--t-ui);
  }

  .isl-track {
    justify-content: center;
    gap: var(--s2);
  }

  .isl-ind,
  .isl-over {
    inset-block-start: 0;
    height: 44px;
    clip-path: inset(0 var(--r, 100%) 0 var(--l, 0px) round 22px);
  }

  .isl-over {
    gap: var(--s2);
    justify-content: center;
  }

  .edge {
    height: 96px;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    grid-template-areas:
      "copy stage"
      "cta  stage"
      "cats stage";
    grid-template-rows: auto auto 1fr;
    height: clamp(580px, calc(100svh - 88px), 780px);
  }

  .hero-copy {
    grid-area: copy;
    padding: var(--s10) var(--gut) 0;
    padding-inline-start: max(var(--gut), calc((100vw - 72rem) / 2 + var(--gut)));
  }

  .hero-h {
    line-height: 1.08;
    margin-block-start: var(--s6);
  }

  .hero-tag {
    font-size: var(--t-title);
  }

  .hero-stage {
    grid-area: stage;
    aspect-ratio: auto;
    height: 100%;
    margin: 0;
  }

  html[data-theme="night"] .hero-stage {
    margin: 0 var(--gut) var(--gut) 0;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
  }

  .hero-cta {
    grid-area: cta;
    display: flex;
    gap: var(--s3);
    padding: var(--s7) var(--gut) 0;
    padding-inline-start: max(var(--gut), calc((100vw - 72rem) / 2 + var(--gut)));
  }

  .hero-cta .b1 {
    min-width: 13rem;
  }

  .hero-cta .b2 {
    min-width: 10rem;
  }

  .hero-cats {
    grid-area: cats;
    display: block;
    padding: var(--s8) var(--gut) 0;
    padding-inline-start: max(var(--gut), calc((100vw - 72rem) / 2 + var(--gut)));
  }

  /* six sections and the reviews no longer fit one line beside the cup:
     two even rows (four, then three), never a circle cut at the edge */
  .hero-cats .cats {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    column-gap: var(--s5);
    row-gap: var(--s4);
    overflow: visible;
  }

  .sec-head {
    margin-block-end: var(--s8);
  }

  .sub {
    font-size: var(--t-lead);
  }

  .shelf {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s9) var(--s6);
  }

  .card-name {
    font-size: var(--t-body);
  }

  /* the header already carries a standing order button */
  .basket-direct,
  html:not(.js) .basket {
    display: none;
  }

  .js .basket[data-state="empty"] {
    visibility: hidden;
  }

  .js .basket {
    inset-inline: auto var(--gut);
    width: 26rem;
    max-width: none;
    margin: 0;
  }

  /* words on the reading side, the photo beside them, as in the hero */
  #almond .wrap,
  .visit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s10);
    align-items: center;
  }

  .al-text,
  .v-body {
    grid-column: 1;
    grid-row: 1;
  }

  .al-photo,
  .v-photo {
    grid-column: 2;
    grid-row: 1;
  }

  .al-photo img {
    aspect-ratio: 1 / 1;
  }

  .al-h {
    margin-block-start: 0;
  }

  .car {
    max-width: var(--page);
    margin-inline: auto;
  }

  .collabs {
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  }

  .collab {
    height: 280px;
  }

  #moments {
    max-width: calc(var(--page) + 2 * var(--s8));
    margin-inline: auto;
    padding-block: var(--s11) var(--s10);
  }

  .reels {
    margin-inline: 0;
    padding-inline: 0;
  }

  .reel {
    flex-basis: calc((100% - 3 * var(--s3)) / 4);
  }

  .mas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s4);
  }

  #moments .stack {
    justify-items: start;
  }

  .visit {
    max-width: var(--page);
    margin-inline: auto;
    padding-inline: var(--gut);
  }

  .v-photo {
    height: 34rem;
    border-radius: var(--r-xl);
  }

  .v-photo .grad {
    display: none;
  }

  .v-body {
    margin: 0;
    padding: 0;
    max-width: 30rem;
  }

  .cta {
    flex-direction: row;
    align-items: center;
    padding: var(--s8) var(--s9);
  }

  .cta .btn {
    width: auto;
    min-width: 16rem;
  }

  .footer {
    border-radius: 40px 40px 0 0;
    padding: var(--s10) var(--gut) var(--s8);
  }

  .footer-in {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: var(--s7) var(--s9);
    align-items: start;
  }

  .f-links,
  .f-soc {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .f-bot {
    grid-column: 1 / -1;
    padding-block-start: var(--s5);
    border-block-start: 1px solid rgba(246, 236, 207, 0.16);
  }

  .sheet {
    max-height: 88svh;
  }
}

/* ---------------------------------------------------------------- checkout */
/* The order panel has two steps: the items, then checkout. One shows at a
   time; each is a column whose middle part scrolls. */
.bk-step {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.basket[data-step="items"] .bk-checkout,
.basket[data-step="checkout"] .bk-items {
  display: none;
}


.basket-head {
  justify-content: flex-start;
  align-items: center;
}

.bk-clear {
  margin-inline-start: auto;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--accent);
  transition-property: background-color, color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.bk-clear.is-sure {
  background: var(--accent);
  color: var(--on-accent);
}

.basket-send {
  gap: var(--s2);
}

.bk-go-ico,
.bk-back-ico {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* the chevron points the way reading goes: left in Arabic, right in English */
html[lang="en"] .bk-go-ico,
html[lang="ar"] .bk-back-ico {
  transform: rotate(180deg);
}

.bk-back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-inline-start: -10px;
  border-radius: 50%;
}

.bk-head2 #bk-sum {
  margin-inline-start: auto;
  font-size: var(--t-body);
  color: var(--fg);
}

.bk-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding-block-end: var(--s2);
}

.bk-car {
  margin: 0;
  padding: 0 var(--s1);
  border: 0;
  min-width: 0;
}

.bk-car legend {
  padding: 0;
  font-size: var(--t-ui);
  font-weight: 600;
}

.bk-car legend em {
  margin-inline-start: 6px;
  font-style: normal;
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--accent);
}

.bk-hint {
  margin-block: 2px var(--s3);
  font-size: var(--t-caption);
  color: var(--muted);
}

.bk-plate {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.7fr) minmax(0, 1.2fr);
  gap: var(--s2);
}

.bk-plate label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.bk-plate span {
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--muted);
}

.bk-plate input,
.bk-plate select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding-inline: var(--s3);
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--t-body); /* 16px: iOS does not zoom the page */
  color: var(--fg);
  transition: box-shadow var(--t-state) var(--ease);
}

.bk-num input {
  font-size: var(--t-lead);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-align: center;
}

.bk-code input {
  text-align: center;
  text-transform: uppercase;
}

.bk-plate input:focus,
.bk-plate select:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--fg);
}

.bk-plate input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.bk-err {
  min-height: 1.2em;
  margin-block-start: 6px;
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--accent);
}

.bk-checkout .basket-field {
  margin-block-start: var(--s2);
}

/* Apple Pay and Google Pay in their own dress: black, the mark, "Pay" */
.bk-pay {
  flex: none;
  display: grid;
  gap: var(--s2);
  margin-block-start: var(--s3);
}

.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 52px;
  border-radius: 26px;
  background: #000;
  color: #fff;
  direction: ltr;
  font: 500 21px/1 -apple-system, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
}

.pay-btn svg {
  width: 21px;
  height: 21px;
  flex: none;
}

.pay-apple svg {
  margin-block-start: -4px;
}

.pay-google {
  box-shadow: inset 0 0 0 1px #3c4043;
}

.pay-google span {
  font-family: "Google Sans", Roboto, Arial, sans-serif;
}

.pay-card {
  height: 52px;
  border-radius: 26px;
}

.pay-btn:active,
.pay-card:active,
.bk-clear:active,
.bk-back:active {
  scale: 0.96;
}

/* a light passes across a wallet button once, as the way to pay arrives */
.pay-btn {
  position: relative;
  overflow: hidden;
}

.pay-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.32) 50%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .pay-btn.is-shining::after {
    animation: pay-sheen 950ms cubic-bezier(0.4, 0, 0.2, 1) both;
  }
}

@keyframes pay-sheen {
  to {
    transform: translateX(130%);
  }
}

.pay-btn:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.bk-soon {
  padding: var(--s3);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--t-ui);
  font-weight: 600;
  text-align: center;
  text-wrap: balance;
}

/* after hours: said first, before the plate is typed in */
.bk-closed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  margin-block-end: var(--s4);
  text-align: start;
}

.bk-closed .ico {
  flex: none;
  width: 18px;
  height: 18px;
}

/* "Order cleared · Undo", just above the order bar, for a few seconds */
.bk-undo {
  position: absolute;
  inset-inline: 0;
  inset-block-end: calc(100% + var(--s2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 52px;
  padding-inline: var(--s4) var(--s2);
  border-radius: 26px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  box-shadow: var(--sh-3);
}

.bk-undo[hidden] {
  display: none;
}

.bk-undo button {
  min-height: 40px;
  padding-inline: var(--s4);
  border-radius: 20px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
}

.bk-undo button:active {
  scale: 0.96;
}

@media (prefers-reduced-motion: reduce) {
  .basket-adds.enter {
    animation: none;
  }
}


/* The order panel lays itself out alone: a tap inside it (+, −, add-ons)
   re-measures the panel, not the whole page behind it. */
.basket-body,
.basket-list {
  contain: layout style;
}

/* while its add-ons are open, a row's add-ons line stays exactly one line */
.basket-row .ad.one-line {
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ---------------------------------------------------------------- live order tracking */
/* The order after checkout. A capsule that is the order bar's sibling (the
   same espresso, the same round cup faces, two lines of text), and the card it
   opens: a cream slip like the order panel, with the cups, the number, where
   the order is on the menu circles' own rings, and the car it goes out to. */
.track[hidden] {
  display: none;
}

.track-pill,
.track-sheet {
  position: fixed;
  inset-inline: 12px;
  margin: 0 auto;
  z-index: 45;
}

.track-pill {
  inset-block-end: calc(env(safe-area-inset-bottom, 0px) + 12px);
  width: max-content;
  max-width: calc(100% - 24px);
  height: 60px;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-inline: 10px var(--s5);
  border-radius: 30px;
  background: var(--ink);
  color: var(--cream);
  text-align: start;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.14),
    0 0 0 0.5px rgba(0, 0, 0, 0.3),
    var(--sh-3);
  transition:
    opacity 200ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 260ms cubic-bezier(0.23, 1, 0.32, 1),
    translate 320ms cubic-bezier(0.23, 1, 0.32, 1),
    scale 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.track-pill:active {
  scale: 0.96;
}

/* the order bar is up: the capsule waits just above it */
html.order-up .track-pill {
  translate: 0 -72px;
}

/* the card is open, or the order panel takes the bottom: the capsule steps aside */
.track.is-open .track-pill,
html.order-open .track-pill {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.track-faces {
  display: flex;
  flex: none;
}

.track-faces .face {
  outline: 1px solid oklch(1 0 0 / 0.1);
  outline-offset: -1px;
}

.track-pill-txt {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.track-pill-txt b {
  font-size: var(--t-ui);
  font-weight: 600;
  white-space: nowrap;
}

.track-pill-txt small {
  font-size: var(--t-caption);
  color: var(--cream-muted);
  white-space: nowrap;
}

.track[data-status="ready"] .track-pill-txt small,
.track[data-status="done"] .track-pill-txt small {
  color: var(--cream);
}

/* live: a small light that keeps a slow pulse while the order moves */
.track-live {
  --live: var(--star);
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  margin-inline-start: var(--s1);
  border-radius: 50%;
  background: var(--live);
}

.track[data-status="accepted"] .track-live {
  --live: var(--cream);
}

.track[data-status="ready"] .track-live,
.track[data-status="done"] .track-live {
  --live: var(--open);
}

.track[data-status="cancelled"] .track-live {
  --live: var(--cream-muted);
}

.track-live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--live);
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .track:not([data-status="done"]):not([data-status="cancelled"]) .track-live::after {
    animation: track-ping 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
  }
}

@keyframes track-ping {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

/* ---- the card */
.track-sheet {
  inset-block-end: calc(env(safe-area-inset-bottom, 0px) + 12px);
  max-width: 30rem;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s6) var(--s4) var(--s4);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 0 0 1px var(--line), var(--sh-3);
  text-align: center;
  transform-origin: 50% 100%;
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  /* the capsule's window (app.js) carries the arrival; this is the fallback */
  transition:
    opacity 220ms cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0s linear 380ms;
}

.track.is-open .track-sheet {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.track-x {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
  transition:
    color 150ms ease,
    scale 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.track-x:active {
  scale: 0.96;
}

/* the order's sounds (app.js pager): the bell opposite the close button;
   off, it steps back with a line through it */
.track-snd {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
  transition:
    color 150ms ease,
    opacity 150ms ease,
    scale 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.track-snd:active {
  scale: 0.96;
}

.track-snd svg {
  width: 20px;
  height: 20px;
}

.track-snd::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  rotate: -45deg;
  scale: 0 1;
  transition: scale 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.track-snd.is-off {
  opacity: 0.55;
}

.track-snd.is-off::after {
  scale: 1 1;
}

@media (hover: hover) and (pointer: fine) {
  .track-x:hover {
    color: var(--fg);
  }
}

.track-x .ico {
  width: 20px;
  height: 20px;
}

/* the cups you ordered, cut out on the menu's soft tile, and the number */
.track-hero {
  display: grid;
  justify-items: center;
}

.track-cups {
  display: flex;
  margin-block-end: var(--s3);
}

.track-cup {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 0 0 3px var(--bg);
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
  animation: face-in 520ms var(--spring-pop) both;
}

.track-cup + .track-cup {
  margin-inline-start: -16px;
}

.track-cup:nth-child(2) {
  animation-delay: 60ms;
}

.track-cup:nth-child(3) {
  animation-delay: 120ms;
}

.track-cup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  scale: 1.28; /* the studio frame has air around the cup; fill the disc */
}

.track-cup .ico {
  width: 26px;
  height: 26px;
}

.track-kicker {
  font-size: var(--t-caption);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.track-no {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.track-now {
  margin-block-start: var(--s2);
}

.track-h {
  font-size: var(--t-title);
  font-weight: 600;
  line-height: var(--lh-tight);
  text-wrap: balance;
}

.track-sub {
  margin-block-start: var(--s1);
  font-size: var(--t-ui);
  color: var(--muted);
  text-wrap: balance;
}

/* four steps on the menu circles' rings, joined by a line that fills as the
   counter moves the order along */
.track-way {
  position: relative;
  margin: var(--s6) 0 var(--s5);
}

.track-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.track-line {
  position: absolute;
  inset-block-start: 18.5px;
  inset-inline: 12.5%;
  height: 3px;
  border-radius: 2px;
  background: var(--step-soon);
}

/* the way already travelled: espresso, warming to red where it is now */
.track-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to right, var(--ink), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-io);
}

[dir="rtl"] .track-fill {
  background: linear-gradient(to left, var(--ink), var(--accent));
}

[dir="rtl"] .track-fill {
  transform-origin: right;
}

.track-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--s2);
  font-size: var(--t-caption);
  color: var(--muted);
  transition: color 240ms ease;
}

/* Each step a filled circle with a white icon: latte still to come,
   espresso done, the site's red where the order is now. */
.track-steps {
  --step-soon: color-mix(in srgb, var(--ink) 22%, var(--bg));
}

.track-ring {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--step-soon);
  color: #fff;
  transition:
    background-color 320ms ease,
    box-shadow 240ms ease;
}

.track-ring .ico {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  opacity: 0.9;
}

.track-steps li.is-done,
.track-steps li.is-now {
  color: var(--fg);
}

.track-steps li.is-now {
  font-weight: 600;
}

.track-steps li.is-done .track-ring {
  background: var(--ink);
}

.track-steps li.is-now .track-ring {
  background: var(--accent);
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}

.track-steps li.is-done .track-ring .ico,
.track-steps li.is-now .track-ring .ico {
  opacity: 1;
}

/* the step it is on: a red ring that slowly widens and fades, live, not alarming */
.track-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .track-steps li.is-now .track-ring::after {
    animation: track-halo 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
  }
  /* and its icon breathes, two pixels up and back */
  .track-steps li.is-now .track-ring .ico {
    animation: step-bob 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
  /* reached (or the card just opened on it): the circle fills with a pop and
     the icon draws itself in */
  .track-steps li.is-arriving .track-ring {
    animation: step-pop 620ms var(--spring-pop) both;
  }
  .track-steps li.is-arriving .track-ring .ico {
    animation: none;
  }
  .track-steps li.is-arriving .track-ring .ico path {
    stroke-dasharray: 1;
    animation: step-draw 700ms cubic-bezier(0.23, 1, 0.32, 1) 120ms both;
  }
}

@keyframes step-pop {
  from {
    scale: 0.72;
  }
  to {
    scale: 1;
  }
}

@keyframes step-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes step-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -2px;
  }
}

@keyframes track-halo {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.track[data-status="cancelled"] .track-steps {
  opacity: 0.35;
}

/* The stub: the order's ticket, in two parts with a perforation between.
   The main part says what it comes to and how it is paid; the torn-off
   part carries the car it goes out to, drawn as its plate. The notches are
   cut out of the paper (mask) and the hairline around it follows them
   (drop-shadow on the wrapper, which is drawn after the mask). */
.track-stub {
  --cut: 45%; /* the torn-off part's width: room for the plate as it is on the car */
  --cut-x: 45%; /* the perforation, from the left: the stub sits left in Arabic */
  --notch: 9px;
  margin-block-start: var(--s1);
  filter: drop-shadow(0 0 0.6px rgba(43, 37, 21, 0.42)) drop-shadow(0 6px 12px rgba(43, 37, 21, 0.06));
  text-align: start;
}

html[dir="ltr"] .track-stub {
  --cut-x: 55%;
}

.stub-paper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--cut);
  min-height: 104px;
  border-radius: var(--r-sm); /* the card's 28 less its 16 of padding */
  background: var(--surface);
  -webkit-mask-image:
    radial-gradient(circle var(--notch) at var(--cut-x) 0, transparent 96%, #000 100%),
    radial-gradient(circle var(--notch) at var(--cut-x) 100%, transparent 96%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(circle var(--notch) at var(--cut-x) 0, transparent 96%, #000 100%),
    radial-gradient(circle var(--notch) at var(--cut-x) 100%, transparent 96%, #000 100%);
  mask-composite: intersect;
}

/* one part only (no car on the order, or nothing to pay shown): no tear */
.track-stub:not([data-parts="both"]) .stub-paper {
  grid-template-columns: minmax(0, 1fr);
  -webkit-mask-image: none;
  mask-image: none;
}

.stub-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
}

.stub-sum {
  display: grid;
}

.stub-cap {
  font-size: var(--t-micro);
  color: var(--muted);
}

.stub-total {
  font-size: var(--t-h3);
  font-weight: 400;
  line-height: var(--lh-tight);
  font-variant-numeric: tabular-nums;
}

.stub-pay {
  display: flex;
  align-items: center;
  min-height: 30px;
}

/* not paid yet: a plain line, the stamp's place kept for when it is */
.stub-due {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--t-caption);
  font-weight: 600;
}

.stub-due i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--star);
}

/* the torn-off part: the plate, with the perforation along its inner edge */
.stub-car {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--s3) var(--s2);
}

.track-stub[data-parts="both"] .stub-car::before {
  content: "";
  position: absolute;
  inset-block: calc(var(--notch) + 5px);
  inset-inline-start: -0.75px;
  width: 1.5px;
  background: linear-gradient(var(--line-strong) 55%, transparent 0) 0 0 / 100% 7px;
}

/* The plates' own face (plate.js draws them): Bebas Neue for the digits
   and letters, with the plates' plain-bar "1" (OFL, modified:
   public/fonts/LICENSE-plate-fonts.txt), only fetched when a plate is drawn.
   The emirates' marks are traced paths inside plate.js. */
@font-face {
  font-family: "CC Plate";
  font-display: block;
  src: url("/fonts/plate-latin-2.woff2") format("woff2");
}

.cc-plate {
  display: block;
  width: auto;
  height: 34px;
  aspect-ratio: 520 / 110;
}

/* the drawn plate's box: as wide as the ticket's torn-off part allows */
.plate {
  display: block;
  width: 100%;
  max-width: 12rem;
}

.plate .cc-plate {
  width: 100%;
  height: auto;
}

.track-call {
  display: none;
  width: 100%;
  margin-block-start: var(--s3);
  gap: var(--s2);
}

.track[data-status="cancelled"] .track-call {
  display: inline-flex;
}

/* the card arrives in order: the cups and number, what is happening, the
   steps, the slip. A short stagger; closing is one quick fade. */
@media (prefers-reduced-motion: no-preference) {
  .track-sheet > :not(.track-x) {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
    transition:
      opacity 200ms cubic-bezier(0.23, 1, 0.32, 1),
      transform 200ms cubic-bezier(0.23, 1, 0.32, 1),
      filter 200ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .track.is-open .track-sheet > :not(.track-x) {
    opacity: 1;
    transform: none;
    filter: none;
    transition:
      opacity 420ms cubic-bezier(0.32, 0.72, 0, 1),
      transform 560ms cubic-bezier(0.32, 0.72, 0, 1),
      filter 420ms cubic-bezier(0.32, 0.72, 0, 1);
  }
  /* the stub's hairline is itself a filter: blur and hairline as one list,
     so the two interpolate and the hairline is never dropped */
  .track-sheet > .track-stub {
    filter: blur(4px) drop-shadow(0 0 0.6px rgba(43, 37, 21, 0.42)) drop-shadow(0 6px 12px rgba(43, 37, 21, 0.06));
  }
  .track.is-open .track-sheet > .track-stub {
    filter: blur(0) drop-shadow(0 0 0.6px rgba(43, 37, 21, 0.42)) drop-shadow(0 6px 12px rgba(43, 37, 21, 0.06));
  }
  /* the window grows upward from the capsule: the foot of the card is
     uncovered first, so the parts arrive from the bottom up */
  .track.is-open .track-sheet > .track-stub,
  .track.is-open .track-sheet > .track-call { transition-delay: 90ms; }
  .track.is-open .track-sheet > .track-acts { transition-delay: 130ms; }
  .track.is-open .track-sheet > .track-way { transition-delay: 170ms; }
  .track.is-open .track-sheet > .track-now { transition-delay: 210ms; }
  .track.is-open .track-sheet > .track-hero { transition-delay: 250ms; }
}

@media (prefers-reduced-motion: reduce) {
  .track-pill,
  .track-sheet {
    transform: none !important;
  }
  .track-fill {
    transition: none;
  }
  .track-cup {
    animation: none;
  }
}

/* the photos in the order sit on a faint edge, like every photo on the page */
.basket-row .ph,
.basket-faces .face {
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

/* ---------------------------------------------------------------- catering */
/* An invitation more than a section: their photo edge to edge, the words and
   the two ways to ask laid over a warm espresso fade, and whatever else they
   upload from their events on a strip below. */
.ev-card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(122vw, 36rem);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink);
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

.ev-card > .ev-cover {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(43, 37, 21, 0.94) 0%,
    rgba(43, 37, 21, 0.8) 32%,
    rgba(43, 37, 21, 0.42) 56%,
    rgba(43, 37, 21, 0) 76%
  );
  pointer-events: none;
}

.ev-copy {
  align-self: end;
  display: grid;
  gap: var(--s2);
  padding: var(--s7) var(--s5) var(--s5);
  color: var(--cream);
}

.ev-copy h2 {
  color: var(--cream);
  font-size: var(--t-h2);
  line-height: var(--lh-tight);
}

.ev-sub {
  max-width: 26rem;
  font-size: var(--t-body);
  line-height: var(--lh-snug);
  color: color-mix(in srgb, var(--cream) 88%, transparent);
  text-wrap: balance;
}

.ev-cta {
  display: flex;
  gap: var(--s3);
  margin-block-start: var(--s3);
}

.ev-cta .b1 {
  flex: 1;
}

/* call: a glass button on the photo, the icon alone (its name is its label) */
.ev-call {
  flex: none;
  width: 52px;
  padding: 0;
  color: var(--cream);
  background: rgba(252, 242, 211, 0.1);
  box-shadow: inset 0 0 0 1.5px rgba(252, 242, 211, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (hover: hover) and (pointer: fine) {
  .ev-call:hover {
    background: rgba(252, 242, 211, 0.2);
  }
}

/* the words arrive after the photo, one after another */
@media (prefers-reduced-motion: no-preference) {
  .js .ev-card .ev-copy > * {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 520ms var(--ease),
      transform 640ms var(--ease);
  }
  .js .ev-card.is-in .ev-copy > * {
    opacity: 1;
    transform: none;
  }
  .js .ev-card.is-in .ev-copy > :nth-child(1) { transition-delay: 160ms; }
  .js .ev-card.is-in .ev-copy > :nth-child(2) { transition-delay: 230ms; }
  .js .ev-card.is-in .ev-copy > :nth-child(3) { transition-delay: 300ms; }
}

.ev-body {
  max-width: 34rem;
  margin-block-start: var(--s5);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  text-wrap: pretty;
}

.ev-strip {
  margin-block-start: var(--s5);
}

.ev-strip .ev-tile {
  position: relative;
  flex: 0 0 min(62vw, 16rem);
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--surface);
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

.ev-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 48rem) {
  .ev-card {
    min-height: 30rem;
  }
  .ev-copy {
    max-width: 34rem;
    padding: var(--s8);
  }
  .ev-cta .b1 {
    flex: 0 0 auto;
  }
}

/* ---------------------------------------------------------------- Safari 26 on iPhone */
/* Its shrunken address bar slides over fixed headers while scrolling (Apple
   developer forums, thread 799143; the safe-area inset alone does not clear
   it), so there the island, its fade and its menu sit lower. */
html.ios-safari .island {
  inset-block-start: calc(env(safe-area-inset-top, 0px) + 50px);
}

html.ios-safari .edge {
  height: calc(env(safe-area-inset-top, 0px) + 124px);
}

html.ios-safari.isl-up .nav-sheet {
  inset-block-start: calc(env(safe-area-inset-top, 0px) + 116px);
}

html.ios-safari .menu-group {
  scroll-margin-top: 128px;
}

/* a menu place kept for an item not named yet */
.card.is-soon .card-open {
  cursor: default;
}

.card.is-soon .card-ph {
  box-shadow: inset 0 0 0 1px var(--line);
}

.card.is-soon .card-name {
  color: var(--muted);
  font-weight: 400;
}

/* ---------------------------------------------------------------- touch reach */
/* Small controls keep their size and get a 44px reach around them: the menu
   card's +, a reel's pause, and the phone number in the visit block. */
.add::after,
.reel-toggle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.addr a {
  padding-block: 9px;
  margin-block: -9px;
}

/* an add-on sold out tonight: a quiet outline, its name struck through */
.adc.is-off {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
}

.adc.is-off .ad-main {
  cursor: default;
}

.adc.is-off .ad-name {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.adc.is-off small {
  opacity: 1;
}

/* ---------------------------------------------------------------- no shift open */
/* while no shift is open the notice shows in both steps and payment waits */
.bk-pay button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bk-items .bk-closed {
  margin-block: var(--s3) 0;
}

/* ---------------------------------------------------------------- the order as a sheet */
/* Open, the order is a place of its own: the page dims behind it and holds
   still (JS locks it), the panel rises to just under the top, and a button
   in its corner minimizes it back to the bar. */
.basket-scrim,
.track-scrim {
  position: fixed;
  inset: 0;
  background: rgba(12, 9, 5, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms cubic-bezier(0.23, 1, 0.32, 1);
}

.basket-scrim {
  z-index: 55;
}

.track-scrim {
  z-index: 55;
}

.basket-scrim.is-on,
.track-scrim.is-on {
  opacity: 1;
  pointer-events: auto;
}

.js .basket[data-state="open"] {
  z-index: 56;
}

.track.is-open .track-sheet {
  z-index: 56;
}

/* minimize: a chevron pointing down, where the eye expects a way out */
.bk-min,
.track-x {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  color: var(--fg);
  transition:
    background-color 150ms ease,
    scale 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.bk-min {
  margin-inline-start: var(--s1);
}

.bk-min-ico,
.track-min {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  rotate: -90deg;
}

.bk-min:active {
  scale: 0.96;
}

@media (hover: hover) and (pointer: fine) {
  .bk-min:hover,
  .track-x:hover {
    background: color-mix(in srgb, var(--fg) 12%, transparent);
  }
}

.bk-min:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* the checkout header: back, the title, the sum, minimize */
.bk-head2 #bk-sum {
  margin-inline-end: var(--s1);
}

/* the two wallets side by side, card under them across the row */
.bk-pay {
  grid-template-columns: 1fr 1fr;
}

.bk-pay .pay-card {
  grid-column: 1 / -1;
}

.bk-pay > #pay-soon {
  grid-column: 1 / -1;
}

.bk-pay .pay-card {
  min-width: 0;
  padding-inline: var(--s3);
  font-size: var(--t-ui);
}

/* ---------------------------------------------------------------- arrival time */
/* One row: the question, and a pill with − the minutes +. Five minutes a
   tap; the number rolls the way it moved. */
.bk-eta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  margin-block-start: var(--s4);
  padding-inline: var(--s1);
}

.bk-eta-h {
  font-size: var(--t-ui);
  font-weight: 600;
}

.eta-step {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.eta-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  transition:
    opacity 150ms ease,
    scale 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.eta-btn .ico {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.eta-btn:active {
  scale: 0.92;
}

.eta-btn:disabled {
  opacity: 0.25;
  cursor: default;
  scale: none;
}

.eta-btn:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.eta-val {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  min-width: 6.2em;
  padding-inline: var(--s2);
  font-weight: 600;
  white-space: nowrap;
}

/* the window the numbers roll through */
.eta-roll {
  display: grid;
  overflow: hidden;
  padding-block: 2px;
}

.eta-roll > * {
  grid-area: 1 / 1;
}

.eta-n {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.eta-u {
  font-size: var(--t-small);
  color: var(--muted);
}

/* 0: «وصلت», a word instead of a number */
.bk-eta.is-here .eta-n {
  font-size: var(--t-ui);
  line-height: 1.6;
}

/* ---------------------------------------------------------------- on the order card: I'm here, and the bell */
/* Two tiles side by side while the order is open. «وصلت» is the one most
   people need, in the site's red; once tapped it goes quiet and says so,
   with a tick where the car was. The bell, in espresso, calls someone; then
   it waits four minutes on a ring that drains. */
.track-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  margin-block-end: var(--s3);
}

.tact {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 108px;
  padding: var(--s3) var(--s2);
  border-radius: var(--r-sm);
  color: var(--cream);
  text-align: center;
  transition:
    background-color 240ms ease,
    color 240ms ease,
    box-shadow 240ms ease,
    scale 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.tact-here {
  background: var(--accent);
  color: var(--on-accent);
}

.tact-bell {
  background: var(--ink);
}

.tact:active {
  scale: 0.96;
}

.tact:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.tact-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.tact-ico > .ico {
  grid-area: 1 / 1;
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.tact-tx {
  display: grid;
  gap: 2px;
}

.tact-tx b {
  font-size: var(--t-ui);
  font-weight: 700;
}

.tact-tx small {
  font-size: var(--t-caption);
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
}

/* «وصلت» done: the car drives off, a tick takes its place */
.here-ok {
  opacity: 0;
  scale: 0.6;
}

.here-car,
.here-ok {
  transition:
    opacity 220ms ease,
    translate 420ms cubic-bezier(0.23, 1, 0.32, 1),
    scale 420ms var(--spring-pop);
}

.tact-here.is-done {
  background: color-mix(in srgb, var(--open) 14%, var(--surface));
  color: var(--fg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--open) 35%, transparent);
  cursor: default;
}

.tact-here.is-done .tact-ico {
  background: var(--open);
  color: #fff;
}

.tact-here.is-done .here-car {
  opacity: 0;
  translate: 14px 0; /* the car faces right: it drives off that way */
}

.tact-here.is-done .here-ok {
  opacity: 1;
  scale: 1;
}

.tact-here.is-done:active {
  scale: none;
}

/* the bell: rung, it waits quietly, the ring around it draining */
.bell-svg {
  transform-origin: 50% 12%; /* it hangs from its top */
}

.bell-ring {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  rotate: -90deg;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  opacity: 0;
  transition:
    stroke-dashoffset 1s linear,
    opacity 200ms ease;
}

.bell-wave {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  pointer-events: none;
}

.tact-bell.is-cooling {
  background: var(--surface);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: default;
}

.tact-bell.is-cooling:active {
  scale: none;
}

.tact-bell.is-cooling .tact-ico {
  background: transparent;
  color: var(--accent);
}

.tact-bell.is-cooling .bell-ring {
  opacity: 1;
}

.tact-bell.is-cooling .tact-tx small {
  color: var(--muted);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .tact-bell.is-ringing .bell-svg {
    animation: bell-swing 900ms cubic-bezier(0.36, 0, 0.3, 1) both;
  }
  .tact-bell.is-ringing .bell-wave {
    animation: bell-wave 900ms cubic-bezier(0.23, 1, 0.32, 1) both;
  }
  .tact-bell.is-ringing .bell-wave + .bell-wave {
    animation-delay: 200ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .here-car,
  .here-ok {
    transition: opacity 200ms ease;
    translate: none !important;
    scale: none !important;
  }
}

@keyframes bell-swing {
  0% { rotate: 0deg; }
  14% { rotate: 18deg; }
  30% { rotate: -14deg; }
  46% { rotate: 9deg; }
  62% { rotate: -5deg; }
  78% { rotate: 2deg; }
  100% { rotate: 0deg; }
}

@keyframes bell-wave {
  0% { opacity: 0.75; scale: 0.9; }
  100% { opacity: 0; scale: 1.75; }
}

/* ---------------------------------------------------------------- transitions.dev: success check */
/* The tuning sits on the component, not on :root: Safari recomputes every
   inherited custom property of every element whenever the root's classes
   change, and the island changes them as the page scrolls. */
.t-success-check {
  --check-opacity-dur: 500ms;
  --check-rotate-dur: 500ms;
  --check-rotate-from: 80deg;
  --check-bob-dur: 500ms;
  --check-y-amount: 40px;
  --check-blur-dur: 500ms;
  --check-blur-from: 10px;
  --check-path-dur: 500ms;
  --check-path-delay: 80ms;
  --check-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --check-ease-opacity: cubic-bezier(0.22, 1, 0.36, 1);
  --check-ease-rotate: cubic-bezier(0.22, 1, 0.36, 1);
  --check-ease-bob: cubic-bezier(0.34, 1.35, 0.64, 1);
  --check-ease-path: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Wrapper drives the appear animation; it doesn't own any
   sizing or color so you can drop in any icon. */
.t-success-check {
  display: inline-block;
  transform-origin: center;
  opacity: 0;
  will-change: transform, opacity, filter;
}
/* overflow: visible keeps the stroke from clipping while it
   draws; display: block kills the inline whitespace under SVGs. */
.t-success-check svg { display: block; overflow: visible; }
/* Stroke-draw setup. Replace 20 with the result of
   path.getTotalLength() for your path; round caps mean any
   sub-pixel overshoot is invisible. */
.t-success-check svg path {
  stroke-dasharray: 21;
  stroke-dashoffset: 21;
}

.t-success-check[data-state="in"] {
  animation:
    t-check-fade   var(--check-opacity-dur) var(--check-ease-opacity) forwards,
    t-check-rotate var(--check-rotate-dur)  var(--check-ease-rotate)  forwards,
    t-check-blur   var(--check-blur-dur)    var(--check-ease-out)     forwards,
    t-check-bob    var(--check-bob-dur)     var(--check-ease-bob)     forwards;
}
.t-success-check[data-state="in"] svg path {
  animation: t-check-draw var(--check-path-dur) var(--check-ease-path) var(--check-path-delay, 0ms) forwards;
}

@keyframes t-check-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes t-check-rotate {
  from { transform: rotate(var(--check-rotate-from)); }
  to   { transform: rotate(0deg); }
}
@keyframes t-check-blur {
  from { filter: blur(var(--check-blur-from)); }
  to   { filter: blur(0); }
}
@keyframes t-check-bob {
  from { translate: 0 var(--check-y-amount); }
  to   { translate: 0 0; }
}
@keyframes t-check-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .t-success-check { animation: none !important; opacity: 1; }
  .t-success-check svg path { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* the paid stamp: inked on the stub at a slant, landing with the check (a
   shorter drop and turn than an icon's: it is a stamp coming down) */
.stub-stamp {
  --check-y-amount: -10px;
  --check-rotate-from: -18deg;
  --check-blur-from: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 10px;
  border-radius: 8px;
  color: var(--paid);
  box-shadow:
    inset 0 0 0 2px currentColor,
    inset 0 0 0 4px var(--surface),
    inset 0 0 0 5px color-mix(in srgb, currentColor 55%, transparent);
  font-size: var(--t-ui);
  font-weight: 700;
  line-height: 1.6;
  rotate: -5deg;
}

.stub-stamp svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------------------------------------------------------- transitions.dev: number pop-in */
@keyframes t-digit-pop-in {
  0%   {
    transform: translate(
      calc(var(--digit-distance) * var(--digit-dir-x)),
      calc(var(--digit-distance) * var(--digit-dir-y))
    );
    opacity: 0;
    filter: blur(var(--digit-blur));
  }
  100% { transform: translate(0, 0); opacity: 1; filter: blur(0); }
}

.t-digit-group {
  --digit-dur: 500ms;
  --digit-distance: 8px;
  --digit-stagger: 70ms;
  --digit-blur: 2px;
  --digit-ease: cubic-bezier(0.34, 1.45, 0.64, 1);
  --digit-dir-x: 0;
  --digit-dir-y: 1;
  display: inline-flex;
  align-items: baseline;
}
.t-digit {
  display: inline-block;
  will-change: transform, opacity, filter;
}
.t-digit-group.is-animating .t-digit {
  animation: t-digit-pop-in var(--digit-dur) var(--digit-ease) both;
}
.t-digit-group.is-animating .t-digit[data-stagger="1"] {
  animation-delay: var(--digit-stagger);
}
.t-digit-group.is-animating .t-digit[data-stagger="2"] {
  animation-delay: calc(var(--digit-stagger) * 2);
}

@media (prefers-reduced-motion: reduce) {
  .t-digit-group .t-digit { animation: none !important; }
}

/* ---------------------------------------------------------------- transitions.dev: text states swap */
.t-text-swap {
  --text-swap-dur: 150ms;
  --text-swap-translate-y: 4px;
  --text-swap-blur: 2px;
  --text-swap-ease: ease-in-out;
  display: inline-block;
  transform: translateY(0);
  filter: blur(0);
  opacity: 1;
  transition:
    transform var(--text-swap-dur) var(--text-swap-ease),
    filter    var(--text-swap-dur) var(--text-swap-ease),
    opacity   var(--text-swap-dur) var(--text-swap-ease);
  will-change: transform, filter, opacity;
}
.t-text-swap.is-exit {
  transform: translateY(calc(var(--text-swap-translate-y) * -1));
  filter: blur(var(--text-swap-blur));
  opacity: 0;
}
.t-text-swap.is-enter-start {
  transform: translateY(var(--text-swap-translate-y));
  filter: blur(var(--text-swap-blur));
  opacity: 0;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .t-text-swap { transition: none !important; }
}

/* ---------------------------------------------------------------- transitions.dev: toast (the order's undo) */
.t-toast {
  --toast-open: 350ms;
  --toast-close: 250ms;
  --toast-distance: 16px;
  --toast-blur: 2px;
  --toast-scale: 0.97;
  --toast-ease: cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: translateY(var(--toast-distance)) scale(var(--toast-scale));
  filter: blur(var(--toast-blur));
  will-change: transform, opacity, filter;
  transition:
    opacity var(--toast-close) var(--toast-ease),
    transform var(--toast-close) var(--toast-ease),
    filter var(--toast-close) var(--toast-ease);
}
.t-toast.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity var(--toast-open) var(--toast-ease),
    transform var(--toast-open) var(--toast-ease),
    filter var(--toast-open) var(--toast-ease);
}

@media (prefers-reduced-motion: reduce) {
  .t-toast { transition: none !important; }
}

/* ---------------------------------------------------------------- the shop is closed */
/* A red card with the door sign hanging over its top edge on two cords from
   a nail. It arrives like a modal (a spring up from 92 %), and the sign
   swings on its nail and settles, the way a real one does when the door
   shuts. Reduced motion: a plain fade. */
.cpop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: var(--gut);
}

.cpop-scrim {
  position: absolute;
  inset: 0;
  background: rgba(24, 8, 12, 0.56);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 320ms var(--ease);
}

.cpop.is-open .cpop-scrim {
  opacity: 1;
}

.cpop-card {
  position: relative;
  width: min(100%, 21rem);
  margin-block-start: 44px; /* room for the sign above it */
  padding: 74px var(--s6) var(--s6);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 60%),
    linear-gradient(170deg, #c02a45, var(--accent) 48%, #7c1428);
  color: var(--cream);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 30px 60px -22px rgba(124, 20, 40, 0.75);
  opacity: 0;
  transform: translateY(28px) scale(0.92);
  transition:
    opacity 260ms var(--ease),
    transform 620ms var(--spring);
}

.cpop.is-open .cpop-card {
  opacity: 1;
  transform: none;
}

.cpop.is-closing .cpop-card {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition-duration: 220ms;
}

.cpop.is-closing .cpop-scrim {
  opacity: 0;
  transition-duration: 240ms;
}

/* the sign on its nail, over the card's top edge */
.cpop-hang {
  position: absolute;
  inset-block-start: -40px;
  left: 50%;
  width: 140px;
  margin-left: -70px;
  transform-origin: 50% 5px; /* the nail */
}

.cpop-cord {
  display: block;
  width: 140px;
  height: 46px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.85;
}

.cpop-nail {
  position: absolute;
  inset-block-start: 0;
  left: 50%;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3cf, #b9a36a);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.cpop-sign {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: -6px 12px 0;
  padding: 10px 14px 9px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--accent);
  box-shadow:
    inset 0 0 0 2px rgba(169, 31, 57, 0.18),
    0 10px 20px -10px rgba(0, 0, 0, 0.55);
}

.cpop-sign b {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.cpop-sign small {
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

@media (prefers-reduced-motion: no-preference) {
  .cpop.is-open .cpop-hang {
    animation: cpop-swing 1700ms cubic-bezier(0.36, 0.07, 0.19, 0.97) 120ms both;
  }
}

@keyframes cpop-swing {
  0% {
    transform: rotate(-26deg);
  }
  18% {
    transform: rotate(15deg);
  }
  36% {
    transform: rotate(-9deg);
  }
  54% {
    transform: rotate(5deg);
  }
  72% {
    transform: rotate(-2.5deg);
  }
  86% {
    transform: rotate(1deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.cpop-h {
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: var(--lh-tight);
}

.cpop-p {
  margin-block-start: var(--s2);
  font-size: var(--t-body);
  line-height: var(--lh-snug);
}

.cpop-note {
  margin-block-start: var(--s2);
  font-size: var(--t-caption);
  color: var(--cream);
}

.cpop-ok:focus-visible {
  outline-color: var(--cream);
}

.cpop-ok {
  width: 100%;
  margin-block-start: var(--s5);
  background: var(--cream);
  color: var(--accent);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .cpop-card,
  .cpop.is-closing .cpop-card {
    transform: none;
    transition: opacity 200ms ease;
  }
}

/* ---------------------------------------------------------------- the coupon */
/* «عندك كوبون؟» with the ticket in red, and the field with «تطبيق» always
   under it. Applied, the code becomes a ticket chip in the field's place:
   perforated edge, the check drawing itself, the amount off. A wrong code
   shakes the field (transitions.dev error shake). */
.bk-coupon {
  margin-block-start: var(--s3);
  padding-inline: var(--s1);
}

.cp-ask {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-block-end: var(--s2);
  font-size: var(--t-ui);
  font-weight: 600;
  color: var(--fg);
}

/* the ticket in the brand red, like «مطلوب» and the minutes above it; green
   is kept for the moment a code works */
.cp-ask .cp-ico {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.cp-row {
  --shake-distance: 6px;
  --shake-overshoot: 4px;
  --shake-dur-a: 80ms;
  --shake-dur-b: 60ms;
  --shake-ease: cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  gap: var(--s2);
}

.cp-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding-inline: var(--s4);
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--t-body); /* 16px: iOS does not zoom the page */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  transition: box-shadow var(--t-state) var(--ease);
}

.cp-row input::placeholder {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

html[dir="rtl"] .cp-row input:placeholder-shown {
  text-align: right;
}

.cp-row input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--fg);
}

.cp-row[data-bad] input {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.cp-apply {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 84px;
  height: 48px;
  padding-inline: var(--s4);
  border-radius: var(--r-sm);
  background: var(--fg);
  color: var(--bg);
  font-size: var(--t-ui);
  font-weight: 700;
  transition:
    scale 140ms ease-out,
    opacity 200ms ease;
}

.cp-apply:active {
  scale: 0.96;
}

.cp-apply:disabled {
  opacity: 0.55;
}

.bk-coupon.is-busy .cp-apply {
  cursor: progress;
}

.cp-msg {
  min-height: 1.2em;
  margin-block: 6px 0;
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--accent);
}

.cp-msg:empty {
  min-height: 0;
}

.cp-row.is-shaking {
  animation: cp-shake calc(var(--shake-dur-a) * 2 + var(--shake-dur-b) * 2) linear;
}

@keyframes cp-shake {
  0%      { transform: translateX(0);                                 animation-timing-function: var(--shake-ease); }
  28.57%  { transform: translateX(var(--shake-distance));             animation-timing-function: var(--shake-ease); }
  57.14%  { transform: translateX(calc(var(--shake-distance) * -1)); animation-timing-function: var(--shake-ease); }
  78.57%  { transform: translateX(var(--shake-overshoot));            animation-timing-function: var(--shake-ease); }
  100%    { transform: translateX(0); }
}

/* the applied code: a ticket, perforated where it would tear off */
.cp-chip {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 52px;
  padding-inline: var(--s3) 6px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--saving) 6%, var(--surface));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--saving) 55%, transparent);
  color: var(--saving);
  -webkit-mask:
    radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}

.cp-chip[hidden] {
  display: none;
}

.cp-tick {
  --check-y-amount: 12px;
  --check-rotate-from: 60deg;
  --check-blur-from: 6px;
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-inline-start: 4px;
  border-radius: 50%;
  background: var(--saving);
  color: var(--surface);
}

.cp-tick svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cp-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--t-ui);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--fg);
}

.cp-off {
  flex: none;
  font-size: var(--t-ui);
  font-weight: 700;
}

.cp-remove {
  flex: none;
  margin-inline-start: auto;
  min-height: 40px;
  padding-inline: var(--s3);
  border-radius: calc(var(--r-sm) - 6px);
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cp-remove:hover {
  color: var(--fg);
}

/* a total with a coupon on it: before, struck and quiet; due, beside it */
.sum-was {
  margin-inline-end: 6px;
  font-size: 0.8em;
  font-weight: 400;
  color: var(--muted);
  text-decoration-thickness: 1.5px;
}

.sum-now {
  color: var(--saving);
}

/* the order card: what the coupon took off, under the total */
.stub-off {
  display: block;
  margin-block-start: 2px;
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--saving);
}

.stub-off[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .cp-row.is-shaking {
    animation: none;
  }
}

/* ---------------------------------------------------------------- «نفس السيارة؟» */
/* Last time's plate, untouched, at the moment of paying: the question takes
   the pay buttons' place, with the plate as the counter will read it. */
.bk-pay.is-asking > .pay-btn,
.bk-pay.is-asking > .pay-card,
.bk-pay.is-asking > #pay-soon {
  display: none;
}

.bk-sure {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--s3);
  padding: var(--s4);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.bk-sure-h {
  font-size: var(--t-title);
  font-weight: 700;
  line-height: var(--lh-tight);
}

.bk-sure-p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  font-size: var(--t-ui);
  color: var(--muted);
}

.bk-sure-p .plate {
  width: 10.5rem;
}

.bk-sure-acts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: var(--s2);
}

.bk-sure-acts .btn {
  padding-inline: var(--s3);
}

/* ---------------------------------------------------------------- the bar docked above checkout */
/* In checkout the bar sits above the panel (app.js layoutMorph moves both
   with `translate`, which the panel's own open/close `transform` composes
   with). The panel is drawn in front, so the bar passes behind it. */
.basket.is-docked .basket-body {
  z-index: 1;
}

/* checkout always has the bar docked above it, carrying the total, and a
   tap on the bar minimizes: the checkout's own copy of the sum goes, and the
   bar's chevron fades where it stands (no reflow while the bar travels); the
   ⌄ in the checkout's corner stays the one way down */
.basket[data-step="checkout"] .bk-head2 #bk-sum {
  display: none;
}

.bk-head2 .bk-min {
  margin-inline-start: auto;
}

.basket-chev {
  transition:
    transform 460ms var(--spring),
    opacity 200ms var(--ease);
}

.basket.is-docked .basket-chev {
  opacity: 0;
}

/* A coupon opens the docked bar a little, and the price becomes one block:
   the new price in the saving green, and right under it, on the same edge,
   the price before (struck) and what came off. Two lines on each side of
   the bar, the order's name over its count, the price over its story. */
.basket.has-cut {
  --bar-h: 72px;
}

.basket-price {
  display: grid;
  justify-items: end; /* both lines keep the price's own edge */
  row-gap: 5px;
}

.basket.has-cut .basket-sum {
  color: var(--saving-lit);
}

.bar-cut {
  display: none;
}

.basket.has-cut .bar-cut {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: var(--t-ui);
  line-height: 1;
  white-space: nowrap;
}

/* the price before: quieter, struck */
.bar-was {
  color: var(--cream-muted);
  text-decoration-thickness: 1.5px;
}

/* what came off, in the price's green, weighted like it */
.bar-pct {
  color: var(--saving-lit);
  -webkit-text-stroke: 0.03em currentColor;
  paint-order: stroke fill;
}

@media (prefers-reduced-motion: no-preference) {
  /* the line comes in with the bar as it opens, nothing after it */
  .basket.has-cut .bar-cut {
    animation: cut-in 420ms var(--ease) both;
  }
}



@keyframes cut-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------------------------------------------------------------- the working parts: IBM Plex Sans Arabic */
/* Chosen after a preview (25 Sep 2026). The working parts read in IBM Plex
   Sans Arabic, a sturdy sans with real weights, clear at small sizes and in
   a hurry; the brand's voice (the hero, headings, menu names and
   descriptions, the shop's name) stays Parastoo, and Latin stays Gilda
   everywhere: only the Arabic letters are Plex's (unicode-range). Weight 600
   is preloaded on the Arabic page; the others load when first used. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plex-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plex-arabic-500.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plex-arabic-600.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/plex-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --ui: "Gilda Display", "IBM Plex Sans Arabic", "Parastoo", serif;
}

:is(.basket, .bk-undo, .track, .cpop, .island, .cats-bar, .cats, .nav-sheet, .live, .btn, .tb, .lnk, .reel-chip, .add, .chip, .card-soldout) {
  font-family: var(--ui);
}

/* the shop's name keeps the brand's face, wherever it sits */
.isl-brand {
  font-family: var(--sans);
}

/* the staff's tools (board, admin, stock) are working parts from top to bottom */
body:is(.bd, .bd-out, .st, .st-out, .admin) {
  --sans: var(--ui);
}

/* ---------------------------------------------------------------- offers */
/* While an offer is live the menu costs less: the price before, struck and
   quiet, then the new one in the saving green. The menu's heading carries
   the offer's own line. */
.card-price.is-sale,
#sheet-price.is-sale {
  color: var(--saving);
}

.card-price s,
#sheet-price s,
.basket-row .pr s.was {
  margin-inline-end: 6px;
  font-size: 0.86em;
  color: var(--muted);
  text-decoration-thickness: 1.2px;
}

.menu-offer {
  margin-block-start: var(--s3);
}

.menu-offer span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-inline: var(--s4);
  border-radius: 17px;
  background: color-mix(in srgb, var(--saving) 6%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--saving) 32%, transparent);
  color: var(--saving);
  font-size: var(--t-small);
  font-weight: 600;
}

/* ---------------------------------------------------------------- the first screen: a chosen product */
/* A menu item's studio cut-out stands whole on the vanilla stage (the hero
   photo is cropped to fill; a cut-out is not), and its tag says what it is. */
.hero-stage.is-item img.poster {
  object-fit: contain;
  object-position: 50% 42%;
  padding: 6% 10% 16%;
  -webkit-mask-image: none;
  mask-image: none;
  transform: none;
}

.hero-open {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  cursor: pointer;
}

.hero-open:focus-visible {
  outline-offset: -6px;
}

.hero-item-tag {
  position: absolute;
  inset-block-end: var(--s4);
  left: 50%;
  translate: -50% 0;
  display: inline-flex;
  align-items: baseline;
  gap: var(--s3);
  max-width: calc(100% - 2 * var(--gut));
  padding: 9px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-1);
  white-space: nowrap;
  font-family: var(--ui);
  font-size: var(--t-small);
  mix-blend-mode: normal;
}

.hero-item-tag b {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.hero-item-tag .num.is-sale {
  color: var(--saving);
}

.hero-item-tag s {
  margin-inline-end: 5px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- the first screen: a video */
.hero.is-video {
  display: block;
  height: auto;
  padding-block-start: var(--s1);
}

.hv-frame {
  position: relative;
  height: calc(100svh - 68px - var(--s3));
  min-height: 30rem;
  max-height: 58rem;
  margin-inline: var(--s2);
  border-radius: var(--r-xl);
  /* clip, not hidden: hidden would make the frame a scroll container, and the
     words' scroll-driven drift would measure a scroll that never moves */
  overflow: clip;
  isolation: isolate;
  background: var(--ink);
  transform-origin: 50% 100%;
  will-change: transform;
}

.hv-stage {
  position: absolute;
  inset: 0;
}

.hv-poster,
.hv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hv-video {
  opacity: 0;
  transition: opacity 700ms var(--ease);
}

.hv-frame.is-playing .hv-video {
  opacity: 1;
}

/* the words sit on the film: a soft espresso veil, deepest where they are */
.hv-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 55% at 50% 50%, rgba(20, 14, 8, 0.42), transparent 75%),
    linear-gradient(to top, rgba(20, 14, 8, 0.55), rgba(20, 14, 8, 0.05) 45%, rgba(20, 14, 8, 0.3));
  pointer-events: none;
}

.hv-top {
  position: absolute;
  inset-block-start: var(--s4);
  inset-inline: var(--s4);
  z-index: 2;
  display: flex;
}

.hv-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s4);
  padding-inline: var(--s5);
  text-align: center;
  color: var(--cream);
}

.hv-h {
  max-width: 14ch;
  font-size: clamp(2.6rem, 11vw, 5.25rem);
  line-height: 1.08;
  color: var(--cream);
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.28);
}

.hv-h .w {
  display: inline-block;
}

.hv-line {
  max-width: 30ch;
  font-size: var(--t-lead);
  line-height: var(--lh-snug);
  color: var(--cream);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.hv-cta {
  margin-block-start: var(--s2);
}

.hv-cta .btn {
  min-width: 11rem;
}

.hv-toggle {
  position: absolute;
  inset-block-end: var(--s4);
  inset-inline-end: var(--s4);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 14, 8, 0.38);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--cream);
}

.hv-toggle .ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.hv-toggle .hv-play,
.hv-frame.is-paused .hv-toggle .hv-pause {
  display: none;
}

.hv-frame.is-paused .hv-toggle .hv-play {
  display: block;
}

.hv-toggle:focus-visible {
  outline-color: var(--cream);
}

.hero.is-video .hero-cats {
  margin-block-start: var(--s5);
}

/* arrival: the film settles from a little close, the words rise in one by
   one, then the line, then the button lands (after the loader, like the
   product hero) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero.is-video .hv-stage,
  .js .hero.is-video .hv-h .w,
  .js .hero.is-video .hv-line,
  .js .hero.is-video .hv-cta,
  .js .hero.is-video .hv-top {
    opacity: 0;
    animation: show-late 0s 3s forwards;
  }

  .js.is-ready .hero.is-video .hv-stage {
    animation: hv-in 1600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .js.is-ready .hero.is-video .hv-h .w {
    animation: hv-word 1000ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--w) * 80ms + 320ms);
  }

  .js.is-ready .hero.is-video .hv-line {
    animation: hv-word 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--n, 2) * 80ms + 480ms);
  }

  .js.is-ready .hero.is-video .hv-cta {
    animation: land 900ms var(--spring-pop) both;
    animation-delay: calc(var(--n, 2) * 80ms + 640ms);
  }

  .js.is-ready .hero.is-video .hv-top {
    animation: rise 800ms var(--ease) 200ms both;
  }
}

@keyframes hv-in {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hv-word {
  from {
    opacity: 0;
    transform: translateY(0.45em) scale(0.97);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* scrolling on: the frame recedes toward what comes next and the words
   drift up and go (app.js does the same from the scroll where this is not
   supported) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hv-frame {
      animation: hv-recede linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }

    .hv-copy {
      animation: hv-drift linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 60%;
    }
  }
}

@keyframes hv-recede {
  to {
    transform: scale(0.88);
  }
}

@keyframes hv-drift {
  to {
    opacity: 0;
    transform: translateY(-30%);
  }
}

@media (min-width: 64rem) {
  .hv-frame {
    margin-inline: var(--gut);
  }
}

/* ---------------------------------------------------------------- a word from the counter */
/* The board's set replies («جاهز خلال ٥ دقايق») reach the order card as a
   message: it comes out of the circle the order is on, its tail over that
   circle, above the steps and under the number, and reaches toward the
   middle of the card. Three dots first, then the words; a minute on it goes
   back into the circle. The line under the heading steps aside meanwhile.
   --at (0 to 2) is the circle; data-side the half of the card it is on. */
.track-msg {
  --tip: 6px;
  position: absolute;
  inset-block-end: calc(100% + 9px);
  inset-inline: 0;
  display: flex;
  pointer-events: none;
}

.track-bubble {
  position: relative;
  flex: none;
  margin-inline-start: calc((var(--at, 0) + 0.5) * 25% + var(--tip));
  max-width: calc(100% - (var(--at, 0) + 0.5) * 25% - var(--tip));
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 19px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--t-ui);
  font-weight: 500;
  line-height: 22px;
  text-align: start;
  visibility: hidden;
}

.track-msg[data-side="end"] .track-bubble {
  margin-inline: auto calc((3.5 - var(--at, 2)) * 25% + var(--tip));
  max-width: calc(100% - (3.5 - var(--at, 2)) * 25% - var(--tip));
}

.track-msg:is([data-state="typing"], [data-state="said"]) .track-bubble {
  visibility: visible;
}

/* the words keep their final width while the bubble grows to them */
.track-in {
  display: flex;
  align-items: center;
  min-height: 22px;
  overflow: clip;
}

.track-msg[data-side="end"] .track-in {
  justify-content: flex-end;
}

.track-said {
  flex: none;
  max-width: 100%;
  text-wrap: pretty;
}

.track-msg[data-state="typing"] .track-said {
  display: none;
}

.track-dots {
  display: none;
  align-items: center;
  gap: 5px;
  padding-inline: 2px;
}

.track-msg[data-state="typing"] .track-dots {
  display: flex;
}

.track-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}

@media (prefers-reduced-motion: no-preference) {
  .track-dots i {
    animation: track-dot 1.1s ease-in-out infinite;
  }
  .track-dots i:nth-child(2) {
    animation-delay: 0.15s;
  }
  .track-dots i:nth-child(3) {
    animation-delay: 0.3s;
  }
}

@keyframes track-dot {
  0%,
  60%,
  100% {
    opacity: 0.45;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* the tail, drawn the way Messages draws it: a curl of the bubble's colour
   cut by a curve of the card's */
.track-bubble::before,
.track-bubble::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  height: 16px;
}

.track-bubble::before {
  inset-inline-start: calc(var(--tip) * -1);
  width: 16px;
  border-end-end-radius: 13px 11px;
  background: var(--accent);
}

.track-bubble::after {
  inset-inline-start: -10px;
  width: 10px;
  border-end-end-radius: 8px;
  background: var(--bg);
}

.track-msg[data-side="end"] .track-bubble::before {
  inset-inline: auto calc(var(--tip) * -1);
  border-end-end-radius: 0;
  border-end-start-radius: 13px 11px;
}

.track-msg[data-side="end"] .track-bubble::after {
  inset-inline: auto -10px;
  border-end-end-radius: 0;
  border-end-start-radius: 8px;
}

/* the heading and its line step aside while the bubble is out (it speaks
   for the order meanwhile) and come back after it has gone in */
.track.has-msg .track-now,
.track.is-open.has-msg .track-sheet > .track-now {
  opacity: 0;
  transition: opacity 180ms ease;
}

/* ---------------------------------------------------------------- the number, and what it earns */
/* Checkout's mobile field (under the plate), the stamp card the number has
   earned so far, and a waiting reward offered above the coupon. */
.bk-phone {
  margin-block-start: var(--s4);
}

.bk-tel input {
  width: 100%;
  height: 48px;
  padding-inline: var(--s3);
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--t-lead);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--fg);
  transition: box-shadow var(--t-state) var(--ease);
}

.bk-tel input::placeholder {
  color: var(--muted);
  letter-spacing: 0.02em;
}

.bk-tel input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--fg);
}

.bk-tel input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.bk-stamps {
  display: grid;
  gap: var(--s2);
}

.stamp-card {
  padding: var(--s3);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.st-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  margin: 0 0 var(--s2);
  font-size: var(--t-ui);
}

.st-h small {
  flex: none;
  font-size: var(--t-caption);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.st-row {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 34px));
  gap: 5px;
}

.st-row i {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--muted);
}

.st-row i .ico {
  width: 58%;
  height: 58%;
}

.st-row i.is-gift {
  box-shadow: inset 0 0 0 1.5px var(--accent);
  color: var(--accent);
}

.st-row i.is-on {
  background: var(--accent);
  box-shadow: none;
  color: var(--on-accent);
}

.st-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.st-bar {
  position: relative;
}

.st-bar i {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  width: calc(var(--p) * 100%);
  background: var(--accent); /* square ends: the bar's own frame rounds them */
}

/* this order, before it is paid: one lighter piece under the solid, from the
   start to where this order would take it, so the two meet flush. It grows
   out of the solid's end, then a soft light runs along it once. */
.st-bar i.st-next {
  position: absolute;
  z-index: 0;
  inset-block: 0;
  inset-inline-start: 0;
  width: calc((var(--s) + var(--p)) * 100%);
  background: color-mix(in srgb, var(--accent) 38%, var(--bg));
  overflow: hidden;
  animation: st-grow 900ms cubic-bezier(0.22, 1, 0.36, 1) 150ms both;
}

.st-bar i.st-next::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%);
  animation: st-sheen 900ms cubic-bezier(0.65, 0, 0.35, 1) 950ms both;
}

[dir="rtl"] .st-bar i.st-next::after {
  transform: translateX(100%);
  animation-name: st-sheen-rtl;
}

.st-row i.is-next {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: none;
  color: var(--on-accent);
  animation: st-pop 450ms cubic-bezier(0.34, 1.45, 0.64, 1) calc(150ms + var(--k) * 70ms) both;
}

.st-plus {
  display: inline-block;
  margin-inline-start: 6px;
  unicode-bidi: isolate; /* "+١" never runs into the count before it */
  font-style: normal;
  color: color-mix(in srgb, var(--accent) 70%, var(--muted));
}

.st-gift {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: var(--s2) 0 0;
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--accent);
  animation: st-pop 450ms cubic-bezier(0.34, 1.45, 0.64, 1) 650ms both;
}

.st-gift svg {
  width: 18px;
  height: 18px;
  flex: none;
}

@keyframes st-grow {
  from { width: calc(var(--s) * 100%); }
}

@keyframes st-sheen {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes st-sheen-rtl {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

@keyframes st-pop {
  from { opacity: 0; transform: scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .st-bar i.st-next,
  .st-bar i.st-next::after,
  .st-row i.is-next,
  .st-gift {
    animation: none;
  }
}

.bk-rewards {
  display: grid;
  gap: var(--s2);
  margin-block-end: var(--s3);
}

/* the reward's free item, on its basket line */
.free-tag {
  margin-inline-end: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--t-micro);
  font-weight: 600;
}

/* a free item to pick: the eligible items as chips under the offer */
.rw-offer.is-pick {
  flex-wrap: wrap;
}

.rw-picks {
  flex: 1 1 100%;
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  padding-block: var(--s1);
  scrollbar-width: none;
}

.rw-pick {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--fg);
  font: inherit;
  font-size: var(--t-small);
  font-weight: 600;
  cursor: pointer;
  align-items: center;
}

.rw-pick small {
  font-weight: 400;
  color: var(--muted);
}

.rw-pick:active {
  scale: 0.96;
}

.rw-offer {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2);
  padding-inline-start: var(--s3);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}

.rw-offer > .ico {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.rw-offer span {
  flex: 1;
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.rw-offer b {
  font-size: var(--t-ui);
  font-weight: 600;
}

.rw-offer small {
  font-size: var(--t-caption);
  color: var(--muted);
}

.rw-btn {
  flex: none;
  min-height: 44px;
  padding-inline: var(--s4);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--t-ui);
  font-weight: 600;
  transition: scale var(--t-press) var(--ease);
}

.rw-btn:active {
  scale: 0.96;
}

.rw-btn:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.rw-offer.is-need .rw-btn {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--accent);
  color: var(--accent);
}

/* handed over: what the order earned the customer's number */
.track-earned {
  margin: calc(var(--s2) * -1) 0 var(--s4);
  font-size: var(--t-ui);
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  text-wrap: balance;
}

/* a returning number, on the home page: its reward, or how close it is */
/* the returning customer's reward: a note just under the header for a few
   seconds (app.js). It sits in the page, not fixed, and below the glass bar
   (z 44), so a scroll carries it up under the glass. */
.loy-pop {
  position: absolute;
  z-index: 43;
  inset-block-start: calc(env(safe-area-inset-top, 0px) + 76px);
  inset-inline: 0;
  width: max-content;
  max-width: calc(100% - 2 * var(--gut));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--sh-2);
  color: var(--fg);
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.loy-pop .loy-ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.loy-pop svg {
  width: 17px;
  height: 17px;
}

/* the earned line on the order: the way back to use it */
.track-use {
  display: flex;
  width: 100%;
  margin-block-start: var(--s3);
}

/* ---------------------------------------------------------------- legal */
/* the footer's policies and the shop's papers, quiet under the links */
.f-legal {
  display: grid;
  gap: var(--s2);
  margin-block-start: var(--s6);
  font-size: var(--t-caption);
  color: var(--cream-muted);
}

.f-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
}

.f-legal a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
}

.f-legal p {
  margin: 0;
  font-size: var(--t-micro);
  text-wrap: pretty;
}

/* the Privacy Policy and Terms pages (legal.js): one readable column */
.lg {
  background: var(--bg);
  color: var(--fg);
}

.lg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  width: min(100% - 2 * var(--s4), 44rem);
  margin-inline: auto;
  padding-block: max(var(--s4), env(safe-area-inset-top)) var(--s4);
  border-block-end: 1px solid var(--line);
}

.lg-brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
  color: inherit;
  text-decoration: none;
}

.lg-brand img {
  border-radius: 50%;
}

.lg-lang {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: var(--s3);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: inherit;
  text-decoration: none;
  font-size: var(--t-small);
}

.lg-main {
  width: min(100% - 2 * var(--s4), 44rem);
  margin-inline: auto;
  padding-block: var(--s6) calc(env(safe-area-inset-bottom, 0px) + var(--s9));
  line-height: 1.75;
}

.lg-main h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.15;
  text-wrap: balance;
}

.lg-date {
  margin: var(--s2) 0 var(--s6);
  font-size: var(--t-caption);
  color: var(--muted);
}

.lg-main section {
  margin-block-end: var(--s5);
}

.lg-main h2 {
  margin: 0 0 var(--s2);
  font-size: var(--t-title);
  line-height: 1.3;
}

.lg-main p,
.lg-main li {
  font-size: var(--t-body);
  text-wrap: pretty;
  max-width: 68ch;
}

.lg-main p {
  margin: 0;
}

.lg-main ul {
  margin: 0;
  padding-inline-start: 1.25em;
  display: grid;
  gap: var(--s2);
}

.lg-main a {
  color: var(--accent);
}

.lg-who {
  display: grid;
  gap: 2px;
  margin-block-start: var(--s6);
  padding: var(--s4);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font-size: var(--t-small);
  color: var(--muted);
}

.lg-who b {
  color: var(--fg);
  font-size: var(--t-body);
}

.lg-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  margin-block-start: var(--s5);
  font-size: var(--t-small);
}

/* ---------------------------------------------------------------- faq */
/* under the visit card: questions as quiet rows, each opens in place */
.faq {
  margin-block-start: var(--s6);
}

.faq h3 {
  margin: 0 0 var(--s2);
  font-size: var(--t-title);
}

.faq details {
  border-block-end: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 52px;
  padding-block: var(--s3);
  font-size: var(--t-body);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  /* a down chevron in either direction: physical sides on purpose */
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  rotate: 45deg;
  translate: 0 -2px;
  opacity: 0.6;
  transition: rotate var(--t-state) ease, translate var(--t-state) ease;
}

.faq details[open] summary::after {
  rotate: 225deg;
  translate: 0 2px;
}

.faq summary:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.faq details p {
  margin: 0 0 var(--s4);
  color: var(--muted);
  font-size: var(--t-ui);
  line-height: 1.7;
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

/* ------------------------------------------------------------ one-tap wallet */
/* The gateway's own Apple Pay / Google Pay button, prepared in a frame of
   the checkout (app.js, the one-tap wallet), sits exactly where ours was. */
.bk-pay {
  position: relative;
}
.bk-prep {
  display: block;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  background: transparent;
  color-scheme: normal;
}
.bk-prep[hidden],
.bk-pay.is-asking > .bk-prep,
.bk-pay.is-asking > .pay-google-official,
.bk-pay.is-prepped > .pay-apple,
.bk-pay.is-prepped > .pay-google-official {
  display: none;
}
/* Google Pay's frame while it loads: full size, unseen, untappable, out of
   the flow, so Google draws its button once and it is shown only then */
.bk-pay > .bk-prep.is-loading {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
}
/* the prepared button arrives softly, once, already in its final form */
.bk-pay > .bk-prep:not([hidden]):not(.is-loading) {
  animation: prep-in 0.28s ease-out both;
}
@keyframes prep-in {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bk-pay > .bk-prep:not([hidden]):not(.is-loading) {
    animation: none;
  }
}

/* Google's own Google Pay button (beside Apple Pay, or when the one-tap one
   cannot be prepared), the same size as the others; its spot is kept, empty,
   while the one-tap one loads */
.pay-google-official {
  height: 52px;
  border-radius: 26px;
  overflow: hidden;
}
.pay-google-official > div,
.pay-google-official button {
  width: 100% !important;
  height: 52px !important;
}

/* one wallet button on this phone: the whole row */
.bk-pay.is-one-wallet > .pay-btn,
.bk-pay.is-one-wallet > .pay-google-official,
.bk-pay.is-one-wallet > .bk-prep {
  grid-column: 1 / -1;
}

/* the payment on its way to the gateway and perhaps the card's bank
   (3-D Secure): the frame takes the whole screen, so that page is seen whole */
.bk-pay > .bk-prep.is-paying {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100%;
  height: 100%;
  border-radius: 0;
  opacity: 1;
  pointer-events: auto;
  background: var(--bg);
  animation: none;
}

/* ------------------------------------------------------------ order chat */
/* «أحتاج مساعدة» under the card's two buttons: the whole row, quieter */
.tact-help {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 60px;
  padding: var(--s2) var(--s4);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--fg) 6%, var(--surface));
  color: var(--fg);
  text-align: start;
  transition: scale 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.tact-help:active {
  scale: 0.96;
}

.tact-help-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  flex: none;
}

.tact-help-ico .ico {
  width: 18px;
  height: 18px;
}

.tact-help .tact-tx b {
  font-size: var(--t-small);
}

/* the counter wrote: a red dot until it is read */
.help-dot {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  scale: 0;
  transition: scale 260ms var(--spring-pop, cubic-bezier(0.34, 1.56, 0.64, 1));
}

.tact-help.has-new .help-dot {
  scale: 1;
}

/* the chat: a sheet that rises from the foot over the card */
.chat {
  position: fixed;
  inset: 0;
  z-index: 99990;
}

.chat[hidden] {
  display: none;
}

.chat-scrim {
  position: absolute;
  inset: 0;
  background: oklch(0 0 0 / 0.38);
  opacity: 0;
  transition: opacity 280ms ease;
}

.chat.is-open .chat-scrim {
  opacity: 1;
}

.chat-sheet {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  max-height: min(78dvh, 640px);
  max-width: 560px;
  margin-inline: auto;
  padding: var(--s4) var(--s4) calc(var(--s4) + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--bg);
  box-shadow: 0 -12px 40px oklch(0 0 0 / 0.18);
  translate: 0 104%;
  transition: translate 320ms cubic-bezier(0.32, 0.72, 0, 1);
}

.chat.is-open .chat-sheet {
  translate: 0 0;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-block-end: var(--s3);
  box-shadow: inset 0 -1px 0 var(--line);
}

.chat-title {
  display: grid;
  gap: 2px;
}

.chat-title b {
  font-size: var(--t-ui);
  font-weight: 700;
}

.chat-title small {
  font-size: var(--t-caption);
  color: var(--muted);
}

.chat-x {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 7%, transparent);
  flex: none;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  min-height: 120px;
  margin: 0;
  padding: var(--s3) 0;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-hello {
  margin: auto;
  max-width: 28ch;
  font-size: var(--t-small);
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
}

.chat-m {
  display: grid;
  gap: 2px;
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: var(--t-small);
  line-height: 1.45;
}

.chat-m p {
  margin: 0;
  overflow-wrap: anywhere;
}

.chat-m small {
  font-size: var(--t-caption);
  opacity: 0.7;
}

.chat-m.is-me {
  align-self: flex-end;
  background: var(--ink);
  color: var(--cream);
  border-end-end-radius: 6px;
}

.chat-m.is-shop {
  align-self: flex-start;
  background: var(--surface);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
  border-end-start-radius: 6px;
}

.chat-note {
  margin: 0 0 var(--s2);
  font-size: var(--t-caption);
  font-weight: 600;
  color: var(--accent);
}

.chat-chips {
  display: flex;
  gap: var(--s2);
  padding-block: var(--s2);
  overflow-x: auto;
  scrollbar-width: none;
}

.chat-chips[hidden],
.chat-form[hidden] {
  display: none;
}

.chat-chip {
  flex: none;
  min-height: 40px;
  padding-inline: var(--s3);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--t-small);
  font-weight: 600;
  white-space: nowrap;
  transition: scale 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.chat-chip:active {
  scale: 0.96;
}

.chat-form {
  display: flex;
  gap: var(--s2);
  padding-block-start: var(--s2);
}

.chat-in {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding-inline: var(--s4);
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
}

.chat-send {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent, #fff);
  flex: none;
  transition: scale 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.chat-send:active {
  scale: 0.96;
}

[dir="rtl"] .chat-send .ico {
  scale: -1 1;
}

@media (prefers-reduced-motion: reduce) {
  .chat-sheet,
  .chat-scrim {
    transition: none;
  }
}
