/* =====================================================================
   ALMA D' ANDREA — Dark cinematic redesign
   ===================================================================== */
:root {
  --black:    #0a0908;
  --black-2:  #121010;
  --ink:      #1a1716;
  --cream:    #F3EDE3;
  --cream-dim:#a89e90;
  --gold:     #C9A86A;
  --gold-2:   #E0C384;
  --terra:    #C5613A;
  --line:     rgba(243,237,227,0.12);
  --line-2:   rgba(243,237,227,0.06);

  --font-d: "Fraunces", Georgia, serif;
  --font-s: "Plus Jakarta Sans", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --maxw: 1500px;
  --ease: cubic-bezier(0.62, 0.05, 0.01, 0.99);
  --ease2: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-s);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
iframe { border: 0; }
::selection { background: var(--gold); color: var(--black); }

/* grain */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* custom cursor */
.cursor {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); z-index: 9999; pointer-events: none;
  transform: translate(-50%, -50%); transition: width .35s var(--ease2), height .35s var(--ease2), background .35s, opacity .3s;
  mix-blend-mode: difference;
}
.cursor.is-hover { width: 54px; height: 54px; background: var(--cream); }
.cursor.is-view  { width: 84px; height: 84px; background: var(--gold); }
.cursor.is-hidden { opacity: 0; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- type helpers ---------- */
.kicker {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--cream-dim); font-weight: 600; margin-bottom: 1.4rem;
}
.kicker--gold { color: var(--gold); }
.h-lg { font-family: var(--font-d); font-weight: 300; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.02em; }
.h-xl { font-family: var(--font-d); font-weight: 300; font-size: clamp(3rem, 11vw, 9rem); line-height: 0.95; letter-spacing: -0.03em; }
.h-lg em, .h-xl em { font-style: italic; color: var(--gold); font-weight: 400; }

[data-reveal] { opacity: 0; transform: translateY(40px); filter: blur(6px);
  transition: opacity 1s var(--ease2), transform 1s var(--ease2), filter 1s var(--ease2); will-change: transform, opacity; }
[data-reveal].is-visible { opacity: 1; transform: none; filter: blur(0); }

/* ===================================================================== LOADER */
.loader {
  position: fixed; inset: 0; z-index: 10000; background: var(--black);
  display: flex; align-items: flex-end; justify-content: space-between; padding: var(--gutter);
  transition: opacity 1s var(--ease), visibility 1s var(--ease);
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__count { font-family: var(--font-d); font-size: clamp(4rem, 18vw, 14rem); line-height: 0.8; font-weight: 300; color: var(--cream); }
.loader__count i { font-size: 0.3em; font-style: normal; color: var(--gold); vertical-align: super; }
.loader__word { font-family: var(--font-d); font-style: italic; font-size: clamp(1.5rem, 5vw, 3rem); text-align: right; color: var(--gold); line-height: 1.1; }
.loader__word span { display: block; }

/* ===================================================================== NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.6rem var(--gutter); transition: padding .5s var(--ease), background .5s var(--ease);
  mix-blend-mode: difference;
}
.nav.is-solid { mix-blend-mode: normal; background: rgba(10,9,8,0.7); backdrop-filter: blur(14px); padding-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-2); }
.nav__brand { font-family: var(--font-d); font-size: 1.35rem; font-weight: 500; color: var(--cream); letter-spacing: -0.01em; }
.nav__brand span { font-style: italic; color: var(--gold); }
.nav__links { display: flex; gap: 2.4rem; }
.nav__links a { position: relative; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cream); padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .4s var(--ease2); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 1.4rem; }
.lang { display: flex; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: var(--cream); }
.lang__opt { opacity: 0.4; transition: opacity .35s; }
.lang__opt.is-active { opacity: 1; color: var(--gold); }
.nav__cta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--black); background: var(--gold); padding: 0.7rem 1.3rem; border-radius: 999px; transition: background .4s var(--ease2), transform .4s var(--ease2); }
.nav__cta:hover { background: var(--cream); }
.nav__burger { display: none; width: 2.6rem; height: 2.6rem; position: relative; }
.nav__burger span { position: absolute; left: 50%; width: 22px; height: 1.5px; background: var(--cream); transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: calc(50% - 4px); transform: translateX(-50%); }
.nav__burger span:last-child { top: calc(50% + 4px); transform: translateX(-50%); }
body.menu-open .nav__burger span:first-child { transform: translateX(-50%) translateY(4px) rotate(45deg); }
body.menu-open .nav__burger span:last-child { transform: translateX(-50%) translateY(-4px) rotate(-45deg); }

.menu-overlay { position: fixed; inset: 0; z-index: 999; background: var(--black); display: flex; align-items: center; justify-content: center;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); }
body.menu-open .menu-overlay { clip-path: inset(0 0 0% 0); }
.menu-overlay nav { display: flex; flex-direction: column; gap: 0.4rem; text-align: center; }
.menu-overlay a { font-family: var(--font-d); font-size: clamp(2.2rem, 9vw, 4rem); font-weight: 300; color: var(--cream); transition: color .3s; }
.menu-overlay a:hover { color: var(--gold); font-style: italic; }

/* ===================================================================== HERO */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__fallback { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 35%, #1c1715 0%, var(--black) 70%); display: none; }
.hero__fallback.is-on { display: block; background-size: cover; background-position: center; }
.hero__fallback.is-on::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(10,9,8,0.2), rgba(10,9,8,0.85)); }

