/* ==========================================================================
   John Napier Stages — site stylesheet
   --------------------------------------------------------------------------
   A refined edition of the 2015 design by Wild Dog Design (wilddogdesign.co.uk):
   same black / white / grey palette, Raleway + Droid Serif, full-bleed
   photography, white cards over photographs, "More" reveals and poster grids.

   How this file is organised
     1. Tokens (colours, type, spacing) — change the look here first
     2. Fonts
     3. Base elements
     4. Header and navigation (desktop row + mobile menu)
     5. Buttons, quote marks, small shared pieces
     6. Work pages: hero, title card, pull quotes, More panel, gallery, prev/next
     7. Poster grids (category pages and "other works")
     8. Cards over photographs (home, biography, awards, contact, exhibition)
     9. Reading pages (essays, Narrative, terms, credits) and the essays index
    10. Affiliations & Awards table, complete-works A–Z lists
    11. Footer
    12. Lightbox and video popups (created by site.js)
    13. Motion (all switched off for visitors who prefer reduced motion)
   ========================================================================== */


/* 1. Tokens
   ========================================================================== */

:root {
  /* colour — monochrome only; the work supplies the colour */
  --ink: #111111;          /* headings, buttons, active rules */
  --text: #2a2a2a;         /* body copy */
  --muted: #696969;        /* citations, dates, meta (5.4:1 on white) */
  --stone: #575757;        /* the original grey: footer band, hovers */
  --rule: #dddddd;         /* hairlines */
  --rule-strong: #bdbdbd;  /* short title rules */
  --mist: #f3f3f3;         /* panels, image mats, zebra rows */
  --paper: #ffffff;
  --stages-paper: #f1f6f5; /* rgb(241,246,245): the collage's own background as the WebP decodes it */
  --card: rgba(255, 255, 255, 0.96);   /* white card over photographs */
  --scrim: rgba(12, 12, 12, 0.92);     /* lightbox / video backdrop */

  /* type */
  --sans: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --serif: "Droid Serif", Georgia, "Times New Roman", serif;
  --fs-label: 0.75rem;      /* 12px caps labels */
  --fs-small: 0.8125rem;    /* 13px */
  --fs-ui: 0.9375rem;       /* 15px */
  --fs-body: 1.0625rem;     /* 17px */
  --fs-read: 1.125rem;      /* 18px long reading */
  --fs-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);        /* 20–24 */
  --fs-quote: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);     /* 20–28 */
  --fs-h2: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);        /* 22–28 */
  --fs-title: clamp(2rem, 1.3rem + 3vw, 4rem);              /* 32–64 */
  --fs-page: clamp(1.75rem, 1.3rem + 1.9vw, 3rem);          /* 28–48 */
  --track-label: 0.16em;
  --track-title: 0.08em;
  --lh-read: 1.75;

  /* space (4pt scale) */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(20px, 4vw, 48px);
  --wrap: 1200px;          /* standard content width */
  --wrap-wide: 1440px;     /* gallery pairs */
  --measure: 700px;        /* long reading (~70 characters) */

  /* layout pieces */
  --header-brand: 76px;    /* desktop logo row (scrolls away) */
  --header-bar: 52px;      /* desktop nav row (sticks) */
  --header-mobile: 60px;
  --tile-ratio: 400 / 506; /* every poster thumbnail on the site has this shape */

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms;
  --t-slow: 600ms;

  /* layers */
  --z-header: 50;
  --z-menu: 60;
}


/* 2. Fonts (self-hosted, from the original theme)
   ========================================================================== */

