/* ==========================================================================
   STASY — Restaurant & Bar
   Stylesheet structure:
     1. Fonts            5. Header / menu       9.  Rooms (h-scroll)
     2. Design tokens    6. Hero               10.  Bar
     3. Base / reset     7. Vision + Concepts  11.  Visit / Reserve / Footer
     4. Utilities        8. Bento              12.  Drawer, cursor, motion
   ========================================================================== */

/* 1. FONTS ---------------------------------------------------------------
   Self-hosted brand fonts, subset to Latin + punctuation and converted to
   WOFF2 (~22–27 KB each). Source files: Acworth Bold, Helvetica Neue Light
   and Roman (licensed .otf). */
@font-face {
  font-family: "Acworth";
  src: url("../fonts/Acworth-Bold.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue Web";
  src: url("../fonts/HelveticaNeue-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue Web";
  src: url("../fonts/HelveticaNeue-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 2. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Brand */
  --emerald: #064E3B;          /* primary brand green */
  --terracotta: #B86F52;       /* warm accent (large text / surfaces) */
  --gold: #B7A06A;             /* muted gold (rules, labels, details) */

  /* Extended palette (derived for depth + WCAG AA contrast) */
  --emerald-950: #021F18;      /* page background — cream text 16:1, gold 6.8:1 */
  --emerald-900: #04362A;
  --emerald-bright: #2EA864;   /* from the logo gradient — used sparingly */
  --terracotta-deep: #8A4A33;  /* text-bearing terracotta surfaces — cream 5.8:1 */
  --gold-light: #E3C890;       /* gradient highlight */
  --bronze: #4A2A14;           /* gradient shadow */
  --cream: #F4EFE4;            /* primary text on dark */
  --cream-dim: #C9C2B2;        /* secondary text on dark — 10:1 */
  --paper: #EFE8DA;            /* light section background */
  --ink: #0F1A16;              /* text on light — 15:1 */

  --gold-gradient: linear-gradient(100deg, var(--bronze) 0%, #8A5A2E 35%, var(--gold-light) 75%, var(--gold) 100%);
  /* lighter variant for type over photography (keeps the bronze→gold feel, stays legible) */
  --gold-gradient-type: linear-gradient(100deg, #C49A62 0%, var(--gold-light) 55%, var(--gold) 100%);

  /* Type */
  --font-display: "Acworth", "Helvetica Neue Web", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue Web", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Fluid type scale (mobile → 4K) */
  --fs-xs: clamp(0.72rem, 0.68rem + 0.15vw, 0.8rem);
  --fs-sm: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  --fs-md: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --fs-lg: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  --fs-xl: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem);
  --fs-2xl: clamp(2.6rem, 1.4rem + 5vw, 6.5rem);
  --fs-3xl: clamp(3rem, 1rem + 8.4vw, 11rem);

  /* Space + layout */
  --gutter: clamp(16px, 4vw, 72px);
  --section: clamp(96px, 14vw, 240px);
  --max: 1760px;
  --radius: 2px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);     /* expo-out: luxurious settle */
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --dur: .9s;
}

/* 3. BASE ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  /* Root size scales gently on very large screens so 4K doesn't look tiny */
  font-size: clamp(16px, 0.42vw + 10px, 22px);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* Lenis takes over smooth scrolling when present */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--emerald-950);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }

/* Film grain over everything: kills banding on dark gradients, adds tactility */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 90;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; }

::selection { background: var(--gold); color: var(--emerald-950); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* 4. UTILITIES ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: .7em 1.2em; background: var(--gold); color: var(--emerald-950);
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.label, .eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow { display: flex; align-items: center; gap: 1rem; }
.eyebrow__rule { width: 3rem; height: 1px; background: var(--gold-gradient); }

.display-1, .display-2, .hero__title, .index__name, .tile__title, .drink__name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: .95;
  text-transform: uppercase;
}
.display-1 { font-size: var(--fs-3xl); }
.display-2 { font-size: var(--fs-2xl); }
.muted { color: var(--gold); }
.display-1 em, .hero__title em {
  /* gold-gradient type for one emphasised word per headline */
  background: var(--gold-gradient-type);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Animated underline link */
.link-u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease-out);
  padding-bottom: 2px;
}
.link-u:hover, .link-u:focus-visible { background-size: 100% 1px; }

