/* ==========================================================================
   LA CATRINA — "LA NOCHE FLORECE"
   Design system & every component. Table of contents:
     01 fonts        02 tokens       03 base         04 utilities
     05 grain        06 preloader    07 page veil    08 cursor
     09 header       10 nav overlay  11 hero         12 intro
     13 mesa (dishes)14 sizzle       15 story        16 drinks
     17 pizarra      18 voces        19 visit        20 reserve+modal
     21 footer       22 action bar   23 menu page    24 about page
     25 visit page   26 a11y/motion  27 print
   ========================================================================== */

/* 01 — FONTS ------------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-normal-var-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic-var-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-normal-var-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* 02 — TOKENS ------------------------------------------------------------ */
:root {
  /* palette — la noche florece */
  --night: #1a0b10;
  --midnight: #140810;
  --noche: #260d16;
  --wine: #411520;
  --ember: #17090c;
  --red: #a8212c;
  --chili: #d5452f;
  --marigold: #e99b28;
  --sun: #f2c14e;
  --bone: #f4eadb;
  --paper: #eadcc3;
  --agave: #2e5247;
  --brass: #b99757;
  --ink: #221216;

  /* type */
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(3.2rem, 12.5vw, 14.5rem);
  --fs-h1: clamp(2.7rem, 7.4vw, 7.6rem);
  --fs-h2: clamp(2.1rem, 5vw, 4.8rem);
  --fs-h3: clamp(1.35rem, 2.4vw, 2.1rem);
  --fs-body: clamp(1rem, 0.4vw + 0.9rem, 1.14rem);
  --fs-cap: 0.72rem;

  /* rhythm */
  --gut: clamp(18px, 4vw, 64px);
  --sect: clamp(96px, 16vh, 190px);
  --max: 1720px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;

  /* theme (morphs as you scroll — see [data-theme] below) */
  --bg: var(--night);
  --fg: var(--bone);
  --accent: var(--marigold);
}

/* dusk→night backdrop morph (background only — each section pins its own
   foreground below, so text never rides the cross-fade) */
body[data-theme="dusk"]     { --bg: #1e0c11; --fg: var(--bone); }
body[data-theme="paper"]    { --bg: var(--paper); --fg: var(--ink); }
body[data-theme="bone"]     { --bg: var(--bone); --fg: var(--ink); }
body[data-theme="wine"]     { --bg: var(--wine); --fg: var(--bone); }
body[data-theme="ember"]    { --bg: var(--ember); --fg: var(--bone); }
body[data-theme="noche"]    { --bg: var(--noche); --fg: var(--bone); }
body[data-theme="midnight"] { --bg: var(--midnight); --fg: var(--bone); }

/* a section's text & accents belong to ITS theme, not the body's current one.
   Light sections also paint their OWN background — printed pages laid over the
   night — so ink text never sits on a mid-morph dark backdrop. */
[data-theme-sect="dusk"], [data-theme-sect="wine"], [data-theme-sect="ember"],
[data-theme-sect="noche"], [data-theme-sect="midnight"] {
  color: var(--bone); --accent: var(--marigold);
}
[data-theme-sect="paper"], [data-theme-sect="bone"] {
  color: var(--ink); --accent: var(--red);
}
[data-theme-sect="paper"] { background-color: var(--paper); }
[data-theme-sect="bone"] { background-color: var(--bone); }

/* 03 — BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--red) var(--night);
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  font-weight: 380;
  line-height: 1.55;
  transition: background-color 0.55s var(--ease-io), color 0.55s var(--ease-io);
  overflow-x: clip;
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 480; line-height: 0.98; letter-spacing: -0.015em; }
::selection { background: var(--marigold); color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; border-radius: 2px; }
main { display: block; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 300;
  background: var(--marigold); color: var(--ink);
  padding: 10px 18px; font-weight: 600; font-size: 0.85rem;
  transition: top 0.2s;
}
.skip-link:focus-visible { top: 14px; }

/* 04 — UTILITIES ---------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 28px); }

.eyebrow {
  font-family: var(--f-sans); font-size: var(--fs-cap); font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.9em;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--bare::before { display: none; }

.v-label {
  position: absolute; z-index: 3;
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: var(--fs-cap); font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase;
  opacity: 0.55; pointer-events: none;
}

.display { font-family: var(--f-display); font-variation-settings: "opsz" 144; }
.fx-it {
  font-style: italic; font-weight: 420;
  font-variation-settings: "opsz" 144, "WONK" 1;
  color: var(--accent);
  letter-spacing: 0;
}
.small { font-size: 0.85rem; opacity: 0.75; }

/* buttons — papel-cut corners */
.btn {
  --btn-bg: var(--marigold); --btn-fg: #241203;
  display: inline-flex; align-items: center; gap: 0.6em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--f-sans); font-weight: 640; font-size: 0.86rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.05em 1.9em;
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.35s var(--ease), background-color 0.35s, color 0.35s;
  will-change: transform;
}
.btn:hover { background: var(--sun); }
.btn:active { transform: scale(0.97); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 55%, transparent);
}
.btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn--red { --btn-bg: var(--red); --btn-fg: var(--bone); }
.btn--red:hover { background: var(--chili); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* text link w/ growing underline */
.tlink {
  position: relative; text-decoration: none; font-weight: 560;
  letter-spacing: 0.06em; padding-bottom: 3px;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0.35); transform-origin: left;
  transition: transform 0.45s var(--ease); opacity: 0.8;
}
.tlink:hover::after, .tlink:focus-visible::after { transform: scaleX(1); }

/* masked line reveals — JS adds .is-in */
.rv .ln { display: block; overflow: hidden; }
.rv .ln > span {
  display: block; transform: translateY(112%) rotate(0.6deg);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: transform;
}
.rv.is-in .ln > span { transform: none; }

