/*
  Café Tonitza — design system.

  White-based and gallery-quiet, with a warm "painterly" temperature borrowed
  from Nicolae Tonitza: an ivory paper ground, warm darks instead of pure black
  (Tonitza "used almost no black"), and luminous terracotta / ochre / petrol
  accents standing in for his colour "spots". Type pairs Fraunces (an old-style
  display serif with character) with Inter for calm, legible body text.
*/

:root {
  /* Warm neutral ground — paper, not stark white. */
  --paper: #faf7f1;
  --paper-2: #f3ecdf;
  --paper-3: #ece3d4;
  --ink: #211b17;          /* warm near-black */
  --ink-soft: #6f6457;     /* muted secondary text */
  --line: rgba(33, 27, 23, 0.14);

  /* Tonitza accents. */
  --terracotta: #b5613b;
  --terracotta-deep: #8f4527;
  --ochre: #c2913f;
  --petrol: #3a5a55;
  --blush: #e7d4c4;

  --accent: var(--terracotta);

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 2px;
  --header-h: 72px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* A faint paper grain to warm the white, without imagery. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(33, 27, 23, 0.025) 1px, transparent 1px);
  background-size: 4px 4px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 460;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-optical-sizing: auto;
}

p { margin: 0 0 1rem; }

::selection { background: var(--terracotta); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper-2 { background: var(--paper-2); }

main { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 56ch; }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -14px rgba(33,27,23,0.5); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* Quiet text link with an animated underline. */
.link-underline {
  position: relative;
  font-weight: 600;
  color: var(--terracotta-deep);
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand .mark { width: 26px; height: 26px; flex: none; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}

/* Language switcher — painted flag "pins". */
.lang-flags {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
}
.lang-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.22rem 0.55rem 0.22rem 0.4rem;
  border-radius: 999px;
  transition: background 0.25s var(--ease);
}
.lang-flag .flag {
  width: 22px; height: 22px; flex: none; display: block;
  filter: saturate(0.72) opacity(0.82);
  transition: filter 0.35s var(--ease), transform 0.45s var(--ease);
}
.lang-flag__code {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}
a.lang-flag:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
a.lang-flag:hover .flag { filter: none; transform: rotate(-5deg) scale(1.1); }
a.lang-flag:hover .lang-flag__code { color: var(--ink); }
.lang-flag.is-active { background: color-mix(in srgb, var(--ink) 9%, transparent); cursor: default; }
.lang-flag.is-active .flag { filter: none; }
.lang-flag.is-active .lang-flag__code { color: var(--ink); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 12vw, 9rem) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero .wrap { z-index: 1; }
.hero__inner { max-width: 20ch; }
.hero h1 {
  font-size: clamp(2.8rem, 1.4rem + 7vw, 6.5rem);
  font-weight: 420;
  line-height: 0.98;
  margin-bottom: 1.2rem;
}
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero .lead { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.scroll-cue {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.scroll-cue .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--terracotta);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.7); opacity: 0.35; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(33,27,23,0.45); }
.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.4rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__body h3 { font-size: 1.35rem; margin: 0; }
.card__meta { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink-soft); text-transform: uppercase; }
.card__foot { margin-top: auto; padding-top: 0.6rem; }

/* Painterly colour-field placeholder when no photo exists — a nod to Tonitza's
   colour "spots". Variants are assigned in markup. */
.field {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--blush), var(--paper-3));
}
.field::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120px 90px at 70% 30%, color-mix(in srgb, var(--c1, var(--terracotta)) 55%, transparent), transparent 70%),
    radial-gradient(140px 120px at 25% 80%, color-mix(in srgb, var(--c2, var(--petrol)) 45%, transparent), transparent 70%);
  mix-blend-mode: multiply;
}
.field--a { --c1: var(--terracotta); --c2: var(--ochre); }
.field--b { --c1: var(--petrol); --c2: var(--terracotta); }
.field--c { --c1: var(--ochre); --c2: var(--petrol); }
.field--d { --c1: var(--terracotta-deep); --c2: var(--blush); }