.link-arrow {
  display: inline-flex; gap: .6em; align-items: center;
  font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  padding-block: .6em;
}
.link-arrow span { transition: transform .5s var(--ease-out); }
.link-arrow:hover span { transform: translateX(6px) rotate(0deg); }

/* Buttons: text slides up and is replaced by a copy on hover (see ::after) */
.btn {
  --bg: transparent; --fg: var(--cream); --bd: rgba(244,239,228,.35);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05em 2em; border: 1px solid var(--bd); border-radius: 100px;
  background: var(--bg); color: var(--fg);
  font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  overflow: hidden; isolation: isolate;
  transition: border-color .4s, color .5s var(--ease-out);
}
.btn::before {             /* liquid fill that rises from the bottom */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--gold));
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: translateY(101%);
  transition: transform .7s var(--ease-out), border-radius .7s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); border-radius: 0; }
.btn:hover, .btn:focus-visible { color: var(--emerald-950); border-color: transparent; }
.btn span { position: relative; display: inline-block; }
.btn--gold { --bg: var(--gold); --fg: var(--emerald-950); --bd: var(--gold); --fill: var(--cream); }
.btn--xl { font-size: var(--fs-sm); padding: 1.6em 3.2em; }
.btn--block { width: 100%; }

.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(48px, 7vw, 120px); }

/* 5. HEADER -------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: clamp(14px, 1.6vw, 28px) var(--gutter);
  padding-top: max(clamp(14px, 1.6vw, 28px), env(safe-area-inset-top));
  transition: transform .7s var(--ease-out), background-color .5s, backdrop-filter .5s;
}
.nav.is-scrolled {
  background: rgba(2, 31, 24, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: block; color: var(--cream); }
.nav__logo {
  display: block; width: clamp(104px, 9vw, 168px); aspect-ratio: 1480 / 305;
  /* Green parts take the current text color on dark; the gold wave keeps its gradient */
  --logo-green: currentColor;
}
.nav__links { display: none; gap: clamp(1.4rem, 2.4vw, 3rem); margin-left: auto;
  font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; font-weight: 400; }
.nav__cta { display: none; padding: .85em 1.6em; }
.nav__toggle {
  margin-left: auto; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px;
}
.nav__toggle i { display: block; width: 26px; height: 1px; background: var(--cream); transition: transform .5s var(--ease-out); }
.nav__toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2.5rem;
  padding: 120px var(--gutter) max(40px, env(safe-area-inset-bottom));
  background: var(--emerald);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-in-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: grid; gap: .3rem; }
.menu nav a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.2rem, 11vw, 4rem); letter-spacing: 0; line-height: 1.05;
}
.menu nav small { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--gold); letter-spacing: .1em; }

/* 6. HERO ---------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(96px, 12vh, 160px) var(--gutter) clamp(24px, 4vh, 48px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: -8% 0 0 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.6s var(--ease-out); }
body.is-ready .hero__media img { transform: scale(1.02); }
/* If the photo arrives after the curtain lifts, fade it in instead of popping */
.js .hero__media img { opacity: 0; transition: transform 2.6s var(--ease-out), opacity 1.4s var(--ease-out); }
.js .hero__media.is-loaded img { opacity: 1; }
.hero::before {               /* legibility veil: emerald from the bottom, deep at the top */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(2,31,24,.75) 0%, rgba(2,31,24,.05) 30%, rgba(2,31,24,.15) 55%, rgba(2,31,24,.94) 100%),
    radial-gradient(120% 80% at 80% 100%, rgba(6,78,59,.5), transparent 60%);
}
@media (max-width: 699px) {
  .hero::before { background: linear-gradient(180deg, rgba(2,31,24,.7) 0%, rgba(2,31,24,.1) 22%, rgba(2,31,24,.72) 52%, rgba(2,31,24,.97) 100%); }
  .hero__media img { object-position: 72% center; } /* frame the darker bar side behind the headline */
}

.hero__meta {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--cream-dim);
}
.hero__coords { display: none; }
@media (min-width: 700px) { .hero__coords { display: block; } }

