/* The restaurant's public website: coffee hospitality.
   The page receives a family the way a home receives a guest. Three colours from the website settings carry it
   (see website/palette.py): --w-dark is the date-brown field of the welcome and the story, --w-hi is qahwa saffron
   for the greeting and the brass hairlines, --w-brand is the ember reserved for the order action alone.
   Reading surfaces are finjan porcelain; cardamom green marks only the open-now dot. */

.site {
  --w-porcelain: #fafaf9;
  --w-porcelain-2: #ebe9e6;
  --w-ink: #2e140e;
  --w-ink-soft: #6a4a3d;
  --w-on-dark: #f6efe4;
  --w-on-dark-soft: #d9c9b6;
  --w-cardamom: #9bb05a;
  --w-brass: color-mix(in srgb, var(--w-hi) 72%, var(--w-dark));
  --w-rule: color-mix(in srgb, var(--w-hi) 45%, transparent);
  --w-display: "Aref Ruqaa", "Alexandria", serif;
  --w-text: "Alexandria", var(--font);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  font-family: var(--w-text);
  background: var(--w-porcelain); color: var(--w-ink); font-size: 16px; line-height: 1.7;
  caret-color: var(--w-brand);
  scrollbar-color: var(--w-brass) var(--w-porcelain-2);
}
.site ::selection { background: var(--w-hi); color: var(--w-on-hi); }
.site p { text-wrap: pretty; }
.site h1, .site h2, .site h3 { margin: 0; text-wrap: balance; letter-spacing: 0; }
.site h2 { font-family: var(--w-display); font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.3; }
.site a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.site :focus-visible { outline: 2px solid var(--w-brand); outline-offset: 3px; border-radius: 6px; }
.site .num { font-variant-numeric: tabular-nums; }
.s-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.s-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.s-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--w-hi); color: var(--w-on-hi) !important; padding: 8px 14px; border-radius: 8px; }
.s-skip:focus { top: 12px; }

