/* ==========================================================================
   Aqua — main stylesheet (design direction "Brass night")
   Shared by index.html, carta.html and privacy.html.
   ========================================================================== */

:root {
  /* Colour palette */
  --ink:        #0E1514;   /* main background, green-black */
  --ink-2:      #131C1A;   /* raised surfaces */
  --ink-3:      #1B2624;   /* panels, inputs */
  --brass:      #B89A5E;   /* brass, the only accent colour */
  --brass-soft: #8F7848;
  --ivory:      #EDE6D8;   /* main text */
  --stone:      #A39E92;   /* secondary text */
  --mute:       #8E8A80;   /* captions, WCAG AA contrast on every background */
  --line:       rgba(237, 230, 216, .12);
  --line-brass: rgba(184, 154, 94, .45);
  --danger:     #D98B73;

  /* Typography */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, sans-serif;

  /* Sizes */
  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(40px, 4.5vw, 70px);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Minimal reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--brass); color: var(--ink);
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

/* ---------- Typography elements ---------- */
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--brass);
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.display em, .hero__title em, .quote__text em { font-style: italic; color: var(--brass); }
.lead {
  font-size: clamp(16px, 1.25vw, 18px);
  color: var(--stone);
  max-width: 46ch;
}

.section-index {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(16px, 2vw, 26px);
  font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--brass);
}
.section-index__num { font-family: var(--serif); font-size: 15px; letter-spacing: .05em; }
.section-index::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--line-brass); order: 1; }
.section-index__label { order: 2; }

/* ---------- Buttons and links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  border: 1px solid var(--brass); cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
  background: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--brass);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease-out);
}
.btn--solid { color: var(--ink); }
.btn--solid::before { transform: scaleY(1); transform-origin: top; }
.btn--solid:hover { color: var(--brass); }
.btn--solid:hover::before { transform: scaleY(0); }
.btn--ghost { color: var(--ivory); border-color: var(--line-brass); }
.btn--ghost:hover { color: var(--ink); border-color: var(--brass); }
.btn--ghost:hover::before { transform: scaleY(1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  padding-block: 6px; position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(.3); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.link-arrow span { transition: transform .5s var(--ease-out); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: border-color .5s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
/* The frosted bar lives on a layer of its own: a blur on the header itself would stop
   the "La carta" panel inside it from blurring the page behind */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transition: background-color .5s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before {
  background: rgba(14, 21, 20, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  height: 84px; display: flex; align-items: center; gap: 40px;
}
.wordmark { display: block; margin-right: auto; line-height: 0; color: var(--ivory); padding-block: 8px; }
.logo { display: block; height: 19px; width: auto; aspect-ratio: 1084 / 302; fill: currentColor; }
.nav__list { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav__list a {
  position: relative; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--stone); transition: color .4s var(--ease); padding-block: 8px;
}
.nav__list a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; border-radius: 50%;
  background: var(--brass); transform: translateX(-50%) scale(0); transition: transform .4s var(--ease-out);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--ivory); }
.nav__list a.is-active::after { transform: translateX(-50%) scale(1); }
/* "La carta" in the header: on hover or keyboard focus its categories open underneath,
   in the same style as the phone menu: a numbered list in the site's serif, two columns,
   hanging from "La carta" by a thin brass thread */
.nav__item--sub { position: relative; }
.nav__item--sub:hover > a, .nav__item--sub:focus-within > a { color: var(--ivory); }
.nav__item--sub:hover > a::after, .nav__item--sub:focus-within > a::after { transform: translateX(-50%) scale(1); }
.nav__sub {
  position: absolute; top: calc(100% + 28px); left: 50%; z-index: 5; width: 452px; /* starts on the header's bottom edge */
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; counter-reset: navcarta;
  padding: 22px 30px 18px;
  /* see-through glass: the page shows behind, blurred enough to keep the list easy to read */
  background: rgba(14, 21, 20, .62); border: 1px solid var(--line); border-top-color: var(--line-brass);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .35s var(--ease), transform .5s var(--ease-out), visibility 0s .35s;
}
/* the thread from "La carta" down to the panel; it is also the bridge that keeps the panel
   open while the pointer travels down to it */