.hero__body { align-self: end; padding-bottom: clamp(24px, 5vh, 64px); }
.hero__body .eyebrow { margin-bottom: 1.6rem; }
.hero__title { font-size: min(var(--fs-3xl), 13.5svh); max-width: 14ch; }
/* Line mask reveal: each line's inner span slides up from below its own clip box */
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: inline-block; transform: translateY(105%); transition: transform 1.4s var(--ease-out); }
body.is-ready .line > span { transform: none; }
body.is-ready .line:nth-child(2) > span { transition-delay: .1s; }
body.is-ready .line:nth-child(3) > span { transition-delay: .2s; }

.hero__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  border-top: 1px solid rgba(244,239,228,.18); padding-top: 1.4rem;
}
.tonight { display: flex; gap: .9rem; align-items: flex-start; }
.tonight__dot {
  flex: none; width: 8px; height: 8px; margin-top: .45em; border-radius: 50%;
  background: var(--emerald-bright); box-shadow: 0 0 0 0 rgba(46,168,100,.6);
  animation: pulse 2.4s infinite;
}
.tonight.is-closed .tonight__dot { background: var(--terracotta); animation: none; }
.tonight__label { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.tonight__status { font-size: var(--fs-sm); color: var(--cream); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,168,100,.55); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(46,168,100,0); }
}

.scroll-cue { display: none; align-items: center; gap: 1rem; font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--cream-dim); }
.scroll-cue i { position: relative; width: 1px; height: 56px; background: rgba(244,239,228,.2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (min-width: 700px) { .scroll-cue { display: flex; } }

/* 7. VISION --------------------------------------------------------------- */
.vision { position: relative; padding-block: var(--section); overflow: hidden; }
.vision__grid { display: grid; gap: clamp(40px, 6vw, 96px); position: relative; z-index: 1; }
.manifesto {
  font-family: var(--font-body); font-weight: 300;
  font-size: var(--fs-xl); line-height: 1.18; letter-spacing: -.02em;
  max-width: 24ch;
}
/* Words start dim; main.js lights them up as the paragraph scrolls through */
.manifesto .w { color: rgba(244,239,228,.16); transition: color .5s linear; }
.manifesto .w.is-lit { color: var(--cream); }
.manifesto .w.is-key.is-lit { color: var(--gold); }

.vision__figure { width: min(78%, 440px); justify-self: end; }
.vision__figure img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.vision__figure figcaption { margin-top: .8rem; font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--cream-dim); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid rgba(183,160,106,.35); padding-top: 1.6rem; }
.facts dt { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); order: 2; }
.facts div { display: flex; flex-direction: column; gap: .4rem; }
.facts dd { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); line-height: 1; color: var(--gold); }

