/* ─────────────────────────────────────────────────────────────────────────
   Components — header, footer, buttons, cards, form, motifs
   ───────────────────────────────────────────────────────────────────────── */

/* ── Happy Hour ribbon ─────────────────────────────────────────────────
   Ashton's request, 14 August 2026 (#239): a slim scrolling banner on every
   page so the offer is seen before anyone opens the menu.

   Deliberately NOT `.marquee`. That class is declared twice in this file and
   both rules apply — the live one further down, plus a retired homepage-strip
   rule whose `padding-block: var(--s-5)` alone would make this bar four times
   this height, on top of a border and a `--bg-lift` background. So: own class,
   own keyframes, nothing shared.

   `--hh-h` is the single number this all hangs off. The bar's height reads it,
   `.topbar`'s `top` reads it, `.skip:focus` reads it, and main.js measures the
   rendered element rather than repeating the constant — so retuning the height
   is one edit here.
   ---------------------------------------------------------------------- */
:root { --hh-h: 34px; }
@media (max-width: 600px) { :root { --hh-h: 30px; } }

/* The whole fixed stack — ribbon plus topbar — for anything that has to stop
   below it: the sticky bars on /menu and /whats-on, and every in-page anchor.
   main.js overwrites this on load and whenever the topbar resizes, because the
   real height is 107px at 390 wide, 111 at 600 and 123 from 768 up, and moves
   again while .is-scrolled shrinks the brand. This literal is only what a
   no-JS visitor gets, and it is deliberately the top of that range: an offset
   that is too large leaves a small gap, one that is too small hides the
   control completely, which is the defect this replaced (#255). */
:root { --stack-h: 123px; }

.hh-bar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  /* One above .topbar. They never overlap — .topbar starts at var(--hh-h) —
     but the topbar takes a backdrop-filter when scrolled, and a filtered box
     that outranked this one would blur the ribbon's bottom edge through it. */
  z-index: 51;
  height: var(--hh-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Soft blue ground, secondary navy text: 10.47:1, measured. The inverse also
     clears AA comfortably; this way round was chosen because the ribbon has to
     read as a bright edge above BOTH the navy hero and the cream topbar, and
     navy-on-navy at the top of the homepage would not. */
  background: var(--c-blue-soft);
  color: var(--c-navy-2);
  border-bottom: 1px solid color-mix(in oklch, var(--c-navy-2) 14%, transparent);
}
.hh-bar__track {
  display: flex;
  width: max-content;
  /* 96s across one run, and a run is ten phrases, so a new phrase enters the
     frame every 9.6s at any width by construction — that is the number that
     matters, not the pixel rate, which only tracks how wide the phrase sets:
     46.5px/s from 360px up (446.4px phrase, 4,464.1px run) and 41.3px/s at 320
     (396.8px, 3,967.9px). Slow enough to read as drift rather than motion,
     quick enough that the offer is not a static-looking strip. The site's own
     reviews row runs 20px/s and the weddings gallery 34px/s, so this is the
     same register rather than a new one. (It ran 40.5px/s and 36.0px/s until
     the August copy change; nothing about the timing changed, the phrase just
     got longer — which is the point of pinning the cadence to the run rather
     than to a speed.) */
  animation: hh-scroll 96s linear infinite;
  will-change: transform;
}
/* Hover and keyboard focus both stop it, so the offer can be read at rest.
   The focus half only works because the bar carries tabindex="0" (see
   partials/header.html) — the rule was here before that and could never fire,
   which left a keyboard-only user with no way to stop the motion at all. */
.hh-bar:hover .hh-bar__track,
.hh-bar:focus-within .hh-bar__track { animation-play-state: paused; }
/* Same ring as everything else on the site — 2px of --focus-ring — but pulled
   INSIDE the bar. The site default offsets the outline 3px outward, and this
   element is fixed at top: 0, so the top edge of that ring would be drawn off
   the viewport and the bottom edge over the topbar. A negative offset keeps all
   four sides on the ribbon. Marina blue is 3.61:1 on the soft blue ground
   (measured), clearing the 3:1 that 1.4.11 asks of a focus indicator, so this
   is one of the surfaces that does NOT need the cream override the dark
   sections take in tokens.css. */
.hh-bar:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -3px;
}
.hh-bar__run {
  display: flex;
  width: max-content;
  margin: 0;
}
.hh-bar__item {
  white-space: nowrap;
  font-family: var(--font-body);
  /* This one is unconstrained by width — it scrolls, so it cannot clip — and
     it is deliberately NOT changed when the reduced-motion rule below is. The
     invariant worth keeping is a direction, not an equality: the scrolling
     line is the path most people see, and it must never be SMALLER than the
     static one. It was once, at a 0.6rem floor that held from 640px down —
     9.6px scrolling against 10.24px static, which is backwards. Since the
     August copy change the two differ again, the safe way round: 10.24px
     scrolling against 9.6px static at 320. Don't "restore" the match by
     shrinking this one. Bar height is `height: var(--hh-h)`, a token, so
     neither size moves the layout either way. The loop is unaffected — both
     runs carry the same ten items, so the track stays exactly twice a run
     whatever the type measures. */
  font-size: clamp(0.64rem, 3.2vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
/* The joining dot hangs off the item rather than coming from a flex `gap`: a
   gap applies BETWEEN items only, so each run would end half a gap short of a
   whole period and the loop would jump once a cycle. Same trap documented on
   the reviews marquee below. */
.hh-bar__item::after {
  content: '·';
  padding-inline: 1.15em;
  opacity: 0.5;
}
@keyframes hh-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
/* Reduced motion: not a frozen half-scrolled frame. The animation stops, the
   duplicate run and every repeat come off, and the single remaining phrase is
   centred. Its size is capped against the viewport as well as the root so it
   still fits inside `overflow: hidden` on a 320px phone. */
@media (prefers-reduced-motion: reduce) {
  .hh-bar__track {
    animation: none;
    width: 100%;
    justify-content: center;
  }
  .hh-bar__run[aria-hidden="true"],
  .hh-bar__item[aria-hidden="true"] { display: none; }
  /* Fit is set by the phrase's width-to-font-size ratio, and the ratio moved
     when the copy did: "TAPAS & HAPPY HOUR · WED–SUN · 4–6PM · $15 COCKTAILS"
     measures 32.92x its font size at 0.1em, against 28.3x for the shorter
     "HAPPY HOUR · EVERY DAY" line it replaced. At the old 3.2vw/0.1em that
     overflowed a 320px bar by 17.1px and a 360px bar by 19.2px — and .hh-bar
     is `overflow: hidden`, so it clipped in silence rather than reporting
     anything.

     Buying the fit with size alone costs too much: 0.1em needs 2.92vw, or
     9.36px at 320, and an earlier 2.1vw was illegible at 6.7px, so type size
     is the wrong lever to pull twice. Tracking is the cheaper one — the ratio
     falls about 0.52 per 0.01em removed (measured across 0.04—0.10em). At
     0.07em the ratio is 31.36, 3.0vw fits 320 with 19.0px to spare, and the
     line still reads as tracked uppercase rather than set solid.

     Measure this with a CLONE of the element appended to the body, never by
     setting styles on the live one: an inline style on an .hh-bar__item lands
     in the style attribute and never reaches the computed value — for `color`
     as much as for `font-size` — so a sweep that mutates it in place returns
     the same number for every candidate and reads as "the change does
     nothing". A clone keeps the class, so family, weight and transform still
     come from here; validate it by reproducing the live width first. */
  .hh-bar__item {
    font-size: min(0.72rem, 3.0vw);
    letter-spacing: 0.07em;
  }
  .hh-bar__item::after { content: none; }
}

/* In-page links scroll their destination to y=0 (main.js uses
   scrollIntoView({block:'start'}), and a bare fragment does the same), so the
   fixed stack has always covered the top of it. The ribbon added var(--hh-h) to
   that stack and took the same amount off every destination: measured after the
   reveal transitions settle, /menu#menu-downloads lost its "Planning something
   bigger?" heading by 10px at 900px wide, and /weddings#gallery lost "Moments to
   last a lifetime" by 10px at 390 and 17px at 900. Both cleared on main.

   #253 gave back exactly what the ribbon took and no more, deliberately leaving
   the topbar's own overlap alone as not that change's to alter. #255 is that
   change: --stack-h is the ribbon AND the topbar, so a destination now lands
   below the whole fixed stack rather than 89px underneath it. The extra --s-4
   is breathing room — landing exactly on the boundary puts the heading's cap
   line against the topbar's edge, which reads as clipped even though it isn't.

   `:where()` keeps the rule at zero specificity so it can never fight a page's
   own scroll-margin, and scroll-margin-top is block-axis only, so the
   horizontal carousel snapping on /menu, /live-music and /visit is untouched. */
:where([id]) { scroll-margin-top: calc(var(--stack-h) + var(--s-4)); }

/* ── Top bar / nav ────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  inset-inline: 0;
  /* Offset by the Happy Hour ribbon (#239). The ribbon is fixed too, so
     stacking it above this in the markup would overlap it, not push it down. */
  top: var(--hh-h);
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-4) var(--gutter);
  color: var(--c-bone);
  transition: background-color var(--d-base) var(--ease-out-expo),
              color var(--d-base) var(--ease-out-expo),
              backdrop-filter var(--d-base) var(--ease-out-expo),
              border-color var(--d-base) var(--ease-out-expo);
  border-bottom: 1px solid transparent;
}
/* Pin items to their tracks explicitly. When nav is display:none on
   mobile, grid auto-flow would otherwise drop nav-actions into track 2
   (the empty 1fr), making it appear in the middle of the topbar. */
