/* Sakura Japanese Grill: components (round 5, rewritten clean). Tokens only; no raw spacing.
   The look follows the owner's reference: black, quiet, small type with air around it, a serif at size
   only where it counts, hairlines and keylines, photographs doing the work, red as a spark. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + var(--s-5)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--font); font-size: var(--t-body); line-height: 1.85; font-weight: 400; letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; }
/* Texture: grain belongs to the grounds only. It is part of each section's background, so it never lies over
   a photograph, a card's text or the header. */
/* On the stone cards the grain is dark, like paper */
/* The stone cards are plain: no grain on them. */
img, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: var(--s-2); z-index: 30; transform: translateY(-300%); background: var(--ink); }
.skip:focus { transform: none; }
p { text-wrap: pretty; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section) 0; background: var(--bg) url("../assets/pattern/grain-bg.png") 0 0 / 128px 128px; color: var(--fg); }
.section > .wrap { position: relative; z-index: 1; }
.stack { display: flex; flex-direction: column; gap: var(--s-5); align-items: flex-start; }
.stack > p { max-width: 32em; }
.head { display: flex; flex-direction: column; gap: var(--s-5); align-items: flex-start; }
.head--centre { align-items: center; text-align: center; }

/* The guide: a hairline down the centre that draws itself as you scroll and carries a ring from one section to the next.
   --p is set by the script (0 to 1). Without the script, or with reduced motion, the line is simply whole. */
.thread { --p: 1; position: absolute; left: 50%; top: calc(var(--thread) * -0.5); z-index: 3; width: 1px; height: var(--thread); background: rgba(255, 255, 255, 0.16); pointer-events: none; }
.thread::before { content: ""; position: absolute; inset: 0; background: var(--white); transform-origin: 0 0; transform: scaleY(var(--p)); }
.thread::after { content: ""; position: absolute; left: -4px; top: calc(var(--p) * 100% - 4px); width: 9px; height: 9px; border: 1px solid var(--white); border-radius: 50%; background: var(--red); }