@media (min-width: 900px) {
  .vision__grid { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .vision__grid > .label { grid-column: 1 / 4; padding-top: 1.2em; }
  .manifesto { grid-column: 4 / 13; }
  .vision__figure { grid-column: 1 / 5; grid-row: 2 / 4; justify-self: start; width: 100%; margin-top: 4rem; }
  .facts { grid-column: 7 / 13; grid-row: 3; align-self: end; }
}

.ribbon { position: absolute; left: 0; right: 0; bottom: 6%; width: 100%; height: 32vw; max-height: 520px; pointer-events: none; z-index: 0; opacity: .9; }

/* CONCEPTS (index list) */
.concepts { padding-bottom: var(--section); position: relative; }
.index { border-top: 1px solid rgba(244,239,228,.14); }
.index__item { border-bottom: 1px solid rgba(244,239,228,.14); }
.index__link {
  display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: baseline;
  column-gap: 1rem; row-gap: .4rem;
  padding-block: clamp(1.4rem, 2.6vw, 2.6rem);
  position: relative;
}
.index__num { font-size: var(--fs-xs); color: var(--gold); letter-spacing: .1em; }
.index__name { font-size: var(--fs-xl); transition: transform .7s var(--ease-out), color .4s; }
.index__desc { grid-column: 2 / 4; color: var(--cream-dim); font-size: var(--fs-sm); }
.index__tag { grid-column: 2 / 4; font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.index__thumb { grid-column: 2 / 4; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-top: .8rem; }
/* The list dims every row except the hovered one */
.index:hover .index__name { color: rgba(244,239,228,.35); }
@media (max-width: 899px) { .index:hover .index__name { color: inherit; } .index-preview { display: none; } }
.index .index__link:hover .index__name,
.index .index__link:focus-visible .index__name { color: var(--cream); transform: translateX(1.2rem); }

@media (min-width: 900px) {
  .index__link { grid-template-columns: 5rem 1.4fr 1fr 9rem; align-items: center; }
  .index__desc { grid-column: auto; }
  .index__tag { grid-column: auto; text-align: right; color: var(--cream-dim); }
  .index__thumb { display: none; }
}

/* Cursor-follow image preview for the index (desktop pointer only) */
.index-preview {
  position: fixed; top: 0; left: 0; z-index: 40; pointer-events: none;
  width: clamp(220px, 20vw, 380px); aspect-ratio: 4 / 5;
  overflow: hidden; opacity: 0; visibility: hidden;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path .7s var(--ease-out), opacity .3s;
}
.index-preview.is-visible { opacity: 1; visibility: visible; clip-path: inset(0 0 0 0); }
.index-preview img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.2s var(--ease-out); }
.index-preview.is-visible img { transform: scale(1); }

/* 8. BENTO ---------------------------------------------------------------- */
.experiences { padding-bottom: var(--section); }
.bento { display: grid; gap: clamp(10px, 1.1vw, 20px); grid-template-columns: 1fr; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 300px; padding: clamp(22px, 2.4vw, 44px);
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--radius);
}
.tile__kicker { font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.tile__title { font-size: var(--fs-lg); line-height: 1; margin-bottom: .8rem; letter-spacing: 0; }
.tile__text { color: var(--cream-dim); font-size: var(--fs-sm); max-width: 38ch; }

.tile--image { min-height: 380px; }
.tile--image img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transition: transform 1.6s var(--ease-out), filter 1s;
  filter: saturate(.85);
}
.tile--image::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 25%, rgba(2,31,24,.35) 50%, rgba(2,31,24,.92));
}
.tile--image:hover img { transform: scale(1.1); filter: saturate(1.05); }
.tile--image .tile__text { color: var(--cream); }

.tile--marble-terra { background-color: var(--terracotta-deep); }
.tile--marble-emerald { background-color: var(--emerald); justify-content: center; }
.marble { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .32; overflow: hidden; }
.tile--marble-emerald .marble { opacity: .2; }
/* depth: a soft vignette so the stone isn't flat */
.tile--marble-terra, .tile--marble-emerald { background-image: radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.08), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(0,0,0,.22), transparent 70%); }
.tile--marble-terra .tile__kicker { color: var(--cream); }

.tile__quote p { font-family: var(--font-body); font-weight: 300; font-size: var(--fs-lg); line-height: 1.2; letter-spacing: -.01em; }
.tile__quote footer { margin-top: 1rem; font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

.tile--paper { background: var(--paper); color: var(--ink); justify-content: space-between; }
.tile--paper .tile__kicker { color: var(--terracotta-deep); }
.tile--paper .tile__text { color: #3D4A44; }
.tile__big { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2xl); line-height: 1; color: var(--emerald); letter-spacing: -.01em; }
.tile__big sup { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; vertical-align: top; margin-left: .5em; color: var(--terracotta-deep); }

.tile .link-arrow { margin-top: 1.2rem; align-self: flex-start; color: var(--cream); }

@media (min-width: 560px) and (max-width: 759px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--a, .tile--f { grid-column: span 2; }
}
/* Asymmetric 12-column bento on tablet+ */
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(clamp(200px, 17vw, 340px), auto); }
  .tile--a { grid-column: 1 / 8; grid-row: span 2; }
  .tile--b { grid-column: 8 / 13; }
  .tile--c { grid-column: 8 / 13; }
  .tile--d { grid-column: 1 / 5; grid-row: span 2; }
  .tile--e { grid-column: 5 / 9; grid-row: span 2; }
  .tile--f { grid-column: 9 / 13; grid-row: span 2; }
}

