/* ==========================================================================
   Gloria — site styles
   Direction: "institutional register". Catalogue, registry, archive.
   Square corners, hairline rules, tracked capitals, banded grounds.
   Display: Fraunces (SOFT + WONK at zero — classical, not wonky). Body: DM Sans.
   Accent: burgundy, used sparingly and only where it means something.
   Layers: reset < base < layout < components < utilities
   ========================================================================== */
@layer reset, base, layout, components, utilities;

/* --------------------------------------------------------------------------
   Reset (zero-specificity so anything can override it)
   -------------------------------------------------------------------------- */
@layer reset {
  :where(*, *::before, *::after) { box-sizing: border-box; }
  :where(html) { -webkit-text-size-adjust: 100%; }
  :where(body) { margin: 0; }
  :where(h1, h2, h3, h4, p, figure, blockquote, dl, dd, dt, ol, ul, hr) { margin: 0; }
  :where(ol, ul) { padding: 0; list-style: none; }
  :where(img, svg, video) { display: block; max-inline-size: 100%; block-size: auto; }
  :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  :where(a) { color: inherit; }
  :where(input, textarea) { font: inherit; }
}

/* --------------------------------------------------------------------------
   Base: tokens and type
   -------------------------------------------------------------------------- */
@layer base {
  :root {
    color-scheme: light;

    /* Grounds. The page alternates between two bands; cards sit on white. */
    --ground: #faf9f7;         /* surface */
    --ground-alt: #f4f3f1;     /* surface-container-low */
    --surface: #ffffff;        /* surface-container-lowest */
    --surface-sunk: #efeeec;   /* surface-container: quoted matter in a card */

    --line: #e3e2e0;           /* hairline on a light ground */
    --line-2: #c7c7c0;         /* outline-variant: the rule you notice */
    --line-3: #767872;         /* outline */

    --ink: #1a1c1b;            /* on-surface */
    --ink-2: #464742;          /* on-surface-variant */
    --ink-3: #767872;

    /* Deep gallery plum. */
    --burgundy: #4c243b;
    --burgundy-deep: #3d1c2f;
    --burgundy-tint: #f1ecef;

    /* Restrained: this aesthetic gets its depth from rules, not shadow. */
    --shadow-plate:
      0 1px 2px rgba(27, 24, 23, .05),
      0 14px 34px -20px rgba(27, 24, 23, .30);
    --shadow-plate-hover:
      0 1px 2px rgba(27, 24, 23, .05),
      0 22px 48px -22px rgba(27, 24, 23, .34);

    --font-display: "Cormorant Garamond", Garamond, "Palatino Linotype", Georgia, serif;
    --font-body: "EB Garamond", Garamond, "Palatino Linotype", Georgia, serif;
    /* Cinzel is a Roman inscriptional face: capitals only, for the index labels. */
    --font-label: "Cinzel", "EB Garamond", Garamond, Georgia, serif;

    /* One label style, used everywhere a catalogue would use one. */
    --label-size: .6875rem;
    --label-track: .12em;

    --container: 1408px;       /* container-max: 88rem */
    --gutter: clamp(20px, 5vw, 64px);
    --section: clamp(76px, 9vw, 128px);
    --measure: 64ch;

    --ease-out: cubic-bezier(.2, .8, .2, 1);
  }

  html {
    overflow-x: clip;
    scroll-padding-block-start: 96px;
  }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }

  body {
    overflow-x: clip;
    font-family: var(--font-body);
    font-size-adjust: from-font;
    font-size: 1.0625rem;      /* body-md */
    line-height: 1.65;
    font-optical-sizing: auto;
    color: var(--ink);
    background: var(--ground);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  h1, h2, h3, h4, .display {
    font-family: var(--font-display);
    font-weight: 600;
    font-optical-sizing: auto;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  /* display 3rem → 5rem, headline-lg 2.25 → 3.25, headline-md, headline-sm */
  h1 { font-size: clamp(3rem, 1.7rem + 3.6vw, 5rem); }
  h2 { font-size: clamp(2.25rem, 1.7rem + 1.8vw, 3.25rem); line-height: 1.15; }
  h3 { font-size: clamp(1.5rem, 1.3rem + .9vw, 2.25rem); line-height: 1.2; }
  h4 { font-size: 1.5rem; line-height: 1.3; }

  :is(h1, h2, h3) em {
    font-style: italic;
    color: inherit;
  }

  p { text-wrap: pretty; }

  a {
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
    transition: text-decoration-color .2s ease, color .2s ease;
  }
  a:hover { text-decoration-color: currentColor; }

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

  ::selection { background: var(--burgundy-tint); }

  strong { font-weight: 600; }
  time { white-space: nowrap; }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
@layer layout {
  .container {
    inline-size: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
  }
  .container--narrow { --container: 880px; }
  .container--wide   { --container: 1360px; }

  .section { padding-block: var(--section); }
  .section--tight { padding-block: calc(var(--section) * .6); }
  /* Stacked sections inside one ground share their padding; banded ones don't. */
  .section + .section:not(.band) { padding-block-start: 0; }

  /* Full-bleed grounds. The page reads as a run of catalogue spreads. */
  .band { background: var(--ground); }
  .band--alt { background: var(--ground-alt); }

  /* A section opens the way a catalogue section opens: a rule, then a label. */
  .section-head {
    display: grid;
    gap: 1.1rem;
    max-inline-size: 44rem;
    padding-block-start: clamp(20px, 2.4vw, 30px);
    border-block-start: 1px solid var(--line-2);
    margin-block-end: clamp(44px, 5vw, 72px);
  }
  .section-head .intro {
    font-size: 1.06rem;
    line-height: 1.6;
    color: var(--ink-2);
  }
  .section-head--split {
    max-inline-size: none;
    grid-template-columns: minmax(0, 44rem) auto;
    align-items: end;
    justify-content: space-between;
    column-gap: 40px;
  }
  @media (max-width: 720px) {
    .section-head--split { grid-template-columns: 1fr; align-items: start; justify-items: start; }
  }

  .skip-link {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    z-index: 100;
    padding: .7em 1.1em;
    background: var(--ink);
    color: var(--surface);
    text-transform: uppercase;
    font-size: var(--label-size);
    letter-spacing: var(--label-track);
    text-decoration: none;
    translate: 0 -200%;
    transition: translate .2s var(--ease-out);
  }
  .skip-link:focus-visible { translate: 0 0; outline-color: var(--burgundy); }

  main { display: block; }
}

/* --------------------------------------------------------------------------
   Components
   -------------------------------------------------------------------------- */
@layer components {

  /* ---- Header / nav ---- */
  .site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--ground) 92%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-block-end: 1px solid var(--line);
  }
  .site-header > .container {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    min-block-size: 68px;
  }
  .wordmark {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .55em;
    white-space: nowrap;
  }
  .wordmark::after {
    content: "";
    inline-size: .3em;
    block-size: .3em;
    background: var(--burgundy);
    transition: rotate .3s var(--ease-out);
  }
  .wordmark:hover::after { rotate: 45deg; }

  .nav { margin-inline-start: auto; }
  .nav ul { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); }
  .nav a {
    position: relative;
    display: inline-block;
    padding-block: 8px;
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--ink-2);
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
  }
  .nav a:hover { color: var(--ink); }
  .nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 2px;
    block-size: 1px;
    background: var(--burgundy);
    scale: 0 1;
    transform-origin: left;
    transition: scale .3s var(--ease-out);
  }
  .nav a:hover::after,
  .nav a[aria-current="page"]::after { scale: 1 1; }
  .nav a[aria-current="page"] { color: var(--ink); }

  /* The inquiry call, sitting in the bar like a registry action. */
  .nav .nav-cta {
    padding: .5em 1.15em;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-family: var(--font-label);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    transition: background .2s ease, border-color .2s ease, color .2s ease;
  }
  .nav .nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
  .nav .nav-cta::after { content: none; }

  .nav .nav-ig {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 34px;
    block-size: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    color: var(--ink);
    transition: background .2s ease, border-color .2s ease, color .2s ease;
  }
  .nav .nav-ig:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
  .nav .nav-ig::after { content: none; }
  .nav .nav-ig svg { inline-size: 16px; block-size: 16px; }
  .nav .nav-ig__label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  .menu-btn {
    display: none;
    margin-inline-start: auto;
    align-items: center;
    gap: .7em;
    min-block-size: 42px;
    padding-inline: 14px;
    border: 1px solid var(--line-2);
    font-size: var(--label-size);
    font-weight: 600;
    letter-spacing: var(--label-track);
    text-transform: uppercase;
  }
  .menu-btn .bars { display: grid; gap: 4px; inline-size: 15px; }
  .menu-btn .bars i { display: block; block-size: 1px; background: var(--ink); transition: translate .25s var(--ease-out), rotate .25s var(--ease-out), opacity .2s; }
  .menu-btn[aria-expanded="true"] .bars i:nth-child(1) { translate: 0 5px; rotate: 45deg; }
  .menu-btn[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] .bars i:nth-child(3) { translate: 0 -5px; rotate: -45deg; }

  @media (max-width: 1040px) {
    .menu-btn { display: inline-flex; }
    .nav {
      display: none;
      position: absolute;
      inset-inline: 0;
      inset-block-start: 100%;
      padding: 4px var(--gutter) 24px;
      background: var(--ground);
      border-block-end: 1px solid var(--line-2);
      box-shadow: 0 24px 40px -28px rgba(27, 24, 23, .3);
    }
    .site-header:has(.menu-btn[aria-expanded="true"]) .nav { display: block; }
    .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .nav li:not(:last-child) { border-block-end: 1px solid var(--line); }
    .nav a { display: block; padding-block: 15px; font-size: .8rem; }
    .nav a::after { content: none; }
    .nav .nav-cta { border: 0; padding-inline: 0; }
    .nav .nav-cta:hover { background: none; color: var(--burgundy); }
    .nav .nav-ig { inline-size: auto; block-size: auto; border: 0; justify-content: flex-start; gap: .7em; padding-block: 15px; }
    .nav .nav-ig:hover { background: none; color: var(--burgundy); }
    .nav .nav-ig__label { position: static; inline-size: auto; block-size: auto; overflow: visible; clip: auto; font-size: .8rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; }
  }

  /* Cinzel carries every tracked capital: labels, buttons, metadata, index
     numbers. Roman capitals are the point — it has no meaningful lowercase. */
  .eyebrow, .pill, .btn, .link-arrow, .menu-btn, .skip-link,
  .card__head, .card .for strong, .entry__dates, .pullquote__by,
  .hero__meta dt, .facts dt, .credentials dt, .photo figcaption, .photo__tag,
  .row__date, .row__date small, .row__venue, .index-group__head .count,
  .project__nav .label, .side-box h4, .site-footer h4,
  .site-footer__brand .locale, .site-footer__bottom {
    font-family: var(--font-label);
    font-feature-settings: "liga" 0;
  }

  /* ---- Buttons: rectangular, tracked, deliberate ---- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7em;
    min-block-size: 46px;
    padding: .8em 1.5em;
    font-size: var(--label-size);
    font-weight: 600;
    letter-spacing: var(--label-track);
    text-transform: uppercase;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
  }
  .btn--primary {
    background: var(--burgundy);
    color: var(--surface);
  }
  .btn--primary:hover { background: var(--burgundy-deep); }
  .btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-2);
  }
  .btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
  .btn--quiet {
    background: transparent;
    color: var(--ink-2);
    border-color: var(--line);
  }
  .btn--quiet:hover { color: var(--ink); border-color: var(--line-2); }
  .btn svg { inline-size: 1.15em; block-size: 1.15em; flex: none; }
  .btn.is-done { background: var(--surface); color: var(--burgundy); border-color: var(--burgundy); }

  .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    font-size: var(--label-size);
    font-weight: 600;
    letter-spacing: var(--label-track);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--burgundy);
  }
  .link-arrow .arrow { display: inline-block; transition: translate .25s var(--ease-out); }
  .link-arrow:hover .arrow { translate: .3em 0; }
  .link-arrow--back .arrow { rotate: 180deg; }
  .link-arrow--back:hover .arrow { translate: -.3em 0; }

  /* ---- Label: the small tracked capitals this whole design runs on ---- */
  .eyebrow {
    display: inline-flex;
    /* Baseline, not centre: when the label wraps to two lines the mark still
       sits against the first one. */
    align-items: baseline;
    gap: .8em;
    font-size: var(--label-size);
    font-weight: 600;
    letter-spacing: var(--label-track);
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .eyebrow::before {
    content: "";
    inline-size: 5px;
    block-size: 5px;
    rotate: 45deg;
    background: var(--line-3);
    translate: 0 -.15em;
    flex: none;
  }
  .eyebrow--burgundy { color: var(--burgundy); }
  .eyebrow--burgundy::before { background: var(--burgundy); }
  .eyebrow--plain::before { content: none; }

  /* ---- Tags: rectangular, hairline, catalogue-like ---- */
  .pills { display: flex; flex-wrap: wrap; gap: 0; }
  .pills > .pill + .pill { border-inline-start: 0; }
  .pill {
    display: inline-flex;
    align-items: center;
    padding: .45em .8em;
    font-size: .625rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .13em;
    text-transform: uppercase;
    white-space: nowrap;
    background: transparent;
    color: var(--ink-3);
    border: 1px solid var(--line-2);
  }
  .pill--upcoming { color: var(--burgundy); border-color: color-mix(in srgb, var(--burgundy) 40%, transparent); }
  .pill--ongoing  { color: var(--ink); border-color: var(--line-3); }
  .pill--past     { color: var(--ink-3); }

  /* ---- Plate: a work presented the way a gallery presents it ---- */
  .photo {
    position: relative;
    display: block;
    inline-size: 100%;
    padding: clamp(12px, 1.1vw, 16px);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-plate);
    transition: box-shadow .4s var(--ease-out);
  }
  .photo img {
    --ratio: 3 / 4;
    --matte: clamp(14px, 1.7vw, 24px);
    inline-size: 100%;
    aspect-ratio: var(--ratio);
    object-fit: cover;
    border: var(--matte) solid var(--ground-alt);
    background: var(--ground-alt);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  }
  .photo--wide img { --ratio: 3 / 2; }
  .photo--square img { --ratio: 1; }
  /* Two works side by side in one plate. The plate keeps its single-work
     footprint, so each painting is simply shown smaller. */
  .photo--pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, .9vw, 12px);
    align-items: start;
  }
  .photo--pair img { --ratio: 4 / 5; --matte: clamp(6px, .7vw, 10px); }
  .photo--pair figcaption { grid-column: 1 / -1; }
  .photo figcaption {
    margin-block-start: clamp(12px, 1.4vw, 18px);
    padding-block-start: 10px;
    border-block-start: 1px solid var(--line);
    font-size: .68rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    line-height: 1.5;
    color: var(--ink-3);
  }
  .photo figcaption em {
    font-family: var(--font-body);
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    font-size: .9375rem;
    color: var(--ink-2);
  }
  .photo figcaption strong { font-weight: 600; color: var(--ink); }
  /* Two-part label: attribution left, materials right, as on a wall card. */
  .photo figcaption.split {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 20px;
  }
  .photo figcaption.split > span:last-child { color: var(--ink-3); text-align: end; }

  /* Accession chip, top-right of the plate. */
  .photo__tag {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    translate: 0 -50%;
    margin-inline-end: clamp(14px, 1.6vw, 22px);
    padding: .42em .7em;
    background: var(--ink);
    color: var(--ground);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .photo:hover,
  a:hover .photo,
  a:focus-visible .photo { box-shadow: var(--shadow-plate-hover); }

  /* ---- Cards: the three practices ---- */
  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: clamp(14px, 1.6vw, 20px);
  }
  .card {
    position: relative;
    /* Flex, not grid: the "intended for" block has to sit on the baseline of
       the card so the three footers line up across the row. */
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 0 0 clamp(24px, 2.6vw, 32px);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: border-color .25s ease, box-shadow .3s var(--ease-out);
  }
  .card > :not(.card__head) { margin-inline: clamp(22px, 2.4vw, 32px); }
  .card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 14px clamp(22px, 2.4vw, 32px);
    border-block-end: 1px solid var(--line);
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .card__head > :first-child { color: var(--ink); }
  .card > h3 { margin-block-start: clamp(10px, 1.2vw, 16px); }
  .card p { color: var(--ink-2); font-size: .97rem; }
  .card .for {
    margin-block-start: auto;
    padding-block-start: 1.1rem;
    border-block-start: 1px solid var(--line);
    font-size: .95rem;
    color: var(--ink-2);
  }
  .card .for strong {
    display: block;
    margin-block-end: .3em;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  a.card { text-decoration: none; }
  a.card:hover { border-color: var(--line-3); box-shadow: var(--shadow-plate); }

  /* ---- Prose ---- */
  .prose { max-inline-size: var(--measure); }
  .prose > * + * { margin-block-start: 1.15em; }
  .prose > h2 { margin-block-start: 2.2em; font-size: clamp(1.55rem, 1.3rem + 1vw, 2.05rem); }
  .prose > h2:first-child { margin-block-start: 0; }
  .prose > h3 { margin-block-start: 1.8em; }
  .prose p { color: var(--ink-2); }
  .prose p.lead { font-size: 1.15rem; line-height: 1.55; color: var(--ink); }
  .prose ul, .prose ol { padding-inline-start: 1.25em; color: var(--ink-2); }
  .prose ul { list-style: disc; }
  .prose ol { list-style: decimal; }
  .prose li + li { margin-block-start: .4em; }
  .prose li::marker { color: var(--line-3); }
  .prose a { color: var(--ink); }

  /* Quoted matter: set in a sunk block with a burgundy stem, as in the catalogue. */
  .prose blockquote,
  .pullquote {
    position: relative;
    padding: clamp(18px, 2vw, 26px) clamp(20px, 2.2vw, 30px);
    background: var(--surface-sunk);
    border-inline-start: 2px solid var(--burgundy);
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem);
    line-height: 1.4;
    color: var(--ink);
    text-wrap: pretty;
  }
  .prose blockquote { margin-block: 1.8em; }
  /* Attribution under a quote, in the registry's voice. */
  .pullquote__by {
    display: block;
    margin-block-start: .9em;
    font-family: var(--font-body);
    font-style: normal;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .prose .slot { font-style: italic; color: var(--ink-3); border-block-end: 1px dashed var(--line-2); }

  .slot {
    font-style: italic;
    color: var(--ink-3);
    border-block-end: 1px dashed var(--line-2);
  }

  /* ---- Facts (definition list) ---- */
  .facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 0;
    border: 1px solid var(--line);
  }
  .facts > div {
    padding: 18px 20px;
    border-inline-start: 1px solid var(--line);
  }
  .facts > div:first-child { border-inline-start: 0; }
  .facts dt {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-block-end: .5em;
  }
  .facts dd { color: var(--ink); line-height: 1.45; font-size: .95rem; }
  .facts dd small { display: block; color: var(--ink-3); font-size: .85rem; }
  @media (max-width: 640px) {
    .facts > div { border-inline-start: 0; border-block-start: 1px solid var(--line); }
    .facts > div:first-child { border-block-start: 0; }
  }

  /* ---- Hero (home) ---- */
  .hero {
    padding-block: clamp(44px, 6vw, 92px) clamp(64px, 8vw, 118px);
  }
  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 6.4fr) minmax(0, 5fr);
    gap: clamp(40px, 6vw, 90px);
    align-items: start;
  }
  .hero__copy { display: grid; gap: clamp(20px, 2.4vw, 28px); justify-items: start; }
  /* "You're invited to / Quiet Weather." wants to break in two, as it does
     in the reference — not three. */
  .hero__copy h1 { max-inline-size: 24ch; }
  /* The artist credit takes its own line rather than breaking the title. */
  .hero__by { display: block; font-size: .58em; color: var(--ink-2); }
  .hero__lede {
    font-size: 1.25rem;        /* body-lg */
    line-height: 1.6;
    color: var(--ink-2);
    max-inline-size: 46ch;
  }
  /* Event particulars, boxed like a card of record. */
  .hero__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    inline-size: 100%;
    max-inline-size: 40rem;
    margin-block-start: .4rem;
    border: 1px solid var(--line-2);
  }
  .hero__meta > div {
    padding: 16px 20px;
    border-inline-start: 1px solid var(--line-2);
  }
  .hero__meta > div:first-child { border-inline-start: 0; }
  .hero__meta dt {
    margin-block-end: .45em;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .hero__meta dd { font-size: .95rem; color: var(--ink); }
  .hero__meta dd small { display: block; margin-block-start: .2em; color: var(--ink-2); font-size: .875rem; }

  /* "Come say hello…" — the one aside Gloria asked to keep. */
  .hero__aside {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--burgundy);
  }
  .hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: .4em 1.6em;
    font-size: .9375rem;
  }
  .hero__links a { color: var(--ink-2); }
  .hero__links a:hover { color: var(--burgundy); }
  @media (max-width: 480px) {
    .hero__meta > div { border-inline-start: 0; border-block-start: 1px solid var(--line-2); }
    .hero__meta > div:first-child { border-block-start: 0; }
  }
  .hero__art { position: relative; }
  .hero__art .photo { max-inline-size: 460px; margin-inline: auto; }
  @media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__art { max-inline-size: 460px; }
  }

  /* ---- Statement ---- */
  .statement__grid {
    display: grid;
    grid-template-columns: minmax(0, 4.6fr) minmax(0, 7fr);
    gap: clamp(28px, 4vw, 72px);
    align-items: start;
    padding-block-start: clamp(20px, 2.4vw, 30px);
    border-block-start: 1px solid var(--line-2);
  }
  .statement__aside { position: relative; display: grid; gap: 1rem; align-content: start; }
  .statement__aside .sub {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--ink-3);
  }
  .statement__body { display: grid; gap: 1.5rem; justify-items: start; }
  .statement__body p { font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); max-inline-size: 40em; }
  .statement__body p:first-child { color: var(--ink); }
  .statement__body .pullquote { max-inline-size: 34em; }
  @media (max-width: 860px) {
    .statement__grid { grid-template-columns: 1fr; }
  }

  /* ---- Selected work: case studies, filed in order ---- */
  .table {
    display: grid;
    gap: clamp(16px, 1.8vw, 24px);
  }

  .entry {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: border-color .25s ease, box-shadow .3s var(--ease-out);
  }
  .entry:hover { border-color: var(--line-3); box-shadow: var(--shadow-plate); }
  /* Alternate which side the plate sits on, spread by spread. */
  .entry--flip .entry__art { order: 2; }
  .entry__art {
    display: block;
    padding: clamp(20px, 2.4vw, 32px);
    background: var(--ground-alt);
    border-inline-end: 1px solid var(--line);
  }
  .entry--flip .entry__art { border-inline-end: 0; border-inline-start: 1px solid var(--line); }
  .entry__art .photo { block-size: 100%; box-shadow: none; }
  .entry__art .photo img { block-size: 100%; }
  .entry:hover .entry__art .photo { box-shadow: none; }
  .entry__body {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: clamp(24px, 3vw, 44px);
  }
  .entry__body h3 { transition: color .2s ease; }
  .entry:hover .entry__body h3 { color: var(--burgundy); }
  .entry__dates {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .entry__blurb { color: var(--ink-2); font-size: .97rem; }
  .entry__body .pullquote { font-size: 1.02rem; padding: 16px 20px; }
  .entry__body .link-arrow { margin-block-start: 6px; }
  @media (max-width: 820px) {
    .entry { grid-template-columns: 1fr; }
    .entry--flip .entry__art { order: 0; border-inline-start: 0; }
    .entry__art { border-inline-end: 0; border-block-end: 1px solid var(--line); }
  }

  /* The text-only entry: no plate, so the panel carries it. */
  .entry--text { grid-template-columns: 1fr; }
  .entry--text .entry__panel {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: clamp(24px, 3vw, 44px);
  }
  .entry--text .entry__panel p { color: var(--ink-2); }

  /* ---- Bio / background ---- */
  .bio__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
  }
  .bio__portrait { position: relative; max-inline-size: 400px; }
  .bio__body { display: grid; gap: 1.5rem; }
  .bio__body .prose p { font-size: 1.02rem; }
  .credentials {
    display: grid;
    gap: 0;
    margin-block-start: .5rem;
    border-block-start: 1px solid var(--line-2);
  }
  .credentials > div {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 12px;
    align-items: baseline;
    padding-block: 16px;
    border-block-end: 1px solid var(--line);
  }
  .credentials dt {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .credentials dd { color: var(--ink-2); font-size: .97rem; }
  @media (max-width: 860px) {
    .bio__grid { grid-template-columns: 1fr; }
    .bio__portrait { max-inline-size: 340px; }
    .credentials > div { grid-template-columns: 1fr; gap: 4px; }
  }

  /* ---- Contact: a card of record, centred ---- */
  .contact-card {
    display: grid;
    gap: 1.3rem;
    justify-items: center;
    text-align: center;
    max-inline-size: 760px;
    margin-inline: auto;
    padding: clamp(40px, 5.5vw, 84px) clamp(28px, 4vw, 72px);
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .contact-card h2 { max-inline-size: 14ch; }
  .contact-card p { max-inline-size: 46ch; color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; }
  .contact-card .actions { flex-direction: column; align-items: stretch; inline-size: min(100%, 400px); gap: 8px; margin-block-start: .4rem; }
  .contact-card .small {
    font-family: var(--font-display);
    font-style: italic;
    font-size: .95rem;
    color: var(--ink-3);
    max-inline-size: 48ch;
  }
  /* On the inner pages the contact card sits left-aligned in a column. */
  .contact-card--left { justify-items: start; text-align: start; max-inline-size: none; margin-inline: 0; }
  .contact-card--left .actions { flex-direction: row; inline-size: auto; }

  /* ---- Footer: the colophon ---- */
  .site-footer {
    padding-block: clamp(56px, 6vw, 88px) 0;
    background: var(--ground);
    border-block-start: 1px solid var(--line-2);
    font-size: .93rem;
    color: var(--ink-2);
  }
  .site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px clamp(24px, 3vw, 48px);
    align-items: start;
  }
  .site-footer__brand { display: grid; gap: 10px; justify-items: start; max-inline-size: 30ch; }
  .site-footer__brand .wordmark { font-size: 1.3rem; margin-block-end: 4px; }
  .site-footer__brand .tagline { color: var(--ink-2); font-size: .93rem; line-height: 1.6; }
  .site-footer__brand .locale {
    margin-block-start: 6px;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .site-footer h4 {
    font-family: var(--font-body);
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-block-end: 16px;
  }
  .site-footer ul { display: grid; gap: 10px; }
  .site-footer li { font-size: .93rem; }
  .site-footer a { text-decoration: none; color: var(--ink-2); }
  .site-footer a:hover { color: var(--burgundy); }

  /* Dispatch: one line, when there is something worth seeing. */
  .dispatch {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 3fr);
    gap: 16px clamp(24px, 3vw, 48px);
    align-items: center;
    margin-block-start: clamp(40px, 5vw, 64px);
    padding-block-start: clamp(24px, 3vw, 36px);
    border-block-start: 1px solid var(--line);
  }
  .dispatch__form { display: flex; flex-wrap: wrap; gap: 8px; }
  .dispatch__form input {
    flex: 1 1 240px;
    min-block-size: 46px;
    padding: .6em 1em;
    background: var(--surface);
    border: 1px solid var(--line-2);
    color: var(--ink);
    font-size: .93rem;
  }
  .dispatch__form input::placeholder { color: var(--ink-3); }
  .dispatch__form input:focus-visible { outline-offset: 0; border-color: var(--burgundy); }
  @media (max-width: 760px) {
    .dispatch { grid-template-columns: 1fr; }
  }

  .site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 32px;
    margin-block-start: clamp(32px, 4vw, 52px);
    padding-block: 20px;
    border-block-start: 1px solid var(--line);
    font-size: .625rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
  .site-footer__bottom a { color: var(--ink-3); }
  /* Fewer columns while most of the site is still to come. */
  .site-footer__grid--short { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
  @media (max-width: 900px) {
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__brand { grid-column: 1 / -1; }
  }
  @media (max-width: 560px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  }

  /* ---- Page head (inner pages) ---- */
  .page-head {
    display: grid;
    gap: 1.2rem;
    max-inline-size: 48rem;
    padding-block: clamp(40px, 5vw, 76px) clamp(40px, 5vw, 64px);
  }
  .page-head .intro { font-size: 1.08rem; line-height: 1.65; color: var(--ink-2); }

  /* ---- "Now" card on the exhibitions index ---- */
  .now-card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    text-decoration: none;
    transition: border-color .25s ease, box-shadow .3s var(--ease-out);
  }
  .now-card:hover { border-color: var(--line-3); box-shadow: var(--shadow-plate); }
  .now-card__art {
    position: relative;
    padding: clamp(20px, 2.4vw, 32px);
    background: var(--ground-alt);
    border-inline-end: 1px solid var(--line);
  }
  .now-card__art .photo { block-size: 100%; box-shadow: none; }
  .now-card__art .photo img { block-size: 100%; }
  .now-card__body {
    display: grid;
    align-content: center;
    gap: 14px;
    justify-items: start;
    padding: clamp(28px, 3.4vw, 52px);
  }
  .now-card__body h2 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.7rem); }
  .now-card__body p { color: var(--ink-2); max-inline-size: 38em; font-size: .97rem; }
  .now-card__body .meta { font-size: .93rem; color: var(--ink-2); }
  .now-card__body .meta strong { font-weight: 600; color: var(--ink); }
  @media (max-width: 820px) {
    .now-card { grid-template-columns: 1fr; }
    .now-card__art { border-inline-end: 0; border-block-end: 1px solid var(--line); }
  }

  /* ---- Index groups and rows ---- */
  .index-group { padding-block: clamp(32px, 4vw, 56px); border-block-start: 1px solid var(--line-2); }
  .index-group__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-block-end: 12px;
  }
  .index-group__head h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.25rem); }
  .index-group__head .count {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .rows { display: grid; }
  .row { border-block-end: 1px solid var(--line); }
  .row:last-child { border-block-end: 0; }
  .row__link {
    display: grid;
    grid-template-columns: 9.5rem 112px minmax(0, 1fr) auto;
    gap: 16px clamp(16px, 3vw, 40px);
    align-items: center;
    padding-block: clamp(22px, 3vw, 32px);
    text-decoration: none;
    color: inherit;
  }
  .row__date {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-2);
    line-height: 1.6;
  }
  .row__date small { display: block; color: var(--ink-3); letter-spacing: .13em; font-size: .625rem; }
  .row__thumb { padding: 6px; }
  .row__thumb img { --ratio: 4 / 3; --matte: 0px; box-shadow: none; }
  .row__glyph {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    inline-size: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-3);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.8rem;
    transition: color .25s ease, border-color .25s ease;
  }
  .row__link:hover .row__glyph { color: var(--burgundy); border-color: var(--line-3); }
  .row__body { display: grid; gap: 8px; }
  .row__body h3 { font-size: clamp(1.3rem, 1.15rem + .7vw, 1.7rem); transition: color .2s ease; }
  .row__link:hover .row__body h3 { color: var(--burgundy); }
  .row__body p { color: var(--ink-2); max-inline-size: 50em; font-size: .97rem; }
  .row__venue {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .row__arrow {
    display: grid;
    place-items: center;
    inline-size: 42px;
    block-size: 42px;
    border: 1px solid var(--line-2);
    color: var(--ink);
    transition: background .25s ease, border-color .25s ease, color .25s ease;
  }
  .row__arrow svg { inline-size: 17px; block-size: 17px; }
  .row__link:hover .row__arrow { background: var(--burgundy); border-color: var(--burgundy); color: var(--surface); }
  @media (max-width: 860px) {
    .row__link { grid-template-columns: 100px minmax(0, 1fr); grid-template-areas: "thumb body" "date body"; row-gap: 8px; align-items: start; }
    .row__thumb, .row__glyph { grid-area: thumb; }
    .row__body { grid-area: body; }
    .row__date { grid-area: date; }
    .row__arrow { display: none; }
  }
  @media (max-width: 520px) {
    .row__link { grid-template-columns: 1fr; grid-template-areas: "date" "thumb" "body"; }
    .row__thumb, .row__glyph { max-inline-size: 150px; }
  }
  .index-note {
    margin-block-start: 8px;
    padding: 24px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: .95rem;
    max-inline-size: 50em;
  }
  .index-note a { color: var(--ink); }

  /* ---- Project page ---- */
  .project { padding-block: clamp(28px, 4vw, 56px) 0; }
  .project__crumbs { margin-block-end: clamp(24px, 3vw, 40px); }
  .project__head {
    display: grid;
    gap: clamp(18px, 2.2vw, 28px);
    max-inline-size: 56rem;
    margin-block-end: clamp(36px, 5vw, 64px);
  }
  .project__head h1 { max-inline-size: 15ch; }
  .project__head .lede {
    font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem);
    line-height: 1.6;
    color: var(--ink-2);
    max-inline-size: 34em;
  }
  .project__head .facts { margin-block-start: 12px; }

  .project__images {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: start;
    padding-block: 8px clamp(44px, 6vw, 92px);
  }
  @media (max-width: 720px) {
    .project__images { grid-template-columns: 1fr; gap: 32px; }
  }

  .project__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 288px;
    gap: clamp(32px, 5vw, 88px);
    align-items: start;
    padding-block-end: var(--section);
  }
  .project__side {
    position: sticky;
    inset-block-start: 96px;
    display: grid;
    gap: 16px;
  }
  .side-box {
    display: grid;
    gap: 10px;
    padding: 22px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-size: .93rem;
    color: var(--ink-2);
  }
  .side-box h4 {
    font-family: var(--font-body);
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-block-end: 10px;
    border-block-end: 1px solid var(--line);
  }
  .side-box strong { color: var(--ink); font-weight: 600; }
  .side-box .actions { padding-block-start: 6px; flex-direction: column; align-items: stretch; }
  .side-box .btn { inline-size: 100%; }
  @media (max-width: 900px) {
    .project__layout { grid-template-columns: 1fr; }
    .project__side { position: static; }
  }

  .share-link {
    display: grid;
    gap: 8px;
    font-size: .93rem;
    color: var(--ink-2);
  }
  .share-link code:not([hidden]) {
    display: block;
    overflow-wrap: anywhere;
    padding: 10px 14px;
    background: var(--ground);
    border: 1px solid var(--line);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: .8rem;
    color: var(--ink);
  }

  .project__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding-block: clamp(28px, 4vw, 48px);
    border-block-start: 1px solid var(--line-2);
  }
  .project__nav a {
    display: grid;
    gap: 8px;
    padding: 22px 26px;
    border: 1px solid var(--line);
    text-decoration: none;
    transition: border-color .25s ease, background .25s ease;
  }
  .project__nav a + a { border-inline-start: 0; }
  .project__nav a:hover { background: var(--surface); border-color: var(--line-3); }
  .project__nav a:last-child { text-align: end; justify-items: end; }
  .project__nav .label {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .project__nav .title {
    font-family: var(--font-display);
    font-size: 1.3rem;
  }
  @media (max-width: 600px) {
    .project__nav { grid-template-columns: 1fr; }
    .project__nav a + a { border-inline-start: 1px solid var(--line); border-block-start: 0; }
    .project__nav a:last-child { text-align: start; justify-items: start; }
  }

  /* The text-only project: a wide panel instead of plates. */
  .project__panel {
    padding: clamp(28px, 3.5vw, 56px);
    background: var(--surface);
    border: 1px solid var(--line);
    margin-block-end: clamp(40px, 6vw, 80px);
  }
  .project__panel .pullquote { max-inline-size: 34em; background: transparent; padding-inline-start: 1.2em; padding-block: 0; }
}

/* --------------------------------------------------------------------------
   Utilities and motion
   -------------------------------------------------------------------------- */
@layer utilities {
  .visually-hidden {
    position: absolute !important;
    inline-size: 1px; block-size: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
  }
  .muted { color: var(--ink-3); }
  .small { font-size: .92rem; }
  .relative { position: relative; }

  /* Gentle rise-in as things scroll into view. Decorative, so no fallback:
     browsers without scroll-driven animations simply show everything. */
  @media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
      @keyframes rise {
        from { opacity: 0; translate: 0 18px; }
      }
      .reveal {
        animation: rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 45%;
      }
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .photo, .btn, .card, .entry, .now-card, .row__arrow, .link-arrow .arrow, .nav a::after {
      transition: none !important;
    }
  }

  @media (forced-colors: active) {
    .btn, .pill, .card, .photo, .entry { border: 1px solid CanvasText; }
  }

  @media print {
    .site-header, .site-footer, .skip-link, .menu-btn { display: none !important; }
    .photo, .card, .entry { box-shadow: none !important; }
  }
}
