:root {
  --bg: #0d0f1c;
  --bg-2: #141731;
  --bg-deep: #06070e;
  --text: #ece6d8;
  --muted: #a9a6ba;
  --gold: #d4ae5c;
  --gold-dim: rgba(212, 174, 92, .35);
  --line: rgba(236, 230, 216, .15);
  --nav-bg: rgba(13, 15, 28, .85);
  --on-gold: #0d0f1c;
  --grain: .06;
  --shadow: rgba(0, 0, 0, .5);
  --paper: #f6f0e2;
  --ink: #1f2440;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --scale: 1;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #faf6ee;
    --bg-2: #f1ead9;
    --bg-deep: #ebe2cc;
    --text: #1f2440;
    --muted: #4f5470;
    --gold: #8a6420;
    --gold-dim: rgba(138, 100, 32, .4);
    --line: rgba(31, 36, 64, .18);
    --nav-bg: rgba(250, 246, 238, .9);
    --on-gold: #faf6ee;
    --grain: .035;
    --shadow: rgba(60, 45, 20, .18);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #faf6ee;
  --bg-2: #f1ead9;
  --bg-deep: #ebe2cc;
  --text: #1f2440;
  --muted: #4f5470;
  --gold: #8a6420;
  --gold-dim: rgba(138, 100, 32, .4);
  --line: rgba(31, 36, 64, .18);
  --nav-bg: rgba(250, 246, 238, .9);
  --on-gold: #faf6ee;
  --grain: .035;
  --shadow: rgba(60, 45, 20, .18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { font-size: calc(100% * var(--scale)); scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 1.0625rem/1.7 var(--sans); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.5vw + .6rem, 3.6rem); }
p { text-wrap: pretty; }
em { font-style: italic; color: var(--gold); }
section { padding: clamp(3.5rem, 9vw, 7.5rem) var(--gutter); }
:root { --gutter: clamp(16px, 5vw, 72px); --nav-h: 64px; }
.eyebrow { font: 600 .72rem var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.sec-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.link { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; cursor: pointer; }

/* film grain for a gallery-at-night feel */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: var(--grain); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--nav-h); display: flex; align-items: center; gap: 1rem;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top); transition: background .4s, box-shadow .4s; }
.nav.solid, .nav.open { background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; gap: .65rem; align-items: center; text-decoration: none; font: 500 1.2rem var(--serif); letter-spacing: .02em;
  white-space: nowrap; min-width: 0; margin-right: auto; }
.brand-logo { height: 44px; width: auto; flex: none; }
.brand-by { font: italic 400 1.05rem var(--serif); color: var(--muted); letter-spacing: .01em; }
@media (min-width: 861px) and (max-width: 1099px) { .brand-by { display: none; } }
.menu { display: flex; gap: clamp(.9rem, 2.2vw, 2rem); }
.menu a { text-decoration: none; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  transition: color .2s; padding: .5rem 0; }
.menu a:hover, .menu a.active { color: var(--gold); }
.nav-tools { display: flex; align-items: center; gap: .5rem; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none;
  cursor: pointer; position: relative; flex: none; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 16px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 26px; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .8rem 1.7rem;
  border: 1px solid var(--gold-dim); border-radius: 999px; text-decoration: none; font: 600 .76rem var(--sans); letter-spacing: .18em;
  text-transform: uppercase; transition: .3s var(--ease); background: none; color: var(--text); cursor: pointer; }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn-solid { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn-solid:hover { background: transparent; color: var(--gold); }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-top: calc(var(--nav-h) + 3rem); position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 75% 45%, rgba(212, 174, 92, .08), transparent 70%); }
