/* ===========================================================================
   Emilio Ruiz design system

   The paintings are extremely saturated, so the site itself stays quiet:
   warm off-white walls, near-black ink, one restrained accent. All colour
   on the page should come from the work.
   =========================================================================== */

:root {
  /* Gallery walls are never pure white; pure #fff reads as unstyled. */
  --paper: #faf7f2;
  --paper-deep: #f1ebe2;
  --paper-dark: #14110f;

  --ink: #141110;
  --ink-soft: #6b635b;
  --ink-faint: #9a9088;
  --rule: #ded5c9;
  --accent: #8c3b1e;

  --font-display: "Cormorant Garamond", "Times New Roman", Times, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 40px;
  --s6: 64px;
  --s7: 96px;
  --s8: 144px;

  --measure: 68ch;
  --page-max: 1440px;
  --gutter: clamp(20px, 5vw, 72px);

  --topbar-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

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

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

/* ---------- Typography ---------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

/* Big jumps between display and label sizes are what read as "designed".
   Small increments read as a template. */
.display-xl {
  font-size: clamp(3.2rem, 11vw, 9rem);
}
.display-l {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
}
.display-m {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* The museum wall-label: tiny, wide-tracked, uppercase sans. */
.label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 300;
  max-width: 30ch;
}

/* Matches both a .prose wrapper and the class used directly on a paragraph. */
.prose p,
p.prose {
  max-width: var(--measure);
  margin-bottom: 1.4em;
}

/* The biography is set in the serif: long-form reading wants a book texture,
   not a UI texture. */
.prose-serif p {
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.72;
  color: #3a3430;
  max-width: 62ch;
  margin-bottom: 1.25em;
}

.link-underline {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.link-underline:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Layout -------------------------------------------------------- */

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(var(--s6), 11vw, var(--s8));
}

.section--tight {
  padding-block: clamp(var(--s5), 7vw, var(--s7));
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  padding-bottom: var(--s4);
  margin-bottom: var(--s6);
  border-bottom: 1px solid var(--rule);
}

.band {
  background: var(--paper-deep);
}

/* ---------- Top bar ------------------------------------------------------- */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding-inline: var(--gutter);
  z-index: 50;
}

/* Inner pages get a solid bar instead of a transparent one over a hero. */
.topbar--solid {
  position: sticky;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.topbar-brand {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink);
  white-space: nowrap;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: clamp(var(--s4), 3vw, var(--s5));
}

.topbar-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  padding-block: var(--s2);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.topbar-links a:hover,
.topbar-links a.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

/* Over the hero photo everything inverts to white. */
.topbar--over .topbar-brand,
.topbar--over .topbar-links a {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
.topbar--over .topbar-links a:hover,
.topbar--over .topbar-links a.is-active {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.8);
}
.topbar--over .lang-dropdown-toggle {
  border-color: rgba(255, 255, 255, 0.45);
}
.topbar--over .lang-dropdown-caret {
  color: #fff;
}
.topbar--over .nav-toggle span {
  background: #fff;
}

/* ---------- Mobile nav ---------------------------------------------------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 22px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Language controls --------------------------------------------- */

.lang-flag-icon {
  display: inline-flex;
  width: 22px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.lang-flag-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--s2);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 5px 9px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}

.lang-dropdown-caret {
  color: var(--ink-soft);
  font-size: 0.6rem;
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(20, 17, 15, 0.14);
  list-style: none;
  padding: var(--s1);
  min-width: 180px;
  z-index: 60;
}
.lang-dropdown-menu.open {
  display: block;
}

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: 9px 11px;
  /* The menu's radius less its padding, so the hover fill follows its curve. */
  border-radius: 4px;
  color: var(--ink);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.lang-dropdown-item:hover {
  background: var(--paper-deep);
}

.lang-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 17, 15, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.lang-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.lang-modal {
  background: var(--paper);
  padding: clamp(var(--s5), 6vw, var(--s6));
  max-width: 520px;
  width: 90%;
  text-align: center;
}

.lang-modal-subtitle {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.9;
  color: var(--ink);
}

.lang-modal-options {
  display: flex;
  gap: var(--s3);
  justify-content: center;
  margin-top: var(--s5);
  flex-wrap: wrap;
}

.lang-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  min-width: 116px;
  padding: var(--s4) var(--s3);
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-option-btn:hover {
  border-color: var(--ink);
  background: var(--paper-deep);
}
.lang-option-btn .lang-flag-icon {
  width: 46px;
  height: 31px;
}

