/* Tokyo 101 — redesign proposal by SIGILLVM */

:root {
  --ink: #15110e;
  --ink-2: #1e1814;
  --ink-3: #2a221d;
  --paper: #f4eee3;
  --paper-2: #ebe2d3;
  --card: #fbf8f2;
  --text: #1d1814;
  --muted: #6b6056;
  --line: rgba(29, 24, 20, 0.14);
  --on-ink: #f1ebe0;
  --on-ink-muted: rgba(241, 235, 224, 0.68);
  --line-ink: rgba(241, 235, 224, 0.14);
  --red: #b92f1a;
  --red-bright: #e2573c;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(16px, 4vw, 44px);
  --hd-h: 76px;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* no visible scrollbar on the page (it still scrolls as usual) */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; z-index: 100; top: 10px; left: 10px; padding: 0.6rem 1rem;
  background: var(--ink); color: var(--on-ink); border-radius: 8px; transform: translateY(-160%);
}
.skip:focus { transform: none; }

.eyebrow {
  font: 600 0.74rem/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.sec--ink .eyebrow, .hero .eyebrow, .mhero .eyebrow { color: var(--red-bright); }

/* -------------------------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px; padding: 0 1.5rem;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 0.98rem/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #9e2714; }
.btn--line { border-color: rgba(241, 235, 224, 0.45); color: var(--on-ink); }
.btn--line:hover { border-color: var(--on-ink); background: rgba(241, 235, 224, 0.08); }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: var(--ink-3); }
.btn--sm { min-height: 42px; padding: 0 1.1rem; font-size: 0.9rem; }
.btn:active { transform: translateY(1px); }

/* ---------------------------------------------------------------------------------- brand */

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.seal {
  display: inline-grid; place-items: center;
  writing-mode: vertical-rl;
  width: 34px; height: 46px; padding-top: 1px;
  background: var(--red); color: #fff4ea;
  border-radius: 5px 6px 5px 7px;
  font: 700 0.95rem/1 var(--serif); letter-spacing: 0.04em;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.brand__type { display: grid; gap: 4px; }
.brand__word {
  display: inline-flex; align-items: baseline; gap: 0.1em;
  font: 700 1.7rem/0.8 var(--serif); letter-spacing: 0.06em;
}
/* the circle of the 101 is as tall as the capitals; the chopsticks rise above them */
.mark101 { width: 1.08em; height: 0.97em; overflow: visible; }
.mark101__stick { fill: currentColor; }
.mark101__tip { fill: var(--red-bright); }
.mark101__ring { fill: none; stroke: currentColor; stroke-width: 8; }
.mark101__swirl { fill: none; stroke: var(--red-bright); stroke-width: 5.5; stroke-linecap: round; }
.brand__sub { font: 600 0.56rem/1 var(--sans); letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.72; }

/* --------------------------------------------------------------------------------- header */

.hd {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--hd-h);
  background: rgba(21, 17, 14, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--on-ink);
  border-bottom: 1px solid var(--line-ink);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.hd--over:not(.is-scrolled) { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hd__in { height: 100%; display: flex; align-items: center; gap: 2rem; }
.nav { display: flex; gap: 0.25rem; margin-left: auto; }
.nav a {
  padding: 0.5rem 0.85rem; border-radius: 999px;
  font: 500 0.95rem/1 var(--sans); text-decoration: none; color: var(--on-ink-muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--on-ink); background: rgba(241, 235, 224, 0.08); }
.hd__toggle { display: none; }

.sheet {
  position: fixed; inset: var(--hd-h) 0 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--on-ink);
  overflow-y: auto;
}
.sheet[hidden] { display: none; }
.sheet nav { display: grid; }
.sheet nav a {
  padding: 0.85rem 0; border-bottom: 1px solid var(--line-ink);
  font: 600 1.9rem/1.1 var(--serif); text-decoration: none;
}
.sheet__foot { display: grid; gap: 0.9rem; padding-top: 2rem; color: var(--on-ink-muted); }
.sheet__foot a { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.sheet__foot svg { width: 20px; height: 20px; fill: none; stroke: var(--red-bright); stroke-width: 1.8; }

@media (max-width: 960px) {
  :root { --hd-h: 66px; }
  .nav, .hd__call { display: none; }
  .hd__toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 46px; height: 46px; border: 1px solid var(--line-ink); border-radius: 50%;
    background: transparent; cursor: pointer;
  }
  .hd__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .seal { width: 30px; height: 40px; font-size: 0.85rem; }
  .brand__word { font-size: 1.45rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open .hd { background: var(--ink); border-color: var(--line-ink); }
}

/* ------------------------------------------------------------------------ background videos */

/* The box shows the video's first frame; the video stays hidden over it until it really plays
   (site.js adds .is-playing), so a phone that will not autoplay never shows its play button. */
.vid { position: relative; overflow: hidden; background: var(--ink) center / cover no-repeat; background-position: var(--pos, 50% 50%); }
.vid video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.vid video.is-playing { opacity: 1; }
.vid video::-webkit-media-controls, .vid video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero__media.vid, .mhero__media.vid { position: absolute; }

/* ----------------------------------------------------------------------------------- hero */

.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px);
  display: flex; align-items: flex-end;
  padding: calc(var(--hd-h) + 4rem) 0 clamp(3rem, 8vh, 6rem);
  background: var(--ink); color: var(--on-ink);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
  --pos: 50% 50%;
  animation: hero-in 1.6s var(--ease) both;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(21, 17, 14, 0.92) 0%, rgba(21, 17, 14, 0.7) 38%, rgba(21, 17, 14, 0.1) 75%),
    linear-gradient(0deg, rgba(21, 17, 14, 0.75) 0%, rgba(21, 17, 14, 0) 45%),
    linear-gradient(180deg, rgba(21, 17, 14, 0.6) 0%, rgba(21, 17, 14, 0) 22%);
}
@keyframes hero-in { from { transform: scale(1.06); opacity: 0; } to { transform: none; opacity: 1; } }
.hero__in { position: relative; display: grid; gap: 1.6rem; max-width: 640px; margin-left: max(var(--gutter), (100% - 1240px) / 2); }
.hero__title {
  font: 600 clamp(3.6rem, 10vw, 8.4rem)/0.9 var(--serif);
  letter-spacing: -0.015em;
}
.hero__title span { color: var(--red-bright); font-weight: 500; }
.hero__lede { max-width: 30em; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--on-ink-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.hero__seal {
  position: absolute; right: max(var(--gutter), (100% - 1240px) / 2); bottom: clamp(3rem, 8vh, 6rem);
  display: grid; place-items: center; writing-mode: vertical-rl;
  width: 92px; height: 128px;
  background: var(--red); color: #fff4ea; border-radius: 8px 10px 7px 12px;
  font: 700 2.5rem/1 var(--serif); letter-spacing: 0.06em;
  transform: rotate(4deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 3px rgba(255, 255, 255, 0.12);
  animation: seal-in 1.2s 0.5s var(--ease) both;
}
@keyframes seal-in { from { transform: rotate(14deg) scale(1.3); opacity: 0; } to { transform: rotate(4deg); opacity: 1; } }
.hero__in > * { animation: rise 1s var(--ease) both; }
.hero__in > :nth-child(2) { animation-delay: 0.1s; }
.hero__in > :nth-child(3) { animation-delay: 0.2s; }
.hero__in > :nth-child(4) { animation-delay: 0.3s; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 700px) {
  .hero { min-height: 92svh; }
  .hero__media { --pos: 76% 50%; } /* the rolls, on the right of the chef's video */
  .hero::before { background: linear-gradient(0deg, rgba(21, 17, 14, 0.95) 0%, rgba(21, 17, 14, 0.75) 50%, rgba(21, 17, 14, 0.25) 100%); }
  .hero__seal { top: calc(var(--hd-h) + 1.5rem); bottom: auto; width: 60px; height: 84px; font-size: 1.6rem; }
  .hero__cta .btn { flex: 1 1 100%; }
}
/* on short phones the hero text reaches the top: no room for the seal */
@media (max-width: 700px) and (max-height: 720px) { .hero__seal { display: none; } }
@media (max-width: 360px) { .brand__sub { letter-spacing: 0.2em; } }

/* ---------------------------------------------------------------------- today strip */

.strip { background: var(--ink-2); color: var(--on-ink); border-top: 1px solid var(--line-ink); }
.strip__in { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip__item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 1.5rem 1.5rem 0; text-decoration: none;
}
.strip__item + .strip__item { padding-left: 1.5rem; border-left: 1px solid var(--line-ink); }
.strip__item > svg { width: 26px; height: 26px; fill: none; stroke: var(--red-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.strip__k { font: 600 0.7rem/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-ink-muted); }
.strip__v { font-weight: 500; }
a.strip__item:hover .strip__v { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .strip__in { grid-template-columns: 1fr; }
  .strip__item, .strip__item + .strip__item { padding: 1.1rem 0; border-left: 0; }
  .strip__item + .strip__item { border-top: 1px solid var(--line-ink); }
}

/* open / closed */
[data-status] { display: inline-flex; align-items: center; gap: 0.55rem; }
.is-open[data-status]::before, .is-closed[data-status]::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #7fbf6a; box-shadow: 0 0 0 4px rgba(127, 191, 106, 0.18);
}
.is-closed[data-status]::before { background: var(--red-bright); box-shadow: 0 0 0 4px rgba(226, 87, 60, 0.18); }

/* ------------------------------------------------------------------------------- sections */

.sec { padding: clamp(4.5rem, 11vw, 8.5rem) 0; }
.sec--paper { background: var(--paper); }
.sec--ink { background: var(--ink); color: var(--on-ink); }
.sec__hd { display: grid; gap: 0.9rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.sec__title { font: 600 clamp(2.2rem, 5vw, 3.8rem)/1.02 var(--serif); letter-spacing: -0.01em; }
.sec__more { margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }

/* menu cards */
.cards-big { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.cards-small { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(1rem, 2vw, 1.5rem); }
.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(29, 24, 20, 0.45); }
.card--photo { overflow: hidden; background: var(--ink); color: var(--on-ink); min-height: 520px; }
.card__img { position: absolute; inset: 0; }
.card__img img, .card__img .vid { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card--photo:hover .card__img img, .card--photo:hover .card__img .vid { transform: scale(1.04); }
.card--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(21, 17, 14, 0.94) 0%, rgba(21, 17, 14, 0.55) 42%, rgba(21, 17, 14, 0) 70%);
}
.card__body { position: relative; z-index: 1; margin-top: auto; display: grid; gap: 0.55rem; padding: clamp(1.4rem, 3vw, 2.2rem); }
.card__kanji { font: 600 0.95rem/1 var(--serif); letter-spacing: 0.2em; color: var(--red-bright); }
.card--text .card__kanji { color: var(--red); }
.card__title { font: 600 clamp(1.9rem, 3.4vw, 2.6rem)/1.05 var(--serif); }
.card__text { color: var(--on-ink-muted); max-width: 30em; }
.card__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--line-ink);
  font: 600 0.88rem/1.2 var(--sans);
}
.card__go { display: inline-flex; align-items: center; gap: 0.5rem; }
.card svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.card:hover svg { transform: translateX(4px); }
.card--text { gap: 0.55rem; padding: 1.6rem; background: var(--card); border: 1px solid var(--line); }
.card--text .card__title { font-size: 1.55rem; }
.card--text .card__text { color: var(--muted); font-size: 0.96rem; flex: 1; }
.card--text .card__meta { border-color: var(--line); color: var(--red); }
@media (max-width: 1000px) { .cards-small { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .cards-big { grid-template-columns: 1fr; }
  .card--photo { min-height: 440px; }
  .cards-small { grid-template-columns: 1fr; }
}

/* first visit */
.first__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.first__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 480px; }
.first__photo img { width: 100%; height: 100%; object-fit: cover; }
.first__text header { display: grid; gap: 0.9rem; margin-bottom: 2.2rem; }
.picks { display: grid; }
.picks li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid var(--line-ink); }
.picks li:last-child { border-bottom: 1px solid var(--line-ink); }
.picks__n { font: 500 1.1rem/1.5 var(--serif); color: var(--red-bright); }
.picks h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3rem 1rem; font: 600 1.45rem/1.25 var(--serif); }
.picks .price { font: 600 0.95rem/1 var(--sans); color: var(--on-ink-muted); font-variant-numeric: tabular-nums; }
.picks p { margin-top: 0.4rem; color: var(--on-ink-muted); }
@media (max-width: 860px) { .first__in { grid-template-columns: 1fr; } .first__photo { max-width: 420px; } }

