/* Shari: sushi bar website concept by Mint Labs. Fictional brand. */
:root {
  --bd: #dedad5;        /* the film's seamless backdrop: keep the page the same colour */
  --paper: #ebe8e3;
  --ink: #171614;
  --ink-soft: #57534d;
  --tuna: #a8291c;
  --line: rgba(23, 22, 20, .15);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --side: max(20px, 5.5vw);
  --top-h: 102px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bd); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--sans); background: var(--bd); }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
section[id], .mxs-step { scroll-margin-top: var(--top-h); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 78%; text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--tuna); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bd); padding: 10px 14px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 20; }
.concept-bar { margin: 0; padding: 6px var(--side); background: var(--ink); color: var(--bd); font-size: 11.5px; letter-spacing: .02em; text-align: center; }
.concept-bar a { color: inherit; text-underline-offset: 2px; }
.bar { display: flex; align-items: center; gap: 24px; padding: 14px var(--side); background: var(--bd); }
.logo { margin-right: auto; font-weight: 800; font-stretch: 112%; font-size: 21px; line-height: 1; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.logo span { color: var(--tuna); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:not(.nav-book):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-book, .pill { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bd);
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.nav-book:hover, .pill:hover { background: var(--tuna); }
.pill:active { transform: scale(.98); }

/* ---------- shared type ---------- */
.eyebrow { margin: 0 0 16px; color: var(--tuna); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow span { display: inline-block; margin-right: 10px; padding: 3px 8px; border: 1px solid currentColor; border-radius: 999px; letter-spacing: .06em; }
.lede { margin: 0; max-width: 36ch; color: var(--ink-soft); font-size: clamp(15px, 1.15vw, 17px); }
.text-link { display: inline-flex; gap: 8px; align-items: center; padding: 0 0 2px; border: 0; border-bottom: 1px solid var(--line); background: none;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.text-link:hover { border-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
h1 { font-size: clamp(54px, 7.2vw, 120px); line-height: .9; margin-bottom: 22px; }
h2 { font-size: clamp(42px, 5.6vw, 92px); line-height: .9; margin-bottom: 20px; }
.fine { margin: 32px 0 0; font-size: 13px; color: var(--ink-soft); }

/* ---------- story: still layout (no JS, reduced motion, data saver, missing frames) ---------- */
.story { padding: calc(var(--top-h) + 40px) var(--side) 40px; }
.story .poster, .story .mxs-canvas, .mxs-watch, .mxs-hint, .scroll-cue, .mxs-loading, .rail { display: none; }
.mxs-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 6vw; align-items: center; padding: 24px 0; }
.mxs-step .still { grid-row: 1 / span 8; grid-column: 2; width: 100%; max-width: 560px; justify-self: center;
  -webkit-mask: radial-gradient(closest-side, #000 82%, transparent); mask: radial-gradient(closest-side, #000 82%, transparent); }
.mxs-step > :not(.still) { grid-column: 1; }
.mxs-step:nth-child(even of .mxs-step) .still { grid-column: 1; }
.mxs-step:nth-child(even of .mxs-step) > :not(.still) { grid-column: 2; }
/* missing frames: the engine may already have faded later captions inline, so force every caption back */
.story.mxs-static .mxs-step { opacity: 1 !important; visibility: visible !important; }

/* ---------- story: film layout (motion wanted, frames found) ---------- */
.film .story:not(.mxs-static) { padding: 0; }
.film .story:not(.mxs-static) .mxs-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bd); }
.film .story:not(.mxs-static) .poster,
.film .story:not(.mxs-static) .mxs-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.film .story:not(.mxs-static) .poster img { width: 100%; height: 100%; object-fit: cover; }
.film .story:not(.mxs-static) .mxs-canvas { opacity: 0; transition: opacity .35s; }
.film .story.mxs-ready .mxs-canvas { opacity: 1; }
.film .story:not(.mxs-static) .mxs-step { display: block; position: absolute; z-index: 2; left: var(--side); top: 50%; transform: translateY(-44%); width: min(38vw, 620px); padding: 0;
  opacity: 0; visibility: hidden; will-change: opacity; pointer-events: none; }
.film .story:not(.mxs-static) .mxs-step[data-step="0"] { opacity: 1; visibility: visible; }
.film .story:not(.mxs-static) .mxs-step .still { display: none; }
.film .story:not(.mxs-static) .mxs-step a, .film .story:not(.mxs-static) .mxs-step button { pointer-events: auto; }

.film .story:not(.mxs-static) .mxs-watch { display: inline-flex; position: absolute; z-index: 3; right: var(--side); bottom: 28px; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(235, 232, 227, .72); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; cursor: pointer; }
.mxs-watch span { font-size: 9px; }
.film .story.mxs-playing .mxs-watch { opacity: 0; pointer-events: none; }
.film .story:not(.mxs-static) .mxs-hint { display: block; position: absolute; z-index: 3; right: var(--side); bottom: 40px; margin: 0; font-size: 12px; color: var(--ink-soft); opacity: 0; transition: opacity .3s; pointer-events: none; }
.film .story.mxs-playing .mxs-hint { opacity: 1; }
.film .story:not(.mxs-static) .scroll-cue { display: flex; position: absolute; z-index: 2; left: 50%; bottom: 26px; flex-direction: column; align-items: center; gap: 10px; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); opacity: calc(1 - var(--mxs-pos, 0) * 4); }
.scroll-cue span { position: relative; width: 1px; height: 34px; background: var(--line); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }
.film .story:not(.mxs-static) .mxs-loading { display: block; position: absolute; z-index: 3; right: var(--side); top: calc(var(--top-h) + 16px); font-size: 11px; color: var(--ink-soft); }

/* stage dots: the active one stretches as the footage reaches its stage */
.film .story:not(.mxs-static) .rail { display: flex; position: absolute; z-index: 2; left: var(--side); bottom: 34px; align-items: center; gap: 8px; }
.rail i { display: block; height: 6px; border-radius: 999px; background: var(--ink);
  --on: clamp(0, 1 - max(var(--mxs-pos, 0) - var(--k), var(--k) - var(--mxs-pos, 0)) * 2, 1);
  width: calc(6px + 22px * var(--on)); opacity: calc(.22 + .78 * var(--on)); }

.notes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; padding: 0; max-width: 560px; }
.notes li { padding: 14px 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(235, 232, 227, .76); backdrop-filter: blur(6px);
  font-size: 13px; line-height: 1.4; color: var(--ink-soft); box-shadow: 0 18px 40px -26px rgba(23, 22, 20, .4); }
.notes b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 15px; font-weight: 800; font-stretch: 85%; line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.film .story:not(.mxs-static) .notes li { transform: translateY(calc((1 - var(--mxs-pos, 0) / 4) * 60px)); }

/* ---------- menu ---------- */
.menu { padding: 140px var(--side) 120px; background: var(--paper); border-top: 1px solid var(--line); }
.menu-head { max-width: 760px; }
.menu-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 4vw; margin-top: 64px; }
.menu-group h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); font-size: 30px; line-height: 1; }
.menu-group h3 small { font-size: 12px; font-weight: 600; font-stretch: 100%; letter-spacing: .14em; color: var(--ink-soft); }
.menu-group dl { margin: 0; }
.menu-group dl > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.menu-group dt { font-weight: 600; }
.menu-group .desc { grid-column: 1; margin: 0; font-size: 14px; color: var(--ink-soft); }
.menu-group .price { grid-column: 2; grid-row: 1; margin: 0; font-weight: 800; font-stretch: 85%; font-size: 18px; }

