/* =========================================================
   Pablo Peña — site styles
   Palette pulled from the paintings: cobalt night, bone,
   marigold sunset, ember, crimson, river blue.
   ========================================================= */
:root {
  --ink: #17120f;          /* warm gallery charcoal */
  --ink-2: #221b16;        /* raised surface */
  --bone: #efe7da;         /* text */
  --bone-dim: #bfb4a6;     /* secondary text on ink */
  --marigold: #f2a62b;     /* actions */
  --ember: #e2552c;
  --crimson: #b8243a;
  --river: #2e64ad;
  --sky: #78c3e8;
  --wall: var(--ink);      /* tinted per painting by JS */

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* modular scale, ratio 1.333 */
  --s-1: 0.875rem;
  --s0: 1.0625rem;
  --s1: 1.375rem;
  --s2: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --s3: clamp(2.2rem, 1.4rem + 3vw, 4rem);
  --s4: clamp(3.4rem, 1.6rem + 7vw, 8.5rem);
  --s5: clamp(5.6rem, 1rem + 15vw, 17rem);

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
html.lenis-stopped, html.lb-open { overflow: hidden; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: var(--s0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--marigold); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--marigold);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; min-height: 48px; padding: 0 1.5em;
  background: var(--bg); color: var(--ink);
  border: 1.5px solid var(--bg); border-radius: 999px;
  font: 600 var(--s0)/1 var(--sans); text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bone);
  transform: translateY(101%); border-radius: inherit;
  transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { border-color: var(--bone); }
.btn--ghost { background: transparent; color: var(--bone); border-color: rgba(239,231,218,.5); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); }
.btn--small { min-height: 40px; padding: 0 1.1em; font-size: var(--s-1); }
.btn--wide { width: 100%; }

/* ---------- curtain (page load) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 300;
  background: var(--marigold);
  display: grid; place-items: center;
  pointer-events: none;
}
.curtain__mark {
  font: italic 500 clamp(5rem, 18vw, 12rem)/1 var(--display);
  color: var(--ink);
}
.no-js .curtain, .reduced .curtain { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .5s var(--ease), padding .5s var(--ease), transform .6s var(--ease);
}
.nav.is-solid { background: rgba(23,18,15,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; }
.nav.is-hidden { transform: translateY(-110%); }
.nav:focus-within { transform: none; }
.nav__mark { font: italic 500 var(--s1)/1 var(--display); text-decoration: none; letter-spacing: -.01em; }
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.nav__links a {
  text-decoration: none; font-size: var(--s-1); font-weight: 500; position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--marigold); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; background: var(--ink);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 10% 100%, rgba(23,18,15,.88) 10%, rgba(23,18,15,0) 60%),
    linear-gradient(180deg, rgba(23,18,15,.55) 0%, rgba(23,18,15,0) 22%);
}
.hero__inner {
  position: relative; width: 100%;
  padding: 120px var(--gutter) clamp(28px, 6vh, 64px);
  pointer-events: none;
}
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__kicker { font-size: var(--s0); font-weight: 500; color: var(--bone); opacity: .9; margin-bottom: 1rem; }
.hero__title {
  font: italic 500 var(--s5)/.82 var(--display);
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 96;
  text-shadow: 0 2px 40px rgba(23,18,15,.45);
}
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line__in { display: inline-block; will-change: transform; }
.line--indent { padding-left: .9em; }
.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-top: clamp(24px, 4vh, 48px); flex-wrap: wrap;
}
.hero__lede { max-width: 34ch; font-size: var(--s1); line-height: 1.45; }
.hero__show {
  background: rgba(23,18,15,.62); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(239,231,218,.18);
  border-radius: 20px; padding: 22px 24px; min-width: min(100%, 340px);
}
.hero__show-when { font: italic 500 var(--s2)/1.05 var(--display); }
.hero__show-where { color: var(--bone-dim); margin: 4px 0 18px; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__hint {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%) rotate(90deg);
  transform-origin: right center; font-size: var(--s-1); color: var(--bone-dim); opacity: .75;
}
@media (pointer: coarse), (max-width: 760px) { .hero__hint { display: none; } }

/* ---------- section rhythm ---------- */
.show, .series, .about, .shows, .contact { padding: clamp(96px, 16vh, 180px) var(--gutter); }