.status-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.status-tag--current { background: var(--terracotta); color: var(--paper); }
.status-tag--upcoming { background: var(--petrol); color: var(--paper); }
.status-tag--past { background: var(--paper-3); color: var(--ink-soft); }

/* Sale statuses. Available reads quiet (an outline, not a shout); sold/reserved
   carry weight so they catch the eye in a grid. */
.status-tag--available {
  background: transparent; color: var(--petrol);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--petrol) 45%, transparent);
}
.status-tag--reserved { background: var(--ochre); color: var(--ink); }
.status-tag--sold { background: var(--ink); color: var(--paper); }
.status-tag--nfs { background: var(--paper-3); color: var(--ink-soft); }

/* ---------- Menu ---------- */
/* Sticky in-page nav: section jump links + dietary filter. Sits just below the
   site header so the menu stays navigable as you scroll a long list. */
.menu-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-block: 1px solid var(--line);
}
.menu-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 56px; flex-wrap: wrap;
}
.menu-jump {
  display: flex; gap: 0.3rem; align-items: center;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  margin: 0 -0.4rem; padding: 0.5rem 0.4rem;
  flex: 1 1 auto; min-width: 0;
}
.menu-jump::-webkit-scrollbar { display: none; }
.menu-jump__link {
  flex: none;
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink-soft);
  padding: 0.35rem 0.8rem; border-radius: 999px;
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.menu-jump__link:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.menu-jump__link.is-active { color: var(--paper); background: var(--ink); }

.menu-filter { display: flex; gap: 0.35rem; flex-wrap: wrap; padding: 0.4rem 0; flex: none; }
.menu-filter__chip {
  font-family: var(--sans); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--petrol);
  background: transparent; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--petrol) 38%, transparent);
  padding: 0.28rem 0.7rem; border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.menu-filter__chip:hover { background: color-mix(in srgb, var(--petrol) 12%, transparent); }
.menu-filter__chip.is-active { background: var(--petrol); color: var(--paper); border-color: var(--petrol); }

.menu-cat { margin-bottom: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: calc(var(--header-h) + 68px); }
.menu-cat[hidden] { display: none; }
.menu-cat__head { border-bottom: 1px solid var(--line); padding-bottom: 0.7rem; margin-bottom: 1.3rem; }
.menu-cat__head h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin: 0; }
.menu-cat__head p { color: var(--ink-soft); margin: 0.35rem 0 0; font-size: 0.95rem; }
.menu-cat__empty { color: var(--ink-soft); font-style: italic; margin: 0; }

/* Two compact columns on wider screens; the dotted leader keeps the price
   list legible. Filtering toggles [hidden] for an instant, no-reflow-jank swap. */
.menu-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 0.6rem clamp(2rem, 5vw, 4rem);
}
.menu-item {
  display: flex; gap: 0.95rem; align-items: flex-start;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.menu-item[hidden] { display: none; }
.menu-item__thumb {
  flex: none; width: 56px; height: 56px; border-radius: var(--radius);
  overflow: hidden; background: var(--paper-2); margin-top: 0.15rem;
  box-shadow: 0 6px 14px -10px rgba(33,27,23,0.5);
}
.menu-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.menu-item:hover .menu-item__thumb img { transform: scale(1.08); }
.menu-item__main { flex: 1 1 auto; min-width: 0; }
.menu-item__row { display: flex; align-items: baseline; gap: 0.6rem; }
.menu-item__name { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; }
.menu-item__type {
  font-style: italic; font-size: 0.85rem; color: var(--ink-soft);
  white-space: nowrap; align-self: baseline;
}
.menu-item__dots { flex: 1; border-bottom: 1px dotted var(--line); align-self: center; height: 1px; transform: translateY(-2px); }
.menu-item__price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; color: var(--terracotta-deep); }
.menu-item__desc { display: block; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; margin: 0.2rem 0 0; max-width: 52ch; }
.menu-item__tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.4rem; }
.tag {
  font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--petrol); border: 1px solid color-mix(in srgb, var(--petrol) 35%, transparent);
  padding: 0.08rem 0.45rem; border-radius: 999px;
}