/* 9. ROOMS (pinned horizontal scroll) -------------------------------------- */
.rooms { position: relative; }
.rooms__sticky { padding-block: var(--section) 48px; }
.rooms__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(32px, 4vw, 64px); }
.rooms__head .label { grid-column: 1 / -1; }
.rooms__counter { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--gold); }
.rooms__track {
  display: flex; gap: clamp(12px, 2vw, 32px);
  padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rooms__track::-webkit-scrollbar { display: none; }
.room { flex: none; width: 82vw; scroll-snap-align: center; }
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room--tall img { aspect-ratio: 3 / 4; }
.room figcaption {
  display: flex; gap: 1rem; align-items: baseline; margin-top: 1rem;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: var(--fs-md); letter-spacing: .01em;
}
.room figcaption span { font-family: var(--font-body); font-weight: 400; font-size: var(--fs-xs); color: var(--gold); }
.room figcaption em { margin-left: auto; font-family: var(--font-body); font-weight: 300; text-transform: none; font-size: var(--fs-sm); color: var(--cream-dim); }
.rooms__progress { margin: 2rem var(--gutter) 0; height: 1px; background: rgba(244,239,228,.14); }
.rooms__progress i { display: block; height: 100%; background: var(--gold-gradient); transform-origin: left; transform: scaleX(0); }

/* JS adds .is-pinned on wide screens with motion allowed: vertical scroll drives the track */
.rooms.is-pinned .rooms__sticky {
  position: sticky; top: 0; height: 100vh; padding-block: clamp(80px, 11vh, 140px) 4vh;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.rooms.is-pinned .rooms__track { overflow: visible; scroll-snap-type: none; will-change: transform; align-items: flex-end; }
.rooms.is-pinned .room { width: auto; }
.rooms.is-pinned .room img { height: 52vh; width: auto; }

/* 10. BAR ------------------------------------------------------------------ */
.bar { padding-block: var(--section); background: linear-gradient(180deg, var(--emerald-950), var(--emerald-900) 40%, var(--emerald-950)); }
.bar__grid { display: grid; gap: clamp(40px, 6vw, 120px); }
.bar__visual { position: relative; width: min(100%, 480px); margin-inline: auto; }
.bar__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 2px 2px; /* arched, like the dining-room windows */ }
.bar__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease-out), transform 1.6s var(--ease-out);
}
.bar__frame img.is-active { opacity: 1; transform: scale(1); }
.bar__badge {
  position: absolute; right: -4%; bottom: 6%; width: clamp(110px, 12vw, 190px);
  fill: var(--gold); font-size: 15px; letter-spacing: 3.4px; text-transform: uppercase;
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.bar__menu .display-2 { margin-block: 1.5rem clamp(32px, 4vw, 64px); }
.drinks { border-top: 1px solid rgba(244,239,228,.14); }
.drink {
  display: grid; grid-template-columns: 1fr auto; gap: .35rem 1.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid rgba(244,239,228,.14); cursor: default;
  position: relative;
}
.drink::before { /* gold line that grows across the active row */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--gold-gradient); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out);
}
.drink.is-active::before { transform: scaleX(1); }
.drink__name { font-size: var(--fs-lg); letter-spacing: 0; color: rgba(244,239,228,.45); transition: color .4s; }
.drink.is-active .drink__name { color: var(--cream); }
.drink__notes { grid-column: 1; color: var(--cream-dim); font-size: var(--fs-sm); }
.drink__price { grid-row: 1; grid-column: 2; font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: var(--fs-md); }
.fineprint { margin-top: 1.4rem; font-size: var(--fs-xs); color: var(--cream-dim); letter-spacing: .04em; }

@media (min-width: 900px) {
  .bar__grid { grid-template-columns: 5fr 7fr; align-items: start; }
  .bar__visual { position: sticky; top: 14vh; width: 100%; max-width: 560px; }
}

/* 11. VISIT (light paper section) ------------------------------------------ */
.visit { background: var(--paper); color: var(--ink); padding-block: var(--section); }
.visit .label { color: var(--terracotta-deep); }
.visit .display-2 { color: var(--emerald); margin-top: 1.4rem; }
.visit__lede { margin-top: 1.6rem; max-width: 36ch; color: #3D4A44; }
.visit__grid { display: grid; gap: clamp(40px, 5vw, 80px); }
.visit__info { display: grid; gap: 2rem; align-content: start; }
.visit__block h3 { font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase; font-weight: 400; color: var(--terracotta-deep); margin-bottom: .7rem; }
.visit__block address { font-style: normal; }
.visit .link-arrow { color: var(--emerald); }
.hours { border-collapse: collapse; width: 100%; max-width: 360px; }
.hours th, .hours td { text-align: left; font-weight: 300; padding: .35rem 0; border-bottom: 1px solid rgba(15,26,22,.12); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--emerald); font-weight: 400; }
.hours tr.is-today th::after { content: " · Today"; color: var(--terracotta-deep); font-size: .8em; }