/* ---------- the show ---------- */
.show { position: relative; background: var(--ink); }
.show__eyebrow { color: var(--marigold); font-weight: 500; margin-bottom: .5rem; }
.show__title { /* one line on desktop, "Red / Snapper" on phones */
  font: italic 500 clamp(7rem, 14vw, 13rem)/.9 var(--display); letter-spacing: -.035em;
  font-variation-settings: "opsz" 96; padding: 0 .08em .08em 0;
}
.show__title .word { display: inline-block; white-space: nowrap; }
.show__title .char { display: inline-block; will-change: transform; }
@media (max-width: 760px) { .show__title { font-size: clamp(3.6rem, 21vw, 7rem); } }
.show__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px); margin-top: clamp(48px, 8vh, 96px); align-items: start;
}
.big-copy {
  font: 400 var(--s2)/1.28 var(--display); letter-spacing: -.01em; max-width: 30ch;
}
.big-copy .w { opacity: .18; transition: none; }
.body-copy { margin-top: 1.75rem; max-width: 56ch; color: var(--bone-dim); line-height: 1.7; }
@media (max-width: 900px) { .show__grid { grid-template-columns: 1fr; } }

.rsvp {
  margin-top: clamp(72px, 12vh, 140px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
  padding: clamp(28px, 5vw, 64px);
  background: var(--marigold); color: var(--ink);
  border-radius: clamp(20px, 3vw, 36px);
  position: relative; overflow: hidden;
}
.rsvp__title { font: italic 500 var(--s4)/.9 var(--display); letter-spacing: -.03em; margin-bottom: 1.2rem; }
.rsvp__copy p { max-width: 38ch; font-size: var(--s1); line-height: 1.45; }
.rsvp__form { display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; font-weight: 500; font-size: var(--s-1); }
.field input[type="text"], .field input[type="email"] {
  min-height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid rgba(23,18,15,.35); background: rgba(255,255,255,.35);
  font: 500 var(--s0) var(--sans); color: var(--ink);
}
.field input:not([type="checkbox"]):focus { outline: none; border-color: var(--ink); background: rgba(255,255,255,.6); }
.field--check { grid-template-columns: auto 1fr; align-items: center; gap: 10px; font-size: var(--s0); }
.field--check input { width: 20px; height: 20px; accent-color: var(--ink); }
.rsvp .btn { --bg: var(--ink); color: var(--bone); margin-top: 6px; }
.rsvp .btn:hover, .rsvp .btn:focus-visible { color: var(--ink); }
.rsvp :focus-visible { outline-color: var(--ink); }
.rsvp__status { min-height: 1.4em; font-weight: 500; }
@media (max-width: 860px) { .rsvp { grid-template-columns: 1fr; } }

/* ---------- marquee (between the show and the gallery) ---------- */
.marquee {
  overflow: hidden; background: var(--marigold); color: var(--ink);
  padding: 14px 0; border-block: 1px solid rgba(23,18,15,.25);
}
.marquee__row { display: flex; width: max-content; align-items: center; will-change: transform; }
.marquee__row span { font: italic 500 var(--s2)/1 var(--display); white-space: nowrap; padding-inline: .6em; }
.marquee__row i { font-style: normal; font-size: var(--s0); color: var(--crimson); }

/* ---------- gallery wall: a lit storefront show ---------- */
.work { position: relative; background: var(--wall); isolation: isolate; }
.work::after { /* faint plaster texture so the wall reads as a wall */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(180deg, transparent 82%, rgba(0,0,0,.35) 100%);
}
.work__intro {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
  padding: clamp(80px, 12vh, 140px) var(--gutter) 0;
}
.work__kicker { font: 500 var(--s1)/1 var(--display); color: var(--bone); opacity: .85; margin-bottom: .4rem; }
.work__title { /* gold leaf, like hand-gilded shop window lettering */
  font: italic 600 var(--s5)/.86 var(--display); letter-spacing: -.04em;
  background: linear-gradient(100deg, #d39a3a 0%, #ebb751 22%, #f6d27a 38%, #fff3c9 46%, #f2b84b 56%, #cf9638 78%, #e7b65a 100%);
  display: inline-block; padding-inline: .12em .1em; margin-left: -.12em;
  background-size: 260% 100%; background-position: 0% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}
.work__aside { max-width: 30rem; display: grid; gap: 14px; padding-bottom: 1rem; }
.work__open {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(242,166,43,.14); border: 1px solid rgba(242,166,43,.5);
  color: var(--marigold); font-weight: 600;
}
.work__pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--marigold);
  box-shadow: 0 0 0 0 rgba(242,166,43,.7); animation: pulse 1.8s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242,166,43,0); } 100% { box-shadow: 0 0 0 0 rgba(242,166,43,0); } }