.fade { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.fade.is-in { opacity: 1; transform: none; }

.img-reveal { overflow: hidden; }
.img-reveal > img { transform: scale(1.14); transition: transform 1.3s var(--ease); will-change: transform; }
.img-reveal.is-in > img { transform: scale(1.02); }

/* marigold glyph */
.glyph { width: 22px; height: 22px; color: var(--marigold); flex: none; }
.glyph--spin { animation: glyphspin 14s linear infinite; }
@keyframes glyphspin { to { transform: rotate(360deg); } }

/* 05 — GRAIN -------------------------------------------------------------- */
.grain {
  position: fixed; inset: -60px; z-index: 250; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045; mix-blend-mode: overlay;
}

/* 06 — PRELOADER ----------------------------------------------------------- */
html:not(.with-loader) .loader { display: none; }
.loader {
  position: fixed; inset: 0; z-index: 400;
  background: var(--noche); color: var(--bone);
  display: grid; place-items: center;
  transition: transform 0.7s var(--ease-io);
}
.loader.is-done { transform: translateY(-101%); }
.loader[hidden] { display: none; }
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__glyph { width: 46px; height: 46px; color: var(--marigold); }
.loader__glyph .petal {
  transform-origin: 24px 24px; transform: scale(0.1) rotate(-20deg); opacity: 0;
  animation: bloom 0.9s var(--ease) forwards;
  animation-delay: calc(var(--p) * 70ms + 120ms);
}
@keyframes bloom { to { transform: none; opacity: 1; } }
.loader__word { overflow: hidden; }
.loader__word span {
  display: block; font-family: var(--f-display); font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  letter-spacing: 0.34em; text-indent: 0.34em; font-weight: 460;
  transform: translateY(110%); animation: wordup 0.8s var(--ease) 0.55s forwards;
}
@keyframes wordup { to { transform: none; } }
.loader__sub {
  font-size: var(--fs-cap); letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--marigold); opacity: 0; animation: fadein 0.6s 1s forwards;
}
@keyframes fadein { to { opacity: 0.9; } }

/* 07 — PAGE VEIL (papel picado transitions) -------------------------------- */
.veil {
  position: fixed; inset: 0 0 -30px 0; z-index: 380; pointer-events: none;
  background: var(--red);
  transform: translateY(-110%);
}
.veil::after {
  /* papel picado fringe on the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28'%3E%3Cpath fill='%23a8212c' fill-rule='evenodd' d='M0 0h56v6H42L28 24 14 6H0zM28 2l3 3-3 3-3-3z'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 56px 28px;
  transform: translateY(100%);
}
.veil::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--marigold);
}
.veil.is-in { transform: translateY(0); transition: transform 0.55s var(--ease-io); }
.veil.is-out { transform: translateY(-110%); transition: transform 0.6s var(--ease-io) 0.05s; }
.veil.is-cover { transform: translateY(0); transition: none; }

/* 08 — CURSOR -------------------------------------------------------------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; z-index: 390; top: 0; left: 0;
    pointer-events: none; will-change: transform;
  }
  .cursor__dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--marigold);
    translate: -50% -50%;
    transition: scale 0.25s var(--ease), opacity 0.25s;
  }
  .cursor__label {
    position: absolute; top: 14px; left: 50%; translate: -50% 0;
    background: var(--bone); color: var(--ink);
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
    padding: 5px 10px 4px; border-radius: 2px;
    opacity: 0; scale: 0.8; transition: opacity 0.25s, scale 0.25s var(--ease);
    white-space: nowrap;
  }
  .cursor.has-label .cursor__dot { scale: 2.1; opacity: 0.9; }
  .cursor.has-label .cursor__label { opacity: 1; scale: 1; }
  .cursor.is-down .cursor__dot { scale: 1.6; }
  .cursor.is-hidden { opacity: 0; }
}

/* 09 — HEADER -------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: clamp(14px, 2.4vh, 26px) var(--gut);
  transition: padding 0.45s var(--ease), background-color 0.45s, backdrop-filter 0.45s;
  color: var(--bone);
}
.header.on-light { color: var(--ink); }
.header.is-scrolled {
  padding-block: 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
}
.header__left { display: flex; align-items: center; gap: 14px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; cursor: pointer; color: inherit;
  font-size: var(--fs-cap); font-weight: 650; letter-spacing: 0.3em; text-transform: uppercase;
}
.menu-btn__disc {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  display: grid; place-items: center;
  transition: background-color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.menu-btn:hover .menu-btn__disc { background: var(--marigold); border-color: var(--marigold); color: var(--ink); transform: scale(1.06); }
.menu-btn__disc i, .menu-btn__disc i::before, .menu-btn__disc i::after {
  content: ""; display: block; width: 16px; height: 1.6px; background: currentColor; position: relative;
  transition: transform 0.3s var(--ease), width 0.3s;
}
.menu-btn__disc i::before { position: absolute; top: -5px; left: 0; }
.menu-btn__disc i::after { position: absolute; top: 5px; left: 0; width: 10px; }
.brand {
  font-family: var(--f-display); font-weight: 540; letter-spacing: 0.16em;
  font-size: clamp(1rem, 1.6vw, 1.3rem); text-transform: uppercase;
  text-decoration: none; text-align: center; white-space: nowrap;
}
.brand .fx-it { text-transform: none; letter-spacing: 0.02em; }
.header__right { display: flex; justify-content: flex-end; align-items: center; gap: clamp(10px, 2vw, 26px); }
.header__phone { font-size: 0.85rem; font-weight: 560; letter-spacing: 0.08em; text-decoration: none; opacity: 0.9; }
.header__phone:hover { color: var(--marigold); opacity: 1; }
.btn--sm { padding: 0.8em 1.4em; font-size: 0.74rem; }
@media (max-width: 720px) {
  .header { grid-template-columns: auto 1fr auto; }
  .header__phone { display: none; }
  .menu-btn__label { display: none; }
}
@media (max-width: 560px) {
  /* the bottom action bar carries Reserve on phones */
  .header .btn--sm { display: none; }
  .brand { font-size: 0.92rem; letter-spacing: 0.12em; }
}

