:root {
  --bg: oklch(0.18 0.015 40);
  --bg-2: oklch(0.215 0.018 40);
  --bg-3: oklch(0.25 0.02 40);
  --fg: oklch(0.95 0.02 80);
  --muted: oklch(0.70 0.02 60);
  --accent: oklch(0.68 0.19 45);
  --accent-soft: oklch(0.68 0.19 45 / 0.16);
  --line: oklch(0.95 0.02 80 / 0.12);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1240px;
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--fg); color: var(--bg); padding: .6rem 1rem; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 350;
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--fg); }
.muted { color: var(--muted); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--pad);
  transition: background-color .4s var(--ease), padding .4s var(--ease), transform .5s var(--ease);
}
.topbar.is-solid { background: oklch(0.18 0.015 40 / 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-block: .8rem; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 1.45rem; font-style: italic; font-weight: 500; text-decoration: none; letter-spacing: -0.01em; }
.topbar ul { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); list-style: none; margin: 0; padding: 0; }
.topbar nav a { text-decoration: none; font-size: .9rem; font-weight: 400; color: oklch(0.95 0.02 80 / 0.82); transition: color .2s; }
.topbar nav a:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem; padding: .85rem 1.6rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 .98rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--glass {
  color: var(--fg);
  background: oklch(0.95 0.02 80 / 0.10);
  border: 1px solid oklch(0.95 0.02 80 / 0.24);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.14), 0 10px 30px oklch(0 0 0 / 0.25);
}
.btn--glass:hover { background: oklch(0.95 0.02 80 / 0.18); }
.btn--glass.btn--primary { background: oklch(0.68 0.19 45 / 0.78); border-color: oklch(0.80 0.15 55 / 0.55); color: oklch(0.16 0.02 40); }
.btn--glass.btn--primary:hover { background: oklch(0.72 0.19 48 / 0.92); }
.btn--solid { background: var(--accent); color: oklch(0.16 0.02 40); width: 100%; margin-top: 1.5rem; }
.btn--solid:hover { background: oklch(0.73 0.18 50); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 320svh; }
.hero__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-items: end; }
.hero__media, .hero__poster, .hero__poster img, .hero__canvas, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster img, .hero__video { object-fit: cover; }
.hero__canvas, .hero__video { opacity: 0; transition: opacity .8s var(--ease); }
.hero__canvas.is-ready, .hero__video.is-on { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, oklch(0.12 0.015 40 / 0.85) 0%, oklch(0.12 0.015 40 / 0.45) 42%, oklch(0.12 0.015 40 / 0) 70%),
    linear-gradient(0deg, oklch(0.12 0.015 40 / 0.85) 0%, oklch(0.12 0.015 40 / 0) 45%),
    linear-gradient(180deg, oklch(0.12 0.015 40 / 0.55) 0%, oklch(0.12 0.015 40 / 0) 22%);
}
.hero__content {
  position: relative; z-index: 2;
  padding: 0 var(--pad) clamp(5rem, 13vh, 9rem);
  max-width: 54rem;
}
.hero__eyebrow { color: oklch(0.88 0.08 60); text-shadow: 0 1px 12px oklch(0 0 0 / .5); }
.hero__title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400; font-style: italic;
  font-size: clamp(4.2rem, 2rem + 10vw, 11rem);
  line-height: .9; letter-spacing: -0.035em;
  margin: 0 0 1.25rem -0.04em;
  text-shadow: 0 4px 40px oklch(0 0 0 / .45);
}
.hero__tagline {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem);
  line-height: 1.25; max-width: 30ch;
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 20px oklch(0 0 0 / .6);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__scroll {
  position: absolute; z-index: 2; right: var(--pad); bottom: clamp(2rem, 5vh, 3rem);
  display: flex; align-items: center; gap: .75rem;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: oklch(0.95 0.02 80 / 0.7);
}
.hero__scroll span { width: 1px; height: 44px; background: linear-gradient(var(--fg), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Sheet ---------- */
.sheet {
  position: relative; z-index: 3;
  margin-top: -100svh;
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -30px 60px oklch(0 0 0 / .45);
}
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(5rem, 12vw, 9.5rem) var(--pad); }
.section__head { max-width: 40rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.story__media { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.story__media img { width: 100%; height: 100%; object-fit: cover; animation: slowzoom 22s ease-in-out infinite alternate; transform-origin: 40% 50%; }
@keyframes slowzoom { from { transform: scale(1.02); } to { transform: scale(1.16); } }
.story__text p:not(.eyebrow):not(.lead):not(.signature) { color: var(--muted); }
.story__text { max-width: 34rem; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--accent); margin-top: 1.5rem; }

/* ---------- Menu ---------- */
.menu { border-top: 1px solid var(--line); }
.menu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2.5rem, 6vw, 6rem); list-style: none; margin: 0; padding: 0; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.dish { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.dish__row { display: flex; align-items: baseline; gap: 1rem; }
.dish h3 { font-family: var(--serif); font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); font-weight: 400; letter-spacing: -0.01em; }
.dish__line { flex: 1; border-bottom: 1px dotted oklch(0.95 0.02 80 / 0.22); transform: translateY(-.3em); min-width: 1.5rem; }
.dish data { font-variant-numeric: tabular-nums; font-weight: 400; color: var(--accent); white-space: nowrap; }
.dish p { color: var(--muted); font-size: .95rem; margin: .35rem 0 0; max-width: 34ch; }
.menu__desserts { margin-top: clamp(3rem, 7vw, 5rem); }
.menu__desserts .h3 { font-style: italic; font-size: 2rem; }
.menu__note { margin-top: 2.5rem; font-size: .85rem; }

/* ---------- Oven ---------- */
.oven { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; }
.oven__media { position: absolute; inset: 0; z-index: -1; }
.oven__media img, .oven__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oven__media video { opacity: 0; transition: opacity 1s var(--ease); }
.oven__media video.is-on { opacity: 1; }
.oven__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, oklch(0.12 0.015 40 / 0.55) 0%, oklch(0.12 0.015 40 / 0.82) 75%), linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.oven__content { padding: 6rem var(--pad); max-width: 60rem; }
.oven__quote { font-family: var(--serif); font-optical-sizing: auto; font-weight: 300; font-size: clamp(2.4rem, 1.2rem + 5vw, 5.6rem); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 2rem; text-shadow: 0 4px 40px oklch(0 0 0 / .5); }
.oven__quote em { color: var(--accent); font-style: italic; }
.oven__sub { color: oklch(0.88 0.02 70); max-width: 34rem; margin-inline: auto; }

