/* J Contemporary — self-hosted fonts (no external request at runtime).
   Archivo and Archivo Narrow are variable files (one file covers 400–700);
   Archivo Black is single-weight by design. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/archivo-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Narrow";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/archivo-narrow-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/archivo-black.woff2") format("woff2");
}

:root {
  /* Base neutrals — paper-to-ink ramp */
  --paper: #F4F3F1;
  --paper-2: #EDECEA;
  --paper-3: #E4E3E1;
  --ink: #0B0B0B;
  --ink-2: #1A1A1A;
  --ink-3: #2E2E2E;
  --grey-1: #6E6E6E;
  --grey-2: #9A9A9A;
  --grey-3: #C4C3C1;
  --white: #FFFFFF;

  --surface-page: var(--paper);
  --surface-card: var(--white);
  --surface-sunken: var(--paper-2);
  --surface-invert: var(--ink);
  --surface-chip: rgba(11, 11, 11, .06);
  --surface-chip-invert: rgba(255, 255, 255, .14);
  --surface-scrim: rgba(11, 11, 11, .55);

  --text-display: var(--ink);
  --text-body: var(--ink-2);
  --text-muted: var(--grey-1);
  --text-meta: var(--grey-2);
  --text-invert: var(--white);
  --text-invert-muted: rgba(255, 255, 255, .62);

  --line-hairline: rgba(11, 11, 11, .12);
  --line-strong: var(--ink);
  --line-invert: rgba(255, 255, 255, .22);

  /* Greyscale status dot for Available/On hold; Sold and price feedback
     never use chromatic color — kept for form validation only. */
  --status-danger: #B3261E;
  --status-success: #1E6B3A;

  --focus-ring: var(--ink);

  --font-display: "Archivo Black", "Archivo", Helvetica, Arial, sans-serif;
  --font-core: "Archivo", Helvetica, Arial, sans-serif;
  --font-meta: "Archivo Narrow", "Archivo", Helvetica, Arial, sans-serif;

  --text-hero: 148px;
  --text-display-1: 96px;
  --text-display-2: 64px;
  --text-title: 34px;
  --text-subtitle: 22px;
  --text-body-lg: 18px;
  --text-body-md: 15px;
  --text-body-sm: 13px;
  --text-meta-size: 11px;
  --text-micro: 9px;

  --lh-hero: .82;
  --lh-display: .9;
  --lh-title: 1.05;
  --lh-body: 1.5;
  --lh-meta: 1.35;

  --ls-hero: -.045em;
  --ls-display: -.03em;
  --ls-title: -.01em;
  --ls-body: 0em;
  --ls-caps: .08em;
  --ls-caps-wide: .14em;

  --weight-black: 900;
  --weight-bold: 700;
  --weight-medium: 500;
  --weight-regular: 400;

  --space-0: 0px;
  --space-1: 4px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 22px;
  --space-7: 32px;
  --space-8: 48px;
  --space-9: 72px;
  --space-10: 104px;
  --space-11: 148px;

  --gutter: 22px;
  --page-pad-x: 34px;
  --page-max: 1180px;
  --section-gap: 104px;

  --radius-none: 0px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  --border-hairline: 1px solid var(--line-hairline);
  --border-strong: 1px solid var(--line-strong);
  --border-thick: 2px solid var(--line-strong);

  --shadow-overlay: 0 24px 64px rgba(11, 11, 11, .18);

  --blur-panel: blur(14px);

  --ease-standard: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-instant: 90ms;
  --dur-fast: 180ms;
  --dur-medium: 320ms;
  --dur-screen: 420ms;
  --dur-slow: 620ms;
  --dur-stamp: 14s;
  --hover-media-scale: 1.02;
  --press-scale: .97;

  --header-h: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body.nav-open { overflow: hidden; }
/* Large display/hero headings (long single words like "AFFORDABLE") were
   overflowing narrow iPhone viewports instead of wrapping — normal
   white-space wraps at spaces but never breaks mid-word on its own. */