/* 10 — NAV OVERLAY ---------------------------------------------------------- */
.nav {
  position: fixed; inset: 0; z-index: 360;
  background: var(--midnight); color: var(--bone);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.65s var(--ease-io), visibility 0s 0.65s;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(16px, 3vh, 30px) var(--gut);
  overflow: hidden auto;
}
.nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.65s var(--ease-io); }
.nav::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22'%3E%3Cpath fill='%23a8212c' fill-rule='evenodd' d='M0 0h44v5H33L22 19 11 5H0zm22 1.5 2.4 2.4L22 6.3l-2.4-2.4z'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 44px 22px; opacity: 0.9;
}
.nav__top { display: flex; justify-content: space-between; align-items: center; }
.nav__brand { font-family: var(--f-display); letter-spacing: 0.2em; font-size: 0.95rem; }
.nav-close {
  background: none; border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  color: inherit; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 0; transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.nav-close::before { content: "✕"; font-size: 15px; }
.nav-close:hover { background: var(--marigold); color: var(--ink); border-color: var(--marigold); transform: rotate(90deg); }

.nav__body {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--gut);
  align-items: center; min-height: 0;
}
.nav__list { list-style: none; padding: 0; display: grid; gap: clamp(2px, 1vh, 10px); align-content: center; }
button.nav__link { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: inherit; }
.nav__link {
  position: relative; display: inline-flex; align-items: baseline; gap: 18px;
  font-family: var(--f-display); font-weight: 460;
  font-size: clamp(2.1rem, 6.2vh, 4.6rem); line-height: 1.06;
  text-decoration: none; width: fit-content;
  transition: color 0.3s;
}
.nav__link .no {
  font-family: var(--f-sans); font-size: var(--fs-cap); font-weight: 600;
  letter-spacing: 0.3em; color: var(--marigold); translate: 0 -1.4em;
}
.nav__link .des {
  position: absolute; left: 64px; bottom: -0.78em;
  font-family: var(--f-sans); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; translate: 0 4px; transition: opacity 0.3s, translate 0.3s var(--ease);
  color: var(--brass); white-space: nowrap;
}
.nav__link:hover, .nav__link:focus-visible { color: var(--marigold); }
.nav__link:hover .des, .nav__link:focus-visible .des { opacity: 1; translate: 0 0; }
.nav__item { overflow: hidden; }
.nav__item > * { display: inline-block; transform: translateY(115%); transition: transform 0.7s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.nav.is-open .nav__item > * { transform: none; }

.nav__fig {
  position: relative; aspect-ratio: 3 / 3.8; max-height: 62vh; margin-left: auto;
  width: min(100%, 420px); overflow: hidden;
  opacity: 0; scale: 0.96; transition: opacity 0.6s 0.25s, scale 0.8s var(--ease) 0.25s;
}
.nav.is-open .nav__fig { opacity: 1; scale: 1; }
.nav__fig img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.45s var(--ease-io);
}
.nav__fig .nav__fig-logo {
  object-fit: contain; background: var(--bone); padding: 12%;
}
.nav__fig img.is-active { opacity: 1; }
.nav__fig::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bone) 25%, transparent);
}
.nav__foot {
  display: flex; flex-wrap: wrap; gap: 12px 34px; align-items: center;
  font-size: 0.8rem; opacity: 0.85; padding-top: 14px;
}
.nav__foot a { text-decoration: none; }
.nav__foot a:hover { color: var(--marigold); }
@media (max-width: 900px) {
  .nav__body { grid-template-columns: 1fr; }
  .nav__fig { display: none; }
  .nav__link { font-size: clamp(2rem, 7.5vh, 3.4rem); }
}

/* 11 — HERO ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: minmax(0, 1fr) auto;
  isolation: isolate; overflow: clip;
  padding: clamp(70px, 11vh, 120px) var(--gut) clamp(52px, 8vh, 80px);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 8, 14, 0.72) 0%, rgba(20, 8, 14, 0.22) 36%, rgba(26, 11, 16, 0.3) 62%, rgba(26, 11, 16, 0.94) 100%),
    radial-gradient(120% 70% at 50% 108%, rgba(233, 155, 40, 0.16), transparent 55%);
}
.hero__veil { position: absolute; inset: 0; z-index: 3; background: var(--night); opacity: 0; pointer-events: none; }

.hero__word {
  position: absolute; z-index: 1; left: 50%; top: clamp(150px, 20.5vh, 216px);
  translate: -50%; width: max-content; display: flex; gap: 0.22em;
  font-family: var(--f-display); font-variation-settings: "opsz" 144;
  font-weight: 480; font-size: var(--fs-hero); line-height: 0.9;
  letter-spacing: -0.03em; color: var(--bone);
  text-shadow: 0 2px 60px rgba(20, 8, 14, 0.45);
  pointer-events: none; white-space: nowrap;
}
.hero__word em { font-style: normal; }
.hero__word .w1, .hero__word .w2 { display: inline-block; will-change: transform; }

.hero__arch {
  position: relative; z-index: 2;
  align-self: end; justify-self: center;
  height: min(52svh, 470px);
  min-height: 240px;
  aspect-ratio: 1 / 1.3;
  margin-top: clamp(110px, 17vh, 190px);
  border-radius: 999px 999px 6px 6px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(244, 234, 219, 0.22);
  will-change: transform;
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__arch::after {
  content: ""; position: absolute; inset: 10px;
  border-radius: inherit; border: 1px solid rgba(244, 234, 219, 0.35);
  pointer-events: none;
}

.hero__foot {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end;
  margin-top: clamp(20px, 4vh, 44px);
}
.hero__claim {
  font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.7rem);
  font-weight: 430; line-height: 1.1; max-width: 14em; letter-spacing: -0.01em;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.hero__loc {
  position: absolute; left: var(--gut); top: clamp(96px, 16vh, 170px);
  font-size: var(--fs-cap); letter-spacing: 0.4em; text-transform: uppercase; opacity: 0.7;
  writing-mode: vertical-rl; z-index: 4;
}
.scroll-cue {
  position: absolute; z-index: 4; left: 50%; bottom: clamp(18px, 3.5vh, 40px); translate: -50%;
  display: grid; justify-items: center; gap: 8px;
  font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase; opacity: 0.75;
}
.scroll-cue .glyph { animation: glyphspin 10s linear infinite; }
@media (max-width: 720px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__cta { justify-content: flex-start; }
  .hero__loc { display: none; }
  .hero__word { top: clamp(148px, 19vh, 190px); }
  .scroll-cue { display: none; }
}

/* brand crest — the door-sign Catrina, mounted on a bone nicho chip
   (the source art is white-backed, so it multiply-blends into light surfaces) */
.crest {
  background: var(--bone);
  border-radius: 999px 999px 8px 8px;
  padding: 9px 9px 12px;
  box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(34, 18, 22, 0.1);
}
.crest img { mix-blend-mode: multiply; width: 100%; }
.hero__crest {
  position: absolute; z-index: 4; left: 50%; translate: -50%;
  top: clamp(62px, 8.6vh, 96px);
  width: clamp(72px, 7.6vw, 112px);
}
@media (max-width: 720px) { .hero__crest { top: 70px; width: 66px; } }