@font-face { font-family: "Raleway"; src: url(../fonts/raleway-light.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url(../fonts/raleway-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url(../fonts/raleway-medium.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url(../fonts/raleway-bold.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Droid Serif"; src: url(../fonts/droidserif-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Droid Serif"; src: url(../fonts/droidserif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* the original icon set: menu, close, play, quotes, arrows */
@font-face { font-family: "icomoon"; src: url(../fonts/icomoon.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: block; }


/* 3. Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-bar) + var(--s4));
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
iframe { border: 0; max-width: 100%; }

h1, h2, h3, h4 { margin: 0; font-weight: 300; color: var(--ink); line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--ink); text-decoration: none; transition: color var(--t-fast), opacity var(--t-fast); }
button { font: inherit; color: inherit; }
strong, b { font-weight: 800; }
blockquote, figure { margin: 0; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  padding: var(--s3) var(--s4);
  background: var(--ink); color: var(--paper);
  font-size: var(--fs-small); letter-spacing: var(--track-label); text-transform: uppercase;
}
.skip-link:focus { top: var(--s4); }

.main { display: block; }


/* 4. Header and navigation
   --------------------------------------------------------------------------
   Desktop: the logo row scrolls away and the nav row sticks (the header is
   sticky with a negative top equal to the logo row). The home page has no
   logo row because the logo is inside the STAGES collage, as on the old site.
   Phones/tablets: one slim row (logo + Menu); the menu opens full-screen.
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--paper);
  transition: box-shadow var(--t-fast);
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--rule); }

/* Home page: the header sits on the opener's paper and carries no name (the opener
   is the title); the small brand comes in once the visitor has scrolled past it. */
.page-home .site-header { background: var(--stages-paper); transition: background-color var(--t-slow) var(--ease), box-shadow var(--t-fast); }
.page-home .site-header.is-past { background: var(--paper); }
.page-home .site-header.is-stuck:not(.is-past) { box-shadow: none; }
.page-home .site-header__inner > .brand { transition: opacity var(--t-slow) var(--ease), visibility 0s; }
.page-home .site-header:not(.is-past) .site-header__inner > .brand {
  visibility: hidden; opacity: 0;
  transition: opacity var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}
.menu-open .page-home .site-header { background: var(--paper); }
.menu-open .page-home .site-header .site-header__inner > .brand { visibility: visible; opacity: 1; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-mobile);
  padding: 0 var(--gutter);
}

/* the logo: spaced bold caps with the short rule underneath (from the 2015 logo) */
.brand {
  position: relative;
  display: inline-block;
  padding-bottom: 7px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
}
.brand::after {
  content: "";
  position: absolute; left: 20%; bottom: 0;
  width: 60%; height: 1px;
  background: var(--rule-strong);
  margin-left: -0.12em;   /* optically centre under the tracked caps */
}
.brand:hover { opacity: 0.65; }

/* Menu button (phones/tablets) */
.menu-toggle {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px; margin-right: calc(-1 * var(--s3));
  padding: 0 var(--s3);
  background: none; border: 0; cursor: pointer;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink);
}
.menu-toggle__icon::before {
  font-family: "icomoon"; content: "\e609";
  font-size: 20px; line-height: 1; display: block;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { content: "\e600"; }

/* nav — mobile first: a full-screen panel under the header row */
.site-nav {
  position: fixed;
  inset: var(--header-mobile) 0 0 0;
  z-index: var(--z-menu);
  background: var(--paper);
  padding: var(--s5) var(--gutter) var(--s8);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}
.menu-open .site-nav {
  visibility: visible; opacity: 1;
  transition: opacity var(--t-fast) var(--ease), visibility 0s;
}
.menu-open { overflow: hidden; }
.menu-open .site-header { box-shadow: 0 1px 0 var(--rule); }

.site-nav__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.site-nav__item { border-bottom: 1px solid var(--rule); }
.site-nav__link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px;
  font-size: 1.25rem; font-weight: 300;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
}
.site-nav__link[aria-current="page"] { font-weight: 600; }
.site-nav__link[aria-current="page"]::after {
  content: ""; width: 24px; height: 1px; background: var(--ink);
}

@media (min-width: 64em) {
  .site-header { top: calc(-1 * var(--header-brand)); }
  .page-home .site-header { top: 0; }

  .site-header__inner {
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    padding: 0 var(--gutter);
  }
  .site-header__inner > .brand {
    margin-top: 26px; margin-bottom: 20px;
    font-size: 1.25rem;
  }
  .page-home .site-header__inner { position: relative; }
  .page-home .site-header__inner > .brand { display: none; }   /* the opener carries the name */
  .menu-toggle { display: none; }

  .site-nav {
    position: static;
    visibility: visible; opacity: 1;
    padding: 0; overflow: visible; background: none;
    transition: none;
  }
  .site-nav__list {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 0 clamp(18px, 2.2vw, 34px);
    height: var(--header-bar);
    border: 0;
  }
  .site-nav__item { border: 0; display: flex; }
  .site-nav__link {
    position: relative;
    min-height: 0;
    font-size: var(--fs-label); font-weight: 600;
    letter-spacing: var(--track-label);
    color: #444444;
  }
  .site-nav__link[aria-current="page"] { font-weight: 600; color: var(--ink); }
  /* the current section (and hover) get the logo's short rule */
  .site-nav__link::after,
  .site-nav__link[aria-current="page"]::after {
    content: "";
    position: absolute; left: 0; right: 0.16em; bottom: 13px;
    width: auto; height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transition: transform var(--t-fast) var(--ease);
  }
  .site-nav__link:hover { color: var(--ink); }
  .site-nav__link:hover::after,
  .site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
}
@media (min-width: 90em) {
  /* wide screens have room beside the centred nav for the small brand, once past the opener */
  .page-home .site-header__inner > .brand {
    display: block;
    position: absolute; left: var(--gutter); top: 50%;
    margin: 0; transform: translateY(-50%);
    font-size: 0.875rem;
  }
}


/* 5. Buttons, icons and small shared pieces
   ========================================================================== */

.icon { font-family: "icomoon"; font-style: normal; font-weight: 400; line-height: 1; speak: never; }
.icon-menu::before { content: "\e609"; }
.icon-close::before { content: "\e600"; }
.icon-play::before { content: "\e601"; }
.icon-quote-start::before { content: "\e603"; }
.icon-quote-end::before { content: "\e604"; }
.icon-arrow-left::before { content: "\e605"; }
.icon-arrow-up::before { content: "\e606"; }
.icon-arrow-down::before { content: "\e607"; }
.icon-arrow-right::before { content: "\e608"; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 48px;
  padding: 0 var(--s5);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--sans);
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.btn .icon { font-size: 18px; transition: transform var(--t-fast) var(--ease); }
.btn__label { padding-left: 0.16em; }   /* balances the tracking after the last letter */

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--stone); border-color: var(--stone); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--small { min-height: 40px; padding: 0 var(--s4); }
.btn--block { display: flex; width: 100%; }
.btn--block.btn--solid { justify-content: space-between; }
.btn--play {
  width: 48px; padding: 0;
  border-radius: 50%;
  background: var(--paper); color: var(--ink);
}
.btn--play .icon { font-size: 20px; margin-left: 3px; }
.btn--play:hover { background: var(--ink); color: var(--paper); }
.btn:hover .icon-arrow-right { transform: translateX(3px); }
.btn[aria-expanded="true"] .icon-arrow-down { transform: rotate(180deg); }
.btn:active { transform: translateY(1px); }

/* the original quote glyphs, with a short rule each side */
.quote-mark {
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  color: var(--stone);
  font-size: 26px;
  line-height: 1;
  margin: var(--s4) auto;
}
.quote-mark::before, .quote-mark::after {
  content: ""; width: 10px; height: 1px; background: var(--stone);
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--s4);
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
a.eyebrow:hover { color: var(--ink); }

.rule { display: block; width: 48px; height: 1px; margin: var(--s5) auto 0; background: var(--rule-strong); }

.actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s3);
  margin: var(--s6) auto 0;
}
.actions--center { justify-content: center; }

.to-top { display: flex; justify-content: flex-end; margin-bottom: var(--s7); }

.photo-credit {
  max-width: var(--wrap); margin: var(--s2) auto 0; padding: 0 var(--gutter);
  text-align: right; font-size: var(--fs-small); font-style: italic; color: var(--muted);
}


/* 6. Work pages
   ========================================================================== */

/* full-bleed opening image (click to view it whole in the lightbox) */
.hero { position: relative; background: var(--mist); }
.hero__link { display: block; }
.hero__img {
  display: block;
  width: 100%;
  max-height: calc(100svh - var(--header-bar) - 40px);
  object-fit: cover;
}

/* the title card: the 2015 site's white card, now carrying the title */
.intro {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--s8);
  text-align: center;
}
.title-card {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: calc(-1 * clamp(40px, 8vw, 128px)) auto 0;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 5vw, 72px) clamp(28px, 3.5vw, 48px);
  background: var(--paper);
}
.title-card__title {
  font-size: var(--fs-title);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: var(--track-title);
  text-transform: uppercase;
  color: var(--ink);
  margin-right: calc(-1 * var(--track-title));   /* optical centring of tracked caps */
}
.title-card__meta { margin-top: var(--s5); font-size: var(--fs-ui); color: var(--muted); }
.title-card__meta p { margin: 0; }
.title-card__meta strong { font-weight: 600; color: var(--ink); }
.title-card--flat { margin-top: var(--s8); }
.intro--art .title-card { margin-top: 0; }