h1, h2, h3, .display-hero, .jc-hero-title { overflow-wrap: break-word; }
/* Normal document flow — Sarah, 2026-08-21: the fixed-viewport shell (the
   prototype's own architecture, header/footer pinned, only the middle
   screen scrolling) permanently ate footer-height screen space on every
   page ("don't freeze the footer, takes up too much space"). The header
   stays pinned via position:sticky below; the footer now only appears
   once you actually scroll to the end of a page's content, like a normal
   site. */
body {
  font-family: var(--font-core);
  font-size: var(--text-body-md);
  line-height: var(--lh-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.hidden { display: none; }
:focus-visible { outline: 1px solid var(--focus-ring); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

img[loading="lazy"] { opacity: 0; transition: opacity var(--dur-medium) var(--ease-standard); }
img[loading="lazy"].img-loaded { opacity: 1; }

/* ---------- page motion ---------- */
/* Home enters by a pure fade (no vertical slide) — every other screen
   slides up 14px while fading in. Each navigation replaces #app's single
   child with a brand-new element, so the animation just runs on insertion;
   no reflow/re-trigger trick needed the way a reused, class-toggled
   container would require. */
@keyframes jc-home-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jc-screen-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes jc-row-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes jc-stamp-spin { to { transform: rotate(360deg); } }

/* ---------- layout ---------- */
/* Normal document flow — each route renders a single .jc-screen in the
   ordinary page flow (not absolutely positioned/internally scrolling; see
   the body comment above for why). Static HTML and the client router both
   build this exact structure via JContemporaryRender.wrapScreen(), so
   there's no hydration layout jump. */
.jc-screen { animation: jc-screen-in var(--dur-screen) var(--ease-standard) both; }
.jc-screen-home { animation: jc-home-fade var(--dur-screen) var(--ease-standard) both; }
.jc-page { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 44px var(--page-pad-x) 80px; }
.jc-page-detail { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 34px var(--page-pad-x) 80px; }

/* ---------- type ---------- */
.display-hero {
  margin: 0; font-family: var(--font-display); font-size: var(--text-hero); line-height: var(--lh-hero);
  letter-spacing: var(--ls-hero); text-transform: uppercase; color: var(--text-display);
}
.display-1 {
  margin: 0; font-family: var(--font-display); font-size: var(--text-display-1); line-height: var(--lh-display);
  letter-spacing: var(--ls-display); text-transform: uppercase; color: var(--text-display);
}
.display-2 {
  margin: 0; font-family: var(--font-display); font-size: var(--text-display-2); line-height: var(--lh-display);
  letter-spacing: var(--ls-display); text-transform: uppercase; color: var(--text-display);
}
.page-title { margin: 0; font-family: var(--font-display); font-size: 118px; line-height: .82; letter-spacing: -.045em; text-transform: uppercase; color: var(--text-display); }
.page-title sup { font-size: 24px; letter-spacing: 0; vertical-align: super; }
.title-md { margin: 0; font-family: var(--font-display); font-size: var(--text-title); line-height: var(--lh-title); letter-spacing: var(--ls-title); text-transform: uppercase; color: var(--text-display); }
.title-sm { margin: 0; font-family: var(--font-display); font-size: var(--text-subtitle); line-height: 1.15; text-transform: uppercase; color: var(--text-display); }
.meta-label {
  font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps-wide);
  text-transform: uppercase; color: var(--text-meta); margin: 0;
}
.meta-label-tight { font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-meta); margin: 0; }
.body-lg { font-size: var(--text-body-lg); line-height: var(--lh-body); color: var(--text-body); margin: 0; }
.body-md { font-size: var(--text-body-md); line-height: var(--lh-body); color: var(--text-body); margin: 0; }
.body-sm { font-size: var(--text-body-sm); line-height: var(--lh-body); color: var(--text-muted); margin: 0; }
@media (max-width: 900px) {
  .page-title { font-size: 64px; }
  .display-hero { font-size: 72px; }
  .display-1 { font-size: 56px; }
}
@media (max-width: 560px) {
  .page-title { font-size: 44px; }
  .display-hero { font-size: 52px; }
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--page-pad-x);
  border-bottom: var(--border-hairline);
  background: rgba(244, 243, 241, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 5;
}
.logo { display: block; height: 24px; transition: opacity var(--dur-fast) var(--ease-standard); }
.logo:hover { opacity: .6; }
.logo:active { transform: scale(var(--press-scale)); }
.logo img { height: 100%; width: auto; display: block; }
.pill-nav { display: flex; gap: var(--space-2); flex-wrap: nowrap; }
.pill-nav a {
  display: inline-flex; align-items: center; height: 28px; padding: 0 14px; border-radius: var(--radius-pill);
  background: var(--surface-chip); color: var(--text-body);
  font-family: var(--font-meta); font-size: var(--text-meta-size); font-weight: var(--weight-medium); letter-spacing: var(--ls-caps);
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.pill-nav a:hover { text-decoration: none; background: rgba(11, 11, 11, .1); }
.pill-nav a.active { background: var(--ink); color: var(--text-invert); }
.menu-toggle { display: none; position: relative; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--ink); }
.menu-toggle-bar { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform var(--dur-fast) var(--ease-standard), top var(--dur-fast) var(--ease-standard); }
.menu-toggle-bar:nth-child(1) { top: 16px; }
.menu-toggle-bar:nth-child(2) { top: 24px; }
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) { top: 20px; transform: rotate(-45deg); }
.mobile-nav {
  display: flex; flex-direction: column; gap: var(--space-5);
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; padding: var(--space-8) var(--page-pad-x);
  background: var(--surface-page);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px);
  transition: opacity var(--dur-medium) var(--ease-standard), transform var(--dur-medium) var(--ease-out), visibility 0s linear var(--dur-medium);
}
.mobile-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.mobile-nav a { font-family: var(--font-display); font-size: 40px; text-transform: uppercase; letter-spacing: -.02em; color: var(--ink); }
@media (max-width: 760px) {
  .pill-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* ---------- buttons ---------- */
.btn-row { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 18px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-family: var(--font-meta); font-size: var(--text-body-sm); font-weight: var(--weight-medium); letter-spacing: var(--ls-caps);
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), transform var(--dur-instant) var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(var(--press-scale)); }
.btn-lg { height: 52px; padding: 0 26px; font-size: var(--text-body-md); gap: 10px; }
.btn-sm { height: 28px; padding: 0 12px; font-size: var(--text-meta-size); gap: 6px; }
.btn-primary { background: var(--ink); color: var(--text-invert); }
.btn-primary:hover { background: var(--ink-3); }
.btn-secondary { background: var(--surface-chip); color: var(--text-body); }
.btn-secondary:hover { background: rgba(11, 11, 11, .1); }
.btn-outline { background: transparent; color: var(--text-body); border: var(--border-strong); }
.btn-outline:hover { background: var(--surface-chip); }
.btn-invert { background: var(--white); color: var(--ink); }
.btn-invert:hover { background: var(--paper-3); }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 0; height: auto; border-radius: 0; }
.btn-ghost span { padding-bottom: 1px; border-bottom: 1px solid currentColor; }
.btn-ghost:hover { color: var(--text-body); text-decoration: none; }
.btn-arrow { display: inline-block; flex: none; }