.nav__sub::before {
  content: ""; position: absolute; left: -1px; right: -1px; bottom: 100%; height: 29px;
  background: linear-gradient(var(--brass), var(--brass)) center bottom / 1px 0 no-repeat;
  transition: background-size .35s var(--ease-out) .05s;
}
.nav__sub:empty { display: none; }
.nav__item--sub:hover .nav__sub, .nav__item--sub:focus-within .nav__sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .35s var(--ease), transform .5s var(--ease-out), visibility 0s;
}
.nav__item--sub:hover .nav__sub::before, .nav__item--sub:focus-within .nav__sub::before { background-size: 1px 20px; }
/* each item comes in a moment after the previous one */
.nav__sub li { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.nav__item--sub:hover .nav__sub li, .nav__item--sub:focus-within .nav__sub li {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease) calc(.08s + var(--i, 0) * 30ms), transform .6s var(--ease-out) calc(.08s + var(--i, 0) * 30ms);
}
.nav__list .nav__sub a {
  display: flex; align-items: baseline; gap: 12px; padding: 9px 0;
  font-family: var(--serif); font-size: 20px; font-weight: 300; line-height: 1.15;
  letter-spacing: 0; text-transform: none; white-space: nowrap; color: var(--stone);
}
.nav__list .nav__sub a::after { display: none; }
.nav__sub li:not(.mobile-menu__all) a::before {
  counter-increment: navcarta; content: counter(navcarta, decimal-leading-zero);
  flex: none; width: 18px; font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: .12em; color: var(--brass);
  transition: transform .4s var(--ease-out);
}
.nav__list .nav__sub a:hover, .nav__list .nav__sub a:focus-visible { color: var(--ivory); }
.nav__sub li:not(.mobile-menu__all) a:hover::before, .nav__sub li:not(.mobile-menu__all) a:focus-visible::before { transform: translateX(3px); }
/* "Tutta la carta": on its own line at the bottom, under a hairline, like the site's text links */
.nav__sub .mobile-menu__all { grid-column: 1 / -1; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.nav__list .nav__sub .mobile-menu__all a {
  display: inline-flex; gap: 10px; padding: 4px 0;
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass);
}
.nav__list .nav__sub .mobile-menu__all a:hover { color: var(--ivory); }
.nav__sub .mobile-menu__all span { transition: transform .5s var(--ease-out); }
.nav__sub .mobile-menu__all a:hover span { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .nav__sub, .nav__sub li, .nav__sub::before { transition: none !important; }
}
.site-header__cta { min-height: 40px; padding: 0 22px; }

.burger {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ivory);
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; right: 18px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; right: 10px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink);
  /* the list starts right under the 72px bar with the logo (the menu only exists up to 1024px) */
  padding: 72px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto; /* very short screens (phone held sideways): scroll instead of cutting the info */
  opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
/* "hidden" must win over display:flex, otherwise the invisible overlay blocks clicks on the page */
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu__list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu__list li:first-child { border-top: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 18px; padding: 18px 0;
  font-family: var(--serif); font-size: clamp(34px, 9vw, 48px); font-weight: 300; line-height: 1.1;
  transform: translateY(100%); transition: transform .7s var(--ease-out);
}
.mobile-menu__ico { flex: none; align-self: center; width: 22px; height: 22px; color: var(--brass); opacity: .85; }
.mobile-menu.is-open .mobile-menu__list a { transform: none; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: .25s; }
/* The same menu on the carta and the food menu: opened by "Il sito", on every screen size.
   Its own top bar (logo + close) sits exactly where the page's header is. */