/* large serif pull quote with its citation lines */
.pull-quote { max-width: 860px; margin: var(--s5) auto 0; }
.pull-quote__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-quote);
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}
.pull-quote--paras .pull-quote__text p:last-child {   /* the visitor's name under the quote */
  margin-top: var(--s5);
  font-family: var(--sans); font-style: normal;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--muted);
}
.pull-quote__cite {
  display: flex; flex-direction: column; gap: var(--s1);
  margin-top: var(--s5);
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--muted);
}

/* optional second quote (e.g. Equus, the exhibition) */
.aside-quote {
  max-width: 720px;
  margin: var(--s7) auto 0;
  padding: var(--s7) clamp(20px, 5vw, 56px);
  background: var(--mist);
}
.aside-quote__title { font-family: var(--serif); font-style: italic; font-size: var(--fs-h2); font-weight: 400; }
.aside-quote__text { font-family: var(--serif); font-size: var(--fs-body); line-height: 1.7; color: var(--text); }
.aside-quote__text p:last-child { margin-bottom: 0; }

/* the More panel (reviews / text) */
.panel { background: var(--mist); }
.js .panel:not(.is-open) { display: none; }
.panel__inner {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--s7) var(--gutter) var(--s8);
  text-align: center;
}
.panel__bar { display: flex; justify-content: flex-end; margin-bottom: var(--s5); }
.panel__title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: var(--fs-h2); }
.panel__lead { font-family: var(--serif); font-style: italic; font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); }
.prose--panel { text-align: left; }