/* ---------- filter bar / tabs ---------- */
.filter-bar { display: flex; gap: var(--space-6); align-items: baseline; flex-wrap: wrap; }
.filter-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--text-meta); transition: color var(--dur-fast) var(--ease-standard);
}
.filter-btn.active { color: var(--text-display); }
.filter-btn.active::before { content: "["; }
.filter-btn.active::after { content: "]"; }

/* ---------- rows (exhibitions / fairs) ---------- */
.jc-row-list { display: flex; flex-direction: column; }
.jc-row {
  display: grid; grid-template-columns: 220px 1fr 200px; gap: var(--space-6); align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line-hairline);
  cursor: pointer; animation: jc-row-in 380ms var(--ease-standard) both; transition: opacity var(--dur-fast) var(--ease-standard);
}
.jc-row:hover { opacity: .72; text-decoration: none; }
.jc-row-media { height: 124px; overflow: hidden; background: var(--surface-sunken); }
.jc-row-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jc-row-meta { font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps-wide); text-transform: uppercase; color: var(--text-meta); text-align: right; }
.jc-row-past { grid-template-columns: 1fr 200px; align-items: baseline; padding: 22px 0; }
.jc-row-past .jc-row-past-title { display: flex; align-items: baseline; gap: 18px; }
.jc-row-past-title-text { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; color: var(--text-display); }
.jc-fair-row { grid-template-columns: 180px minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); padding: 24px 0; }
.jc-fair-row .jc-row-media { height: 110px; }
.jc-fair-row-title { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; color: var(--text-display); }
@media (max-width: 760px) {
  .jc-row, .jc-fair-row { grid-template-columns: 1fr !important; gap: var(--space-3); text-align: left; }
  .jc-row-media, .jc-fair-row .jc-row-media { height: 220px; }
  .jc-row-meta { text-align: left; }
}