/* ---------- Highlights (home) ---------- */
.highlight {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.highlight h3 { font-size: 1.3rem; margin: 0 0 0.15rem; }
.highlight__type { font-style: italic; color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 0.3rem; }
.highlight .price { color: var(--terracotta-deep); font-weight: 600; }
.highlight p { color: var(--ink-soft); font-size: 0.95rem; margin: 0.4rem 0 0; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split__art { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; }
.split__art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Private-hire banner (home) ---------- */
.room-banner {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  padding-block: clamp(4rem, 11vw, 8rem);
  background: var(--ink);
}
.room-banner__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease);
}
.room-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(20,15,12,0.82) 0%, rgba(20,15,12,0.55) 45%, rgba(20,15,12,0.2) 100%);
}
.room-banner:hover .room-banner__bg { transform: scale(1.08); }
.room-banner .wrap { position: relative; z-index: 2; }
.room-banner__inner { max-width: 34ch; }
.room-banner h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); margin: 0 0 1rem; }
.room-banner .lead { color: color-mix(in srgb, var(--paper) 88%, transparent); margin-bottom: 1.8rem; }
.room-banner .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.room-banner .btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--paper); }
.eyebrow--light { color: color-mix(in srgb, var(--blush) 92%, var(--paper)); }

/* ---------- Visit / hours ---------- */
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
}
.hours li:last-child { border-bottom: 0; }
.hours .day { font-weight: 500; }
.hours .time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- Map click-to-load (privacy) ---------- */
.map-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-consent__inner {
  max-width: 30ch;
  text-align: center;
  padding: 1.5rem;
}
.map-consent__inner p { color: var(--ink); font-size: 0.92rem; }
.map-consent__alt { margin-top: 0.8rem; }
.map-consent__alt a { font-size: 0.85rem; }
.map-consent iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Prose (streamfield / rich text) ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.4rem; margin-top: 1.8rem; }
.prose img { border-radius: var(--radius); margin-block: 1.6rem; }
.prose figure { margin: 1.8rem 0; }
.prose figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.5rem; }
.prose blockquote {
  margin: 1.8rem 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--terracotta);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
}
.prose blockquote cite { display: block; font-size: 0.9rem; font-style: normal; color: var(--ink-soft); margin-top: 0.6rem; }
.prose a { color: var(--terracotta-deep); text-decoration: underline; text-underline-offset: 3px; }

.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery img { border-radius: var(--radius); }

/* ---------- Sales catalogue (works overview) ---------- */
.eyebrow__link { color: inherit; }
.eyebrow__link:hover { color: var(--terracotta); }

.catalogue-meta {
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 0.6rem;
}

.works-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  counter-reset: lot;
}
.works-grid--compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem; }

.work { display: flex; flex-direction: column; height: 100%; }
.work__media {
  position: relative;
  /* A "hung on the wall" feel: each work floats on a paper ground, centred. */
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  overflow: hidden;
}
.work__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(33, 27, 23, 0.22));
  transition: transform 0.6s var(--ease);
}
.work:hover .work__media img { transform: translateY(-4px) scale(1.02); }
.work__media .field { position: absolute; inset: 0; }