.brand        { grid-column: 1; }
.nav          { grid-column: 2; }
.nav-actions  { grid-column: 3; justify-self: end; }
.topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in oklch, var(--c-azul-deep) 70%, transparent),
    transparent);
  pointer-events: none;
  transition: opacity var(--d-base) var(--ease-out-expo);
}
.topbar.is-scrolled {
  background: color-mix(in oklch, var(--c-bone) 92%, transparent);
  /* Brand blue when scrolled — logo (via mask), icons, hamburger lines all
     pick this up via currentColor. Reads as the brand instead of plain dark. */
  color: var(--c-azul);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line-soft);
}
.topbar.is-scrolled::before { opacity: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 1;
  height: 64px;
}
.brand-mark {
  display: block;
  height: 100%;
  /* Logo aspect is 416 × 324 (~1.28:1). Width set to fit the full
     "Azul By Omar" wordmark including the secondary "By Omar" line. */
  width: 100px;
  aspect-ratio: 416 / 324;
  background-color: currentColor;
  -webkit-mask-image: url('/assets/img/logo.svg');
  mask-image: url('/assets/img/logo.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: left center;
  mask-position: left center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.topbar.is-scrolled .brand { height: 56px; }
@media (max-width: 720px) {
  .brand { height: 52px; }
  .topbar.is-scrolled .brand { height: 48px; }
  .brand-mark { width: 78px; }
}
@media (max-width: 480px) {
  .brand { height: 44px; }
  .topbar.is-scrolled .brand { height: 40px; }
  .brand-mark { width: 64px; }
}

.nav {
  display: flex;
  justify-content: center;
  /* Condensed to seat 10 caps items across a single desktop row. */
  gap: clamp(0.55rem, 1.1vw, 1.35rem);
  position: relative;
  z-index: 1;
}
.nav a {
  font-size: clamp(0.64rem, 0.72vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  position: relative;
  padding: var(--s-2) 0;
  white-space: nowrap;
  transition: opacity var(--d-fast) ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease-out-expo);
}
.nav a:hover { opacity: 0.7; }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  position: relative;
  z-index: 1;
}
.nav-actions .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in oklch, currentColor 30%, transparent);
  color: inherit;
  transition: background-color var(--d-fast) ease, border-color var(--d-fast) ease;
}
.nav-actions .icon-btn:hover {
  background: color-mix(in oklch, currentColor 10%, transparent);
}
.nav-actions .icon-btn svg { width: 18px; height: 18px; }
/* Directions button is a phone affordance — on desktop the footer and the
   Visit page carry the map link, and the bar already has Reserve. */
.nav-actions .icon-btn--map { display: none; }
@media (max-width: 1080px) {
  .nav-actions .icon-btn--map { display: inline-flex; }
  /* 10 caps nav items need ~1100px to sit on one row; below that the
     hamburger drawer takes over so the bar never crowds. */
  .nav { display: none; }
  /* Reserve text was being hidden, leaving an empty pill — better to drop
     the whole button on mobile. The hamburger drawer carries the reserve
     CTA via its first link. */
  .nav-actions .btn--reserve { display: none; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  flex: 0 0 44px;
  border-radius: var(--r-pill);
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in oklch, currentColor 30%, transparent);
}
.nav-toggle .bar {
  width: 18px; height: 1.5px; background: currentColor;
  position: relative; display: block;
}
.nav-toggle .bar::before, .nav-toggle .bar::after {
  content: ''; position: absolute; inset-inline: 0; height: 1.5px; background: currentColor;
  transition: transform var(--d-base) var(--ease-out-expo);
}
.nav-toggle .bar::before { top: -6px; }
.nav-toggle .bar::after  { top:  6px; }
@media (max-width: 1080px) { .nav-toggle { display: inline-flex; } }

/* ── Topbar controls over the hero photograph (#184) ───────────────────
   While the topbar is transparent the controls are cream strokes sitting
   directly on the aerial. Averaged, that reads fine — 5.7:1 to 9:1 behind
   the three buttons. The average is the wrong measure for a 1px stroke on
   a photograph. Sampling only the backdrop behind the hamburger glyph on
   the reported device: median 8.58:1, but the 5th percentile is 1.01:1 and
   22% of it falls under 3:1. Those are white boat hulls and sun glare, and
   a cream stroke crossing one disappears — which is why the control is
   hard to find even though the mean says it is fine.

   The blur is what fixes it, not the tint. Blurring resolves the backdrop
   to its local mean, which is exactly the high-frequency white detail that
   causes this. Measured after: p05 rises 1.01 → 2.60:1, median 8.58 →
   11.99:1, and the sub-3:1 tail falls 22% → 7%.

   The tint is held at 30% on evidence. Raising it to 40% moved p05 by 0.02
   and the tail by one point — the blur had already taken the gain, so a
   darker disc would have cost the outline look for nothing. The remaining
   sub-3:1 pixels are the antialiased glyph edge, not backdrop.

   Deliberately not a scrim change. The existing .topbar::before gradient
   fades to transparent at the topbar's bottom edge, so it is strongest
   where there is nothing to protect and weakest exactly where the controls
   sit — and rebalancing it would only suit this photograph. This works
   against any image, which matters because the hero is meant to become
   client video. Drops away entirely once .is-scrolled paints a cream bar.

   Reserve was left out of the first pass (#185) and is the one control with
   words rather than a glyph, so it has the most cream crossing the photograph.
   It takes the same treatment through the .btn custom properties rather than a
   flat `background`, because .btn paints from --btn-bg and a direct background
   would be overridden by it — and by the .is-scrolled rule that turns the
   button solid navy. Only the transparent state is touched. */