/* ---------- grids (artworks / artists) ---------- */
.jc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px var(--gutter); }
.jc-card { min-width: 0; cursor: pointer; animation: jc-row-in 400ms var(--ease-standard) both; }
.jc-card-media { overflow: hidden; background: var(--surface-sunken); }
.jc-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-standard); }
.jc-card:hover .jc-card-media img { transform: scale(var(--hover-media-scale)); }
.jc-card-artwork .jc-card-media { height: 280px; }
/* Artwork photos are never cropped — the whole piece shows, letterboxed
   within the same grid cell, rather than object-fit:cover cutting off
   edges. Artist portraits (below) keep cover — a face crop is fine. */
.jc-card-artwork .jc-card-media img { object-fit: contain; }
.jc-card-artist .jc-card-media { height: 300px; }
.jc-card-title { margin-top: 14px; font-size: var(--text-body-md); font-weight: var(--weight-medium); color: var(--ink); }
.jc-card-title em { font-style: italic; }
.jc-card-meta { margin-top: 6px; font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-meta); }
.jc-card-artist-name { margin-top: 14px; font-family: var(--font-display); font-size: var(--text-subtitle); text-transform: uppercase; }
.jc-status { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-muted); }
.jc-status-dot { width: 7px; height: 7px; border-radius: var(--radius-circle); border: 1px solid var(--ink); flex: none; }
.jc-status.is-sold .jc-status-dot { background: var(--ink); border-color: var(--ink); }
.jc-status.is-hold .jc-status-dot { background: var(--grey-3); border-color: var(--grey-3); }
.jc-status.is-sold { color: var(--ink); }
@media (max-width: 900px) { .jc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .jc-grid { grid-template-columns: 1fr; } }

/* ---------- home hero ---------- */
.jc-hero { position: relative; height: calc(100vh - var(--header-h)); overflow: hidden; }
.jc-hero-media { position: absolute; inset: 0; overflow: hidden; }
.jc-hero-media-inner { position: absolute; inset: 0; transition: transform var(--dur-slow) var(--ease-standard); }
.jc-hero:hover .jc-hero-media-inner { transform: scale(var(--hover-media-scale)); }
.jc-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jc-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 11, 11, .82), rgba(11, 11, 11, .15) 62%); pointer-events: none; }
.jc-hero-content { position: absolute; left: var(--page-pad-x); right: var(--page-pad-x); bottom: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.jc-hero-eyebrow { font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps-wide); text-transform: uppercase; color: var(--text-invert-muted); }
.jc-hero-title { margin: 10px 0 0; font-family: var(--font-display); font-size: var(--text-display-1); line-height: .9; letter-spacing: var(--ls-display); color: var(--text-invert); text-transform: uppercase; }
.jc-hero-dek { margin-top: 10px; font-size: var(--text-body-lg); line-height: var(--lh-body); color: var(--text-invert-muted); }
.jc-hero-empty { display: flex; align-items: center; justify-content: center; height: 100%; text-align: center; padding: var(--space-8); }
@media (max-width: 760px) {
  .jc-hero-content { flex-direction: column; align-items: flex-start; gap: var(--space-5); }
  .jc-hero-title { font-size: 56px; }
}
@media (max-width: 480px) {
  .jc-hero-title { font-size: 40px; }
}

