/* ==========================================================================
   Celia de Villiers — "refined-faithful" rebuild (design pass, 2026-06-01)
   Keeps the old C5 site's quiet, minimal character but fixes the real faults:
   legibility, contrast, type quality, responsive width, thumbnail tiles.
   Palette: charcoal ink + warm bronze accent (replaces the old failing lime).
   ========================================================================== */

:root {
  --bg:        #ffffff;            /* pure white */
  --panel:     #ffffff;           /* gallery frame / thumbs — white, defined by border */
  --ink:       #1c1b19;           /* wordmark / headings */
  --text:      #2c2a27;           /* body — high contrast */
  --muted:     #6a665f;           /* secondary text (≈5:1 on bg) */
  --line:      #e4e0d8;           /* hairline dividers */
  --accent:    #7d4a66;           /* deep mauve — links/markers (≈5:1) */
  --accent-ink:#5b3650;           /* darker mauve for hover / overlays */
  --theme-accent:#3f6f6a;         /* cool teal — theme tags, distinct from mauve medium tags */
  --theme-ink:#2c4f4b;            /* darker teal for hover */
  --period-accent:#8a5a2b;        /* warm bronze — period (time) tags */
  --period-ink:#5e3d1c;
  --font-head: "Jost", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --page-max:  1040px;
  --gutter:    clamp(20px, 5vw, 56px);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; border: 0; max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: none; }
p { margin: 0 0 1em 0; }
ul, ol { margin: 0 0 1em 0; padding-left: 1.25em; }
li { margin-bottom: .4em; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); font-weight: 400; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(27px, 4.2vw, 36px); font-weight: 300; letter-spacing: .02em; }
h2 { font-size: clamp(20px, 3vw, 24px); margin-top: 1.4em; }
h3 { font-size: 18px; margin-top: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
/* The HTML `hidden` attribute must always win — otherwise an explicit `display`
   rule (e.g. .detailfig__ph { display:flex }) overrides it and the element shows
   anyway. Fixes the stray "(Missing info)" box appearing beside real hero images. */
[hidden] { display: none !important; }

/* page shell */
#page { width: 100%; max-width: var(--page-max); margin: auto; padding: 0 var(--gutter); }
#headerSpacer { height: clamp(28px, 5vw, 56px); }
#header { position: relative; display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px; }
.masthead { display: block; }
.tagline { margin: 5px 0 0; font-family: var(--font-body); font-size: 13px; letter-spacing: .015em;
  color: var(--muted); max-width: 52ch; line-height: 1.4; }
.tagline a { color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: color .15s, border-color .15s; }
.tagline a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.ponte-out { margin-top: 1.4em; }
.flag-note { color: var(--accent-ink); font-size: 13px; margin: 1.2em 0; }
/* Page lead: overline (role/context) + standfirst (one elegant, SEO-bearing sentence) */
.overline { font-family: var(--font-body); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 .5em; }
.standfirst { font-family: var(--font-head); font-weight: 300; font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.45; color: var(--text); max-width: 60ch; margin: .15em 0 1.6em; }
h1 + .standfirst { margin-top: .3em; }
.explore-links { font-family: var(--font-body); font-size: 14px; color: var(--muted); margin: 2.4em 0 0; }
/* content sections (e.g. Practice → Educator/Community/Curator). NO background wash —
   tints read as muddy on the warm-white ground, so sections are separated by a hairline
   rule + generous space, with a short mauve accent above each overline. A subtle PARALLAX
   lifts each section's content as it scrolls in (scroll-driven, disabled for reduced-motion). */
.practice-section { position: relative; background: transparent; padding: clamp(36px, 5vw, 64px) 0; margin: 0; }
.practice-section > .content, .practice-section > .content--wide { padding-top: 0; }
.practice-section h2 { scroll-margin-top: 90px; }
/* short mauve accent rule above each section's overline */
.practice-section .overline { position: relative; }
.practice-section .overline::before {
  content: ""; position: absolute; top: -16px; left: 0; width: 34px; height: 2px; background: var(--accent);
}
/* hairline seam between adjacent sections */
.practice-section + .practice-section { border-top: 1px solid var(--line); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .practice-section > .content, .practice-section > .content--wide {
      animation: practiceParallax linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 60%;
    }
    @keyframes practiceParallax {
      from { transform: translateY(26px); opacity: .82; }
      to   { transform: translateY(0);    opacity: 1; }
    }
  }
}
.statement-attr { font-family: var(--font-body); font-size: 14px; color: var(--muted); letter-spacing: .02em; margin-top: 1.2em; }
.work__shows { font-family: var(--font-body); font-size: 14px; color: var(--muted); margin: .2em 0 0; }
.work__shows a { color: var(--accent); }
.work__links { font-family: var(--font-body); font-size: 14px; color: var(--muted); margin: 1.4em 0 0; }
.work__links a { color: var(--accent); }
.artist-list { list-style: none; padding: 0; margin: 1em 0 0; columns: 2; column-gap: 40px; }
.artist-list li { break-inside: avoid; margin: 0 0 .7em; font-family: var(--font-body); font-size: 15px; line-height: 1.4; color: var(--text); }
.artist-list a { color: var(--accent); text-decoration: none; }
.artist-list a:hover { text-decoration: underline; }
@media (max-width: 600px) { .artist-list { columns: 1; } }
.theme { margin: 0 0 2.6em; }
.theme h2 { margin-bottom: .2em; }
.theme > p { color: var(--muted); max-width: 60ch; margin: 0 0 1em; }
.proj-photo { background: #fff; border: 1px solid #1a1a1a; padding: 8px; margin: .6em 0 1.6em; }
.proj-photo img { display: block; width: 100%; }
.proj-photo figcaption { font-family: var(--font-body); font-size: 13px; color: var(--muted);
  margin-top: 8px; line-height: 1.4; }

/* profile portrait */
.profile-portrait { float: right; width: clamp(180px, 34%, 300px); margin: .2em 0 1em 1.8em;
  background: #fff; border: 1px solid #1a1a1a; padding: 8px; }
.profile-portrait img { display: block; width: 100%; }
@media (max-width: 560px) { .profile-portrait { float: none; width: auto; max-width: 300px; margin: 0 auto 1.2em; } }

/* Tate-style project tiles: title hidden, revealed on hover over a coloured overlay */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px; margin: 1.1em 0 1.8em; }
.proj-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  background: #f3efe9; border: 1px solid #1a1a1a; text-decoration: none; }
.proj-tile img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .3s ease, transform .45s ease; }
.proj-tile__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px; color: var(--ink); font-family: var(--font-head); font-weight: 400;
  font-size: 15px; line-height: 1.35; letter-spacing: .01em; opacity: 0;
  background: hsl(322 var(--tsat, 26%) 90% / .96); transition: opacity .3s ease; }
