/* ==== Colours & fonts — change them here ==== */
:root {
  --bg: #0d0c0b;
  --bg-2: #161412;
  --line: #2a2622;
  --text: #ece6dc;
  --muted: #9a9187;
  --accent: #c8432b;
  --gold: #c9a46a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); min-height: 70vh; }
h1, h2 { font-weight: 400; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(42px, 6vw, 84px); }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
em { color: var(--gold); }

.eyebrow, .num, .label, dt, .btn, .crumbs, .subnav, .menu-btn, .tag {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow { color: var(--accent); margin: 0 0 18px; }
.lead { color: var(--muted); font-style: italic; font-size: 22px; }

/* ==== Header + dropdown menu (right) ==== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--sans); font-size: 13px; letter-spacing: 0.35em; text-transform: uppercase; }
.menu { position: relative; }
.menu-btn {
  display: flex; align-items: center; gap: 12px;
  background: none; border: 1px solid var(--line); color: var(--text);
  padding: 10px 16px; cursor: pointer; transition: border-color .2s;
}
.menu-btn:hover, .menu-btn[aria-expanded='true'] { border-color: var(--gold); }
.menu-icon { display: grid; gap: 5px; width: 18px; }
.menu-icon i { display: block; height: 1px; background: currentColor; transition: transform .25s; }
.menu-btn[aria-expanded='true'] .menu-icon i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded='true'] .menu-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(320px, calc(100vw - 32px));
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 12px 0; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: drop .2s ease-out;
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.menu-panel ol { list-style: none; margin: 0; padding: 0; }
.menu-panel li a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 24px; font-size: 26px; transition: background .15s, color .15s;
}
.menu-panel li a:hover { background: #ffffff08; color: var(--gold); }
.menu-panel li a.active { color: var(--gold); }
.menu-panel .num { color: var(--muted); font-size: 10px; }
.menu-contact {
  display: grid; gap: 4px; margin-top: 10px; padding: 14px 24px 6px;
  border-top: 1px solid var(--line); font-family: var(--sans); font-size: 13px; color: var(--muted);
}
.menu-contact a:hover { color: var(--text); }

/* ==== Buttons ==== */
.btn {
  display: inline-block; padding: 14px 22px;
  background: var(--text); color: var(--bg); border: 1px solid var(--text);
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--text); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold); }

/* ==== Home ==== */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px);
  align-items: center; padding: clamp(40px, 8vw, 110px) 0;
}
.hero h1 { margin-bottom: 20px; }
.hero-body { color: #cfc7bb; max-width: 560px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-portrait { margin: 0; position: relative; }
.hero-portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(.15); }
.hero-portrait figcaption {
  position: absolute; left: 20px; bottom: 16px; font-size: 22px;
}
.hero-portrait figcaption span { color: var(--muted); font-size: 16px; margin-left: 6px; }
.big-quote {
  margin: 40px auto 80px; max-width: 900px; text-align: center;
  font-size: clamp(26px, 3.2vw, 40px); font-style: italic; line-height: 1.3;
}
.index-links { border-top: 1px solid var(--line); margin-bottom: 80px; }
.index-links a {
  display: grid; grid-template-columns: 60px 1fr auto; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line); font-size: clamp(28px, 4vw, 48px);
  transition: color .2s, padding .2s;
}
.index-links a:hover { color: var(--gold); padding-left: 10px; }
.index-links .num { color: var(--muted); }
.index-links .arrow { font-size: 24px; color: var(--muted); }

