/* EIWA · home page: first screen «Шкала 72» (variant А, approved), 便り news, the dark «Сезон сейчас»,
   和 about, 献立 menu index, 空間 space, 予約 quick booking and the two tiles.
   Quiet by design: white at 10–70 %, one pink tick (and its small glyph), lots of air. */

/* ======================================================================
   1 · first screen
   ====================================================================== */
.hero {
  --marquee-h: clamp(1.75rem, 2.4vw, 2.25rem);
  --tick: clamp(.625rem, 1.2vw, 1.0625rem);
  --tick-q: clamp(1rem, 1.8vw, 1.625rem);
  --tick-now: clamp(1.875rem, 3.4vw, 3.0625rem);

  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--gutter) calc(clamp(1.125rem, 2.4vw, 2.25rem) + var(--safe-b)); /* the ruler clears the home indicator */
  overflow: hidden;
  background: #151515;
  color: #fff;
  --focus: #fff;
}

/* the video (Task 16 adds the source); its poster — and the same photo underneath — carry the look */
.hero__media {
  position: absolute; inset: 0;
  z-index: -1;
  background: #151515 url('../img/interior-2.jpg') center / cover no-repeat;
  filter: brightness(.34) saturate(.55);
}
.hero__video { width: 100%; height: 100%; object-fit: cover; }

/* one thin line just under the fixed header — never behind it */
.hero__marquee {
  position: absolute;
  top: var(--header-h); left: 0; right: 0;
  height: var(--marquee-h);
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: clamp(.75rem, 1.05vw, .9375rem);
  line-height: 1;
  color: rgba(255, 255, 255, .45);
  white-space: nowrap;
  pointer-events: none;
}
.hero__marquee-track {
  display: flex; flex: none;
  animation: hero-marquee 110s linear infinite;
  will-change: transform;
}
.hero__marquee-track > span { flex: none; white-space: pre; }
@keyframes hero-marquee { to { transform: translateX(-50%); } }