.work__sub { color: var(--bone-dim); }

.work__pin { position: relative; height: 100svh; display: flex; flex-direction: column; overflow: hidden; overflow: clip; }
.work__pin::before { /* ceiling track rail */
  content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 6px; z-index: 1;
  background: linear-gradient(#2b2b30, #0e0e12); box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.work__track {
  flex: 1; display: flex; align-items: stretch; gap: clamp(150px, 16vw, 280px);
  padding: 0 var(--gutter); width: max-content; will-change: transform;
}
.panel {
  flex: none; position: relative; display: grid; grid-template-columns: auto 16.5rem;
  align-items: center; gap: 22px;
  padding: 13vh 0 10vh;
}
.panel__hang { position: relative; align-self: stretch; display: grid; place-items: center; }
.panel__lamp { /* spotlight head hanging from the rail */
  position: absolute; top: calc(26px - 13vh); left: 50%; z-index: 2;
  width: 22px; height: 34px; margin-left: -11px; border-radius: 6px 6px 10px 10px;
  background: linear-gradient(90deg, #1a1a1f, #3a3a42 45%, #15151a);
  transform: rotate(0deg);
}
.panel__lamp::after { /* bulb face */
  content: ""; position: absolute; left: 3px; right: 3px; bottom: -3px; height: 6px; border-radius: 50%;
  background: #4a4436; transition: background .3s, box-shadow .3s;
}
.panel__beam {
  position: absolute; z-index: 1; pointer-events: none;
  top: calc(26px - 13vh + 34px); bottom: -6vh; left: -22%; right: -22%;
  background: linear-gradient(180deg, rgba(255,234,190,.42) 0%, rgba(255,228,176,.16) 45%, rgba(255,228,176,.04) 80%, transparent 100%);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  filter: blur(18px);
  mix-blend-mode: screen; opacity: 0; transition: opacity .4s;
}
.panel__hang::before { /* warm pool of light washing the wall behind the piece */
  content: ""; position: absolute; z-index: -1; left: -18%; right: -18%; top: 4%; bottom: -2%;
  background: radial-gradient(50% 55% at 50% 42%, rgba(255,226,170,.16), transparent 70%);
  opacity: 0; transition: opacity 1.2s var(--ease) .25s; pointer-events: none;
}
.panel.is-lit .panel__hang::before { opacity: 1; }
.panel.is-lit .panel__lamp::after { background: #fff4d6; box-shadow: 0 0 18px 6px rgba(255,230,170,.75); }
.panel.is-lit .panel__beam { opacity: 1; animation: flicker .7s steps(1, end); }
@keyframes flicker { 0% { opacity: .2; } 15% { opacity: .9; } 25% { opacity: .1; } 40% { opacity: 1; } 55% { opacity: .55; } 70%, 100% { opacity: 1; } }

.panel__frame {
  margin: 0; position: relative; z-index: 0; cursor: zoom-in; overflow: hidden;
  padding: clamp(10px, 1.2vw, 16px); background: #f6f1e7;
  box-shadow: 0 50px 70px -30px rgba(0,0,0,.75), 0 2px 0 rgba(255,255,255,.08) inset;
  border: 0; display: block; font: inherit; color: inherit;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.panel__frame:hover { transform: translateY(-6px); box-shadow: 0 70px 90px -30px rgba(0,0,0,.8); }
.panel__frame img {
  /* width follows the painting's own proportions, so the mat always hugs the art */
  width: min(62vw, calc(min(52svh, var(--max-h, 600px)) * var(--ar, 1))); height: auto; max-width: none;
}

/* wall label, the card galleries pin beside each piece */
.label {
  position: relative; z-index: 2; align-self: end; margin-bottom: 4vh;
  background: #f4efe6; color: var(--ink); padding: 18px 20px 16px;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.6);
  font-size: var(--s-1); line-height: 1.45;
}
.label__artist { font-weight: 600; }
.label__title { font: 400 var(--s1)/1.2 var(--display); margin: 2px 0 6px; }
.label__title em { font-style: italic; }
.label__line { color: #5e5349; }
.label__status { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(23,18,15,.15); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--sold { background: #c8102e; }
.dot--reserved { background: var(--marigold); }
.dot--available { background: #2f9e6b; }
.dot--ask { border: 2px solid #b9832a; }
.label__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.label__collect {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--bone); text-decoration: none; font-weight: 600;
  transition: background .3s, color .3s;
}
.label__collect:hover, .label__collect:focus-visible { background: var(--crimson); }
.label__look {
  background: none; border: 0; padding: 0 0 2px; cursor: pointer; color: var(--ink);
  font: 600 var(--s-1) var(--sans); border-bottom: 1.5px solid currentColor;
}
.label :focus-visible { outline-color: var(--ink); }

.work__progress {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vh, 40px);
  display: flex; align-items: center; gap: 20px; font-size: var(--s-1); color: var(--bone-dim);
}
.work__count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.work__bar { flex: 1; height: 1.5px; background: rgba(239,231,218,.18); position: relative; }
.work__bar span { position: absolute; inset: 0; background: var(--marigold); transform-origin: left; transform: scaleX(.1); }

.lightbox__status { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: -0.75rem 0 1.5rem; }

/* fallback: native swipe row for touch + reduced motion */
.work--native .work__pin { height: auto; padding: 72px 0 96px; }
.work--native .work__pin::before { display: none; }
.work--native .work__track {
  width: auto; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 24px; scrollbar-width: none; gap: 28px; align-items: start;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.work--native .work__track::-webkit-scrollbar { display: none; }
.work--native .panel { scroll-snap-align: start; grid-template-columns: 1fr; width: min(82vw, 420px); padding: 0; gap: 0; }
.work--native .panel__lamp, .work--native .panel__beam { display: none; }
.work--native .panel__frame img { height: auto; width: 100%; max-width: none; max-height: 56svh; }
.work--native .label { margin: -10px 14px 0; align-self: start; }
.work--native .work__progress { bottom: 32px; }
@media (max-width: 760px) {
  .work__title { font-size: clamp(3.6rem, 18vw, 6rem); }
  .marquee__row span { font-size: var(--s1); }
}

/* ---------- series / index with hover peek ---------- */
.series { background: var(--ink); position: relative; }
.series__title { font: italic 500 var(--s4)/.9 var(--display); letter-spacing: -.03em; margin-bottom: clamp(40px, 8vh, 88px); }
.series__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); }
.series__name { font: 500 var(--s3)/1 var(--display); margin-bottom: 1rem; letter-spacing: -.02em; }
.series__col > p { color: var(--bone-dim); max-width: 44ch; margin-bottom: 2rem; }
.index li { border-top: 1px solid rgba(239,231,218,.14); }
.index li:last-child { border-bottom: 1px solid rgba(239,231,218,.14); }
.index button {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0; background: none; border: 0; color: var(--bone); cursor: pointer; text-align: left;
  font: 400 var(--s1)/1.2 var(--display);
  transition: padding .5s var(--ease), color .3s;
}
.index button span:last-child { font: 400 var(--s-1) var(--sans); color: var(--bone-dim); white-space: nowrap; }
.index button:hover, .index button:focus-visible { padding-left: 18px; color: var(--marigold); }
.peek {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: 260px; opacity: 0; transform: translate(-50%, -50%) scale(.6);
}
.peek img { width: 100%; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
@media (max-width: 860px) { .series__cols { grid-template-columns: 1fr; } }
@media (pointer: coarse) { .peek { display: none; } }

/* ---------- about ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(40px, 7vw, 120px); align-items: center; background: var(--ink-2);
}
.about__frame {
  margin: 0; padding: 14px; background: #f6f1e7; max-width: 560px;
  transform: rotate(-2deg); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
.about__frame img { width: 100%; clip-path: inset(0 0 0 0); }
.about__title { font: italic 500 var(--s3)/1 var(--display); margin-bottom: 1.6rem; color: var(--marigold); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__frame { max-width: 420px; } }

/* ---------- exhibitions ---------- */
.shows { background: var(--ink); }
.shows__title { font: italic 500 var(--s4)/.9 var(--display); letter-spacing: -.03em; margin-bottom: clamp(40px, 7vh, 72px); }
.shows__row {
  display: grid; grid-template-columns: 6rem minmax(0, 1.2fr) minmax(0, 1.4fr) 12rem;
  gap: 24px; align-items: baseline; padding: 26px 0;
  border-top: 1px solid rgba(239,231,218,.16);
}
.shows__row:last-child { border-bottom: 1px solid rgba(239,231,218,.16); }
.shows__year { font-variant-numeric: tabular-nums; color: var(--bone-dim); }
.shows__name { font: italic 500 var(--s2)/1.1 var(--display); }
.shows__place { color: var(--bone-dim); }
.shows__state { text-align: right; font-size: var(--s-1); }
.shows__row--next .shows__state { color: var(--marigold); font-weight: 600; }
@media (max-width: 860px) {
  .shows__row { grid-template-columns: 1fr; gap: 6px; }
  .shows__state { text-align: left; }
}

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; min-height: 90svh; display: grid; align-items: center; background: var(--ink); }
.contact__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.contact__inner {
  position: relative; text-align: center; margin: 0 auto; max-width: 980px;
  background: rgba(23,18,15,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: clamp(24px, 4vw, 44px); padding: clamp(36px, 6vw, 80px);
  border: 1px solid rgba(239,231,218,.14);
}
.contact__title { font: italic 500 var(--s4)/.9 var(--display); letter-spacing: -.035em; }
.contact__lede { font-size: var(--s1); color: var(--bone-dim); margin: 1.25rem auto 2.5rem; max-width: 36ch; }
.contact__links { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.contact__link {
  font: 500 var(--s2)/1.2 var(--display); text-decoration: none;
  background: linear-gradient(var(--marigold), var(--marigold)) 0 100% / 0 2px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
  overflow-wrap: anywhere;
}
.contact__link:hover { background-size: 100% 2px; color: var(--marigold); }

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px var(--gutter); font-size: var(--s-1); color: var(--bone-dim);
  border-top: 1px solid rgba(239,231,218,.1);
}

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); }
.lightbox[hidden] { display: none; }
.lightbox__bg { position: absolute; inset: 0; background: var(--lb-wall, var(--ink)); }
.lightbox__stage { position: relative; margin: 0; display: grid; place-items: center; padding: clamp(20px, 5vw, 72px); min-height: 0; }
.lightbox__img {
  max-height: 84svh; max-width: min(100%, var(--lb-max, 900px)); width: auto; height: auto;
  object-fit: contain; background: #f6f1e7; padding: 12px;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.7);
}
.lightbox__info {
  position: relative; align-self: center; padding: 32px clamp(20px, 3vw, 40px) 32px 0;
}
.lightbox__series { color: var(--marigold); font-weight: 500; font-size: var(--s-1); }
.lightbox__title { font: italic 500 var(--s3)/1 var(--display); margin: .5rem 0 1rem; letter-spacing: -.02em; }
.lightbox__desc { color: var(--bone-dim); margin-bottom: 1.75rem; }
.lightbox__nav { display: flex; gap: 20px; margin-top: 2rem; }
.lightbox__btn, .lightbox__close {
  background: none; border: 0; color: var(--bone); font: 500 var(--s-1) var(--sans); cursor: pointer;
  padding: 6px 0; border-bottom: 1.5px solid rgba(239,231,218,.35);
}
.lightbox__btn:hover, .lightbox__close:hover { border-color: var(--marigold); }
.lightbox__close { position: absolute; top: 20px; right: var(--gutter); z-index: 2; }
@media (max-width: 860px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; overflow-y: auto; overscroll-behavior: contain; }
  .lightbox__bg { position: fixed; }
  .lightbox__stage { padding: 64px 16px 8px; }
  .lightbox__img { max-height: 58svh; }
  .lightbox__info { padding: 8px 16px 32px; align-self: start; }
}

/* ---------- cursor: a small gold swirl, after his Currents paintings ---------- */
html.has-cursor:not(.popup-open), html.has-cursor:not(.popup-open) * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none;
  width: 0; height: 0; opacity: 0; transition: opacity .25s;
  color: var(--marigold);
}
.cursor.is-on { opacity: 1; }
.cursor.is-hidden, .popup-open .cursor { opacity: 0; }
.cursor__dot {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 1.5px rgba(23,18,15,.55);
}
.cursor__swirl {
  position: absolute; left: -17px; top: -17px; opacity: .85;
  filter: drop-shadow(0 0 1px rgba(23,18,15,.6));
  transition: scale .4s var(--ease), opacity .3s;
}
.cursor.is-link .cursor__swirl { opacity: 1; scale: .75; }
.cursor.is-view .cursor__swirl { scale: 1.15; opacity: 1; }
.cursor__label { /* sits beside the cursor so the painting stays clear */
  position: absolute; left: 22px; top: 14px; white-space: nowrap;
  padding: 5px 12px 6px; border-radius: 999px;
  background: rgba(23,18,15,.88); color: var(--bone);
  font: italic 500 15px/1 var(--display); letter-spacing: .01em;
  opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .35s var(--ease);
}
.cursor.is-view .cursor__label { opacity: 1; transform: none; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .big-copy .w { opacity: 1 !important; }
  .cursor { display: none; }
}

/* ---------- show: countdown, linked notes ---------- */
.hero__show-count {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--marigold); color: var(--ink); font-weight: 600; font-size: var(--s-1);
}

/* ---------- sneak peek: red snapper ---------- */
.peekfish {
  margin: clamp(72px, 12vh, 140px) 0 0;
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.peekfish__cap { display: grid; gap: 8px; align-content: center; }
.peekfish__label {
  justify-self: start; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--crimson); color: #ff8a8a; font-size: var(--s-1); font-weight: 600;
}
.peekfish__title { font: italic 500 var(--s3)/1 var(--display); letter-spacing: -.02em; }
.peekfish__meta { color: var(--bone-dim); max-width: 22ch; }
.peekfish__frame {
  margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; display: block;
  justify-self: end; width: 100%; max-width: 1222px;
  filter: drop-shadow(0 50px 60px rgba(184, 36, 58, .28));
}
.peekfish__frame img { width: 100%; border-radius: clamp(10px, 1.4vw, 20px); }
@media (max-width: 860px) {
  .peekfish { grid-template-columns: 1fr; }
}
.show { overflow-x: clip; }

/* ---------- invitation card (the show's when + where) ---------- */
.invite {
  position: relative; color: var(--ink);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,.55), transparent 60%),
    #f3ece0;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 3.6vw, 48px) clamp(24px, 3vw, 40px);
  border-radius: 6px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
  text-align: center;
}
.invite::before { /* inset gold rule, like a letterpress border */
  content: ""; position: absolute; inset: 12px; border: 1px solid rgba(185,131,42,.55);
  border-radius: 3px; pointer-events: none;
}
.invite__lead {
  font: italic 500 clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem)/1 var(--display); letter-spacing: -.02em;
  color: #9a6a1c;
}
.invite__host { font: italic 400 var(--s0)/1.5 var(--display); color: #5e5349; margin: .6rem auto 0; max-width: 28ch; }
.invite__details { margin: clamp(24px, 4vh, 36px) 0 0; display: grid; }
.invite__row { padding: 18px 0; border-top: 1px solid rgba(23,18,15,.12); display: grid; gap: 4px; }
.invite__row dt { font: italic 400 var(--s-1)/1 var(--display); color: #9a6a1c; letter-spacing: .02em; }
.invite__row dd { margin: 0; display: grid; gap: 4px; }
.invite__big { font: italic 500 clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem)/1.1 var(--display); letter-spacing: -.01em; }
.invite__small { font-size: var(--s0); color: #3b322b; }
.invite__muted { color: #7a6d60; font-size: var(--s-1); }
.invite__map {
  margin: 8px 0 0; border-radius: 4px; overflow: hidden; height: 190px;
  box-shadow: inset 0 0 0 1px rgba(23,18,15,.12);
}
.invite__map iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(1) sepia(.35) contrast(.92) brightness(1.02);
}
.invite__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 14px; margin-top: 22px; }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(23,18,15,.55); }
.btn--line::before { background: var(--ink); }
.btn--line:hover, .btn--line:focus-visible { color: var(--bone); border-color: var(--ink); }
.invite__cal { font-weight: 600; font-size: var(--s-1); color: var(--ink); text-underline-offset: 4px; }
.invite :focus-visible { outline-color: var(--ink); }