.topbar:not(.is-scrolled) .icon-btn,
.topbar:not(.is-scrolled) .nav-toggle {
  background: color-mix(in oklch, var(--c-navy) 30%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: color-mix(in oklch, var(--c-bone) 45%, transparent);
}
.topbar:not(.is-scrolled) .btn--reserve {
  --btn-bg: color-mix(in oklch, var(--c-navy) 30%, transparent);
  --btn-line: color-mix(in oklch, var(--c-bone) 45%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.topbar:not(.is-scrolled) .icon-btn:hover {
  background: color-mix(in oklch, var(--c-navy) 50%, transparent);
}
.topbar:not(.is-scrolled) .btn--reserve:hover {
  --btn-bg: color-mix(in oklch, var(--c-navy) 50%, transparent);
}
/* Without backdrop-filter the tint is carrying it alone, and 30% only
   reaches 1.91:1 on the worst pixel. 55% clears 3:1 there. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar:not(.is-scrolled) .icon-btn,
  .topbar:not(.is-scrolled) .nav-toggle {
    background: color-mix(in oklch, var(--c-navy) 55%, transparent);
  }
  .topbar:not(.is-scrolled) .btn--reserve {
    --btn-bg: color-mix(in oklch, var(--c-navy) 55%, transparent);
  }
}
/* The wordmark is a CSS mask, so a disc behind it would box the logo in.
   drop-shadow follows the mask's alpha and keeps the letterform clean. */
.topbar:not(.is-scrolled) .brand-mark {
  filter: drop-shadow(0 1px 3px color-mix(in oklch, var(--c-navy) 60%, transparent));
}

body.menu-open { overflow: hidden; }
body.menu-open .nav-toggle .bar { background: transparent; }
body.menu-open .nav-toggle .bar::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle .bar::after  { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  color: var(--fg-on-deep);
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* Top pad carries + var(--hh-h) for the Happy Hour ribbon (#239). This panel
     is z-index 40 and the fixed stack above it is 50/51, so the drawer renders
     UNDER the topbar deliberately — that is how the close button stays usable.
     The cost is that any height added above pushes the first link behind the
     topbar rather than over it: 22.7px of "Restaurant" disappeared at 390px
     without this term, measured. */
  padding: calc(clamp(5rem, 10vh, 7rem) + var(--hh-h)) var(--gutter) var(--s-7);
  /* The panel is viewport-sized (inset: 0) but its content is not: eleven
     display-size links plus the contact row outgrow a short phone — 67px past
     the fold at 390x667 before the ribbon existed, 97px after it added its
     height to the top padding. Without this, everything past "Visit" simply
     cannot be reached. The 1fr row's auto minimum keeps the grid taller than
     the track, so the container scrolls rather than the centred nav clipping
     at both ends. overscroll-behavior stops the rubber-band handing the
     gesture to the page underneath. */
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1rem);
  transition: opacity var(--d-base) var(--ease-out-expo),
              transform var(--d-base) var(--ease-out-expo);
}
body.menu-open .mobile-nav {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.mobile-nav nav {
  display: grid;
  align-content: center;
  gap: var(--s-4);
}
.mobile-nav nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -0.02em;
  font-weight: 350;
  font-variation-settings: 'opsz' 96, 'SOFT' 40;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6ch;
}
.mobile-nav nav a .num {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  opacity: 0.6;
}
.mobile-nav .footer-info {
  font-size: 0.85rem;
  opacity: 0.7;
  display: grid;
  gap: var(--s-2);
}
.mobile-nav .footer-info a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--c-saffron);
  --btn-fg: var(--c-on-saffron);
  --btn-line: var(--c-saffron);
  display: inline-flex;
  align-items: center;
  gap: 0.7ch;
  padding: 0.85em 1.55em;
  min-height: 44px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  transition: transform var(--d-fast) var(--ease-out-expo),
              background-color var(--d-base) var(--ease-out-expo),
              color var(--d-base) var(--ease-out-expo),
              border-color var(--d-base) var(--ease-out-expo);
  -webkit-tap-highlight-color: transparent;
}
.btn .arr {
  width: 18px; height: 10px;
  flex: 0 0 18px;
  transition: transform var(--d-base) var(--ease-out-expo);
}
.btn:hover { transform: translateY(-1px); }
.btn:hover .arr { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-line: color-mix(in oklch, currentColor 40%, transparent);
}
/* Hover fills the outline with the brand navy and flips the label to cream.
   Three traps, all hit in the version this replaced (navy-on-navy, ~1.1:1, on
   the home hero, /menu, /about and /weddings):

   · `--btn-bg: currentColor` is circular. .btn sets `color: var(--btn-fg)`, so
     currentColor resolves to the button's OWN colour, not the section's — the
     moment hover also set --btn-fg, the fill and the label became the same
     navy. Both halves have to be named outright.
   · --c-navy-2, not --c-azul. --c-azul flips to cream inside the dark-section
     list in tokens.css, so the semantic token would paint a cream pill under a
     cream label on every dark hero — the same failure one layer along.
   · --c-navy-2, not --c-azul-deep. .visit-cta and .page-hero ARE --c-azul-deep,
     so filling with it painted the pill the exact colour of the section behind
     it and the button vanished on hover rather than merely going unreadable.
   Cream on --c-navy-2 is 12.1:1. The outline is the one place the semantic
   token is the RIGHT reference: --c-saffron already resolves to this same navy
   on light sections (so the pill is flat and crisp on cream) and to cream on
   the dark ones (so the edge stays legible where the fill is only a step
   lighter than the background). It follows the dark-section list on its own if
   a section ever changes side. */
.btn--ghost:hover {
  --btn-bg: var(--c-navy-2);
  --btn-fg: var(--c-cream);
  --btn-line: var(--c-saffron);
}

.btn--ink {
  --btn-bg: var(--c-ink);
  --btn-fg: var(--c-bone);
  --btn-line: var(--c-ink);
}
.btn--ink:hover {
  --btn-bg: var(--c-azul-deep);
  --btn-line: var(--c-azul-deep);
}

.btn--lg {
  padding: 1em 1.85em;
  font-size: 0.92rem;
}

/* Reserve button (in header) */
.btn--reserve {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-line: color-mix(in oklch, currentColor 35%, transparent);
  padding: 0.65em 1.25em;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.topbar.is-scrolled .btn--reserve {
  --btn-bg: var(--c-azul);
  --btn-fg: var(--c-bone);
  --btn-line: var(--c-azul);
}

/* ── Takeaway CTA (shared across menu, weddings, corporate, celebrations) ── */
.menu-takeaway-cta {
  margin-top: var(--s-7);
  padding: var(--s-6) var(--s-7);
  background: var(--c-saffron-soft);
  border: 1px solid color-mix(in oklch, var(--c-saffron) 50%, transparent);
  border-radius: var(--r-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
}
.menu-takeaway-cta p {
  /* 42ch broke this into three lines against the button; the band is far wider
     than the copy needs, so let it run to two (Thomas, 2026-08-07). */
  max-width: 76ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 350;
  font-variation-settings: 'opsz' 60, 'SOFT' 50;
  line-height: 1.45;
}
.menu-takeaway-cta .btn {
  --btn-fg: var(--c-bone);
  --btn-line: var(--c-azul);
  padding: 1.1em 2em;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 10px color-mix(in oklch, var(--c-azul) 28%, transparent),
              0 1px 2px color-mix(in oklch, var(--c-azul-deep) 25%, transparent);
}
.menu-takeaway-cta .btn:hover {
  --btn-bg: var(--c-azul-deep);
  --btn-line: var(--c-azul-deep);
  box-shadow: 0 6px 20px color-mix(in oklch, var(--c-azul) 38%, transparent),
              0 2px 4px color-mix(in oklch, var(--c-azul-deep) 30%, transparent);
}
.menu-takeaway-cta .btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .menu-takeaway-cta {
    padding: var(--s-5) var(--s-5);
    gap: var(--s-4);
  }
  .menu-takeaway-cta p { font-size: 1.05rem; }
}

/* ── Link underline ──────────────────────────────────────────────────── */
.link {
  position: relative;
  padding-bottom: 0.1em;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: background-size var(--d-base) var(--ease-out-expo);
}
.link:hover { background-size: 0 1px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6ch;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.link-arrow .arr { transition: transform var(--d-base) var(--ease-out-expo); }
.link-arrow:hover .arr { transform: translateX(5px); }


/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  /* Primary navy, matching the header band over the hero — Ashton, 2026-08-05:
     the monogram tile "reads too dark/black", so the footer now shares the
     header's colour and the site closes on the same navy it opens with.
     Raw --c-navy, NOT --c-azul-deep: `.footer` sits in the dark-section list in
     tokens.css, and using a token that list rewrites is how the short-footer
     variant below once painted cream under cream text. */
  background: var(--c-navy);
  color: var(--fg-on-deep);
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-bottom: var(--s-3);
  position: relative;
  overflow: hidden;
  font-size: 0.86rem;
}
/* LV-style monogram pattern fill — used by both footer + visit-cta */
.footer-monogram {
  position: absolute;
  inset: 0;
  color: color-mix(in oklch, var(--c-saffron) 75%, var(--c-bone));
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.footer-monogram svg { width: 100%; height: 100%; display: block; }
/* Where the visit CTA sits flush above the footer (about, restaurant, boat
   catering) the two layers are one continuous field, so they have to be one
   weight as well — 0.06 against the band's 0.08 read as a brightness step
   across the seam even once the tiles were in phase. Matched on the band's
   value so the section stays as it was and the footer continues it. Scoped
   rather than global: the twelve pages with no CTA have no seam, and none of
   these three take body[data-footer="short"], which sets its own 0.12. */
body:has(.visit-cta) .footer-monogram { opacity: 0.08; }
@media (max-width: 720px) {
  .footer-monogram { opacity: 0.05; }
  body:has(.visit-cta) .footer-monogram { opacity: 0.06; }
}
.footer .wrap { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5) var(--s-5);
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
  /* Hide the Wander column on mobile — the full nav lives in the mobile menu */
  .footer-grid > :nth-child(4) {
    display: none;
  }
  /* (Hours flex layout is now the default — no mobile override needed.) */
}
.footer h2 {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: color-mix(in oklch, var(--c-bone) 55%, transparent);
  margin-bottom: var(--s-3);
}
.footer ul {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  line-height: 1.35;
}
.footer-hours li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.5rem;
  row-gap: 0.15rem;
}
.footer-hours li > span {
  opacity: 0.55;
}
.footer-hours li > em {
  font-style: normal;
}
.footer a:hover { color: var(--c-saffron); }
.footer-tag {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 350;
  font-style: italic;
  font-variation-settings: 'opsz' 36, 'SOFT' 50, 'WONK' 1;
  line-height: 1.35;
  margin-bottom: var(--s-3);
  max-width: 32ch;
}
.footer-tag::before {
  content: '«';
  margin-right: 0.2ch;
  opacity: 0.5;
}
.footer-tag::after {
  content: '»';
  margin-left: 0.2ch;
  opacity: 0.5;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-on-deep);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: color-mix(in oklch, var(--c-bone) 50%, transparent);
}
.footer-bottom > div { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--c-bone); }
@media (max-width: 880px) {
  .footer { padding-top: clamp(2rem, 5vw, 3rem); font-size: 0.8rem; }
  .footer ul { font-size: 0.78rem; gap: 0.3rem; }
  .footer-tag {
    font-size: 0.92rem;
    line-height: 1.4;
    max-width: 42ch;
    margin-bottom: var(--s-3);
  }
  .footer h2 { margin-bottom: var(--s-2); font-size: 0.62rem; }
}
@media (max-width: 480px) {
  .footer-tag { font-size: 0.88rem; max-width: none; }
}