/* ---------- detail pages ---------- */
.jc-back-link { display: inline-block; font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps-wide); text-transform: uppercase; color: var(--text-muted); cursor: pointer; transition: color var(--dur-fast) var(--ease-standard); }
.jc-back-link:hover { color: var(--ink); text-decoration: none; }
.jc-detail-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; margin-top: 36px; padding-top: 26px; border-top: var(--border-hairline); }
.jc-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px var(--gutter); align-content: start; font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps); text-transform: uppercase; }
.jc-spec-grid dt { color: var(--text-meta); margin: 0; }
.jc-spec-grid dd { color: var(--ink); margin: 0; }
.jc-spec-grid dd a { color: var(--ink); }
.jc-detail-media { margin-top: 44px; height: 420px; overflow: hidden; background: var(--surface-sunken); }
.jc-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-standard); }
.jc-detail-media:hover img { transform: scale(var(--hover-media-scale)); }
.jc-checklist-label { margin-top: 56px; }
.jc-checklist { margin-top: 14px; display: flex; flex-direction: column; }
.jc-checklist-row {
  display: grid; grid-template-columns: 96px 1fr 1fr 130px; gap: var(--space-6); align-items: center;
  padding: 16px 0; border-bottom: var(--border-hairline); cursor: pointer; transition: opacity var(--dur-fast) var(--ease-standard);
}
.jc-checklist-row:hover { opacity: .72; text-decoration: none; }
.jc-checklist-row .jc-status { margin-top: 0; justify-content: flex-end; }
.jc-checklist-media { height: 64px; overflow: hidden; background: var(--surface-sunken); }
.jc-checklist-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.jc-checklist-title { font-size: var(--text-body-md); font-weight: var(--weight-medium); color: var(--ink); }
.jc-checklist-meta { font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-meta); margin-top: 6px; }
.jc-checklist-price { font-size: var(--text-body-sm); color: var(--text-muted); }
@media (max-width: 900px) {
  .jc-detail-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .jc-checklist-row { grid-template-columns: 64px 1fr; }
  .jc-checklist-price, .jc-status { display: none; }
}

/* ---------- installation view gallery + lightbox ---------- */
.jc-install-strip { display: flex; overflow-x: auto; gap: var(--space-3); margin-top: 14px; padding-bottom: var(--space-3); }
.jc-install-thumb { position: relative; flex: 0 0 auto; width: 260px; height: 190px; background: var(--surface-sunken); cursor: pointer; overflow: hidden; border: 0; padding: 0; }
.jc-install-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-standard), opacity var(--dur-fast) var(--ease-standard); }
.jc-install-thumb:hover img { transform: scale(var(--hover-media-scale)); }
.jc-install-num { position: absolute; top: 10px; left: 10px; font-family: var(--font-meta); font-size: var(--text-micro); letter-spacing: var(--ls-caps); color: var(--white); background: rgba(11, 11, 11, .55); padding: 2px 6px; z-index: 1; }

.jc-lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; padding: var(--space-6);
  background: rgba(11, 11, 11, .94);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--dur-medium) var(--ease-standard);
}
.jc-lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
.jc-lightbox-top { display: flex; align-items: center; justify-content: space-between; flex: none; }
.jc-lightbox-index { font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps); color: var(--grey-3); }
.jc-lightbox-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: var(--space-5); position: relative; }
.jc-lightbox img { max-width: 82%; max-height: 80%; object-fit: contain; transition: opacity var(--dur-fast) var(--ease-standard); }
.jc-lightbox img.is-stepping { opacity: 0; transition-duration: var(--dur-instant); }
.jc-lightbox-close, .jc-lightbox-prev, .jc-lightbox-next {
  width: 40px; height: 40px; border-radius: var(--radius-circle); border: 1px solid var(--line-invert); background: transparent; color: var(--white);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; font-size: 18px;
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.jc-lightbox-close:hover, .jc-lightbox-prev:hover, .jc-lightbox-next:hover { border-color: var(--white); }
.jc-lightbox-caption { flex: none; margin: var(--space-5) 0 0; text-align: center; font-family: var(--font-meta); font-size: var(--text-body-sm); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--grey-3); }