/* ---------- Type ---------- */
.label { font-size: var(--t-small); font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; line-height: 1.6; }
.h2 { font-family: var(--font-display); font-variation-settings: "opsz" 28; font-weight: 400; font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
em, i, cite, address { font-style: normal; }
.h3 { font-family: var(--font-display); font-variation-settings: "opsz" 18; font-weight: 500; font-size: var(--t-h3); line-height: 1.3; }
.lead { font-size: var(--t-lead); line-height: 1.7; max-width: 30em; }
.quiet { color: var(--fg-quiet); }
.caption { font-size: var(--t-small); line-height: 1.6; letter-spacing: 0.04em; color: var(--fg-quiet); }
.dot { display: inline-block; width: var(--s-2); height: var(--s-2); border-radius: 50%; background: var(--red); flex: none; }
.hy { font-family: var(--font); font-weight: 400; }
.ghost { position: absolute; z-index: 0; font-family: var(--font-display); font-variation-settings: "opsz" 40; font-weight: 400; font-size: var(--ghost); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; color: var(--fg); opacity: 0.09; pointer-events: none; user-select: none; }

/* ---------- Actions: a hairline box, and a text link with a diamond ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--control); padding: 0 var(--s-6); border: 1px solid currentColor; border-radius: var(--radius); background: transparent; color: inherit; font-size: var(--t-small); font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
.btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
[data-ground="stone"] .btn:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.more { display: inline-flex; align-items: center; gap: var(--s-5); min-height: var(--control); font-size: var(--t-small); font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.more span { border-bottom: 1px solid currentColor; padding-bottom: var(--s-1); }
.more::after { content: ""; width: var(--s-4); height: var(--s-4); border: 1px solid currentColor; transform: rotate(45deg); transition: background-color .4s ease, border-color .4s ease; }
.more:hover::after { background: var(--red); border-color: var(--red); }

/* ---------- Photographs: whole, with a keyline set off from the edge ---------- */
.photo { position: relative; width: 100%; background: var(--charcoal); }
.photo img { display: block; width: 100%; height: auto; }
.photo--framed::after { content: ""; position: absolute; left: var(--frame); top: var(--frame); right: calc(var(--frame) * -1); bottom: calc(var(--frame) * -1); border: 1px solid var(--line); pointer-events: none; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 20; height: var(--header); background: var(--ink); color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.header__in { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
.header__mark { display: inline-flex; align-items: center; height: var(--control); margin-right: auto; transition: opacity .4s, visibility .4s; }
.header__mark img { height: 40px; width: auto; }
.js .header.is-top .header__mark { opacity: 0; visibility: hidden; }
.nav { display: none; }
.nav a { display: inline-flex; align-items: center; min-height: var(--control); text-decoration: none; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.status { display: none; align-items: center; gap: var(--s-2); white-space: nowrap; }
.header__side { display: flex; align-items: center; gap: var(--s-3); }
.header .btn { min-height: 44px; padding: 0 var(--s-5); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3); min-height: 44px; padding: 0 var(--s-3); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.menu-btn[hidden] { display: none; }
.menu-btn__bars { position: relative; width: 28px; height: 9px; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .3s; }
.menu-btn__bars::before { top: 0; }
.menu-btn__bars::after { bottom: 0; left: 8px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(4px) rotate(20deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-4px) rotate(-20deg); left: 0; }

.sheet { background: var(--ink); color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sheet__in { display: flex; flex-direction: column; padding-top: var(--s-5); padding-bottom: var(--s-7); }
.sheet a { display: flex; align-items: center; min-height: var(--s-8); border-bottom: 1px solid rgba(255, 255, 255, 0.16); font-family: var(--font-display); font-variation-settings: "opsz" 18; font-size: var(--t-h3); text-decoration: none; }
.sheet .status { display: flex; padding-top: var(--s-6); }
.js .sheet { position: fixed; z-index: 19; left: 0; right: 0; top: var(--header); bottom: 0; overflow: auto; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.js .sheet.is-open { visibility: visible; opacity: 1; }

@media (min-width: 1024px) {
  .header__in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s-6); }
  .nav { display: flex; gap: var(--s-7); grid-column: 1; grid-row: 1; }
  .header__mark { grid-column: 2; grid-row: 1; margin: 0; }
  .header__side { grid-column: 3; grid-row: 1; justify-self: end; gap: var(--s-6); }
  .header .status { display: inline-flex; }
  .menu-btn, .sheet, .js .sheet { display: none; }
}

/* ---------- Hero: the fire, slowly changing, and almost nothing on it ---------- */
.hero { position: relative; min-height: calc(100svh - var(--header)); display: flex; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2.4s ease; }
.hero__slides img.is-on { opacity: 1; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(17, 17, 17, 0.8) 0%, rgba(17, 17, 17, 0.12) 26%, rgba(17, 17, 17, 0.5) 46%, rgba(17, 17, 17, 0.92) 70%, rgba(17, 17, 17, 0.97) 100%); }
.hero__in { position: relative; flex: 1; display: flex; flex-direction: column; padding-top: var(--s-6); padding-bottom: var(--s-8); }
.hero__lockup { width: var(--lockup); align-self: center; }
.hero__lockup img { width: 100%; }
.hero h1 { margin-top: auto; padding-top: var(--s-8); font-family: var(--font-display); font-variation-settings: "opsz" 24; font-weight: 400; font-size: var(--t-display); line-height: 0.98; letter-spacing: -0.015em; }
.hero h1 .line { display: block; }
.hero h1 em { display: inline-block; padding-left: var(--s-7); }
.hero__foot { display: flex; flex-direction: column; gap: var(--s-6); margin-top: var(--s-6); }
.hero__say { display: flex; flex-direction: column; gap: var(--s-5); align-items: flex-start; }
.hero .lead { max-width: 26em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-6); }
.hero__tonight { display: flex; flex-direction: column; gap: var(--s-1); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.2); }
.hero__tonight a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
.hero__scroll { display: none; }
.rail { display: none; }

@media (min-width: 1024px) {
  .hero__shade { background: linear-gradient(180deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.05) 30%, rgba(17, 17, 17, 0.1) 52%, rgba(17, 17, 17, 0.9) 100%), linear-gradient(90deg, rgba(17, 17, 17, 0.55) 0%, rgba(17, 17, 17, 0) 55%); }
  .hero__in { padding-top: var(--s-7); padding-bottom: var(--s-7); }
  .hero__foot { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .hero__tonight { padding-top: 0; border-top: 0; text-align: right; align-items: flex-end; }
  .hero__scroll { display: block; position: absolute; left: 50%; bottom: 0; width: 1px; height: var(--thread); background: rgba(255, 255, 255, 0.5); }
  .hero__scroll::after { content: ""; position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 50%; }
  .rail { display: block; position: absolute; right: var(--s-5); top: 50%; z-index: 2; transform: translateY(-50%); writing-mode: vertical-rl; font-size: var(--t-small); font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase; line-height: 1.6; color: rgba(255, 255, 255, 0.76); white-space: nowrap; }
}

/* ---------- Welcome: words in the middle, photographs scattered either side ---------- */
.welcome__in { display: flex; flex-direction: column; align-items: center; gap: var(--s-7); }
.welcome__text { display: flex; flex-direction: column; align-items: center; gap: var(--s-5); max-width: 34em; text-align: center; }
.welcome__text p { color: var(--fg-quiet); }
.scatter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); width: 100%; align-items: start; }
@media (min-width: 1024px) {
  .welcome__in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: var(--col-gap); align-items: center; }
  .welcome__text { grid-column: 2; grid-row: 1 / span 2; justify-self: center; }
  .scatter { display: contents; }
  .scatter .photo:nth-child(1) { grid-column: 1; grid-row: 1; width: 80%; }
  .scatter .photo:nth-child(2) { grid-column: 1; grid-row: 2; justify-self: end; width: 62%; }
  .scatter .photo:nth-child(3) { grid-column: 3; grid-row: 1; justify-self: end; width: 66%; }
  .scatter .photo:nth-child(4) { grid-column: 3; grid-row: 2; width: 86%; }
}