.map { margin: 0; overflow: hidden; }
.map svg { display: block; width: 100%; height: auto; }
.map__park, .map__district, .map__label { font-family: var(--font-body); }
.map__park { font-size: 11px; fill: #6E7F70; letter-spacing: .08em; }
.map__district { font-size: 34px; fill: rgba(6,78,59,.16); font-weight: 700; letter-spacing: .3em; font-family: var(--font-display); }
.map__label { font-size: 16px; fill: var(--emerald); font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.map__pulse { fill: rgba(183,160,106,.35); transform-box: fill-box; transform-origin: center; animation: ping 2.6s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

@media (min-width: 900px) {
  .visit__grid { grid-template-columns: repeat(12, 1fr); }
  .visit__head { grid-column: 1 / 6; }
  .visit__info { grid-column: 1 / 6; grid-row: 2; grid-template-columns: 1fr 1fr; }
  .visit__info .visit__block:nth-child(2) { grid-row: span 2; }
  .map { grid-column: 7 / 13; grid-row: 1 / 3; align-self: center; }
}

/* RESERVE CTA */
.reserve-cta { padding-block: var(--section); text-align: center; position: relative; overflow: hidden; }
.reserve-cta::before { /* slow-breathing emerald glow */
  content: ""; position: absolute; inset: 10% 15%; z-index: -1;
  background: radial-gradient(closest-side, rgba(46,168,100,.22), transparent);
  filter: blur(40px); animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }
.reserve-cta__inner { display: grid; justify-items: center; gap: clamp(28px, 4vw, 56px); }

/* FOOTER */
.footer { background: var(--emerald-950); overflow: hidden; }
.footer__band { display: grid; }
.footer__brand { background: var(--emerald); padding: 2.4rem var(--gutter); display: flex; align-items: center; gap: 1.2rem; }
.footer__mono { width: 34px; aspect-ratio: 455 / 976; --logo-green: var(--cream); }
.footer__brand p { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; line-height: 1.2; }
.footer__brand p span { font-family: var(--font-body); font-weight: 300; text-transform: none; letter-spacing: .1em; color: var(--gold); font-size: var(--fs-sm); }
.footer__links { background: var(--terracotta-deep); padding: 2.4rem var(--gutter); display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; align-items: center;
  font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; font-weight: 400; }
.footer__social { background: var(--terracotta-deep); padding: 0 var(--gutter) 2.4rem; display: flex; align-items: center; gap: 1.2rem; }
.footer__social .label { color: var(--cream); margin-right: .4rem; }
.social { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(244,239,228,.35); border-radius: 50%; transition: background .4s, border-color .4s; }
.social svg { width: 18px; height: 18px; fill: none; stroke: var(--cream); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.social .fill { fill: var(--cream); stroke: none; }
.social:hover { background: var(--emerald-950); border-color: var(--emerald-950); }
@media (min-width: 900px) {
  .footer__band { grid-template-columns: auto 1fr auto; }
  .footer__brand { padding-right: 4rem; }
  .footer__social { padding: 2.4rem var(--gutter) 2.4rem 2rem; border-left: 1px solid rgba(244,239,228,.2); }
}
.footer__giant { padding: clamp(40px, 6vw, 96px) var(--gutter) 0; }
.footer__wordmark {
  display: block; width: 100%; aspect-ratio: 1480 / 305;
  --logo-green: var(--emerald);
  /* rises into place as the footer enters (see main.js) */
  transform: translateY(calc((1 - var(--p, 1)) * 30%));
}
.footer__legal { padding-block: 1.6rem max(1.6rem, env(safe-area-inset-bottom)); font-size: var(--fs-xs); color: var(--cream-dim); letter-spacing: .08em; }

/* 12. DRAWER (reservation dialog) ------------------------------------------ */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(520px, 100vw); max-width: 100vw;
  padding: 0; border: 0; background: var(--emerald-950); color: var(--cream);
  transform: translateX(100%); transition: transform .8s var(--ease-out), overlay .8s allow-discrete, display .8s allow-discrete;
}
.drawer[open] { transform: none; }
@starting-style { .drawer[open] { transform: translateX(100%); } }
.drawer::backdrop { background: rgba(2,31,24,.6); backdrop-filter: blur(6px); }
.drawer__form { display: grid; gap: 1.4rem; padding: clamp(24px, 4vw, 48px); padding-top: max(clamp(24px, 4vw, 48px), env(safe-area-inset-top)); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.drawer__head h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: var(--fs-lg); letter-spacing: 0; }
.drawer__close { width: 44px; height: 44px; font-size: 1.8rem; line-height: 1; color: var(--gold); transition: transform .5s var(--ease-out); }
.drawer__close:hover { transform: rotate(90deg); }
.field-group { border: 0; padding: 0; margin: 0; }
.field-group legend, .field > span { display: block; font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; font-weight: 400; }
.field small { text-transform: none; letter-spacing: 0; color: var(--cream-dim); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 0; background: transparent; border: 0; border-bottom: 1px solid rgba(244,239,228,.25);
  border-radius: 0; color-scheme: dark; transition: border-color .4s;
}
.field select option { background: var(--emerald-950); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(201,194,178,.6); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .6em 1.1em; border: 1px solid rgba(244,239,228,.25); border-radius: 100px; font-size: var(--fs-sm); cursor: pointer; transition: all .4s var(--ease-out); }
.chip input:checked + span { background: var(--gold); color: var(--emerald-950); border-color: var(--gold); }
.chip input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 3px; }
.stepper { display: inline-flex; align-items: center; gap: 1.2rem; border: 1px solid rgba(244,239,228,.25); border-radius: 100px; padding: .2rem; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem; transition: background .3s; }
.stepper button:hover { background: rgba(183,160,106,.2); }
.stepper output { min-width: 2ch; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); }
.drawer__note { min-height: 1.5em; font-size: var(--fs-sm); color: var(--gold); }

/* PRELOADER CURTAIN -------------------------------------------------------- */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 2rem;
  background: var(--emerald-950);
  transition: clip-path 1.2s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
body.is-ready .curtain { clip-path: inset(0 0 100% 0); pointer-events: none; }
.curtain__mark { width: clamp(56px, 7vw, 96px); aspect-ratio: 455 / 976; --logo-green: var(--cream);
  animation: mark-in 1.4s var(--ease-out) both; }
@keyframes mark-in { from { opacity: 0; transform: translateY(18px); clip-path: inset(100% 0 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.curtain__line { display: flex; gap: 1.6rem; font-size: var(--fs-xs); letter-spacing: .3em; text-transform: uppercase; color: var(--cream-dim); }
.curtain__count { color: var(--gold); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: center; }

/* CUSTOM CURSOR (enabled by JS only for fine pointers) ---------------------- */
.cursor { display: none; }
.has-cursor .cursor {
  display: grid; place-items: center;
  position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--gold); mix-blend-mode: normal;
  transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out), background .4s;
}
.has-cursor .cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--cream); }
.cursor__label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--emerald-950); opacity: 0; transition: opacity .3s; }
.cursor.is-label .cursor__label { opacity: 1; }
.has-cursor .cursor.is-hover { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(183,160,106,.25); }

/* SCROLL REVEALS ------------------------------------------------------------ */
/* Only hide content when JS is running, so no-JS users always see everything */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(18% 0 0 0); transition: clip-path 1.4s var(--ease-out); }
.js [data-reveal="clip"] img { transform: scale(1.2); transition: transform 1.8s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="clip"].is-in img { transform: scale(1.04); }
.js .tile--image[data-reveal="clip"].is-in:hover img { transform: scale(1.1); }

/* REDUCED MOTION: keep the design, drop the movement ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js [data-reveal="clip"], .js [data-reveal="clip"] img { opacity: 1; transform: none; clip-path: none; }
  .line > span { transform: none; }
  .manifesto .w { color: var(--cream); }
  .bar__badge { animation: none; }
}