/* The one saturated action: ordering. Everything else is a quiet link. */
.s-order {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 22px;
  border: 0; border-radius: 12px; background: var(--w-brand); color: #fff !important; font: 600 1rem/1.2 var(--w-text);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 12px 26px -14px color-mix(in srgb, var(--w-brand) 70%, #000);
  transition: background-color .2s, transform .2s var(--ease-out);
}
.s-order:hover { background: color-mix(in srgb, var(--w-brand) 86%, #000); }
.s-order:active { transform: translateY(1px); }
.s-order .icon { width: 20px; height: 20px; }
.s-order-lg { min-height: 54px; padding: 14px 30px; font-size: 1.08rem; }
.s-order-sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.s-quiet { font-weight: 500; color: inherit; text-decoration: underline; text-decoration-color: var(--w-rule); }
.s-quiet:hover { text-decoration-color: currentColor; }

/* Header: part of the welcome field, so the greeting starts at the top of the page */
.s-head { position: sticky; top: 0; z-index: 30; background: var(--w-dark); color: var(--w-on-dark); border-bottom: 1px solid var(--w-rule); }
.s-head-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.s-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.s-brand img { width: 40px; height: 40px; object-fit: contain; }
.s-brand b { font-family: var(--w-display); font-weight: 700; font-size: 1.55rem; line-height: 1; }
.s-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.s-nav a { color: var(--w-on-dark-soft); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 0; }
.s-nav a:hover { color: var(--w-on-dark); }
.s-tools { display: flex; align-items: center; gap: 10px; }
.s-tools .btn-ghost { color: var(--w-on-dark-soft); border-color: transparent; background: transparent; min-height: 44px; }
.s-tools .btn-ghost:hover { color: var(--w-on-dark); background: color-mix(in srgb, var(--w-on-dark) 8%, transparent); }

/* The welcome */
.s-welcome { background: var(--w-dark); color: var(--w-on-dark); padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.s-welcome-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.s-welcome h1 { display: grid; gap: 10px; }
.s-greet {
  font-family: var(--w-display); font-weight: 700; color: var(--w-hi);
  font-size: clamp(4.2rem, 10vw, 6rem); line-height: 1.05;
}
.s-tagline { font: 500 clamp(1.25rem, 2.2vw, 1.6rem)/1.5 var(--w-text); color: var(--w-on-dark); max-width: 26ch; }
.s-status { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0; color: var(--w-on-dark-soft); font-size: .98rem; }
.s-status i { width: 9px; height: 9px; border-radius: 50%; background: var(--w-cardamom); box-shadow: 0 0 0 4px color-mix(in srgb, var(--w-cardamom) 22%, transparent); }
.s-status.is-closed i { background: var(--w-on-dark-soft); box-shadow: none; }

/* The tray: porcelain set inside a double brass rim, holding the order form */
.s-tray {
  margin-top: 30px; padding: 22px; border-radius: 22px; background: var(--w-porcelain); color: var(--w-ink);
  border: 1px solid var(--w-brass); outline: 1px solid var(--w-rule); outline-offset: 5px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.s-tray fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.s-tray legend { padding: 0; margin-bottom: 14px; font-weight: 600; font-size: 1rem; color: var(--w-ink); }
.s-tray-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.s-choice {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; min-height: 64px;
  border-radius: 14px; border: 1px solid var(--w-porcelain-2); background: #fff; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.s-choice:hover { border-color: var(--w-rule); }
.s-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.s-choice:has(input:checked) { border-color: var(--w-brand); background: color-mix(in srgb, var(--w-brand) 6%, #fff); box-shadow: 0 0 0 1px var(--w-brand) inset; }
.s-choice:has(input:focus-visible) { outline: 2px solid var(--w-brand); outline-offset: 3px; }
.s-choice-photo { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--w-porcelain-2); }
.s-choice-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-choice-photo img.is-mark, .s-dish-photo img.is-mark { object-fit: contain; padding: 8px; }
.s-choice-text { display: grid; gap: 2px; min-width: 0; }
.s-choice-text b { font-weight: 600; font-size: .98rem; line-height: 1.35; }
.s-choice-text span { color: var(--w-ink-soft); font-size: .88rem; }
.s-nw { white-space: nowrap; }
.s-cal::before { content: "·"; margin: 0 6px; }
.s-tray-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 18px; }
.s-welcome-text > .s-tray-foot { margin-top: 30px; }
.s-welcome .s-quiet { color: inherit; }

/* The frame: the chosen meal, served into a brass-rimmed porcelain mat */
.s-frame { margin: 0; padding: 14px; border-radius: 28px; background: color-mix(in srgb, var(--w-on-dark) 6%, transparent); border: 1px solid var(--w-rule); }
.s-frame-in { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: color-mix(in srgb, #000 25%, var(--w-dark)); }
.s-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease-out), transform .9s var(--ease-out); }
.s-frame img.is-on { opacity: 1; transform: none; }
.s-frame img.is-mark { object-fit: contain; padding: 18%; }

/* The one load sequence: the greeting is written in, the rim draws, the tray is set down */
@media (prefers-reduced-motion: no-preference) {
  .s-greet { animation: s-ink 1.1s var(--ease-out) both; }
  .s-status { animation: s-rise .8s .9s var(--ease-out) both; }
  .s-word { display: inline-block; animation: s-rise .7s var(--ease-out) both; animation-delay: calc(.4s + var(--w, 0) * 70ms); }
  .s-tray, .s-welcome-text > .s-tray-foot { animation: s-rise .9s .55s var(--ease-out) both; }
  .s-frame { animation: s-settle 1.1s .2s var(--ease-out) both; }
}
@keyframes s-ink { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
[dir=ltr] .s-greet { animation-name: s-ink-ltr; }
@keyframes s-ink-ltr { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes s-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes s-settle { from { opacity: 0; transform: scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* How it is made: real steps on the qahwa field, joined by the brass thread */
.s-how { background: var(--w-hi); color: var(--w-on-hi); padding: clamp(56px, 7vw, 96px) 0; }
.s-how h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.s-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; counter-reset: none; }
.s-steps li { position: relative; padding: 22px 0 0; padding-inline-end: 36px; border-top: 1.5px solid color-mix(in srgb, var(--w-on-hi) 55%, transparent); }
.s-step-no { display: block; font-family: var(--w-display); font-weight: 700; font-size: 2.6rem; line-height: 1; margin-bottom: 12px; }
.s-steps p { margin: 0; font-size: 1.12rem; font-weight: 500; line-height: 1.6; max-width: 26ch; }

/* The menu: a printed list on porcelain, name and price joined by a dotted leader */
.s-menu { padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 96px); }
.s-menu-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.s-menu-head p { margin: 0; color: var(--w-ink-soft); }
.s-tabs {
  position: sticky; top: var(--head-h, 72px); z-index: 5; display: flex; gap: 6px 28px; overflow-x: auto; scrollbar-width: none;
  margin: 26px 0 34px; padding: 4px 0 0; background: var(--w-porcelain); border-bottom: 1px solid var(--w-porcelain-2);
}
.s-tabs::-webkit-scrollbar { display: none; }
.s-tabs button {
  flex: none; min-height: 48px; padding: 8px 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: none; color: var(--w-ink-soft); font: 500 1.02rem/1.2 var(--w-text); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.s-tabs button:hover { color: var(--w-ink); }
.s-tabs button[aria-pressed=true] { color: var(--w-ink); font-weight: 700; border-bottom-color: var(--w-brand); }
.s-tab-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--w-brand); border-radius: 2px; opacity: 0; pointer-events: none; }
.s-tab-ink.is-ready { opacity: 1; }
.s-tab-ink.is-ready ~ button[aria-pressed=true] { border-bottom-color: transparent; }
.s-category[hidden] { display: none; }
.s-category h3 { font-family: var(--w-display); font-weight: 700; font-size: 1.9rem; margin-bottom: 8px; }
.s-dishes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.s-dishes li { border-bottom: 1px solid var(--w-porcelain-2); }
.s-dish { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; padding: 20px 0; text-decoration: none; color: inherit; }
.s-dish-photo { width: 88px; height: 88px; border-radius: 14px; overflow: hidden; background: var(--w-porcelain-2); }
.s-dish-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-out); }
.s-dish:hover .s-dish-photo img { transform: scale(1.05); }
.s-dish-text { display: grid; gap: 6px; align-content: start; min-width: 0; }
.s-dish-line { display: flex; align-items: baseline; gap: 10px; }
.s-dish-line b { font-weight: 600; font-size: 1.08rem; line-height: 1.4; }
.s-leader { flex: 1; min-width: 20px; border-bottom: 2px dotted color-mix(in srgb, var(--w-ink) 22%, transparent); transform: translateY(-5px); }
.s-dish-price { flex: none; font-weight: 700; font-size: 1.08rem; }
.s-dish-price small { font-weight: 500; color: var(--w-ink-soft); font-size: .8rem; }
.s-dish-desc { color: var(--w-ink-soft); font-size: .93rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-dish-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--w-ink-soft); font-size: .85rem; }
.s-best { color: var(--w-ink); font-weight: 600; }
.s-best::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--w-brand); margin-inline-end: 6px; vertical-align: middle; }
.s-add { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; color: var(--w-brand); font-weight: 600; }
.s-add .icon { width: 16px; height: 16px; }
.s-dish:hover .s-add { text-decoration: underline; text-underline-offset: 4px; }
.s-more { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--w-ink); text-decoration-color: var(--w-brand); }
.s-menu-foot { margin-top: 44px; }