/* ---------- artwork detail (own page, beyond the mockup's flat state machine) ---------- */
.jc-artwork-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; margin-top: 36px; }
.jc-artwork-media { background: var(--surface-sunken); min-height: 360px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.jc-artwork-media img { max-width: 100%; max-height: 78vh; width: auto; height: auto; object-fit: contain; }
@media (max-width: 900px) { .jc-artwork-split { grid-template-columns: 1fr; gap: var(--space-7); } }

/* ---------- artist detail ---------- */
.jc-artist-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; margin-top: 36px; }
.jc-artist-media { height: 480px; overflow: hidden; background: var(--surface-sunken); }
.jc-artist-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jc-artist-media--mono img { filter: grayscale(1); }
@media (max-width: 900px) { .jc-artist-split { grid-template-columns: 1fr; gap: var(--space-6); } .jc-artist-media { height: 340px; } }

/* ---------- stamp ---------- */
.jc-stamp { position: relative; display: inline-block; width: 132px; height: 132px; color: var(--ink); cursor: pointer; text-decoration: none; }
.jc-stamp-ring { position: absolute; inset: 0; animation: jc-stamp-spin var(--dur-stamp) linear infinite; }
.jc-stamp-ring span { position: absolute; left: 50%; top: 50%; font-family: var(--font-meta); font-size: 11px; letter-spacing: var(--ls-caps); font-weight: var(--weight-medium); transform-origin: 0 0; }
.jc-stamp-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 63px; height: 63px; border-radius: var(--radius-circle); background: var(--ink); color: var(--text-invert);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- forms ---------- */
.jc-field { display: block; }
.jc-field-label { font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-meta); }
.jc-input, .jc-textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-hairline);
  padding: 10px 0; font-family: var(--font-core); font-size: var(--text-body-md); color: var(--text-body);
  outline: none; resize: vertical; transition: border-color var(--dur-fast) var(--ease-standard);
}
.jc-input:focus, .jc-textarea:focus { border-bottom-color: var(--line-strong); }
.jc-input::placeholder, .jc-textarea::placeholder { color: var(--text-meta); }
.jc-field-hint { display: block; margin-top: 6px; font-family: var(--font-core); font-size: var(--text-body-sm); color: var(--text-muted); }
.jc-field-hint.is-error { color: var(--status-danger); }
.jc-status-msg { font-size: var(--text-body-sm); color: var(--text-muted); margin-top: var(--space-4); opacity: 0; transition: opacity var(--dur-fast) var(--ease-standard); }
.jc-status-msg:not(:empty) { opacity: 1; }
.jc-status-msg.is-error { color: var(--status-danger); }
.jc-status-msg.is-ok { color: var(--status-success); }
.btn.is-busy { opacity: .5; cursor: wait; }
.jc-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- contact ---------- */
/* This IS the full page wrapper (own 44/34/80 padding) — wrapScreen()
   deliberately doesn't nest it inside a second .jc-page, and the hairline
   sits only under the left column's info block, not across the whole grid,
   so the stamp on the right starts level with the heading. */
.jc-contact-page { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 44px var(--page-pad-x) 80px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
.jc-contact-info-block { margin-top: 40px; padding-top: 26px; border-top: var(--border-hairline); font-size: var(--text-body-lg); line-height: 1.6; color: var(--text-body); }
.jc-contact-info-block a { color: var(--ink); }
.jc-contact-hours { margin-top: 18px; color: var(--text-muted); }
.jc-contact-lines { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps); text-transform: uppercase; }
.jc-contact-lines dt { color: var(--text-meta); margin: 0; }
.jc-contact-lines dd { margin: 6px 0 0; color: var(--ink); }
.jc-contact-form-side { display: flex; flex-direction: column; gap: 28px; }
.jc-contact-form { display: flex; flex-direction: column; gap: var(--space-6); }
@media (max-width: 900px) { .jc-contact-page { grid-template-columns: 1fr; gap: var(--space-7); } .jc-contact-lines { grid-template-columns: 1fr 1fr; } }

