/* ============================================================
   Oak & Ember — Scroll-Driven Frame Animation
   ============================================================ */

:root {
  --gold:     #c9a96e;
  --gold-dim: #a8895420;
  --bg-dark:  #0b0a08;
  --bg-light: #f5f4f0;
  --ink:      #1a1714;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'Outfit', system-ui, sans-serif;
}

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

html { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: #fff;
  background: var(--bg-dark);
  overflow-x: hidden;
}

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

/* ── Loader ─────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0;
  z-index: 1000;
  background: var(--bg-dark);
  display: grid; place-items: center;
}
.loader-inner { text-align: center; }
.loader-mark {
  font-family: var(--serif);
  font-size: 3.5rem; font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.loader-word {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.45em;
  color: #fff8;
  margin-bottom: 2.2rem; padding-left: 0.45em;
}
.loader-track {
  width: 220px; height: 2px;
  background: #ffffff1a;
  margin: 0 auto 0.9rem;
  overflow: hidden; border-radius: 2px;
}
#loader-bar {
  width: 0%; height: 100%;
  background: var(--gold);
  transition: width 0.25s ease;
}
#loader-percent {
  font-size: 0.7rem; letter-spacing: 0.25em;
  color: #fff6;
}
#loader.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

/* ── Canvas ─────────────────────────────────────────────── */
#canvas {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1;
  background: var(--bg-dark);
}
/* Soft cinematic vignette over the canvas */
#vignette {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 40%, #000a 100%),
    linear-gradient(180deg, #0006 0%, transparent 22%, transparent 70%, #000b 100%);
}

/* ── Scenes ─────────────────────────────────────────────── */
.scene {
  position: fixed;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  max-width: min(680px, 86vw);
  will-change: opacity, transform;
}
.scene .scene-cta { pointer-events: auto; }

.pos-left   { bottom: 11vh; left: 6vw; text-align: left; }
.pos-right  { bottom: 11vh; right: 6vw; text-align: right; }
.pos-center { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }

.eyebrow {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.title {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 40px #000a;
}
.size-xl .title { font-size: clamp(3.6rem, 10vw, 9.5rem); }
.size-lg .title { font-size: clamp(2.8rem, 7vw, 6.5rem); }
.size-md .title { font-size: clamp(2.4rem, 5vw, 4.6rem); }

.sub {
  margin-top: 1.4rem;
  font-size: clamp(0.92rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: #ffffffcc;
  letter-spacing: 0.01em;
}
.scene-cta {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 500; letter-spacing: 0.04em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: opacity 0.3s ease;
}
.scene-cta:hover { opacity: 0.7; }

/* ── Scroll runway ─────────────────────────────────────── */
.scroll-container {
  position: relative;
  height: 560vh; /* runway → playback pace */
  z-index: 0;
}

/* ── Sections ──────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 3;
  padding: clamp(5rem, 12vh, 11rem) 6vw;
}
.section-dark  { background: var(--bg-dark); color: #fff; }
.section-light { background: var(--bg-light); color: var(--ink); }

.section-eyebrow {
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.section-eyebrow.dark { color: #9a7d4e; }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.section-lead {
  max-width: 56ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  line-height: 1.7;
  color: #ffffffcc;
}
.section-light .section-lead { color: #3a342e; }

/* Intro */
.intro { border-top: 1px solid #ffffff10; }

/* Menu */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem 3.5rem;
  margin-top: 3.5rem;
}
.dish { position: relative; padding-bottom: 1.6rem; border-bottom: 1px solid #ffffff12; }
.dish-tag {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold);
}
.dish h4 {
  font-family: var(--serif);
  font-size: 1.7rem; font-weight: 400;
  margin: 0.6rem 0 0.5rem;
  padding-right: 2.5rem;
}
.dish p { font-size: 0.92rem; line-height: 1.6; color: #ffffff9c; }
.dish-price {
  position: absolute; top: 1.4rem; right: 0;
  font-family: var(--serif);
  font-size: 1.4rem; color: var(--gold);
}
.menu-note {
  margin-top: 3rem;
  font-size: 0.85rem; font-style: italic;
  color: #ffffff66;
}

/* Hours */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  max-width: 820px;
}
.hours-list { list-style: none; }
.hours-list li {
  display: flex; justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid #00000010;
  font-size: 1rem;
}
.hours-list li span:first-child { font-weight: 500; }
.hours-list li span:last-child { color: #6a625a; }
.hours-addr { font-size: 1.1rem; line-height: 1.9; color: #3a342e; }

/* Reserve */
.reserve { text-align: center; }
.reserve .section-title { margin-bottom: 1.2rem; }
.reserve .section-lead { margin: 0 auto 2.6rem; }
.btn {
  display: inline-block;
  margin: 0 0.5rem 1rem;
  padding: 1rem 2.4rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--gold); color: #1a1410;
  border-radius: 2px;
  transition: transform 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); background: #d8ba80; }
.btn-ghost {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-ghost:hover { background: var(--gold-dim); transform: translateY(-2px); }

/* Footer */
.footer {
  position: relative; z-index: 3;
  background: #060504; color: #fff;
  text-align: center;
  padding: 4.5rem 6vw 3.5rem;
}
.footer-mark {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.4em; color: var(--gold);
  margin-bottom: 1.2rem; padding-left: 0.4em;
}
.footer p { font-size: 0.9rem; color: #ffffff99; margin-bottom: 0.5rem; }
.footer-fine { font-size: 0.78rem; color: #ffffff55; margin-top: 1.2rem; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 680px) {
  .pos-left, .pos-right { bottom: 9vh; left: 6vw; right: 6vw; text-align: left; }
  .scroll-container { height: 460vh; }
}

@media (prefers-reduced-motion: reduce) {
  .scene { transition: none; }
}