/* the gallery: order as on the old site, hung by orientation */
.gallery { display: flex; flex-direction: column; gap: clamp(8px, 1.2vw, 16px); margin-top: var(--s2); }
.gallery__item { min-width: 0; }
.gallery__item img { display: block; width: 100%; }
.zoom { display: block; cursor: zoom-in; }
.zoom:focus-visible { outline-offset: -4px; outline-color: var(--paper); box-shadow: inset 0 0 0 4px var(--ink); }

.gallery__row--pair,
.gallery__row--pair-stack {
  display: flex; gap: clamp(8px, 1.2vw, 16px);
  width: 100%; max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 0 clamp(8px, 1.2vw, 16px);
}
.gallery__row--pair .gallery__item,
.gallery__row--pair-stack .gallery__item { flex: var(--r) 1 0; }

.gallery__row--single { padding: clamp(16px, 3vw, 48px) var(--gutter); background: var(--paper); }
.gallery__row--single .gallery__item img {
  width: min(100%, calc((100svh - var(--header-bar) - 64px) * var(--r)), 1000px);
  margin: 0 auto;
}

@media (max-width: 47.99em) {
  .gallery__row--pair-stack { flex-direction: column; padding: 0; }
  .gallery__row--pair { padding: 0; }
}

/* previous / next work */
.work-nav {
  display: flex; justify-content: space-between; gap: var(--s5);
  max-width: var(--wrap);
  margin: var(--s8) auto var(--s7);
  padding: 0 var(--gutter);
}
.work-nav__link {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: var(--s4); align-items: center;
  max-width: 48%;
  padding: var(--s4) 0;
  border-top: 1px solid var(--ink);
  min-width: 200px;
}
.work-nav__link .icon { grid-row: 1 / 3; font-size: 22px; transition: transform var(--t-fast) var(--ease); }
.work-nav__label {
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted);
}
.work-nav__title {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem); font-weight: 300;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); line-height: 1.3;
}
.work-nav__link--next { grid-template-columns: 1fr auto; text-align: right; margin-left: auto; }
.work-nav__link--next .icon { grid-column: 2; grid-row: 1 / 3; }
.work-nav__link--prev:hover .icon { transform: translateX(-4px); }
.work-nav__link--next:hover .icon { transform: translateX(4px); }
.work-nav__spacer { flex: 1; }

@media (max-width: 47.99em) {
  .work-nav { flex-direction: column; gap: 0; }
  .work-nav__link { max-width: none; min-width: 0; }
  .work-nav__link + .work-nav__link { border-top-color: var(--rule); }
  .work-nav__spacer { display: none; }
}

/* art pages: the artwork shown whole on a mat, never cropped */
.artwork {
  display: flex; flex-direction: column; align-items: center; gap: var(--s5);
  padding: clamp(16px, 4vw, 64px) var(--gutter) clamp(72px, 10vw, 150px);
  background: var(--mist);
}
.artwork__link { width: min(100%, calc((100svh - var(--header-bar) - 120px) * var(--r)), 1200px); }
.artwork__img { display: block; width: 100%; }
.intro--art .title-card { margin-top: calc(-1 * clamp(40px, 7vw, 100px)); }


/* 7. Poster grids
   ========================================================================== */

