/* ============================================================
   MAISON NOIR — cinematic fine dining
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-raised: #111111;
  --ink: #ece7df;
  --ink-dim: rgba(236, 231, 223, 0.62);
  --ink-faint: rgba(236, 231, 223, 0.38);
  --gold: #c9a96e;
  --gold-dim: rgba(201, 169, 110, 0.45);
  --hairline: rgba(201, 169, 110, 0.28);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
  --track: 0.3em;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: clamp(1.25rem, 5vw, 6rem);
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: color 0.4s var(--ease); }
a:hover { color: var(--gold); }

::selection { background: var(--gold); color: #0a0a0a; }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* Scrollbar tint */
html { scrollbar-color: #2a2418 var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2418; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ---------- Utilities ---------- */

.micro {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink-dim);
}

.section-label { color: var(--gold); margin-bottom: 2rem; }

.hairline {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}

em { font-style: italic; font-weight: 300; }

/* ---------- Grain & vignette ---------- */

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 89;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.42) 100%);
}

/* ---------- Preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.preloader__monogram {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 3rem;
  letter-spacing: 0.35em;
  margin-right: -0.35em;
  color: var(--gold);
  opacity: 0;
  animation: preloader-fade 1s var(--ease) 0.15s forwards;
}

.preloader__line {
  width: min(220px, 50vw);
  height: 1px;
  background: rgba(201, 169, 110, 0.15);
  overflow: hidden;
}

.preloader__line span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  animation: preloader-draw 1.4s var(--ease) 0.3s forwards;
}

@keyframes preloader-fade { to { opacity: 1; } }
@keyframes preloader-draw { to { transform: scaleX(1); } }

.preloader.is-done { transition: opacity 0.8s var(--ease), visibility 0s 0.8s; opacity: 0; visibility: hidden; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem var(--pad-x);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.nav.is-scrolled::before { opacity: 1; }

.nav > * { position: relative; }

.nav__monogram {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  color: var(--gold);
}

.nav__links {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.8rem);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
}

.nav__links a { color: var(--ink-dim); }
.nav__links a:hover { color: var(--gold); }

.nav__reserve {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.7em 1.6em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  white-space: nowrap;
}

.nav__reserve:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.85);
  will-change: transform;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.25) 35%, rgba(10, 10, 10, 0.88) 92%),
    linear-gradient(110deg, rgba(10, 10, 10, 0.55) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  padding: 0 var(--pad-x) clamp(5rem, 12vh, 9rem);
  width: 100%;
}

.hero__eyebrow { margin-bottom: 1.75rem; color: var(--gold); }

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
}

.hero__title em { color: var(--gold); }

.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; will-change: transform; }

.hero__sub { margin-top: 2.25rem; }

.hero__scrollcue {
  position: absolute;
  right: var(--pad-x);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.hero__scrollcue .micro { writing-mode: vertical-rl; color: var(--ink-faint); }

.hero__cueline {
  width: 1px;
  height: 72px;
  background: var(--gold-dim);
  transform-origin: top;
  animation: cue-pulse 2.4s var(--ease) infinite;
}

@keyframes cue-pulse {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Manifesto ---------- */

.manifesto {
  padding: clamp(7rem, 18vh, 13rem) var(--pad-x);
  max-width: 70rem;
  margin: 0 auto;
}

.manifesto__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-height: 1.32;
  margin-bottom: clamp(4rem, 10vh, 7rem);
}

.manifesto__text .word { display: inline-block; }

/* ---------- Tasting menu ---------- */

.menu {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.menu__head { grid-column: 1 / -1; max-width: 50rem; }

.menu__title {
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.05;
}

.menu__title em { color: var(--gold); }

.menu__note {
  margin-top: 1.5rem;
  color: var(--ink-dim);
  font-style: italic;
  font-size: 1.05rem;
}

.menu__list { list-style: none; }

.course {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vh, 2.4rem) 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.16);
  transition: transform 0.55s var(--ease);
  cursor: default;
}

.course:first-child { border-top: 1px solid rgba(201, 169, 110, 0.16); }

.course:hover { transform: translateX(0.9rem); }

.course__numeral {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold);
  min-width: 3rem;
  padding-top: 0.3rem;
  letter-spacing: 0.1em;
  transition: color 0.4s var(--ease);
}

.course__name {
  font-weight: 400;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  transition: color 0.4s var(--ease);
}

.course:hover .course__name { color: var(--gold); }

.course__desc {
  margin-top: 0.5rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
  max-width: 36rem;
}

.course__pairing {
  margin-top: 0.6rem;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-dim);
}

.menu__preview {
  position: sticky;
  top: 16vh;
  aspect-ratio: 3 / 4;
  max-height: 68vh;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid rgba(201, 169, 110, 0.12);
}

.menu__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s var(--ease), transform 1.1s var(--ease);
  filter: brightness(0.85) saturate(0.9);
}

.menu__preview img.is-active { opacity: 1; transform: scale(1); }

/* ---------- Chef ---------- */

.chef {
  position: relative;
  padding: clamp(6rem, 15vh, 11rem) var(--pad-x);
  background: var(--bg-raised);
}

.chef__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
}

.chef__media { position: relative; overflow: hidden; }

.chef__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: brightness(0.8) saturate(0.85);
}

.chef__name {
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 1.75rem;
}