/* dining room */
.room { background: var(--ink); }
.room img { width: 100%; height: clamp(200px, 28vw, 440px); object-fit: cover; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 21vw, 290px); gap: clamp(0.6rem, 1.4vw, 1rem); }
.g { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }
.g button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g button:hover img { transform: scale(1.05); }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .g--wide { grid-column: span 2; }
}

/* lightbox */
.lb { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(10, 8, 7, 0.92); }
.lb[open] { display: grid; place-items: center; }
.lb img { max-width: min(92vw, 1600px); max-height: 86vh; width: auto; height: auto; border-radius: 10px; }
.lb__close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%;
  background: rgba(21, 17, 14, 0.6); color: #fff; cursor: pointer;
}
.lb__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* visit */
.visit__in { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: stretch; }
.visit__text header { display: grid; gap: 0.9rem; margin-bottom: 1.6rem; }
.visit__status { font-weight: 500; margin-bottom: 1.4rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 0.95rem 0; border-top: 1px solid var(--line-ink); text-align: left; vertical-align: top; font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--line-ink); }
.hours td { text-align: right; color: var(--on-ink-muted); font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--on-ink); font-weight: 600; }
.hours tr.is-today th::after {
  content: "Today"; margin-left: 0.7rem; padding: 0.2rem 0.55rem; border-radius: 999px;
  background: var(--red); color: #fff; font: 600 0.66rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; vertical-align: 0.15em;
}
.visit__note { margin-top: 1rem; color: var(--on-ink-muted); font-size: 0.95rem; }
.visit__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.visit__map { min-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.visit__map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) invert(0.9) contrast(0.88) brightness(1.05); }
@media (max-width: 860px) {
  .visit__in { grid-template-columns: 1fr; }
  .visit__map, .visit__map iframe { min-height: 340px; }
  .visit__cta .btn { flex: 1 1 100%; }
}