.hero h1 { font-size: clamp(2.5rem, 6vw + .4rem, 5.6rem); margin-bottom: 1.5rem; }
.hero h1 > span { display: block; }
.lede { color: var(--muted); max-width: 36ch; margin: 0 0 2rem; font-size: 1.08rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* line-by-line text reveal (padding keeps descenders from being clipped) */
.reveal-line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.reveal-line > span { display: inline-block; transform: translateY(115%); animation: rise 1.2s var(--ease) forwards; }
.hero-text > .eyebrow > span { animation-delay: .15s; }
.hero h1 > :nth-child(1) > span { animation-delay: .3s; }
.hero h1 > :nth-child(2) > span { animation-delay: .45s; }
.hero h1 > :nth-child(3) > span { animation-delay: .6s; }
.hero-text > .lede > span { animation-delay: .85s; }
.fadein { opacity: 0; animation: fadein 1s 1.1s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fadein { to { opacity: 1; } }

/* hero collage: each piece unveils in turn */
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 14px; height: min(72vh, 640px); }
.hero-art figure { margin: 0; overflow: hidden; border-radius: 4px; clip-path: inset(100% 0 0 0); background: var(--bg-2);
  animation: unveil 1.5s var(--ease) forwards; box-shadow: 0 30px 60px var(--shadow); }
.hero-art figure:first-child { grid-row: span 2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); animation: settle 2.2s var(--ease) forwards; }
.hero-art figure:nth-child(1), .hero-art figure:nth-child(1) img { animation-delay: .5s; }
.hero-art figure:nth-child(2), .hero-art figure:nth-child(2) img { animation-delay: .8s; }
.hero-art figure:nth-child(3), .hero-art figure:nth-child(3) img { animation-delay: 1.05s; }
.hero-art figure:nth-child(4), .hero-art figure:nth-child(4) img { animation-delay: 1.3s; }
.hero-art figure:nth-child(5), .hero-art figure:nth-child(5) img { animation-delay: 1.55s; }
@keyframes unveil { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 900px; margin: 0 auto;
  padding-top: 0; padding-bottom: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.stats div { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.stats strong { display: block; font: 400 clamp(2rem, 5vw, 3rem)/1 var(--serif); color: var(--gold); }
.stats span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ---------- spotlight: the painting waits in the dark ---------- */
.spotlight { background: #06070e; color: #ece6d8; text-align: center;
  --text: #ece6d8; --muted: #a9a6ba; --gold: #d4ae5c; --gold-dim: rgba(212, 174, 92, .35); --on-gold: #0d0f1c; }
.spot-head h2 { max-width: 18ch; margin: 0 auto; }
.hint { color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.25rem; margin: 1rem 0 2.2rem; }
.spot-stage { position: relative; width: min(100%, 760px); max-width: 100%; margin: 0 auto; cursor: crosshair; touch-action: pan-y;
  --x: 50%; --y: 50%; --r: 110px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(212, 174, 92, .12), 0 40px 90px rgba(0, 0, 0, .6); }
.spot-stage:focus-visible { outline-offset: 6px; }
.spot-stage img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.spot-dim { filter: brightness(.09) blur(3px) grayscale(.6); }
.spot-lit { position: absolute; inset: 0; height: 100%; object-fit: cover;
  -webkit-mask: radial-gradient(circle at var(--x) var(--y), #000 0, #000 calc(var(--r) * .55), transparent var(--r));
          mask: radial-gradient(circle at var(--x) var(--y), #000 0, #000 calc(var(--r) * .55), transparent var(--r)); }
.spot-stage.revealed { cursor: default; }
.spot-stage.revealed .spot-lit { -webkit-mask: none; mask: none; }
.spot-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.spot-title { font: italic 1.7rem var(--serif); color: var(--gold); margin: 1.2rem 0 0; min-height: 2.4rem; opacity: 0; transition: opacity 1s .2s; }
.spot-title.show { opacity: 1; }

/* ---------- gallery ---------- */
.gallery { background: var(--bg); }
.toolbar { position: sticky; top: var(--nav-h); z-index: 20; display: flex; flex-direction: column; align-items: center; gap: .9rem;
  margin: 0 calc(-1 * var(--gutter)) 1.2rem; padding: .9rem var(--gutter); background: var(--bg); }
.toolbar.stuck { background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; max-width: 100%; }
.filters button { flex: none; font: 400 .82rem var(--sans); letter-spacing: .06em; min-height: 40px; padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; transition: .25s; white-space: nowrap; }
.filters button:hover { color: var(--text); border-color: var(--gold-dim); }
.filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }
.filters small { opacity: .65; margin-left: .35rem; }
.search { position: relative; width: min(100%, 420px); }
.search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%);
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; min-height: 44px; padding: .6rem 1rem .6rem 2.6rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: 400 1rem var(--sans); }
.search input::placeholder { color: var(--muted); opacity: .8; }
.search input:focus { outline: none; border-color: var(--gold); }
.grid-status { text-align: center; color: var(--muted); font-size: .85rem; margin: 0 0 1.4rem; }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }
.grid { columns: 4; column-gap: 18px; }
.card { break-inside: avoid; margin: 0 0 18px; cursor: zoom-in; position: relative; border-radius: 4px; outline-offset: 4px; }
.frame { position: relative; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.card img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none;
  filter: blur(16px) grayscale(1) brightness(.5); transform: scale(1.12);
  transition: filter 1.5s var(--ease), transform 1.7s var(--ease); }
.frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--bg-2); transform-origin: top;
  transition: transform 1s var(--ease); transition-delay: inherit; }