/* ---------- The fire: a cook's hands across the screen, the words beside them ---------- */
.craft { overflow: hidden; }
.craft__bg { position: absolute; inset: 0; overflow: hidden; }
.craft__bg img { width: 100%; height: 112%; object-fit: cover; object-position: 30% 50%; }
.craft__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 17, 0.35) 0%, rgba(17, 17, 17, 0.88) 55%), linear-gradient(180deg, var(--ink) 0%, rgba(17, 17, 17, 0) 24%, rgba(17, 17, 17, 0) 76%, var(--ink) 100%); }
.craft .ghost { left: var(--gutter); bottom: var(--s-6); opacity: 0.14; }
.craft { min-height: 80svh; display: flex; align-items: center; }
.craft > .wrap { width: 100%; }
.craft__text { width: 100%; max-width: 30em; margin-left: auto; }
.craft__text p { color: var(--fg-quiet); }
@media (min-width: 1024px) {
  .craft__bg::after { background: linear-gradient(90deg, rgba(17, 17, 17, 0.05) 0%, rgba(17, 17, 17, 0.25) 34%, rgba(17, 17, 17, 0.9) 62%), linear-gradient(180deg, var(--ink) 0%, rgba(17, 17, 17, 0) 24%, rgba(17, 17, 17, 0) 76%, var(--ink) 100%); }
}