.hero__body {
  padding-top: calc(var(--header-h) + var(--marquee-h) + clamp(2.5rem, 4.4vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.hero__logo { width: clamp(13.75rem, 30vw, 35rem); height: auto; }
.hero__claim {
  max-width: 19em;
  margin-top: clamp(1.25rem, 2.2vw, 2.125rem);
  font-size: clamp(1.125rem, 1.6vw, 1.625rem);
  font-weight: 300;
  line-height: 1.35;
  color: rgba(255, 255, 255, .7);
}
/* two ways in, right under the phrase: a white square block to the menu, an underlined line to booking.
   No pills, no pink — the tick stays the screen's one accent */
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  margin-top: clamp(1.5rem, 2.6vw, 2.5rem);
}
.hero__go { background: #fff; border-color: #fff; color: var(--ink); min-height: 3rem; padding-inline: 1.5rem; font-size: 1.0625rem; }
@media (hover: hover) { .hero__go { transition: background-color var(--dur-fast) linear; } .hero__go:hover { background: rgba(255, 255, 255, .86); } }
.hero__book { font-size: 1.0625rem; color: rgba(255, 255, 255, .86); }
.hero__actions + .hero__contacts { margin-top: clamp(1.25rem, 2vw, 2rem); }
.hero__contacts {
  display: flex; flex-wrap: wrap; align-items: baseline;
  margin-top: clamp(.875rem, 1.4vw, 1.375rem);
  font-size: .875rem;
  color: rgba(255, 255, 255, .45);
}
.hero__contacts a { color: rgba(255, 255, 255, .7); }
.hero__sep { padding-inline: .7em; }

/* the scale: today's glyph and caption, 72 ticks, the four seasons */
.hero__scale { position: relative; margin-top: auto; }
.hero__now { margin-bottom: clamp(.5rem, .8vw, .75rem); line-height: 1.2; color: rgba(255, 255, 255, .6); }
.hero__now-jp,
.hero__now-caption { position: relative; display: block; width: max-content; max-width: 100%; }
.hero__now-jp {
  margin-bottom: clamp(.25rem, .5vw, .5rem);
  padding-left: .3em; /* balances the trailing letter-spacing so the glyphs centre on the tick */
  font-size: clamp(1.125rem, 1.9vw, 1.75rem);
  letter-spacing: .3em;
  line-height: 1.1;
  color: rgba(255, 164, 208, .8);
  font-variant: normal;
}
.hero__now-caption { font-size: clamp(.75rem, 1.1vw, .9375rem); }

.hero__ruler {
  display: flex; align-items: flex-end; justify-content: space-between;
  height: var(--tick-now);
}
.hero__ruler i {
  display: block; flex: none;
  width: 1px; height: var(--tick);
  background: rgba(255, 255, 255, .22);
}
.hero__ruler i.is-quarter { height: var(--tick-q); background: rgba(255, 255, 255, .45); }
.hero__ruler i.is-past { background: rgba(255, 255, 255, .1); }
.hero__ruler i.is-now { height: var(--tick-now); background: rgba(255, 164, 208, .85); }

.hero__quarters {
  position: relative;
  height: 1.4em;
  margin-top: clamp(.5rem, .7vw, .75rem);
  padding: 0;
  list-style: none;
  font-size: clamp(.75rem, .95vw, .875rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, .62); /* small labels on the dark hero: ≥ 4.5:1 (was .38) */
}
/* each label starts at its quarter tick: 0, 18, 36, 54 of 0…71 */
.hero__quarters li { position: absolute; top: 0; }
.hero__quarters li:nth-child(2) { left: calc(18 / 71 * 100%); }
.hero__quarters li:nth-child(3) { left: calc(36 / 71 * 100%); }
.hero__quarters li:nth-child(4) { left: calc(54 / 71 * 100%); }

/* without JS there is no today: the photo, logo, phrase and contacts stand alone */
html:not(.js) .hero__ruler,
html:not(.js) .hero__quarters { display: none; }

/* intro: hidden until GSAP takes over; a CSS failsafe shows everything if the script never runs */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-intro] { opacity: 0; animation: hero-failsafe 0s 2.4s forwards; }
}
@keyframes hero-failsafe { to { opacity: 1; } }

/* phones: the first screen ends at the action bar, so the ruler is never under it */
@media (max-width: 899px) {
  .has-abar .hero {
    min-height: calc(100vh - var(--abar-h));
    min-height: calc(100svh - var(--abar-h));
    padding-bottom: clamp(1.125rem, 2.4vw, 2.25rem);
  }
}
@media (max-width: 599px) {
  .hero__logo { width: min(64vw, 18.75rem); }
  .hero__body { margin-block: auto; padding-top: calc(var(--header-h) + var(--marquee-h) + 2rem); }
  .hero__scale { margin-top: 0; }
  .hero__contacts { display: block; font-size: .8125rem; }
  .hero__sep--tel { display: none; }
  .hero__contacts a { display: table; margin-top: .375rem; } /* the phone on its own line */
}

@media (prefers-reduced-motion: reduce) {
  .hero__marquee-track { animation: none; }
}

/* ======================================================================
   section heads: thin pink glyph + small-caps title (便り, 和, 献立, 空間, 予約)
   ====================================================================== */
.section-head {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: .25rem clamp(.75rem, 1.2vw, 1.125rem);
  margin-bottom: clamp(1.5rem, 2.4vw, 2.25rem);
}
.section-head__jp { font-size: clamp(1rem, 1.5vw, 1.375rem); line-height: 1; }
.section-head__title {
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.1;
}
[data-reveal='lines'] { text-wrap: wrap; } /* balance would fight the line split */

/* ======================================================================
   2 · Акции и новости
   ====================================================================== */
.news {
  --gap: clamp(1rem, 1.6vw, 1.5rem);
  container-type: inline-size;
  padding: clamp(3rem, 5.6vw, 5.5rem) var(--gutter) var(--section-y);
}
html:not(.js) .news { display: none; }

.news__rail { margin-inline: calc(-1 * var(--gutter)); }
.news .news__list { /* beats ul[role=list] in base.css */
  display: flex; align-items: flex-start;
  gap: var(--gap);
  width: max-content;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
}

/* desktop with up to three entries: a quiet grid, the main entry spans two columns */
@media (min-width: 900px) {
  .news:not(.news--rail) .news__rail { margin-inline: 0; }
  .news:not(.news--rail) .news__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: auto;
    padding: 0;
  }
  .news:not(.news--rail) .news-card--main { grid-column: span 2; }

  .news--rail .news-card { width: calc((100cqw - 3 * var(--gap)) / 4); }
  .news--rail .news-card--main { width: calc((100cqw - 3 * var(--gap)) / 2 + var(--gap)); }
}