/* ---------- Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  height: 82vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--paper-dark);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  /* Kept close to natural. Glass only reads as glass against a bright backdrop;
     the iPad reference works because that wallpaper is luminous. Heavy darkening
     here was making the whole hero gloomy and starving the lettering. */
  filter: saturate(0.94) contrast(1.04) brightness(0.99);
}

/* Just enough shading along the bottom for the lettering to sit against, and a
   whisper at the top for the nav. Deliberately far lighter than before. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 24, 32, 0.3) 0%,
    rgba(18, 24, 32, 0.04) 26%,
    rgba(18, 24, 32, 0.02) 46%,
    rgba(18, 24, 32, 0.3) 76%,
    rgba(18, 24, 32, 0.62) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: absolute;
  left: 0;
  bottom: clamp(var(--s5), 8vh, var(--s7));
  width: 100%;
  padding-inline: var(--gutter);
  z-index: 5;
}

/* The hero name is SVG (see index.html) so the rim can be masked to the outside
   of the letterforms. The h1 is now just a scaling box: the artwork keeps its
   own proportions and scales with the container, so no font-size clamp needed.
   940px wide renders the lettering at roughly the old 136px cap height. */
/* Plain type. Cormorant Garamond at 700: the weight you wanted, without the
   thinness of 300. Solid white, one soft shadow for legibility, nothing else. */
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.5rem, 10.5vw, 8.5rem);
  letter-spacing: 0.03em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(12, 18, 26, 0.45);
}


.hero-kicker {
  margin-top: var(--s4);
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}

.hero-rule {
  width: 64px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--s4);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--s4);
  right: var(--gutter);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.25s var(--ease);
}
.scroll-indicator:hover {
  color: #fff;
}
.scroll-indicator::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  animation: scroll-pulse 2.4s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    transform: scaleY(0.4);
    transform-origin: top;
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
}

/* ---------- Home ---------------------------------------------------------- */

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--s6);
  align-items: start;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--s3), 2.2vw, var(--s5));
}

.bio-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--s5), 6vw, var(--s7));
  align-items: center;
}

.bio-teaser-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.8) contrast(1.05);
}

/* ---------- Work grid ----------------------------------------------------- */

.filters {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  padding-block: var(--s4);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s6);
  position: sticky;
  top: var(--topbar-h);
  background: var(--paper);
  z-index: 20;
}

.filter-btn {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: var(--s1) 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.filter-btn:hover {
  color: var(--ink);
}
.filter-btn.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.filter-count {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(var(--s4), 3vw, var(--s6)) clamp(var(--s3), 2.2vw, var(--s5));
}

.work-card {
  display: block;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  /* Cheap off-screen render savings across 77 tiles. The stand-in size is set
     for height only: a single length would also fix the width, and a card that
     is 420px wide while off-screen is wider than a phone, which pushed the whole
     grid past the screen edge and made the page scroll sideways. */
  content-visibility: auto;
  contain-intrinsic-block-size: auto 440px;
}

.work-card-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  aspect-ratio: 4 / 5;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
}

.work-card:hover img {
  transform: scale(1.035);
}

.work-card-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(20, 17, 15, 0.08);
  pointer-events: none;
}

/* The wall label under each piece. */
.work-caption {
  padding-top: var(--s3);
}

.work-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
}

.work-meta {
  margin-top: var(--s1);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Artwork modal ------------------------------------------------- */

.art-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(var(--s3), 4vw, var(--s5));
  background: rgba(20, 17, 15, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.art-modal.open {
  opacity: 1;
  visibility: visible;
}

.art-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  background: var(--paper);
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(14px);
  transition: transform 0.45s var(--ease);
}
.art-modal.open .art-modal-panel {
  transform: none;
}

.art-modal-figure {
  background: var(--paper-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(var(--s3), 3vw, var(--s5));
  min-height: 0;
}

.art-modal-figure img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.art-modal-body {
  padding: clamp(var(--s4), 3vw, var(--s6));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.art-modal-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: var(--ink);
  line-height: 1.15;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding-block: var(--s2);
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
}
.spec-row dt {
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.66rem;
  padding-top: 3px;
}
.spec-row dd {
  color: var(--ink);
  text-align: right;
}

.enquire-block {
  margin-top: var(--s2);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.art-modal-close {
  position: absolute;
  top: var(--s3);
  right: var(--s3);
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: background 0.25s var(--ease);
}
.art-modal-close:hover {
  background: var(--paper-deep);
}

.art-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  background: rgba(250, 247, 242, 0.9);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 5;
  transition: background 0.25s var(--ease);
}
.art-modal-nav:hover {
  background: var(--paper);
}
.art-modal-prev {
  left: var(--s3);
}
.art-modal-next {
  left: calc(var(--s3) + 54px);
}

/* ---------- Buttons ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 14px var(--s4);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.28s var(--ease), color 0.28s var(--ease), border-color 0.28s var(--ease);
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn--link {
  border: 0;
  background: none;
  color: var(--ink);
  padding: 0;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
}
.btn--link:hover {
  background: none;
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Biography ----------------------------------------------------- */

.bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(var(--s5), 6vw, var(--s7));
  align-items: start;
}

.bio-portrait {
  position: sticky;
  top: calc(var(--topbar-h) + var(--s4));
}

.bio-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.78) contrast(1.06);
}