/* ── Footer · short variant ───────────────────────────────────────────
   Applied via [data-footer="short"] on <body>. Used on pages that end in a
   form / spec block rather than the dark visit-cta: the Wander column is
   suppressed so the strip stays compact (corporate, weddings, celebrations,
   visit, the legal pages, 404).

   Same colour as the long footer since 2026-09-10. It was --c-navy-2 from
   2026-05-15, when the long footer was charcoal and a lighter close read as
   "the page ends here"; once the long footer moved to --c-navy (Ashton,
   2026-08-05) the short one was never revisited, and six of the ten launch
   pages closed on a navy the header never uses. The layout differs, the
   colour does not — and nothing that depended on the lighter blue (the
   lifted monogram opacity, the softened hour-row rule) survives it. */
body[data-footer="short"] .footer {
  padding-top: clamp(2rem, 4vw, 2.75rem);
}
body[data-footer="short"] .footer-grid {
  /* Three columns instead of four — drop Wander */
  grid-template-columns: 1.6fr 1fr 1fr;
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}
body[data-footer="short"] .footer-grid > :nth-child(4) {
  display: none;
}
@media (max-width: 880px) {
  body[data-footer="short"] .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Card / panel ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-lift);
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  transition: transform var(--d-base) var(--ease-out-expo),
              box-shadow var(--d-base) var(--ease-out-expo),
              border-color var(--d-base) var(--ease-out-expo);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in oklch, var(--c-saffron) 50%, transparent);
}

/* ── Image plate (cinematic photo container) ─────────────────────────── */
.plate {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(80% 60% at 30% 30%, color-mix(in oklch, var(--c-azul-glow) 35%, transparent), transparent 70%),
    radial-gradient(60% 80% at 80% 90%, color-mix(in oklch, var(--c-clay) 30%, transparent), transparent 70%),
    linear-gradient(135deg, var(--c-navy-2), var(--c-navy));
}
.plate::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 18% 22%, color-mix(in oklch, var(--c-bone) 30%, transparent) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 18%, color-mix(in oklch, var(--c-bone) 22%, transparent) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 32%, color-mix(in oklch, var(--c-bone) 28%, transparent) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 12% 60%, color-mix(in oklch, var(--c-bone) 18%, transparent) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 70%, color-mix(in oklch, var(--c-bone) 25%, transparent) 50%, transparent 51%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: transform 1500ms var(--ease-out-expo), opacity 600ms ease;
}
.plate img:not([src]),
.plate img[src=""] { opacity: 0; }
.plate:hover img { transform: scale(1.04); }