.mobile-menu--pages { padding-top: 84px; }
.mobile-menu__top {
  position: absolute; inset: 0 0 auto; height: 84px; margin-inline: auto;
  width: 100%; max-width: var(--wrap); padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.mobile-menu__top .burger { display: block; }
@media (min-width: 1025px) {
  .mobile-menu--pages > nav, .mobile-menu--pages .mobile-menu__bottom { width: 100%; max-width: 640px; margin-inline: auto; }
  .mobile-menu--pages { justify-content: flex-start; gap: 48px; }
}
/* "Il sito" in the header of the carta and the food menu: a button with two small lines (the menu) */
.site-menu-btn { background: none; border: 0; padding-inline: 0; color: inherit; font-family: inherit; cursor: pointer; }
.site-menu-btn__ico { width: 16px; height: 7px; border-block: 1px solid currentColor; }
.link-arrow:hover .site-menu-btn__ico { transform: none; }
/* "La carta" in the phone menu: a chevron, and its categories as small pills under it */
.mobile-menu__more {
  flex: none; align-self: center; margin-left: auto; width: 10px; height: 10px;
  border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass);
  transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--ease);
}
.mobile-menu__carta.is-expanded .mobile-menu__more { transform: translateY(3px) rotate(-135deg); }
/* the categories: a numbered list in the site's serif, two columns, along a thin brass line */
.mobile-menu__sub {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; counter-reset: carta;
  margin: -6px 0 0 40px; padding: 2px 0 2px 20px; border-left: 1px solid var(--line-brass);
}
.mobile-menu__sub[hidden] { display: none; }
.mobile-menu__carta.is-expanded { padding-bottom: 24px; }
.mobile-menu__list .mobile-menu__sub li { border: 0; overflow: visible; animation: subIn .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes subIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mobile-menu__list .mobile-menu__sub a {
  display: flex; align-items: baseline; gap: 10px; padding: 8px 0; transform: none;
  font-family: var(--serif); font-size: clamp(18px, 5vw, 22px); font-weight: 300; line-height: 1.15; color: var(--stone);
  transition: color .3s var(--ease);
}
.mobile-menu__sub li:not(.mobile-menu__all) a::before {
  counter-increment: carta; content: counter(carta, decimal-leading-zero);
  flex: none; font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: .12em; color: var(--brass);
}
.mobile-menu__list .mobile-menu__sub a:hover, .mobile-menu__list .mobile-menu__sub a:focus-visible { color: var(--ivory); }
/* "Tutta la carta": on its own line, like the site's text links */
.mobile-menu__list .mobile-menu__sub .mobile-menu__all { grid-column: 1 / -1; margin-top: 10px; }
.mobile-menu__list .mobile-menu__sub .mobile-menu__all a {
  display: inline-flex; gap: 10px; padding: 6px 0;
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass);
}
/* no inherited entrance delays on the categories (they belong to the main items) */
.mobile-menu.is-open .mobile-menu__sub li a { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .mobile-menu__list .mobile-menu__sub li { animation: none; } }
.mobile-menu__bottom { display: grid; gap: 14px; justify-items: start; padding-top: 24px; }
.mobile-menu__q { width: 32px; height: auto; aspect-ratio: 488 / 476; fill: var(--brass); }
.mobile-menu__foot { font-size: 11px; letter-spacing: .14em; line-height: 1.7; text-transform: uppercase; color: var(--stone); }
.mobile-menu__foot > span { display: block; }
.mobile-menu__foot > span[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: clamp(88px, 14vh, 120px); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--ink); }
/* video and cover image fill the right side and fade towards the text */
.hero__still, .hero__video {
  position: absolute; top: 0; right: 0; width: 68%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
  transform: scale(1.08); transform-origin: 50% 60%;
  animation: heroZoom 2.8s var(--ease-out) forwards;
}
.hero__video { z-index: 1; }
.hero__still { z-index: 2; transition: opacity .9s ease; }
.hero__media.is-playing .hero__still { opacity: 0; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(180deg, rgba(14,21,20,.75) 0%, rgba(14,21,20,0) 22%),
    linear-gradient(90deg, rgba(14,21,20,.9) 0%, rgba(14,21,20,.5) 40%, rgba(14,21,20,0) 68%),
    linear-gradient(0deg, var(--ink) 0%, rgba(14,21,20,0) 38%);
}
@keyframes heroZoom { to { transform: none; } }

.hero__content { padding-bottom: clamp(28px, 5vh, 72px); }
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, min(10.5vw, 13.5vh), 168px); line-height: .92; letter-spacing: -.02em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > * { display: inline-block; }
.hero__title .line:nth-child(2) { padding-left: clamp(24px, 8vw, 140px); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: clamp(14px, 2vh, 26px); }

.hero__meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-block: clamp(18px, 3vh, 28px); border-top: 1px solid var(--line);
}
.status { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.status[hidden], .countdown[hidden] { display: none; }

/* ---------- Opening countdown ---------- */
.countdown { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(12px, 1.8vh, 18px); }
.countdown__label {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone);
}
.countdown__label time { color: var(--ivory); }
.countdown__units { display: flex; align-items: flex-start; gap: clamp(14px, 2vw, 30px); }
.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 1.5em; }
.countdown__num {
  display: block; overflow: hidden;
  font-family: var(--serif); font-weight: 300; font-size: clamp(44px, min(4.8vw, 8vh), 76px); line-height: .9; letter-spacing: -.01em;
  font-variant-numeric: lining-nums tabular-nums; color: var(--ivory);
}
.countdown__num.is-tick { animation: tick .5s var(--ease-out); }
/* subtle tick: the number drops slightly and never disappears completely */
@keyframes tick { from { opacity: .45; transform: translateY(-18%); } to { opacity: 1; transform: none; } }
.countdown__unit:last-child .countdown__num { color: var(--brass); }
.countdown__cap { margin-top: 10px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.countdown__sep { width: 1px; height: clamp(38px, min(4vw, 6.5vh), 62px); background: var(--line-brass); margin-top: 6px; }
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); position: relative; }
.status__dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--brass);
  animation: pulse 2.4s var(--ease) infinite;
}
.status.is-closed .status__dot { background: var(--mute); }
.status.is-closed .status__dot::after { display: none; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.scroll-cue { width: 1px; height: 48px; background: var(--line); position: relative; overflow: hidden; display: block; padding: 0 12px; background-clip: content-box; }
.scroll-cue span { position: absolute; left: 12px; top: 0; width: 1px; height: 40%; background: var(--brass); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* Hero entrance animation */
.js [data-hero-step] { opacity: 0; transform: translateY(24px); }
.js .hero__title [data-hero-step] { opacity: 1; transform: translateY(105%); }
.js .is-loaded [data-hero-step] {
  opacity: 1; transform: none;
  transition: transform 1.3s var(--ease-out), opacity 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 250ms);
}

/* ---------- Philosophy ---------- */
.philosophy.section { padding-top: clamp(12px, 2vw, 28px); }
.philosophy__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start;
}
.philosophy .section-index { grid-column: 1 / -1; }
.philosophy__text { grid-column: 1 / span 7; }
.philosophy__text .display { max-width: 14ch; }
.philosophy__text .lead { margin-top: clamp(16px, 1.8vw, 24px); }
.philosophy__figure { grid-column: 9 / -1; margin-top: clamp(24px, 4vw, 56px); }