.chef__copy p + p { margin-top: 1.25rem; }
.chef__copy { color: var(--ink-dim); }
.chef__copy .section-label { color: var(--gold); }

.chef__sign {
  margin-top: 2rem;
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
}

.chef__quote {
  max-width: 80rem;
  margin: clamp(-3rem, -6vh, -4rem) auto 0;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.chef__quote p {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.9rem, 4.5vw, 3.8rem);
  line-height: 1.2;
  color: var(--ink);
  max-width: 26ch;
  margin-left: clamp(0rem, 18vw, 18rem);
  transform: translateY(clamp(1rem, 4vh, 3rem));
}

/* ---------- Cellar ---------- */

.cellar { padding: clamp(7rem, 16vh, 12rem) var(--pad-x); }

.cellar__head { max-width: 56rem; margin-bottom: clamp(3rem, 7vh, 5rem); }

.cellar__title {
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1.05;
}

.cellar__title em { color: var(--gold); }

.cellar__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: start;
}

.cellar__item { position: relative; overflow: hidden; will-change: transform; }

.cellar__item:nth-child(2) { margin-top: clamp(2rem, 8vh, 6rem); }
.cellar__item:nth-child(4) { margin-top: clamp(3rem, 10vh, 8rem); }

.cellar__item img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.85);
  transition: filter 0.6s var(--ease);
}

.cellar__item:hover img { filter: brightness(0.95) saturate(1); }

.cellar__item figcaption {
  margin-top: 0.9rem;
  color: var(--ink-faint);
}

.cellar__note {
  margin-top: clamp(3.5rem, 8vh, 6rem);
  max-width: 38rem;
  margin-left: auto;
  color: var(--ink-dim);
  font-style: italic;
  font-size: 1.15rem;
}

/* ---------- Private dining ---------- */

.private {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.private__media { position: absolute; inset: 0; }

.private__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.8);
}

.private__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.35) 60%, rgba(10, 10, 10, 0.6) 100%);
}

.private__panel {
  position: relative;
  z-index: 2;
  margin: clamp(5rem, 12vh, 8rem) var(--pad-x);
  max-width: 34rem;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--hairline);
}

.private__panel h2 {
  font-weight: 300;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.private__panel h2 em { color: var(--gold); }
.private__panel p { color: var(--ink-dim); margin-bottom: 2rem; }

/* ---------- Buttons ---------- */

.ghost-btn,
.gold-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: var(--track);
  text-transform: uppercase;
  padding: 1em 2.4em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.ghost-btn {
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}

.ghost-btn:hover { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }

.gold-btn {
  background: var(--gold);
  color: #0a0a0a;
  border: 1px solid var(--gold);
}

.gold-btn:hover { background: transparent; color: var(--gold); }

/* ---------- Reserve ---------- */

.reserve {
  text-align: center;
  padding: clamp(7rem, 18vh, 13rem) var(--pad-x);
}

.reserve .section-label { margin-bottom: 2.5rem; }

.reserve__title {
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1;
  margin-bottom: 1.75rem;
}

.reserve__title em { color: var(--gold); }

.reserve__sub {
  color: var(--ink-dim);
  font-style: italic;
  margin-bottom: 3rem;
}

.reserve__cols {
  margin-top: clamp(4rem, 9vh, 6.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.reserve__cols .micro { color: var(--gold); margin-bottom: 0.9rem; }
.reserve__cols p:not(.micro) { color: var(--ink-dim); font-size: 1.05rem; }

/* ---------- Footer ---------- */

.footer {
  padding: clamp(4rem, 9vh, 6rem) var(--pad-x) 3rem;
  background: var(--bg-raised);
  text-align: center;
}

.footer__monogram {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.35em;
  margin-right: -0.35em;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

.footer .hairline { margin-bottom: 2.5rem; }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto 3.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  line-height: 2;
}

.footer__grid a { color: var(--ink-dim); }
.footer__grid a:hover { color: var(--gold); }

.footer__fine {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  max-width: 52rem;
  margin: 0 auto;
  line-height: 1.9;
}

/* ---------- Reveal (image clip reveals) ---------- */

.reveal img { will-change: clip-path, transform; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .menu { grid-template-columns: 1fr; }
  .menu__preview { display: none; }
  .chef__grid { grid-template-columns: 1fr; }
  .chef__quote p { margin-left: 0; transform: none; padding-top: 3rem; }
  .chef__quote { margin-top: 0; }
  .cellar__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cellar__item:nth-child(2) { margin-top: 3rem; }
  .cellar__item:nth-child(3) { margin-top: 0; }
  .cellar__item:nth-child(4) { margin-top: 3rem; }
  .cellar__note { margin-left: 0; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; }
}

@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .nav { padding: 1.1rem 1.25rem; }
  .nav__links { display: none; }
  .hero__title { font-size: clamp(3.2rem, 15vw, 5rem); }
  .hero__scrollcue { display: none; }
  .course { gap: 1rem; }
  .course:hover { transform: none; }
  .course__numeral { min-width: 2.2rem; }
  .cellar__row { grid-template-columns: 1fr; }
  .cellar__item:nth-child(n) { margin-top: 0; }
  .private { min-height: 70vh; }
  .private__panel { margin: 4rem 1.25rem; }
  .reserve__cols { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain { animation: none; }
  .hero__cueline { animation: none; transform: scaleY(1); }
  html { scroll-behavior: auto; }
}