.plate--landscape { aspect-ratio: 16 / 10; }
.plate--tall { aspect-ratio: 4 / 5; }

/* EVERYTHING DECORATIVE INSIDE A .plate NEEDS A z-index ABOVE THE PHOTO.
   .plate img carries `z-index: 1` so it paints over .plate::before, the speckle
   placeholder. The caption and the inset hairline were both positioned with
   z-index auto, and inside a stacking context (.plate sets `isolation`) a
   positive z-index paints AFTER every auto/0 one — so the photograph covered
   both. They were not low-contrast, they were not drawn at all (#328). That is
   six captions on /restaurant, and the hairline on every framed plate that
   holds a photo — /, /restaurant and /corporate. /boat-catering is the one
   exception and it is the proof: its plate holds an `.img-placeholder`, not an
   <img>, so nothing was on top of it and its hairline was visible all along.

   Measured, not reasoned. elementFromPoint at the caption's own coordinates
   returned IMG and now returns SPAN; recolouring the hairline red changed 0
   pixels before and 2810 after. Two traps if you re-check this: a plate can be
   taller than the viewport, so centring the PLATE puts its caption off-screen
   and the hit test returns nothing; and Page.captureScreenshot with
   captureBeyondViewport re-rasterises and PAINTS THE CAPTION THAT THE REAL
   VIEWPORT DOES NOT — a full-page screenshot of the broken state shows the
   caption sitting there perfectly. Use viewport captures and hit tests.

   Add anything else to .plate and it inherits this. */
.plate .caption {
  position: absolute;
  z-index: 2;
  inset-inline: var(--s-5);
  bottom: var(--s-4);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-bone);
  text-shadow: 0 1px 6px rgb(0 0 0 / 0.4);
}
/* The scrim, and why it is this strong. Once the captions were visible, all
   twelve instances (six photos x two widths) failed WCAG AA — median 1.7:1 to
   5.0:1 against the actual pixels behind the glyphs, with 41-93% of each
   caption's own area under 4.5:1. A text-shadow alone moves the median by less
   than 0.5 and is worth nothing at the worst pixels, which is why the shadow
   the component already had never rescued it. Modelled against those measured
   backgrounds, navy needs 0.576 for EVERY pixel behind the text to clear 4.5:1
   (0.49 gets the worst 5% there, which is not the same claim). 0.62 is what
   shipped: at 0.58 the worst pixel measures 4.57:1, a 1.6% margin on a page
   whose photography is going to be replaced after Omar's shoot, and a brighter
   crop would put it back under. Cream also goes back to full strength — the old
   `opacity: 0.85` was costing contrast for nothing, and dropping it is worth
   about 0.05 alpha of scrim.

   Geometry, and the trap in it: the caption is inset --s-5 and sits --s-4 off
   the bottom, so the negative insets take the scrim to the plate's own edges.
   The gradient must reach full strength ABOVE the text, not at it — with the
   hold ending exactly on the caption's top edge the measured alpha at the glyph
   tops was 0.52 rather than 0.58, and that alone left 3% of one caption under
   AA while every other number looked fine. So the box extends --s-5 * 3 above
   the caption and holds full strength to `100% - var(--s-5) * 2`, which is
   24px clear of the tallest glyph whatever the text wraps to.
   It hangs off .caption rather than .plate on purpose: a plate with no caption
   (the homepage manifesto photo, /boat-catering, /corporate) must not gain a
   fade nobody asked for. */
.plate .caption::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset-inline: calc(var(--s-5) * -1);
  bottom: calc(var(--s-4) * -1);
  top: calc(var(--s-5) * -3);
  background: linear-gradient(to top,
    color-mix(in oklch, var(--c-navy) 62%, transparent) 0,
    color-mix(in oklch, var(--c-navy) 62%, transparent) calc(100% - var(--s-5) * 2),
    transparent 100%);
  pointer-events: none;
}
.plate.is-frame::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 12px;
  border: 1px solid color-mix(in oklch, var(--c-bone) 30%, transparent);
  pointer-events: none;
}

/* ── Skip link ────────────────────────────────────────────────────────── */
.skip {
  position: absolute;
  top: -3rem;
  left: var(--gutter);
  background: var(--c-ink);
  color: var(--c-bone);
  padding: 0.6em 1em;
  border-radius: var(--r-pill);
  z-index: 999;
  transition: top 200ms var(--ease-out-expo);
}
/* Clears the Happy Hour ribbon (#239) rather than landing across it — the link
   outranks the ribbon on z-index, so without this it reads as a pill sitting on
   top of scrolling text. */
.skip:focus { top: calc(var(--hh-h) + 0.8rem); }

/* ── Forms ───────────────────────────────────────────────────────────── */
.field {
  display: grid;
  gap: var(--s-2);
}
.field label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.field .req { color: var(--c-clay-text); }

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.95em 1em;
  min-height: 48px; /* iOS touch target */
  background: transparent;
  border: 1px solid var(--line-field);
  border-radius: var(--r-sm);
  font-size: 16px; /* prevents iOS zoom on focus */
  color: var(--fg);
  transition: border-color var(--d-fast) ease, background var(--d-fast) ease;
}
.textarea { min-height: 8rem; }
.section--ink .input,
.section--ink .select,
.section--ink .textarea,
.section--night .input,
.section--night .select,
.section--night .textarea {
  border-color: var(--line-field-on-deep);
  color: var(--c-bone);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--c-azul);
  background: color-mix(in oklch, var(--c-azul) 6%, transparent);
}
.textarea { min-height: 8rem; resize: vertical; }
.select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%231a2a45' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.section--ink .select,
.section--night .select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23f0e8d8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>");
}

/* ── Enquiry form outcome states (#340) ─────────────────────────────────
   The POST to /api/enquiry became the only delivery path when the `mailto:`
   handoff was retired, so both outcomes now have to be visible on the page
   rather than handed to the visitor's mail client.

   Both span the full grid. The four enquiry forms are two-column grids, so an
   element left to flow lands in column one at half width — which the
   confirmation card did from the day it was written, unnoticed while it was
   only ever the second thing a visitor saw after their mail app opened.

   Colours are tokens that already invert on dark sections (see the dark-section
   list in tokens.css), because the four forms sit on three different grounds.
   --c-clay-text is the terracotta that clears AA on all of them; --c-terra
   does not, and is decorative only. */
form[data-form] [data-form-done] {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem;
}
.form-error {
  grid-column: 1 / -1;
  padding: var(--s-3) var(--s-4);
  border: 1px solid color-mix(in oklch, var(--c-clay-text) 45%, transparent);
  border-left-width: 3px;
  border-radius: var(--r-sm);
  background: color-mix(in oklch, var(--c-clay) 12%, transparent);
  font-size: 0.92rem;
  line-height: 1.55;
}
/* `.ev-enquiry p` caps paragraphs at 32ch and `.c-grid p` at 38ch, both meant
   for the heading column beside the form. Left alone they wrap this notice to
   about 40% of its own box, which reads as a layout defect rather than an
   alert — measured at 287px inside a 673px box.

   `div.form-error p` rather than `.form-error p` because the two selectors are
   otherwise the same specificity (0,1,1) and events.css loads after this file,
   so source order hands it to `.ev-enquiry p`. The extra element selector is
   the smallest thing that wins; a bare class rewrite here does nothing and
   looks like it should. */
