/* ═══════════════════════════════════════════════════════════════════════════
   elei — The Bloodstock Catalogue
   ---------------------------------------------------------------------------
   The world: a Kildare sale catalogue, read in the sale ring. The page ground
   is stained timber; the content sits on lit manila leaves ruled in brass. Lot
   figures are blocked in Bodoni; every fact is tabular Archivo. Hammer red is
   reserved for live state — price, sold, error — and appears nowhere else.

   One token set drives the public site and the studio admin, light and dark
   defined together. Dark is the home: the ring at night, with the lot lit.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ───────────────────────────────────────────────────────────────── */
:root {
  /* Daylight: the catalogue open on the table. The ground is the table —
     worn oak — and the leaves are the manila pages lying on it. Ground and
     leaf must stay a clear step apart, or the page has no figure. */
  --ground:    #CDB894;   /* the table */
  --ground-2:  #C2AB84;
  --ground-3:  #B79E75;
  --leaf:      #F6EEDC;   /* manila, lit */
  --leaf-2:    #EDE3CD;
  --ink:       #17120F;
  --ink-2:     #4A4034;
  --ink-3:     #534635;
  --rule:      #A98F63;
  --rule-2:    #8E7448;

  --brass:     #7A5C25;
  --brass-2:   #5A4318;
  --hammer:    #B3241A;   /* live state only */
  --hammer-2:  #8E1C13;
  --sand:      #C7A97C;
  --ok:        #2E6B45;   /* settled states: paid, completed, available */

  --ring:      #12100E;   /* the stage is dark in both themes */
  --ring-ink:  #F2EADB;

  --shadow-1:  0 1px 2px rgba(23,18,15,.10);
  --shadow-2:  0 10px 24px -12px rgba(23,18,15,.34), 0 2px 6px -2px rgba(23,18,15,.16);
  --shadow-3:  0 34px 70px -30px rgba(23,18,15,.46), 0 6px 16px -8px rgba(23,18,15,.22);
  --spot:      rgba(120,80,20,.10);

  --display: "Bodoni Moda", "Didot", "Bodoni MT", "Times New Roman", Georgia, serif;
  --text:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(1.15rem, 3.6vw, 3.25rem);
  --maxw:   86rem;
  --nav-h:  4.5rem;

  /* One easing across the whole site, so it all moves with one hand. */
  --ease:  cubic-bezier(.2,.7,.25,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --fast:  .16s var(--ease);
  --med:   .34s var(--ease);
  --slow:  .68s var(--ease-out);

  --radius: 2px;          /* catalogue leaves are cut square */
  color-scheme: light;
}

[data-theme="dark"] {
  /* Night: the ring, lights down, the lot spotlit. Same relationship as the
     daylight theme — stained timber ground, leaves lifted off it — with the
     brass hairline doing the separating that value alone cannot at this end
     of the scale. */
  --ground:    #0E0C0A;   /* stained timber */
  --ground-2:  #171310;
  --ground-3:  #221C17;
  --leaf:      #262019;   /* a page under the ring lights */
  --leaf-2:    #2E271F;
  --ink:       #F2EADB;
  --ink-2:     #B9AB95;
  --ink-3:     #948873;
  --rule:      #342C24;
  --rule-2:    #4A3F33;

  --brass:     #C9A465;
  --brass-2:   #E0C48C;
  --hammer:    #E0402F;
  --hammer-2:  #F26A57;
  --sand:      #D9C09A;
  --ok:        #6FBF8E;

  --shadow-1:  0 1px 2px rgba(0,0,0,.5);
  --shadow-2:  0 10px 24px -12px rgba(0,0,0,.8), 0 2px 6px -2px rgba(0,0,0,.5);
  --shadow-3:  0 34px 70px -30px rgba(0,0,0,.9), 0 6px 16px -8px rgba(0,0,0,.6);
  --spot:      rgba(255,236,205,.10);
  color-scheme: dark;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* The timber/stock grain: a fine deterministic tint, never a gradient wash. */
  background-image:
    repeating-linear-gradient(92deg, rgba(0,0,0,.014) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(2deg, rgba(0,0,0,.010) 0 1px, transparent 1px 5px);
}
[data-theme="dark"] body {
  background-image:
    repeating-linear-gradient(92deg, rgba(255,255,255,.016) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(2deg, rgba(255,255,255,.010) 0 1px, transparent 1px 5px);
}

[hidden] { display: none !important; }
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, p, figure, blockquote, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
table { border-collapse: collapse; width: 100%; }

/* Browser surfaces belong to the design too. */
::selection { background: var(--hammer); color: #FFF7EC; }
::-moz-selection { background: var(--hammer); color: #FFF7EC; }
:root { accent-color: var(--hammer); caret-color: var(--hammer); }
* { scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; }
*::-webkit-scrollbar { width: 11px; height: 11px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--rule-2); border: 3px solid var(--ground);
  border-radius: 99px;
}
*::-webkit-scrollbar-thumb:hover { background: var(--brass); }

:focus-visible {
  outline: 2px solid var(--hammer);
  outline-offset: 2px;
  border-radius: var(--radius);
}

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

.skip-link {
  position: fixed; left: -9999px; top: 0; z-index: 999;
  background: var(--hammer); color: #FFF7EC;
  padding: .8rem 1.3rem; font-size: .8125rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.skip-link:focus { left: .5rem; top: .5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Type ─────────────────────────────────────────────────────────────────── */
.t-1, .t-2, .t-3 { font-family: var(--display); font-weight: 500; line-height: 1.02; }

.t-1 { font-size: clamp(2.75rem, 7vw, 6rem);      letter-spacing: -.028em; }
.t-2 { font-size: clamp(2rem, 4.2vw, 3.25rem);    letter-spacing: -.022em; line-height: 1.05; }
.t-3 { font-size: clamp(1.375rem, 2.4vw, 1.9rem); letter-spacing: -.014em; line-height: 1.14; }
.t-4 { font-family: var(--display); font-weight: 500; font-size: 1.1875rem;
       letter-spacing: -.008em; line-height: 1.25; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -.018em; line-height: 1.08; }

/* Blocked lot figures — the illuminated board above the ring. */
.lot-no {
  font-family: var(--display);
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.04em;
  line-height: .78;
  font-optical-sizing: auto;
}
.lot-no--xl { font-size: clamp(3.5rem, 9vw, 8rem); }
.lot-no--lg { font-size: clamp(2rem, 4vw, 3rem); }
.lot-no--sm { font-size: 1.0625rem; letter-spacing: -.02em; line-height: 1; }

/* The catalogue's own label voice: ruled, tracked, tabular. Carries a fact —
   a lot number, a session, a status — never a decorative eyebrow. */
.label {
  font-family: var(--text);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink-3);
  display: block;
}
.label a:hover { color: var(--ink); }
.label--brass { color: var(--brass-2); }

.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40ch;
}
.muted { color: var(--ink-2); }
.num   { font-variant-numeric: lining-nums tabular-nums; }
.nowrap{ white-space: nowrap; }
.center{ text-align: center; }

.prose { max-width: 68ch; color: var(--ink-2); }
.prose p + p { margin-top: 1.1em; }
.prose a { color: var(--ink); box-shadow: inset 0 -1px 0 var(--rule-2); }
.prose a:hover { box-shadow: inset 0 -2px 0 var(--hammer); }
.prose--display { font-family: var(--display); font-size: 1.1875rem; line-height: 1.5; color: var(--ink); }

.mt-1{margin-top:.5rem}.mt-2{margin-top:.85rem}.mt-3{margin-top:1.25rem}
.mt-4{margin-top:1.85rem}.mt-5{margin-top:2.75rem}.mb-3{margin-bottom:1.25rem}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 56rem; }
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.25rem); }

/* A ruled section head, the way a catalogue opens a session. */
.section-head {
  display: flex; flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem clamp(.9rem, 2vw, 1.75rem);
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--rule-2);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.section-head__no { flex: 0 0 auto; }
.section-head__no {
  font-family: var(--text); font-size: .6875rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; color: var(--brass-2);
}
.section-head__title { margin-right: auto; }
.section-head__link {
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
}
.section-head__link:hover { color: var(--hammer); }
.section-head__link svg { width: 15px; height: 15px; transition: transform var(--fast); }
.section-head__link:hover svg { transform: translateX(3px); }

/* The lit catalogue leaf: the one raised surface in the system. */
.leaf {
  background: var(--leaf);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-2);
  position: relative;
}
.leaf--pinned { box-shadow: var(--shadow-3); }