.frame { position: relative; overflow: hidden; background: var(--ink-3); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out), filter 1s var(--ease); filter: saturate(.9); }
.philosophy__figure .frame { aspect-ratio: 4 / 5; }
.philosophy__figure .frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line-brass); pointer-events: none; }
figcaption { margin-top: 14px; font-size: 12px; letter-spacing: .06em; color: var(--mute); font-style: italic; font-family: var(--serif); font-size: 16px; }

/* ---------- Drinks menu items (used by carta.html) ---------- */


.drinks { animation: panelIn .8s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.drink {
  display: grid; grid-template-columns: 30px auto minmax(24px, 1fr) auto; align-items: baseline; column-gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line); cursor: default; position: relative;
}
.drink:first-child { border-top: 1px solid var(--line); }
.drink__name { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); font-weight: 300; line-height: 1.1; transition: color .5s var(--ease), transform .6s var(--ease-out); }
.drink__leader { height: 1px; background-image: linear-gradient(90deg, var(--line-brass) 40%, transparent 0); background-size: 6px 1px; align-self: center; transform: translateY(6px); opacity: .7; }
.drink__price { font-family: var(--serif); font-size: 22px; color: var(--brass); }
.drink__cur { font-size: .7em; color: var(--mute); }
.drink__glass { grid-column: 1; grid-row: 1; align-self: center; color: var(--brass); line-height: 0; }
.drink__glass svg { width: 28px; height: 28px; }
/* the name always sits in the second column, even when there is no glass icon */
.drink__name { grid-column: 2; }
/* categories without glasses (coffee, pastries, soft drinks): no empty icon column */
.drinks--plain .drink { grid-template-columns: auto minmax(24px, 1fr) auto; }
.drinks--plain .drink__name { grid-column: 1; }
.drinks--plain .drink__notes, .drinks--plain .drink__bottle { grid-column: 1 / -1; }
.drink__from { font-size: .7em; color: var(--mute); }
.drink__bottle { grid-column: 2 / -1; margin-top: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
/* Bottle and glass prices side by side (the wines): two columns of the same width, so the prices
   line up under the headings with the bottle and glass icons */
.drink__prices { display: flex; gap: 14px; }
.drink__prices .drink__price { width: 64px; text-align: right; white-space: nowrap; }
.drinks__cols { display: flex; justify-content: flex-end; gap: 14px; padding: 2px 0 12px; }
.drinks__col {
  width: 64px; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; white-space: nowrap;
  font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--stone);
}
.drinks__col svg { width: 22px; height: 22px; color: var(--brass); }
.drinks__cols + .drinks__group { padding-top: 6px; }
.drinks__cols + .drink { border-top: 1px solid var(--line); }
.drink__notes { grid-column: 2 / -1; margin-top: 8px; font-size: 14px; color: var(--stone); max-width: 52ch; transition: color .5s var(--ease); }
.drink:hover .drink__name, .drink.is-active .drink__name { color: var(--brass); transform: translateX(8px); }
.drink:hover .drink__notes, .drink.is-active .drink__notes { color: var(--ivory); }
/* group heading inside a category (e.g. "Gin profumato e floreale") */
.drinks__group {
  padding: 34px 0 12px; border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass);
}
.drinks__group:first-child { padding-top: 6px; }
/* group heading shown as a category title (e.g. "Salato" in the food menu): the same title, the
   same space above it as between two categories of the carta, the line under it as above a list */
.drinks__group--title {
  padding: clamp(36px, 6vw, 60px) 0 18px;
  font: inherit; letter-spacing: normal; text-transform: none; color: inherit;
}

.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; flex-basis: 100%; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.legend__glass { line-height: 0; color: var(--brass); }
.legend__glass svg { width: 22px; height: 22px; }
/* photos come from data/foto.properties: until the path is set, hide the broken-image icon */
img[data-foto]:not([src]) { visibility: hidden; }
.show-sm { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Quote band ---------- */
.quote { position: relative; min-height: clamp(360px, 58vh, 560px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.quote__media { position: absolute; inset: -12% 0; z-index: -1; will-change: transform; }
.quote__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.45) sepia(.25) brightness(.55); }
.quote__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(14,21,20,.55), rgba(14,21,20,.85)); }
.quote__text p { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.08; max-width: 22ch; letter-spacing: -.01em; }
.quote__text footer { margin-top: 32px; font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); }