.form-error p { margin: 0; }
div.form-error p { max-width: none; }
.form-error strong { color: var(--c-clay-text); }

/* The 8px four-colour `.zellige` strip that used to sit above the footer was
   removed on Ashton's note of 2026-08-05 — it broke the run into the footer
   and was the only place on the site carrying saffron and terracotta as flat
   blocks. The monogram tile in the footer carries the motif on its own. */

/* ── Two-column / split layout primitive ─────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.split > .left  { grid-column: span 6; }
.split > .right { grid-column: span 6; }
@media (max-width: 880px) {
  .split > .left, .split > .right { grid-column: 1 / -1; }
}

/* ── Quote block ─────────────────────────────────────────────────────── */
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-variation-settings: 'opsz' 96, 'SOFT' 50, 'WONK' 1;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.quote::before { content: '“ '; opacity: 0.4; }
.quote::after  { content: ' ”'; opacity: 0.4; }

cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-top: var(--s-4);
}
.section--ink cite, .section--night cite { color: color-mix(in oklch, var(--c-bone) 60%, transparent); }

/* ── Marquee (continuous strip) ──────────────────────────────────────────
   What is left of the homepage strip retired on 5 August. Its markup went;
   `.marquee-track`, `.marquee--ink` and `@keyframes marquee` went with it on
   14 August (#239), confirmed unreferenced by a repo-wide grep.

   This rule itself STAYS, and is not dead: `.marquee` is declared a second
   time further down for the reviews row and the weddings gallery, and neither
   of those re-declares the border, the padding or the background — so both
   are currently drawing them from here. Deleting it would silently restyle two
   shipped sections. Merge the two declarations deliberately or not at all. */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: var(--s-5);
  background: var(--bg-lift);
}

/* ── Dish list (menu rows) ───────────────────────────────────────────── */
.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-3) var(--s-5);
  padding-block: var(--s-4);
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
  /* Pack the rows to the top. A .dish stretches to its row height in
     .menu-grid — deliberately, so the dashed rules line up across the two
     columns — and without this the inner auto rows stretch to absorb that
     extra height, which drops the description to the bottom of the cell.
     It showed up as a hole under Berber Tajine, whose neighbour carries the
     tall Chicken Tajine placeholder. The slack now falls below the text
     instead, where it reads as padding. */
  align-content: start;
}
.dish__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 450;
  font-variation-settings: 'opsz' 36, 'SOFT' 25;
  letter-spacing: -0.005em;
}
.dish__name .tags {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-moss);
  margin-left: 0.6ch;
  /* Keep "V · GF" on one line. In a narrow column it was breaking after the
     separator and leaving a lone GF on the next line under the dish name. */
  white-space: nowrap;
}
.dish__price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  font-variation-settings: 'opsz' 36, 'SOFT' 0;
  white-space: nowrap;
  color: var(--c-clay-text);
}
.dish__desc {
  grid-column: 1 / -1;
  color: var(--fg-soft);
  font-size: 0.97rem;
  line-height: 1.5;
  max-width: 62ch;
}

/* ── Page hero (used on subpages) ────────────────────────────────────── */
.page-hero {
  position: relative;
  background: var(--bg-deep);
  color: var(--fg-on-deep);
  padding: clamp(8rem, 18vh, 13rem) 0 var(--s-9);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 80% 10%, color-mix(in oklch, var(--c-azul-glow) 40%, transparent), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, color-mix(in oklch, var(--c-clay) 25%, transparent), transparent 60%);
  z-index: -1;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--t-display);
  line-height: 0.97;
  letter-spacing: var(--tracking-tight);
  font-weight: 320;
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 1;
  max-width: 16ch;
}
.page-hero h1 em { font-style: italic; font-weight: 280; }
.page-hero .lead { color: color-mix(in oklch, var(--c-bone) 80%, transparent); margin-top: var(--s-5); max-width: 44ch; }
.page-hero .breadcrumbs {
  display: flex; gap: var(--s-2);
  margin-bottom: var(--s-6);
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: color-mix(in oklch, var(--c-bone) 60%, transparent);
}
.page-hero .breadcrumbs a:hover { color: var(--c-saffron); }
.page-hero .breadcrumbs .sep { opacity: 0.5; }

/* Moved here from events.css on 2026-08-07: /visit needs it too and loads
   contact.css, not events.css. It belongs beside the .page-hero rules it
   extends. */
/* ── Page hero with a photograph behind it ───────────────────────────── */
/* .page-hero already sets isolation: isolate and puts its gradient wash on
   ::before at z-index -1, so the photo goes one layer further back and the
   gradient becomes the scrim over it. Weighted to the left, where the headline
   and lead sit, so the type keeps its contrast over a bright aerial. */
.page-hero--photo .page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero--photo::before {
  background:
    linear-gradient(to right,
      color-mix(in oklch, var(--c-navy) 92%, transparent),
      color-mix(in oklch, var(--c-navy) 62%, transparent) 62%,
      color-mix(in oklch, var(--c-navy) 40%, transparent)),
    linear-gradient(to top,
      color-mix(in oklch, var(--c-navy) 75%, transparent),
      transparent 55%);
}
@media (max-width: 720px) {
  /* Narrow, the text runs the full width, so the wash has to be even rather
     than weighted left or the last lines sit on open water. */
  .page-hero--photo::before {
    background: linear-gradient(to top,
      color-mix(in oklch, var(--c-navy) 92%, transparent),
      color-mix(in oklch, var(--c-navy) 72%, transparent));
  }
}
/* The review marker is #8a5a0e on a 10% amber wash — designed for a cream page
   and unreadable once a photograph sits behind it. It is an internal device, so
   it only needs to stay legible to us, but it has to actually do that. */
.page-hero--photo .placeholder {
  background: color-mix(in oklch, var(--c-navy) 55%, transparent);
  backdrop-filter: blur(2px);
}
.page-hero--photo .placeholder::before {
  color: #f0c36b;
}