/* petals */
.petals { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; width: 16px; height: 26px; color: var(--marigold);
  opacity: 0; top: -30px;
  animation: drift var(--t, 13s) linear infinite; animation-delay: var(--d, 0s);
  will-change: transform, opacity;
}
@keyframes drift {
  0%   { transform: translate3d(0, -4vh, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.85; }
  60%  { opacity: 0.7; }
  100% { transform: translate3d(var(--x, 6vw), 106vh, 0) rotate(var(--r, 300deg)); opacity: 0; }
}

/* 12 — INTRO ------------------------------------------------------------------ */
.intro { position: relative; padding: var(--sect) 0 calc(var(--sect) * 0.8); }
.intro__stamp {
  position: absolute; right: clamp(20px, 7vw, 130px); top: clamp(80px, 12vh, 150px);
  width: clamp(110px, 12vw, 180px);
  mix-blend-mode: multiply; rotate: -6deg; opacity: 0.92;
}
@media (max-width: 900px) { .intro__stamp { display: none; } }
.intro__head { font-size: var(--fs-h1); font-weight: 470; letter-spacing: -0.02em; max-width: 11em; }
.intro__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 32px); margin-top: clamp(40px, 7vh, 84px); align-items: start; }
.intro__copy { grid-column: 2 / span 4; max-width: 34em; display: grid; gap: 1.1em; }
.intro__copy strong { font-weight: 640; }
.intro__fig { grid-column: 7 / span 5; rotate: 2.4deg; transition: rotate 0.1s linear; box-shadow: 0 30px 70px -34px rgba(34, 18, 22, 0.55); }
.intro__fig figcaption { font-size: var(--fs-cap); letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.74; padding-top: 12px; }
.intro__sign { grid-column: 2 / span 4; margin-top: 3em; }
@media (max-width: 900px) {
  .intro__copy { grid-column: 1 / -1; }
  .intro__fig { grid-column: 1 / -1; rotate: 1.6deg; }
  .intro__sign { grid-column: 1 / -1; }
}

/* 13 — LA MESA (signature dishes) --------------------------------------------- */
.mesa { position: relative; }
.mesa__head { padding: 0 0 clamp(30px, 6vh, 70px); }
.mesa__title { font-size: var(--fs-h2); font-weight: 470; }
.mesa__rail { height: calc(var(--mesa-n, 6) * 88vh); position: relative; }
.mesa__stage { position: sticky; top: 0; height: 100svh; overflow: clip; display: grid; }
.mesa__media { position: absolute; inset: 0; }
.mesa__media figure {
  position: absolute; inset: 0; margin: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.85s var(--ease-io);
}
.mesa__media figure.is-active { clip-path: inset(0); z-index: 2; }
.mesa__media figure.was-active { clip-path: inset(0); z-index: 1; transition: none; }
.mesa__media img { width: 100%; height: 100%; object-fit: cover; }
.mesa__media figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(23, 9, 12, 0.05) 30%, rgba(23, 9, 12, 0.66) 100%);
}
.mesa__hud {
  position: relative; z-index: 5; align-self: end;
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 20px;
  padding: 0 var(--gut) clamp(24px, 5vh, 52px);
  color: var(--bone);
}
.mesa__no {
  font-family: var(--f-display); font-size: clamp(3.4rem, 9vw, 9rem); line-height: 0.8;
  font-weight: 380; color: var(--marigold); font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 0.12em;
}
.mesa__no .of { font-size: 0.22em; letter-spacing: 0.2em; opacity: 0.7; color: var(--bone); }
.mesa__txt { max-width: 34em; }
.mesa__name {
  font-family: var(--f-display); font-weight: 470; letter-spacing: -0.015em;
  font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: 1; margin-bottom: 0.25em;
  display: flex; flex-wrap: wrap; column-gap: 0.28em;
}
.mesa__name .wd { display: inline-flex; }
.mesa__name .ch { display: inline-block; overflow: hidden; }
.mesa__name .ch > span { display: inline-block; transform: translateY(115%); transition: transform 0.55s var(--ease); transition-delay: calc(var(--c) * 26ms); }
.mesa__name.is-in .ch > span { transform: none; }
.mesa__es { font-family: var(--f-display); font-style: italic; color: var(--sun); font-size: 1.05rem; letter-spacing: 0.04em; margin-bottom: 0.6em; display: block; }
.mesa__desc { max-width: 30em; opacity: 0.92; }
.mesa__cta { display: grid; gap: 10px; justify-items: end; }
.mesa__prog { display: flex; gap: 7px; }
.mesa__prog i { width: 22px; height: 2px; background: color-mix(in srgb, var(--bone) 30%, transparent); transition: background-color 0.3s; }
.mesa__prog i.on { background: var(--marigold); }

/* swipeable card track (mobile default; also the reduced-motion fallback) */
.mesa__track {
  display: none; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gut) 8px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mesa__track::-webkit-scrollbar { display: none; }