.category { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) var(--s8); }
.category-head {
  display: flex; flex-direction: column; align-items: center; gap: var(--s6);
  padding: var(--s8) var(--gutter) var(--s7);
  text-align: center;
}
/* the category name, as in the nav: quiet tracked caps with the short rule */
.category-head__title {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  padding-left: 0.14em;           /* optically centre the tracked caps */
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink);
}
.category-head__title::after {
  content: ""; display: block; width: 48px; height: 1px;
  margin: var(--s5) auto 0; background: var(--rule-strong);
}
@media (max-width: 47.99em) {
  .category-head { gap: var(--s5); padding: var(--s7) var(--gutter) var(--s6); }
}
.category-note {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) var(--s8);
  text-align: center; color: var(--muted);
}
.more-works { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) var(--s8); }

.works-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6) var(--s4);
}
@media (min-width: 48em) { .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7) var(--s5); } }
@media (min-width: 64em) { .works-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s8) var(--s6); } }

.works-grid--small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s3); }
@media (min-width: 48em) { .works-grid--small { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--s5); } }
@media (min-width: 64em) { .works-grid--small { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s7) var(--s5); } }

.work-tile { display: block; text-align: center; }
.work-tile__frame {
  display: block;
  aspect-ratio: var(--tile-ratio);
  overflow: hidden;
  background: var(--mist);
}
.work-tile__img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-fast);
}
.work-tile__title {
  position: relative;
  display: block;
  margin-top: var(--s4);
  padding-bottom: var(--s3);
  font-size: var(--fs-small); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink);
}
/* the short rule under each title (from the 2015 grid), growing on hover */
.work-tile__title::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: 40px; height: 1px; margin-left: -20px;
  background: var(--rule-strong);
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast);
}
.work-tile:hover .work-tile__img { transform: scale(1.03); }
.work-tile:hover .work-tile__title::after { transform: scaleX(1.6); background: var(--ink); }
.work-tile:focus-visible { outline-offset: 6px; }

.works-grid--small .work-tile__title { font-size: 0.6875rem; letter-spacing: 0.1em; margin-top: var(--s3); }
@media (max-width: 47.99em) {
  .work-tile__title { font-size: 0.75rem; letter-spacing: 0.1em; }
  .works-grid--small .work-tile__title { font-size: 0.625rem; letter-spacing: 0.08em; }
}


/* 8. Cards over photographs
   ========================================================================== */

/* Home opener: a title page. The name, the role, the STAGES collage as the
   centrepiece and the tagline, on the collage's own pale background. */
.opener { background: var(--stages-paper); }
.opener__inner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  /* nearly the first screen: the collage leads, and a strip of the next photograph
     shows beneath it as a cue to scroll (too small a strip to outrank the collage) */
  min-height: calc(100svh - var(--header-mobile) - 56px);
  padding: var(--s7) var(--s3) var(--s8);
  text-align: center;
}
.opener__name {
  margin: 0;
  padding-left: 0.3em;             /* optically centre the tracked caps */
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem);     /* 28–52 */
  font-weight: 300;
  letter-spacing: 0.3em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
}
.opener__role {
  display: flex; align-items: center; justify-content: center; gap: var(--s3);
  margin: var(--s4) 0 0;
  font-size: clamp(0.71875rem, 0.66rem + 0.25vw, 0.875rem); /* 11.5–14 */
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.opener__role::before, .opener__role::after {
  content: ""; flex: none; width: 20px; height: 1px; background: var(--rule-strong);
}
.opener__collage {
  display: block;
  width: 100%; height: auto;
  margin: var(--s8) auto var(--s7);
}
.opener__tagline {
  margin: 0;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem);   /* 19–24 */
  line-height: 1.4;
  color: var(--text);
}
@media (min-width: 48em) {
  .opener__inner {
    min-height: calc(100svh - var(--header-mobile));
    padding: clamp(32px, 7svh, 64px) var(--gutter) clamp(40px, 9svh, 96px);
  }
  .opener__role { gap: var(--s4); }
  .opener__role::before, .opener__role::after { width: 40px; }
  .opener__collage {
    /* as wide as the page allows, but never so tall that the tagline leaves the first screen */
    width: min(88vw, 1120px, calc((100svh - 400px) * 2.84));
    margin: clamp(32px, 6svh, 64px) auto;
  }
}
@media (min-width: 64em) {
  .opener__inner { min-height: calc(100svh - var(--header-bar)); }
}