/* phones, and the desktop rail before the drag switches on: native horizontal scroll, next card peeks */
@media (max-width: 899px) {
  .news__rail {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .news__rail::-webkit-scrollbar { display: none; }
  .news-card { width: min(70vw, 21.25rem); scroll-snap-align: start; }
  .news-card--main { width: min(80vw, 28.75rem); }
}
.news--rail .news__rail { overflow-x: auto; }
.news__rail.is-draggable { overflow: hidden; overflow: clip; }
.news__rail.is-draggable .news__list { user-select: none; -webkit-user-select: none; }

/* card: picture, type dot · date, title, short text, optional link */
.news-card { flex: none; min-width: 0; }
.news-card__media {
  aspect-ratio: 4 / 3;
  margin-bottom: clamp(.75rem, 1vw, 1rem);
  overflow: hidden;
  background: var(--paper-2);
}
.news-card--main .news-card__media { aspect-ratio: 16 / 10; }
.news-card__media img,
.news-card__media video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
/* a poster (square, lettering to the edges): shown whole over the same picture, blurred */
.news-card__media--photo { position: relative; background: var(--ink); }
.news-card__media--photo::before {
  content: ''; position: absolute; inset: -10%;
  background: var(--news-bg) center / cover no-repeat;
  filter: blur(24px) brightness(.7);
}
.news-card__media--photo img { position: relative; object-fit: contain; }

.news-card__meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: .75rem;
  margin-bottom: .375rem;
  font-size: var(--fs-label);
  line-height: 1.3;
  color: var(--mute);
}
.news-card__type { display: inline-flex; align-items: center; gap: .55em; }
.news-card__type::before {
  content: '';
  flex: none;
  width: .4375rem; height: .4375rem;
  border-radius: 50%;
  background: var(--mute);
  transform: translateY(1px);
}
.news-card__type--season::before { background: var(--season); }
.news-card__type--promo::before { background: var(--ink); } /* one pink on the news screen: the 便り glyph */
.news-card__type--event::before { background: var(--mute); }
.news-card__type--news::before { background: var(--line-strong); }

.news-card__title {
  margin-bottom: .5rem;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.15;
}
.news-card--main .news-card__title { font-size: clamp(1.625rem, 2.4vw, 2.25rem); font-weight: 300; }
.news-card__text {
  max-width: 34em;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.news-card__link, .news-card__more { margin-top: .875rem; font-size: 1rem; }
.news-card:not(.skel) { cursor: pointer; }
.news-card__text {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4;
  overflow: hidden;
}

/* data did not load: one quiet line in place of news, season and the menu index */
.home-error {
  padding: clamp(3rem, 5.6vw, 5.5rem) var(--gutter) 0;
  font-size: var(--fs-body);
  color: var(--ink-2);
}
.home-error a { color: var(--ink); }

/* ======================================================================
   3 · Сезон сейчас — the dark block: sekki line, seasonal kanji, 72 ko
   ====================================================================== */
.season {
  --ribbon-inset: clamp(1.25rem, 2.4vw, 2.25rem); /* soft fade before the ribbon's edge; today's card stops after it */
  --card: clamp(5.75rem, 7.6vw, 7.75rem);
  --card-now: clamp(26.25rem, 36vw, 36.25rem);
  --card-gap: clamp(.625rem, 1vw, 1rem);

  position: relative;
  background: #151515;
  color: #fff;
  --focus: #fff;
}
html:not(.js) .season { display: none; }

.season__frame {
  display: grid;
  grid-template-columns: minmax(0, 25vw) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: clamp(1.5rem, 3.6vw, 4rem);
  row-gap: clamp(1rem, 2.6vh, 2rem);
  height: 100vh;
  height: 100svh;
  padding: calc(var(--header-h) + clamp(1rem, 3vh, 2.25rem)) var(--gutter) clamp(1.125rem, 3vh, 2rem);
  overflow: hidden;
}

.season__head {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .25rem 1.5rem;
  font-size: clamp(.8125rem, 1.05vw, .9375rem);
  line-height: 1.3;
}
.season__title { font-size: inherit; font-weight: 400; color: rgba(255, 255, 255, .6); } /* ≥ 4.5:1 on #151515 */
.season__sekki { color: rgba(255, 255, 255, .6); }

/* the big kanji with its ornament (brand book), light on dark */
.season__glyph {
  align-self: center;
  display: grid; justify-items: start; gap: clamp(1rem, 2.4vh, 1.75rem);
  min-height: 0;
}
.season__kanji {
  width: 100%;
  max-width: min(100%, 50vh);
  height: auto;
  filter: invert(1);
  opacity: .92;
}
.season__quarters {
  display: flex; gap: .9em;
  font-family: var(--font-jp);
  font-weight: 200;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1;
  color: rgba(255, 255, 255, .28);
}
.season__q.is-now { color: rgba(255, 255, 255, .9); }

/* the ribbon: bleeds to the right edge; on the left it fades out over --ribbon-inset */
.season__ribbon {
  position: relative;
  min-height: 0;
  margin-left: calc(-1 * var(--ribbon-inset));
  margin-right: calc(-1 * var(--gutter));
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .2) transparent;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--ribbon-inset));
  mask-image: linear-gradient(to right, transparent 0, #000 var(--ribbon-inset));
}
.season__ribbon:focus-visible { outline-offset: -2px; }
.season.is-pinned .season__ribbon { overflow: hidden; overflow: clip; }