.mesa-card { scroll-snap-align: center; display: grid; gap: 14px; align-content: start; }
.mesa-card figure { aspect-ratio: 4 / 4.6; overflow: hidden; position: relative; }
.mesa-card img { width: 100%; height: 100%; object-fit: cover; }
.mesa-card .no { position: absolute; top: 10px; left: 12px; font-family: var(--f-display); font-size: 2rem; color: var(--bone); text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.mesa-card h3 { font-size: 1.5rem; }
.mesa-card p { font-size: 0.95rem; opacity: 0.9; }
.mesa__dots { display: none; gap: 8px; justify-content: center; padding-top: 18px; }
.mesa__dots i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--bone) 30%, transparent); transition: background-color .3s, scale .3s; }
.mesa__dots i.on { background: var(--marigold); scale: 1.25; }
@media (max-width: 899px) {
  .mesa__rail { display: none; }
  .mesa__track { display: grid; }
  .mesa__dots { display: flex; }
}
@media (min-width: 900px) {
  /* reduced-motion desktop: wider viewport → smaller cards */
  html.reduced .mesa__track { grid-auto-columns: 34%; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 900px) {
  .mesa__track { grid-auto-columns: 34%; }
}

/* 14 — SIZZLE ------------------------------------------------------------------ */
.sizzle { position: relative; padding: var(--sect) 0; overflow: clip; }
.sizzle__fig { position: relative; grid-column: 1 / -1; overflow: hidden; aspect-ratio: 16 / 8.4; }
.sizzle__fig img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.82) saturate(1.06); }
.sizzle__fig::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 90% at 50% 20%, transparent 40%, rgba(23, 9, 12, 0.55)); }
.steam { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s; }
.is-in .steam, .steam.is-on { opacity: 1; }
.steam i {
  position: absolute; bottom: 18%; left: var(--sx, 50%); width: 90px; height: 130px;
  background: radial-gradient(closest-side, rgba(244, 234, 219, 0.35), transparent 70%);
  filter: blur(14px); border-radius: 50%;
  animation: rise var(--st, 7s) ease-in-out infinite; animation-delay: var(--sd, 0s);
  will-change: transform, opacity; opacity: 0;
}
@keyframes rise {
  0%   { transform: translate3d(0, 10%, 0) scale(0.7); opacity: 0; }
  22%  { opacity: 0.55; }
  100% { transform: translate3d(var(--sw, 30px), -240%, 0) scale(1.6) rotate(8deg); opacity: 0; }
}
.sizzle__head {
  font-size: var(--fs-h1); font-weight: 470; letter-spacing: -0.02em;
  margin-top: clamp(-70px, -6vw, -130px); position: relative; z-index: 2;
  max-width: 9.5em;
}
.sizzle__row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-top: 2em; }
.sizzle__note { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; opacity: 0.75; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 720px) {
  .sizzle__fig { aspect-ratio: 4 / 3.4; }
  .sizzle__head { margin-top: -40px; }
  .sizzle__row { grid-template-columns: 1fr; }
}

/* 15 — STORY -------------------------------------------------------------------- */
.story { position: relative; padding: var(--sect) 0; }
.story__pull {
  font-family: var(--f-display); font-size: clamp(1.6rem, 3.4vw, 3.1rem);
  font-weight: 440; line-height: 1.18; letter-spacing: -0.01em;
  max-width: 24em;
}
.story__pull .fx-it { color: var(--red); }
.story__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.8vw, 30px); margin-top: clamp(46px, 8vh, 100px); }
.story__cell { position: relative; overflow: hidden; }
.story__cell figcaption {
  position: absolute; left: 12px; bottom: 10px; z-index: 2;
  background: color-mix(in srgb, var(--night) 72%, transparent); color: var(--bone);
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 7px 12px 6px; backdrop-filter: blur(4px);
}
.story__cell img { width: 100%; height: 100%; object-fit: cover; }
.story__cell:nth-child(1) { grid-column: 1 / span 7; aspect-ratio: 16 / 10; }
.story__cell:nth-child(2) { grid-column: 8 / span 5; aspect-ratio: 4 / 4.55; translate: 0 clamp(24px, 5vw, 70px); }
.story__cell:nth-child(3) { grid-column: 2 / span 5; aspect-ratio: 4 / 3; translate: 0 clamp(-6px, -1vw, -16px); }
.story__cell:nth-child(4) { grid-column: 8 / span 4; aspect-ratio: 3 / 3.6; translate: 0 clamp(30px, 6vw, 90px); }
.story__aside { grid-column: 2 / span 4; align-self: center; display: grid; gap: 1em; padding-block: clamp(30px, 6vw, 80px); }
@media (max-width: 900px) {
  .story__cell:nth-child(1) { grid-column: 1 / -1; }
  .story__cell:nth-child(2) { grid-column: 3 / -1; translate: 0; }
  .story__cell:nth-child(3) { grid-column: 1 / span 8; }
  .story__cell:nth-child(4) { grid-column: 5 / -1; translate: 0; }
  .story__aside { grid-column: 1 / -1; }
}
/* marigold line-art in margin */
.story__bloom { position: absolute; left: calc(var(--gut) * 0.35); top: 12%; height: 74%; width: 40px; color: var(--red); opacity: 0.5; }
.story__bloom path.stem { stroke-dasharray: 1200; stroke-dashoffset: calc(1200 - var(--draw, 0) * 1200); }
.story__bloom g.bl { transform-origin: center; transform: scale(0); transition: transform 0.7s var(--ease); }
.story__bloom g.bl.is-open { transform: scale(1); }
@media (max-width: 1100px) { .story__bloom { display: none; } }

/* 16 — DRINKS (drag gallery) ------------------------------------------------------ */
.drinks { position: relative; padding: var(--sect) 0; overflow: clip; }
.drinks__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: clamp(30px, 6vh, 64px); }
.drinks__title { font-size: var(--fs-h2); font-weight: 470; max-width: 8em; }
.drinks__nav { display: flex; gap: 10px; }
.drinks__nav button {
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: none; border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  color: inherit; display: grid; place-items: center;
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.drinks__nav button:hover { background: var(--marigold); color: var(--ink); border-color: var(--marigold); }
.drinks__nav button:active { transform: scale(0.94); }
.drinks__view { cursor: grab; }
.drinks__view.is-drag { cursor: grabbing; }
.drinks__track {
  display: flex; gap: clamp(14px, 2vw, 30px);
  padding: 0 var(--gut);
  will-change: transform;
}
.d-slide { flex: 0 0 clamp(250px, 30vw, 460px); }
.d-slide figure { position: relative; aspect-ratio: 3 / 3.9; overflow: hidden; }
.d-slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: scale 0.8s var(--ease); }
.d-slide:hover img { scale: 1.05; }
.d-slide figcaption {
  position: absolute; left: 12px; bottom: 10px; color: var(--bone);
  background: color-mix(in srgb, var(--night) 70%, transparent);
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; padding: 7px 12px 6px;
}
.d-slide--type {
  aspect-ratio: 3 / 3.9; display: grid; align-content: center; gap: 14px; padding: 9%;
  background: color-mix(in srgb, var(--bone) 5%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bone) 22%, transparent);
}
.d-slide--type h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 470; }
.d-slide--type .es { font-family: var(--f-display); font-style: italic; color: var(--marigold); font-size: 1.1rem; }
.d-slide--type p { opacity: 0.9; max-width: 22em; }
.d-slide--type .note { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.55; }
@media (max-width: 899px) {
  .drinks__view { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: default; }
  .drinks__view::-webkit-scrollbar { display: none; }
  .d-slide { scroll-snap-align: center; flex-basis: 76%; }
  .drinks__nav { display: none; }
}