/* Sold/reserved corner flag. */
.work__flag {
  position: absolute; top: 0.9rem; left: 0.9rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
.work__flag--sold { background: var(--ink); color: var(--paper); }
.work__flag--reserved { background: var(--ochre); color: var(--ink); }
.work--sold .work__media img { opacity: 0.82; }

.work__body { padding-top: 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.work__lot {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 0.2rem;
}
.work__artist {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--terracotta-deep); margin: 0;
}
.work__title {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 460;
  font-style: italic; line-height: 1.15; margin: 0.1rem 0 0.3rem;
}
.work__year { font-style: italic; color: var(--ink-soft); }
.work__line { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.work__line--muted { font-variant-numeric: tabular-nums; }
.work__price {
  margin: 0.5rem 0 0; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.work--sold .work__price, .work--nfs .work__price { color: var(--ink-soft); font-weight: 500; }

/* ---------- Single work (lot detail) ---------- */
.lot { padding-top: clamp(2rem, 5vw, 3.5rem); }
.lot__crumbs {
  display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap;
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.lot__crumbs a:hover { color: var(--terracotta); }
.lot__crumbs span { opacity: 0.5; }

.lot__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.lot-figure { margin: 0; }
.lot-figure img {
  width: 100%; height: auto;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: clamp(1.2rem, 4vw, 3.5rem);
  filter: drop-shadow(0 30px 45px rgba(33, 27, 23, 0.22));
}
.lot-figure figcaption { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.7rem; }

.lot-thumbs {
  list-style: none; margin: 1.2rem 0 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.lot-thumbs img { border: 1px solid var(--line); border-radius: var(--radius); }
.lot-thumbs figcaption { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.4rem; }

.lot__panel { position: sticky; top: 96px; }
.lot__eyebrow {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 1rem;
}
.lot__artist {
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--terracotta-deep); margin: 0 0 0.3rem;
}
.lot__title {
  font-family: var(--serif); font-style: italic; font-weight: 440;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.1;
  margin: 0 0 1.4rem;
}
.lot__year { color: var(--ink-soft); }

.spec { margin: 0 0 1.8rem; padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec__row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.5rem 1rem; padding: 0.35rem 0; }
.spec__row dt { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.spec__row dd { margin: 0; }

.price-block { margin-bottom: 1.8rem; }
.price-block__price {
  font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  font-variant-numeric: tabular-nums; margin: 0 0 1rem;
}
.price-block__price--quiet { font-style: italic; color: var(--ink-soft); }
.price-block .btn { width: 100%; justify-content: center; }
.price-block__note { font-size: 0.85rem; color: var(--ink-soft); margin: 0.9rem 0 0; }

.lot__section { margin-top: 1.8rem; }
.lot__subhead {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 0.8rem;
}
.provenance { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.provenance li { padding: 0.3rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.provenance li:last-child { border-bottom: 0; }

.lot__note {
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line); max-width: 70ch;
}

@media (max-width: 880px) {
  .lot__grid { grid-template-columns: 1fr; }
  .lot__panel { position: static; }
}

/* ---------- Image carousel (a quiet "gallery wall") ----------
   Works without JS as a horizontal scroll-snap strip; main.js layers on
   arrows, dots, a catalogue counter and gentle ping-pong autoplay. */
.carousel { position: relative; }
.carousel__stage { position: relative; display: flex; align-items: center; }

.carousel__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__viewport:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; }

.carousel__track { list-style: none; margin: 0; padding: 0; display: flex; }

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.carousel__figure { margin: 0; }

/* The "wall + mat": artwork is contained (never cropped) on a warm paper
   ground with a soft recessed shadow, so mixed orientations sit comfortably. */
.carousel__frame {
  height: clamp(300px, 56vh, 620px);
  background:
    radial-gradient(120% 140% at 50% 0%, var(--paper) 0%, var(--paper-2) 70%, var(--paper-3) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 18px 40px -30px rgba(33,27,23,0.55);
}
.carousel__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(0.75rem, 2.5vw, 2rem);
  filter: drop-shadow(0 18px 28px rgba(33,27,23,0.18));
}

/* Active-slide emphasis: neighbours dim and recede a touch once JS is ready. */
.carousel.is-ready .carousel__figure {
  opacity: 0.32;
  transform: scale(0.965);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.carousel.is-ready .carousel__slide.is-active .carousel__figure {
  opacity: 1;
  transform: none;
}

.carousel__caption {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-inline: auto;
}

/* Arrow controls — circular, paper-on-blur, filling with ink on hover.
   Hidden until JS unhides them (no-JS users scroll/swipe the strip). */
.carousel__nav {
  position: absolute;
  top: clamp(150px, 28vh, 310px);
  z-index: 2;
  width: 3rem; height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 30px -18px rgba(33,27,23,0.6);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), opacity 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.carousel__nav svg { width: 22px; height: 22px; }
.carousel__nav--prev { left: clamp(-0.5rem, -1vw, 0.75rem); }
.carousel__nav--next { right: clamp(-0.5rem, -1vw, 0.75rem); }
.carousel__nav:hover { background: var(--ink); color: var(--paper); transform: scale(1.07); }
.carousel__nav:active { transform: scale(0.96); }
.carousel__nav:disabled { opacity: 0; pointer-events: none; }

/* Foot: brushstroke dots on the left, catalogue counter on the right. */
.carousel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.6rem;
}
.carousel__dots { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.carousel__dot {
  width: 0.55rem; height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--paper-3);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: width 0.5s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.carousel__dot:hover { background: color-mix(in srgb, var(--terracotta) 55%, var(--paper-3)); }
.carousel__dot.is-active {
  width: 1.7rem;
  background: var(--terracotta);
  box-shadow: none;
}

.carousel__count {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.carousel__count [data-carousel-current] { color: var(--terracotta-deep); font-weight: 600; }
.carousel__count-sep { margin-inline: 0.4rem; opacity: 0.5; }

/* A single image needs no machinery. */
.carousel--single .carousel__foot { display: none; }

@media (max-width: 560px) {
  .carousel__nav { display: none; }
  .carousel__frame { height: clamp(240px, 52vh, 420px); }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__viewport { scroll-behavior: auto; }
  .carousel.is-ready .carousel__figure { opacity: 1; transform: none; }
}

/* ---------- Meeting-room reservations ---------- */
/* Sale/booking status tags (extend the gallery set). */
.status-tag--pending { background: var(--ochre); color: var(--ink); }
.status-tag--confirmed {
  background: transparent; color: var(--petrol);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--petrol) 45%, transparent);
}
.status-tag--declined, .status-tag--cancelled { background: var(--paper-3); color: var(--ink-soft); }

/* Room showcase: a "hung painting" portrait beside the room's story. */
.room-showcase {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.room-showcase__media {
  position: relative; margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 30px 60px -34px rgba(33, 27, 23, 0.5);
}
.room-showcase__media .field { position: absolute; inset: 0; }
.room-showcase__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.room-showcase__media:hover .room-showcase__img { transform: scale(1.04); }
.room-showcase__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 2.4rem 1.4rem 1.2rem;
  color: var(--paper);
  background: linear-gradient(to top, rgba(20,15,12,0.72), transparent);
}
.room-showcase__name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.05; }
.room-showcase__tag { font-size: 0.9rem; opacity: 0.9; }

.room-facts {
  list-style: none; margin: 1.6rem 0; padding: 0;
  display: flex; gap: clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap;
}
.room-facts li { display: flex; flex-direction: column; }
.room-facts__n { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--terracotta-deep); }
.room-facts__l { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.3rem; }

.amenities {
  list-style: none; margin: 1.4rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 0.7rem 1.2rem;
}
.amenity { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; }
.amenity__icon { width: 22px; height: 22px; color: var(--petrol); flex: none; }
/* Accessibility line — always shown; the "not step-free" variant is flagged
   in terracotta so the caveat reads clearly rather than like a feature. */
.room-access { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.1rem; font-size: 0.95rem; color: var(--ink-soft); }
.room-access--stairs .amenity__icon { color: var(--terracotta); }
.room-pricenote { margin-top: 1.2rem; color: var(--ink-soft); font-size: 0.92rem; }

/* Booking form. */
.booking-form { max-width: 760px; }
.hp-wrap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bk-banner { border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.6rem; }
.bk-banner p { margin: 0; }
.bk-banner--error {
  background: color-mix(in srgb, var(--terracotta) 14%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--terracotta) 40%, transparent);
  color: var(--terracotta-deep);
}

.bk-group { border: 0; margin: 0 0 1.7rem; padding: 0; }
.bk-group legend {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--terracotta-deep);
  padding: 0; margin-bottom: 0.9rem;
}
.bk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem 1.2rem; }