/* reveal on scroll (only once the script runs) */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hero__media, .hero__seal, .hero__in > * { animation: none; }
}

/* --------------------------------------------------------------------------------- footer */

.ft { background: var(--ink); color: var(--on-ink-muted); padding: clamp(3.5rem, 8vw, 6rem) 0 2rem; font-size: 0.95rem; border-top: 1px solid var(--line-ink); }
.ft__in { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 0.8fr; gap: 2.5rem; }
.ft__brand .brand { color: var(--on-ink); }
.ft__h { margin-bottom: 0.9rem; font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-ink); }
.ft__col p + p { margin-top: 0.7rem; }
.ft a { text-decoration: none; }
.ft a:hover { color: var(--on-ink); }
.ft__links { display: grid; gap: 0.35rem; }
.ft__base { display: grid; gap: 0.8rem; margin-top: 3.5rem; padding-top: 1.8rem; border-top: 1px solid var(--line-ink); font-size: 0.82rem; }
.ft__adv { max-width: 62em; opacity: 0.8; }
@media (max-width: 960px) { .ft__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ft__in { grid-template-columns: 1fr; } }

/* mobile quick actions */
.bar { display: none; }
@media (max-width: 700px) {
  :root { --bar-h: 60px; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .bar {
    position: fixed; inset: auto 0 0; z-index: 45;
    display: grid; grid-template-columns: repeat(3, 1fr);
    height: calc(var(--bar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(21, 17, 14, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-ink);
  }
  .bar a {
    display: grid; justify-items: center; align-content: center; gap: 0.25rem;
    color: var(--on-ink); text-decoration: none; font: 600 0.72rem/1 var(--sans); letter-spacing: 0.06em;
  }
  .bar a + a { border-left: 1px solid var(--line-ink); }
  .bar svg { width: 22px; height: 22px; fill: none; stroke: var(--red-bright); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}

/* ============================================================================== menu page */

.mhero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; min-height: min(64vh, 620px);
  background: var(--ink); color: var(--on-ink);
  padding: calc(var(--hd-h) + clamp(2.5rem, 7vw, 5rem)) 0 clamp(2.5rem, 6vw, 4rem);
}
/* the video of the chef cutting a roll, darkened so the title reads over it */
.mhero__media { position: absolute; inset: 0; z-index: -2; }
.mhero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(21, 17, 14, 0.9) 0%, rgba(21, 17, 14, 0.62) 45%, rgba(21, 17, 14, 0.25) 100%),
    linear-gradient(0deg, rgba(21, 17, 14, 0.7) 0%, rgba(21, 17, 14, 0) 50%),
    linear-gradient(180deg, rgba(21, 17, 14, 0.6) 0%, rgba(21, 17, 14, 0) 25%);
}
@media (max-width: 700px) {
  .mhero { min-height: 56svh; }
  .mhero::before { background: linear-gradient(0deg, rgba(21, 17, 14, 0.94) 0%, rgba(21, 17, 14, 0.66) 55%, rgba(21, 17, 14, 0.4) 100%); }
}
.mhero__in { display: grid; gap: 1rem; }
.mhero__title { font: 600 clamp(3.4rem, 9vw, 6.8rem)/0.95 var(--serif); }
.mhero__lede { max-width: 38em; color: var(--on-ink-muted); }
.mhero__lede a { color: var(--on-ink); text-underline-offset: 3px; }

.tools {
  position: sticky; top: var(--hd-h); z-index: 40;
  background: rgba(244, 238, 227, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.tools__in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.tabs { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; margin-right: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none;
  padding: 0.6rem 1.1rem; border-radius: 999px;
  font: 600 0.95rem/1 var(--sans); text-decoration: none; color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.tab:hover { color: var(--text); background: rgba(29, 24, 20, 0.06); }
.tab[aria-current="true"] { background: var(--ink); color: var(--on-ink); }
.tab.is-now::after {
  content: "Now"; margin-left: 0.45rem; padding: 0.14rem 0.4rem; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 0.1em;
}
.search {
  position: relative; display: flex; align-items: center; flex: 0 1 320px;
}
.search svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: 44px; padding: 0 1rem 0 2.6rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font: 400 0.95rem/1 var(--sans); color: var(--text);
}
.search input::-webkit-search-cancel-button { filter: grayscale(1) opacity(0.55); cursor: pointer; }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 24, 20, 0.08); }
@media (max-width: 760px) {
  .tools__in { flex-wrap: wrap; gap: 0.5rem; padding: 0.6rem 0; }
  .tabs { order: 2; width: 100%; margin-right: 0; }
  .search { order: 1; flex: 1 1 100%; }
}

.menu { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem); }
.menu-empty { padding: 3rem 0; font-size: 1.1rem; text-align: center; color: var(--muted); }
.menu-empty button { padding: 0; border: 0; background: none; color: var(--red); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.mgroup { scroll-margin-top: calc(var(--hd-h) + 80px); padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.mgroup + .mgroup { margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.mgroup__hd { display: grid; gap: 0.6rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.mgroup__kanji { font: 600 1rem/1 var(--serif); letter-spacing: 0.3em; color: var(--red); }
.mgroup__title { font: 600 clamp(2.4rem, 6vw, 4.4rem)/1 var(--serif); letter-spacing: -0.01em; }
.mgroup__note { font-weight: 600; color: var(--red); }

.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 0.6rem; font-size: 0.88rem; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 0.45rem; }

.mgroup__body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 5rem); }
.msec { scroll-margin-top: calc(var(--hd-h) + 90px); grid-column: 1 / -1; }
.msec--compact { grid-column: auto; }
.msec__hd { display: grid; gap: 0.4rem; margin-bottom: 1.3rem; padding-bottom: 1rem; border-bottom: 2px solid var(--text); }
.msec__title { display: flex; align-items: center; gap: 0.7rem; font: 600 clamp(1.5rem, 2.6vw, 1.9rem)/1.15 var(--serif); }
.msec__note { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .mgroup__body { grid-template-columns: 1fr; } .msec--compact { grid-column: 1 / -1; } }
/* on phones the sticky bar holds the search and the tabs on two rows */
@media (max-width: 760px) {
  .mgroup { scroll-margin-top: calc(var(--hd-h) + 124px); }
  .msec { scroll-margin-top: calc(var(--hd-h) + 130px); }
}

.items { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 5rem); }
@media (max-width: 860px) { .items { grid-template-columns: 1fr; } }
.item { padding: 0.95rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.item__row { display: flex; align-items: baseline; gap: 0.6rem; }
.item__name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.55rem; font: 600 1.14rem/1.3 var(--serif); }
.item__dots { flex: 1; min-width: 1.5rem; border-bottom: 1px dotted rgba(29, 24, 20, 0.35); transform: translateY(-0.3em); }
.item__price { font: 600 1rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.item__desc { margin-top: 0.3rem; color: var(--muted); font-size: 0.95rem; line-height: 1.5; max-width: 34em; }
.variants { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.variants li {
  display: inline-flex; gap: 0.55rem; padding: 0.4rem 0.75rem; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 0.9rem;
}
.variants .item__price { font-size: 0.9rem; color: var(--red); }

.plist .item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; padding: 0.8rem 0; }
.plist .item__name { display: inline-flex; font-size: 1.08rem; }
.plist small { flex-basis: 100%; margin-top: 0.15rem; font: 400 0.85rem/1.3 var(--sans); color: var(--muted); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.pair__h { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.2rem; font: 600 0.74rem/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
@media (max-width: 520px) { .pair { grid-template-columns: 1fr; gap: 1.5rem; } }

.heat { display: inline-flex; gap: 1px; }
.heat svg { width: 14px; height: 14px; fill: var(--red); }
.raw {
  display: inline-flex; align-items: center; padding: 0.22rem 0.5rem; border-radius: 4px;
  border: 1px solid currentColor; color: var(--red);
  font: 600 0.62rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}
.badge {
  padding: 0.24rem 0.55rem; border-radius: 999px; background: var(--red); color: #fff;
  font: 600 0.62rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
}
.advisory { margin-top: 2.2rem; max-width: 60em; font-size: 0.85rem; color: var(--muted); }

.item[hidden], .msec[hidden], .mgroup[hidden] { display: none; }
/* while searching, the results only: no group photos, legends or dividers */
.is-searching .mgroup { margin-top: 0; padding-top: clamp(1.5rem, 4vw, 2.5rem); border-top: 0; }
.is-searching .mgroup__hd { margin-bottom: 1.5rem; }
.is-searching .legend, .is-searching .mgroup__kanji { display: none; }
.is-searching .mgroup__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------------------------------------------------- demo only: whose proposal this is */

.demo-tag {
  position: fixed; z-index: 60; left: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 0.7rem;
  max-width: calc(100vw - 32px); padding: 0.55rem 1rem;
  border: 1px solid rgba(201, 164, 92, 0.5); border-radius: 999px;
  background: rgba(16, 14, 11, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 400 0.58rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(241, 238, 230, 0.72); text-decoration: none;
}
.demo-tag b { font-weight: 500; color: #c9a45c; }
.demo-tag:hover { border-color: #c9a45c; }
/* on phones, a thin strip right above the quick actions, with room made for it */
@media (max-width: 700px) {
  .demo-tag {
    left: 0; right: 0; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
    max-width: none; flex-wrap: wrap; justify-content: center; gap: 0 0.6rem;
    padding: 0.5rem 16px; border-width: 1px 0 0; border-radius: 0;
    font-size: 0.54rem; letter-spacing: 0.14em; text-align: center;
  }
  body.has-demo-tag { padding-bottom: calc(var(--bar-h) + 30px + env(safe-area-inset-bottom)); }
}