/* 17 — LA PIZARRA (specials) ------------------------------------------------------- */
.pizarra { padding: 0 0 var(--sect); }
.pizarra__card {
  position: relative;
  background: var(--bone); color: var(--ink);
  padding: clamp(30px, 5vw, 64px) clamp(22px, 4.5vw, 60px) clamp(34px, 5vw, 64px);
  box-shadow: 0 34px 80px -40px rgba(0, 0, 0, 0.6);
}
.pizarra__card::before {
  content: ""; position: absolute; inset: auto 0 100% 0; height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cpath fill='%23f4eadb' fill-rule='evenodd' d='M0 20h40v-5H30L20 2 10 15H0z'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 40px 20px;
}
.pizarra__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 70px); align-items: start; }
.pizarra__label { writing-mode: vertical-rl; rotate: 180deg; font-size: var(--fs-cap); letter-spacing: 0.4em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.pizarra__list { display: grid; gap: clamp(20px, 3vw, 34px); }
.pizarra__item { display: grid; gap: 6px; max-width: 46em; }
.pizarra__item .eyebrow { color: var(--red); }
.pizarra__item h3 { font-size: var(--fs-h3); font-weight: 520; }
.pizarra__item p { opacity: 0.85; }
@media (max-width: 720px) {
  .pizarra__grid { grid-template-columns: 1fr; }
  .pizarra__label { writing-mode: horizontal-tb; rotate: none; }
}

/* 18 — VOCES (reviews marquee) ------------------------------------------------------ */
.voces { padding: 0 0 var(--sect); overflow: clip; }
.voces__mark { font-family: var(--f-display); font-size: clamp(4rem, 9vw, 9rem); line-height: 0.4; color: var(--red); translate: 0 0.28em; }
.voces__belt { display: flex; gap: 6vw; width: max-content; will-change: transform; padding-block: clamp(20px, 4vh, 40px); }
.voces__belt.is-anim { animation: belt 46s linear infinite; }
.voces__belt.is-anim:hover, .voces__belt.is-anim:focus-within { animation-play-state: paused; }
@keyframes belt { to { transform: translateX(-50%); } }
.voz { max-width: 34em; flex: none; }
.voz blockquote { margin: 0; font-family: var(--f-display); font-weight: 440; font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.28; }
.voz cite { display: block; margin-top: 14px; font-style: normal; font-size: var(--fs-cap); letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.6; }
.voces__sample { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.45; }

/* 19 — VISIT ------------------------------------------------------------------------- */
.visit { position: relative; padding: var(--sect) 0; }
.visit__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 32px); }
.visit__info { grid-column: 1 / span 6; display: grid; gap: clamp(22px, 4vh, 40px); align-content: start; }
.visit__addr { font-size: var(--fs-h2); font-weight: 470; line-height: 1.04; letter-spacing: -0.015em; }
.visit__addr a { text-decoration: none; }
.visit__addr a:hover .u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--marigold); }
.visit__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; max-width: 560px; }
.visit__meta h3 { font-family: var(--f-sans); font-size: var(--fs-cap); font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.visit__meta td { padding: 3px 0; }
.visit__meta td:first-child { padding-right: 18px; opacity: 0.75; }
.visit__meta table { border-collapse: collapse; font-size: 0.95rem; }
.visit__note { font-size: 0.8rem; opacity: 0.74; max-width: 30em; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__fig { grid-column: 8 / span 5; position: relative; }
.visit__fig figure { overflow: hidden; aspect-ratio: 3 / 3.6; }
.visit__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.visit__fig figcaption { font-size: var(--fs-cap); letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.74; padding-top: 12px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-size: 0.7rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  padding: 7px 13px 6px; border-radius: 999px; opacity: 0.85;
}
@media (max-width: 900px) {
  .visit__info { grid-column: 1 / -1; }
  .visit__fig { grid-column: 1 / -1; }
}

/* 20 — RESERVE + MODAL ------------------------------------------------------------------ */
.reserve { position: relative; min-height: 92svh; display: grid; align-items: center; overflow: clip; padding: var(--sect) 0; }
.reserve__bg { position: absolute; inset: 0; z-index: -1; }
.reserve__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; filter: saturate(0.92); }
.reserve__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 78%, rgba(233, 155, 40, 0.2), transparent 60%),
    linear-gradient(180deg, var(--midnight) 0%, transparent 30%, transparent 60%, var(--midnight) 100%);
}
.reserve__inner { text-align: center; display: grid; justify-items: center; gap: clamp(20px, 4vh, 36px); }
.reserve__title { font-size: var(--fs-h1); font-weight: 470; letter-spacing: -0.02em; max-width: 8.4em; }
.reserve__title .fx-it { color: var(--sun); }
.reserve__sub { max-width: 34em; opacity: 0.9; }
.reserve__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.candle { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 18px 6px rgba(242, 193, 78, 0.45); animation: flick 3.4s ease-in-out infinite; }
@keyframes flick { 0%, 100% { opacity: 0.85; } 40% { opacity: 1; } 55% { opacity: 0.7; } 70% { opacity: 0.95; } }

/* modal */
.rmodal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
.rmodal[open] { display: grid; place-items: center; }
.rmodal::backdrop { background: color-mix(in srgb, var(--midnight) 78%, transparent); backdrop-filter: blur(6px); }
.rmodal__panel {
  position: relative; width: min(94vw, 620px); max-height: min(92svh, 860px); overflow: auto;
  background: var(--bone); color: var(--ink);
  padding: clamp(26px, 4.5vw, 52px);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8);
}
.rmodal__panel::before {
  content: ""; position: sticky; top: calc(-1 * clamp(26px, 4.5vw, 52px)); display: block; height: 4px;
  margin: calc(-1 * clamp(26px, 4.5vw, 52px)) calc(-1 * clamp(26px, 4.5vw, 52px)) clamp(20px, 3vw, 34px);
  background: linear-gradient(90deg, var(--red), var(--marigold), var(--agave), var(--red));
}
.rmodal__close {
  position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(34, 18, 22, 0.25); background: none; cursor: pointer; font-size: 0;
  display: grid; place-items: center; transition: background-color 0.3s, transform 0.3s var(--ease);
}
.rmodal__close::before { content: "✕"; font-size: 14px; }
.rmodal__close:hover { background: var(--marigold); transform: rotate(90deg); }
.rmodal h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 500; padding-right: 44px; }
.rmodal .es { font-family: var(--f-display); font-style: italic; color: var(--red); }
.rmodal form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-top: 26px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-cap); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1.5px solid rgba(34, 18, 22, 0.35);
  background: transparent; padding: 9px 2px; border-radius: 0; -webkit-appearance: none; appearance: none;
  transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--red); }