/* ---------- empty state ---------- */
.jc-empty { padding: var(--space-9) var(--page-pad-x); text-align: center; color: var(--text-muted); }
.jc-empty h2 { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; color: var(--ink); margin: 0 0 var(--space-3); }

/* ---------- footer ---------- */
/* A thin, always-visible utility strip (flex:none in the body shell above),
   not a conventional large document-flow footer — no centered 1180px
   container, the whole strip runs edge to edge with the same 34px inset
   the header uses. */
footer {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px var(--page-pad-x);
  border-top: var(--border-hairline);
  background: var(--paper);
}
.jc-footer-top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps); text-transform: uppercase;
}
.jc-footer-location { display: flex; align-items: center; gap: 14px; color: var(--text-meta); min-width: 0; }
.jc-footer-logo { height: 14px; width: auto; display: block; flex: none; }
.jc-footer-address { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-footer-links { display: flex; align-items: center; gap: 18px; flex: none; }
.jc-footer-links a, .jc-footer-sitemap-toggle {
  color: var(--text-body); white-space: nowrap; cursor: pointer; background: none; border: 0; padding: 0;
  font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps); text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-standard), transform var(--dur-instant) var(--ease-standard);
}
.jc-footer-sitemap-toggle:hover { color: var(--ink); }
.jc-footer-sitemap-toggle:active { transform: scale(var(--press-scale)); }

.jc-footer-sitemap {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter);
  padding: 14px 0 4px; border-top: var(--border-hairline);
  animation: jc-row-in 320ms var(--ease-standard) both;
}
/* Two classes beat .hidden's single-class specificity regardless of
   source order — the collapsed state must always win when both are present. */
.jc-footer-sitemap.hidden { display: none; }
.jc-footer-sitemap-col { min-width: 0; display: flex; flex-direction: column; gap: 8px; font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps); text-transform: uppercase; }
.jc-footer-sitemap-col a:first-child { color: var(--text-body); font-weight: var(--weight-medium); }
.jc-footer-sitemap-col a:first-child:hover { text-decoration: underline; }

.jc-footer-newsletter { display: flex; align-items: flex-end; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
.jc-footer-newsletter .jc-field { flex: 0 1 280px; min-width: 180px; }
.jc-footer-newsletter .jc-input { padding: 8px 0; }

.jc-footer-legal { font-family: var(--font-meta); font-size: var(--text-micro); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-meta); }
.jc-footer-legal a { color: var(--text-meta); text-decoration: underline; text-underline-offset: 2px; }

/* Cookie notice — bottom bar, dismissible, shown until acknowledged (see
   site.js). The site sets no tracking/analytics cookies, so this is a
   plain notice + acknowledgment rather than an accept/reject choice — a
   "reject" button with nothing behind it to actually reject would be
   misleading. */
.jc-cookie-notice {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--space-5);
  padding: var(--space-5) var(--page-pad-x);
  background: var(--surface-invert); color: var(--text-invert-muted);
  border-top: var(--border-hairline);
}
.jc-cookie-notice[hidden] { display: none; }
.jc-cookie-notice p {
  margin: 0; flex: 1 1 320px;
  font-family: var(--font-meta); font-size: var(--text-meta-size); letter-spacing: var(--ls-caps);
  color: var(--text-invert-muted); line-height: 1.6;
}
.jc-cookie-notice a { color: var(--text-invert); text-decoration: underline; text-underline-offset: 2px; }
.jc-cookie-notice .btn { flex: 0 0 auto; }
@media (max-width: 760px) {
  .jc-footer-top { flex-wrap: wrap; gap: var(--space-4); }
  .jc-footer-location { flex-wrap: wrap; }
  .jc-footer-address { white-space: normal; overflow: visible; text-overflow: clip; }
  .jc-footer-sitemap { grid-template-columns: repeat(2, 1fr); }
  .jc-footer-newsletter { justify-content: flex-start; width: 100%; }
}
