/* Slurp, the calm side: menu page, order page and the home sections under the hero.
   One design system, scoped to .site (menu/order <body>) and .home-rest (home fragment) so nothing leaks into
   the hero's css/style.css. Classes: s- shared, m- menu, o- order, t- ticket, h- home. */

.site, .home-rest {
  /* colour: a dark warm room, cream type, one chili accent. Photos carry the colour. */
  --s-bg: oklch(0.17 0.012 55);
  --s-bg-1: oklch(0.205 0.014 55);   /* raised */
  --s-bg-2: oklch(0.245 0.016 55);   /* raised twice, controls */
  --s-ink: oklch(0.93 0.02 85);
  --s-mute: oklch(0.76 0.025 75);    /* AA on every surface above */
  --s-red: oklch(0.58 0.19 28);
  --s-red-deep: oklch(0.5 0.17 28);  /* button fill: cream on it passes AA */
  --s-red-ink: oklch(0.72 0.15 32);  /* red as text on the dark */
  --s-line: oklch(1 0 0 / 0.1);
  --s-line-2: oklch(1 0 0 / 0.18);
  --s-hi: inset 0 1px 0 oklch(1 0 0 / 0.07);

  /* type */
  --s-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --s-sans: "Poppins", system-ui, sans-serif;
  --s-logo: "Titan One", "Poppins", system-ui, sans-serif;
  --s-t-display: clamp(2.6rem, 1.6rem + 4.4vw, 5.6rem);
  --s-t-h2: clamp(2rem, 1.4rem + 2.4vw, 3.6rem);
  --s-t-h3: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  --s-t-lede: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --s-t-body: 1rem;
  --s-t-small: 0.875rem;

  /* space + shape */
  --s-gutter: clamp(16px, 4vw, 56px);
  --s-sec: clamp(88px, 12vw, 180px);
  --s-r-lg: 22px;
  --s-r-md: 14px;
  --s-r-sm: 10px;
  --s-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --s-ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  background: var(--s-bg);
  color: var(--s-ink);
  font-family: var(--s-sans);
  font-size: var(--s-t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.site *, .site *::before, .site *::after, .home-rest *, .home-rest *::before, .home-rest *::after { box-sizing: border-box; }
:where(.site, .home-rest) :where(h1, h2, h3, p, ul, dl, dd, figure, fieldset, address) { margin: 0; padding: 0; }
:where(.site, .home-rest) :where(ul) { list-style: none; }
:where(.site, .home-rest) :where(address) { font-style: normal; }
:where(.site, .home-rest) :where(img) { display: block; max-width: 100%; height: auto; }
:where(.site, .home-rest) :where(button, input, select) { font: inherit; color: inherit; }
:where(.site, .home-rest) :where(button) { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:where(.site, .home-rest) :where(a) { color: inherit; -webkit-tap-highlight-color: transparent; }
.site [hidden], .home-rest [hidden] { display: none !important; }
body.site { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
body.site > main { flex: 1; overflow-x: clip; }
html.s-lock { overflow: hidden; }
.site ::selection, .home-rest ::selection { background: oklch(0.58 0.19 28 / 0.45); }

.site :focus-visible, .home-rest :focus-visible { outline: 2px solid var(--s-ink); outline-offset: 3px; border-radius: 6px; }
.s-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.s-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--s-r-sm); background: var(--s-ink); color: var(--s-bg) !important; font-weight: 600; text-decoration: none; }
.s-skip:focus { top: 12px; }

.s-wrap { width: min(100% - 2 * var(--s-gutter), 1320px); margin-inline: auto; }

/* ---------------------------------------------------------------- type */
.s-display, .s-h2, .s-h3 { font-family: var(--s-serif); font-weight: 600; text-wrap: balance; color: var(--s-ink); }
.s-display { font-size: var(--s-t-display); line-height: 1.04; letter-spacing: -0.018em; }
.s-display-sm { font-size: clamp(2.4rem, 1.7rem + 3vw, 4.4rem); }
.s-h2 { font-size: var(--s-t-h2); line-height: 1.08; letter-spacing: -0.012em; }
.s-h3 { font-size: var(--s-t-h3); line-height: 1.2; }
:where(.site, .home-rest) :where(p) { text-wrap: pretty; }
.s-lede { font-size: var(--s-t-lede); line-height: 1.6; color: var(--s-mute); max-width: 36em; }
.s-price, .s-num { font-variant-numeric: tabular-nums lining-nums; }
.s-link { text-decoration: underline; text-decoration-color: oklch(0.93 0.02 85 / 0.4); text-underline-offset: 0.22em; text-decoration-thickness: 1px; transition: text-decoration-color 160ms; }
.s-link:hover { text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- buttons */
.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 0 26px;
  border-radius: var(--s-r-sm); background: var(--s-red-deep); color: oklch(0.97 0.012 85) !important; font-weight: 600; font-size: 0.975rem;
  text-decoration: none; box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.16), 0 10px 24px -14px oklch(0.4 0.15 28 / 0.9);
  transition: transform 150ms var(--s-ease-out), background-color 160ms;
}
.s-btn:hover { background: oklch(0.54 0.18 28); }
.s-btn:active { transform: scale(0.97); }
.s-btn-quiet { background: var(--s-bg-1); border: 1px solid var(--s-line-2); box-shadow: var(--s-hi); color: var(--s-ink) !important; font-weight: 500; }
.s-btn-quiet:hover { background: var(--s-bg-2); }

/* ---------------------------------------------------------------- header */
.s-head { position: sticky; top: 0; z-index: 30; transition: background-color 200ms, box-shadow 200ms; }
.s-head::before { content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none; background: linear-gradient(in oklch to bottom, oklch(0.17 0.012 55 / 0.7), oklch(0.17 0.012 55 / 0)); transition: opacity 200ms; }
.s-head.is-scrolled::before { opacity: 0; }
.s-head.is-scrolled { background: oklch(0.17 0.012 55 / 0.86); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 1px 0 var(--s-line); }
.s-head-in { width: min(100% - 2 * var(--s-gutter), 1320px); margin-inline: auto; height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.s-logo { justify-self: start; font-family: var(--s-logo); font-size: 26px; line-height: 1; text-decoration: none; color: var(--s-ink); letter-spacing: 0.02em; min-height: 44px; display: inline-flex; align-items: center; }
.s-logo-lg { font-size: clamp(40px, 5vw, 64px); }
.s-nav { display: flex; gap: clamp(0px, 1vw, 12px); }
.s-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 0.95rem; font-weight: 500; text-decoration: none; color: var(--s-mute); white-space: nowrap; transition: color 160ms; }
.s-nav a:hover, .s-nav a[aria-current="page"] { color: var(--s-ink); }
.s-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1.5px; border-radius: 1px; background: var(--s-red); }
/* the order: the same bowl icon as the hero, with the count on it */
.s-bag { justify-self: end; position: relative; width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; border-radius: 50%; color: var(--s-ink); transition: transform 150ms var(--s-ease-out), background-color 160ms; }
.s-bag:hover { background: oklch(1 0 0 / 0.06); }
.s-bag:active { transform: scale(0.94); }
.s-bag:focus-visible { border-radius: 50%; }
.s-bag .bag-ico { display: block; transition: translate 180ms var(--s-ease-out); }
.s-bag:hover .bag-ico { translate: 0 -1.5px; }
/* the count sits on the bag's top right corner, clear of the handle; the ring cuts it out of the bag */
.s-count { position: absolute; right: 1px; top: 7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--s-red-deep); color: oklch(0.97 0.012 85); font-size: 10px; font-weight: 700; line-height: 1; display: grid; place-items: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 1.5px var(--s-bg); }
/* an item lands: the bag dips 2.5px and settles (shared by the hero's bag, js/order-icon.js catchBag) */
.bag-ico.catch { animation: bag-catch 260ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes bag-catch { 30% { transform: translateY(2.5px); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } }
@media (prefers-reduced-motion: reduce) { .bag-ico.catch { animation: none; } .s-bag:hover .bag-ico { translate: none; } }
@media (max-width: 560px) {
  .s-head-in { height: 64px; grid-template-columns: auto 1fr auto; }
  .s-logo { font-size: 22px; }
  .s-nav { justify-self: center; gap: 0; }
  .s-nav a { padding: 0 8px; font-size: 0.86rem; }
  .s-nav a[aria-current="page"]::after { left: 8px; right: 8px; }
}
@media (max-width: 359px) {
  .s-logo { font-size: 19px; }
  .s-nav a { padding: 0 6px; font-size: 0.8rem; }
}

/* ---------------------------------------------------------------- page to page
   Cross-document view transitions (every page opts in): the logo, the links and the order icon keep their place
   (they slide the few pixels between the hero's bar and this one), the rest crossfades. Off for reduced motion. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 300ms; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
::view-transition-group(*) { animation-duration: 300ms; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
.s-logo:not(.s-logo-lg) { view-transition-name: site-logo; }
.s-nav { view-transition-name: site-links; }
.s-bag { view-transition-name: site-bag; }

/* ---------------------------------------------------------------- footer */
.s-foot { margin-top: var(--s-sec); padding: clamp(56px, 7vw, 96px) 0 28px; background: oklch(0.145 0.01 55); box-shadow: 0 -1px 0 var(--s-line); font-size: var(--s-t-small); color: var(--s-mute); }
.s-foot-in { width: min(100% - 2 * var(--s-gutter), 1320px); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px clamp(24px, 5vw, 80px); }
.s-foot-brand p { margin-top: 14px; max-width: 26em; }
.s-foot-h { font-family: var(--s-serif); font-size: 1.15rem; font-weight: 600; color: var(--s-ink); margin-bottom: 14px; }
.s-foot address a { display: inline-block; margin-top: 10px; color: var(--s-ink); text-underline-offset: 0.22em; }
.s-hours div { display: flex; justify-content: space-between; gap: 18px; padding: 3px 0; }
.s-hours dt { color: var(--s-mute); }
.s-hours dd { color: var(--s-ink); text-align: right; font-variant-numeric: tabular-nums; }
.s-foot-slim { margin-top: 0; padding: 20px 0 24px; }
.s-foot-slim .s-foot-legal { margin-top: 0; }
.s-foot-legal { width: min(100% - 2 * var(--s-gutter), 1320px); margin: clamp(48px, 6vw, 80px) auto 0; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.s-foot-legal span { margin-right: auto; }
.s-foot-legal a { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: 0.22em; }
@media (max-width: 760px) {
  .s-foot-in { grid-template-columns: 1fr; }
  .s-foot-legal span { flex-basis: 100%; }
}

/* ---------------------------------------------------------------- reveal
   Visible by default. JS adds rv-wait only to things still below the screen, then rv-in for the fade up
   (see reveal() in js/site.js); without JS, IntersectionObserver or motion, nothing is ever hidden. */
.s-rv.rv-wait { opacity: 0; translate: 0 18px; }
.s-rv.rv-in { transition: opacity 700ms var(--s-ease-out), translate 800ms var(--s-ease-out); }

/* ================================================================ shared dish pieces (menu + home) */
.m-name { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-family: var(--s-serif); font-weight: 600; font-size: var(--s-t-h3); line-height: 1.2; text-wrap: balance; }
.m-name .s-price { font-family: var(--s-sans); font-size: 1rem; font-weight: 500; color: var(--s-ink); }
.m-desc { margin-top: 8px; color: var(--s-mute); max-width: 34em; }
.m-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--s-r-md); background: var(--s-bg-1); }
.m-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.06); pointer-events: none; }
.m-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

