/* Brasa Pytã — Parrilla y cocina paraguaya · demo LibreSitio (plan Carta) */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #110d0b;
  --bg-2: #1a1411;
  --bg-3: #231b17;
  --line: rgba(242, 233, 221, 0.12);
  --line-2: rgba(242, 233, 221, 0.22);
  --ink: #f2e9dd;
  --ink-2: #bfb1a2;
  --ink-3: #9a8b7e;
  --ember: #e8604a;
  --fire: #c4321f;
  --fire-hi: #d63a26;
  --on-fire: #fff6ec;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --max: 1240px;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bar-h: 0px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--fire); color: var(--on-fire); }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 2px; }
.btn:focus-visible { outline-offset: 4px; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }
.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;
}

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }

/* ---------- Type ---------- */
.overline {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ember);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.overline .num { color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.overline .rule { width: 2.5rem; height: 1px; background: currentColor; opacity: .6; }
.display, .h2, .lead, .dish-name, .serif { font-family: var(--serif); font-optical-sizing: auto; }
.h2 {
  font-weight: 300;
  font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.h2 em, .display em, .lead em { font-style: italic; color: var(--ember); }
.lead {
  font-weight: 300;
  font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.25rem);
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.body-copy { max-width: 36rem; font-size: 1.0625rem; color: var(--ink-2); text-wrap: pretty; }
.price, .tnum { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }

/* ---------- Buttons ---------- */
.btn {
  --h: 3.25rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--h);
  padding: 0 1.5rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  cursor: pointer;
}
.btn-fire { background: var(--fire); color: var(--on-fire); }
.btn-fire:hover { background: var(--fire-hi); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: rgba(17, 13, 11, .25); }
.btn-line:hover { border-color: var(--ink); background: rgba(242, 233, 221, .06); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: #fff; }
.btn-sm { --h: 2.5rem; padding: 0 1.1rem; font-size: .875rem; }
.btn .meta { font-weight: 400; opacity: .75; }
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: scale(.98); } }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem;
  border-bottom: 1px solid var(--line-2); padding-bottom: .2rem;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.text-link:hover { border-color: var(--ember); color: #fff; }
.text-link .icon { transition: transform .25s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .text-link:hover .icon { transform: translateX(3px); } }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 5; }
.header-in {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1rem;
}
.logo { display: block; flex: none; border-radius: 50%; }
.logo img { width: 60px; height: 62px; }
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2.4vw, 2rem); }
.nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav a:not(.btn) {
  font-size: .875rem; font-weight: 500; letter-spacing: .02em; color: var(--ink);
  text-decoration: none; padding-block: .5rem; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px;
  background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .wide { display: none; }
@media (min-width: 760px) { .nav .wide { display: list-item; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: max(36rem, calc(100svh - var(--ls-bar-h,0px)));
  display: flex; flex-direction: column;
  isolation: isolate;
  background: #0b0807;
}
.hero-media, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media { z-index: -2; overflow: hidden; }
.hero-media img { object-fit: cover; object-position: 38% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,8,7,.72) 0%, rgba(11,8,7,.15) 22%, rgba(11,8,7,.25) 45%, rgba(11,8,7,.88) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11,8,7,.55) 0%, rgba(11,8,7,0) 65%);
}
.hero-body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: clamp(3rem, 8vh, 6rem) clamp(2rem, 5vh, 3.5rem);
}
.display {
  font-weight: 300;
  font-size: clamp(3.5rem, 1.6rem + 9vw, 9.25rem);
  line-height: .9;
  letter-spacing: -.035em;
  color: var(--ink);
  margin-top: 1.25rem;
}
.display span { display: block; }
.hero-sub {
  margin-top: 1.5rem; max-width: 30rem;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.5; color: #e2d6c8;
}
.hero .actions { margin-top: 2rem; }
.hero-facts {
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  display: grid; gap: .35rem 2rem;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: .875rem; color: var(--ink-2);
}
.hero-facts > * { display: flex; align-items: center; gap: .6rem; }
.hero-facts .icon { color: var(--ink-3); }
.hero-facts .fact-wide { display: none; }
@media (min-width: 760px) {
  .hero-facts { grid-template-columns: auto 1fr; }
  .hero-facts > :last-child { justify-self: end; }
}
@media (min-width: 1100px) {
  .hero-facts { grid-template-columns: auto auto 1fr; }
  .hero-facts .fact-wide { display: flex; }
}
.status { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 500; }
.status::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ink-3); flex: none;
}
.status[data-open="true"]::before { background: #f0a24a; box-shadow: 0 0 0 4px rgba(240, 162, 74, .18); }
.status:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
  .hero .reveal:nth-child(2) { animation-delay: .08s; }
  .hero .reveal:nth-child(3) { animation-delay: .16s; }
  .hero .reveal:nth-child(4) { animation-delay: .24s; }
  .hero .reveal:nth-child(5) { animation-delay: .32s; }
  .hero-media img { animation: settle 2.4s var(--ease) both; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(5rem, 4rem + 6vw, 9.5rem); }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .body-copy { margin-top: .25rem; }
@media (min-width: 960px) {
  .section-head.split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 3rem; }
}