.season .season__track { /* beats ol[role=list] in base.css */
  position: relative; /* offsetLeft of the cards is measured from here */
  display: flex; align-items: stretch;
  gap: var(--card-gap);
  width: max-content;
  height: 100%;
  margin: 0;
  padding: 0 var(--gutter) 0 var(--ribbon-inset);
  list-style: none;
}
.season.is-pinned .season__track { will-change: transform; }

/* quiet cards: vertical name, number, words */
.ko {
  flex: none;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  width: var(--card);
  padding: .25rem 0 2px .875rem;
  border-left: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .5);
}
.ko--past { color: rgba(255, 255, 255, .3); border-left-color: rgba(255, 255, 255, .09); }
.ko__jp {
  font-family: var(--font-jp);
  font-weight: 200;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  align-self: flex-start; /* a vertical line hugs the card's left edge, like the caption under it */
}
.ko__cap { display: grid; gap: .25rem; font-size: .8125rem; line-height: 1.25; }
.ko__num { font-variant-numeric: tabular-nums; }

/* today's card: wide, season-coloured edge */
.ko--now {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(.875rem, 1.4vw, 1.375rem);
  width: var(--card-now);
  margin-left: var(--ribbon-inset); /* air before today — and the past card stays behind the ribbon's edge */
  padding: .25rem 0 2px clamp(.875rem, 1.4vw, 1.375rem);
  border-left-color: var(--season);
  color: #fff;
}
.ko--now .ko__jp { color: var(--season); font-size: clamp(1.375rem, 1.9vw, 1.75rem); }
.ko__body { display: flex; flex-direction: column; min-height: 0; }
.ko__media {
  flex: 1 1 auto;
  min-height: 4.5rem;
  max-height: 30vh;
  margin-bottom: clamp(.75rem, 2vh, 1.375rem);
  background: rgba(255, 255, 255, .04);
}
.ko__media img { width: 100%; height: 100%; object-fit: contain; }
.ko__meta { font-size: .8125rem; color: rgba(255, 255, 255, .55); }
.ko__title {
  margin: .375rem 0 clamp(.5rem, 1.4vh, .875rem);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 200;
  line-height: 1.08;
}
.ko__text { font-size: .9375rem; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.ko__menu { margin-top: clamp(.75rem, 2vh, 1.25rem); padding-top: .75rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.ko__menu-label { font-size: .8125rem; color: rgba(255, 255, 255, .45); }
.season .ko__dishes { margin: .25rem 0 .5rem; padding: 0; list-style: none; font-size: .9375rem; line-height: 1.45; }
.ko__dishes li { display: flex; gap: .75rem; justify-content: space-between; color: rgba(255, 255, 255, .82); }
.ko__dish { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ko__price { flex: none; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ko__more { font-size: .9375rem; color: #fff; }
.ko__menu--none { font-size: .9375rem; color: rgba(255, 255, 255, .55); }

/* the 72 ticks again, today in the season's colour (the pink one lives on the first screen) */
.season__ruler {
  grid-column: 1 / -1;
  display: flex; align-items: flex-end; justify-content: space-between;
  height: clamp(1.125rem, 2.2vw, 1.875rem);
}
.season__ruler i { display: block; flex: none; width: 1px; height: 32%; background: rgba(255, 255, 255, .22); }
.season__ruler i.is-quarter { height: 56%; background: rgba(255, 255, 255, .4); }
.season__ruler i.is-past { background: rgba(255, 255, 255, .1); }
.season__ruler i.is-now { height: 100%; background: var(--season); }

/* phones: no pin — the kanji above, a native ribbon opened at today's card */
@media (max-width: 767px) {
  .season { --card: 5.75rem; --card-now: min(84vw, 23.75rem); }
  .season__frame {
    display: block;
    height: auto;
    padding: clamp(3.5rem, 14vw, 5rem) var(--gutter) 1.75rem;
  }
  .season__head { display: grid; gap: .375rem; margin-bottom: 1.75rem; }
  .season__glyph { margin-bottom: 2rem; }
  .season__kanji { max-width: min(62vw, 16.25rem); }
  /* until season.js puts the glyph in: its box already has the glyph's size (html[data-season] is set at start) */
  .js .season__kanji-box:empty { width: min(62vw, 16.25rem); aspect-ratio: 1143 / 1314; }
  .js[data-season='summer'] .season__kanji-box:empty { aspect-ratio: 1220 / 1282; }
  .js[data-season='autumn'] .season__kanji-box:empty { aspect-ratio: 1415 / 1136; }
  .js[data-season='winter'] .season__kanji-box:empty { aspect-ratio: 1270 / 1259; }
  .js .season__quarters:empty { height: clamp(1.125rem, 1.5vw, 1.375rem); }
  .season__ribbon {
    margin-inline: calc(-1 * var(--gutter));
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); /* = the track's padding: today's card lands where season.js puts it */
  }
  .ko { scroll-snap-align: start; }
  .season__ribbon::-webkit-scrollbar { display: none; }
  .season .season__track { height: auto; padding: 0 var(--gutter); }
  .ko { min-height: 16.25rem; }
  .ko__media { flex: none; aspect-ratio: 4 / 3; max-height: none; }
  .season__ruler { margin-top: 1.75rem; }
}

/* ======================================================================
   Карта гостя — a quiet band before «О нас» (the 会員 glyph is its accent)
   ====================================================================== */
.loyal {
  display: grid;
  grid-template-columns: minmax(7.5rem, 14vw) minmax(0, 1fr) auto;
  gap: 1.125rem clamp(1.5rem, 3.4vw, 3.5rem);
  align-items: baseline;
  padding: clamp(3.5rem, 7vw, 7rem) var(--gutter);
  background: rgba(255, 255, 255, .5);
}
.loyal__label { display: grid; gap: .625rem; justify-items: start; }
.loyal__jp { font-size: clamp(1.25rem, 1.8vw, 1.75rem); line-height: 1; }
.loyal__title { font-size: var(--fs-label); font-weight: 400; line-height: 1.2; color: var(--mute); }
.loyal__text { max-width: 44ch; font-size: clamp(1.25rem, 1.9vw, 1.875rem); font-weight: 300; line-height: 1.35; }
.loyal__go { justify-self: end; font-size: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .loyal { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .loyal__label { display: flex; align-items: baseline; gap: .875rem; }
  .loyal__go { justify-self: start; white-space: normal; }
}

/* ======================================================================
   4 · О нас · 料理長 — the restaurant's line, then the chef: a big portrait, his name in large thin type,
   his own words, two lines from his bio and his path as a quiet timeline. A leaf shadow sways over it.
   One pink: the 料理長 glyph.
   ====================================================================== */
.about {
  --leaf-x: 0px; --leaf-y: 0px; --leaf-r: 0deg; /* GSAP moves these, 14 s there and back */
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-areas:
    'photo label'
    'photo intro'
    'photo who'
    'photo quote'
    'photo notes'
    'path  path';
  grid-template-rows: auto auto auto auto 1fr auto;
  column-gap: clamp(2rem, 6vw, 7.5rem);
  align-items: start;
  padding: var(--section-y) var(--gutter);
  overflow: hidden;
  overflow: clip;
}
.about::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -12%; right: -8%;
  width: min(72vw, 68.75rem);
  aspect-ratio: 4 / 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 22% 12% at 58% 30%, rgba(28, 28, 28, .07), transparent 70%),
    radial-gradient(ellipse 14% 26% at 72% 46%, rgba(28, 28, 28, .06), transparent 72%),
    radial-gradient(ellipse 26% 10% at 40% 52%, rgba(28, 28, 28, .05), transparent 70%),
    radial-gradient(ellipse 12% 20% at 84% 22%, rgba(28, 28, 28, .06), transparent 70%),
    radial-gradient(ellipse 40% 34% at 64% 38%, rgba(28, 28, 28, .035), transparent 72%);
  filter: blur(.375rem);
  transform: translate3d(var(--leaf-x), var(--leaf-y), 0) rotate(var(--leaf-r));
  transform-origin: 80% 10%;
}
.about__label { grid-area: label; }
.about__title { font-size: var(--fs-label); font-weight: 400; color: var(--mute); line-height: 1.2; }
.about__text {
  grid-area: intro;
  max-width: 24em;
  margin-top: .875rem;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink-2);
}

/* the portrait: tall, quiet, square-cornered */
.about__photo { grid-area: photo; margin: 0; aspect-ratio: 2 / 3; overflow: hidden; background: var(--paper-2); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(.15); }

.chef__who { grid-area: who; display: grid; justify-items: start; margin-top: clamp(2.5rem, 6vw, 6rem); }
.chef__jp { font-size: clamp(1.25rem, 1.9vw, 1.875rem); line-height: 1; letter-spacing: .3em; }
.chef__name {
  margin-top: clamp(.75rem, 1.4vw, 1.25rem);
  font-size: clamp(3rem, 7.4vw, 7.5rem);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.chef__role { margin-top: .875rem; font-size: 1rem; color: var(--mute); }

.chef__quote { grid-area: quote; margin: clamp(2rem, 4vw, 3.75rem) 0 0; }
.chef__quote blockquote {
  max-width: 21em;
  padding-left: clamp(1rem, 1.6vw, 1.75rem);
  border-left: 1px solid var(--line-strong);
  font-size: clamp(1.375rem, 2vw, 2.125rem);
  font-weight: 300;
  line-height: 1.3;
}

.chef__notes {
  grid-area: notes;
  display: grid; grid-template-columns: repeat(2, minmax(0, 15em)); gap: 1rem clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2rem, 3.6vw, 3.25rem);
  padding-left: clamp(1rem, 1.6vw, 1.75rem);
  font-size: 1rem; line-height: 1.45;
  color: var(--ink-2);
}

/* the path: a hairline with a tick per place, left to right; EIWA's tick is filled */
.chef__path {
  grid-area: path;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 clamp(1rem, 2vw, 2rem);
  margin-top: clamp(3.5rem, 7vw, 7rem);
  border-top: 1px solid var(--line-strong);
}
.chef__path li { position: relative; display: grid; align-content: start; gap: .375rem; padding-top: 1.375rem; }
.chef__path li::before {
  content: '';
  position: absolute; left: 0; top: -.3125rem;
  width: .5625rem; height: .5625rem; border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.chef__path .chef__now::before { background: var(--ink); }
.chef__place { font-size: clamp(1.125rem, 1.5vw, 1.375rem); font-weight: 400; line-height: 1.2; }
.chef__step { font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }

/* tablets: the portrait stays beside the name; the path folds into three columns */
@media (max-width: 1099px) {
  .chef__notes { grid-template-columns: minmax(0, 1fr); max-width: 26em; }
  .chef__path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; border-top: 0; }
  .chef__path li { border-top: 1px solid var(--line-strong); }
}

/* phones: the portrait on top, then name, words and a vertical path */
@media (max-width: 699px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'label' 'intro' 'photo' 'who' 'quote' 'notes' 'path';
    grid-template-rows: none;
  }
  .about__text { margin-bottom: 2rem; }
  .about__photo { aspect-ratio: 4 / 5; }
  .chef__who { margin-top: 2rem; }
  .chef__name { font-size: clamp(2.75rem, 14vw, 4rem); white-space: normal; }
  .chef__path {
    grid-template-columns: minmax(0, 1fr); row-gap: 0;
    margin-top: 3rem; margin-left: .25rem;
    border-left: 1px solid var(--line-strong);
  }
  .chef__path li { border-top: 0; padding: 0 0 1.5rem 1.5rem; }
  .chef__path li:last-child { padding-bottom: 0; }
  .chef__path li::before { left: -.3125rem; top: .4375rem; }
}

/* ======================================================================
   5 · Меню 献立 — the categories, a picture floats by the cursor
   ====================================================================== */
.menu-index { position: relative; padding: 0 var(--gutter) var(--section-y); }
html:not(.js) .menu-index { display: none; }
.menu-index .menu-index__list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.menu-index__bar { margin-top: clamp(1.25rem, 2.2vw, 1.75rem); font-size: 1rem; }

.mi-row {
  display: grid;
  grid-template-columns: clamp(2.75rem, 6vw, 6rem) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(.75rem, 1.2vw, 1.125rem) 0;
  border-top: 1px solid var(--line);
  transition: opacity var(--dur) var(--ease-out);
}
.mi-row__jp { font-family: var(--font-jp); font-weight: 200; font-size: clamp(1rem, 1.5vw, 1.375rem); line-height: 1; color: var(--mute-lg); letter-spacing: .1em; }
.mi-row__name {
  font-size: clamp(1.75rem, 3.4vw, 3.25rem);
  font-weight: 300;
  line-height: 1.1;
  transition: transform var(--dur) var(--ease-out);
}
.mi-row__count { font-size: var(--fs-label); color: var(--mute); white-space: nowrap; }
.mi-row--season .mi-row__count { display: inline-flex; align-items: center; gap: .6em; color: var(--ink); }
.mi-row--season .mi-row__count::before {
  content: '';
  width: .4375rem; height: .4375rem;
  border-radius: 50%;
  background: var(--season);
  transform: translateY(1px);
}
@media (hover: hover) and (pointer: fine) {
  .menu-index__list:hover .mi-row { opacity: .4; }
  .menu-index__list .mi-row:hover { opacity: 1; }
  .mi-row:hover .mi-row__name { transform: translateX(.625rem); }
}
.mi-row:focus-visible { outline-offset: -2px; }
@media (max-width: 479px) {
  /* «сейчас · 5 позиций» would squeeze the season's name: it goes under it */
  .mi-row--season .mi-row__count { grid-column: 2 / -1; grid-row: 2; margin-top: .375rem; }
}
@media (max-width: 359px) {
  /* the narrowest phones: «Сеты роллов» and its count stay on one line (no row grows after loading) */
  .mi-row { column-gap: .75rem; }
  .mi-row__name { font-size: 1.625rem; }
  .menu-index .mi-row--skel .skel__line { height: calc(1.625rem * 1.1); }
}

.menu-index__preview {
  position: fixed; left: 0; top: 0;
  z-index: 5;
  width: clamp(11.25rem, 15vw, 15rem);
  aspect-ratio: 1;
  pointer-events: none;
  visibility: hidden;
}
.menu-index__preview img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1.125rem 1.5rem rgba(0, 0, 0, .12)); }
@media (hover: none), (pointer: coarse) {
  .menu-index__preview { display: none; }
}