/* the spinnable bowl: the shade stays put (light comes from one place), the photo turns */
.m-bowl { position: relative; aspect-ratio: 1; width: 100%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: 50%; }
.m-bowl.is-held { cursor: grabbing; }
.m-bowl img { position: relative; width: 100%; height: 100%; rotate: var(--spin, 0deg); pointer-events: none; -webkit-user-drag: none; }
.m-bowl-shade { position: absolute; inset: 4%; border-radius: 50%; box-shadow: 0 34px 60px -18px oklch(0.05 0.01 55 / 0.9), 0 10px 18px -8px oklch(0.05 0.01 55 / 0.7); translate: 2% 3%; }
.m-bowl:focus-visible { outline-offset: 8px; border-radius: 50%; }

/* ================================================================ menu page */
.m-intro { position: relative; margin-top: -72px; min-height: min(92dvh, 900px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.m-intro-img { position: absolute; top: 0; right: 0; width: 76%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -1;
  -webkit-mask: linear-gradient(in oklch to right, #0000, #000 34%); mask: linear-gradient(in oklch to right, #0000, #000 34%); }
/* the floor fades into the page, and the top darkens under the header so the links stay readable on the steam */
.m-intro::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(in oklch to top, var(--s-bg) 2%, oklch(0.17 0.012 55 / 0) 34%),
  linear-gradient(in oklch to bottom, oklch(0.17 0.012 55 / 0.82), oklch(0.17 0.012 55 / 0) 150px); }
.m-intro-copy { padding: 160px 0 clamp(40px, 6vw, 72px); }
.m-intro h1 { max-width: 12ch; font-size: clamp(2.5rem, 1.6rem + 3.6vw, 5rem); }
.m-intro-p { margin-top: 22px; font-size: var(--s-t-lede); color: var(--s-mute); max-width: 34em; }
.m-jump { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.m-jump a { min-height: 44px; display: inline-flex; align-items: center; color: var(--s-ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 160ms; }
.m-jump a:hover { border-bottom-color: var(--s-line-2); }

.m-sec { padding-top: var(--s-sec); scroll-margin-top: 40px; }
.m-sec-head p { margin-top: 14px; color: var(--s-mute); font-size: var(--s-t-lede); max-width: 26em; }

/* ramen: three big bowls, staggered like they were set down along the counter */
.m-sec-ramen .m-sec-head { max-width: 640px; }
.m-ramen { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 72px); }
.m-ramen-item:nth-child(2) { margin-top: clamp(40px, 7vw, 120px); }
.m-ramen-item:nth-child(3) { margin-top: clamp(14px, 2.5vw, 40px); }
.m-ramen-item .m-bowl { width: 100%; max-width: 420px; }
.m-ramen-text { margin-top: clamp(22px, 3vw, 36px); }
.m-ramen-text .s-btn { margin-top: 20px; min-height: 46px; padding: 0 18px; font-size: 0.9rem; }

/* everything else: a sticky heading on one side, the dishes stepping down the other */
.m-sec-dishes { display: grid; grid-template-columns: minmax(220px, 4fr) 8fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.m-sec-dishes .m-sec-head { position: sticky; top: 112px; }
.m-sec-dishes.is-flip { grid-template-columns: 8fr minmax(220px, 4fr); }
.m-sec-dishes.is-flip .m-sec-head { order: 2; }
.m-dishes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4vw, 64px) clamp(20px, 3vw, 48px); }
.m-dish:nth-child(even) { margin-top: clamp(56px, 9vw, 150px); }
.m-sec-dishes[data-count="3"] .m-dishes { grid-template-columns: repeat(3, 1fr); }
.m-sec-dishes[data-count="3"] .m-dish:nth-child(3) { margin-top: clamp(24px, 4vw, 64px); }
.m-dish .m-name { margin-top: 20px; }
.m-add { margin-top: 12px; margin-left: -10px; min-height: 44px; padding: 0 10px; display: inline-flex; align-items: center; gap: 10px; border-radius: var(--s-r-sm); font-weight: 500; font-size: 0.95rem; color: var(--s-ink); transition: transform 150ms var(--s-ease-out), background-color 160ms; }
.m-add::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none; border: 1px solid var(--s-line-2); background:
  linear-gradient(currentColor 0 0) center / 9px 1.5px no-repeat, linear-gradient(currentColor 0 0) center / 1.5px 9px no-repeat; transition: background-color 200ms, border-color 200ms; }
.m-add:hover { background: oklch(1 0 0 / 0.05); }
.m-add:active { transform: scale(0.97); }
.m-add.is-done::before { border-color: transparent; background: var(--s-red-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23f7f1e6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.m-add.is-done { color: var(--s-ink); }
.m-add-label { display: inline-block; }

@media (max-width: 900px) {
  .m-intro-img { width: 100%; height: 64%; object-position: 42% 40%; -webkit-mask: linear-gradient(in oklch to bottom, #000 50%, #0000); mask: linear-gradient(in oklch to bottom, #000 50%, #0000); }
  .m-ramen { grid-template-columns: 1fr; gap: 64px; }
  .m-ramen-item { display: grid; grid-template-columns: minmax(0, 0.9fr) 1fr; gap: clamp(20px, 4vw, 40px); align-items: center; margin-top: 0 !important; }
  .m-ramen-item:nth-child(even) .m-bowl { order: 2; }
  .m-ramen-text { margin-top: 0; }
  .m-sec-dishes, .m-sec-dishes.is-flip { grid-template-columns: 1fr; }
  .m-sec-dishes .m-sec-head { position: static; order: 0 !important; }
}
@media (max-width: 560px) {
  .m-intro { min-height: 86dvh; }
  .m-ramen-item { grid-template-columns: 1fr; }
  .m-ramen-item:nth-child(even) .m-bowl { order: 0; }
  .m-ramen-item .m-bowl { width: 84%; margin-inline: auto; }
  .m-dishes { gap: 40px 14px; }
  .m-dish:nth-child(even) { margin-top: 64px; }
  .m-dish .m-name { flex-direction: column; gap: 2px; font-size: 1.2rem; }
  .m-dish .m-desc { font-size: 0.9rem; }
  .m-sec-dishes[data-count="3"] .m-dishes { grid-template-columns: 1fr 1fr; }
  .m-sec-dishes[data-count="3"] .m-dish:nth-child(3) { margin-top: 0; }
}

/* ================================================================ order page */
.o-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 30vw, 410px); gap: clamp(40px, 5vw, 88px); align-items: start; padding-top: clamp(28px, 4vw, 56px); }
.o-intro p { margin-top: 14px; color: var(--s-mute); font-size: var(--s-t-lede); max-width: 34em; }
.o-build { margin-top: clamp(48px, 6vw, 80px); }
.o-build > .s-h2, .o-sides > .s-h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.o-build > .s-h2:focus { outline: none; }
.o-build-grid { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: clamp(28px, 4vw, 56px); align-items: start; }

/* the stage: a bowl on the counter under one warm light that reddens with the heat */
@property --heat { syntax: "<number>"; inherits: true; initial-value: 0; }
.o-stage { --heat: 0; position: sticky; top: 96px; aspect-ratio: 1; display: grid; place-items: center; transition: --heat 600ms var(--s-ease-out); }
.o-glow { position: absolute; inset: -14%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side in oklch, oklch(0.36 calc(0.05 + var(--heat) * 0.09) calc(68 - var(--heat) * 40) / calc(0.55 + var(--heat) * 0.25)), oklch(0.17 0.012 55 / 0)); }
.o-shade { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; translate: 2% 3%; box-shadow: 0 44px 70px -20px oklch(0.05 0.01 55 / 0.95), 0 12px 22px -8px oklch(0.05 0.01 55 / 0.7); }
.o-plate { position: relative; width: 88%; aspect-ratio: 1; }
.o-bowls, .o-oil, .o-tops { position: absolute; inset: 0; }
.o-bowl-img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.o-oil i { position: absolute; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; scale: 0; opacity: 0;
  background: radial-gradient(circle at 34% 30%, oklch(0.97 0.04 80 / 0.55) 0 7%, oklch(0.97 0.04 80 / 0) 14%),
    radial-gradient(closest-side, oklch(0.66 0.18 42 / 0.62) 0 55%, oklch(0.56 0.19 34 / 0.38) 80%, oklch(0.5 0.18 32 / 0) 100%);
  transition: scale 380ms var(--s-ease-out), opacity 300ms; transition-delay: calc(var(--i) * 14ms); }
.o-oil i.on { scale: 1; opacity: 1; }
.o-top { position: absolute; translate: -50% -50%; rotate: var(--r); transition: left 520ms var(--s-ease-io), top 520ms var(--s-ease-io), rotate 520ms var(--s-ease-io); }
.o-top-body { filter: drop-shadow(4px 6px 4px rgb(0 0 0 / 0.42)); will-change: transform; }
.o-top img { width: 100%; height: auto; -webkit-user-drag: none; }
.o-ripple { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 1.5px oklch(1 0 0 / 0.5), inset 0 0 10px oklch(1 0 0 / 0.25); pointer-events: none; }

/* controls: no boxes around groups, just a legend and the options */
.o-form { display: grid; gap: 30px; }
.o-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.o-field legend { padding: 0; margin-bottom: 12px; font-family: var(--s-serif); font-weight: 600; font-size: 1.2rem; }
.o-field input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.o-broths { display: grid; gap: 6px; }
.o-broth { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; min-height: 64px; padding: 8px 16px 8px 8px; border-radius: var(--s-r-md); border: 1px solid transparent; cursor: pointer; transition: background-color 160ms, border-color 160ms; }
.o-broth img { width: 48px; height: 48px; border-radius: 50%; }
.o-broth-name { font-weight: 500; }
.o-broth .s-price { color: var(--s-mute); }
.o-broth:hover { background: oklch(1 0 0 / 0.035); }
.o-broth:has(:checked) { background: var(--s-bg-2); border-color: var(--s-line-2); box-shadow: var(--s-hi); }
.o-broth:has(:checked) .s-price { color: var(--s-ink); }
.o-broth:has(:focus-visible), .o-seg-opt:has(:focus-visible), .o-extra:has(:focus-visible) { outline: 2px solid var(--s-ink); outline-offset: 2px; }

.o-seg { position: relative; display: flex; padding: 4px; border-radius: var(--s-r-md); background: var(--s-bg-1); box-shadow: inset 0 0 0 1px var(--s-line); }
.o-seg-opt { position: relative; z-index: 1; flex: 1; min-height: 44px; display: grid; place-items: center; padding: 0 6px; border-radius: calc(var(--s-r-md) - 4px); cursor: pointer; font-size: 0.92rem; font-weight: 500; color: var(--s-mute); text-align: center; line-height: 1.2; transition: color 160ms; }
.o-seg-opt:has(:checked) { color: var(--s-ink); }
.o-knob { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: calc(var(--s-r-md) - 4px); background: var(--s-bg-2); box-shadow: var(--s-hi), 0 0 0 1px var(--s-line-2), 0 6px 14px -8px oklch(0 0 0 / 0.8); transform-origin: center; }

.o-extras { display: grid; grid-template-columns: 1fr; gap: 2px; margin-inline: -12px; }
.o-extra { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: var(--s-r-sm); cursor: pointer; transition: background-color 160ms; }
.o-extra:hover { background: oklch(1 0 0 / 0.035); }
.o-extra-name { flex: 1; font-size: 0.95rem; }
.o-extra-price { color: var(--s-mute); font-size: 0.9rem; }
.o-box { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.5px solid var(--s-line-2); display: grid; place-items: center; transition: background-color 160ms, border-color 160ms; }
.o-box svg { width: 14px; height: 14px; fill: none; stroke: oklch(0.97 0.012 85); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 220ms var(--s-ease-out); }
.o-extra:has(:checked) .o-box { background: var(--s-red-deep); border-color: transparent; }
.o-extra:has(:checked) .o-box svg { stroke-dashoffset: 0; }
.o-extra:has(:checked) .o-extra-price { color: var(--s-ink); }

.o-addrow { display: flex; gap: 12px; align-items: stretch; padding-top: 6px; }
.o-add { flex: 1; justify-content: space-between; min-height: 56px; }

/* steppers */
.o-step { display: inline-flex; align-items: center; border-radius: var(--s-r-sm); background: var(--s-bg-1); box-shadow: inset 0 0 0 1px var(--s-line); }
.o-step button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: calc(var(--s-r-sm) - 2px); transition: background-color 150ms, transform 150ms var(--s-ease-out); }
.o-step button:hover:not(:disabled) { background: oklch(1 0 0 / 0.06); }
.o-step button:active:not(:disabled) { transform: scale(0.94); }
.o-step button:disabled { opacity: 0.35; cursor: default; }
.o-step svg, .o-side-add svg, .o-sheet-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.o-step output { min-width: 22px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.o-step-lg button { width: 48px; height: 56px; }
.o-step-lg output { min-width: 28px; font-size: 1.05rem; }

/* sides: compact rows, small photos, no dividers */
.o-sides { margin-top: clamp(72px, 9vw, 128px); }
.o-side-groups { margin-top: 28px; display: grid; gap: 40px; }
.o-side-h { font-family: var(--s-sans); font-size: 0.95rem; font-weight: 500; color: var(--s-mute); margin-bottom: 8px; }
.o-side-list { display: grid; grid-template-columns: 1fr; gap: 2px; max-width: 760px; }
.o-side { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto 104px; align-items: center; gap: 18px; min-height: 92px; padding: 8px 0; }
.o-side img { width: 60px; height: 75px; object-fit: cover; object-position: 50% 62%; border-radius: 8px; }
.o-side-name { font-weight: 500; line-height: 1.3; }
.o-side-desc { color: var(--s-mute); font-size: var(--s-t-small); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.o-side .s-price { color: var(--s-mute); font-size: 0.95rem; }
.o-side-ctl { min-width: 100px; display: flex; justify-content: flex-end; }
.o-side-add { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 10px; border-radius: var(--s-r-sm); background: var(--s-bg-1); box-shadow: inset 0 0 0 1px var(--s-line); font-size: 0.9rem; font-weight: 500; transition: background-color 150ms, transform 150ms var(--s-ease-out); }
.o-side-add:hover { background: var(--s-bg-2); }
.o-side-add:active { transform: scale(0.97); }

/* summary: a raised panel (lighter surface, alpha border, top highlight), sticky on desktop */
/* It never scrolls inside itself (Place order must always be reachable): when it is taller than the window,
   --sum-top (set in order.js) goes negative so it pins by its BOTTOM edge instead of its top. */
.o-sum { position: sticky; top: var(--sum-top, 88px); }
.o-sum-bar { display: none; }
.o-sum-panel { padding: 26px; border-radius: var(--s-r-lg); background: var(--s-bg-1); box-shadow: inset 0 0 0 1px var(--s-line), var(--s-hi); }
.o-sum-head { display: flex; align-items: center; justify-content: space-between; }
.o-sum-head h2:focus { outline: none; }
.o-sheet-close { display: none; width: 44px; height: 44px; place-items: center; border-radius: 50%; margin-right: -10px; }
.o-lines { margin-top: 16px; display: grid; gap: 2px; }
.o-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; padding: 12px 8px; margin: 0 -8px; border-radius: calc(var(--s-r-lg) - 14px); }
.o-line-img { width: 44px; height: 55px; object-fit: cover; object-position: 50% 62%; border-radius: 6px; }
.o-line-img.is-round { height: 44px; border-radius: 50%; }
.o-line-name { font-weight: 500; line-height: 1.35; }
.o-line-opts { margin-top: 2px; font-size: 0.82rem; color: var(--s-mute); line-height: 1.45; }
.o-remove { margin-top: 2px; margin-left: -6px; min-height: 32px; padding: 0 6px; font-size: 0.8rem; color: var(--s-mute); text-decoration: underline; text-decoration-color: oklch(0.76 0.025 75 / 0.4); text-underline-offset: 0.2em; border-radius: 6px; }
.o-remove:hover { color: var(--s-ink); }
.o-line-end { display: grid; justify-items: end; align-content: start; gap: 8px; }
.o-line-end .o-step button { width: 32px; height: 32px; }
.o-empty { padding: 26px 0 10px; text-align: center; color: var(--s-mute); }
.o-empty-bowl { width: 96px; margin: 0 auto 14px; fill: none; stroke: oklch(0.76 0.025 75 / 0.6); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.o-empty p { max-width: 18em; margin-inline: auto; }
.o-total { margin-top: 18px; padding-top: 18px; box-shadow: 0 -1px 0 var(--s-line); display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.o-total b { font-weight: 600; font-size: 1.25rem; }
.o-fine { margin-top: 6px; font-size: 0.82rem; color: var(--s-mute); }
.o-place { margin-top: 26px; display: grid; gap: 18px; }
.o-input { display: grid; gap: 8px; }
.o-input label { font-size: 0.9rem; font-weight: 500; }
.o-input :is(input, select) { width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--s-r-sm); border: 1px solid var(--s-line-2); background: var(--s-bg); color: var(--s-ink); font-size: 1rem; transition: border-color 160ms, box-shadow 160ms; }
.o-input select { appearance: none; padding-right: 40px; cursor: pointer; background: var(--s-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23d9d0bf' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; font-variant-numeric: tabular-nums; }
.o-input select option { background: oklch(0.2 0.014 55); color: oklch(0.93 0.02 85); }
.o-input :is(input, select):hover { border-color: oklch(1 0 0 / 0.3); }
.o-input :is(input, select):focus-visible { outline: none; border-color: var(--s-ink); box-shadow: 0 0 0 3px oklch(0.93 0.02 85 / 0.18); }
.o-input.is-bad input, .o-input.is-bad input:focus-visible { border-color: var(--s-red-ink); box-shadow: 0 0 0 3px oklch(0.58 0.19 28 / 0.22); }
.o-note { font-size: 0.82rem; color: var(--s-mute); line-height: 1.5; }
.o-err { font-size: 0.85rem; color: var(--s-red-ink); line-height: 1.45; }
.o-err:empty { display: none; }
.o-place-btn { width: 100%; justify-content: space-between; min-height: 56px; }
.o-place-btn .s-price:empty { display: none; }
.o-place-btn:only-child, .o-place-btn:has(.s-price:empty) { justify-content: center; }
.o-scrim { display: none; }

.o-ghost { position: fixed; z-index: 60; pointer-events: none; border-radius: 50%; will-change: transform; filter: drop-shadow(0 18px 22px rgb(0 0 0 / 0.5)); }

@media (max-width: 1180px) {
  .o-build-grid { grid-template-columns: 1fr; }
  /* the bowl stays in view while the options scroll under it, so every change is seen */
  .o-build-grid { gap: 8px; }
  .o-stage { position: sticky; top: 64px; z-index: 3; width: min(60vw, 340px); margin-inline: auto; }
  .o-stage::before { content: ""; position: absolute; z-index: -1; left: 50%; translate: -50% 0; width: 172%; top: -10px; bottom: -28px; background: var(--s-bg);
    -webkit-mask: linear-gradient(to bottom, #000 82%, #0000); mask: linear-gradient(to bottom, #000 82%, #0000); }
  .o-glow { inset: -8%; }
}
/* phones and upright tablets: the summary becomes a bottom sheet with a bar that is always there */
@media (max-width: 959px) {
  .o-layout { grid-template-columns: 1fr; }
  .o-stage::before { width: 100vw; }
  .o-page .s-foot { padding-bottom: 104px; }
  .o-sum { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; top: auto; pointer-events: none; }
  .o-sum-bar { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 12px; width: calc(100% - 2 * var(--s-gutter)); margin: 0 auto 12px; margin-bottom: max(12px, env(safe-area-inset-bottom)); min-height: 60px; padding: 0 18px; border-radius: var(--s-r-lg); text-align: left;
    background: oklch(0.25 0.016 55 / 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--s-line-2), var(--s-hi), 0 18px 40px -16px oklch(0 0 0 / 0.8); transition: transform 150ms var(--s-ease-out); }
  .o-sum-bar:active { transform: scale(0.98); }
  .o-sum-bar-t { font-weight: 600; }
  .o-sum-bar-n { flex: 1; color: var(--s-mute); font-size: 0.9rem; }
  .o-sum-bar .s-price { font-weight: 600; }
  .o-chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .has-order .o-sum-bar { background: oklch(0.5 0.17 28 / 0.96); }
  .has-order .o-sum-bar .o-sum-bar-n { color: oklch(0.97 0.012 85 / 0.85); }
  .o-sum-panel { pointer-events: auto; position: absolute; left: 0; right: 0; bottom: 0; max-height: 88dvh; border-radius: var(--s-r-lg) var(--s-r-lg) 0 0; padding: 18px var(--s-gutter) max(24px, env(safe-area-inset-bottom));
    background: oklch(0.205 0.014 55); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.1), 0 -20px 60px -10px oklch(0 0 0 / 0.7);
    transform: translateY(102%); visibility: hidden; transition: transform 220ms var(--s-ease-in, cubic-bezier(0.4, 0, 1, 1)), visibility 0s 220ms; }
  .o-sum-panel { overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .o-sum.is-open .o-sum-panel { transform: none; visibility: visible; transition: transform 300ms var(--s-ease-out), visibility 0s; }
  .o-sum-panel::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; margin: -6px auto 10px; background: oklch(1 0 0 / 0.2); }
  .o-sheet-close { display: grid; }
  .o-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: oklch(0.1 0.01 55 / 0.6); animation: o-fade 220ms var(--s-ease-out); }
  .o-scrim[hidden] { display: none; }
}
/* a sheet with room: only the list of lines scrolls, the subtotal, pickup time, name and Place order stay put */
@media (max-width: 959px) and (min-height: 620px) {
  .o-sum-panel { display: flex; flex-direction: column; overflow: hidden; }
  .o-sum-panel > * { flex: none; }
  .o-lines { flex: 0 1 auto; min-height: 72px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; margin-inline: calc(-1 * var(--s-gutter)); padding-inline: var(--s-gutter);
    -webkit-mask: linear-gradient(to bottom, #000 calc(100% - 18px), #0000); mask: linear-gradient(to bottom, #000 calc(100% - 18px), #0000); }
  .o-lines:empty { display: none; }
  .o-total { margin-top: 8px; }
}
@media (max-width: 560px) {
  .o-side { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "img text text" "img price ctl"; gap: 4px 14px; }
  .o-side img { grid-area: img; width: 48px; height: 60px; }
  .o-side-text { grid-area: text; }
  .o-side .s-price { grid-area: price; }
  .o-side-ctl { grid-area: ctl; min-width: 0; }
  .o-addrow { flex-wrap: wrap; }
  .o-step-lg button { width: 44px; }
}
@keyframes o-fade { from { opacity: 0; } }

/* ================================================================ the ticket */
.t-dlg { border: 0; padding: 0; margin: auto; background: none; color: inherit; overflow: visible; max-width: min(400px, calc(100vw - 64px)); width: 100%; max-height: 100dvh; }
.t-dlg::backdrop { background: oklch(0.1 0.01 55 / 0.72); transition: background-color 1200ms var(--s-ease-out); }
.t-dlg.is-warm::backdrop { background: oklch(0.2 0.045 52 / 0.84); }
.t-dlg:focus { outline: none; }
.t-stack { display: grid; justify-items: center; padding: 16px 0; }
.t-printer { position: relative; z-index: 2; width: calc(100% + 24px); height: 34px; border-radius: 12px; background: linear-gradient(in oklch, oklch(0.3 0.012 55), oklch(0.22 0.01 55)); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.12), inset 0 0 0 1px oklch(1 0 0 / 0.06), 0 14px 30px -12px oklch(0 0 0 / 0.9); }
.t-slot { position: absolute; left: 22px; right: 22px; bottom: 9px; height: 4px; border-radius: 2px; background: oklch(0.08 0.005 55); box-shadow: 0 1px 0 oklch(1 0 0 / 0.08); }
/* the paper only shows below the slot: clip the top edge, leave the sides and bottom free for the swing */
.t-feed { position: relative; z-index: 1; width: 100%; margin-top: -13px; clip-path: inset(0 -60px -200px -60px); }
.is-torn .t-feed { clip-path: none; }
.t-paper { position: relative; padding: 30px 26px 40px; color: oklch(0.26 0.02 55); transform-origin: 50% 0; font-size: 0.9rem; line-height: 1.5;
  background: oklch(0.95 0.022 85) 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: 0 22px 40px -18px oklch(0 0 0 / 0.75);
  -webkit-mask: conic-gradient(from 135deg at 50% 100%, #0000 90deg, #000 0) 50% 100% / 14px 7px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat;
          mask: conic-gradient(from 135deg at 50% 100%, #0000 90deg, #000 0) 50% 100% / 14px 7px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat; }
.t-paper h2, .t-paper p, .t-paper ul, .t-paper dl { color: inherit; }
.t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.t-logo { font-family: var(--s-logo); font-size: 30px; line-height: 1; color: oklch(0.5 0.17 28) !important; }
.t-meta { font-size: 0.78rem; text-align: right; color: oklch(0.42 0.02 55) !important; line-height: 1.45; }
.t-no { position: relative; margin: 26px 0 6px; display: inline-block; }
.t-no h2 { font-family: var(--s-serif); font-weight: 700; font-size: 2rem; line-height: 1.1; padding: 6px 14px 6px 4px; }
.t-num { font-variant-numeric: tabular-nums; }
.t-circle { position: absolute; left: -14px; top: -14px; width: calc(100% + 26px); height: calc(100% + 26px); overflow: visible; pointer-events: none; }
.t-circle path { fill: none; stroke: oklch(0.5 0.17 28); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.t-who { margin-top: 12px; display: grid; gap: 2px; }
.t-who div { display: flex; gap: 10px; }
.t-who dt { width: 4.5em; color: oklch(0.42 0.02 55); }
.t-who dd { font-weight: 600; }
.t-items { margin-top: 18px; padding: 14px 0; border-block: 1.5px dashed oklch(0.26 0.02 55 / 0.3); display: grid; gap: 10px; }
.t-items li { display: grid; grid-template-columns: 1.6em 1fr auto; gap: 8px; align-items: baseline; }
.t-q, .t-p { font-variant-numeric: tabular-nums; font-weight: 600; }
.t-n small { display: block; font-size: 0.78rem; color: oklch(0.42 0.02 55); line-height: 1.4; }
.t-total { margin-top: 12px; display: flex; justify-content: space-between; font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.t-honest { margin-top: 18px; font-size: 0.82rem; color: oklch(0.38 0.02 55) !important; line-height: 1.55; }
.t-done { margin-top: 40px; min-width: 140px; }
@media (max-height: 760px) { .t-paper { padding-block: 22px 32px; } .t-no { margin-top: 16px; } .t-items { gap: 6px; } .t-done { margin-top: 28px; } }

/* ================================================================ home sections
   One grid for everything under the hero: .s-wrap, three columns (the menu header, the bowls, the opening copy and
   Visit line up on it) or two and four (the craft halves, the plates), always the same gutter (--h-gap).
   One space between sections (--h-sec) and one step inside them (--h-step). */
.home-rest { position: relative; z-index: 1; overflow-x: clip;
  --h-gap: clamp(20px, 2.8vw, 40px);
  --h-sec: clamp(64px, 8.5vw, 120px);
  --h-step: clamp(36px, 4.4vw, 60px); }
.h-open { position: relative; padding-top: clamp(8px, 2vw, 32px); }
/* the counter rises out of the dark, so the coloured hero above hands over gently */
.h-open-photo img { width: 100%; height: min(80dvh, 56vw); min-height: 400px; object-fit: cover; object-position: 30% 50%;
  -webkit-mask: linear-gradient(in oklch to bottom, #0000, #000 22%, #000 70%, #0000); mask: linear-gradient(in oklch to bottom, #0000, #000 22%, #000 70%, #0000); }
.h-open-copy { position: relative; margin-top: clamp(-200px, -14vw, -110px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--h-gap); row-gap: 24px; align-items: end; }
.h-open-copy .s-display { grid-column: 1 / span 2; font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem); }
.h-open-copy .s-lede { grid-column: 3; }

/* ---- On the menu */
.h-menu { padding-top: var(--h-sec); }
.h-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--h-gap); row-gap: 16px; align-items: last baseline; }
.h-head .s-h2 { grid-column: 1 / span 2; }
.h-head-aside p { color: var(--s-mute); font-size: 1.0625rem; line-height: 1.6; }
.h-more { display: inline-block; margin-top: 10px; font-weight: 500; }

/* three bowls, one size, one top line; subgrid rows keep names, text and links level across the columns */
.h-ramen { margin-top: var(--h-step); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--h-gap); }
.h-ramen-item { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; }
.h-ramen-item .m-bowl { width: 100%; margin-bottom: clamp(20px, 2.4vw, 32px); }
.h-ramen-item .m-name { font-size: clamp(1.35rem, 1.15rem + 0.5vw, 1.6rem); }
.h-ramen-item .m-name .s-price { font-size: 1.0625rem; }
.h-ramen-item .m-desc { margin-top: 8px; font-size: 1rem; line-height: 1.6; max-width: none;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.h-ramen-go { justify-self: start; align-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-weight: 500; }

/* four plates: one size, 4:5, one row */
.h-dishes { margin-top: var(--h-step); padding-top: var(--h-step); border-top: 1px solid var(--s-line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--h-step) var(--h-gap); }
.h-dish-name { margin-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 1.0625rem; font-weight: 500; }
.h-dish-name .s-price { color: var(--s-mute); }

/* ---- How it is made: two halves side by side, same photo size, text rows level */
.h-craft { padding-top: var(--h-sec); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--h-gap); row-gap: var(--h-step); }
.h-craft-item { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; }
.h-craft-photo { border-radius: var(--s-r-lg); overflow: hidden; background: var(--s-bg-1); }
.h-craft-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.h-craft-noodles img { object-position: 53% 50%; }
.h-craft-h { margin-top: clamp(20px, 2.4vw, 32px); font-family: var(--s-serif); font-weight: 600; font-size: var(--s-t-h3); line-height: 1.2; text-wrap: balance; }
.h-craft-item p { margin-top: 10px; color: var(--s-mute); font-size: 1.0625rem; max-width: 36em; }

/* ---- Visit: heading and the order button in the first column, the facts over the other two (label | value).
   At least a screen minus the footer tall, so index.html#visit lands with the section at the top. */
.h-visit { padding-block: var(--h-sec); min-height: calc(100svh - 88px); scroll-margin-top: 0px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--h-gap); row-gap: var(--h-step); align-content: center; align-items: start; }
/* the heading starts level with the first fact, the button ends level with the last rule */
.h-visit-main { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; padding-top: clamp(14px, 1.6vw, 22px); }
.h-visit-now { margin-top: 16px; color: var(--s-mute); font-size: var(--s-t-lede); }
.h-visit-btn { margin-top: auto; }
.h-visit-facts { grid-column: 2 / span 2; border-bottom: 1px solid var(--s-line); }
.h-fact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--h-gap); padding-block: clamp(22px, 2.5vw, 32px); border-top: 1px solid var(--s-line); }
.h-fact dt { font-family: var(--s-serif); font-weight: 600; font-size: var(--s-t-h3); line-height: 1.2; }
.h-fact dd { margin: 0; font-size: 1.125rem; line-height: 1.5; color: var(--s-ink); }
.h-fact .s-link { font-weight: 500; }
.h-hours div { display: flex; justify-content: space-between; gap: 16px; }
.h-hours div + div { margin-top: 10px; }
.h-hours dt { font-family: inherit; font-weight: 400; font-size: inherit; line-height: inherit; color: var(--s-mute); }
.h-hours dd { font-size: inherit; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.s-hours dd { white-space: nowrap; }

@media (max-width: 900px) {
  .h-open-copy, .h-head, .h-visit { grid-template-columns: minmax(0, 1fr); }
  .h-open-copy .s-display, .h-open-copy .s-lede, .h-head .s-h2, .h-visit-facts { grid-column: 1; }
  .h-head { align-items: start; }
  .h-head-aside { max-width: 34em; }
  .h-visit { min-height: 0; }
  .h-visit-main { padding-top: 0; }
  .h-visit-btn { margin-top: 28px; }
  .h-ramen-item .m-name { font-size: 1.2rem; }
  .h-dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .h-open-photo img { min-height: 340px; height: 62dvh; object-position: 24% 50%; }
  /* each bowl on the left, its text beside it, centred on the bowl */
  .h-ramen { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .h-ramen-item { grid-row: auto; grid-template-rows: 1fr auto auto auto 1fr; grid-template-columns: 40% minmax(0, 1fr); column-gap: 18px; }
  .h-ramen-item .m-bowl { margin: 0; grid-column: 1; grid-row: 1 / -1; align-self: center; }
  .h-ramen-item .m-name { grid-column: 2; grid-row: 2; font-size: 1.2rem; }
  .h-ramen-item .m-name .s-price { font-size: 1rem; }
  .h-ramen-item .m-desc { grid-column: 2; grid-row: 3; font-size: 0.9375rem; line-height: 1.5; margin-top: 4px; display: block; overflow: visible; }
  .h-ramen-go { grid-column: 2; grid-row: 4; margin-top: 0; }
  .h-dishes { gap: 28px 14px; }
  .h-dish-name { font-size: 0.9375rem; margin-top: 10px; }
  .h-craft { grid-template-columns: minmax(0, 1fr); }
  .h-craft-item { grid-row: auto; display: block; }
  .h-craft-photo img { aspect-ratio: 3 / 2; }
  .h-craft-h { margin-top: 18px; }
  .h-craft-item p { font-size: 1rem; }
  .h-fact { grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding-block: 20px; }
  .h-fact dd { font-size: 1rem; }
}

/* ---------------------------------------------------------------- reduced motion: keep fades, drop movement */
@media (prefers-reduced-motion: reduce) {
  .s-rv.rv-wait { translate: none; }
  .site *, .home-rest * { scroll-behavior: auto !important; }
  .o-oil i { transition: opacity 200ms linear; scale: 1; }
  .o-top { transition: none; }
  .o-sum-panel, .o-sum.is-open .o-sum-panel { transition: visibility 0s, opacity 150ms linear !important; }
}
html:has(body.site) { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html:has(body.site) { scroll-behavior: auto; } }