/* Story */
.story { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.story-text { display: grid; gap: 1.75rem; align-content: start; }
@media (min-width: 960px) {
  .story { grid-template-columns: 1fr 1fr; align-items: center; gap: 6rem; }
}
.pillars {
  display: grid; gap: 0; margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}
.pillar { padding-block: 1.75rem; border-bottom: 1px solid var(--line); display: grid; gap: .6rem; }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; color: var(--ink); letter-spacing: -.01em; }
.pillar p { color: var(--ink-2); max-width: 26rem; }
.pillar .num { font-size: .75rem; letter-spacing: .16em; color: var(--ember); font-weight: 600; }
@media (min-width: 760px) {
  .pillars { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .pillar { border-bottom: 0; padding: 2rem 2rem 2.25rem 0; }
  .pillar + .pillar { border-left: 1px solid var(--line); padding-left: 2rem; }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.g-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.g-item a { display: block; height: 100%; text-decoration: none; color: var(--ink); }
.g-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; filter: brightness(.86) saturate(.95); transition: transform .8s var(--ease), filter .6s var(--ease); }
.g-item a:hover img, .g-item a:focus-visible img { filter: none; }
.menu-photo img, .sm img { filter: brightness(.9); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  padding: 2.5rem .9rem .8rem;
  background: linear-gradient(180deg, transparent, rgba(11, 8, 7, .85));
  pointer-events: none;
}
.g-item .cap-name { font-family: var(--serif); font-size: 1.125rem; line-height: 1.15; color: var(--ink); }
.g-item .price { font-size: .8125rem; color: var(--ink-2); }
.g-item a:hover img { transform: scale(1.035); }
.g-item a:focus-visible { outline-offset: -4px; }
.g-wide { grid-column: span 2; }
.g-wide img { aspect-ratio: 3 / 2; }
.g-pano img { aspect-ratio: 16 / 9; object-position: 50% 60%; }
.g-tall img { aspect-ratio: 3 / 4; }
@media (max-width: 599px) {
  .g-item:not(.g-wide) .cap-name { font-size: 1rem; }
  .g-item:not(.g-wide) figcaption { padding: 2rem .7rem .65rem; }
}
@media (min-width: 960px) {
  .gallery { grid-template-columns: repeat(12, 1fr); gap: .75rem; }
  .g-item img, .g-wide img, .g-tall img, .g-pano img { aspect-ratio: auto; }
  .g-1 { grid-column: 1 / 8; grid-row: 1 / 3; }
  .g-2 { grid-column: 8 / 13; grid-row: 1; }
  .g-3 { grid-column: 8 / 13; grid-row: 2; }
  .g-4, .g-5, .g-6 { grid-column: span 4; }
  .g-7 { grid-column: 1 / 13; }
  .g-1, .g-2, .g-3 { min-height: 0; }
  .gallery { grid-template-rows: 17rem 17rem 19rem 30rem; }
  .g-item figcaption { padding: 3rem 1.25rem 1.1rem; }
  .g-1 .cap-name, .g-7 .cap-name { font-size: 1.5rem; }
}

/* Lightbox */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 6, 5, .96); color: var(--ink);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(8, 6, 5, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: .75rem var(--gutter); font-size: .875rem; color: var(--ink-2); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--radius); user-select: none; -webkit-user-drag: none; }
.lb-cap { display: flex; justify-content: center; align-items: baseline; gap: 1rem; padding: 1rem var(--gutter) 1.5rem; text-align: center; }
.lb-cap .cap-name { font-family: var(--serif); font-size: 1.375rem; color: var(--ink); }
.lb-cap .price { color: var(--ink-2); font-size: .9375rem; }
.lb-btn {
  width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(17, 13, 11, .6); display: inline-grid; place-items: center; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.lb-btn:hover { background: rgba(242, 233, 221, .1); border-color: var(--ink); }
.lb-btn .icon { width: 1.25rem; height: 1.25rem; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: calc(var(--gutter) + .5rem); }
.lb-next { right: calc(var(--gutter) + .5rem); }
@media (max-width: 759px) { .lb-prev, .lb-next { top: auto; bottom: -4.25rem; transform: none; } .lb-cap { padding-inline: 4.5rem; flex-direction: column; align-items: center; gap: .2rem; min-height: 5.5rem; justify-content: center; } .lb-cap .cap-name { font-size: 1.25rem; line-height: 1.2; } }
.lb-cap .price { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lb-stage img { animation: lbIn .35s var(--ease); }
}
@keyframes lbIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* Carta teaser */
.teaser { display: grid; gap: clamp(2.5rem, 6vw, 5rem); padding: clamp(2rem, 5vw, 4.5rem); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); position: relative; overflow: hidden; }
.teaser-text { display: grid; gap: 1.5rem; align-content: start; position: relative; }
.cat-list { border-top: 1px solid var(--line); position: relative; }
.cat-list a {
  display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); transition: color .2s var(--ease), padding .3s var(--ease);
}
.cat-list .serif { font-size: 1.375rem; line-height: 1.2; }
.cat-list .count { margin-left: auto; font-size: .8125rem; color: var(--ink-3); white-space: nowrap; }
.cat-list .icon { color: var(--ink-3); align-self: center; transition: color .2s var(--ease), transform .3s var(--ease); }
.cat-list a:hover { color: #fff; }
.cat-list a:hover .icon { color: var(--ember); }
@media (prefers-reduced-motion: no-preference) { .cat-list a:hover .icon { transform: translateX(3px); } }
@media (min-width: 960px) { .teaser { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Visit */
.visit { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.visit-info { display: grid; gap: 2rem; align-content: start; }
.hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours caption { text-align: left; }
.hours th, .hours td { padding: .9rem 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-weight: 400; }
.hours th { color: var(--ink); padding-right: 1rem; }
.hours td { color: var(--ink-2); text-align: right; }
.hours td span { display: block; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ink); }
.hours tr.is-today th::after { content: " · hoy"; color: var(--ember); font-size: .8125rem; letter-spacing: .04em; }
.contact { display: grid; gap: 1rem; font-size: 1rem; }
.contact div { display: flex; gap: .85rem; align-items: flex-start; }
.contact .icon { margin-top: .25rem; color: var(--ember); }
.contact a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: .2em; }
.contact a:hover { text-decoration-color: var(--ember); }
.contact strong { display: block; color: var(--ink); font-weight: 500; }
.map {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-2); min-height: 22rem;
}
.map iframe {
  width: 100%; height: 100%; min-height: 22rem; border: 0;
  filter: invert(.92) hue-rotate(180deg) saturate(.45) brightness(.95) contrast(.95) sepia(.12);
}
.map-link {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 1;
}
@media (min-width: 960px) {
  .visit { grid-template-columns: 5fr 7fr; align-items: stretch; }
  .map, .map iframe { min-height: 34rem; }
}

/* Closing band */
.closing { position: relative; text-align: center; padding-block: clamp(5rem, 4rem + 6vw, 9rem); overflow: hidden; border-top: 1px solid var(--line); }
.closing::before {
  content: ""; position: absolute; inset: auto 0 -40% 0; height: 90%; z-index: -1;
  background: radial-gradient(50% 60% at 50% 100%, rgba(196, 50, 31, .28), transparent 70%);
}
.closing { isolation: isolate; }
.closing .h2 { max-width: 14ch; margin-inline: auto; }
.closing p { margin: 1.25rem auto 0; max-width: 32rem; color: var(--ink-2); }
.closing .actions { justify-content: center; margin-top: 2.25rem; }
.closing img { width: 84px; height: auto; margin: 0 auto 2rem; transform: rotate(-8deg); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 3rem calc(3rem + var(--bar-h)); font-size: .875rem; color: var(--ink-3); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand img { width: 52px; height: auto; }
.footer-brand strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--ink); line-height: 1.2; }
.footer p { color: var(--ink-3); }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.social { display: flex; gap: .5rem; }
.social a { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); transition: border-color .2s, color .2s; }
.social a:hover { border-color: var(--ink-2); color: var(--ink); }
.social svg { width: 1.05rem; height: 1.05rem; }
.footer-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
.made-by { display: inline-flex; align-items: center; gap: .5rem; }
.made-by svg { width: 8px; height: 14px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr auto; align-items: start; } }