/* ---------- Room ---------- */
.room { position: relative; min-height: 110svh; display: grid; align-items: end; overflow: hidden; }
.room__media { position: absolute; inset: 0; overflow: hidden; }
.room__img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.room__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 45%, oklch(0.14 0.015 40 / 0.9) 100%); }
.room__card { position: relative; max-width: 36rem; margin: 0 var(--pad) clamp(3rem, 9vw, 7rem); padding: clamp(1.75rem, 3.5vw, 2.75rem); background: oklch(0.18 0.015 40 / 0.9); border: 1px solid var(--line); border-radius: 22px; }
.room__card p:last-child { color: var(--muted); margin: 0; }

/* ---------- Booking ---------- */
.booking { display: grid; grid-template-columns: 1fr 1.05fr; grid-template-areas: "intro form" "info form"; column-gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.booking__intro { grid-area: intro; }
.booking__info { grid-area: info; }
.booking .form { grid-area: form; }
.info { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hours { margin: 0; display: grid; gap: .55rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; }
.hours dt { color: var(--muted); white-space: nowrap; }
.hours dd span { display: block; }
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
address { font-style: normal; color: var(--muted); }
address a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.5rem, 3.5vw, 2.75rem); position: sticky; top: 6rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field select {
  width: 100%; min-height: 3.1rem; padding: .75rem 1rem;
  font: 400 1rem var(--sans); color: var(--fg);
  background: var(--bg); border: 1px solid oklch(0.95 0.02 80 / 0.16); border-radius: 14px;
  color-scheme: dark; transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b3a596' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field input::placeholder { color: oklch(0.70 0.02 60 / 0.7); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: oklch(0.65 0.2 25); }
.form__msg { margin: 1rem 0 0; min-height: 1.5em; font-size: .95rem; }
.form__msg.is-ok { color: var(--fg); background: var(--accent-soft); border: 1px solid oklch(0.68 0.19 45 / 0.4); border-radius: 14px; padding: .9rem 1.1rem; }
.form__msg.is-err { color: oklch(0.78 0.12 30); }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 4rem var(--pad) 6rem; border-top: 1px solid var(--line); }
.footer__brand { font-family: var(--serif); font-style: italic; font-size: 2.2rem; margin-bottom: .4rem; }
.footer__credit { margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }
.footer__credit a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 40;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.4rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem;
  opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background-color .25s;
}
.fab::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reveal (only when JS animations are on) ---------- */
.js-anim .reveal { opacity: 0; transform: translateY(28px); }
.js-anim .reveal-clip { clip-path: inset(12% 8% 12% 8% round 22px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .topbar ul li:not(:last-child) { display: none; }
}
@media (max-width: 768px) {
  .hero { height: 200svh; }
  .hero__shade {
    background:
      linear-gradient(0deg, oklch(0.11 0.015 40 / 0.96) 0%, oklch(0.11 0.015 40 / 0.86) 30%, oklch(0.11 0.015 40 / 0.5) 46%, oklch(0.11 0.015 40 / 0) 64%),
      linear-gradient(180deg, oklch(0.12 0.015 40 / 0.6) 0%, oklch(0.12 0.015 40 / 0) 20%);
  }
  .hero__content { padding-bottom: clamp(4.5rem, 12vh, 6rem); }
  .hero__scroll { display: none; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .story { grid-template-columns: 1fr; }
  .booking { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "info"; }
  .booking .form { margin-top: 1rem; }
  .room__img { object-position: 22% center; }
  .story__media { aspect-ratio: 4 / 3; }
  .menu__grid { grid-template-columns: 1fr; }
  .form { position: static; }
  .room { min-height: 90svh; }
  .room__card { margin-inline: 1rem; }
  .topbar { padding-block: 1rem; }
  .fab { bottom: max(1rem, env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .form__grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion / no-video ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero { height: 100svh; }
  .sheet { margin-top: 0; }
}
.no-motion .hero { height: 100svh; }
.no-motion .sheet { margin-top: 0; }
.no-motion .story__media img { animation: none; }