/* ── Announcement ─────────────────────────────────────────────────────────── */
.announce {
  background: var(--ring); color: var(--ring-ink);
  font-size: .75rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; text-align: center;
  padding: .6rem var(--gutter);
  border-bottom: 1px solid rgba(201,164,101,.35);
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--med), border-color var(--med);
}
.nav.is-stuck { box-shadow: var(--shadow-2); border-bottom-color: var(--rule-2); }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
}

.brand__rule { display: none; }

.nav__links { display: flex; align-items: center; gap: clamp(.85rem, 2vw, 1.9rem); margin-inline: auto; }
.nav__link {
  font-size: .8125rem; font-weight: 500; letter-spacing: .085em;
  text-transform: uppercase; color: var(--ink-2);
  padding: .5rem 0; position: relative; white-space: nowrap;
  transition: color var(--fast);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1px;
  background: var(--hammer); transform: scaleX(0); transform-origin: left;
  transition: transform var(--med);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--brass); }

.nav__tools { display: flex; align-items: center; gap: .35rem; flex: 0 0 auto; }

.icon-btn {
  appearance: none; background: none; border: 1px solid transparent;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  cursor: pointer; color: var(--ink-2); border-radius: var(--radius);
  transition: color var(--fast), background var(--fast), border-color var(--fast);
}
.icon-btn:hover { color: var(--ink); background: var(--ground-2); border-color: var(--rule); }
.icon-btn svg { width: 19px; height: 19px; }

.cart-btn { position: relative; }
.cart-btn__count {
  position: absolute; top: .18rem; right: .12rem;
  min-width: 1.05rem; height: 1.05rem; padding: 0 .22rem;
  background: var(--hammer); color: #FFF7EC;
  font-size: .6875rem; font-weight: 700; font-variant-numeric: tabular-nums;
  line-height: 1.05rem; text-align: center; border-radius: 99px;
}

.nav__burger { display: none; }
.burger-lines { display: block; width: 18px; height: 11px; position: relative; }
.burger-lines span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform var(--med), opacity var(--fast);
}
.burger-lines span:nth-child(1) { top: 0; }
.burger-lines span:nth-child(2) { bottom: 0; }
[aria-expanded="true"] .burger-lines span:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
[aria-expanded="true"] .burger-lines span:nth-child(2) { transform: translateY(-4.75px) rotate(-45deg); }