/* ==== Page header ==== */
.page-head { padding: clamp(48px, 8vw, 100px) 0 clamp(24px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head .lead { margin: 16px 0 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.subnav a { border: 1px solid var(--line); padding: 10px 16px; }
.subnav a:hover { border-color: var(--gold); }
.subnav span { color: var(--muted); margin-left: 8px; }

/* ==== About ==== */
.about { display: grid; grid-template-columns: 1fr 300px; gap: clamp(32px, 6vw, 96px); padding: 56px 0; }
.prose { max-width: 680px; }
.prose h2 { margin: 1.4em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.facts { margin: 0; position: sticky; top: 110px; }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); margin-bottom: 4px; }
dd { margin: 0; font-size: 20px; }
.about-block { padding: 48px 0; border-top: 1px solid var(--line); }
.about-block h2 { margin-bottom: 28px; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 96px); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.timeline .year { color: var(--gold); font-family: var(--sans); font-size: 14px; }
.timeline strong { font-weight: 500; font-size: 24px; }
.timeline p { margin: 0; color: var(--muted); }
.tag { color: var(--muted); }
.tag:hover { color: var(--gold); }
.list { margin: 0; padding-left: 1.1em; }
.list li { margin-bottom: 8px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); padding: 6px 14px; font-size: 17px; }

/* ==== Grids ==== */
.group { padding: 56px 0; scroll-margin-top: 80px; }
.group + .group { border-top: 1px solid var(--line); }
.group-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: end; margin-bottom: 40px; }
.group-head p { margin: 0; color: var(--muted); font-style: italic; }
.grid {
  list-style: none; margin: 0; padding: 0;
  columns: 3 300px; column-gap: 28px;
}
.grid li { break-inside: avoid; margin-bottom: 40px; }
.card { display: block; }
.card-img { overflow: hidden; background: var(--bg-2); }
.card-img img { width: 100%; transition: transform .6s ease, opacity .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-cap { display: grid; gap: 2px; padding-top: 14px; }
.card-cap .num { color: var(--muted); font-size: 10px; }
.card-cap .t { font-size: 24px; line-height: 1.2; }
.card:hover .t { color: var(--gold); }
.card-cap .m { color: var(--muted); font-size: 16px; font-style: italic; }
.card-cap .p { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; margin-top: 4px; }
.sold { color: var(--accent); }
.not-for-sale { color: var(--muted); }
.empty { color: var(--muted); font-style: italic; font-size: 24px; padding: 60px 0; }

/* ==== Work page ==== */
.crumbs { display: flex; gap: 12px; padding: 28px 0; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.work { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: 60px; }
.work-media { display: grid; gap: 16px; }
.work-media figure { margin: 0; background: var(--bg-2); }
.work-media img { width: 100%; max-height: 85vh; object-fit: contain; }
.work-info { position: sticky; top: 100px; }
.work-info h1 { font-size: clamp(38px, 4.4vw, 64px); margin-bottom: 24px; }
.work-info .prose { color: #cfc7bb; }
.specs { margin: 28px 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { margin: 0; padding-top: 5px; }
.specs dd { font-size: 18px; }
.price-box {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px; background: var(--bg-2); border: 1px solid var(--line);
}
.price-box .label { display: block; color: var(--muted); }
.price { font-size: 30px; }
.note { color: var(--muted); font-size: 15px; font-style: italic; }
.pager {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 28px 0 60px; border-top: 1px solid var(--line); font-size: 22px;
}
.pager a:hover { color: var(--gold); }

/* ==== Footer ==== */
.site-footer {
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  max-width: var(--max); margin: 40px auto 0; padding: 48px var(--gutter);
  border-top: 1px solid var(--line); color: var(--muted);
}
.site-footer p { margin: 6px 0 0; }
.site-footer .brand { color: var(--text); }
.footer-links { display: grid; gap: 6px; text-align: right; font-family: var(--sans); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.copy { grid-column: 1 / -1; font-family: var(--sans); font-size: 11px; letter-spacing: .1em; }

/* ==== Mobile ==== */
@media (max-width: 900px) {
  .hero, .about, .work, .about-cols, .group-head { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; }
  .facts, .work-info { position: static; }
  .timeline li { grid-template-columns: 60px 1fr; }
  .timeline .tag { grid-column: 2; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
}

/* ==== Triptych card & page ==== */
.card-set { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: center; padding: 6px; }
.card-set img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.set { padding-bottom: 40px; }
.set-head { max-width: 760px; margin-bottom: 40px; }
.set-head h1 { margin-bottom: 20px; }
.set-head .prose { color: #cfc7bb; }
.set-parts { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.set-parts figure { margin: 0 0 14px; background: var(--bg-2); }
.set-parts img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.set-parts h2 { font-size: 28px; margin: 2px 0 6px; }
.set-parts .num { color: var(--muted); font-size: 10px; }
.part-text { margin: 0 0 6px; color: #cfc7bb; }
.part-meta { margin: 0; color: var(--muted); font-style: italic; font-size: 16px; }
.part-price { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.part-price .price { font-size: 24px; }
.part-price a { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.part-price a:hover { color: var(--gold); }
.set-price { max-width: 760px; }

/* ==== Long texts & reading guide (Memory Remains) ==== */
.work-info.long { position: static; }
.work:has(.work-info.long) .work-media { position: sticky; top: 100px; }
.work-text h2 { font-size: 13px; font-family: var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 1.2em 0 .6em; }
.work-text h3 { font-size: 28px; font-weight: 400; line-height: 1.2; margin: 0 0 .8em; }
.reading { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.reading > h2 { margin-bottom: 32px; }
.reading-intro { max-width: 760px; }
.reading-intro h2 { margin-bottom: 18px; }
.reading-intro p { color: #cfc7bb; }
.reading-intro strong { color: var(--gold); font-weight: 500; }
.readmap { display: block; width: 100%; max-width: 560px; margin: 36px auto; }
.map-center { fill: none; stroke: var(--text); stroke-width: 1.4; stroke-dasharray: 3 4; opacity: .6; }
.map-label { fill: var(--muted); font: 600 11px var(--sans); letter-spacing: .12em; text-anchor: middle; }
.map-path { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: .5; stroke-dasharray: 2 6; stroke-linecap: round; }
.map-node { fill: var(--bg-2); stroke: var(--accent); stroke-width: 1.4; transition: fill .2s; }
.readmap a:hover .map-node { fill: var(--accent); }
.map-num { fill: var(--text); font: 600 15px var(--sans); text-anchor: middle; }
.chips-index { list-style: none; padding: 0; margin: 0 0 64px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-index a { display: block; border: 1px solid var(--line); padding: 6px 12px; font-size: 17px; }
.chips-index a:hover { border-color: var(--gold); color: var(--gold); }
.chips-index .num { color: var(--muted); font-size: 10px; margin-right: 4px; }
.figs-eyebrow { margin-top: 24px; }
.fig { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); max-width: 980px; scroll-margin-top: 90px; }
.fig:target { background: linear-gradient(90deg, #c8432b14, transparent 60%); }
.fig-num { font-size: 52px; line-height: 1; color: var(--accent); }
.fig-pos { margin: 0 0 6px; font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.fig h3 { font-size: 32px; font-weight: 400; margin: 0 0 12px; }
.fig h3 span { font-size: 18px; color: var(--muted); margin-left: 8px; }
.fig-lead { font-style: italic; font-size: 21px; color: var(--text); }
.fig p { margin: 0 0 .8em; color: #cfc7bb; max-width: 760px; }
.fig-src { font-family: var(--sans); font-size: 13px; }
.fig-src span { color: var(--muted); letter-spacing: .18em; text-transform: uppercase; font-size: 10px; margin-right: 8px; }
.fig-src a { color: var(--gold); border-bottom: 1px solid #c9a46a55; }
.figs-note { max-width: 760px; margin-top: 32px; }

@media (max-width: 900px) {
  .set-parts { grid-template-columns: 1fr; }
  .work:has(.work-info.long) .work-media { position: static; }
  .fig { grid-template-columns: 1fr; gap: 6px; }
  .fig-num { font-size: 36px; }
}

.group-kicker { display: block; margin-bottom: 10px; }

/* ==== Summary next to image + full text below ==== */
.work-summary { color: #cfc7bb; font-size: 21px; font-style: italic; margin: 0 0 8px; }
.work-long { border-top: 1px solid var(--line); padding: 56px 0 24px; }
.work-long .prose { max-width: 760px; }

/* ==== Exhibition photos ==== */
.ex-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ex-photos figure { margin: 0; width: 180px; }
.ex-photos img { width: 180px; height: 130px; object-fit: cover; background: var(--bg-2); }
.ex-photos figcaption { font-size: 14px; color: var(--muted); margin-top: 4px; }
