/* Aldren. Brand settings live in :root; change these to restyle the template. */
@font-face { font-family: 'Cormorant'; src: url('../fonts/cormorant-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('../fonts/cormorant-latin-300-italic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('../fonts/cormorant-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('../fonts/cormorant-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('../fonts/cormorant-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --room: #0b0806;
  --room-2: #15100c;
  --room-3: #1d1712;
  --cream: #efe6d6;
  --cream-2: #cfc3b1;
  --muted: #9d8e7d;
  --line: rgba(239, 230, 214, 0.14);
  --line-2: rgba(239, 230, 214, 0.28);
  --ember: #d9733b;
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 4.5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--room); color: var(--cream); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--cream); color: var(--room); border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.label { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--cream);
  background: var(--cream); color: var(--room); font: 500 15px/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: #fff8ec; }
.btn:active { transform: scale(0.98); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(239, 230, 214, 0.08); border-color: var(--cream-2); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 76px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(rgba(11, 8, 6, 0.72), rgba(11, 8, 6, 0));
}
.nav-brand { font: 500 26px/1 var(--serif); letter-spacing: 0.04em; text-decoration: none; }
.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--cream-2); transition: color 0.3s; }
.nav-links a:hover { color: var(--cream); }

/* ---------- The table ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stage canvas, .stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage canvas { opacity: 0; transition: opacity 1.2s var(--ease); }
.scene-ready .stage canvas { opacity: 1; }
.stage-poster { object-fit: cover; object-position: 50% 100%; }
.live.scene-ready .stage-poster { opacity: 0; transition: opacity 1.2s var(--ease); }
.stage-shade { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 100%, rgba(11, 8, 6, 0) 40%, rgba(11, 8, 6, 0.35) 100%); }
/* Darkens the side of the table behind the dish text; fades in as the camera comes down. */
.stage-menu-shade { position: absolute; inset: 0; opacity: var(--menu, 0); background: linear-gradient(90deg, rgba(11, 8, 6, 0.86) 0%, rgba(11, 8, 6, 0.62) 32%, rgba(11, 8, 6, 0) 56%); }

main, .footer { position: relative; z-index: 1; }

/* ---------- Opening ---------- */
.hero { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; justify-items: center; padding: 0 var(--gutter) 28px; text-align: center; }
.hero-copy { padding-top: clamp(96px, 13vh, 132px); display: grid; justify-items: center; align-content: start; gap: 14px; }
.hero-title { font: 300 clamp(84px, 11.5vw, 184px)/0.82 var(--serif); letter-spacing: -0.015em; margin-top: 4px; }
.hero-lede { font: italic 300 clamp(24px, 2.4vw, 36px)/1.15 var(--serif); color: var(--cream); }
.hero-meta { font-size: 15px; color: var(--cream-2); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 10px; }
.hero-cue { align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border-radius: 999px; background: rgba(11, 8, 6, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-2); }
.hero-cue::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%, 100% { opacity: 0.35; transform: translateY(-2px); } 50% { opacity: 1; transform: translateY(2px); } }

/* ---------- Tonight's menu (pinned) ---------- */
.menu-pin { position: relative; height: 100svh; overflow: hidden; }
.menu-head { position: absolute; top: 110px; left: var(--gutter); right: var(--gutter); display: flex; gap: 18px; align-items: baseline; }
.menu-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.dishes { position: absolute; left: var(--gutter); top: 50%; width: min(36vw, 480px); height: 0; }
.dish { position: absolute; left: 0; right: 0; top: 0; transform: translateY(-50%); }
.dish-photo { display: none; }
.dish-text { display: grid; gap: 14px; opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.dish.is-active .dish-text { opacity: 1; transform: none; transition-delay: 0.12s; }
.dish-course { color: var(--ember); }
.dish-name { font: 300 clamp(44px, 4.8vw, 76px)/0.98 var(--serif); letter-spacing: -0.01em; }
.dish-desc { color: var(--cream-2); max-width: 34ch; }
.dish-price { font: italic 400 30px/1 var(--serif); }
.menu-ticks { position: absolute; left: var(--gutter); bottom: 44px; display: flex; gap: 8px; }
.menu-ticks span { width: 28px; height: 2px; background: var(--line-2); transition: background 0.5s var(--ease); }
.menu-ticks span.on { background: var(--cream); }

/* ---------- Sections below the table ---------- */
.section { padding: clamp(96px, 12vw, 168px) var(--gutter); background: var(--room); }
.how {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); column-gap: clamp(32px, 6vw, 96px); align-items: center;
  background: linear-gradient(rgba(11, 8, 6, 0), var(--room) 160px); padding-top: clamp(160px, 18vw, 240px);
}
.how .section-head { grid-column: 1; margin-bottom: clamp(36px, 4vw, 56px); }
.how-plate { grid-column: 2; grid-row: 1 / span 2; width: 128%; max-width: none; margin-right: -28%; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6)); pointer-events: none; }
.section-head { display: grid; gap: 18px; max-width: 900px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-title { font: 300 clamp(40px, 5.2vw, 80px)/1 var(--serif); letter-spacing: -0.01em; }
.section-lede { color: var(--cream-2); max-width: 52ch; }
.mini-title { font: 500 12px/1.2 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

.how-steps { grid-column: 1; display: grid; gap: 0; }
.how-steps li { border-top: 1px solid var(--line-2); padding: 22px 0 26px; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-content: start; }
.how-steps li .how-n { grid-row: 1 / span 2; padding-top: 6px; }
.how-n { font: italic 300 22px/1 var(--serif); color: var(--ember); }
.how-steps h3 { font: 400 30px/1.1 var(--serif); }
.how-steps p { color: var(--cream-2); }

.carte { background: var(--room-2); }
.carte-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 5vw, 80px) clamp(32px, 6vw, 96px); }
.carte-course ul { display: grid; }
.carte-item { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.carte-item img { width: 84px; height: 84px; }
.carte-name { font: 400 26px/1.1 var(--serif); }
.carte-desc { font-size: 15px; color: var(--cream-2); margin-top: 4px; }
.carte-price { font: italic 400 24px/1 var(--serif); align-self: start; padding-top: 4px; }

.private-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding: clamp(32px, 5vw, 72px); border: 1px solid var(--line); border-radius: 22px; background: var(--room-3); }
.private-card .section-title { margin-top: 18px; }
.private-body { display: grid; gap: 28px; align-content: start; color: var(--cream-2); }
.private-body .btn { justify-self: start; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; }
.facts dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts dd { font: 400 24px/1.15 var(--serif); color: var(--cream); margin-top: 6px; }