/* ── Visit / page-bottom CTA band (shared across pages) ──────────────── */
.visit-cta {
  background: var(--c-azul-deep);
  color: var(--fg-on-deep);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.visit-cta__monogram {
  position: absolute;
  inset: 0;
  color: color-mix(in oklch, var(--c-saffron) 70%, var(--c-bone));
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
/* Bottom-anchored, and a whole number of pattern tiles tall.
   The band and the footer are the same navy and sit flush, so the two monogram
   layers read as one field — but each SVG starts its own 140x180 grid at its
   own top-left, which left the row at the seam sliced in half (49px out of
   phase on /about). The footer's grid begins exactly at the seam, so putting a
   tile boundary there brings the two into phase and the pattern runs straight
   through both sections. Anchoring the SVG's BOTTOM to the seam and giving it a
   height that is a multiple of the tile does that without measuring the band,
   whose height is content- and viewport-dependent. The parent clips the
   overhang; 1800px is ~4x the tallest the band gets.
   If the 180px tile in partials/monogram.html ever changes, this height has to
   stay a multiple of it. */
.visit-cta__monogram svg {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 1800px;         /* 10 x the pattern's 180px tile */
  display: block;
}
.visit-cta h2 {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-style: italic;
  font-weight: 280;
  font-variation-settings: 'opsz' 144, 'SOFT' 70, 'WONK' 1;
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin-inline: auto;
}
.visit-cta h2 b {
  font-style: normal;
  font-weight: 320;
  color: var(--c-saffron);
}
.visit-cta .cta-row {
  margin-top: var(--s-5);
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}
/* Trailing hours line on the home visit-cta — tighten the gap */
.visit-cta .wrap > p:last-child {
  margin-top: var(--s-4) !important;
}
.visit-cta .wrap { position: relative; z-index: 2; }
@media (max-width: 720px) {
  .visit-cta { padding-block: clamp(3rem, 8vw, 4.5rem); }
  .visit-cta__monogram { opacity: 0.06; }
}

/* ── Placeholder markers ──────────────────────────────────────────────────
   Wrap any copy or photo that hasn't been approved by Omar so the prototype
   makes it obvious what's draft and what's verbatim from the client.
   ──────────────────────────────────────────────────────────────────────── */
.placeholder {
  position: relative;
  border: 1px dashed #c98a1e;
  background: rgba(241, 196, 116, 0.10);
  padding: 22px 18px 14px;
  margin-block: var(--s-4);
}
.placeholder::before {
  content: "⚠ PLACEHOLDER COPY — " attr(data-topic) " — not yet approved by Omar";
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a5a0e;
  margin-bottom: 12px;
}

.img-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(45deg, #f5e7c3 0 12px, #f1dca4 12px 24px);
  border: 1px dashed #c98a1e;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  overflow: hidden;
}
/* When inside a sized parent (e.g. .plate with its own aspect ratio),
   fill it fully instead of imposing the placeholder's default ratio. */
.plate .img-placeholder {
  aspect-ratio: auto !important;
  height: 100% !important;
  position: absolute;
  inset: 0;
}
.img-placeholder::before {
  content: "⚠ PHOTO PLACEHOLDER";
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a5a0e;
}
.img-placeholder span {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: #5a4010;
  max-width: 340px;
}

/* ── Cookie consent banner ─────────────────────────────────────────────
   Fixed to bottom. Calm by default; the two actions read as a pair so
   "Only essentials" stays a real choice, not a token alternative. */
.cookie-banner {
  position: fixed;
  inset: auto var(--gutter) var(--gutter) var(--gutter);
  z-index: 80;
  background: var(--c-shell);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  max-width: 56rem;
  margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }
/* One row, one line of copy, no visible heading. The titled two-line card this
   replaced stood 150px tall on desktop and 260px on a phone, which put it over
   the homepage hero's "Reserve a table" on a first visit — by definition the
   only visit where it shows, and the page's primary action (#255). The floor
   now is .btn's 44px touch target plus the padding. */
.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-4) var(--s-5);
}
.cookie-banner__inner p {
  flex: 1;
  min-width: 0;
  font-size: var(--t-small);
  line-height: var(--leading-norm);
  color: var(--fg-soft);
  margin: 0;
  text-wrap: pretty;
}
.cookie-banner__actions {
  display: flex;
  gap: var(--s-3);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: var(--s-4); }
  /* Share the row rather than stacking. Two 44px buttons side by side cost one
     row where a wrapped pair costs two, and the height is the whole point. */
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}

/* ── WizButler booking modal ───────────────────────────────────────────────
   The vendor stylesheet (au2-widget.resbutler.com/css/widget.css) is injected
   at runtime, so it lands after ours in document order and wins on equal
   specificity — every selector here is one step more specific, or repeats the
   !important the vendor used.

   Left alone it renders as a 460px-wide white strip at `height: 100%`, flush
   to the top and bottom of the viewport, square-cornered, with a large dead
   white area under the content. This reshapes it into a centred modal card.
   The vendor toggles `display` inline on #_resbutler_widget, which no
   stylesheet can override, so the holder is centred by absolute positioning
   rather than by flex/grid on the parent. */
body #_resbutler_widget {
  background: color-mix(in oklch, var(--c-navy) 58%, transparent);
  -webkit-backdrop-filter: blur(4px) saturate(0.9);
          backdrop-filter: blur(4px) saturate(0.9);
}
body #_widget_holder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 2 * var(--gutter)));
  /* Definite height is required — the vendor's iframe is height:100%, so an
     auto-height holder would collapse it. 820px fits the booking form's
     first step (calendar + meal period + notice + CTA) without clipping;
     taller steps scroll inside. */
  height: min(88vh, 820px);
  max-width: none;
  border-radius: 16px;
  box-shadow: 0 32px 90px rgb(from var(--c-navy) r g b / 0.45),
              0 2px 8px rgb(from var(--c-navy) r g b / 0.25);
  overflow-y: auto !important;
  overscroll-behavior: contain;
  animation: wbEnter 320ms var(--ease-out-expo) both;
}
@keyframes wbEnter {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.985); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  body #_widget_holder { animation: none; }
}
/* Nothing moves under the open popup. The overlay's backdrop-filter has to
   re-read the whole viewport every frame while anything beneath it animates,
   and on some GPUs Chrome intermittently drops the filtered frame — Harry saw
   the blur snapping on and off over the hero on 2026-09-22 (#397). Static
   backdrop, nothing to re-read. The vendor shows the overlay by setting an
   inline `display: block` on it, which is the only hook there is; if that ever
   changes, `npm run test:booking` fails rather than the blur quietly going
   back to flickering. Phase cross-fades on the 641—880px auto-cycling hero are
   left alone: a 700ms fade every few seconds, not continuous motion. */
body:has(#_resbutler_widget[style*="block"], #teaser[open])
  :is(.hh-bar__track, .scroll-hero__bg img, .scroll-hero__live .pulse, .marquee__track) {
  animation-play-state: paused;
}
/* And nothing scrolls under it. The vendor calls body-scroll-lock, which on
   desktop sets `overflow: hidden` on <body> — and that never reached the
   viewport here, because base.css puts `overflow-x: clip` on <html>, and once
   the root's overflow is anything but visible the body value stops propagating.
   So the page scrolled under the popup on every browser, measured: a wheel over
   the backdrop moved it 800px, PageDown another 860 (Thomas on the #398
   preview). Lock the root. scrollbar-gutter keeps a classic scrollbar's width
   reserved so the page beneath does not jump sideways when the bar goes. */
html:has(#_resbutler_widget[style*="block"], #teaser[open]) {
  overflow: hidden;
  scrollbar-gutter: stable;
}
/* Phones: a centred card wastes space — go full-screen, which is also what
   the widget's own layout expects at this width. */
@media (max-width: 640px) {
  body #_widget_holder {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    animation: none;
  }
}

/* ── Arrow carousel ──────────────────────────────────────────────────────
   Shared by the event-page menu tiles and the weddings gallery strip
   (2026-08-07). The track is a native horizontal scroller — swipeable and
   keyboard-scrollable on its own — and carousel.js only adds the two arrows.
   ------------------------------------------------------------------------ */
