/* =============================================================================
   fm-qitchen - "Nomiya" sushi house (LIKENESS MODE rebuild)
   Original CSS. Dark inset-panel composition: one rounded photo stage carrying
   the nav pill and a Roman-serif display title, a 25% tile column on home,
   50/50 stage + card column on the inners.
   ============================================================================= */

/* ---------------------------------------------------------------- fonts ---- */
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2190-21FF, U+2212;
}
@font-face {
  font-family: "Tenor Sans";
  src: url("../fonts/tenorsans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2190-21FF, U+2212;
}

/* --------------------------------------------------------------- tokens ---- */
:root {
  --ground: #0A0B0A;          /* page ground */
  --ground-2: #060706;        /* scrim base */
  --panel: #101110;           /* cards */
  --fill: rgba(28, 27, 24, .55);   /* control fill */
  --fill-2: rgba(34, 33, 29, .72); /* control fill, hover */
  --ink: #F1E8D4;             /* parchment */
  --ink-soft: rgba(241, 232, 212, .74);
  --ink-dim: rgba(241, 232, 212, .58);
  --hair: rgba(241, 232, 212, .14);
  --hair-2: rgba(241, 232, 212, .26);

  --inset: 16px;
  --gap: 16px;
  --r-stage: 16px;
  --r-card: 16px;
  --r-ctl: 8px;
  --r-chip: 6px;
  --r-notch: 24px;

  --pad-card: 40px;
  --pad-wide: 80px;

  --dur: .4s;
  --dur-slow: .8s;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --disp: "Cinzel", "Times New Roman", serif;
  --body: "Tenor Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ----------------------------------------------------------------- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    radial-gradient(1200px 620px at 18% -10%, rgba(58, 54, 44, .30), transparent 70%),
    radial-gradient(900px 700px at 108% 40%, rgba(44, 42, 36, .26), transparent 72%),
    radial-gradient(700px 520px at 40% 118%, rgba(36, 35, 30, .22), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* --------------------------------------------------------------- layout ---- */
.shell {
  display: grid;
  gap: var(--gap);
  padding: var(--inset);
  min-height: 100svh;
}
.shell--home { grid-template-columns: minmax(0, 1fr) min(25vw, 580px); }
.shell--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* stage = the rounded photo panel that carries the nav and the display title */
.stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-stage);
  background: #08090880;
  min-height: 560px;
  height: calc(100svh - (var(--inset) * 2));
}
.shell--split .stage { position: sticky; top: var(--inset); }
.stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 7, 6, .92) 0%, rgba(6, 7, 6, .80) 12%, rgba(6, 7, 6, .44) 32%, rgba(6, 7, 6, .10) 54%, rgba(6, 7, 6, 0) 68%),
    linear-gradient(to bottom, rgba(6, 7, 6, .34) 0%, rgba(6, 7, 6, 0) 24%);
}

/* ------------------------------------------------------------------ nav ---- */
.nav {
  position: absolute;
  top: 56px;
  left: 56px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 57px;
  padding: 8px;
  border-radius: 12px;
  background: var(--ground);
}
.burger {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  width: 41px;
  height: 41px;
  padding: 0;
  border-radius: var(--r-ctl);
  background: var(--fill);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.burger span {
  display: block;
  width: 19px;
  height: 1px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.burger:hover { background: var(--fill-2); }
.wordmark {
  display: block;
  padding: 0 2px;
  font-family: var(--disp);
  font-size: 24px;
  line-height: 31px;
  letter-spacing: 0;
  color: var(--ink);
  white-space: nowrap;
}
.nav__set { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a,
.nav__cta {
  display: grid;
  place-items: center;
  height: 41px;
  padding: 0 12px;
  border-radius: var(--r-ctl);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__links a:hover { opacity: .7; }
.nav__cta { padding: 0 16px; background: var(--fill); }
.nav__cta:hover { background: var(--fill-2); }

/* -------------------------------------------------------------- display ---- */
.display {
  font-family: var(--disp);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
}
.display span { display: inline-block; white-space: pre; }
.stage__title {
  position: absolute;
  z-index: 3;
  left: 56px;
  bottom: 56px;
  margin: 0;
  font-size: 88px;
  line-height: .99;
  letter-spacing: -.02em;
}
.p-home .stage__title { left: 64px; bottom: 64px; font-size: 104px; line-height: .933; }

/* letter-by-letter entrance (CSS only, no JS) */
.reveal span {
  opacity: 0;
  transform: translateY(10px);
  animation: letterIn .78s var(--ease) both;
  animation-delay: calc(.32s + (var(--i, 0) * 38ms));
}
@keyframes letterIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------- stage foot ----- */
.stage__foot {
  position: absolute;
  z-index: 3;
  left: 64px;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.credit {
  padding-bottom: 13px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.socials__plate {
  display: flex;
  align-items: flex-end;
  padding: 12px 0 0 16px;
  border-radius: var(--r-notch) 0 0 0;
  background: var(--ground);
}
.socials { display: flex; gap: 8px; }
.socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(241, 232, 212, .18);
  border-radius: 500px;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.socials a:hover { background: var(--fill); border-color: var(--hair-2); }
.socials svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- tiles ---- */
.tiles {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  min-height: 0;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-stage) var(--r-stage) 0 var(--r-stage);
  background: #0d0e0d;
  opacity: .7;
  transition: opacity var(--dur) var(--ease);
}
.tile:hover, .tile:focus-visible { opacity: 1; }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile__notch {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0 16px;
  border-radius: var(--r-notch) 0 0 0;
  background: var(--ground);
}
.tile__label {
  font-family: var(--disp);
  font-size: 16px;
  line-height: 16px;
  letter-spacing: .2px;
  text-transform: uppercase;
  color: var(--ink);
}
.pip {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--hair-2);
  border-radius: 500px;
  color: var(--ink);
}
.pip svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- cards ---- */
.col { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--gap); min-width: 0; }
.card {
  position: relative;
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  background: transparent;
  min-width: 0;
}
.strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 60px;
  padding: 0 24px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}
.strip a { transition: opacity var(--dur) var(--ease); }
.strip a:hover { opacity: .7; }
.strip i {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid var(--hair-2);
  transform: rotate(45deg);
}

/* ornament heading: diamond + rule on both flanks */
.orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.orn__f {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  width: 44px;
}
.orn__f::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 1px solid var(--hair-2);
  transform: rotate(45deg);
}
.orn__f::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--hair-2); }
.orn__f--r { flex-direction: row-reverse; }
.orn__t {
  font-family: var(--disp);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
}
.orn--sm .orn__t { font-size: 24px; line-height: 1.2; }
.orn--sm .orn__f { width: 34px; }