/* ---------- nav: shop + rsvp ---------- */
.nav__ctas { display: flex; gap: 8px; align-items: center; }
@media (max-width: 420px) { .hide-xs { display: none; } }
.hero__invite {
  display: inline-block; margin-top: 14px; background: none; border: 0; padding: 0 0 2px; cursor: pointer;
  color: var(--bone-dim); font: 500 var(--s-1) var(--sans); border-bottom: 1px solid rgba(239,231,218,.35);
}
.hero__invite:hover { color: var(--bone); border-color: var(--marigold); }

/* ---------- welcome invitation popup ---------- */
.popup {
  padding: 0; border: 0; background: transparent; color: var(--ink);
  width: min(960px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100svh - 32px); overflow: visible;
}
.popup::backdrop { background: rgba(10, 8, 6, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.popup[open] { animation: popfade .4s ease; }
@keyframes popfade { from { opacity: 0; } }
.popup__card {
  max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain;
  text-align: left; padding: clamp(28px, 4vw, 48px);
}
.popup__close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(23,18,15,.06); border: 0; color: var(--ink); cursor: pointer;
  transition: background .3s, transform .4s var(--ease);
}
.popup__close:hover { background: rgba(23,18,15,.14); transform: rotate(90deg); }
.popup__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); align-items: start; }
.popup .invite__details { margin-top: 18px; }
.popup .invite__row { padding: 14px 0; }
.popup .invite__host { margin-left: 0; }
.popup__count {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--ink); color: var(--marigold);
  font-weight: 600; font-size: var(--s-1);
}
.popup__media { display: grid; gap: 14px; padding-top: 6px; }
.popup__art { margin: 0; }
.popup__art img { width: 100%; border-radius: 4px; box-shadow: 0 24px 40px -22px rgba(0,0,0,.6); }
.popup__art figcaption { margin-top: 8px; font: italic 400 var(--s-1)/1.4 var(--display); color: #5e5349; }
.popup__map { margin: 0; height: 170px; }
.popup__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(23,18,15,.12);
}
.popup__shop { --bg: var(--ink); color: var(--bone); min-height: 52px; padding: 0 1.8em; font-size: var(--s1); }
.popup__shop:hover, .popup__shop:focus-visible { color: var(--ink); }
.popup__later {
  display: block; margin: 18px auto 0; background: none; border: 0; cursor: pointer;
  color: #7a6d60; font: 500 var(--s-1) var(--sans); text-decoration: underline; text-underline-offset: 4px;
}
.popup__later:hover { color: var(--ink); }
@media (max-width: 760px) {
  .popup__card { padding-bottom: 0; }
  .popup__grid { grid-template-columns: 1fr; gap: 18px; }
  .popup__media { padding-top: 0; }
  .popup__map { display: none; }
  .popup .invite__lead { padding-right: 48px; }
  .popup__actions { /* keep the main actions in reach while the card scrolls */
    position: sticky; bottom: 0; z-index: 2; justify-content: center;
    margin: 18px calc(-1 * clamp(28px, 4vw, 48px)) 0; padding: 14px clamp(28px, 4vw, 48px) 16px;
    background: #f3ece0; box-shadow: 0 -12px 24px -12px rgba(23,18,15,.25);
  }
  .popup__shop { flex: 1 1 100%; }
  .popup__later { margin: 6px auto 0; padding: 0 0 20px; }
}
.nav__ctas .btn { gap: 0; }