.feature { position: relative; margin-top: 6px; }
.feature__bg { position: absolute; inset: 0; overflow: hidden; background: var(--stone); }
.feature__bg img { width: 100%; height: 100%; object-fit: cover; }
.feature__inner {
  position: relative;
  display: flex; align-items: center;
  max-width: var(--wrap);
  min-height: inherit;
  margin: 0 auto;
  padding: var(--s9) var(--gutter);
}
.feature--tall { min-height: clamp(560px, 82svh, 880px); }
.feature--medium { min-height: clamp(460px, 64svh, 700px); }
.feature--full { min-height: calc(100svh - var(--header-bar)); }
.feature--right .feature__inner { justify-content: flex-end; }

.card {
  width: min(400px, 100%);
  padding: var(--s7) clamp(24px, 3vw, 44px);
  background: var(--card);
  text-align: center;
  color: var(--text);
}
.card__title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: var(--fs-h2); }
.card__title--place { font-family: var(--sans); font-style: normal; font-weight: 800; font-size: 1.375rem; letter-spacing: 0.04em; }
.card__title--place strong { font-weight: 800; }
.card__quote { font-family: var(--serif); font-size: var(--fs-body); line-height: 1.65; color: var(--text); }
.card__cite {
  margin: var(--s4) 0 0;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.6;
  color: var(--muted);
}
.card__actions { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s6); }
.card__img { display: block; width: 100%; margin-bottom: var(--s5); }
.card__info { font-size: var(--fs-ui); line-height: 1.6; }
.card__info h3 {
  font-size: var(--fs-small); font-weight: 600;
  letter-spacing: 0.1em; line-height: 1.5; margin-bottom: var(--s3);
}
.card__info p { margin-bottom: var(--s4); }
.card__info a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.card__info a:hover { text-decoration-color: var(--ink); }

/* contact: the address block and a large, easy-to-tap email link */
.contact-line { margin: var(--s5) 0 0; font-size: var(--fs-ui); color: var(--muted); }
.contact-email {
  display: inline-block;
  margin-top: var(--s2);
  padding: var(--s2) 0;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  word-break: break-word;
}
.contact-email:hover { color: var(--stone); border-color: var(--stone); }

@media (max-width: 47.99em) {
  /* phones: the photograph as a band, the card beneath it overlapping slightly */
  .feature--tall, .feature--medium, .feature--full { min-height: 0; }
  .feature__bg { position: relative; height: 62vw; min-height: 220px; }
  .feature__inner { padding: 0 var(--s4) var(--s7); margin-top: -40px; }
  .card { width: 100%; box-shadow: 0 0 0 1px var(--rule); background: var(--paper); }
}


/* 9. Reading pages and the essays index
   ========================================================================== */

.band { height: clamp(200px, 36svh, 420px); overflow: hidden; background: var(--stone); }
.band__bg, .band__bg img { width: 100%; height: 100%; }
.band__bg img { object-fit: cover; }

.reading {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: var(--s8) var(--gutter) var(--s9);
}
.reading--article { text-align: left; }
.reading--article > .eyebrow,
.reading--article > .page-title { display: block; text-align: center; }
.reading--article > .rule { margin-bottom: var(--s7); }
.page-title {
  font-size: var(--fs-page);
  font-weight: 300;
  letter-spacing: var(--track-title);
  text-transform: uppercase;
  line-height: 1.15;
  text-align: center;
}
.reading--page .page-title { margin-bottom: var(--s7); }
.reading--page .page-title::after {
  content: ""; display: block; width: 48px; height: 1px; margin: var(--s5) auto 0; background: var(--rule-strong);
}
.reading__lead {
  font-family: var(--serif); font-style: italic;
  font-size: var(--fs-lead); line-height: 1.55;
  color: var(--ink);
  margin-bottom: var(--s6);
}
.reading > .actions { margin: 0 0 var(--s7); }
.page-biography .reading__lead {
  font-family: var(--sans); font-style: normal; font-weight: 300;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.35; text-transform: uppercase; letter-spacing: 0.04em;
  text-align: center;
}

/* long text: reviews, essays, Narrative, biography, terms, credits */
.prose { font-family: var(--serif); font-size: var(--fs-read); line-height: var(--lh-read); color: var(--text); }
.prose p { margin: 0 0 1.15em; }
.prose h3 {
  margin: 2.2em 0 0.8em;
  font-family: var(--sans); font-size: var(--fs-small); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink);
}
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-strong); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose .zoom--prose { margin: var(--s5) 0; background: var(--mist); }
.prose .zoom--prose img { display: block; width: 100%; }
.prose p:has(> .zoom--prose) { margin: 0; }
.prose .embed { margin: var(--s5) 0; }
.prose .embed iframe { display: block; width: 100%; }