@media (max-width: 61.99em) {
  .nav__burger { display: grid; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--rule-2);
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: var(--shadow-3);
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path var(--med), opacity var(--fast);
  }
  .nav__links.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav__link {
    font-size: 1.5rem; font-family: var(--display); font-weight: 500;
    letter-spacing: -.01em; text-transform: none; padding: .7rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav__link::after { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--ground); --btn-bd: var(--ink);
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  padding: .95rem 1.6rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  line-height: 1; text-align: center;
  position: relative; overflow: hidden;
  transition: color var(--med), border-color var(--med), transform var(--fast), box-shadow var(--med);
}
/* The hammer falls: the fill wipes up from the base edge. */
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--hammer);
  transform: translateY(101%); transition: transform var(--med);
}
.btn > * , .btn::after { position: relative; z-index: 1; }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn:hover { color: #FFF7EC; border-color: var(--hammer); }
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--rule-2); }
/* Daylight brass is dark enough to need light text on it; the night brass is
   pale enough to need dark. The footer overrides --brass to the night value. */
.btn--brass { --btn-bg: var(--brass); --btn-fg: #FFF7EC; --btn-bd: var(--brass); }
[data-theme="dark"] .btn--brass { --btn-fg: #12100E; }
.btn--sm    { padding: .7rem 1.1rem; font-size: .75rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .5; pointer-events: none; }

.link-underline { box-shadow: inset 0 -1px 0 var(--rule-2); transition: box-shadow var(--fast); }
.link-underline:hover { box-shadow: inset 0 -2px 0 var(--hammer); }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; }
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--fast); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ── The ring: the WebGL stage and its static fallback ────────────────────── */
.ring {
  position: relative;
  background: var(--ring);
  border: 1px solid var(--rule-2);
  overflow: hidden;
  isolation: isolate;
}
/* The sand floor catches the spot; drawn once, behind the canvas. */
.ring::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(78% 52% at 50% 76%, rgba(217,192,154,.30), rgba(217,192,154,0) 68%),
    radial-gradient(46% 34% at 50% 14%, rgba(255,238,208,.16), rgba(255,238,208,0) 72%);
}
.ring::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 120px 30px rgba(0,0,0,.55);
}
.ring__canvas { position: absolute; inset: 0; z-index: 1; }
.ring__canvas canvas { display: block; }
.ring__fallback {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  transition: opacity var(--slow);
}
.ring.is-live .ring__fallback { opacity: 0; pointer-events: none; }
.ring__fallback img {
  max-height: 100%; width: auto; object-fit: contain;
  box-shadow: 0 40px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(201,164,101,.25);
}
.ring__caption {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem;
  padding: .85rem clamp(1rem, 2.5vw, 1.6rem);
  background: linear-gradient(to top, rgba(18,16,14,.92), rgba(18,16,14,0));
  color: var(--ring-ink);
  font-size: .8125rem; font-variant-numeric: tabular-nums;
}
.ring__caption em { font-family: var(--display); font-style: italic; font-size: 1rem; }
.ring__caption .num { margin-left: auto; color: var(--sand); font-weight: 600; }
.ring__hint {
  position: absolute; z-index: 4; top: .8rem; right: .9rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(242,234,219,.5);
  display: flex; align-items: center; gap: .4rem;
  opacity: 0; transition: opacity var(--slow);
}
.ring.is-live .ring__hint { opacity: 1; }
.ring__hint::before {
  content: ""; width: 5px; height: 5px; border-radius: 99px;
  background: var(--hammer); box-shadow: 0 0 0 0 var(--hammer);
  animation: livepulse 2.6s var(--ease) infinite;
}
@keyframes livepulse {
  0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(224,64,47,.55); }
  35%           { box-shadow: 0 0 0 6px rgba(224,64,47,0); }
}

/* ── Home: the ring spread ────────────────────────────────────────────────── */
.spread {
  display: grid;
  grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3.25rem);
  align-items: stretch;
}
.spread__card {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.75rem, 3vw, 2.75rem);
}
.spread__card::after {
  /* the pin hole a catalogue leaf takes on the board */
  content: ""; position: absolute; top: .85rem; right: .85rem;
  width: 7px; height: 7px; border-radius: 99px;
  background: var(--rule-2); box-shadow: inset 0 1px 1px rgba(0,0,0,.4);
}
.spread__ring { min-height: clamp(24rem, 58vh, 40rem); }
.spread__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.85rem; }
.spread__actions .btn { flex: 1 1 12rem; }

@media (max-width: 61.99em) {
  .spread { grid-template-columns: minmax(0, 1fr); }
  .spread__ring { min-height: 22rem; order: -1; }
}

/* ── Marquee: the tote board strip ────────────────────────────────────────── */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--ring); color: var(--sand);
  border-block: 1px solid var(--rule-2);
  padding-block: .7rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: inline-flex; gap: 0; animation: marquee 46s linear infinite; }
.marquee__item {
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  padding-inline: 1.6rem; position: relative;
}
.marquee__item::after {
  content: "·"; position: absolute; right: -.2rem; color: var(--brass); opacity: .7;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ── Lot cards: the catalogue grid ────────────────────────────────────────── */
.grid-works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: clamp(1.5rem, 2.6vw, 2.5rem) clamp(1rem, 2vw, 1.75rem);
}
.grid-works--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }

/* Every lot gets the same plate area, the way a sale catalogue prints them:
   one photograph per lot, centred on the page, at its own true proportions.
   Uniform boxes are what let a row of mixed shapes read as one catalogue
   rather than a broken grid. */
.work-card { display: block; position: relative; }
.work-card__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 1;
  display: grid; place-items: center;
  padding: clamp(.9rem, 2vw, 1.5rem);
  background: var(--ground-2);
  border: 1px solid var(--rule);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.07);
  transition: background var(--med), border-color var(--med);
}
[data-theme="dark"] .work-card__frame { box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
.work-card__frame img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  aspect-ratio: var(--ratio, 1);
  object-fit: cover;
  box-shadow: var(--shadow-2);
  transition: transform .8s var(--ease-out), box-shadow var(--med), filter var(--med);
}
.work-card:hover .work-card__frame { border-color: var(--rule-2); background: var(--ground-3); }
.work-card:hover .work-card__frame img { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-3); }
.work-card--sold .work-card__frame img { filter: saturate(.5) brightness(.9); }

/* The lot number sits on the frame edge, as it does on a sale board. */
.work-card__lot {
  position: absolute; z-index: 2; left: 0; top: 0;
  background: var(--ring); color: var(--sand);
  padding: .3rem .5rem .28rem;
  font-family: var(--display); font-weight: 800;
  font-size: .8125rem; letter-spacing: -.01em;
  font-variant-numeric: lining-nums tabular-nums;
}
.tag {
  position: absolute; z-index: 2; right: 0; top: 0;
  padding: .32rem .55rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--ground);
}
.tag--sold     { background: var(--hammer); color: #FFF7EC; }
.tag--reserved { background: var(--brass);  color: #FFF7EC; }
.tag--nfs      { background: var(--ink-3);  color: var(--ground); }

.work-card__body {
  display: flex; align-items: baseline; gap: .75rem;
  margin-top: .85rem; padding-bottom: .4rem;
  border-bottom: 1px solid var(--rule);
}
.work-card__title {
  font-family: var(--display); font-size: 1.0625rem; font-weight: 500;
  letter-spacing: -.012em; line-height: 1.2; margin-right: auto;
}
.work-card:hover .work-card__title { color: var(--hammer); }
.work-card__price {
  font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--ink); white-space: nowrap;
}
.work-card--sold .work-card__price { color: var(--ink-3); }
.work-card__meta {
  margin-top: .4rem;
  font-size: .75rem; line-height: 1.45; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* ── The ledger: the catalogue as a measured, ruled list ──────────────────── */
.ledger { width: 100%; font-variant-numeric: tabular-nums; }
.ledger thead th {
  text-align: left; padding: .55rem .85rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--rule-2); white-space: nowrap;
}
.ledger tbody tr { border-bottom: 1px solid var(--rule); transition: background var(--fast); }
.ledger tbody tr:hover { background: var(--ground-2); }
.ledger td { padding: .7rem .85rem; font-size: .875rem; vertical-align: middle; }
.ledger__lot { font-family: var(--display); font-weight: 800; width: 1%; color: var(--brass-2); }
.ledger__thumb { width: 1%; }
.ledger__thumb img {
  width: 3.25rem; height: 2.5rem; object-fit: cover;
  border: 1px solid var(--rule); background: var(--ground-2);
}
.ledger__title { font-family: var(--display); font-size: 1rem; font-weight: 500; }
.ledger tbody tr:hover .ledger__title { color: var(--hammer); }
.ledger__meta { color: var(--ink-3); font-size: .8125rem; }
.ledger__price { text-align: right; font-weight: 600; white-space: nowrap; }
.ledger__price--sold { color: var(--ink-3); }
.ledger a { display: block; }
@media (max-width: 47.99em) {
  .ledger thead { display: none; }
  .ledger tbody tr { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .2rem .75rem; padding: .6rem 0; }
  .ledger td { padding: .1rem 0; }
  .ledger__meta { grid-column: 2 / -1; }
  .ledger__thumb { grid-row: span 2; }
}

.view-toggle { display: inline-flex; border: 1px solid var(--rule-2); border-radius: var(--radius); }
.view-toggle button {
  appearance: none; background: none; border: 0; cursor: pointer;
  padding: .5rem .7rem; color: var(--ink-3); display: grid; place-items: center;
  transition: color var(--fast), background var(--fast);
}
.view-toggle button + button { border-left: 1px solid var(--rule-2); }
.view-toggle button svg { width: 16px; height: 16px; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.view-toggle button:hover { color: var(--ink); }
.view-toggle button[aria-pressed="true"]:hover { color: var(--ground); }

/* ── Filters ──────────────────────────────────────────────────────────────── */
.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  padding-block: 1rem;
  border-block: 1px solid var(--rule-2);
}
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.filters__count {
  margin-left: auto; font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .75rem; border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); background: transparent;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
}
.chip:hover { color: var(--ink); border-color: var(--rule-2); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.chip__n { font-variant-numeric: tabular-nums; opacity: .6; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 1.1rem; }
.field__label {
  display: block; margin-bottom: .4rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}
.req { color: var(--hammer); }
.input, .textarea, .select {
  width: 100%; background: var(--leaf); color: var(--ink);
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  padding: .8rem .9rem; font-size: .9375rem; line-height: 1.4;
  transition: border-color var(--fast), box-shadow var(--fast), background var(--fast);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: 1; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--brass); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--hammer);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hammer) 18%, transparent);
}
.textarea { min-height: 8.5rem; resize: vertical; }
.select {
  appearance: none; padding-right: 2.2rem; cursor: pointer;
  font-size: .8125rem; font-weight: 500; padding-block: .6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238A6A2E' stroke-width='1.4'%3E%3Cpath d='M4 6.5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; background-size: 15px;
  width: auto;
}
[data-theme="dark"] .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23C9A465' stroke-width='1.4'%3E%3Cpath d='M4 6.5l4 4 4-4'/%3E%3C/svg%3E");
}
.field.has-error .input, .field.has-error .textarea { border-color: var(--hammer); }
.field__error { display: block; margin-top: .35rem; font-size: .8125rem; color: var(--hammer); font-weight: 500; }
.field__hint  { font-size: .8125rem; color: var(--ink-3); line-height: 1.5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 34.99em) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.stack > * + * { margin-top: 1.1rem; }