.carousel {
  position: relative;
}
.carousel__track {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(1rem, 2.4vw, 2rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Snap positions are measured from the scrollport edge, not the padding box,
     so a track with side padding needs this too or the browser snaps item 1
     flush left and clips it. Same fix as .w-strip__row. */
  scroll-padding-inline: var(--carousel-inset, 0px);
  padding-inline: var(--carousel-inset, 0px);
}
.carousel__track::-webkit-scrollbar { display: none; }
/* grow 1, shrink 0, basis --carousel-min. The consequence is the behaviour
   Thomas asked for on 2026-08-07: where the row has space for every card at its
   minimum, flex-grow divides the width between them and they all fit; where it
   does not, they hold that minimum, overflow, and the track scrolls. No media
   query needs to know the card count.

   carousel.js keys the arrows off scrollWidth > clientWidth, so they disappear
   on their own in the case where everything fits. */
.carousel__track > * {
  scroll-snap-align: start;
  flex: 1 0 var(--carousel-min, 19rem);
  min-width: 0;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border-radius: var(--r-pill);
  background: var(--c-bone);
  color: var(--c-ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transform: translateY(-50%);
  transition: opacity var(--d-fast) ease, background-color var(--d-fast) ease;
}
/* Only shown once the track actually overflows — carousel.js sets the class. */
.carousel.is-scrollable .carousel__nav { display: grid; }
.carousel__nav svg { width: 1.1rem; height: 1.1rem; }
.carousel__nav:hover:not(:disabled) { background: var(--c-shell); }
.carousel__nav:disabled { opacity: 0.3; cursor: default; }
.carousel__nav--prev { left: calc(-1 * clamp(0.5rem, 1.6vw, 1.25rem)); }
.carousel__nav--next { right: calc(-1 * clamp(0.5rem, 1.6vw, 1.25rem)); }

/* On dark bands the pill has to flip or it burns a hole in the section. */
:is(.section--ink, .section--night, .w-band--ink) .carousel__nav {
  background: var(--c-ink);
  color: var(--c-bone);
  border-color: var(--line-on-deep);
}

@media (max-width: 900px) {
  /* Touch scrolling is the primary gesture at this width and the arrows would
     sit over the cards, so they come off and the track stands alone. */
  .carousel__nav { display: none !important; }
}

/* ── Auto-scrolling marquee ──────────────────────────────────────────────
   Shared by the homepage reviews and the weddings gallery (2026-08-07). The
   track holds the set twice: it animates to -50%, exactly one run's width, so
   the clone is under the viewport at the moment the original leaves it. The
   second run carries aria-hidden so screen readers meet each item once.

   Items use margin-inline-end, not a flex `gap`. A gap applies between items
   only, leaving the track half a gap short of a whole period — which shows up
   as a visible jump once every cycle.
   ------------------------------------------------------------------------ */
.marquee {
  --marquee-duration: 40s;
  --marquee-gap: clamp(1rem, 2vw, 1.75rem);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration) linear infinite;
}
/* Hover and keyboard focus both stop it, so anything about to slide away can
   still be read. */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__track > * {
  flex: 0 0 var(--marquee-item, 20rem);
  margin-inline-end: var(--marquee-gap);
  min-width: 0;
}
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
/* Reduced motion: no animation. The track becomes a normal swipeable, snapping,
   keyboard-scrollable row, and the duplicate run is removed — it only exists to
   make the loop work, and without it the set would simply read twice. */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .marquee__track { animation: none; }
  .marquee__track > * { scroll-snap-align: start; }
  .marquee__track > [aria-hidden="true"] { display: none; }
}

/* `--touch`: on a phone the finger drives it, not the clock (Thomas,
   2026-08-08). Hover-to-pause doesn't exist on touch, so an auto-rotating row
   fights anyone trying to look at a photograph. Same static-row mechanics as
   the reduced-motion fallback above, and the duplicate run comes off for the
   same reason — it only exists to make the loop seamless.
   `overscroll-behavior-x: contain` stops a swipe past the end turning into a
   back-navigation gesture; x only, so vertical scroll still chains. */
@media (max-width: 880px) {
  .marquee--touch {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .marquee--touch::-webkit-scrollbar { display: none; }
  .marquee--touch .marquee__track { animation: none; width: max-content; }
  .marquee--touch .marquee__track > * { scroll-snap-align: start; }
  .marquee--touch .marquee__track > [aria-hidden="true"] { display: none; }
}


/* ── Honeypot ─────────────────────────────────────────────────────────────
   The spam trap on the four enquiry forms. Off-screen rather than
   `display:none` or `visibility:hidden`, because the bots worth catching skip
   fields the browser reports as unrendered — an off-screen input still
   computes as visible and still gets filled.

   No `height:0` either: a zero-height ancestor makes some engines treat the
   input as unrenderable, which is the same tell one layer down. Moving it
   1e5px left costs nothing and cannot be detected without laying the page out.

   Its wrapper carries aria-hidden and the input carries tabindex="-1", so a
   screen reader never announces it and a keyboard user never lands on it. */
.hp {
  position: absolute;
  left: -100000px;
  top: auto;
  width: 1px;
  overflow: hidden;
}

/* ── Opening teaser (October 2026) ───────────────────────────────────────
   One modal over every page, only where TEASER=on (server.js). It shares the
   booking popup's two rules above: nothing animates under the blur (#397) and
   the root does not scroll (#398). The backdrop colour is the navy written
   out, because older Safari and Chrome do not pass custom properties into
   ::backdrop. */
.teaser {
  width: min(34rem, calc(100% - 2 * var(--gutter)));
  max-width: none;
  margin: auto;
  padding: min(clamp(2.5rem, 8vw, 4rem), 5svh) clamp(1.5rem, 6vw, 3.5rem);
  border: 0;
  border-top: 4px solid var(--c-marina);
  background: var(--c-cream);
  color: var(--c-navy-2);
  text-align: center;
  box-shadow: var(--shadow-deep);
}
.teaser::backdrop {
  background: rgb(7 22 40 / 0.4);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
/* Azul's wordmark first, drawn the way the topbar draws it, then Parriwi's
   lockup under a marina hairline. The svh terms shrink the logos and the gaps
   on a short phone screen so the button stays in view without scrolling. */
.teaser__azul {
  display: block;
  width: min(12rem, 55%, 22svh);
  aspect-ratio: 416 / 324;
  margin-inline: auto;
  background-color: var(--c-azul);
  -webkit-mask: url('/assets/img/logo.svg') center / contain no-repeat;
  mask: url('/assets/img/logo.svg') center / contain no-repeat;
}
.teaser__parriwi {
  display: block;
  width: min(15rem, 70%, 30svh);
  height: auto;
  margin: min(1.75rem, 3svh) auto 0;
  padding-top: min(1.75rem, 3svh);
  background: linear-gradient(var(--c-marina), var(--c-marina)) top center / 3rem 2px no-repeat;
}
/* Everything under Parriwi's logo is in its ink, the logo's blue: 4.9:1
   against the cream either way round. */
.teaser { --parriwi: #506C81; --parriwi-deep: #3E5466; }
.teaser__title { margin-top: min(2rem, 3.5svh); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.4rem); }
.teaser__title, .teaser__title em, .teaser__desc { color: var(--parriwi); }
.teaser__desc { max-width: 26rem; margin: min(1rem, 2svh) auto 0; font-size: 1rem; line-height: 1.55; }
.teaser__cta { margin-top: min(2rem, 3.5svh); --btn-bg: var(--parriwi); --btn-line: var(--parriwi); }
.teaser__cta:hover { --btn-bg: var(--parriwi-deep); --btn-line: var(--parriwi-deep); }