/* Essays & Articles index */
.hero--index .hero__img { max-height: 70svh; }
.index { max-width: 1080px; margin: 0 auto; padding: var(--s8) var(--gutter) var(--s9); }
.index .page-title { margin-bottom: var(--s7); }
.index-list__head,
.index-row__head {
  display: grid;
  grid-template-columns: 5fr 2fr 5fr;
  gap: var(--s5);
  align-items: baseline;
}
.index-list__head {
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--ink);
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted);
}
.index-list__rows { list-style: none; margin: 0; padding: 0; }
.index-row { border-bottom: 1px solid var(--rule); }
.index-row__head { padding: var(--s4) 0; }
.index-row__toggle {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
  width: 100%; padding: var(--s1) 0;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-family: var(--serif); font-size: var(--fs-body); line-height: 1.45; color: var(--ink);
}
.index-row__toggle .icon { font-size: 16px; color: var(--muted); transition: transform var(--t-fast) var(--ease); }
.index-row__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.index-row__toggle:hover .index-row__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule-strong); }
.index-row__date { font-size: var(--fs-ui); font-variant-numeric: tabular-nums; color: var(--text); }
.index-row__by { font-size: var(--fs-ui); color: var(--muted); }
.index-row__panel { background: var(--mist); padding: var(--s5) var(--gutter) var(--s7); margin-bottom: var(--s4); }
.js .index-row__panel:not(.is-open) { display: none; }
.reading--panel { padding: 0; }
.reading__title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: var(--fs-h2); margin-bottom: var(--s5); text-align: center; }
.reading__title a:hover { opacity: 0.7; }

@media (max-width: 47.99em) {
  .index-list__head { display: none; }
  .index-row__head { grid-template-columns: auto 1fr; gap: var(--s1) var(--s3); }
  .index-row__toggle { grid-column: 1 / -1; }
  .index-row__date:empty, .index-row__by:empty { display: none; }
  .index-row__by::before { content: "· "; }
}


/* 10. Affiliations & Awards, complete works
   ========================================================================== */

.awards { max-width: 1080px; margin: 0 auto; padding: var(--s8) var(--gutter) var(--s9); }
.section-title {
  margin: var(--s8) 0 var(--s5);
  font-size: var(--fs-small); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase;
  text-align: center;
}
.section-title:first-child { margin-top: 0; }
.award-list__head {
  display: grid; grid-template-columns: 3fr 1fr 8fr; gap: var(--s4);
  padding: 0 var(--s4) var(--s3);
  border-bottom: 1px solid var(--ink);
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted);
}
.award-list__rows { list-style: none; margin: 0; padding: 0; }
.award-row {
  display: grid;
  grid-template-columns: 3fr 1fr 4fr 2fr 2fr;
  gap: var(--s4);
  align-items: baseline;
  padding: var(--s3) var(--s4);
  font-size: var(--fs-ui);
  border-bottom: 1px solid var(--rule);
}
.award-list--roles .award-row { grid-template-columns: 3fr 1fr 8fr; }
.award-row:nth-child(even) { background: var(--mist); }
.award-row__name {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2);
  padding: 0; background: none; border: 0; text-align: left;
  font-weight: 600; color: var(--ink); line-height: 1.45;
}
.award-row__name .icon { display: none; }
.award-row__date { font-variant-numeric: tabular-nums; }
.award-row__details { display: contents; }
.award-row__cell--result { color: var(--muted); }

@media (min-width: 64em) {
  .award-row__name { cursor: default; }
}