.bio-portrait figcaption {
  margin-top: var(--s3);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Interview questions. A step down from the page heading, with air above so
   each exchange reads as its own unit. */
.bio-q {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  max-width: 62ch;
  margin: var(--s5) 0 var(--s3);
}

.prose-serif .bio-q:first-child {
  margin-top: 0;
}

/* Footnote markers sit at the end of the paragraph they belong to: the
   translation layer writes textContent, so it cannot carry inline markup. */
.fn-ref {
  font-size: 0.62em;
  vertical-align: super;
  line-height: 0;
  margin-left: 2px;
  color: var(--accent);
}

.bio-place {
  margin-top: var(--s2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Sign-off and notes that close the biography: one step of separation from the
   list above, not a second section's worth of padding. */
.bio-coda {
  margin-top: var(--s6);
}

.bio-coda .bio-credit {
  margin-top: 0;
}

/* The gallery record is the answer to question 7, so it follows the interview
   at the interview's own rhythm, not after a full section break on either side.
   Its heading rule leads straight into the rows: a second rule 64px lower read
   as an empty line. */
.bio-interview {
  padding-bottom: var(--s3);
}

.bio-ledger {
  padding-block: var(--s5);
}

.bio-ledger .section-head {
  margin-bottom: 0;
}

.bio-ledger .exhibitions {
  border-top: 0;
}

.bio-collections {
  padding-block: var(--s6);
}

.bio-collections .section-head {
  margin-bottom: var(--s4);
}

.footnotes {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}

.footnotes li {
  list-style: none;
  display: flex;
  gap: var(--s3);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: var(--s3);
  max-width: 62ch;
}

.footnotes .fn-num {
  font-size: 0.7rem;
  color: var(--accent);
  padding-top: 3px;
}

.bio-credit {
  margin-top: var(--s5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* Exhibition record: a ledger, one hairline per row. */
.exhibitions {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.exhibition {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: baseline;
  padding-block: var(--s3);
  border-bottom: 1px solid var(--rule);
  transition: background 0.25s var(--ease);
}
.exhibition:hover {
  background: rgba(140, 59, 30, 0.035);
}

.exhibition-year {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.exhibition-venue {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--ink);
}

.exhibition-city {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
}

.exhibition.is-highlight .exhibition-venue {
  font-style: italic;
}
.exhibition.is-highlight .exhibition-year {
  color: var(--accent);
}

.collections {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  list-style: none;
  margin-top: var(--s4);
}

.collections li {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}
.collections li:not(:last-child)::after {
  content: " ·";
  color: var(--ink-faint);
}

/* ---------- Contact form -------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(var(--s5), 6vw, var(--s7));
  align-items: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s4);
}

.field label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  transition: border-color 0.25s var(--ease);
  border-radius: 0;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.6;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #c2b8ad;
}

.field-error {
  font-size: 0.75rem;
  color: var(--accent);
  min-height: 1em;
}

.form-note {
  margin-top: var(--s4);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 52ch;
}

.form-status {
  margin-top: var(--s3);
  font-size: 0.88rem;
  color: var(--ink);
  padding: var(--s3);
  background: var(--paper-deep);
  display: none;
}
.form-status.visible {
  display: block;
}

.enquiry-chip {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  background: var(--paper-deep);
  margin-bottom: var(--s5);
}
.enquiry-chip img {
  width: 60px;
  height: 72px;
  object-fit: cover;
}

/* ---------- Footer -------------------------------------------------------- */

.site-footer {
  background: var(--paper-dark);
  color: rgba(250, 247, 242, 0.62);
  padding-top: clamp(var(--s5), 5vw, var(--s6));
  font-size: 0.85rem;
}

/* Name, Pages and Contact as three even columns, held to the same width and
   edges as the page text above (the .wrap measure). */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(var(--s5), 5vw, var(--s6));
}

/* The rule runs the full width of the footer; the copyright under it keeps to
   the page-text edge, with the same space below it as above. */
.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.12);
}

/* Fine print, not a peer of the address. */
.footer-copyright {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: var(--s4) var(--gutter);
  font-size: 0.78rem;
  color: rgba(250, 247, 242, 0.42);
}

.footer-name {
  font-family: var(--font-display);
  /* 700 is the ceiling for Cormorant Garamond; it has no bolder cut. Going
     heavier than this needs a different typeface, not a bigger number. */
  font-weight: 700;
  /* Scaled to stay on one line within a third of the page width. */
  font-size: clamp(2rem, 3vw, 3.2rem);
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--s3);
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.4);
  margin-bottom: var(--s3);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.footer-col a {
  color: rgba(250, 247, 242, 0.72);
  transition: color 0.25s var(--ease);
}
.footer-col a:hover {
  color: #fff;
}

/* The divider lives here as a border-top rather than on the grid above it.
   Borders sit outside padding, so with the gutter applied as padding-inline the
   line spans the full viewport edge to edge while the copyright text stays
   aligned with the columns above. */

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 1080px) {
  .art-modal-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
  .art-modal-figure img {
    max-height: 52vh;
  }
  .bio-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .bio-portrait {
    position: static;
    max-width: 380px;
  }
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .topbar-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--s5);
    padding: var(--gutter);
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.42s var(--ease);
    z-index: 40;
  }
  .topbar-links.open {
    transform: none;
  }
  .topbar-links a {
    font-size: 1.6rem;
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--ink);
  }
  /* Inside the full-screen panel the inverted hero colours must not apply,
     including the white the current page's link gets over the hero. */
  .topbar--over .topbar-links a,
  .topbar--over .topbar-links a:hover,
  .topbar--over .topbar-links a.is-active {
    color: var(--ink);
    text-shadow: none;
  }
  .topbar--over .topbar-links a.is-active {
    border-bottom-color: var(--ink);
  }

  /* The panel lives inside the header, so lift the header's own controls above
     it: otherwise it covers the brand, the language flag and the close button. */
  .topbar-brand,
  .topbar-right {
    position: relative;
    z-index: 41;
  }
  /* With the panel open the see-through header sits on paper, not on the photo. */
  .topbar--over.nav-open .topbar-brand {
    color: var(--ink);
    text-shadow: none;
  }
  .topbar--over.nav-open .nav-toggle span {
    background: var(--ink);
  }
  .topbar--over.nav-open .lang-dropdown-toggle {
    border-color: var(--rule);
  }
  .topbar--over.nav-open .lang-dropdown-caret {
    color: var(--ink-soft);
  }

  /* The portrait is very wide (about 2.2:1), so a tall screen shows only a
     slice of it. Centred, that slice is his raised hand; shift it to his face. */
  .hero-img {
    object-position: 76% center;
  }

  .statement,
  .bio-teaser {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  /* The name takes the top row; Pages and Contact split the width below it. */
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s5) var(--s4);
  }
  .footer-identity {
    grid-column: 1 / -1;
  }
  .footer-col a {
    overflow-wrap: anywhere;
  }

  .work-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .exhibition {
    grid-template-columns: 62px minmax(0, 1fr);
  }
  .exhibition-city {
    grid-column: 2;
    text-align: left;
  }

  .art-modal-next {
    left: calc(var(--s3) + 54px);
  }
}

@media (max-width: 520px) {
  /* On a phone the slice is narrower still: 58% frames his raised peace sign
     and his face together, where 76% cuts the hand off. */
  .hero-img {
    object-position: 58% center;
  }

  /* Two paintings per row: one per screen made the catalogue roughly 48
     screens long. Captions step down to fit the narrower cards. */
  .featured-grid,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s4) var(--s3);
  }
  .work-card {
    contain-intrinsic-block-size: auto 290px;
  }
  .work-caption {
    padding-top: var(--s2);
  }
  .work-title {
    font-size: 1rem;
  }
  .work-meta {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }
  .filters {
    gap: var(--s2) var(--s3);
  }
  .filter-count {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