/* Mobile action bar */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1.35fr; gap: .5rem;
  padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom));
  background: rgba(17, 13, 11, .92);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid var(--line);
  transition: transform .35s var(--ease), visibility .35s;
}
.mbar .btn { --h: 3rem; padding: 0 .75rem; font-size: .9rem; }
.mbar.is-hidden { transform: translateY(110%); visibility: hidden; }
@media (min-width: 900px) { .mbar { display: none; } }
@media (max-width: 899px) { :root { --bar-h: 4.5rem; } }

/* ---------- Carta page ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); position: relative; isolation: isolate; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 70%; height: 140%;
  background: radial-gradient(closest-side, rgba(196, 50, 31, .16), transparent);
  pointer-events: none;
}
.page-head .display { font-size: clamp(3rem, 1.6rem + 6.5vw, 7.25rem); margin-top: 1rem; }
.page-head .hero-sub { color: var(--ink-2); }
.page-head .actions { margin-top: 2rem; }
.page-head .fine { margin-top: 1rem; font-size: .8125rem; color: var(--ink-3); }

.catnav {
  position: sticky; top:var(--ls-bar-h,0px); z-index: 20;
  background: rgba(17, 13, 11, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-block: 1px solid var(--line);
}
.catnav-in { position: relative; }
.catnav ul {
  display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  padding-block: .625rem; scroll-padding-inline: var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2.5rem), transparent);
  padding-inline: 1rem 2.5rem; margin-inline: -1rem;
}
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 999px;
  white-space: nowrap; text-decoration: none; font-size: .875rem; font-weight: 500; color: var(--ink-2);
  border: 1px solid transparent; transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.catnav a:hover { color: var(--ink); border-color: var(--line-2); }
.catnav a[aria-current="true"] { background: var(--ink); color: var(--bg); }
@media (min-width: 1100px) {
  .catnav ul { justify-content: center; -webkit-mask-image: none; mask-image: none; padding-inline: 0; margin-inline: 0; }
}

.menu { padding-block: clamp(1.5rem, 4vw, 3rem) 0; }
.menu-sec {
  display: grid; gap: 1.75rem; padding-block: clamp(3rem, 6vw, 5.5rem);
  scroll-margin-top: 0; border-bottom: 1px solid var(--line);
}
.menu-sec:last-of-type { border-bottom: 0; }
.menu-sec-head { display: grid; gap: 1rem; align-content: start; }
.menu-sec-head .h2 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
.menu-photo { margin: .5rem 0 0; }
.menu-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--bg-2); }
.menu-photo figcaption { margin-top: .6rem; font-size: .8125rem; color: var(--ink-3); }
.menu-mark { display: none; }
@media (min-width: 960px) {
  .menu-sec { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
  .menu-sec-head { position: sticky; top:calc(6rem + var(--ls-bar-h,0px)); }
  .menu-photo img { aspect-ratio: 4 / 3; }
  .menu-mark { display: block; width: 180px; height: auto; margin-top: 1.5rem; transform: rotate(-8deg); opacity: .85; }
}

.dishes { border-top: 1px solid var(--line); }
.dish { padding-block: 1.15rem 1.2rem; border-bottom: 1px solid var(--line); }
.dish-top { display: flex; align-items: baseline; gap: .75rem; }
.dish-name {
  font-weight: 400; font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); line-height: 1.2;
  color: var(--ink); letter-spacing: -.005em;
}
.leader { flex: 1 1 1rem; min-width: 1rem; border-bottom: 1px dotted rgba(242, 233, 221, .28); transform: translateY(-.3em); }
.dish .price { font-size: 1rem; font-weight: 500; color: var(--ink); white-space: nowrap; letter-spacing: .01em; }
.dish .price .cur { color: var(--ink-3); font-weight: 400; margin-right: .2em; }
.dish-desc { margin-top: .3rem; color: var(--ink-2); font-size: .9375rem; max-width: 34rem; }
.tag {
  display: inline-block; margin-left: .5rem; vertical-align: .25em;
  font-family: var(--sans); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ember); border: 1px solid rgba(232, 96, 74, .5); border-radius: 999px; padding: .15rem .55rem;
}
.dish-feature { position: relative; }
.dish-feature::before { content: ""; position: absolute; inset: 0 0 0 -1rem; z-index: -1; border-radius: var(--radius) 0 0 var(--radius); background: linear-gradient(90deg, rgba(196, 50, 31, .14), transparent 75%); }
.dishes { position: relative; z-index: 0; }

.menu-end { padding-block: clamp(3rem, 6vw, 5rem) clamp(5rem, 8vw, 7rem); }
.menu-end-card { display: grid; gap: 1.5rem; padding: clamp(2rem, 5vw, 3.5rem); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.menu-end-card .fine { font-size: .8125rem; color: var(--ink-3); }
@media (min-width: 960px) { .menu-end-card { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; } }

@media print {
  .ls-demobar, .catnav, .mbar, .site-header .btn, .footer, .menu-photo, .page-head .actions { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =====================================================================
   Award layer: editorial composition, motion, micro-interactions
   ===================================================================== */