@media (max-width: 63.99em) {
  .award-list__head { grid-template-columns: 1fr auto; }
  .award-list__head span:nth-child(n+3) { display: none; }
  .award-row, .award-list--roles .award-row { grid-template-columns: 1fr auto; gap: 0 var(--s4); padding: 0 var(--s4); }
  .award-row__name { min-height: 52px; align-items: center; cursor: pointer; justify-content: flex-start; }
  .award-row__name .icon { display: inline-block; font-size: 14px; color: var(--muted); transition: transform var(--t-fast) var(--ease); }
  .award-row__name[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .award-row__date { align-self: center; color: var(--muted); }
  .award-row__details {
    display: flex; flex-direction: column; gap: 2px;
    grid-column: 1 / -1;
    padding: 0 0 var(--s4);
    font-size: var(--fs-small);
  }
  .js .award-row__details:not(.is-open) { display: none; }
  .award-row__cell:empty { display: none; }
  .award-row__cell--what { color: var(--ink); }
}

/* complete works A–Z */
.az { max-width: 1000px; margin: 0 auto; padding: var(--s8) var(--gutter) var(--s9); text-align: center; }
.az .page-title { margin: 0; }
.az .rule { margin-bottom: var(--s7); }
.az-list {
  list-style: none; margin: 0; padding: 0;
  columns: 3 220px; column-gap: var(--s7);
  text-align: left;
}
.az-list__item { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.az-list__item a {
  display: flex; align-items: center;
  min-height: 48px; padding: var(--s2) 0;
  font-size: var(--fs-ui); letter-spacing: 0.02em;
}
.az-list__item a:hover { text-decoration: underline; text-underline-offset: 4px; }


/* 11. Footer
   ========================================================================== */

.site-footer { margin-top: var(--s8); border-top: 8px solid var(--stone); }
.site-footer__inner {
  display: flex; flex-direction: column; align-items: center; gap: var(--s5);
  max-width: var(--wrap); margin: 0 auto;
  padding: var(--s7) var(--gutter) var(--s8);
  text-align: center;
}
.site-footer__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s6);
  list-style: none; margin: 0; padding: 0;
  font-size: var(--fs-label); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.site-footer__list a { color: var(--muted); display: inline-block; padding: var(--s2) 0; }
.site-footer__list a:hover { color: var(--ink); }
.site-footer__list li { display: block; align-self: center; }
.page-work .site-footer, .page-art .site-footer, .page-exhibition .site-footer { margin-top: 0; }


/* 12. Lightbox and video popup (markup is created by site.js)
   ========================================================================== */

.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--scrim); color: var(--paper);
  overflow: hidden;
}
.viewer::backdrop { background: var(--scrim); }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer__stage {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  padding: 64px clamp(8px, 6vw, 96px);
  touch-action: pan-y pinch-zoom;
}
.viewer__img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  user-select: none;
}
.viewer__btn {
  position: absolute; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: transparent; color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-size: 22px;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.viewer__btn:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--paper); }
.viewer__btn:focus-visible { outline-color: var(--paper); }
.viewer__close { top: 8px; right: 8px; }
.viewer__prev { left: 8px; top: 50%; margin-top: -24px; }
.viewer__next { right: 8px; top: 50%; margin-top: -24px; }
.viewer__count {
  position: absolute; left: 0; right: 0; bottom: 16px;
  text-align: center;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-label);
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.75);
}
.viewer--single .viewer__prev, .viewer--single .viewer__next, .viewer--single .viewer__count,
.viewer--video .viewer__prev, .viewer--video .viewer__next, .viewer--video .viewer__count { display: none; }
@media (max-width: 47.99em) {
  .viewer__stage { padding: 64px 0; }
  .viewer__prev, .viewer__next { top: auto; bottom: 8px; margin-top: 0; }
  .viewer__count { bottom: 22px; }
}

.viewer--video .viewer__stage { padding: 64px clamp(8px, 4vw, 64px); }
.viewer__frame { position: relative; width: min(100%, 1100px, calc((100dvh - 128px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.viewer__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }


/* 13. Motion — gentle, and only when the visitor has not asked for less
   ========================================================================== */

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .panel.is-open .panel__inner,
  .index-row__panel.is-open,
  .award-row__details.is-open { animation: rise 420ms var(--ease) both; }
  .menu-open .site-nav__item { animation: rise 360ms var(--ease) both; }
  .menu-open .site-nav__item:nth-child(2) { animation-delay: 30ms; }
  .menu-open .site-nav__item:nth-child(3) { animation-delay: 60ms; }
  .menu-open .site-nav__item:nth-child(4) { animation-delay: 90ms; }
  .menu-open .site-nav__item:nth-child(5) { animation-delay: 120ms; }
  .menu-open .site-nav__item:nth-child(6) { animation-delay: 150ms; }
  .menu-open .site-nav__item:nth-child(7) { animation-delay: 180ms; }
  .menu-open .site-nav__item:nth-child(8) { animation-delay: 210ms; }
  .viewer[open] .viewer__img, .viewer[open] .viewer__frame { animation: rise 320ms var(--ease) both; }
  /* home opener: the words settle in around the collage (the collage itself, the page's
     main image, is shown straight away) */
  .opener__name { animation: rise 700ms var(--ease) 80ms both; }
  .opener__role { animation: rise 700ms var(--ease) 180ms both; }
  .opener__tagline { animation: rise 700ms var(--ease) 320ms both; }
}

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