.notice {
  padding: .9rem 1.1rem; border: 1px solid var(--rule-2);
  border-left: 1px solid var(--rule-2);
  background: var(--leaf); font-size: .9375rem; color: var(--ink);
  position: relative; padding-left: 2.6rem;
}
.notice::before {
  content: ""; position: absolute; left: 1.1rem; top: 1.15rem;
  width: 8px; height: 8px; border-radius: 99px; background: var(--brass);
}
.notice--ok::before    { background: var(--ok); }
.notice--warn::before  { background: var(--brass); }
.notice--error::before { background: var(--hammer); }
.notice--error { border-color: color-mix(in srgb, var(--hammer) 45%, var(--rule-2)); }

.empty-state {
  padding: clamp(3rem, 8vw, 6rem) 1rem; text-align: center;
  border: 1px dashed var(--rule-2); color: var(--ink-2);
}

/* ── The lot page ─────────────────────────────────────────────────────────── */
.work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 25rem); gap: clamp(1.75rem, 4vw, 4rem); align-items: start; }
@media (max-width: 61.99em) { .work { grid-template-columns: minmax(0, 1fr); } }

.work__stage {
  position: relative; background: var(--ring);
  border: 1px solid var(--rule-2); overflow: hidden;
  min-height: clamp(20rem, 52vh, 38rem);
  display: grid; place-items: center;
}
.work__stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(72% 58% at 50% 42%, rgba(255,238,208,.15), rgba(255,238,208,0) 70%);
}
.work__stage img {
  position: relative; z-index: 2; max-height: 100%; width: auto; object-fit: contain;
  transition: opacity var(--slow);
}
[data-ring-host].is-live .work__stage img { opacity: 0; }
.work__stage[data-zoom] { cursor: zoom-in; }

.work__stagebar {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem .9rem;
  background: linear-gradient(to top, rgba(18,16,14,.9), rgba(18,16,14,0));
}
.stage-btn {
  appearance: none; cursor: pointer;
  background: rgba(242,234,219,.08); color: var(--ring-ink);
  border: 1px solid rgba(201,164,101,.3); border-radius: var(--radius);
  padding: .45rem .75rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background var(--fast), border-color var(--fast);
}
.stage-btn:hover { background: rgba(242,234,219,.16); border-color: var(--brass); }
.stage-btn[aria-pressed="true"] { background: var(--hammer); border-color: var(--hammer); color: #FFF7EC; }
.stage-btn svg { width: 14px; height: 14px; }
.stage-note {
  margin-left: auto; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(242,234,219,.55);
}

.work__thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.work__thumb {
  appearance: none; background: none; cursor: pointer; padding: 0;
  width: 4.5rem; height: 3.5rem; overflow: hidden;
  border: 1px solid var(--rule); transition: border-color var(--fast), opacity var(--fast);
  opacity: .65;
}
.work__thumb img { width: 100%; height: 100%; object-fit: cover; }
.work__thumb:hover { opacity: 1; }
.work__thumb[aria-selected="true"] { opacity: 1; border-color: var(--hammer); }

.work__aside { position: sticky; top: calc(var(--nav-h) + 1.25rem); }
@media (max-width: 61.99em) { .work__aside { position: static; } }

.price-row {
  display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
  margin: 1.5rem 0 1.25rem; padding-block: 1rem;
  border-block: 1px solid var(--rule-2);
}
.price {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums;
}
.price--sold { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; }

/* One truth per row, always visible: the fact panel. */
.spec { border-top: 1px solid var(--rule-2); }
.spec__row {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid var(--rule);
  font-size: .875rem;
}
.spec__k { font-size: .6875rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); padding-top: .18rem; }
.spec__v { color: var(--ink); font-variant-numeric: tabular-nums; }