/* ---------- counter ---------- */
.counter { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px 6vw; align-items: end; padding: 140px var(--side) 120px; border-top: 1px solid var(--line); }
.hours { margin: 0; display: grid; }
.hours div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; text-align: right; color: var(--ink-soft); }

/* ---------- booking (demo) ---------- */
.book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 6vw; align-items: start; padding: 140px var(--side) 140px; background: var(--ink); color: var(--bd); }
.book .eyebrow { color: #e06a5a; }
.book .lede, .book .fine { color: rgba(222, 218, 213, .72); }
.book-form, .book-done { display: grid; gap: 22px; grid-column: 2; grid-row: 1; max-width: 520px; padding: 32px; border-radius: 22px; background: rgba(222, 218, 213, .06); border: 1px solid rgba(222, 218, 213, .16); }
.book-fields { display: grid; gap: 22px; margin: 0; padding: 0; border: 0; min-width: 0; }
.book-fields:disabled { opacity: .55; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { padding: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.field legend { margin-bottom: 8px; }
.field input[type="date"], .field input[type="text"], .field select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid rgba(222, 218, 213, .3); border-radius: 12px;
  background: rgba(222, 218, 213, .08); color: var(--bd); color-scheme: dark; }
.field input[aria-invalid="true"] { border-color: #e06a5a; }
.field-error { margin: 0; font-size: 13px; color: #f0a093; }
.choices { display: flex; gap: 10px; }
.choices label { position: relative; flex: 1; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid rgba(222, 218, 213, .3); border-radius: 12px; font-weight: 600; }
.choices input:checked + span { background: var(--bd); color: var(--ink); border-color: var(--bd); }
.choices input:focus-visible + span { outline: 2px solid #e06a5a; outline-offset: 3px; }
.book .pill { justify-content: center; min-height: 52px; background: var(--bd); color: var(--ink); }
.book .pill:hover { background: #fff; }
.book .fine { margin: 0; text-align: center; }
.book-done { gap: 14px; align-content: start; }
.book-done .eyebrow { margin: 0; }
.book-done h3 { font-size: clamp(34px, 3.4vw, 52px); line-height: .92; }
.book-what { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.book-done .again { justify-self: start; color: var(--bd); border-color: rgba(222, 218, 213, .35); }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding: 40px var(--side) 48px; font-size: 13px; color: var(--ink-soft); }
.foot .logo { margin-right: 0; color: var(--ink); }
.foot p { margin: 0 auto 0 0; max-width: 60ch; }

/* ---------- tablet / phone ---------- */
@media (max-width: 900px) {
  .nav a:not(.nav-book) { display: none; }
  .menu-cols { grid-template-columns: 1fr; max-width: 560px; }
  .counter, .book { grid-template-columns: 1fr; padding: 100px var(--side) 90px; }
  .book-form, .book-done { grid-column: auto; grid-row: auto; }
}
@media (max-width: 700px) {
  :root { --top-h: 92px; }
  .concept-bar { font-size: 10.5px; padding: 6px 14px; }
  .concept-bar .wide-only { display: none; }
  .bar { gap: 12px; padding: 12px var(--side); }
  .logo { font-size: 18px; }
  .nav-book { min-height: 40px; padding: 0 16px; font-size: 13px; }
  .mxs-step, .mxs-step:nth-child(n of .mxs-step) { grid-template-columns: 1fr; }
  .mxs-step .still, .mxs-step:nth-child(n of .mxs-step) .still { grid-column: 1; grid-row: auto; margin-bottom: 8px; }
  .mxs-step > :not(.still), .mxs-step:nth-child(n of .mxs-step) > :not(.still) { grid-column: 1; }
  .notes { grid-template-columns: 1fr; }
  .menu { padding: 90px var(--side); }
  .book-form, .book-done { padding: 22px; }
}
/* the film on tall screens: the picture sits in the upper half (see the 9:16 frames), the copy below it */
@media (max-aspect-ratio: 9/10) {
  .film .story:not(.mxs-static) .mxs-step { left: var(--side); right: var(--side); top: auto; bottom: max(84px, 10svh); width: auto; transform: none; }
  .film .story:not(.mxs-static) h1 { font-size: clamp(44px, 12.5vw, 80px); margin-bottom: 14px; }
  .film .story:not(.mxs-static) h2 { font-size: clamp(38px, 10.8vw, 68px); margin-bottom: 12px; }
  .film .story:not(.mxs-static) .eyebrow { margin-bottom: 12px; }
  .film .story:not(.mxs-static) .lede { font-size: 15px; }
  .film .story:not(.mxs-static) .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
  .film .story:not(.mxs-static) .notes li { padding: 10px; font-size: 11.5px; }
  .film .story:not(.mxs-static) .notes b { font-size: 12.5px; }
  .film .story:not(.mxs-static) .actions { margin-top: 18px; }
  .film .story:not(.mxs-static) .mxs-watch { bottom: 22px; }
  .film .story:not(.mxs-static) .rail { bottom: 38px; }
  .film .story:not(.mxs-static) .scroll-cue { display: none; }
}
@media (max-aspect-ratio: 9/10) and (max-height: 720px) {
  .film .story:not(.mxs-static) .step-hero .lede, .film .story:not(.mxs-static) #served .lede { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