.field.is-bad input, .field.is-bad select { border-color: var(--chili); }
.field .err { color: #a31414; font-size: 0.78rem; min-height: 1em; }
.rmodal__foot { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 8px; }
.rmodal__note { font-size: 0.8rem; opacity: 0.65; }
.rmodal__result { margin-top: 24px; display: grid; gap: 14px; }
.rmodal__result[hidden] { display: none; }
.sum {
  background: rgba(168, 33, 44, 0.07); border: 1px dashed rgba(168, 33, 44, 0.4);
  padding: 16px 18px; font-family: var(--f-display); font-size: 1.06rem; line-height: 1.5;
}
@media (max-width: 560px) { .rmodal form { grid-template-columns: 1fr; } }

/* 21 — FOOTER ------------------------------------------------------------------------------ */
.footer { position: relative; padding: calc(var(--sect) * 0.7) 0 110px; overflow: clip; }
.footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cpath fill='%23140810' fill-rule='evenodd' d='M0 0h48v6H36L24 22 12 6H0zm24 2 2.6 2.6L24 7.2l-2.6-2.6z'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 48px 24px;
  translate: 0 -100%;
}
.footer__word {
  font-family: var(--f-display); font-weight: 480; letter-spacing: -0.03em;
  font-size: clamp(3rem, 13.4vw, 15rem); line-height: 0.86; white-space: nowrap;
  color: color-mix(in srgb, var(--bone) 90%, transparent);
  display: flex; justify-content: space-between; align-items: baseline; gap: 4vw;
}
.footer__word .moon { width: clamp(34px, 5vw, 84px); height: clamp(34px, 5vw, 84px); flex: none; color: var(--sun); }
.moon .full { clip-path: inset(0 0 0 100%); transition: clip-path 1.4s var(--ease-io) 0.2s; }
.footer.is-in .moon .full { clip-path: inset(0); }
.footer__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px; margin-top: clamp(40px, 7vh, 90px);
  padding-top: 34px; border-top: 1px solid color-mix(in srgb, var(--bone) 18%, transparent);
}
.footer__cols h3 { font-family: var(--f-sans); font-size: var(--fs-cap); letter-spacing: 0.3em; text-transform: uppercase; color: var(--marigold); font-weight: 700; margin-bottom: 14px; }
.footer__cols ul { list-style: none; padding: 0; display: grid; gap: 9px; font-size: 0.94rem; }
.footer__cols a { text-decoration: none; opacity: 0.85; }
.footer__cols a:hover { opacity: 1; color: var(--marigold); }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between;
  margin-top: 60px; font-size: 0.76rem; opacity: 0.55;
}
.footer__legal a { text-decoration: none; }

/* 22 — MOBILE ACTION BAR --------------------------------------------------------------------- */
.mob-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 210; display: none;
  background: color-mix(in srgb, var(--midnight) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bone) 16%, transparent), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  border-radius: 14px; padding: 8px;
  transition: translate 0.4s var(--ease), opacity 0.4s;
}
.mob-bar.is-hidden { translate: 0 140%; opacity: 0; }
.mob-bar ul { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 0; }
.mob-bar a {
  display: grid; justify-items: center; gap: 4px; padding: 9px 4px 8px;
  color: var(--bone); text-decoration: none; font-size: 0.64rem; font-weight: 650;
  letter-spacing: 0.18em; text-transform: uppercase; border-radius: 9px;
}
.mob-bar a svg { width: 17px; height: 17px; }
.mob-bar a.is-hot { background: var(--marigold); color: var(--ink); }
@media (max-width: 899px) and (hover: none) { .mob-bar { display: block; } }
@media (max-width: 720px) { .mob-bar { display: block; } body { padding-bottom: 84px; } }

/* 23 — MENU PAGE ------------------------------------------------------------------------------ */
.mhero { padding: calc(clamp(70px, 12vh, 130px) + 40px) 0 clamp(30px, 6vh, 60px); }
.mhero h1 { font-size: var(--fs-h1); font-weight: 470; }
.mhero .es { display: block; font-size: 0.32em; font-style: italic; font-weight: 420; color: var(--red); letter-spacing: 0.02em; margin-top: 0.4em; }
.mhero__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.mhero__note { max-width: 30em; opacity: 0.8; font-size: 0.95rem; }
.mrail {
  position: sticky; top: 62px; z-index: 90;
  background: color-mix(in srgb, var(--bone) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-block: 1px solid rgba(34, 18, 22, 0.14);
}
.mrail ul {
  list-style: none; padding: 0; margin-inline: auto;
  width: min(100% - 2 * var(--gut), var(--max));
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.mrail ul::-webkit-scrollbar { display: none; }
.mrail button {
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 16px 14px 13px; border-bottom: 3px solid transparent; opacity: 0.6;
  transition: opacity 0.3s, border-color 0.3s;
}
.mrail button.is-on { opacity: 1; border-color: var(--red); color: var(--red); }
.mcat { padding: clamp(44px, 8vh, 90px) 0 10px; scroll-margin-top: 128px; }
.mcat__head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.mcat__head h2 { font-size: var(--fs-h2); font-weight: 480; }
.mcat__head .es { font-family: var(--f-display); font-style: italic; color: var(--red); font-size: clamp(1.1rem, 2vw, 1.5rem); }
.mcat__intro { opacity: 0.7; margin-bottom: 10px; }
.mitems { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px clamp(24px, 4vw, 72px); margin-top: 26px; }
.mitem { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; padding: 16px 0; border-bottom: 1px solid rgba(34, 18, 22, 0.15); align-content: start; }
.mitem h3 { font-size: 1.22rem; font-weight: 540; font-family: var(--f-display); letter-spacing: 0; }
.mitem .price { font-family: var(--f-display); font-size: 1.06rem; color: var(--red); font-weight: 560; white-space: nowrap; }
.mitem p { grid-column: 1 / -1; font-size: 0.92rem; opacity: 0.78; max-width: 34em; }
.mitem .note { grid-column: 1 / -1; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--agave); font-weight: 700; }
.mitem--photo { grid-template-columns: 86px 1fr auto; }
.mitem--photo .ph { grid-row: span 3; width: 86px; height: 86px; object-fit: cover; border-radius: 3px; }
.mitem--photo p, .mitem--photo .note { grid-column: 2 / -1; }
.menu-foot { padding: clamp(50px, 9vh, 110px) 0; display: grid; gap: 26px; }
.menu-foot .advisory { font-size: 0.8rem; opacity: 0.6; max-width: 52em; }
.menu-foot__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .mitems { grid-template-columns: 1fr; } }