/* The story: back on the date field, the first line set large as the restaurant's own words */
.s-story { background: var(--w-dark); color: var(--w-on-dark); padding: clamp(64px, 8vw, 110px) 0; }
.s-story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.s-story-grid.is-text-only { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.s-story-photo { margin: 0; padding: 12px; border-radius: 26px; border: 1px solid var(--w-rule); }
.s-story-photo img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 16px; }
.s-story-photo figcaption { margin-top: 12px; color: var(--w-on-dark-soft); }
.s-story-photo figcaption b { color: var(--w-hi); font-size: 1.4rem; }
.s-story-text h2 { color: var(--w-hi); font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.45; }
.s-story-text p { color: var(--w-on-dark-soft); font-size: 1.05rem; max-width: 62ch; margin: 18px 0 0; }
.s-sayings { list-style: none; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--w-rule); display: flex; flex-wrap: wrap; gap: 8px 28px; }
.s-sayings li { font-family: var(--w-display); font-size: 1.3rem; color: var(--w-on-dark); white-space: nowrap; }
.s-sayings li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-inline-end: 10px; border-radius: 50%; background: var(--w-hi); vertical-align: middle; }
.s-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-top: 44px; }
.s-gallery figure { margin: 0; }
.s-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }
.s-gallery figcaption { margin-top: 8px; color: var(--w-on-dark-soft); font-size: .9rem; }