.scale { margin-top: 1.85rem; }
.scale__stage {
  display: flex; align-items: flex-end; gap: 1.1rem;
  height: 208px; padding: .9rem 1rem;
  background: var(--ground-2); border: 1px solid var(--rule);
  position: relative;
}
.scale__stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .9rem; height: 1px;
  background: var(--rule-2);
}
.scale__figure { height: 170px; width: auto; color: var(--ink-3); position: relative; z-index: 1; }
.scale__work {
  background: var(--sand); border: 1px solid var(--brass-2);
  box-shadow: var(--shadow-2); position: relative; z-index: 1;
}
.scale__label { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.assurances { margin-top: 1.85rem; display: grid; gap: .6rem; }
.assurance { display: grid; grid-template-columns: 16px 1fr; gap: .65rem; align-items: start;
             font-size: .8125rem; line-height: 1.5; color: var(--ink-2); }
.assurance svg { width: 16px; height: 16px; color: var(--brass); margin-top: .18rem; }

/* ── Commission ladder: numbered stages you can walk ──────────────────────── */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--rule-2); }
.steps > li {
  counter-increment: step;
  display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .4rem 1.5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
  align-items: start;
}
.steps__n {
  font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: .9;
  color: var(--brass-2); font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.03em;
}
.steps__n::before { content: counter(step, decimal-leading-zero); }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--ink-2); font-size: .9375rem; margin-top: .35rem; max-width: 52ch; }
.steps__when {
  font-size: .6875rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap; padding-top: .5rem;
}
@media (max-width: 47.99em) {
  .steps > li { grid-template-columns: 3rem 1fr; }
  .steps__when { grid-column: 2; padding-top: .5rem; }
}

.timeline { border-top: 1px solid var(--rule-2); }
.timeline__row {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem;
  padding: .85rem 0; border-bottom: 1px solid var(--rule); font-size: .9375rem;
}
.timeline__year { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--brass-2); }
.timeline__venue { color: var(--ink-2); }

.feature-pair {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}

/* ── Cart drawer, scrim, lightbox, toast ──────────────────────────────────── */
.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,8,6,.62);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity var(--med);
}
.scrim.is-open { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(26rem, 100vw);
  background: var(--ground); border-left: 1px solid var(--rule-2);
  box-shadow: var(--shadow-3);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--med);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--gutter); border-bottom: 1px solid var(--rule-2);
}
.drawer__body { flex: 1; overflow-y: auto; padding: 1.1rem var(--gutter); }
.drawer__foot { padding: 1.1rem var(--gutter) 1.5rem; border-top: 1px solid var(--rule-2); }

.mini-item { display: grid; grid-template-columns: 4rem 1fr auto; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.mini-item__img { width: 4rem; height: 3.25rem; object-fit: cover; border: 1px solid var(--rule); }
.mini-item__title { font-family: var(--display); font-size: .9375rem; font-weight: 500; }
.mini-item__meta { font-size: .75rem; color: var(--ink-3); margin-top: .15rem; font-variant-numeric: tabular-nums; }
.mini-item__remove {
  appearance: none; background: none; border: 0; cursor: pointer; padding: .2rem;
  color: var(--ink-3); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  align-self: start;
}
.mini-item__remove:hover { color: var(--hammer); }

.total-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-size: .9375rem; padding: .3rem 0;
}
.total-row--grand {
  border-top: 1px solid var(--rule-2); margin-top: .5rem; padding-top: .8rem;
  font-family: var(--display); font-size: 1.25rem; font-weight: 700;
}
.total-row .num { font-variant-numeric: tabular-nums; }

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10,8,6,.94);
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden; transition: opacity var(--med), visibility var(--med);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; object-fit: contain; box-shadow: 0 40px 90px -30px #000; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; color: var(--ring-ink); }
.lightbox__close:hover { color: var(--ring-ink); background: rgba(242,234,219,.12); border-color: transparent; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 130;
  transform: translate(-50%, 1.5rem);
  background: var(--ring); color: var(--ring-ink);
  border: 1px solid var(--brass);
  padding: .8rem 1.3rem; font-size: .8125rem; font-weight: 500;
  letter-spacing: .04em;
  opacity: 0; pointer-events: none;
  transition: opacity var(--med), transform var(--med);
  max-width: calc(100vw - 2rem);
}
.toast.is-open { opacity: 1; transform: translate(-50%, 0); }

/* ── Checkout options ─────────────────────────────────────────────────────── */
.opt { display: block; cursor: pointer; margin-bottom: .6rem; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt__box {
  display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center;
  padding: .9rem 1.1rem; border: 1px solid var(--rule-2); background: var(--leaf);
  transition: border-color var(--fast), background var(--fast);
}
.opt:hover .opt__box { border-color: var(--brass); }
.opt input:checked + .opt__box { border-color: var(--hammer); box-shadow: inset 0 0 0 1px var(--hammer); }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--hammer); outline-offset: 2px; }
.opt__dot { width: 14px; height: 14px; border: 1px solid var(--rule-2); border-radius: 99px; }
.opt input:checked + .opt__box .opt__dot { border-color: var(--hammer); background: var(--hammer); box-shadow: inset 0 0 0 3px var(--leaf); }
.opt__title { font-size: .9375rem; font-weight: 500; }
.opt__note { font-size: .8125rem; color: var(--ink-3); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--ring); color: var(--ring-ink);
  border-top: 1px solid var(--rule-2);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  position: relative; overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 20% 0%, rgba(201,164,101,.10), transparent 70%);
  pointer-events: none;
}
.footer .wrap { position: relative; }
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (max-width: 47.99em) { .footer__grid { grid-template-columns: 1fr; } }
.footer__title {
  font-family: var(--text); font-size: .6875rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sand);
  padding-bottom: .55rem; border-bottom: 1px solid rgba(201,164,101,.3); margin-bottom: .85rem;
}
.footer__links li + li { margin-top: .5rem; }
.footer__links a { font-size: .875rem; color: rgba(242,234,219,.72); transition: color var(--fast); }
.footer__links a:hover { color: var(--sand); }
.footer .prose { color: rgba(242,234,219,.72); }
.footer .field__hint { color: rgba(242,234,219,.5); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.25rem;
  border-top: 1px solid rgba(201,164,101,.22);
  font-size: .75rem; color: rgba(242,234,219,.5);
}
.subscribe { display: flex; gap: .5rem; margin-top: 1.1rem; }
.subscribe .input {
  background: rgba(242,234,219,.06); border-color: rgba(201,164,101,.3); color: var(--ring-ink);
}
.subscribe .input::placeholder { color: rgba(242,234,219,.45); }
.subscribe .input:hover, .subscribe .input:focus { border-color: var(--brass); }
.footer .btn { --btn-bg: var(--brass); --btn-fg: #12100E; --btn-bd: var(--brass); flex: 0 0 auto; }

/* ── Reveal: one authored entrance, from an already-visible default ───────── */
[data-reveal] { --reveal-d: 0ms; }
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition: opacity .7s var(--ease-out) var(--reveal-d),
              transform .7s var(--ease-out) var(--reveal-d),
              filter .7s var(--ease-out) var(--reveal-d);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* ── Corrections after the first inspection round ──────────────────────────── */

/* The hero must command the first viewport, not sit in a band. */
.spread { align-items: stretch; min-height: min(72vh, 44rem); }
.spread__card { padding: clamp(2rem, 3.2vw, 3.25rem); }
.spread__card .t-1 { font-size: clamp(3rem, 5.4vw, 5.25rem); }
@media (min-width: 62em) { .spread { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); } }
@media (max-width: 61.99em) { .spread { min-height: 0; } }