.hero__overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 var(--gutter); pointer-events: none; }
.hero__overlay .kicker { color: var(--gold-2); }
.hero__title { font-family: var(--font-d); font-weight: 300; font-size: clamp(3.6rem, 17vw, 16rem); line-height: 0.82; letter-spacing: -0.04em; }
.hero__title .line { display: block; }
.hero__title .line--it { font-style: italic; color: var(--gold); }
.hero__title .char { display: inline-block; will-change: transform; }
.hero__sub { margin-top: 1.8rem; max-width: 30ch; color: var(--cream-dim); font-size: clamp(0.95rem, 1.6vw, 1.15rem); font-weight: 300; }

.hero__foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter) 2rem; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-dim); }
.hero__scroll { position: relative; padding-left: 2.4rem; }
.hero__scroll::before { content: ""; position: absolute; left: 0; top: 50%; width: 1.8rem; height: 1px; background: var(--gold); animation: scrollline 2.4s var(--ease) infinite; transform-origin: left; }
@keyframes scrollline { 0%,100% { transform: scaleX(0.4); opacity: .4; } 50% { transform: scaleX(1); opacity: 1; } }
.hero__drag { opacity: 0.6; }

/* ===================================================================== MARQUEE */
.marquee { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 1.4rem 0; overflow: hidden; white-space: nowrap; background: var(--black-2); }
.marquee__track { display: inline-flex; align-items: center; gap: 2.4rem; will-change: transform; }
.marquee__track span { font-family: var(--font-d); font-style: italic; font-weight: 300; font-size: clamp(1.6rem, 4vw, 2.6rem); color: var(--cream); }
.marquee__track i { color: var(--gold); font-style: normal; }

/* ===================================================================== MANIFESTO */
.manifesto { padding: clamp(7rem, 16vw, 16rem) var(--gutter); max-width: 1300px; margin: 0 auto; }
.manifesto__text { font-family: var(--font-d); font-weight: 300; font-size: clamp(2rem, 6.5vw, 6rem); line-height: 1.08; letter-spacing: -0.02em; }
.manifesto__text .word { display: inline-block; opacity: 0.16; transition: opacity .5s var(--ease2); }
.manifesto__text .word.is-lit { opacity: 1; }
.manifesto__text .word--it { font-style: italic; color: var(--gold); }

/* ===================================================================== CHEF */
.chef { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(3rem, 8vw, 8rem) var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.chef__media { position: relative; }
.reveal-img { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/5; }
.reveal-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.4s var(--ease); }
.reveal-img.is-in img { transform: scale(1); }
.reveal-img::after { content: ""; position: absolute; inset: 0; background: var(--black); transform-origin: bottom; transition: transform 1.2s var(--ease); }
.reveal-img.is-in::after { transform: scaleY(0); }
.chef__text p { color: var(--cream-dim); margin-top: 1.4rem; max-width: 42ch; font-weight: 300; font-size: 1.05rem; }
.stats { display: flex; gap: 3rem; margin-top: 2.6rem; }
.stats__n, .stats i { font-family: var(--font-d); font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--gold); line-height: 1; }
.stats i { font-style: normal; font-size: 0.5em; }
.stats small { display: block; color: var(--cream-dim); font-size: 0.82rem; margin-top: 0.6rem; max-width: 16ch; }

/* ===================================================================== DISHES (rail) */
.dishes { padding: clamp(4rem, 9vw, 9rem) 0; overflow: hidden; }
.dishes__head { padding: 0 var(--gutter); margin-bottom: 3rem; }
.dishes__hint { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 1.2rem; }
.rail { display: flex; gap: clamp(1.5rem, 3vw, 3rem); padding: 1rem var(--gutter) 2rem; overflow-x: auto; scroll-snap-type: x mandatory; cursor: grab; scrollbar-width: none; -ms-overflow-style: none; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; }
.dish { flex: 0 0 clamp(280px, 34vw, 460px); scroll-snap-align: center; }
.dish__img { position: relative; aspect-ratio: 3/4; overflow: hidden; border-radius: 6px; background: var(--ink); transform-style: preserve-3d; }
.dish__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.dish:hover .dish__img img { transform: scale(1.06); }
.dish__meta { display: flex; flex-direction: column; gap: 0.3rem; padding-top: 1.4rem; position: relative; }
.dish__idx { position: absolute; right: 0; top: 1.2rem; font-family: var(--font-d); color: var(--gold); opacity: 0.5; font-size: 0.9rem; }
.dish__name { font-family: var(--font-d); font-weight: 400; font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
.dish__desc { color: var(--cream-dim); font-size: 0.9rem; max-width: 30ch; }
.dish__price { font-family: var(--font-d); color: var(--gold); font-size: 1.2rem; margin-top: 0.5rem; }

/* ===================================================================== SHOWCASE */
.showcase { position: relative; height: 130vh; margin: clamp(2rem,6vw,6rem) 0; }
.showcase__img { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.showcase__img img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.showcase__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,0.5), rgba(10,9,8,0.2) 40%, rgba(10,9,8,0.85)); }
.showcase__caption { position: absolute; left: 0; right: 0; bottom: 12vh; z-index: 2; text-align: center; padding: 0 var(--gutter); }
.showcase__caption .kicker { color: var(--gold-2); }
.showcase__caption p { color: var(--cream-dim); max-width: 40ch; margin: 1.2rem auto 0; }