.proj-tile:hover img, .proj-tile:focus-within img { opacity: .18; transform: scale(1.04); }
.proj-tile:hover .proj-tile__label, .proj-tile:focus-within .proj-tile__label { opacity: 1; }
.proj-tile.is-missing { background: #f3efe9; border-style: dashed; }
.proj-tile .proj-tile__label--static { position: static; inset: auto; opacity: 1; height: 100%;
  background: none; color: var(--ink); }
.proj-tile .flag { color: var(--accent-ink); font-style: italic; font-family: var(--font-body); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .proj-tile img { transition: none; } }

/* Card grid — museum index style (image on soft grey panel · title · muted sub/meta) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 42px 30px; margin-top: 1.6em; }
.tile { display: block; color: var(--ink); text-decoration: none; }
.tile__img { position: relative; background: #fff; border: 1px solid #1a1a1a; aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 18px; }
.tile__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  transition: opacity .35s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.tile__img--none { background: #fff; border: 1px solid #1a1a1a; }
/* Hover = a gentle mauve tint (title already shows beneath, so it isn't repeated) */
.tile__img::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: hsl(322 var(--tsat, 26%) 60% / 0); transition: background .3s ease; }
.tile__label { margin-top: .85em; font-family: var(--font-head); font-weight: 400; font-size: 20px;
  letter-spacing: .015em; line-height: 1.25; color: var(--ink); transition: color .25s ease; }