/* ---------- The bar (gallery) ---------- */
.space__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px 64px; align-items: end; }
.space__head .section-index { grid-column: 1 / -1; margin-bottom: 0; }
.space__head .display { max-width: 18ch; }

.gallery { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: clamp(16px, 2vw, 24px); margin-top: clamp(40px, 5vw, 72px); }
.gallery .frame { height: clamp(260px, 30vw, 440px); }
.gallery__item--b { margin-top: clamp(24px, 3vw, 48px); }
.gallery figcaption span { font-style: normal; color: var(--brass); margin-right: 6px; }
.gallery__item:hover img, .philosophy__figure:hover img { transform: scale(1.04); filter: saturate(1); }

/* ---------- The ritual (three steps) ---------- */
.ritual__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px 64px; align-items: end; }
.ritual__head .section-index { grid-column: 1 / -1; margin-bottom: 0; }
.ritual__head .display { max-width: 14ch; }
/* on desktop the description starts at the centre of the page, close to the title */
.ritual__head .lead, .space__head .lead { max-width: 52ch; }
.ritual { --step-num: clamp(64px, 6.4vw, 104px); }
.ritual__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: calc(var(--step-num) * .48 + 18px); }
.step { position: relative; }
.step:nth-child(2) { margin-top: clamp(20px, 3vw, 48px); }
.step .frame { aspect-ratio: 4 / 5; }
.step__num {
  position: absolute; z-index: 3; top: -.48em; right: 18px;
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: var(--step-num); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--brass); pointer-events: none;
}
.step__title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; margin-top: 22px; }
.step__text { margin-top: 12px; font-size: 15px; color: var(--stone); max-width: 34ch; }
.step:hover img { transform: scale(1.04); filter: saturate(1); }

/* ---------- Where we are ---------- */
.visit { background: var(--ink-2); border-top: 1px solid var(--line); overflow: hidden; }
.visit__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(48px, 8vw, 128px); align-items: center; }
.visit__main .display { max-width: 12ch; }
.visit__main .lead { margin-top: 18px; }

.address-link { display: inline-block; margin-top: clamp(36px, 4vw, 56px); position: relative; padding-bottom: 18px; }
.address-link__text {
  display: block; font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(40px, 5.4vw, 80px); line-height: 1; color: var(--ivory); letter-spacing: -.01em;
  transition: transform .8s var(--ease-out), color .4s var(--ease);
}
.address-link__sub { display: block; margin-top: 16px; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); transition: color .4s var(--ease); }
.address-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(.18); transform-origin: left; transition: transform .9s var(--ease-out); }
.address-link:hover::after { transform: scaleX(1); }
.address-link:hover .address-link__text { transform: translateX(10px); color: var(--brass); }
.address-link:hover .address-link__sub { color: var(--ivory); }

.visit__figure { position: relative; }
.visit__figure .frame { aspect-ratio: 1 / 1; }
.visit__figure .frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line-brass); pointer-events: none; z-index: 1; }
.visit__badge {
  position: absolute; left: clamp(-40px, -3vw, -16px); bottom: 40px; z-index: 3;
  background: var(--ink); border: 1px solid var(--line-brass); padding: 16px 22px;
}
.visit__badge .status { color: var(--ivory); }
.visit__badge[hidden] { display: none; }