/* ======================================================================
   6 · Пространство 空間 — a strip of the rooms, dragged with inertia
   ====================================================================== */
.space { padding: 0 var(--gutter) var(--section-y); }
.space__rail { margin-inline: calc(-1 * var(--gutter)); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.space__rail::-webkit-scrollbar { display: none; }
.space__rail.is-draggable { overflow: hidden; overflow: clip; }
.space__rail.is-native { scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.space .space__track {
  display: flex; gap: clamp(.75rem, 1.2vw, 1.25rem);
  width: max-content;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
  user-select: none; -webkit-user-select: none;
}
.space__item { flex: none; scroll-snap-align: start; }
.space__item img {
  height: clamp(18.75rem, 58vh, 37.5rem);
  width: auto;
  background: var(--paper-2);
  filter: saturate(.8);
  pointer-events: none;
}
.space__cap { margin-top: .625rem; font-size: var(--fs-label); color: var(--mute); }
@media (max-width: 599px) {
  .space__item img { height: clamp(17.5rem, 62vh, 28.75rem); height: clamp(17.5rem, 62svh, 28.75rem); }
}

/* ======================================================================
   7 · Бронь 予約 — day · time · guests as underlined fields
   ====================================================================== */
.quick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: 0 var(--gutter) var(--section-y);
}
.quick__lead { font-size: clamp(2.125rem, 4vw, 4rem); font-weight: 300; line-height: 1.05; }
.js .quick__nojs { display: none; }
.quick__nojs { grid-column: 2; font-size: 1.125rem; }

.quick__fields {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.quick__field {
  display: grid; gap: .25rem;
  min-height: 4.5rem;
  padding: .875rem .75rem .75rem 0;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
}
.quick__field + .quick__field { padding-left: .75rem; }
.quick__label { font-size: var(--fs-label); color: var(--mute); line-height: 1.2; }
.quick__value {
  position: relative;
  justify-self: start;
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  font-weight: 300;
  line-height: 1.15;
  white-space: nowrap;
}
.quick__value::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -.1875rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
.quick__field[aria-expanded='true'] .quick__value::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) { .quick__field:hover .quick__value::after { transform: scaleX(1); transform-origin: left; } }
.quick__field:focus-visible { outline-offset: -2px; }

.quick__pop {
  position: absolute; left: 0; right: 0; top: calc(100% + .5rem);
  z-index: 6;
  padding: .875rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1.125rem 2.5rem rgba(28, 28, 28, .08);
}
.quick .quick__opts { display: grid; gap: .375rem; margin: 0; padding: 0; list-style: none; }
.quick__opts--date { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.quick__opts--time { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.quick__opts--guests { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.quick__opt {
  display: grid; justify-items: center; align-content: center; gap: 2px;
  width: 100%;
  min-height: 2.75rem;
  padding: .375rem 2px;
  border: 1px solid var(--line-strong);
  font-size: 1rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.quick__opt-sub { font-size: .75rem; color: var(--mute); font-variant: all-small-caps; letter-spacing: var(--tracking-sc); }
.quick__opt[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.quick__opt[aria-pressed='true'] .quick__opt-sub { color: rgba(243, 243, 242, .7); }
.quick__opt:disabled { opacity: .32; cursor: default; }
@media (hover: hover) { .quick__opt:not(:disabled):not([aria-pressed='true']):hover { border-color: var(--ink); } }

.quick__go { margin-top: 1.375rem; font-size: 1.125rem; }
.quick__past { margin-bottom: .625rem; font-size: .9375rem; color: var(--mute); } /* today's gone times: named once, not listed */

@media (max-width: 899px) {
  .quick { grid-template-columns: 1fr; align-items: start; }
  .quick__nojs { grid-column: 1; }
  .quick__opts--time { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick__opts--guests { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
  .quick__opts--date { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick__value { font-size: 1.1875rem; }
  .quick__field { padding-right: .375rem; }
  .quick__field + .quick__field { padding-left: .5rem; }
}

/* ======================================================================
   8 · Доставка и карта гостя — two quiet tiles
   ====================================================================== */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.75rem, 1.4vw, 1.25rem);
  padding: 0 var(--gutter);
}
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  min-height: clamp(11.25rem, 18vw, 16.25rem);
  padding: clamp(1.25rem, 2.2vw, 2rem);
  background: var(--paper-2);
}
.tile--line { background: transparent; border: 1px solid var(--line-strong); }
.tile__title { font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 300; line-height: 1.1; }
.tile__sub { font-size: .9375rem; color: var(--ink-2); }
.tile__arrow { display: inline-block; transition: transform var(--dur) var(--ease-out); }
@media (hover: hover) { .tile:hover .tile__arrow { transform: translateX(.5rem); } }
@media (max-width: 599px) {
  .tiles { grid-template-columns: 1fr; }
}

/* «Сезон сейчас»: one square arrow inside the ribbon, at its right edge (no pin) */
.season__more {
  position: absolute; z-index: 2;
  right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: 3.5rem; height: 3.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(21, 21, 21, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 0;
  color: rgba(255, 255, 255, .9); font: inherit; font-size: 1.25rem; line-height: 1;
  cursor: pointer; touch-action: manipulation;
  transition: border-color .2s, color .2s, background-color .2s;
}
.season__more:hover { border-color: #fff; color: #fff; background: rgba(21, 21, 21, .9); }
.season__more:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.season__ribbon { scrollbar-width: none; }
.season__ribbon::-webkit-scrollbar { display: none; }
@media (max-width: 767px) { .season__more { width: 2.75rem; height: 2.75rem; right: .75rem; } }

/* skeleton rows of the menu index: the name's line is as tall as a real one */
.mi-row--skel .skel__line { width: 40%; height: calc(clamp(1.75rem, 3.4vw, 3.25rem) * 1.1); margin: 0; }
/* the first row stands in for the season's row: on phones its «сейчас · 5 позиций» takes a line of its own */
.mi-row--skel .mi-row__count::before { visibility: hidden; }
@media (min-width: 480px) { .mi-row--skel .mi-row__count { display: none; } }
.ko--now.skel .ko__jp { display: block; width: 1.5rem; height: 6rem; background: rgba(255, 255, 255, .06); }
.ko--now.skel .ko-skel__gap { visibility: hidden; height: 1.65rem; }
/* «Сезон сейчас»: the sekki line keeps its line while it is still empty */
.js .season__sekki:empty::before { content: '\a0'; }

/* news cards: the skeleton uses the card's own blocks, so the row is as tall as the real one.
   Phones: every card reserves two title lines and four text lines — the row (as tall as its tallest card)
   no longer jumps when the news arrive. */
.news-card.skel .skel__line { margin-top: 0; }
.news-card.skel .news-card__meta .skel__line { height: 1.3em; }
.news-card.skel .news-card__title .skel__line { height: 1.15em; }
.news-card.skel .news-card__text { display: grid; align-content: start; gap: .5rem; min-height: calc(2em * 1.45); }
@media (min-width: 900px) {
  .news-card.skel .news-card__text .skel__line:nth-child(3) { display: none; } /* two lines of text on a desktop card */
}
.news-card.skel .news-card__link { display: block; height: 1.625rem; padding-top: .375rem; }
.news-card.skel .news-card__link .skel__line { height: 100%; }
@media (max-width: 899px) {
  .news-card__title { min-height: calc(2em * 1.15 + .5rem); margin-bottom: 0; padding-bottom: .5rem; }
  .news-card__text, .news-card.skel .news-card__text { min-height: calc(4em * 1.45); }
}