/* 24 — ABOUT PAGE ------------------------------------------------------------------------------ */
.ahero { padding: calc(clamp(70px, 12vh, 130px) + 40px) 0 clamp(36px, 7vh, 80px); }
.ahero h1 { font-size: var(--fs-h1); font-weight: 470; max-width: 9em; }
.ahero p { max-width: 36em; margin-top: 1.4em; }
.asplit { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 32px); padding: clamp(30px, 6vh, 80px) 0; align-items: center; }
.asplit__fig { grid-column: 1 / span 6; overflow: hidden; }
.asplit__fig img { width: 100%; height: auto; }
.asplit__txt { grid-column: 8 / span 4; display: grid; gap: 1.1em; }
.asplit--flip .asplit__fig { grid-column: 7 / span 6; order: 2; }
.asplit--flip .asplit__txt { grid-column: 2 / span 4; order: 1; }
.asplit h2 { font-size: var(--fs-h2); font-weight: 480; letter-spacing: -0.015em; }
.placeholder-block {
  border: 1.5px dashed color-mix(in srgb, currentColor 35%, transparent);
  padding: clamp(20px, 3vw, 34px); display: grid; gap: 10px;
  background: color-mix(in srgb, currentColor 4%, transparent);
}
.placeholder-block .tag { font-size: 0.66rem; font-weight: 750; letter-spacing: 0.26em; text-transform: uppercase; color: var(--red); }
.placeholder-block p { opacity: 0.75; font-size: 0.95rem; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 30px); padding: clamp(30px, 6vh, 80px) 0; }
.trio article { border-top: 2px solid var(--red); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.trio h3 { font-size: var(--fs-h3); font-weight: 500; }
.trio p { font-size: 0.95rem; opacity: 0.85; }
@media (max-width: 900px) {
  .asplit__fig, .asplit--flip .asplit__fig { grid-column: 1 / -1; order: 0; }
  .asplit__txt, .asplit--flip .asplit__txt { grid-column: 1 / -1; order: 1; }
  .trio { grid-template-columns: 1fr; }
}

/* 25 — VISIT PAGE ------------------------------------------------------------------------------- */
.vhero { padding: calc(clamp(70px, 12vh, 130px) + 40px) 0 clamp(30px, 6vh, 70px); }
.vhero h1 { font-size: var(--fs-h1); font-weight: 470; }
.vcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(14px, 1.8vw, 26px); padding-bottom: clamp(40px, 8vh, 100px); }
.vcard {
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  padding: clamp(20px, 3vw, 34px); display: grid; gap: 12px; align-content: start;
  text-decoration: none; transition: background-color 0.35s, translate 0.35s var(--ease);
}
a.vcard:hover { background: color-mix(in srgb, currentColor 6%, transparent); translate: 0 -4px; }
.vcard h3 { font-size: var(--fs-h3); font-weight: 500; }
.vcard .cap { font-size: var(--fs-cap); letter-spacing: 0.3em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.vcard p { font-size: 0.92rem; opacity: 0.8; }

/* 26 — ACCESSIBILITY & REDUCED MOTION ------------------------------------------------------------ */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
noscript .noscript-note { display: block; padding: 18px var(--gut); background: var(--marigold); color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .loader, .veil, .cursor, .petals, .steam, .scroll-cue .glyph { display: none !important; }
  .rv .ln > span, .fade, .img-reveal > img, .mesa__name .ch > span { transform: none !important; opacity: 1 !important; }
  .voces__belt.is-anim { animation: none; flex-wrap: wrap; width: auto; }
  /* the pinned tasting sequence becomes a plain scrollable card row —
     every dish stays reachable without scroll-driven state */
  .mesa__rail { display: none !important; }
  .mesa__track { display: grid !important; }
  .mesa__dots { display: flex !important; }
  body { transition: none; }
}
/* same rules when reduced motion is forced via ?reduced (JS adds .reduced) */
html.reduced { scroll-behavior: auto; }
html.reduced *, html.reduced *::before, html.reduced *::after {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
}
html.reduced .loader, html.reduced .veil, html.reduced .cursor, html.reduced .petals,
html.reduced .steam, html.reduced .scroll-cue .glyph { display: none !important; }
html.reduced .rv .ln > span, html.reduced .fade, html.reduced .img-reveal > img,
html.reduced .mesa__name .ch > span { transform: none !important; opacity: 1 !important; }
html.reduced .voces__belt.is-anim { animation: none; flex-wrap: wrap; width: auto; }
html.reduced .mesa__rail { display: none !important; }
html.reduced .mesa__track { display: grid !important; }
html.reduced .mesa__dots { display: flex !important; }
html.reduced body { transition: none; }

/* 27 — PRINT (menu) ------------------------------------------------------------------------------ */
@media print {
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .header, .mob-bar, .grain, .cursor, .veil, .loader, .mrail, .footer, .menu-foot__cta, .nav { display: none !important; }
  .mhero { padding: 0 0 12pt; }
  .mhero h1 { font-size: 26pt; }
  .mcat { padding: 14pt 0 0; break-inside: avoid-page; }
  .mitems { grid-template-columns: 1fr 1fr; gap: 0 24pt; }
  .mitem { border-color: #ccc; padding: 6pt 0; }
  .mitem--photo .ph { display: none; }
  .mitem--photo { grid-template-columns: 1fr auto; }
  a { text-decoration: none; color: inherit; }
}