.bk-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.bk-field--wide { margin-top: 1rem; }
.bk-field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.bk-req { color: var(--terracotta); }

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.booking-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f6457' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; padding-right: 2.2rem;
}
.booking-form textarea { resize: vertical; line-height: 1.6; }
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--terracotta) 18%, transparent);
}
.booking-form option.is-taken { color: var(--ink-soft); text-decoration: line-through; }
.bk-field.has-error input,
.bk-field.has-error select,
.bk-field.has-error textarea { border-color: var(--terracotta); }
.bk-hint { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }
.bk-error { font-size: 0.84rem; color: var(--terracotta-deep); margin: 0; font-weight: 500; }

.availability {
  margin-top: 1rem; padding: 0.9rem 1.1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.availability__head { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.6rem; }
.availability__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.availability__slot {
  font-variant-numeric: tabular-nums; font-size: 0.86rem; font-weight: 600;
  padding: 0.25rem 0.7rem; border-radius: 999px;
  background: color-mix(in srgb, var(--ochre) 22%, var(--paper)); color: var(--ink);
}
.availability__free { margin: 0; color: var(--petrol); font-weight: 500; }
.availability__closed { margin: 0; color: var(--terracotta-deep); font-weight: 500; }

.booking-form__foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.6rem; }
.booking-form__note { font-size: 0.84rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 820px) {
  .room-showcase { grid-template-columns: 1fr; }
  .room-showcase__media { aspect-ratio: 16 / 11; max-height: 460px; }
}