@view-transition { navigation: auto; }

/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero extras */
.sparks { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.seal {
  position: absolute; right: var(--gutter); bottom: clamp(7rem, 16vh, 10rem); z-index: 2;
  width: clamp(120px, 11vw, 168px); aspect-ratio: 1; display: none; text-decoration: none; color: var(--ink);
  border-radius: 50%;
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.seal text { font-family: var(--sans); font-size: 7.4px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; fill: currentColor; }
.seal img { position: absolute; inset: 22%; width: 56%; height: auto; transition: transform .6s var(--ease); }
.seal:hover img { transform: rotate(-12deg) scale(1.06); }
@media (min-width: 1024px) { .seal { display: block; } }
@media (prefers-reduced-motion: no-preference) { .seal svg { animation: spin 28s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: clamp(1.1rem, 2.5vw, 1.75rem); }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee span {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
  line-height: 1; color: var(--ink); white-space: nowrap; letter-spacing: -.015em;
}
.marquee span:nth-child(4n+3) { font-style: italic; color: var(--ember); }
.marquee img { width: clamp(28px, 3vw, 40px); height: auto; margin-inline: clamp(1.25rem, 3vw, 2.5rem); opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 60s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Story composition */
.story-media { position: relative; min-height: 30rem; }
.sm { position: absolute; margin: 0; }
.sm .frame { overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.sm img { width: 100%; height: 100%; object-fit: cover; }
.sm figcaption { margin-top: .6rem; font-size: .8125rem; color: var(--ink-3); display: flex; gap: .5rem; }
.sm figcaption b { color: var(--ink-2); font-weight: 500; }
.sm-a { left: 0; top: 0; width: 66%; }
.sm-a .frame { aspect-ratio: 4 / 5; }
.sm-b { right: 0; bottom: 0; width: 46%; }
.sm-b .frame { aspect-ratio: 1; }
.sm-stamp { position: absolute; right: 6%; top: 4%; width: 26%; height: auto; transform: rotate(-12deg); opacity: .9; }
@media (max-width: 759px) {
  .story-media { min-height: 0; display: grid; }
  .sm { position: relative; }
  .sm-a { width: 78%; }
  .sm-b { width: 54%; justify-self: end; margin-top: -32%; }
  .sm-b .frame { box-shadow: 0 0 0 6px var(--bg); }
  .sm-stamp { width: 20%; right: 0; top: 6%; }
  .sm figcaption span { display: none; }
}
@media (min-width: 960px) { .story-media { min-height: 40rem; } }

/* Teaser: floating image on hover (desktop) */
.float-img {
  position: fixed; left: 0; top: 0; z-index: 40; width: 220px; aspect-ratio: 4 / 5; pointer-events: none;
  border-radius: var(--radius); overflow: hidden; opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85) rotate(-4deg);
  transition: opacity .35s var(--ease), transform .5s var(--ease); background: var(--bg-3);
}
.float-img img { width: 100%; height: 100%; object-fit: cover; }
.float-img.on { opacity: 1; }
.cat-list a .serif { transition: transform .45s var(--ease), color .2s; }
@media (prefers-reduced-motion: no-preference) { .cat-list a:hover .serif { transform: translateX(.5rem); } }
.cat-list a:hover .serif { color: #fff; }

/* Dock header (appears on scroll-up after hero, desktop) */
.dock {
  position: fixed; top:var(--ls-bar-h,0px); left: 0; right: 0; z-index: 45; visibility: hidden;
  transform: translateY(-100%); transition: transform .45s var(--ease), visibility .45s;
  background: rgba(17, 13, 11, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.dock .header-in { padding-block: .5rem; }
.dock .logo img { width: 40px; height: 41px; }
.dock.show { transform: none; visibility: visible; }
@media (max-width: 899px) { .dock { display: none; } }

/* Gallery cursor */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; width: 84px; height: 84px; margin: -42px 0 0 -42px; pointer-events: none;
  border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transform: scale(0); transition: transform .35s var(--ease);
}
.cursor.on { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .js .gallery a { cursor: none; } }

/* Lightbox FLIP + sizing */
.lb-stage img { width: min(100%, calc((100dvh - 10rem) * 4 / 3)); height: auto; aspect-ratio: 4 / 3; max-height: none; }
.lightbox[open] .lb-stage img { animation: none; }
.lightbox { opacity: 1; transition: opacity .25s var(--ease); }
.lightbox.closing { opacity: 0; }
.lb-cap .cap-name, .lb-cap .price { transition: opacity .25s var(--ease); }

/* Footer wordmark */
.footer .footer-word {
  font-family: var(--serif); font-style: italic; font-weight: 300; line-height: .8; letter-spacing: -.04em;
  font-size: clamp(4rem, 17vw, 16rem); color: transparent; -webkit-text-stroke: 1px rgba(242, 233, 221, .16);
  white-space: nowrap; margin: clamp(3rem, 8vw, 6rem) 0 0; padding-top: .12em; padding-bottom: .16em; user-select: none; text-align: center; overflow: hidden;
}

/* Catnav: sliding indicator + progress */
.catnav ul { position: relative; }
.catnav .pill {
  position: absolute; left: 0; top: .625rem; height: 2.5rem; width: 0; border-radius: 999px; background: var(--ink);
  z-index: 0; pointer-events: none; opacity: 0; transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.catnav li { position: relative; z-index: 1; }
.js .catnav a[aria-current="true"] { background: transparent; color: var(--bg); }
.catnav-progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ember); transform-origin: left; transform: scaleX(0); }

/* Menu photo swap */
.menu-photo .frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.menu-photo .frame img { border-radius: 0; }
.menu-photo .swap { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); }
.menu-photo .swap.on { opacity: 1; }
.dish[data-photo] .dish-name::after {
  content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .45em; vertical-align: .18em;
  border-radius: 50%; background: var(--ember); opacity: 0; transition: opacity .25s;
}
@media (min-width: 960px) and (hover: hover) {
  .dish[data-photo] .dish-name::after { opacity: .55; }
  .dish[data-photo]:hover .dish-name::after, .dish[data-photo].is-hot .dish-name::after { opacity: 1; }
}
.dish { transition: background-color .3s var(--ease); }
@media (hover: hover) { .dish:hover .dish-name { color: #fff; } .dish:hover .leader { border-bottom-color: rgba(232, 96, 74, .55); } }
.leader { transition: border-color .3s var(--ease); }

/* ---------- Scroll choreography (JS + motion OK only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .08em .1em; margin: -.04em -.08em -.1em; }
  .js .split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0s)); }
  .js .split.in .w > span { transform: none; }
  .js .clip { position: relative; }
  .js .clip::after {
    content: ""; position: absolute; inset: -1px; z-index: 3; pointer-events: none; background: var(--bg);
    transform-origin: 50% 0; transition: transform 1.25s cubic-bezier(.7, 0, .2, 1); transition-delay: var(--d, 0s);
  }
  .js .teaser .clip::after, .js .menu-end .clip::after { background: var(--bg-2); }
  .js .clip.in::after { transform: scaleY(0); }
  .js .clip img { transform: scale(1.16); transition: transform 1.9s var(--ease); transition-delay: var(--d, 0s); }
  .js .clip.in img { transform: none; }
  .js .hero .reveal { animation: none; opacity: 1; transform: none; }
  .js .hero .display.split .w > span { transition-duration: 1.3s; }
  .js .hero [data-reveal] { transition-delay: calc(var(--d, 0s) + .25s); }
  .js .g-item.clip.in a:hover img { transform: scale(1.035); transition-duration: .8s; transition-delay: 0s; }
  [data-speed] { will-change: transform; }
}
/* r5: anchors clear the fixed LibreSitio demo bar (+ sticky menu nav on carta.html) */
html { scroll-padding-top: calc(var(--ls-bar-h, 0px) + 1rem); }
html:has(.catnav) { scroll-padding-top: calc(var(--ls-bar-h, 0px) + 4.25rem); }