/* superseded by the vector wordmark block below */
.footer .brand { --mark-h: 2.6rem; }

/* The tote strip: give the phrases room inside the fade. */
.marquee { padding-block: .85rem; }
.marquee__item { padding-inline: 2rem; }

/* The statement reads better at a shorter measure and a calmer size. */
.statement {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.24;
  letter-spacing: -.018em; max-width: 24ch;
}
.statement::before {
  content: ""; display: block; width: 3.5rem; height: 2px;
  background: var(--hammer); margin-bottom: 1.5rem;
}

/* The ledger thumbnail follows the plate language. */
.ledger__thumb img { object-fit: contain; background: var(--ground-2); padding: 2px; }

/* Session covers are landscape by nature; give them a landscape plate rather
   than the catalogue's square one. */
.grid-works--2 .work-card__frame { aspect-ratio: 1.6; }

/* Widen the fade on the tote strip so no phrase is cut mid-word. */
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* The scale guide is drawn at one pixel per centimetre, so the work and the
   figure are measured against the same rule and the comparison is honest. */
.scale__stage { height: 212px; align-items: flex-end; }
.scale__figure { height: 170px; }

/* ── Corrections after the detector pass ──────────────────────────────────── */

/* The footer ground is always the dark ring, so it takes the ring's brass —
   the daylight brass is too dark against it to clear AA. */
.footer {
  --brass: #C9A465;
  --brass-2: #E0C48C;
  --ink-3: rgba(242,234,219,.62);
}

/* Long strings of capitals are hard to read. The tote strip and the delivery
   notice keep their tracking and lose the shouting. */
.announce, .marquee__item { text-transform: none; letter-spacing: .1em; }
.announce { font-size: .8125rem; }
.marquee__item { font-size: .8125rem; font-weight: 500; }

/* A catalogue leaf is a piece of paper on a table: commit to the cut edge and
   a short contact shadow, never a hairline plus a wide diffuse glow. */
.leaf { box-shadow: 0 2px 3px -1px rgba(23,18,15,.14), 0 8px 12px -10px rgba(23,18,15,.30); }
.leaf--pinned { box-shadow: 0 3px 4px -1px rgba(23,18,15,.18), 0 14px 18px -12px rgba(23,18,15,.38); }
[data-theme="dark"] .leaf { box-shadow: 0 2px 3px -1px rgba(0,0,0,.6), 0 8px 12px -10px rgba(0,0,0,.8); }
[data-theme="dark"] .leaf--pinned { box-shadow: 0 3px 4px -1px rgba(0,0,0,.7), 0 14px 18px -12px rgba(0,0,0,.9); }

/* The plate has no edge of its own, so it keeps the elevation. */
.work-card:hover .work-card__frame img { box-shadow: var(--shadow-2); }

/* Display quotes still need room between lines. */
.statement { line-height: 1.3; }

/* The heading owns the space above it, and the count now sits to its right. */
.section-head__title { margin-right: auto; }
.section-head__no { order: 2; margin-left: auto; }
.section-head__link { order: 3; }

/* Once the stage has taken over, the fallback photograph is properly hidden
   rather than left on the page at zero opacity. */
[data-ring-host].is-live .work__stage img,
.ring.is-live .ring__fallback { visibility: hidden; transition: opacity var(--slow), visibility 0s linear .68s; }

/* ── Corrections after the second detector pass ───────────────────────────── */

/* Tracking that reads as a label, not as stretched body copy. */
.announce, .marquee__item { letter-spacing: .05em; }