.visit__info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); margin-top: clamp(48px, 6vw, 88px); }
.info-block { padding-top: 28px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.6; }
.info-block__label { font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
/* every day looks the same: same font and colour, no "today" highlight */
.hours th, .hours td { font-weight: inherit; color: var(--ivory); }
.hours th { text-align: left; padding: 6px 12px 6px 0; }
.hours td { text-align: right; padding: 6px 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the opening night under the table, until the opening */
.hours__note { margin-top: 12px; font-size: 13px; color: var(--brass); }
.info-link { display: block; width: max-content; padding-block: 3px; transition: color .4s var(--ease); }
.info-link:hover { color: var(--brass); }
.info-note { margin-top: 10px; font-size: 14px; color: var(--mute); max-width: 30ch; }

/* ---------- Footer ---------- */
/* a single row, on mobile too */
.site-footer { border-top: 1px solid var(--line); padding-block: 22px; }
.site-footer__inner { display: flex; align-items: center; gap: 12px 32px; }
.site-footer__mark { line-height: 0; margin-right: auto; }
.site-footer__mark svg { display: block; height: 22px; width: auto; aspect-ratio: 1084 / 302; fill: var(--ink-3); stroke: var(--line-brass); stroke-width: 6; }
.site-footer__small { font-size: 12px; color: var(--mute); white-space: nowrap; }
.site-footer__legal a { display: inline-block; padding-block: 6px; color: var(--stone); text-decoration: underline; text-decoration-color: var(--line-brass); text-underline-offset: 3px; transition: color .3s var(--ease); }
.site-footer__legal a:hover { color: var(--brass); }
.site-footer__top { display: inline-block; padding-block: 8px; white-space: nowrap; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }

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

/* ---------- Intro ---------- */
.intro { display: none; }
.has-intro .intro {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: transform 1.1s cubic-bezier(.76, 0, .24, 1);
}
.intro__logo { width: clamp(150px, 34vw, 230px); height: auto; fill: var(--ivory); overflow: visible; }
.intro__word { transform: translateX(126.5px); animation: introWord 1.05s 1s var(--ease-out) forwards; }
.intro__q { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.8); animation: introQ 1s .1s var(--ease-out) forwards; }
.intro__a { opacity: 0; transform: translateX(70px); animation: introSide 1s 1.08s var(--ease-out) forwards; }
.intro__ua { opacity: 0; transform: translateX(-70px); animation: introSide 1s 1.08s var(--ease-out) forwards; }
.intro__line { width: 64px; height: 1px; background: var(--brass); transform: scaleX(0); animation: introLine 1.2s 1.5s var(--ease-out) forwards; }
@keyframes introQ { to { opacity: 1; transform: none; } }
@keyframes introWord { to { transform: none; } }
@keyframes introSide { to { opacity: 1; transform: none; } }
@keyframes introLine { to { transform: scaleX(1); } }
.intro.is-leaving { transform: translateY(-100%); }
.has-intro .intro { animation: introFailsafe 0s 4.5s forwards; }
@keyframes introFailsafe { to { visibility: hidden; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* images: a dark curtain slides away, with a thin brass line on its edge */
.js .reveal .frame::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--ink-3); border-top: 1px solid var(--brass);
  transform-origin: top; transition: transform 1.4s cubic-bezier(.76, 0, .24, 1) .15s;
}
.js .reveal.is-visible .frame::before { transform: scaleY(0); }
.js .reveal .frame img { transform: scale(1.18); }
.js .reveal.is-visible .frame img { transform: scale(1); transition: transform 2.2s var(--ease-out), filter 1s var(--ease); }
.js .reveal.is-visible:hover .frame img { transform: scale(1.04); transition-duration: 1.6s; }
/* photos after the quote have no reveal animation, but keep the gentle zoom on hover */
.gallery__item:hover .frame img, .visit__figure:hover .frame img { transform: scale(1.04); }

/* ---------- Details ---------- */
.hero__address { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-left: auto; margin-right: 32px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .nav, .site-header__cta { display: none; }
  .burger { display: block; }
  .site-header__inner { height: 72px; }
  .philosophy__text { grid-column: 1 / -1; }
  .philosophy__figure { grid-column: 4 / -1; margin-top: 24px; }
  .space__head, .ritual__head { grid-template-columns: 1fr; }
  .visit__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 0 clamp(16px, 4vw, 40px); align-items: center; }
  .visit__main { display: contents; }
  .visit__main > * { grid-column: 1 / -1; }
  .visit__main > .address-link { grid-column: 1; margin-top: clamp(28px, 5vw, 48px); align-self: center; justify-self: start; }
  .visit__figure { grid-column: 2; width: auto; margin-top: clamp(28px, 5vw, 48px); margin-right: calc(var(--gutter) * -1); }
  .visit__figure .frame { aspect-ratio: 3 / 4; }
  .visit__figure .frame::after { inset: 8px; }
  .address-link__city, .address-link__go { display: block; }
  .address-link__go { margin-top: 8px; color: var(--brass); }
  .address-link__sep { display: none; }
  .address-link__city, .visit__badge [data-open-status] { text-wrap: balance; }
  .visit__badge { position: static; margin-top: 10px; padding: 10px 12px; }
  .visit__badge .status { font-size: 10px; letter-spacing: .1em; gap: 8px; line-height: 1.4; }
}