/* ---------- Six from the grill ---------- */
.plates { display: flex; flex-direction: column; gap: var(--s-8); margin-top: var(--head-gap); }
.plate { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.plate__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.plate__num { font-family: var(--font-display); font-variation-settings: "opsz" 28; font-weight: 400; font-size: var(--t-h2); line-height: 1; color: var(--fg); }
.plate__name { font-family: var(--font-display); font-variation-settings: "opsz" 24; font-weight: 400; font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.plate__desc { max-width: 26em; color: var(--fg-quiet); }
.plate__price { font-size: var(--t-lead); font-weight: 500; line-height: 1.7; font-variant-numeric: tabular-nums; }
.plate--tall .plate__photo { max-width: 360px; }
@media (min-width: 1024px) {
  .plates { gap: var(--section); }
  .plate { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--col-gap); }
  .plate__photo { grid-column: 1 / span 6; grid-row: 1; }
  .plate__text { grid-column: 8 / span 4; grid-row: 1; }
  .plate:nth-child(even) .plate__photo { grid-column: 7 / span 6; }
  .plate:nth-child(even) .plate__text { grid-column: 2 / span 4; }
  .plate--tall .plate__photo { grid-column: 2 / span 4; max-width: none; }
  .plate--tall:nth-child(even) .plate__photo { grid-column: 8 / span 4; }
}

/* ---------- The menu: a card of stone, like a printed one ---------- */
.card { position: relative; padding: var(--s-7) var(--s-5); background: var(--bg); color: var(--fg); }
.menu { column-gap: var(--col-gap); margin-top: var(--head-gap); }
.menu__group { display: flex; flex-direction: column; gap: var(--s-3); break-inside: avoid; margin-bottom: var(--s-7); }
.menu__group:last-child { margin-bottom: 0; }
.menu__group .label { padding-bottom: var(--s-3); border-bottom: 1px solid var(--fg); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--s-4); align-items: baseline; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.rows__name { font-family: var(--font-display); font-variation-settings: "opsz" 18; font-size: var(--t-h3); font-weight: 500; line-height: 1.3; }
.rows__price { font-weight: 500; font-variant-numeric: tabular-nums; }
.rows__note { grid-column: 1 / -1; color: var(--fg-quiet); line-height: 1.6; }
.menu__foot { margin-top: var(--s-7); max-width: 44em; color: var(--fg-quiet); }
@media (min-width: 768px) {
  .card { padding: var(--s-8); }
  .menu { columns: 2; }
}
@media (min-width: 1280px) {
  .menu { columns: 3; }
}

/* ---------- Omakase ---------- */
.omakase__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--head-gap) var(--col-gap); align-items: center; }
.omakase__photo { width: 100%; max-width: 420px; }
.courses { counter-reset: course; width: 100%; max-width: 30em; border-top: 1px solid var(--line); }
.courses li { counter-increment: course; display: grid; grid-template-columns: var(--s-7) minmax(0, 1fr); align-items: baseline; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-variation-settings: "opsz" 18; font-size: var(--t-h3); font-weight: 500; line-height: 1.3; }
.courses li::before { content: counter(course, decimal-leading-zero); font-family: var(--font); font-size: var(--t-small); font-weight: 500; letter-spacing: 0.2em; color: var(--fg-quiet); }
.price { font-size: var(--t-lead); font-weight: 500; line-height: 1.7; }
@media (min-width: 1024px) {
  .omakase__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .omakase__photo { justify-self: center; }
}

/* ---------- The room ---------- */
.room { overflow: hidden; }
.room__frame { position: absolute; inset: 0; overflow: hidden; }
.room__bg { width: 100%; height: 116%; object-fit: cover; object-position: 50% 60%; }
.room__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 17, 17, 0.2) 0%, rgba(17, 17, 17, 0.8) 100%); }
.room__card { width: 100%; max-width: 560px; margin-left: auto; padding: var(--s-6) var(--s-5); background: rgba(17, 17, 17, 0.88); border: 1px solid var(--line); }
.room__caption { width: 100%; max-width: 560px; margin-left: auto; margin-top: var(--s-3); }
.facts { width: 100%; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: baseline; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 500; }
.facts dd { color: var(--fg-quiet); text-align: right; }
@media (min-width: 768px) {
  .room__card { padding: var(--s-8); }
}

/* ---------- Visit: a stone card and the form, over a photograph ---------- */
.visit { overflow: hidden; }
.visit__bg { position: absolute; left: 0; right: 0; top: 0; height: 60%; overflow: hidden; }
.visit__bg img { width: 100%; height: 100%; object-fit: cover; }
.visit__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 17, 17, 0.5) 0%, rgba(17, 17, 17, 0.75) 60%, var(--ink) 100%); }
.visit__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6) var(--col-gap); align-items: start; margin-top: var(--head-gap); }
.visit__card { display: flex; flex-direction: column; gap: var(--s-5); align-items: flex-start; }
.visit__logo { width: var(--lockup); }
.hours { width: 100%; border-top: 1px solid var(--fg); }
.hours li { display: grid; grid-template-columns: var(--s-4) minmax(0, 1fr) auto; gap: var(--s-2); align-items: center; padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.hours .dot { visibility: hidden; }
.hours .is-today { font-weight: 600; }
.hours .is-today .dot { visibility: visible; }
.contact { display: flex; flex-direction: column; align-items: flex-start; }
.contact a { display: inline-flex; align-items: center; min-height: var(--control); text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (min-width: 1024px) {
  .visit__in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) var(--s-4); padding: var(--s-7) var(--s-5); background: var(--charcoal); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.2); --fg-quiet: rgba(255, 255, 255, 0.72); }