/* Bordered surfaces commit to the edge: a short, offset contact shadow only. */
.leaf        { box-shadow: 0 1px 2px rgba(23,18,15,.10), 0 4px 6px -5px rgba(23,18,15,.28); }
.leaf--pinned{ box-shadow: 0 2px 3px rgba(23,18,15,.14), 0 7px 8px -7px rgba(23,18,15,.36); }
[data-theme="dark"] .leaf        { box-shadow: 0 1px 2px rgba(0,0,0,.6), 0 4px 6px -5px rgba(0,0,0,.85); }
[data-theme="dark"] .leaf--pinned{ box-shadow: 0 2px 3px rgba(0,0,0,.7), 0 7px 8px -7px rgba(0,0,0,.9); }
.scale__work { box-shadow: 0 2px 3px -1px rgba(23,18,15,.3); }
[data-theme="dark"] .scale__work { box-shadow: 0 2px 3px -1px rgba(0,0,0,.7); }

/* A printed page never runs the entrance. */
@media print { .js [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; } }

/* On a phone the plates go two to a row: a page of a catalogue rather than a
   column a mile long. The card body stays legible at that width. */
@media (max-width: 40em) {
  .grid-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .85rem; }
  .grid-works--2 { grid-template-columns: minmax(0, 1fr); }
  .work-card__title { font-size: .9375rem; }
  .work-card__price { font-size: .8125rem; }
  .work-card__meta { font-size: .6875rem; }
  .work-card__body { gap: .4rem; }
}

/* The lot page: stage and buy panel side by side, everything discursive
   underneath and full width. On a phone that ordering puts the lot number,
   the price and the button above the essay, which is the whole argument. */
.work__below { grid-column: 1 / -1; }
.work__below .feature-pair { margin-top: 0; }

/* ── After the finish review ──────────────────────────────────────────────── */

/* The leaf is paper on a table: a warm cut edge, and in the dark theme a brass
   hairline, because at that end of the scale value alone cannot separate it. */
.leaf { border-color: var(--rule-2); }
[data-theme="dark"] .leaf { border-color: rgba(201,164,101,.24); }

/* The pin is a tack through the sheet, not a speck: a brass head with the
   shadow it throws down the leaf. */
.spread__card::after {
  width: 11px; height: 11px; top: 1rem; right: 1rem;
  background: radial-gradient(circle at 35% 30%, var(--brass-2), var(--brass) 55%, #3A2C10 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 1px 3px 5px -1px rgba(23,18,15,.55);
}
[data-theme="dark"] .spread__card::after {
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 1px 3px 6px -1px rgba(0,0,0,.9);
}

/* The wordmark now ships as traced vector artwork (assets/img/wordmark.svg,
   viewBox 1074x485, one path). Masking it with currentColor means it takes the
   page's own ink in either theme — no blend mode, no inversion, no raster. */
.brand {
  display: block; flex: 0 0 auto;
  position: static; overflow: visible;
  width: calc(var(--mark-h) * 2.2144);
  height: var(--mark-h);
  --mark-h: 1.85rem;
}
.brand__mark {
  display: block; position: static;
  width: 100%; height: 100%;
  left: auto; top: auto;
  background: currentColor;
  filter: none; mix-blend-mode: normal;
  -webkit-mask: url("../img/wordmark.svg") center / contain no-repeat;
          mask: url("../img/wordmark.svg") center / contain no-repeat;
  transition: opacity var(--fast);
}
.brand:hover .brand__mark { opacity: .72; }
.footer .brand { --mark-h: 2.6rem; color: var(--sand); }
.abar  .brand { --mark-h: 1.5rem; color: var(--ring-ink); }
.login-card .brand { --mark-h: 2.2rem; margin-inline: auto; color: var(--ink); }

/* ── The plate under the lamp ──────────────────────────────────────────────
   Every plate in the catalogue answers the pointer the way the ring stage
   does: the mat tilts a couple of degrees, the sheet lifts off it, and a
   specular travels across the paint. Same conceit as the WebGL stage, at a
   cost a phone can pay. Only fires for a real pointer, and never under
   reduced motion. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .work-card__frame {
    perspective: 900px;
    transform-style: preserve-3d;
    transition: transform var(--med), background var(--med), border-color var(--med);
  }
  .work-card:hover .work-card__frame {
    transform: rotateX(calc((0.5 - var(--my, .5)) * 5deg))
               rotateY(calc((var(--mx, .5) - 0.5) * 7deg));
  }
  .work-card__frame img {
    transform: translateZ(0);
    transition: transform .5s var(--ease-out), box-shadow var(--med), filter var(--med);
  }
  .work-card:hover .work-card__frame img {
    transform: translateZ(26px) scale(1.01);
  }
  /* The specular: a soft highlight sitting where the lamp would catch it. */
  .work-card__frame::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(28% 34% at calc(var(--mx, .5) * 100%) calc(var(--my, .5) * 100%),
                                rgba(255,244,222,.42), rgba(255,244,222,0) 70%);
    opacity: 0; transition: opacity var(--med);
    mix-blend-mode: soft-light;
  }
  .work-card:hover .work-card__frame::after { opacity: 1; }
}

/* On a phone the stage bar has room for the two controls or for the caption,
   not both: three ragged two-line blocks in one strip is worse than dropping
   the measurement, which the spec table below carries anyway. */
@media (max-width: 34em) {
  .stage-note { display: none; }
  .stage-btn { letter-spacing: .08em; padding-inline: .6rem; }
}

/* Brass fills carry light ink in daylight and dark ink at night. */
[data-theme="dark"] .tag--reserved { color: #12100E; }
.footer .btn--brass { --btn-fg: #12100E; }