/* Visit: plain facts on porcelain, ruled like a ledger */
.s-visit { padding: clamp(64px, 8vw, 104px) 0; }
.s-visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0 40px; margin: 32px 0 0; }
.s-visit-grid > div { padding: 20px 0 24px; border-top: 1px solid color-mix(in srgb, var(--w-ink) 18%, transparent); }
.s-visit-grid dt { display: flex; align-items: center; gap: 8px; color: var(--w-ink-soft); font-size: .92rem; margin-bottom: 10px; }
.s-visit-grid dt .icon { width: 18px; height: 18px; color: var(--w-brass); }
.s-visit-grid dd { margin: 0; display: grid; gap: 6px; }
.s-visit-grid dd b { font-size: 1.2rem; font-weight: 600; line-height: 1.45; }
.s-visit-grid dd span { color: var(--w-ink-soft); }
.s-visit-grid dd a { font-weight: 500; text-decoration-color: var(--w-rule); }

/* The close: one line in the restaurant's hand, and the order */
.s-closer { background: var(--w-dark); color: var(--w-on-dark); padding: clamp(56px, 7vw, 88px) 0; border-bottom: 1px solid var(--w-rule); }
.s-closer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.s-closer h2 { color: var(--w-hi); max-width: 18ch; }

/* Footer */
.s-foot { background: color-mix(in srgb, #000 28%, var(--w-dark)); color: var(--w-on-dark-soft); padding: 56px 0 26px; font-size: .95rem; }
.s-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.s-foot-brand { display: grid; gap: 8px; justify-items: start; }
.s-foot-brand img { width: 46px; height: 46px; object-fit: contain; }
.s-foot-brand b { font-family: var(--w-display); font-size: 1.6rem; color: var(--w-on-dark); }
.s-foot-brand p { margin: 0; max-width: 34ch; }
.s-foot-col { display: grid; gap: 4px; align-content: start; }
.s-foot-col a { text-decoration: none; padding: 6px 0; }
.s-foot-col a:hover { color: var(--w-on-dark); text-decoration: underline; }
.s-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--w-rule); font-size: .85rem; }
.s-staff { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; text-decoration: none; padding: 10px 0; }
.s-staff:hover { color: var(--w-on-dark); }
.s-staff .icon { width: 15px; height: 15px; }