/* ---------- shop carousel inside the invitation ---------- */
.shopper { display: grid; gap: 12px; }
.shopper__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.shopper__title { font: italic 500 var(--s1)/1.15 var(--display); color: var(--ink); }
.shopper__count { font-size: var(--s-1); color: #7a6d60; white-space: nowrap; font-variant-numeric: tabular-nums; }
.shopper__stage {
  position: relative; height: clamp(220px, 32svh, 300px); border-radius: 6px; overflow: hidden;
  display: grid; place-items: center; touch-action: pan-y; user-select: none;
  background: radial-gradient(70% 90% at 50% 0%, #3a2e26, var(--ink) 75%);
}
.shopper__img {
  position: absolute; inset: 0; margin: auto; width: auto; height: auto;
  max-width: calc(100% - 128px); max-height: calc(100% - 36px); object-fit: contain; pointer-events: none;
  background: #f6f1e7; padding: 6px; box-shadow: 0 20px 30px -16px rgba(0,0,0,.8);
}
.shopper__arrow {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(243,236,224,.92); color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.6);
  transition: background .25s, transform .3s var(--ease);
}
.shopper__arrow:hover { background: var(--marigold); transform: scale(1.06); }
.shopper__arrow--prev { left: 10px; }
.shopper__arrow--next { right: 10px; }
.shopper__arrow:focus-visible { outline: 2px solid var(--marigold); outline-offset: 2px; }
.shopper__info { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.shopper__name { font: 400 var(--s1)/1.2 var(--display); }
.shopper__name em { font-style: italic; }
.shopper__meta { display: flex; align-items: center; gap: 8px; font-size: var(--s-1); font-weight: 600; margin-top: 4px; }
.shopper__buy {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--marigold); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--s-1);
  transition: background .3s;
}
.shopper__buy:hover { background: #ffbf52; }
.shopper__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.shopper__thumbs::-webkit-scrollbar { display: none; }
.shopper__thumbs button {
  flex: none; width: 48px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 6px;
  overflow: hidden; cursor: pointer; background: var(--ink); opacity: .6; transition: opacity .25s, border-color .25s;
}
.shopper__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.shopper__thumbs button[aria-selected="true"], .shopper__thumbs button:hover { opacity: 1; border-color: var(--marigold); }
.popup__card::before { display: none; }
.popup__card { box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 0 0 12px #f3ece0, inset 0 0 0 13px rgba(185,131,42,.55); }
@media (max-width: 760px) {
  .shopper__img { max-width: calc(100% - 28px); max-height: calc(100% - 28px); }
  .shopper__arrow { width: 38px; height: 38px; background: rgba(243,236,224,.85); }
  .shopper__arrow--prev { left: 6px; } .shopper__arrow--next { right: 6px; }
}

/* ---------- save the date panel (replaces the RSVP form) ---------- */
.save__actions { display: grid; gap: 12px; align-content: start; }
.save__date { font: italic 500 var(--s2)/1.1 var(--display); color: var(--ink); }
.save__time { font: italic 600 var(--s1)/1.2 var(--display); color: #6b4510; }
.save__place { font-size: var(--s0); color: rgba(23,18,15,.8); margin-bottom: 8px; }
.rsvp .btn--line { --bg: transparent; background: transparent; color: var(--ink); border-color: rgba(23,18,15,.55); }
.rsvp .btn--line::before { background: var(--ink); }
.rsvp .btn--line:hover, .rsvp .btn--line:focus-visible { color: var(--bone); }

.nav__ctas .btn, .nav__mark { white-space: nowrap; }
@media (max-width: 420px) {
  .nav { gap: 10px; }
  .nav__mark { font-size: 19px; }
  .nav__ctas { gap: 6px; }
  .nav__ctas .btn--small { padding: 0 .85em; font-size: 13px; }
}