/* Reservation success screen. */
.thanks { max-width: 620px; margin-inline: auto; text-align: center; }
.thanks__mark { width: 84px; height: 84px; margin: 0 auto 1.4rem; color: var(--petrol); }
.thanks__mark svg { width: 100%; height: 100%; }
.thanks__check { stroke-dasharray: 40; stroke-dashoffset: 40; animation: thanks-draw 0.8s var(--ease) 0.2s forwards; }
@keyframes thanks-draw { to { stroke-dashoffset: 0; } }
.thanks h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); }
.thanks__summary {
  margin: 2.2rem auto; max-width: 420px; text-align: left;
  border-top: 1px solid var(--line);
}
.thanks__summary > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.thanks__summary dt { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
.thanks__summary dd { margin: 0; font-weight: 500; }
.thanks__ref { font-family: var(--serif); letter-spacing: 0.08em; color: var(--terracotta-deep); }
.thanks__actions { display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- Page header band ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem); }
.page-head .lead { margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper-2);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  position: relative; z-index: 1;
}
.site-footer a { color: var(--paper-2); }
.site-footer a:hover { color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer-grid h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.14em; font-family: var(--sans); font-weight: 600; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.site-footer .brand { color: var(--paper); font-size: 1.6rem; margin-bottom: 0.6rem; }
.site-footer .brand .mark--inverted { filter: invert(1); }
.footer-tagline { max-width: 34ch; opacity: 0.85; }
.site-footer address { font-style: normal; line-height: 1.8; color: color-mix(in srgb, var(--paper-2) 85%, transparent); }
.footer-hours { font-size: 0.92rem; }
.footer-hours .day { color: var(--paper); }
.footer-social { display: flex; gap: 1rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(250,247,241,0.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem; color: color-mix(in srgb, var(--paper-2) 60%, transparent);
}

/* ---------- Scroll reveal ---------- */
/* Only hide reveal elements when JS can bring them back (see base.html). With
   JS off, .reveal stays at its natural, fully-visible state. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Brand lockup (name + subtitle) ---------- */
.brand__text { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); }
.brand__sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.18rem;
}
.site-footer .brand__sub { display: none; }

/* ---------- Standout (events) button ---------- */
.btn--accent {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--paper);
}
.btn--accent:hover {
  background: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
  box-shadow: 0 14px 34px -14px rgba(143, 69, 39, 0.65);
}