.card.in .frame::before { transform: scaleY(0); }
.card.in img { filter: none; transform: none; }
.card figcaption { font: italic 500 1.12rem/1.3 var(--serif); }
@media (hover: hover) {
  .card.in:hover img { transform: scale(1.04); transition-duration: .8s; transition-delay: 0s; }
  .card figcaption { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 2.4rem 1rem .85rem; color: #fff; border-radius: 0 0 4px 4px;
    background: linear-gradient(transparent, rgba(6, 7, 14, .85)); opacity: 0; transform: translateY(8px); transition: .4s var(--ease); pointer-events: none; }
  .card:hover figcaption, .card:focus-visible figcaption { opacity: 1; transform: none; }
}
@media (hover: none) {
  .card figcaption { padding: .45rem .15rem 0; color: var(--text); font-size: 1rem; }
}
.more { display: flex; margin: 2rem auto 0; }

/* ---------- journey ---------- */
.journey { background: var(--bg-2); }
.timeline { list-style: none; max-width: 860px; margin: 0 auto; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 130px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(var(--gold), transparent); }
.timeline li { display: grid; grid-template-columns: 130px 1fr; column-gap: 2.6rem; position: relative; padding-bottom: 2.6rem; }
.timeline li::before { content: ""; position: absolute; left: 125px; top: 10px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px rgba(212, 174, 92, .15); }
.when { grid-row: span 2; text-align: right; padding: 4px 1.6rem 0 0; font: 600 .7rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.timeline h3 { font-size: 1.9rem; }
.timeline p { margin: .3rem 0 0; color: var(--muted); }

/* ---------- about: a letter on paper, sealed with her stamp ---------- */
.about { background: var(--bg); overflow: clip; }
.paper { position: relative; max-width: 760px; margin: 0 auto; background: var(--paper); color: var(--ink);
  padding: clamp(1.6rem, 6vw, 4.5rem) clamp(1.4rem, 6vw, 4.5rem) clamp(9rem, 22vw, 15rem); border-radius: 4px;
  box-shadow: 0 40px 80px var(--shadow); font-weight: 400;
  background-image: radial-gradient(rgba(120, 100, 60, .06) 1px, transparent 1px); background-size: 4px 4px; }
.paper .eyebrow { color: #8a6420; }
.paper h2 { color: #1b2a6b; margin-bottom: 1.6rem; }
blockquote { margin: 2rem 0; padding-left: 1.3rem; border-left: 2px solid #b8923a; font: italic 500 clamp(1.3rem, 3vw, 1.65rem)/1.35 var(--serif); color: #1b2a6b; }
.stamp { position: absolute; right: clamp(16px, 4vw, 48px); bottom: clamp(16px, 3vw, 36px); width: clamp(120px, 22vw, 210px); height: auto;
  opacity: 0; transform: rotate(-14deg) scale(1.8); mix-blend-mode: multiply; }
.stamp.in { animation: stamp .55s .3s cubic-bezier(.5, 0, .75, 0) forwards; }
@keyframes stamp { 70% { opacity: .9; transform: rotate(-14deg) scale(.94); } 100% { opacity: .85; transform: rotate(-14deg) scale(1); } }

/* ---------- contact ---------- */
.contact { text-align: center; background: var(--bg); padding-top: clamp(4rem, 10vw, 8rem); }
.contact > p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.contact-links .btn { text-transform: none; letter-spacing: .03em; font-size: .92rem; max-width: 100%; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
footer { text-align: center; padding: 3.5rem var(--gutter) calc(2.5rem + env(safe-area-inset-bottom)); background: var(--bg-deep); color: var(--muted);
  border-top: 1px solid var(--line); }
footer .foot-logo { display: block; width: 280px; max-width: 100%; height: auto; margin: 0 auto 1.4rem; box-sizing: border-box; padding: 10px 14px; }
footer p { margin: .4rem 0; }
footer .small { font-size: .78rem; opacity: .8; max-width: 70ch; margin: .6rem auto 0; }
.love { margin-top: 2rem !important; font: italic 1.3rem var(--serif); color: var(--text); }
.heart { color: #e0566b; display: inline-block; animation: beat 1.6s infinite; font-style: normal; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } }

/* generic fade-up on scroll */
.fade { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.fade.in { opacity: 1; transform: none; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 70; background: #06070e; color: #ece6d8; display: grid;
  grid-template-rows: auto 1fr; touch-action: pan-y pinch-zoom; }
.lightbox figure { animation: fadein .3s; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(.6rem + env(safe-area-inset-top)) var(--gutter) .4rem; }
.lb-top > div { display: flex; align-items: center; gap: .3rem; }
.lb-count { font: 600 .72rem var(--sans); letter-spacing: .2em; color: #a9a6ba; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0;
  padding: 0 clamp(8px, 7vw, 96px) calc(1rem + env(safe-area-inset-bottom)); }
.lightbox img { max-height: calc(100svh - 10rem); max-width: 100%; width: auto; height: auto; object-fit: contain; user-select: none;
  -webkit-touch-callout: none; transition: opacity .25s; }
.lightbox img.loading { opacity: .25; }
.lightbox figcaption { font: italic 500 1.5rem/1.25 var(--serif); margin-top: 1rem; text-align: center; }
.lightbox .lb-buy { display: inline-block; margin-top: .7rem; font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase;
  font-style: normal; color: var(--gold); text-decoration: none; border: 1px solid var(--gold-dim); border-radius: 999px; padding: .45rem 1rem; }
.lightbox .lb-buy:hover { border-color: var(--gold); }
.lightbox figcaption small { display: block; font: 400 .72rem var(--sans); color: #a9a6ba; letter-spacing: .16em; text-transform: uppercase; font-style: normal; margin-top: .35rem; }
.lightbox button { background: none; border: 0; color: #ece6d8; cursor: pointer; }
.lb-close { font-size: 2.2rem; line-height: 1; width: 48px; height: 48px; border-radius: 50%; }
.lb-share { display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .9rem; border: 1px solid rgba(236, 230, 216, .2) !important;
  border-radius: 999px; font: 600 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.lb-share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 72px; font-size: 3rem; opacity: .65; }
.lb-prev { left: .25rem; } .lb-next { right: .25rem; }
.lightbox button:hover { opacity: 1; color: #d4ae5c; }

.toast { position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90;
  background: #ece6d8; color: #0d0f1c; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .grid { columns: 3; } }
@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .menu-btn { display: inline-block; }
  .menu { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.5rem;
    background: var(--bg); box-shadow: 0 1px 0 var(--line), 0 30px 60px var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: .25s var(--ease); }
  .nav.open .menu { visibility: visible; opacity: 1; transform: none; }
  .nav.open { background: var(--bg); }
  .menu a { font-size: .9rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: calc(var(--nav-h) + 2.5rem); min-height: 0; gap: 2.5rem; }
  .lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { height: auto; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin: 0 auto; gap: 10px; }
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 2rem; }
  .timeline li::before { left: 0; }
  .when { grid-row: auto; text-align: left; padding: 0; }
}
@media (max-width: 640px) {
  .brand-logo { height: 40px; }
  .brand-by { display: none; }
  .grid { columns: 2; column-gap: 10px; }
  .card { margin-bottom: 14px; }
  .toolbar { gap: .7rem; padding-block: .7rem; }
  .toolbar { align-items: stretch; }
  .search { width: 100%; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; max-width: none; min-width: 0;
    margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { scroll-snap-align: start; }
  .stats span { font-size: .62rem; letter-spacing: .14em; }
  .hero-cta .btn { flex: 1 1 100%; }
  .lb-prev, .lb-next { top: auto; bottom: calc(.6rem + env(safe-area-inset-bottom)); transform: none; height: 56px; }
  .lightbox figure { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .lightbox img { max-height: calc(100svh - 14rem); }
  .lightbox figcaption { font-size: 1.25rem; }
}
@media (max-width: 480px) {
  .a11y-btn { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .a11y-btn > span { display: none; }
  .a11y-btn svg { width: 19px; height: 19px; }
  .hero-text > .eyebrow { letter-spacing: .2em; font-size: .66rem; }
}

/* the logo is drawn on cream paper: give it that paper so it reads on the dark theme too */
.brand-logo, .foot-logo { background: var(--paper); border-radius: 10px; }
.brand-logo { padding: 3px 7px; }

/* ---------- accessibility ---------- */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: .7rem 1.2rem; background: var(--gold); color: var(--on-gold);
  text-decoration: none; font-weight: 600; border-radius: 4px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.a11y-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .8rem;
  background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--text); cursor: pointer; font: 600 .72rem var(--sans);
  letter-spacing: .12em; text-transform: uppercase; }
.a11y-btn:hover { border-color: var(--gold); color: var(--gold); }
.a11y-btn svg { width: 16px; height: 16px; }
.nav-right { display: flex; align-items: center; }
.a11y-panel { position: fixed; top: calc(var(--nav-h) + 6px); right: clamp(16px, 5vw, 72px); z-index: 60; width: min(340px, calc(100vw - 32px));
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.3rem 1.3rem;
  box-shadow: 0 24px 60px var(--shadow); font-size: .95rem; }
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 1.5rem; margin-bottom: .8rem; }
.a11y-panel h2::after { display: none; }
.a11y-panel fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
.a11y-panel legend { font: 600 .7rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .45rem; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg label { flex: 1; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: .5rem .3rem; font-size: .85rem; }
.seg input:checked + span { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: -3px; }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; cursor: pointer; }
.toggle input { width: 1.15rem; height: 1.15rem; accent-color: var(--gold); }
.a11y-reset { margin-top: .6rem; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.a11y-close { position: absolute; top: .5rem; right: .7rem; background: none; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; }

/* user-chosen options */
html.contrast { --muted: var(--text); --line: currentColor; --gold-dim: var(--gold); }
html.contrast .spot-dim { filter: brightness(.25) grayscale(.6); }
html.readable { --serif: "Manrope", system-ui, sans-serif; }
html.readable body { font-weight: 400; letter-spacing: .01em; line-height: 1.85; }
html.readable h1, html.readable h2, html.readable h3, html.readable blockquote, html.readable em { font-style: normal; letter-spacing: 0; }
html.links main a:not(.btn), html.links footer a { text-decoration: underline; }
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; transition-delay: 0s !important; }
html.calm { scroll-behavior: auto; }
html.calm .grain { display: none; }

/* footer links + policy pages */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin: 1.6rem 0 0; padding: 0; list-style: none; font-size: .85rem; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--gold); text-decoration: underline; }
.legal { max-width: 780px; margin: 0 auto; padding: 8rem clamp(16px, 5vw, 40px) 5rem; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: .4rem; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.legal nav.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.3rem; margin-bottom: 3rem; }
.legal nav.toc ol { margin: 0; padding-left: 1.2rem; columns: 2 220px; }
.legal nav.toc a { color: var(--text); }
.legal section { padding: 0 0 2.6rem; scroll-margin-top: 90px; }
.legal h2 { font-size: 2rem; margin-bottom: .8rem; }
.legal h3 { font-size: 1.35rem; margin: 1.4rem 0 .4rem; }
.legal p, .legal li { color: var(--text); font-weight: 400; }
.legal a { color: var(--gold); }
.legal table { width: 100%; border-collapse: collapse; margin: .6rem 0; }
.legal td, .legal th { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
@media (max-width: 480px) { .legal th { width: 34%; padding-left: 0; } .legal td { padding-right: 0; } }
.legal th { width: 38%; color: var(--muted); font-weight: 600; }
.note { background: var(--bg-2); border-left: 3px solid var(--gold); padding: .8rem 1rem; border-radius: 4px; }


/* policies page: a short inline menu, no dropdown */
@media (max-width: 860px) {
  .menu.menu-inline { position: static; flex-direction: row; gap: 1rem; padding: 0; visibility: visible; opacity: 1; transform: none;
    background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-inline a { border: 0; font-size: .72rem; padding: .5rem 0; }
}
@media (max-width: 640px) { .menu.menu-inline { display: none; } }

/* ---------- artwork and category pages (generated by build/seo.py) ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: calc(var(--nav-h) + 2rem) var(--gutter) clamp(3rem, 8vw, 5rem); }
.page section { padding: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .2rem .5rem; list-style: none; margin: 0 0 1.6rem; padding: 0; font-size: .82rem; color: var(--muted); }
.crumbs li { overflow-wrap: anywhere; }
.crumbs li + li::before { content: "›"; margin-right: .5rem; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); text-decoration: underline; }
.art-detail { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.art-figure { margin: 0; display: flex; justify-content: center; }
.art-figure img { width: auto; height: auto; max-width: 100%; max-height: calc(100svh - var(--nav-h) - 4rem); border-radius: 4px;
  background: var(--bg-2); box-shadow: 0 30px 60px var(--shadow); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.art-info h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem); margin-bottom: .7rem; overflow-wrap: anywhere; }
.art-by { color: var(--muted); margin: 0 0 1.4rem; }
.art-by a, .art-facts a, .art-note a { color: var(--gold); }
.art-by a { text-decoration: none; }
.art-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem 1.2rem; margin: 0 0 1.8rem; }
.art-facts dt { font: 600 .7rem/2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.art-facts dd { margin: 0; overflow-wrap: anywhere; }
.art-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.art-cta .btn { text-align: center; }
.art-note { color: var(--muted); font-size: .92rem; }
.related { margin-top: clamp(3rem, 8vw, 5rem); }
.related h2 { font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem); margin-bottom: 1.4rem; }
.tiles { list-style: none; margin: 0; padding: 0; columns: 4; column-gap: 18px; }
.related .tiles { columns: 6; }
.tiles li { break-inside: avoid; margin: 0 0 18px; }
.tiles a { display: block; text-decoration: none; }
.tiles img { width: 100%; height: auto; border-radius: 4px; background: var(--bg-2); transition: opacity .3s; }
.tiles a:hover img { opacity: .85; }
.tiles span { display: block; padding: .45rem .15rem 0; font: italic 500 1.05rem/1.3 var(--serif); overflow-wrap: anywhere; }
.tiles a:hover span { color: var(--gold); }
.page-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 2.4rem 0 0; }
.cat-head { text-align: center; max-width: 760px; margin: 0 auto 2rem; }
.cat-head h1 { font-size: clamp(2.6rem, 5vw + 1rem, 4.4rem); margin-bottom: 1rem; }
.cat-head .lede { margin: 0 auto 1rem; max-width: 60ch; }
.cat-head .count { color: var(--muted); font-size: .85rem; margin: 0; }
.cat-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 2.4rem; }
.cat-nav a { display: inline-flex; align-items: center; flex: none; min-height: 40px; padding: .5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); text-decoration: none; font: 400 .82rem var(--sans); letter-spacing: .06em; white-space: nowrap; }
.cat-nav a:hover { color: var(--text); border-color: var(--gold-dim); }
.cat-nav a[aria-current="page"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }
.cat-nav small { opacity: .65; margin-left: .35rem; }
.foot-cats { margin: 0 0 1.4rem; }
.foot-cats a[aria-current="page"] { color: var(--gold); }
.noscript-list { text-align: center; }
.noscript-list .tiles { text-align: left; }
@media (max-width: 1100px) { .tiles, .related .tiles { columns: 3; } }
@media (max-width: 860px) {
  .art-detail { grid-template-columns: minmax(0, 1fr); }
  .art-figure img { max-height: 78svh; }
}
@media (max-width: 640px) {
  .tiles, .related .tiles { columns: 2; column-gap: 10px; }
  .tiles li { margin-bottom: 14px; }
  .tiles span { font-size: 1rem; }
  .art-cta .btn { flex: 1 1 100%; }
  .cat-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter); }
  .cat-nav::-webkit-scrollbar { display: none; }
}

/* ---------- Certificate of Authenticity: artwork pages, /verify, viewer caption ---------- */
.coa { display: flex; gap: clamp(1rem, 3vw, 1.8rem); align-items: flex-start; margin-top: clamp(2.5rem, 6vw, 4rem); padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--gold-dim); border-radius: 6px; background: var(--bg-2); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.page .coa { padding: clamp(1.2rem, 3vw, 2rem); }
.coa:target { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.coa-seal { flex: none; width: 72px; height: auto; }
.coa-text { min-width: 0; }
.coa h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); margin: 0 0 .6rem; }
.coa p { margin: 0 0 .7rem; overflow-wrap: anywhere; }
.coa p:last-child { margin-bottom: 0; }
.coa-no strong { font: 600 1.05rem var(--sans); letter-spacing: .08em; color: var(--gold); white-space: nowrap; }
.coa-how { color: var(--muted); font-size: .92rem; }
.coa a, .verify-help a, .verify-result a { color: var(--gold); }
.verify-box { max-width: 620px; margin: 0 auto 2rem; }
.verify-box label { display: block; font: 600 .7rem/2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.verify-row { display: flex; gap: .6rem; }
.verify-row input { flex: 1 1 auto; min-width: 0; min-height: 46px; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: 500 1.05rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.verify-row input::placeholder { color: var(--muted); opacity: .7; }
.verify-row input:focus { outline: none; border-color: var(--gold); }
.verify-row .btn { flex: none; padding-inline: 1.3rem; }
.verify-result { margin-top: 1.2rem; }
.verify-result:empty { display: none; }
.verify-card { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--gold-dim); border-radius: 6px; background: var(--bg-2); }
.verify-card img { flex: none; width: 96px; height: 96px; object-fit: cover; border-radius: 4px; }
.verify-card div { min-width: 0; overflow-wrap: anywhere; }
.verify-card p { margin: 0 0 .3rem; }
.verify-card p:last-child { margin-bottom: 0; }
.verify-card .ok { font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.verify-card .t { font: italic 500 1.35rem/1.25 var(--serif); }
.verify-card.bad { display: block; border-color: rgba(220, 90, 80, .6); }
.verify-card.bad .ok { color: #e07a70; }
.verify-help { max-width: 620px; margin: 0 auto; text-align: center; color: var(--muted); font-size: .92rem; }
.lightbox figcaption .lb-cert { letter-spacing: .12em; margin-top: .2rem; opacity: .8; }
@media (max-width: 480px) {
  .coa { flex-direction: column; }
  .coa-seal { width: 56px; }
  .verify-card img { width: 72px; height: 72px; }
}