@media (max-width: 800px) {
  /* the ritual steps and the gallery become horizontal swipe strips */
  .ritual__steps, .gallery {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    padding-top: 40px;
  }
  .ritual__steps::-webkit-scrollbar, .gallery::-webkit-scrollbar { display: none; }
  .ritual { --step-num: 58px; }
  .ritual__steps { padding-top: 30px; margin-top: 14px; }
  .gallery { grid-auto-columns: 82%; padding-top: 0; gap: 16px; }
  .gallery .frame { height: auto; aspect-ratio: 4 / 5; }
  .step, .gallery__item { scroll-snap-align: start; }
  .step:nth-child(2), .gallery__item--b { margin-top: 0; }
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .hero__still, .hero__video {
    width: 100%; height: 66%;
    -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  }
  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(14,21,20,.6) 0%, rgba(14,21,20,0) 16%),
      linear-gradient(0deg, var(--ink) 30%, rgba(14,21,20,.55) 50%, rgba(14,21,20,0) 78%);
  }
  .hero__title .line:nth-child(2) { padding-left: 28px; }
  .countdown { gap: 14px; }
  .countdown__label { font-size: 11px; }
  .countdown__units { gap: 14px; }
  .countdown__num { font-size: 42px; }
  .countdown__cap { font-size: 10px; letter-spacing: .18em; }
  .countdown__sep { height: 36px; }
  .hero__meta { padding-block: 18px 22px; }
  .hero__actions .btn { width: 100%; }
  .philosophy__figure { grid-column: 1 / -1; }
  .grain { display: none; }
  .drink { padding: 22px 0; }
  .philosophy__figure .frame { aspect-ratio: 4 / 3; }
  .address-link__text { font-size: clamp(24px, 6.9vw, 34px); line-height: 1.08; text-wrap: balance; }
  .address-link__sub { margin-top: 12px; font-size: 9.5px; letter-spacing: .18em; line-height: 1.6; }
  .address-link { padding-bottom: 14px; }
  .show-sm { display: inline; }
  .visit__info { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 20px; margin-top: 36px; }
  .visit__info .info-block:first-child { grid-row: span 2; }
  .visit__info .info-block:nth-child(3) { margin-top: 18px; }
  .visit__info .info-block { padding-top: 16px; font-size: clamp(14px, 4.1vw, 16px); line-height: 1.5; }
  .visit__info .info-block__label { font-size: 10.5px; letter-spacing: .22em; margin-bottom: 12px; }
  .visit__info .hours { font-size: inherit; }
  .visit__info .hours tr { display: block; padding-block: 3px; }
  .visit__info .hours th, .visit__info .hours td { display: block; padding: 0; text-align: left; }
  /* Monday fits on one line: "Lunedì  Chiuso" */
  .visit__info .hours tr[data-days="1"] { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
  .visit__info .info-link { white-space: nowrap; padding-block: 3px; }
  .site-footer { padding-block: 18px; }
  .site-footer__inner { gap: 8px; flex-wrap: wrap; }
  .site-footer__mark svg { height: clamp(12px, 3.6vw, 14px); stroke-width: 8; }
  .site-footer__small { font-size: clamp(8.5px, 2.68vw, 10.5px); }
  .site-footer__top { font-size: 13px; letter-spacing: 0; padding: 6px 0 6px 4px; }
}

@media (max-width: 400px) {
  .hero__meta .scroll-cue { display: none; }
}

/* phones in landscape and very short screens */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 64px; }
  .hero__title { font-size: clamp(36px, 13vh, 64px); }
  .hero__content { padding-bottom: 18px; }
  .hero__actions { margin-top: 12px; }
  .hero__meta { padding-block: 12px; }
  .countdown__label, .scroll-cue, .hero__address { display: none; }
  .countdown__num { font-size: 30px; }
  .countdown__sep { height: 26px; margin-top: 2px; }
  .countdown__cap { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js [data-hero-step] { opacity: 1; transform: none; }
  .js .reveal .frame::before { display: none; }
  .js .reveal .frame img { transform: none; }
  .has-intro .intro { display: none; }
  .hero__video { display: none; }
}

[tabindex="-1"]:focus { outline: none; }

/* ---------- Privacy and cookie page ---------- */
.legal-top { border-bottom: 1px solid var(--line); }
.legal-top__inner { height: 84px; display: flex; align-items: center; gap: 24px; }
.legal { max-width: 860px; padding-block: clamp(56px, 8vw, 104px) clamp(64px, 8vw, 112px); }
.legal .eyebrow { margin-bottom: 20px; color: var(--brass); }
.legal .lead { margin-top: 24px; max-width: 60ch; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; padding-block: 18px; border-block: 1px solid var(--line); }
.legal__toc a { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); padding-block: 6px; }
.legal__section { margin-top: clamp(48px, 6vw, 80px); scroll-margin-top: 24px; }
.legal h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; }
.legal h3 { margin-top: 36px; margin-bottom: 10px; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.legal p, .legal__list { color: var(--stone); max-width: 68ch; }
.legal p + p { margin-top: 14px; }
.legal strong { color: var(--ivory); font-weight: 500; }
.legal a:not(.link-arrow) { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--line-brass); text-underline-offset: 3px; }
.legal__note { margin-top: 10px; font-size: 14px; color: var(--mute) !important; }
.legal__list { padding-left: 1.1em; list-style: disc; }
.legal__list li + li { margin-top: 6px; }
.legal__list li::marker { color: var(--brass); }
.legal code { font-size: .9em; color: var(--ivory); }
.legal__table-wrap { margin-block: 16px; overflow-x: auto; }
.legal__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal code { white-space: nowrap; }
.legal__table th { text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
.legal__table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); color: var(--stone); vertical-align: top; }
.legal__updated { margin-top: 56px; font-size: 13px; color: var(--mute) !important; }
.todo { background: none; color: var(--brass); border-bottom: 1px dashed var(--brass); }
@media (max-width: 640px) {
  .legal__table thead { display: none; }
  .legal__table tr { display: block; border-bottom: 1px solid var(--line); padding-block: 8px; }
  .legal__table td { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 6px 0; border: 0; }
  .legal__table td::before { content: attr(data-label); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
}

/* ---------- 404 page ---------- */
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(48px, 10vh, 120px); }
.notfound__code {
  font-family: var(--serif); font-style: italic; font-weight: 300; line-height: .9;
  font-size: clamp(110px, 22vw, 240px); color: transparent; -webkit-text-stroke: 1px var(--brass);
  margin-bottom: clamp(8px, 2vw, 20px);
}
.notfound .eyebrow { margin-bottom: 14px; }
.notfound .lead { margin-top: 18px; }
.notfound__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: clamp(28px, 4vw, 44px); }