/* ===================================================================== CARTA */
.carta { padding: clamp(5rem, 11vw, 12rem) var(--gutter); max-width: 1100px; margin: 0 auto; position: relative; }
.carta__head { text-align: center; margin-bottom: 4.5rem; }
.carta__group { margin-bottom: 3.5rem; }
.carta__cat { font-size: 0.78rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.row { display: flex; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-2); transition: padding .5s var(--ease2); }
.row:hover { padding-left: 1.5rem; }
.row__name { font-family: var(--font-d); font-size: clamp(1.15rem, 2.4vw, 1.7rem); font-weight: 400; transition: color .4s; }
.row:hover .row__name { color: var(--gold); }
.row__dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.row__price { font-family: var(--font-d); color: var(--gold); font-size: 1.1rem; white-space: nowrap; }
.carta__note { text-align: center; color: var(--cream-dim); font-size: 0.82rem; font-style: italic; margin-top: 2.5rem; }
.carta__preview { position: fixed; top: 0; left: 0; width: 230px; height: 290px; object-fit: cover; border-radius: 6px; pointer-events: none; z-index: 8000;
  opacity: 0; transform: translate(-50%, -50%) scale(0.85); transition: opacity .4s var(--ease2), transform .4s var(--ease2); }
.carta__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ===================================================================== RESERVE */
.reserve { position: relative; padding: clamp(7rem, 16vw, 16rem) var(--gutter); text-align: center; overflow: hidden; }
.reserve__bg { position: absolute; inset: 0; z-index: 0; }
.reserve__bg img { width: 100%; height: 130%; object-fit: cover; opacity: 0.32; will-change: transform; }
.reserve__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(10,9,8,0.4), var(--black)); }
.reserve__inner { position: relative; z-index: 2; }
.reserve__inner > p { color: var(--cream-dim); max-width: 40ch; margin: 1.4rem auto 2.6rem; font-weight: 300; }
.cta-big { display: inline-flex; flex-direction: column; gap: 0.2rem; align-items: center; padding: 1.4rem 3rem; border: 1px solid var(--gold); border-radius: 999px; transition: background .5s var(--ease2), color .5s var(--ease2), transform .5s var(--ease2); }
.cta-big:hover { background: var(--gold); color: var(--black); }
.cta-big__label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.cta-big__num { font-family: var(--font-d); font-size: clamp(1.6rem, 4vw, 2.6rem); }
.reserve__hours { color: var(--cream-dim); font-size: 0.85rem; margin-top: 2rem; }

/* ===================================================================== CONTACT */
.contact { padding: clamp(4rem, 9vw, 9rem) var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.contact__list { margin-top: 2.4rem; }
.contact__list li { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line-2); }
.contact__list small { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.contact__list span, .contact__list a { font-family: var(--font-d); font-size: 1.25rem; }
.contact__list .pre { white-space: pre-line; line-height: 1.5; }
.contact__social { display: flex; gap: 2rem; margin-top: 2rem; }
.contact__social a { font-size: 0.85rem; letter-spacing: 0.05em; transition: color .3s; }
.contact__social a:hover { color: var(--gold); }
.contact__map { aspect-ratio: 1/1; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); filter: grayscale(1) invert(0.9) contrast(0.85); }
.contact__map iframe { width: 100%; height: 100%; }

/* ===================================================================== FOOTER */
.footer { border-top: 1px solid var(--line-2); padding: clamp(3rem, 7vw, 6rem) var(--gutter) 2.5rem; overflow: hidden; }
.footer__big { font-family: var(--font-d); font-weight: 300; font-style: italic; font-size: clamp(3rem, 16vw, 15rem); line-height: 0.9; text-align: center; color: var(--ink); letter-spacing: -0.02em;
  background: linear-gradient(180deg, rgba(243,237,227,0.14), rgba(243,237,227,0.02)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer__row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; font-size: 0.8rem; color: var(--cream-dim); }

/* ===================================================================== RESPONSIVE */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .chef { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .hero__foot { font-size: 0.65rem; }
  .showcase { height: 110vh; }
}
@media (max-width: 560px) {
  .hero__drag { display: none; }
  .stats { flex-direction: column; gap: 1.6rem; }
  .dish { flex-basis: 78vw; }
  .loader { align-items: center; flex-direction: column; justify-content: center; gap: 1.5rem; text-align: center; }
  .loader__word { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .manifesto__text .word { opacity: 1 !important; }
  .reveal-img img { transform: none !important; }
  .reveal-img::after { display: none; }
}