.field { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.field label { font-size: var(--t-small); font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; line-height: 1.6; }
.field input, .field select, .field textarea { width: 100%; height: var(--control); padding: 0 var(--inset); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius); background-color: var(--ink); color: var(--white); font-size: var(--t-body); line-height: 1.5; appearance: none; -webkit-appearance: none; color-scheme: dark; }
.field textarea { height: auto; min-height: calc(var(--control) * 2); padding-top: var(--s-3); padding-bottom: var(--s-3); resize: vertical; }
.field select { padding-right: var(--s-7); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23FFFFFF' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--inset) center; background-size: var(--s-3) var(--s-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 1px solid var(--white); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #FF8A8E; box-shadow: inset 0 0 0 1px #FF8A8E; }
.field__error { color: #FF8A8E; font-weight: 500; font-size: var(--t-small); line-height: 1.6; letter-spacing: 0.04em; }
.field__error:empty { display: none; }
.form__wide { grid-column: 1 / -1; }
.form__note { color: var(--fg-quiet); font-size: var(--t-small); line-height: 1.6; letter-spacing: 0.04em; }
.form__done { padding: var(--s-4); border-left: 1px solid var(--red); background: rgba(211, 32, 39, 0.16); }
.form__done[hidden] { display: none; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
@media (min-width: 768px) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--s-8); }
}

/* ---------- Footer ---------- */
.footer { position: relative; padding: var(--s-8) 0 var(--s-6); background: var(--ink) url("../assets/pattern/grain-bg.png") 0 0 / 128px 128px; color: var(--white); border-top: 1px solid rgba(255, 255, 255, 0.1); --fg-quiet: rgba(255, 255, 255, 0.72); }
.footer__in { display: flex; flex-direction: column; align-items: center; gap: var(--s-6); text-align: center; }
.footer__mark img { height: 56px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s-6); }
.footer__links a { display: inline-flex; align-items: center; min-height: var(--control); text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1) var(--s-6); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.14); width: 100%; color: var(--fg-quiet); }

/* ---------- 404 ---------- */
.lost { min-height: calc(100svh - var(--header)); display: flex; align-items: center; }

/* ---------- Motion: slow and little. Hidden states live only in `from` keyframes. ---------- */
@keyframes arrive { from { opacity: 0; transform: translateY(var(--s-5)); } }
@keyframes show { from { opacity: 0; } }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes grow { from { transform: scaleY(0); } }

@media (prefers-reduced-motion: no-preference) {
  .hero__slides img.is-on { animation: breathe 14s ease-out both; }
  .hero__lockup { animation: show 1.6s ease both; }
  .hero h1 .line { animation: arrive 1.5s cubic-bezier(.2, .7, .1, 1) .2s both; }
  .hero h1 .line:nth-child(2) { animation-delay: .4s; }
  .hero__foot { animation: show 1.6s ease .9s both; }
  .hero__scroll { transform-origin: 0 0; animation: grow 1.6s ease 1.2s both; }
  .js .reveal { animation: arrive 1.2s cubic-bezier(.2, .7, .1, 1) both paused; }
  .js .reveal.is-in { animation-play-state: running; }
  .js .photo.reveal { animation: none; }
  .js .photo.reveal img { animation: show .6s ease-out both paused; }
  .js .photo.reveal.is-in img { animation-play-state: running; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slides img, .header__mark, .js .sheet, .btn, .more::after { transition: none; }
}

/* ---------- Round 6: the owner's brush face for the largest text; the first screen set on the centre line ---------- */
.hero h1, .h2 { font-family: var(--font-brush); font-variation-settings: normal; font-weight: 400; letter-spacing: 0.01em; line-height: 1.04; text-transform: uppercase; }
.hero h1 em, .h2 em { font-style: normal; }
.hero h1 { line-height: 1; text-align: center; }
.hero h1 em { display: inline; padding-left: 0; }
.hero__foot, .hero__say { align-items: center; text-align: center; }
.hero__cta { justify-content: center; }
.hero__tonight { align-items: center; text-align: center; width: 100%; }
@media (min-width: 1024px) {
  .hero__shade { background: linear-gradient(180deg, rgba(17, 17, 17, 0.72) 0%, rgba(17, 17, 17, 0.1) 28%, rgba(17, 17, 17, 0.45) 55%, rgba(17, 17, 17, 0.92) 100%); }
  .hero__in { padding-bottom: var(--thread); }
  .hero__scroll { height: calc(var(--thread) - var(--s-6)); }
  .hero__foot { flex-direction: column; align-items: center; }
  .hero__tonight { flex-direction: row; justify-content: center; gap: var(--s-6); text-align: center; align-items: center; }
}

/* ---------- Round 6b: a cherry branch on the menu card, and seals ---------- */
/* A darker pool behind the centred words on the first screen, so they read on the brightest part of the fire */
.hero__shade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 46% at 50% 60%, rgba(17, 17, 17, 0.66) 0%, rgba(17, 17, 17, 0) 100%); }