/* ---------- Home pillars: Menu & Exhibition ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.pillar {
  display: block;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s var(--ease);
}
.pillar--art { background: var(--paper-3); }
.pillar:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(33,27,23,0.5); }
.pillar h2 { margin: 0.3rem 0 0.6rem; }
.pillar__blurb { color: var(--ink-soft); max-width: 38ch; margin: 0 0 1.2rem; }

/* ---------- Artist of the month spotlight ---------- */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) 1.2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.spotlight__media {
  aspect-ratio: 7/8;
  overflow: hidden;
  border-radius: var(--radius);
}
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight__body h2 { margin: 0.3rem 0 0.8rem; }

/* ---------- Small badge (e.g. Artist of the month) ---------- */
.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  margin: 0 0 0.5rem;
}
.badge--featured { background: var(--terracotta); color: var(--paper); }

@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__media { max-width: 360px; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: var(--radius); z-index: 100;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 0.5rem;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: flex-start;
    gap: 1.2rem;
    background: var(--paper);
    padding: 1.8rem var(--gutter) 2.2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.45s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { font-size: 1.2rem; font-family: var(--serif); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .menu-nav__inner { min-height: 0; padding-block: 0.3rem; }
  .menu-filter { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .menu-filter::-webkit-scrollbar { display: none; }
}

/* ---------- Utilities / helpers ----------
   Small, reusable classes that replace what used to be inline `style="…"`
   attributes scattered through the templates. Keeping them here keeps the
   markup clean and lets a strict Content-Security-Policy drop `style-src
   'unsafe-inline'` if desired. */

/* Reveal stagger: children of a .stagger animate in 0.1s steps, replacing
   per-element inline --delay values in card grids. */
.stagger > *:nth-child(2) { --delay: 0.1s; }
.stagger > *:nth-child(3) { --delay: 0.2s; }
.stagger > *:nth-child(4) { --delay: 0.3s; }
.stagger > *:nth-child(5) { --delay: 0.4s; }
.stagger > *:nth-child(6) { --delay: 0.5s; }
.stagger > *:nth-child(7) { --delay: 0.6s; }
.stagger > *:nth-child(8) { --delay: 0.7s; }
.stagger > *:nth-child(9) { --delay: 0.8s; }

/* Fixed reveal delays for stacked page headers (eyebrow → h1 → lead → meta). */
.d1 { --delay: 0.05s; }
.d2 { --delay: 0.1s; }
.d3 { --delay: 0.15s; }
.d4 { --delay: 0.2s; }
.d5 { --delay: 0.3s; }

/* Small sans-serif uppercase subheading used in asides and contact blocks. */
.subhead {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--sans);
  font-weight: 600;
}

/* Plain-cased card meta (e.g. subtitles), overriding the default uppercase. */
.card__meta--plain { text-transform: none; }

/* Fixed-ratio media frames sharing the standard corner radius. */
.media { overflow: hidden; border-radius: var(--radius); }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--4x5 { aspect-ratio: 4 / 5; }

/* An image (or element) that fills its frame. */
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.u-h-full { height: 100%; }

/* A slim section, used for the "← back" links under articles. */
.section--backlink { padding-block: 2.5rem; }

/* Address rendered as plain (non-italic) body text. */
.address-plain { font-style: normal; font-size: 1.15rem; line-height: 1.7; }

/* An artist entry in an exhibition aside. */
.artist-entry { margin-bottom: 1.4rem; }
.artist-entry h3 { margin: 0 0 0.2rem; }
.artist-entry__bio { color: var(--ink-soft); font-size: 0.95rem; }

/* Spacing helpers. */
.mt-xs { margin-top: 0.6rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.2rem; }
.mt-lg { margin-top: 2rem; }
.mb-lg { margin-bottom: 2rem; }

/* Centered, narrow column (error pages). */
.u-center { text-align: center; }
.u-center-x { margin-inline: auto; }
.u-measure { max-width: 50ch; margin-inline: auto; }
.eyebrow--center { justify-content: center; }