/* Phones: the order stays one thumb away */
.s-order-bar { display: none; }
@media (max-width: 900px) {
  .s-nav { display: none; }
  .s-welcome-grid { grid-template-columns: minmax(0, 1fr); }
  /* Greeting first, then the meal served, then the tray to order it */
  .s-welcome-grid { gap: 0; }
  .s-welcome-text { display: contents; }
  .s-frame { order: 3; max-width: 560px; width: 100%; justify-self: center; padding: 8px; margin-top: 26px; border-radius: 22px; }
  .s-frame-in { aspect-ratio: 16 / 10; border-radius: 15px; }
  .s-tray, .s-welcome-text > .s-tray-foot { order: 4; }
  .s-dishes { grid-template-columns: minmax(0, 1fr); }
  .s-story-grid { grid-template-columns: minmax(0, 1fr); }
  .s-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-foot-brand { grid-column: 1 / -1; }
  .s-order-bar {
    display: flex; position: fixed; z-index: 40; inset-inline: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
    transition: transform .35s var(--ease-out), opacity .35s;
  }
  .s-order-bar.is-tucked { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .s-foot { padding-bottom: 96px; }
}
@media (max-width: 560px) {
  .s-wrap { padding: 0 18px; }
  .s-head-in { gap: 12px; min-height: 64px; }
  .s-brand b { font-size: 1.3rem; }
  .s-tools .s-order-sm { display: none; }
  .s-frame { display: none; }
  .s-tray { padding: 14px; border-radius: 18px; margin-top: 22px; }
  .s-tray-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .s-choice { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; }
  .s-choice-photo { width: 100%; height: 76px; }
  .s-choice-text b { font-size: .92rem; }
  .s-choice-text span { font-size: .8rem; }
  .s-choice-meta { display: grid; }
  .s-cal::before { display: none; }
  .s-tray-foot .s-order-lg { width: 100%; }
  .s-dish { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .s-dish-photo { width: 72px; height: 72px; }
  .s-closer .s-order-lg { width: 100%; }
}

/* Motion. The welcome's load sequence is above; everything here follows a visitor's action or arrival.
   With reduced motion none of it runs and every section is simply there. */
.s-head-in { transition: min-height .35s var(--ease-out); }
.s-head { transition: box-shadow .35s var(--ease-out); }
.s-head.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8); }
.s-head.is-scrolled .s-head-in { min-height: 60px; }
.s-brand img { transition: transform .35s var(--ease-out); }
.s-head.is-scrolled .s-brand img { transform: scale(.88); }
.s-order .icon { transition: transform .25s var(--ease-out); }
.s-order:hover .icon { transform: translateY(-2px) rotate(-8deg); }
.s-choice-photo img { transition: transform .4s var(--ease-out); }
.s-choice:has(input:checked) .s-choice-photo img { transform: scale(1.06); }
.s-choice:active { transform: scale(.98); }
.s-choice { transition: border-color .2s, box-shadow .2s, background-color .2s, transform .15s; }

@media (prefers-reduced-motion: no-preference) {
  html:has(.site) { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h, 72px) + 12px); }
  .s-tab-ink { transition: transform .45s var(--ease-out), width .45s var(--ease-out); }

  /* Serving: the chosen meal's photo travels from the tray into the frame */
  ::view-transition-group(served) { animation-duration: .6s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  ::view-transition-old(served), ::view-transition-new(served) { height: 100%; object-fit: cover; overflow: clip; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

  /* Moving to the ordering app fades rather than flashing white */
  @view-transition { navigation: auto; }

  /* Menu: the chosen section's dishes come in as a list (replays when another section is shown) */
  .s-motion .s-menu.is-in .s-category:not([hidden]) .s-dishes li { animation: s-rise .55s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 7) * 55ms); }
  .s-motion .s-menu:not(.is-in) .s-dishes li { opacity: 0; }

  /* How we make it: the brass thread is drawn step by step, each step arriving as its stretch is drawn */
  .s-motion .s-steps li { border-top-color: transparent; }
  .s-motion .s-steps li::before {
    content: ""; position: absolute; top: -1.5px; inset-inline: 0; height: 1.5px; background: color-mix(in srgb, var(--w-on-hi) 55%, transparent);
    transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 260ms);
  }
  [dir=ltr] .s-motion .s-steps li::before { transform-origin: left; }
  .s-motion .s-how.is-in .s-steps li::before { transform: none; }
  .s-motion .s-steps li > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 260ms + 220ms); }
  .s-motion .s-how.is-in .s-steps li > * { opacity: 1; transform: none; }

  /* Story: the photo is unveiled like a curtain drawn aside, then the words settle */
  .s-motion .s-story-photo img { clip-path: inset(0 0 0 100%); transition: clip-path 1.1s var(--ease-out); }
  [dir=ltr] .s-motion .s-story-photo img { clip-path: inset(0 100% 0 0); }
  .s-motion .s-story.is-in .s-story-photo img { clip-path: inset(0 0 0 0); }
  .s-motion .s-story-text > * { opacity: 0; filter: blur(6px); transition: opacity .8s var(--ease-out), filter .8s var(--ease-out); transition-delay: .35s; }
  .s-motion .s-story.is-in .s-story-text > * { opacity: 1; filter: none; }
  .s-motion .s-sayings li { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(.7s + var(--i, 0) * 120ms); }
  .s-motion .s-story.is-in .s-sayings li { opacity: 1; transform: none; }

  /* The close is written in the restaurant's hand, like the greeting */
  .s-motion .s-closer h2 { clip-path: inset(0 0 0 100%); transition: clip-path 1.1s var(--ease-out); }
  [dir=ltr] .s-motion .s-closer h2 { clip-path: inset(0 100% 0 0); }
  .s-motion .s-closer.is-in h2 { clip-path: inset(0 0 0 0); }
}