/* The branch: line only, drawn for this project */
.card__flower { display: block; width: 62%; max-width: 300px; height: auto; margin-left: auto; margin-bottom: var(--s-5); opacity: 0.7; }
@media (min-width: 1024px) {
  .card__flower { position: absolute; right: var(--s-5); top: var(--s-5); width: 24%; max-width: 300px; margin: 0; }
  .card .head--centre .quiet { max-width: 28em; }
}

/* Seals. A square name seal (hanko) signs things; a round one marks how the food is cooked.
   Kanji: 桜 sakura; 炭火焼 sumibiyaki, grilled over charcoal. */
.seal { display: inline-grid; place-items: center; flex: none; width: var(--seal); height: var(--seal); background: var(--red); color: var(--white); font-family: "Seal Kanji", "Hiragino Mincho ProN", serif; font-weight: 800; font-size: 32px; line-height: 1; border-radius: 3px; box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px rgba(255, 255, 255, 0.9); transform: rotate(-5deg); user-select: none; }
.card > .seal { position: absolute; left: var(--s-5); top: calc(var(--seal) * -0.4); }
.signed { display: flex; align-items: center; gap: var(--s-4); }
.stamp { position: absolute; left: calc(var(--stamp) * -0.3); bottom: calc(var(--stamp) * -0.3); z-index: 2; display: grid; place-content: center; justify-items: center; gap: var(--s-1); width: var(--stamp); height: var(--stamp); border: 2px solid var(--red); border-radius: 50%; background: rgba(17, 17, 17, 0.82); color: var(--red); transform: rotate(-10deg); box-shadow: inset 0 0 0 4px rgba(17, 17, 17, 0.82), inset 0 0 0 5px var(--red); user-select: none; }
.stamp b { font-family: "Seal Kanji", "Hiragino Mincho ProN", serif; font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: 0.06em; }
.stamp i { font-style: normal; font-size: 8px; font-weight: 600; letter-spacing: 0.24em; line-height: 1; color: var(--white); }
.omakase__photo { position: relative; }
@media (max-width: 767px) { .stamp { left: var(--s-3); } }

/* ---------- Round 7: every piece of large text is in the brush face; the serif is kept for small text only ---------- */
.ghost, .plate__num, .plate__name { font-family: var(--font-brush); font-variation-settings: normal; font-style: normal; font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; }
.plate__name { line-height: 1.04; }
.plate__name .hy { font-family: inherit; font-weight: inherit; }
.ghost { letter-spacing: 0.02em; }

/* ---------- Round 7b: grain only on plain dark grounds. Sections that carry a photograph behind them have none. ---------- */
.craft, .room, .visit, .hero { background-image: none; }

/* ---------- Round 8: motion. Everything here is off under reduced motion, and every hidden state is a
   paused `from` keyframe, so the page is whole if the script or the animation never runs. ---------- */
.embers { display: none; }
.more::after { transition: background-color .4s ease, border-color .4s ease, transform .6s cubic-bezier(.2, .7, .1, 1); }
.more:hover::after { transform: rotate(225deg); }
.btn { position: relative; overflow: hidden; isolation: isolate; }

@keyframes wipe { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% -4% -10% 0); } }
@keyframes press { from { opacity: 0; transform: rotate(-16deg) scale(1.9); } 60% { opacity: 1; } }
@keyframes ember { 0% { opacity: 0; transform: translate3d(0, 0, 0) scale(1); } 12% { opacity: 0.9; } 100% { opacity: 0; transform: translate3d(var(--dx, 30px), -78vh, 0) scale(0.3); } }
@keyframes sway { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }

@media (prefers-reduced-motion: no-preference) {
  /* Headings are brushed on, left to right. The clip is on an inner span, never on the element being watched. */
  .hero h1 .line { animation: wipe 1.5s cubic-bezier(.65, .05, .2, 1) .25s both; }
  .hero h1 .line:nth-child(2) { animation-delay: .7s; }
  .js .ink { display: inline-block; animation: wipe 1.3s cubic-bezier(.65, .05, .2, 1) .1s both paused; }
  .js .is-in .ink, .js .is-in.ink { animation-play-state: running; }

  /* Seals land like a stamp */
  .js .seal, .js .stamp { animation: press .55s cubic-bezier(.2, 1.5, .4, 1) .25s both paused; }
  .js .seal.is-in, .js .stamp.is-in { animation-play-state: running; }

  /* Lists arrive a line at a time */
  .js .courses.reveal, .js .facts.reveal, .js .hours.reveal { animation: none; }
  .js .courses li, .js .facts div, .js .hours li { animation: arrive .8s cubic-bezier(.2, .7, .1, 1) both paused; }
  .js .courses.is-in li, .js .facts.is-in div, .js .hours.is-in li { animation-play-state: running; }
  .js .courses li:nth-child(2), .js .facts div:nth-child(2), .js .hours li:nth-child(2) { animation-delay: .07s; }
  .js .courses li:nth-child(3), .js .facts div:nth-child(3), .js .hours li:nth-child(3) { animation-delay: .14s; }
  .js .courses li:nth-child(4), .js .hours li:nth-child(4) { animation-delay: .21s; }
  .js .courses li:nth-child(5), .js .hours li:nth-child(5) { animation-delay: .28s; }
  .js .courses li:nth-child(6), .js .hours li:nth-child(6) { animation-delay: .35s; }
  .js .courses li:nth-child(7), .js .hours li:nth-child(7) { animation-delay: .42s; }
  .js .menu__group:nth-child(2) { animation-delay: .1s; }
  .js .menu__group:nth-child(3) { animation-delay: .2s; }
  .js .menu__group:nth-child(4) { animation-delay: .3s; }
  .js .menu__group:nth-child(5) { animation-delay: .4s; }

  /* Embers rise from the coals on the first screen and behind "The fire" */
  .embers { display: block; position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
  .embers i { position: absolute; bottom: -8px; width: 3px; height: 3px; border-radius: 50%; background: #FF8A3D; box-shadow: 0 0 8px 2px rgba(255, 96, 32, 0.55); opacity: 0; animation: ember 9s linear infinite; will-change: transform, opacity; }
  .embers i:nth-child(1) { left: 8%; animation-duration: 11s; --dx: 40px; }
  .embers i:nth-child(2) { left: 21%; animation-duration: 8s; animation-delay: 2.2s; --dx: -24px; }
  .embers i:nth-child(3) { left: 34%; animation-duration: 12s; animation-delay: 4.5s; --dx: 56px; width: 2px; height: 2px; }
  .embers i:nth-child(4) { left: 47%; animation-duration: 9.5s; animation-delay: 1.1s; --dx: -40px; }
  .embers i:nth-child(5) { left: 58%; animation-duration: 10.5s; animation-delay: 6s; --dx: 28px; width: 2px; height: 2px; }
  .embers i:nth-child(6) { left: 69%; animation-duration: 8.5s; animation-delay: 3.4s; --dx: -52px; }
  .embers i:nth-child(7) { left: 81%; animation-duration: 12.5s; animation-delay: 0.6s; --dx: 36px; }
  .embers i:nth-child(8) { left: 92%; animation-duration: 9s; animation-delay: 5.2s; --dx: -30px; width: 2px; height: 2px; }

  /* The branch moves as if in a little air */
  .card__flower { transform-origin: 100% 10%; animation: sway 7s ease-in-out infinite alternate; }
}

/* ---------- Round 9: a spine joins the six dishes, with a branch to each numeral.
   Wide screens: down the middle, in the gap between photograph and words.
   Narrow screens (round 10): down the left edge, beside the words and behind the photographs. ---------- */
.plates { position: relative; }
.plate { position: relative; z-index: 1; }
.trail { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.trail__track { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.trail__ink { stroke: var(--white); stroke-width: 1; }
.trail__arm { stroke: var(--white); stroke-width: 1; stroke-dashoffset: var(--l); transition: stroke-dashoffset .7s cubic-bezier(.2, .7, .1, 1); }
.trail__arm.is-on { stroke-dashoffset: 0; }
.trail__stop { fill: var(--ink); stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; transition: fill .4s ease, stroke .4s ease; }
.trail__stop.is-on { fill: var(--red); stroke: var(--red); }
.trail__head { fill: var(--red); }
@media (max-width: 1023.98px) { .plate__text { padding-left: var(--s-6); } }
@media (min-width: 1024px) { .plates { padding-top: var(--s-7); } }
@media (prefers-reduced-motion: reduce) { .trail__arm { transition: none; } }
