:root {
  color-scheme: dark;
  --bg: #070605;
  --bg-soft: #100d0a;
  --panel: #15110d;
  --panel-2: #1c1711;
  --line: rgba(213, 169, 96, 0.24);
  --line-strong: rgba(213, 169, 96, 0.48);
  --gold: #d7ad69;
  --gold-soft: #f2d59d;
  --text: #f7efe2;
  --muted: #baa98e;
  --muted-2: #81715f;
  --accent: #8c2f24;
  --green: #496247;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #0b0806 0%, var(--bg) 36%, #0a0806 100%);
  color: var(--text);
  font-family: Inter, Manrope, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

body.splash-running {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(215, 173, 105, 0.08), transparent 24rem),
    #020202;
  perspective: 1800px;
  animation: splashGone 420ms ease 1.72s forwards;
}

.splash-stage {
  position: relative;
  width: min(58vw, 430px);
  min-width: 280px;
  aspect-ratio: 941 / 1672;
  transform-style: preserve-3d;
}

.splash-stage::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(215, 173, 105, 0.14), transparent 20%),
    #070605;
  box-shadow: var(--shadow);
  opacity: 0;
  animation: pageReveal 1.8s cubic-bezier(0.2, 0.76, 0.18, 1) 180ms forwards;
}

.splash-page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72);
  transform-origin: left center;
  transform-style: preserve-3d;
  animation: pageOpen 1.8s cubic-bezier(0.2, 0.76, 0.18, 1) 180ms forwards;
}

.splash-page::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent 22%, rgba(255, 255, 255, 0.06));
  opacity: 0;
  animation: pageShade 1.8s ease 180ms forwards;
}

.splash-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
}

@keyframes pageOpen {
  0% {
    transform: translateX(0) rotateY(0deg);
  }

  72% {
    opacity: 1;
  }

  100% {
    opacity: 0.18;
    transform: translateX(-44%) rotateY(-108deg);
  }
}

@keyframes pageShade {
  0% {
    opacity: 0;
  }

  48% {
    opacity: 0.7;
  }

  100% {
    opacity: 0.2;
  }
}

@keyframes pageReveal {
  0% {
    opacity: 0;
    transform: translateX(0);
  }

  100% {
    opacity: 1;
    transform: translateX(8%);
  }
}

@keyframes splashGone {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.splash-running {
    overflow: auto;
  }

  .splash {
    display: none;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 6, 5, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-monogram {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0;
}

.brand-name,
.brand-subtitle {
  display: block;
  white-space: nowrap;
}

.brand-name {
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0.18em;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav a,
.category-rail a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.top-nav a:hover,
.category-rail a:hover {
  border-color: var(--line);
  background: rgba(215, 173, 105, 0.08);
  color: var(--text);
}

main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 34px clamp(16px, 3vw, 32px) 74px;
}

.menu-intro {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  align-items: stretch;
  gap: clamp(20px, 4vw, 56px);
  min-width: 0;
  min-height: min(650px, calc(100svh - 110px));
  margin-bottom: 26px;
}

.intro-card {
  display: grid;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 520px;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: var(--shadow);
}

.brand-cover {
  width: 100%;
  min-width: 0;
  height: 100%;
  object-fit: contain;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(20px, 5vw, 64px) 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 100%;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 66px;
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.intro-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-rail {
  position: sticky;
  top: 76px;
  z-index: 15;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 calc(clamp(16px, 3vw, 32px) * -1) 34px;
  padding: 12px clamp(16px, 3vw, 32px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 8, 6, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.category-rail a {
  flex: 0 0 auto;
  border-color: var(--line);
}

.menu-section {
  scroll-margin-top: 144px;
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(22px, 4vw, 42px);
  padding: clamp(26px, 5vw, 46px) 0;
  border-bottom: 1px solid var(--line);
}

.section-media {
  position: sticky;
  top: 150px;
  align-self: start;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.section-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 700ms ease;
}

.menu-section:hover .section-media img {
  transform: scale(1.025);
}

.section-content {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading p {
  color: var(--gold);
  font-size: 17px;
}

h2 {
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.menu-list {
  display: grid;
  gap: 10px;
}

.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  min-height: 104px;
  padding: 18px 20px;
  border: 1px solid rgba(213, 169, 96, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.menu-item h3 {
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.menu-item p {
  min-height: 1.45em;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.menu-item span {
  display: inline-flex;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu-item strong {
  min-width: 70px;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.menu-item .price-empty {
  color: var(--muted-2);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .top-nav a {
    flex: 0 0 auto;
  }

  main {
    padding-top: 22px;
  }

  .menu-intro,
  .menu-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-intro {
    min-height: auto;
  }

  .intro-card {
    display: block;
    width: 100%;
    justify-self: center;
    max-width: min(420px, calc(100vw - 32px));
    min-height: 0;
    aspect-ratio: auto;
  }

  .brand-cover {
    height: auto;
  }

  .intro-copy {
    padding: 8px 0 18px;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 44px;
  }

  .category-rail {
    top: 116px;
  }

  .menu-section {
    scroll-margin-top: 180px;
  }

  .section-media {
    position: relative;
    top: auto;
    min-height: 260px;
  }

  .section-media img {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .splash-stage {
    width: min(76vw, 330px);
    min-width: 0;
  }

  .site-header {
    min-height: 72px;
    padding: 12px 14px;
  }

  .brand-monogram {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .brand-name {
    font-size: 13px;
    letter-spacing: 0.12em;
  }

  .brand-subtitle {
    max-width: 220px;
    white-space: normal;
    font-size: 10px;
    line-height: 1.35;
  }

  .top-nav {
    display: none;
  }

  main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .intro-card {
    width: 100% !important;
    max-width: 330px !important;
    aspect-ratio: 941 / 1672;
    background: #000 url("assets/brand-cover.jpg") center / contain no-repeat;
  }

  .intro-card .brand-cover {
    display: none;
  }

  h1 {
    max-width: 100%;
    font-size: 42px;
    letter-spacing: 0.035em;
    line-height: 1;
  }

  .intro-meta {
    gap: 8px;
    margin-top: 22px;
  }

  .intro-meta span {
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }

  .category-rail {
    top: 65px;
    margin-bottom: 22px;
  }

  .category-rail a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .menu-section {
    scroll-margin-top: 126px;
    padding: 28px 0;
  }

  .section-media,
  .section-media img {
    min-height: 210px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 2px;
  }

  h2 {
    font-size: 36px;
  }

  .menu-item h3 {
    font-size: 18px;
  }

  .menu-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 16px;
  }

  .menu-item strong {
    min-width: 0;
    font-size: 24px;
    text-align: left;
  }
}