/* Printed or saved pages show every section whatever the motion state */
@media print {
  .s-motion .s-dishes li, .s-motion .s-steps li > *, .s-motion .s-story-text > *, .s-motion .s-sayings li { opacity: 1 !important; transform: none !important; filter: none !important; }
  .s-motion .s-story-photo img, .s-motion .s-closer h2 { clip-path: none !important; }
}

/* Premium layer: the opening curtain, a full-height welcome, a header that steps aside, depth and grain. */

/* The curtain: two date-brown panels part around the rooster on the first visit of a session */
.s-curtain { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none; }
.s-curtain i { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--w-dark); transition: transform 1s cubic-bezier(.76, 0, .24, 1); }
.s-curtain i:first-child { left: 0; }
.s-curtain i:nth-child(2) { right: 0; }
.s-curtain img { position: relative; width: 84px; height: 84px; object-fit: contain; animation: s-breathe 1.2s ease-in-out infinite alternate; transition: opacity .35s, transform .6s var(--ease-out); }
.s-curtain.is-open i:first-child { transform: translateX(-100%); }
.s-curtain.is-open i:nth-child(2) { transform: translateX(100%); }
.s-curtain.is-open img { opacity: 0; transform: scale(1.25); animation: none; }
@keyframes s-breathe { from { opacity: .55; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
/* The welcome waits behind the curtain, then plays as it opens */
.s-entering .s-greet, .s-entering .s-word, .s-entering .s-status, .s-entering .s-tray,
.s-entering .s-welcome-text > .s-tray-foot, .s-entering .s-frame { animation-play-state: paused; }

/* A full-height welcome on large screens */
@media (min-width: 901px) {
  .s-welcome { min-height: calc(100svh - var(--head-h, 72px)); display: grid; align-items: center; }
  .s-greet { font-size: clamp(4.5rem, 8.4vw, 7rem); }
}

/* Header: steps aside while reading down, returns on the way up; the menu tabs take its place */
.s-head { transition: box-shadow .35s var(--ease-out), transform .45s var(--ease-out); }
html.s-head-hidden .s-head { transform: translateY(-100%); }
.s-tabs { transition: top .45s var(--ease-out); }
html.s-head-hidden .s-tabs { top: 0; }

/* Depth: the meal frame drifts slower than the page and tilts toward the pointer */
.s-frame { translate: 0 var(--drift, 0); }
.s-frame-in { transition: transform .5s var(--ease-out); transform-style: preserve-3d; }
.s-order { transition: background-color .2s, transform .2s var(--ease-out), translate .35s var(--ease-out); }

/* Grain: a faint photographic texture on the date-brown fields, so they read as material, not flat colour */
.s-welcome, .s-story, .s-closer { position: relative; isolation: isolate; }
.s-welcome::before, .s-story::before, .s-closer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .s-curtain { display: none; }
  .s-frame { translate: none; }
  .s-head, html.s-head-hidden .s-head { transform: none; }
}
/* Whatever happens to the page script, the curtain never stays over the page */
.s-curtain { animation: s-curtain-away 0s 2.5s forwards; }
@keyframes s-curtain-away { to { visibility: hidden; } }