.visit-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.hours dt { color: var(--cream-2); }
.hours dd { font-variant-numeric: tabular-nums; }
.contact { display: grid; gap: 8px; font: 400 30px/1.2 var(--serif); }
.contact a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact a:hover { border-color: var(--cream); }
.note { margin-top: 18px; color: var(--muted); font-size: 15px; }

.book { background: var(--room-2); }
.book-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; max-width: 1100px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: rgba(239, 230, 214, 0.04); color: var(--cream); font: 400 17px/1.3 var(--sans); color-scheme: dark;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cream); background: rgba(239, 230, 214, 0.07); }
.field.invalid input, .field.invalid select { border-color: var(--ember); }
.field-wide { grid-column: 1 / -1; }
.book-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-status { color: var(--cream-2); font-size: 15px; }

.footer { padding: 56px var(--gutter) 40px; display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; border-top: 1px solid var(--line); background: var(--room); color: var(--cream-2); font-size: 15px; }
.footer-brand { font: 500 26px/1 var(--serif); color: var(--cream); letter-spacing: 0.04em; }
.footer-small { margin-left: auto; color: var(--muted); }

/* ---------- Still version: reduced motion, or no WebGL ---------- */
:root:not(.live) .stage { position: absolute; height: 100svh; }
:root:not(.live) .stage canvas { display: none; }
:root:not(.live) .menu-pin { height: auto; overflow: visible; padding: 120px var(--gutter) 40px; }
:root:not(.live) .stage-menu-shade, :root:not(.live) .menu-ticks, :root:not(.live) .menu-count { display: none; }
:root:not(.live) .menu-head { position: static; margin-bottom: 40px; }
:root:not(.live) .dishes { position: static; width: auto; height: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 48px 40px; }
:root:not(.live) .dish { position: static; transform: none; display: grid; gap: 20px; }
:root:not(.live) .dish-photo { display: block; width: min(100%, 360px); }
:root:not(.live) .dish-text { opacity: 1; transform: none; }
:root:not(.live) .dish-name { font-size: clamp(36px, 3.4vw, 48px); }
:root:not(.live) .how { padding-top: clamp(96px, 12vw, 168px); }
:root:not(.live) .hero-cue { display: none; }
:root:not(.live) .hero-cue::before { animation: none; }

.poster-mode .nav, .poster-mode main, .poster-mode .footer, .poster-mode .skip { visibility: hidden; }

/* ---------- Phones and narrow tablets ---------- */
@media (max-width: 980px) {
  .how { grid-template-columns: minmax(0, 1fr); }
  .how-plate { grid-column: 1; grid-row: auto; width: 86vw; margin: 0 -30vw 24px auto; }
  .carte-list, .private-card, .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .book-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { height: 64px; }
  .nav-links { display: none; }
  .hero-cue { display: none; }
  .hero-copy { padding-top: 104px; gap: 12px; }
  .hero-meta { max-width: 30ch; }
  .stage-menu-shade { background: linear-gradient(0deg, rgba(11, 8, 6, 0.94) 0%, rgba(11, 8, 6, 0.8) 34%, rgba(11, 8, 6, 0) 60%); }
  .menu-head { top: 84px; }
  .dishes { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 64px; }
  .dish { top: auto; bottom: 0; transform: none; }
  .dish-text { gap: 10px; }
  .dish-name { font-size: clamp(38px, 10.5vw, 48px); }
  .dish-desc { font-size: 15px; }
  .dish-price { font-size: 26px; }
  .menu-ticks { bottom: 32px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .book-form { grid-template-columns: minmax(0, 1fr); }
  .carte-item { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; }
  .carte-item img { width: 64px; height: 64px; }
  .carte-name { font-size: 22px; }
  .footer-small { margin-left: 0; }
}

/* Entrances: js/scroll.js marks elements .reveal and adds .in when they come into view. */
.live .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.live .reveal.in, .instant .reveal { opacity: 1; transform: none; }
.instant .reveal, .instant .stage canvas, .instant .stage-poster { transition: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* Screenshot mode: captions switch without fading. */
.instant .dish-text { transition: none !important; }