/* ---------- carta.html page (the QR code menu) ---------- */
/* fixed photo behind the menu: blurred and darkened so the text stays readable */
.carta-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--ink); }
.carta-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(2.5px) saturate(.85) brightness(.72);
  opacity: 0; transform: scale(1.1);
  transition: opacity 1.4s var(--ease), transform 3s var(--ease-out);
}
.carta-bg img.is-loaded { opacity: 1; transform: scale(1.04); }
.carta-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 45%, rgba(14, 21, 20, .2), rgba(14, 21, 20, .7)),
    linear-gradient(180deg, rgba(14, 21, 20, .4) 0%, rgba(14, 21, 20, .5) 50%, rgba(14, 21, 20, .82) 100%);
}
@media (prefers-reduced-motion: reduce) { .carta-bg img { transition: opacity .4s linear; transform: none; } }
.carta { max-width: 860px; padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.carta .eyebrow { margin-bottom: 14px; }
.carta__lead { margin-top: 14px; color: var(--stone); max-width: 52ch; }
/* link to the other menu (food ↔ drinks): always on its own line, under the intro sentence */
.carta__switch { margin-top: 12px; }
.carta__nav {
  position: sticky; top: 0; z-index: 10; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 28px calc(var(--gutter) * -1) 0; padding: 12px var(--gutter);
  background: rgba(14, 21, 20, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.carta__nav::-webkit-scrollbar { display: none; }
.carta__nav[hidden] { display: none; }
.carta__nav a {
  flex: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--stone);
  transition: color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.carta__nav a:hover { color: var(--ivory); border-color: var(--line-brass); }
.carta__nav a.is-active { color: var(--ink); background: var(--brass); border-color: var(--brass); }
/* Opening carta.html#vini, the browser's own jump puts the title where carta.js puts it:
   22px under the category bar (bar 66px + 22px = the page's 88px scroll-padding-top, so the
   section only has to cancel its own top padding). The two jumps agree, with or without JavaScript. */
.carta__cat { padding-top: clamp(36px, 6vw, 60px); scroll-margin-top: calc(-1 * clamp(36px, 6vw, 60px)); }
.carta__title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 6vw, 52px); line-height: 1.05; }
.carta__desc { margin: 8px 0 18px; font-size: 15px; color: var(--stone); }
.carta .drinks { animation: none; }
.carta .drink { padding: 18px 0; }
.carta .drink__name { font-size: clamp(22px, 5.4vw, 30px); }
.carta .drink:hover .drink__name, .carta .drink.is-active .drink__name { transform: none; }
/* Ingredients on one line whenever there is room. The size follows the width of the list:
   (list width - icon column) × 0.023 is the largest size at which the longest recipe on the menu
   (Nautilus, 94 characters) still fits on one line, minus a 6% margin for font rendering
   differences. 16px on desktop and tablet; on phones it never goes below 14px, so the longest
   recipes take two lines there instead of becoming too small to read. */
.carta .drinks { container-type: inline-size; }
.carta .drink__notes { max-width: none; font-size: clamp(14px, calc((100cqi - 46px) * 0.023), 16px); }
.carta__info { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 18px; }
.carta__info h2 { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.carta__info p { font-size: 14px; color: var(--mute); max-width: 62ch; }
.carta__error { margin-top: 40px; color: var(--stone); }
/* reserve room while the menu loads, so the footer does not jump (layout shift) */
.carta:not(.is-ready) [data-carta-body] { min-height: 100vh; }
.carta__top { display: flex; align-items: center; gap: 24px; }
@media (max-width: 640px) {
  .carta .drink { column-gap: 12px; grid-template-columns: 26px auto minmax(16px, 1fr) auto; }
  .carta .drinks--plain .drink { grid-template-columns: auto minmax(16px, 1fr) auto; }
  .carta .drink__glass svg { width: 24px; height: 24px; }
  .drink__prices, .drinks__cols { gap: 10px; }
  .drink__prices .drink__price, .drinks__col { width: 52px; }
  .drink__prices .drink__price { font-size: 20px; }
  .drinks__col { font-size: 9px; letter-spacing: .14em; }
}