/* ----------------------------------------------------------- about page ---- */
.col--about > *, .col--about .card { min-height: 0; }
.col--about {
  grid-template-rows: 297fr 162fr 301fr 57px;
  height: calc(100svh - (var(--inset) * 2));
  min-height: 760px;
}
.grid-2a { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); min-height: 0; }
.grid-2b { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--gap); min-height: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); min-height: 0; }
.pad { padding: var(--pad-card); }
.lede {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--disp);
  color: var(--ink);
}
.body {
  margin-top: 44px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.body--tight { margin-top: 26px; }
.award {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 32px;
  text-align: center;
}
.stars { display: flex; gap: 4px; color: var(--ink); }
.stars svg { width: 14px; height: 14px; }
.award__t {
  font-family: var(--disp);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.award__s {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.story { display: flex; flex-direction: column; justify-content: center; }
.story .body { text-align: left; }

/* --------------------------------------------------------------- slider ---- */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: #0d0e0d;
  min-height: 0;
}
.slider__track {
  display: flex;
  height: 100%;
  transition: transform .62s var(--ease);
}
.slider__track > * { flex: 0 0 100%; }
.slider img { width: 100%; height: 100%; object-fit: cover; }
.slider__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border-radius: 500px;
  background: var(--fill);
  color: var(--ink);
  cursor: pointer;
  transition: opacity var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.slider__btn:hover { background: var(--fill-2); }
.slider__btn svg { width: 14px; height: 14px; }
.slider__btn--prev { left: 20px; }
.slider__btn--next { right: 20px; }
.slider__btn[disabled] { opacity: 0; pointer-events: none; }

/* ------------------------------------------------------------ menu page ---- */
.menu-card { padding: 64px var(--pad-wide) 80px; }
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.chips a {
  padding: 7px 10px;
  border: 1px solid var(--hair);
  border-radius: var(--r-chip);
  font-size: 12px;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.chips a:hover, .chips a[aria-current="true"] {
  border-color: var(--hair-2);
  background: var(--fill);
  color: var(--ink);
}
.course { scroll-margin-top: 64px; }
.course + .course { margin-top: 96px; }
.course__h { margin: 64px 0 48px; }
.dish {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.dish + .dish { margin-top: 24px; }
.dish__img {
  width: 150px;
  height: 100px;
  border-radius: var(--r-ctl);
  object-fit: cover;
}
.dish__top { display: flex; align-items: baseline; gap: 12px; }
.dish__n {
  font-family: var(--disp);
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
}
.dish__mark { display: inline-block; width: 14px; height: 14px; margin-left: 8px; color: var(--ink-dim); vertical-align: baseline; }
.dish__mark svg { width: 14px; height: 14px; }
.dish__lead {
  flex: 1 1 auto;
  height: 1px;
  margin-bottom: 5px;
  background: repeating-linear-gradient(to right, var(--hair-2) 0 1px, transparent 1px 5px);
}
.dish__p {
  font-family: var(--disp);
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 1px;
  color: var(--ink);
}
.dish__d {
  margin-top: 4px;
  max-width: 326px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ----------------------------------------------------- reservation page ---- */
.book-card {
  display: flex;
  flex-direction: column;
  padding: 80px var(--pad-wide);
}
.book__h { margin-bottom: 20px; }
.book__lede {
  max-width: 400px;
  margin: 0 auto 64px;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  color: var(--ink-soft);
}
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
.field { display: block; min-width: 0; }
.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: var(--fill);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field input::placeholder { color: var(--ink-dim); }
.field input:hover, .field select:hover { border-color: var(--hair-2); }
.field input:focus, .field select:focus { border-color: var(--ink-soft); outline: none; }
.field select { appearance: none; }
.submit {
  grid-column: 1 / -1;
  height: 40px;
  margin-top: 0;
  border: 1px solid var(--hair);
  border-radius: var(--r-ctl);
  background: var(--fill);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.submit:hover { background: var(--fill-2); border-color: var(--hair-2); }
.form__note {
  grid-column: 1 / -1;
  margin-top: -8px;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-align: center;
}
.form__note[data-ok="1"] { color: var(--ink); }

/* -------------------------------------------------------------- overlay ---- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 7, 6, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .42s var(--ease), visibility .42s var(--ease);
}
.overlay[data-open="1"] { opacity: 1; visibility: visible; }
.overlay__list { display: grid; justify-items: center; }
.overlay__list a {
  display: block;
  padding: 8px 4px;
  font-family: var(--disp);
  font-size: 60px;
  line-height: 58px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.overlay[data-open="1"] .overlay__list a { opacity: 1; transform: none; }
.overlay__list a:hover { color: var(--ink-soft); }
.overlay__close {
  position: absolute;
  top: 72px;
  left: 72px;
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: var(--r-ctl);
  background: var(--fill);
  color: var(--ink);
  cursor: pointer;
}
.overlay__close svg { width: 18px; height: 18px; }
.overlay__legal { display: block; max-width: 560px; margin: 10px auto 0; text-transform: none; letter-spacing: .2px; line-height: 1.5; }
.overlay__foot {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-dim);
}
body[data-lock="1"] { overflow: hidden; }

/* --------------------------------------------------------------- mobile ---- */
@media (max-width: 900px) {
  :root { --inset: 12px; --gap: 12px; --pad-wide: 40px; }
  .shell--home, .shell--split { grid-template-columns: minmax(0, 1fr); }
  .stage {
    height: auto;
    aspect-ratio: 366 / 368;
    min-height: 0;
  }
  .shell--split .stage { position: relative; top: auto; }
  .nav {
    top: 20px;
    left: 32px;
    right: 32px;
    gap: 8px;
  }
  .nav__links { display: none; }
  .col { grid-template-rows: none; }
  .wordmark { font-size: 22px; }
  .stage__scrim {
    background:
      linear-gradient(to top, rgba(6, 7, 6, .94) 0%, rgba(6, 7, 6, .88) 26%, rgba(6, 7, 6, .66) 52%, rgba(6, 7, 6, .30) 74%, rgba(6, 7, 6, .12) 100%),
      linear-gradient(to bottom, rgba(6, 7, 6, .58) 0%, rgba(6, 7, 6, 0) 30%);
  }
  .stage__title,
  .p-home .stage__title {
    left: 20px;
    right: 20px;
    bottom: 32px;
    font-size: 53px;
    line-height: 1.11;
    text-align: center;
  }
  .stage__foot { display: none; }
  .tiles { grid-template-rows: none; gap: var(--gap); }
  .tile { aspect-ratio: 1 / 1; }
  .col--about { height: auto; min-height: 0; grid-template-rows: none; }
  .grid-2a, .grid-2b, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-2a .slider, .grid-2b .slider { aspect-ratio: 1 / 1; }
  .pad { text-align: center; }
  .lede { font-size: 28px; }
  .body { margin-top: 16px; }
  .body--tight { margin-top: 20px; }
  .menu-card { padding: 40px var(--pad-wide) 56px; }
  .course__h { margin: 40px 0 32px; }
  .course + .course { margin-top: 64px; }
  .dish { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dish__img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .dish + .dish { margin-top: 40px; }
  .form { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .book-card { padding: 48px var(--pad-wide); }
  .book__lede { margin-bottom: 40px; }
  .overlay__list a { font-size: 44px; line-height: 46px; }
  .overlay__close { top: 32px; left: 32px; }
  .mfoot {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: 28px 12px 4px;
    text-align: center;
  }
  .mfoot p {
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
}
@media (min-width: 901px) {
  .mfoot { display: none; }
}
@media (max-width: 420px) {
  .orn__f { width: 26px; }
}

/* ------------------------------------------------------- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal span {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .slider__track { transition: none; }
  .overlay, .overlay__list a { transition: none; }
  .overlay__list a { opacity: 1; transform: none; }
  * { animation-duration: .001s !important; }
}