.tile__sub  { font-family: var(--font-body); font-size: 14px; color: var(--muted); margin-top: .3em; letter-spacing: .005em; }
.tile__meta { font-family: var(--font-body); font-size: 14px; color: #9a958c; margin-top: .1em; }
a.tile:hover .tile__img img, a.tile:focus-within .tile__img img { transform: scale(1.03); }
a.tile:hover .tile__img::after, a.tile:focus-within .tile__img::after { background: hsl(322 var(--tsat, 26%) 60% / .16); }
a.tile:hover .tile__label, a.tile:focus-within .tile__label { color: var(--accent-ink); }

/* Masonry artworks grid (natural aspect ratios) */
.artworks { column-width: 250px; column-gap: 32px; margin-top: 0.8em; }
.artwork { display: block; break-inside: avoid; margin: 0 0 38px; padding: 0; text-decoration: none; color: var(--ink); }
.artwork img { width: 100%; height: auto; display: block; background: #fff; border: 1px solid #1a1a1a; transition: box-shadow .3s ease; }
.artwork:hover img { box-shadow: inset 0 0 0 9999px hsl(322 var(--tsat, 26%) 55% / .12); }
/* gradual reveal: each tile fades and rises as it scrolls into view (JS only; instant for no-JS & reduced-motion) */
.js .artworks .artwork { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; will-change: opacity, transform; }
.js .artworks .artwork.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .artworks .artwork { opacity: 1; transform: none; transition: none; } }
.artwork__title { display: block; font-family: var(--font-head); font-weight: 500; font-size: 18px;
  letter-spacing: .01em; line-height: 1.25; color: var(--ink); margin-top: .6em; }
.artwork:hover .artwork__title { color: var(--accent-ink); }
.artwork__meta { display: block; font-family: var(--font-body); font-size: 14px; color: var(--muted); margin-top: .15em; }
/* image-less work placeholder (data-first build-out) */
.artwork__ph { display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; background: #f3efe9; border: 1px dashed #b9b1a4; color: var(--muted);
  font-family: var(--font-head); font-weight: 300; font-size: 15px; letter-spacing: .02em; }
.artwork__ph em { font-family: var(--font-body); font-style: italic; font-size: 11px; color: var(--accent-ink); margin-top: 4px; }
.detailfig__ph { display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 320px; background: #f3efe9; border: 1px dashed #b9b1a4; color: var(--muted);
  font-family: var(--font-head); font-weight: 300; font-size: 18px; }
.detailfig__ph em { font-family: var(--font-body); font-style: italic; font-size: 12px; color: var(--accent-ink); margin-top: 6px; }
/* thumbnail navigation — visual nav between sibling works (system component) */
.thumbnav-wrap { margin: 44px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.thumbnav__head { font-family: var(--font-body); font-size: 14px; color: var(--ink); margin: 0 0 12px; }
.thumbnav__hint { color: var(--muted); font-weight: 400; }
.gv-thumbs__head { font-family: var(--font-body); font-size: 13px; color: var(--muted); margin: 1.3em 0 .4em; }
.thumbnav { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbnav__item { flex: 0 0 auto; width: 62px; height: 62px; border: 1px solid #1a1a1a; overflow: hidden;
  background: #fff; opacity: .5; transition: opacity .2s ease; }
.thumbnav__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbnav__item:hover, .thumbnav__item:focus { opacity: 1; }
.thumbnav__item.is-current { opacity: 1; outline: 2px solid var(--accent); outline-offset: -2px; }
.thumbnav__ph { display: block; width: 100%; height: 100%; background: #f3efe9; }

/* prev / next between works */
.prevnext { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px;
  padding-top: 18px; border-top: 1px solid var(--line); }
.pn { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 400;
  font-size: 17px; color: var(--ink); text-decoration: none; max-width: 45%; }
.pn--next { text-align: right; }
.pn span { font-family: var(--font-body); font-size: 12px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.pn:hover { color: var(--accent-ink); }

/* work detail page */
.detailfig { margin: 1em 0 .5em; background: #fff; border: 1px solid #1a1a1a; padding: clamp(14px, 3vw, 34px); text-align: center; }
.detailfig img { max-height: 78vh; width: auto; margin: 0 auto; }
.detailfig figcaption { margin-top: .7em; font-size: 14px; color: var(--muted); font-style: italic; }
.work__coll { font-size: 14px; color: var(--muted); margin: .3em 0 0; }
h1 .work__year { font-size: 18px; color: var(--muted); font-family: var(--font-body); margin-left: .4em; letter-spacing: 0; }
.work__by { font-family: var(--font-body); font-size: 15px; color: var(--accent-ink); margin: -.1em 0 1.1em; letter-spacing: .02em; }

/* wordmark — confident, serif, dark */
#logo { margin: 0; padding: 0; font-family: var(--font-head); font-weight: 300;
  font-size: clamp(24px, 3.6vw, 32px); letter-spacing: .06em; float: none; }
#logo a { color: var(--ink); }
#logo a:hover { color: var(--ink); }

/* primary nav */
ul.nav-header { list-style: none; margin: 0; padding: 0; float: none; display: flex; flex-wrap: wrap; gap: 4px 22px; }
ul.nav-header li { float: none; margin: 0; padding: 0; font-family: var(--font-body);
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
ul.nav-header li a { color: var(--muted); padding-bottom: 2px; transition: color .15s; }
ul.nav-header li a:hover { color: var(--ink); }
ul.nav-header li.nav-selected { border: 0; padding: 0; }
ul.nav-header li.nav-selected a { color: var(--ink); border-bottom: 1.5px solid var(--accent); }

/* dividers + section nav */
.divider { clear: both; width: 100%; height: 1px; border-top: 1px solid var(--line); margin-top: 14px; overflow: hidden; }
#header-area { margin: 12px 0 0; }

/* bottom nav bar: breadcrumb (navigation, moved to bottom) + back-to-top */
.page-foot { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap;
  gap: 8px 24px; margin: 56px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.page-foot .breadcrumb { margin: 0; }
.to-top { font-family: var(--font-body); font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: .02em; }
.to-top:hover { color: var(--ink); }

/* breadcrumb */
.breadcrumb { font-family: var(--font-body); font-size: 13px; color: var(--muted); margin: 1.4em 0 .4em; letter-spacing: .01em; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: #c8c2b6; margin: 0 .15em; }
.breadcrumb [aria-current="page"] { color: var(--ink); }
.breadcrumb + .content > h1, .breadcrumb + .content h1 { margin-top: .2em; }
ul.nav-section { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: nowrap;
  gap: 6px 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
ul.nav-section li { white-space: nowrap; }
/* sub-nav steps DOWN from the primary nav: smaller, lighter, title-case (not uppercase) */
ul.nav-section li { font-family: var(--font-body); font-size: 12px; letter-spacing: .01em; text-transform: none; }
ul.nav-section li a { color: #8f897e; }
ul.nav-section li a:hover { color: var(--ink); }
ul.nav-section li.current a { color: var(--ink); border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }

/* body / content */
#central { clear: both; }
#body { width: auto; }
.spacer { clear: both; font-size: 1px; line-height: 1px; }
.content { max-width: 70ch; margin-top: 1.15em; }
.content--wide { max-width: none; }
.content a, #footer a, .prose a { color: var(--accent); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px; text-decoration-color: var(--line); }
.content a:hover { color: var(--accent-ink); text-decoration-color: var(--accent); }

/* hero-led home (Option B) */
.hero__fig { background: #fff; border: 1px solid #1a1a1a; padding: clamp(16px, 3vw, 40px); text-align: center; margin: 1em 0 .8em; }
.hero__link { display: block; cursor: pointer; }
.hero__show { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.hero__base { display: block; width: auto; max-width: 100%; max-height: 72vh; margin: 0 auto; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  animation: heroFade calc(var(--n, 7) * 5s) ease-in-out infinite; animation-delay: calc(var(--i) * 5s); will-change: opacity; }
@keyframes heroFade {
  0%   { opacity: 1; }
  14%  { opacity: 1; }
  18%  { opacity: 0; }
  96%  { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hero__slide { animation: none; opacity: 0; } }
/* hero strapline set in the site's image-caption style: body font, italic, muted */
.hero__intro { font-family: var(--font-body); font-style: italic; font-size: 14px;
  line-height: 1.5; color: var(--muted); max-width: 56ch; margin: .6em 0 0; text-wrap: balance; }
.featured { margin-top: 60px; }
.featured h2 { margin-bottom: .1em; }
.more { margin-top: 1.4em; }
.more a { font-family: var(--font-body); font-size: 15px; color: var(--accent); text-decoration: none; letter-spacing: .02em; }
.more a:hover { color: var(--accent-ink); }

/* home: artist statement at the bottom, below the gallery */
.home-statement { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.home-statement .content { max-width: 70ch; }

/* artist CV (on the Profile page): year column + entry */
.cv { margin-top: 18px; }
.cv h2 { margin-top: 1.9em; margin-bottom: .3em; }
.cv-list { margin: 0; }
.cv-row { display: flex; gap: 20px; padding: 7px 0; border-top: 1px solid var(--line);
  font-size: 15px; line-height: 1.5; }
.cv-row:first-child { border-top: 0; }
.cv-yr { flex: 0 0 6em; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.cv-txt { flex: 1; color: var(--text); }
.cv h2 + .cv-list .cv-row:first-child { border-top: 0; }
@media (max-width: 560px) { .cv-row { flex-direction: column; gap: 0; padding: 8px 0; } .cv-yr { flex-basis: auto; font-size: 13px; } }

/* home identity lead */
.lead { font-family: var(--font-head); font-size: clamp(17px, 2.2vw, 20px); color: var(--ink);
  max-width: 60ch; margin: 1.4em 0 .2em; line-height: 1.45; }
.lead .muted { color: var(--muted); }

/* ==========================================================================
   In-place gallery viewer — restored concrete5 thumbnail→hero pattern.
   A sticky thumbnail strip under the menu; clicking a thumb swaps the large
   hero image + caption + rationale in place (no page jump). See gallery.js.
   ========================================================================== */
.gallery-viewer { margin: 1.2em 0 2.4em; outline: none; }
/* thumbnail strip — sits BELOW the hero (the original C5 position), under its caption */
.gv-thumbs {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 1.4em 0 0; padding: 14px 0 0;
  list-style: none; border-top: 1px solid var(--line);
}
.gv-thumbs li { margin: 0; }
.gv-thumb {
  width: 66px; height: 66px; padding: 0; overflow: hidden; cursor: pointer;
  background: #f3efe9; border: 1px solid var(--line); opacity: .62;
  transition: opacity .18s, border-color .18s, outline-color .18s;
}
.gv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gv-thumb__ph { display: flex; align-items: center; justify-content: center; height: 100%;
  font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.gv-thumb:hover { opacity: 1; border-color: #c9c2b4; }
.gv-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gv-thumb.is-current {
  opacity: 1; border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -1px;
  background: hsl(322 var(--tsat, 22%) 92%);
}
/* main stage — large hero image, framed like the detail figure.
   The frame has a STABLE height so swapping images of different proportions
   never reflows the page (no "jumpy" thumbnails / caption). */
.gv-stage {
  margin: 0; background: #fff; border: 1px solid #1a1a1a;
  padding: clamp(14px, 3vw, 34px); text-align: center;
}
.gv-stage__frame {
  display: flex; align-items: center; justify-content: center;
  height: clamp(360px, 64vh, 660px); transition: opacity .14s ease;
}
.gv-stage--clickable { cursor: pointer; }
.gv-stage.is-swapping .gv-stage__frame { opacity: 0; }
.gv-img { max-height: 100%; max-width: 100%; width: auto; margin: 0 auto; display: block; }
.gv-stage .gv-img__ph { min-height: 0; height: 100%; width: 100%; }
.gv-cap { display: block; margin-top: .85em; min-height: 5.2em; }  /* reserve space so thumbnails below never shift between works */
.gv-cap__title { display: block; font-family: var(--font-head); font-size: clamp(17px, 2.2vw, 21px); color: var(--ink); }
.gv-cap__meta { display: block; font-family: var(--font-body); font-size: 14px; color: var(--muted); font-style: italic; margin-top: .15em; }
.gv-cap__coll { display: block; font-family: var(--font-body); font-size: 13px; color: var(--muted); margin-top: .1em; }
.gv-cap__coll:empty, .gv-cap__meta:empty { display: none; }
.gv-text { max-width: 64ch; margin: 1.4em auto 0; }
.gv-text p { margin: 0 0 1em; }
.gv-text:empty { display: none; }
.gv-more { margin: 1.2em 0 0; font-family: var(--font-body); font-size: 14px; }
/* single-image gallery (some project pages): no thumbnail strip needed */
.gv--single .gv-thumbs { display: none; }
.gv--single .gv-cap { min-height: 0; }
/* no-JS fallback: first work shows fully; thumbs become a plain wrap (inert) */
.no-js .gv-thumbs { position: static; }
.no-js .gv-thumb { cursor: default; }
/* full labelled index beneath the viewer (→ detail pages) */
.work__meta { font-family: var(--font-body); font-size: 14px; color: var(--muted); font-style: italic; margin: .2em 0 1.1em; }
.gv-all { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 30px; }
.gv-all h2 { margin: 0 0 .2em; }
.morecat { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 30px; }
.morecat__head { margin: 0 0 .2em; }

/* tag filter — chips select a theme; the SELECTED chip is clearly highlighted */
.tagbar { display: flex; flex-wrap: wrap; gap: 8px; margin: .4em 0 0; }
.tagchip {
  font-family: var(--font-body); font-size: 13px; letter-spacing: .01em; line-height: 1;
  padding: 8px 14px; cursor: pointer; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s, background .15s, color .15s;
}
.tagchip:hover { border-color: var(--accent); color: var(--accent-ink); }
.tagchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tagchip.is-current {            /* the selected tag (medium / default) */
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500;
}
/* theme tags read as a distinct family (cooler hue) vs the plum medium tags */
.tagchip--theme:hover { border-color: var(--theme-accent); color: var(--theme-ink); }
.tagchip--theme:focus-visible { outline-color: var(--theme-accent); }
.tagchip--theme.is-current { background: var(--theme-accent); border-color: var(--theme-accent); color: #fff; }
/* "All artworks" — a neutral charcoal, distinct from both medium (mauve) and theme (teal) */
.tagchip--all:hover { border-color: var(--ink); color: var(--ink); }
.tagchip--all.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.tagchip--period:hover { border-color: var(--period-accent); color: var(--period-ink); }
.tagchip--period:focus-visible { outline-color: var(--period-accent); }
.tagchip--period.is-current { background: var(--period-accent); border-color: var(--period-accent); color: #fff; }
.tagbar__sep { flex: 0 0 1px; align-self: stretch; min-height: 1.6em; background: var(--line); margin: 0 4px; }
.tagbar__break { flex-basis: 100%; height: 0; margin: 4px 0 0; }   /* forces the Theme group onto its own line */
.tagbar__label { align-self: center; font-family: var(--font-body); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0 2px; }
.tagbar__label::after { content: ":"; }
.tagbar__note { font-family: var(--font-body); font-size: 14px; color: var(--muted); margin: .55em 0 0; }
.tagbar__count { color: var(--ink); font-weight: 500; }
.no-js .tagbar { display: none; }   /* without JS, chips can't filter — hide them; all works show */

/* ==========================================================================
   Home category cards — the homepage's navigational grid (2–3 categories,
   each with example thumbnails). Reuses the hairline-frame + mauve-hover language.
   ========================================================================== */
.home-cats { margin-top: 56px; }
.homecat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 1.2em; }
.homecat { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff;
  text-decoration: none; color: inherit; transition: border-color .18s, transform .18s; }
.homecat:hover { border-color: var(--accent); transform: translateY(-2px); }
.homecat__thumbs { display: grid; gap: 2px; background: var(--line); height: 210px; overflow: hidden; grid-template-columns: 1fr; }
.homecat__thumbs--3 { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; }
.homecat__thumbs--3 img:first-child { grid-row: 1 / 3; }
.homecat__thumbs img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; display: block; }
.homecat__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.homecat__label { font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 26px); color: var(--ink); line-height: 1.1; }
.homecat__desc { font-family: var(--font-body); font-size: 14px; color: var(--muted); line-height: 1.45; }
.homecat__go { margin-top: 8px; font-family: var(--font-body); font-size: 13px; letter-spacing: .04em; color: var(--accent); }
.homecat:hover .homecat__go { color: var(--accent-ink); }

/* ==========================================================================
   Per-work sections (Work pages): image(s) lead · caption under · rationale below
   ========================================================================== */
.work { margin: 0 0 3.4em; }
.work__head { margin: 0 0 .8em; }
.work__title { font-family: var(--font-head); font-weight: 400; color: var(--ink);
  font-size: clamp(20px, 3vw, 26px); letter-spacing: .01em; display: inline; }
.work__year { color: var(--muted); font-size: 15px; margin-left: .5em; }
.work figure { margin: 0 0 .4em; background: #fff; border: 1px solid #1a1a1a;
  padding: clamp(12px, 2.5vw, 26px); text-align: center; }
.work figure img { max-height: 70vh; width: auto; margin: 0 auto; }
.work figcaption { margin-top: .6em; font-size: 14px; color: var(--muted); font-style: italic; }
.work__rationale { max-width: 70ch; margin-top: 1.1em; }
.work + .work { border-top: 1px solid var(--line); padding-top: 2.4em; }
.work { scroll-margin-top: 18px; }

/* thumbnail index — in-page navigation between works */
.work-index { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin: 1.2em 0 2.6em; padding: 0; }
.work-index li { margin: 0; }
.work-index a { display: block; width: 88px; text-decoration: none; }
.work-index img { width: 88px; height: 88px; object-fit: cover; background: #fff; border: 1px solid #d3cec4; transition: border-color .15s; }
.work-index span { display: block; margin-top: 5px; font-size: 11px; line-height: 1.25; color: var(--muted); }
.work-index a:hover img { border-color: var(--accent); }
.work-index a:hover span { color: var(--ink); }

/* pullquote — the accent reused as a system element */
.pullquote { margin: 1.6em 0; padding: .1em 0 .1em 1.1em; border-left: 2px solid var(--accent);
  font-family: var(--font-head); font-weight: 300; font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.4; color: var(--ink); max-width: 60ch; }
.pullquote cite { display: block; margin-top: .55em; font-family: var(--font-body); font-style: normal;
  font-size: 13px; letter-spacing: .03em; color: var(--muted); }

/* ---- contact form ---- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 5px; color: var(--ink); font-size: 14px; }
.form-row input[type=text], .form-row input[type=email], .form-row textarea {
  width: 100%; max-width: 36rem; padding: 9px 11px; border: 1px solid var(--line);
  font: 15px var(--font-body); color: var(--text); background: #fff; border-radius: 0; }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-row textarea { min-height: 150px; }
.form-row fieldset { border: 1px solid var(--line); padding: 10px 14px; max-width: 36rem; }
.form-row legend { color: var(--ink); font-size: 14px; padding: 0 6px; }
.form-row .radio { display: block; margin: 5px 0; color: var(--text); }
button[type=submit] { background: var(--accent); color: #fff; border: 0; padding: 10px 22px;
  font: 14px var(--font-body); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
button[type=submit]:hover { background: var(--accent-ink); }

/* ---- footer ---- */
#footer { clear: both; margin-top: 40px; padding: 26px 0 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 24px 56px; }
#footer a { color: var(--muted); text-decoration: none; }
#footer a:hover { color: var(--ink); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px 48px; }
.foot-col { display: flex; flex-direction: column; gap: 7px; }
.foot-col a { letter-spacing: .015em; }
.foot-h { font-family: var(--font-head); font-weight: 400; color: var(--ink);
  text-transform: uppercase; letter-spacing: .08em; font-size: 11px; margin-bottom: 3px; }
.footer-meta { margin: 0; letter-spacing: .015em; align-self: flex-end; }

/* ---- responsive ---- */
@media (max-width: 680px) {
  #header { flex-direction: column; align-items: flex-start; }
  ul.nav-header { gap: 4px 16px; }
  .gallery__thumbs img { width: 72px; height: 72px; }
}
