/* Sanjida Mity — paintings on glass.
   Gallery-wall neutrals so the paintings carry the color. */

:root {
  --paper: #faf7f2;
  --paper-2: #f2ece3;
  --card: #ffffff;
  --ink: #1e1b18;
  --ink-2: #5d554c;
  --ink-3: #8a8178;
  --line: #e5ddd1;
  --accent: #b5361f;        /* vermilion, from the paintings */
  --night: #14110e;
  --night-ink: #f3ede4;
  --night-ink-2: #b9b0a4;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;
  --shadow-hang: 0 1px 2px rgba(30, 20, 10, .08), 0 12px 30px -12px rgba(30, 20, 10, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px;
}
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
}

.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 500 15px/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--light { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.arrow-link::after { content: "→"; transition: transform .25s var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px;
}

.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand:hover { color: inherit; }
.brand__name { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: -0.01em; }
.brand__tag { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 6px 0; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .icon-link { display: flex; padding: 6px; margin: -6px; }
.nav .icon-link::after { display: none; }
.nav svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); margin-top: clamp(64px, 10vw, 128px); }
.site-footer .wrap {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-top: 56px; padding-bottom: 40px;
}
.site-footer h2 { font-size: 26px; margin-bottom: 8px; }
.site-footer p { margin: 0; color: var(--ink-2); font-size: 15px; }
.site-footer h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.site-footer li + li { margin-top: 6px; }
.site-footer li a { text-decoration: none; }
.site-footer .legal {
  grid-column: 1 / -1; display: flex; justify-content: center; text-align: center; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px;
  font-size: 13px; color: var(--ink-3);
}

/* ---------- Framed painting (hung on the wall) ---------- */

.art {
  display: block; text-decoration: none; color: inherit;
}
.art__frame {
  background: var(--card);
  box-shadow: var(--shadow-hang);
  overflow: hidden;
}
.art__frame img {
  width: 100%; height: auto;
  transition: transform .9s var(--ease);
}
.art:hover .art__frame img { transform: scale(1.025); }
.art__cap { margin-top: 14px; }
.art__title { font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.25; }
.art__meta { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.art:hover .art__title { color: var(--accent); }

.badge {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; vertical-align: middle;
}
.badge--available { color: #2f6b3a; }
.badge--sold, .badge--reserved { color: var(--accent); }
.badge--on-view { color: #2e4f8a; }

/* Masonry-style grid */
.grid { columns: 3 300px; column-gap: clamp(24px, 3vw, 44px); }
.grid > * { break-inside: avoid; margin-bottom: clamp(36px, 4vw, 56px); }

/* ---------- Sections ---------- */

.section { padding-top: clamp(72px, 10vw, 136px); }
.section__head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section__head h2 { font-size: clamp(34px, 4.4vw, 56px); }


/* ---------- Home: hero ---------- */

.hero { padding-top: clamp(28px, 5vw, 64px); }
/* One line on every screen: the size follows the screen width */
.hero__title { font-size: min(5.6vw, 76px); font-weight: 300; white-space: nowrap; margin-bottom: clamp(24px, 3.4vw, 48px); }
.hero__title em { font-style: italic; font-weight: 300; color: var(--accent); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__text { min-width: 0; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.slides .hero__actions { justify-content: center; margin-top: 22px; }

/* Captions are stacked in one spot; the area is as tall as the longest */
.slide-caps { display: grid; }
.slide-cap { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.slide-cap.is-active { opacity: 1; visibility: visible; transition: opacity .5s var(--ease) .15s, visibility 0s; }
.slide-cap__title { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; text-decoration: none; display: inline-block; }
.slide-cap__text { margin-top: 12px; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; }
.slide-cap__text p { margin: 0 0 .7em; }
.slide-cap__text p:last-child { margin-bottom: 0; }
.slide-cap__meta { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }

/* Slideshow of featured paintings */
.slides { justify-self: center; width: 100%; max-width: 620px; min-width: 0; }
.slides__stage { position: relative; height: clamp(320px, calc(100vh - 380px), 500px); }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; }
.slide img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; background: var(--card);
  box-shadow: 0 2px 4px rgba(30,20,10,.08), 0 30px 60px -20px rgba(30,20,10,.4);
}
.slides__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.slides__nav[hidden] { display: none; }
.slides__btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s;
}
.slides__btn:hover { border-color: var(--ink); }
.slides__dots { display: flex; gap: 4px; }
.slides__dots button { width: 22px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.slides__dots button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 99px; background: var(--line); transition: background .3s, width .3s, margin .3s;
}
.slides__dots button[aria-current="true"]::after { background: var(--ink); width: 18px; margin-left: -9px; }

/* ---------- Home: painted on glass (dark) ---------- */

.glass {
  /* Tales Between Frames, barely visible under the dark band */
  background: linear-gradient(rgba(20, 17, 14, .91), rgba(20, 17, 14, .91)), url("/img/bg-tales.webp") center / cover no-repeat, var(--night);
  color: var(--night-ink);
  margin-top: clamp(80px, 11vw, 150px);
  padding: clamp(72px, 10vw, 128px) 0;
}
.glass .eyebrow { color: var(--night-ink-2); }
.glass h2 { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 22px; }
.glass .lead { color: var(--night-ink-2); }
.glass__text { text-align: center; max-width: 820px; }
.glass__text .lead { margin: 0 auto; max-width: 36em; line-height: 1.7; }
.glass__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.glass__steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.glass__steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.glass__steps b { display: block; font-weight: 600; color: var(--night-ink); }
.glass__steps span { color: var(--night-ink-2); font-size: 16px; }
.glass__steps .num { font-family: var(--serif); font-size: 22px; color: var(--accent); line-height: 1.2; filter: brightness(1.5); }

.details { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.details figure { margin: 0; position: relative; overflow: hidden; }
.details figure:first-child { grid-row: span 2; }
.details img { width: 100%; height: 100%; object-fit: cover; }
.details figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  font-size: 13px; color: #fff;
}

/* ---------- Visit ---------- */

.visit {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px);
}
.visit-card {
  background: var(--card); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 4px;
}
.visit-card h3 { font-size: 28px; margin-bottom: 10px; }
.visit-card p { margin: 0; color: var(--ink-2); }
.visit-card .links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- CTA band ---------- */

.cta {
  background: var(--paper-2);
  margin-top: clamp(80px, 11vw, 150px);
  padding: clamp(64px, 9vw, 112px) 0;
  text-align: center;
}
.cta h2 { font-size: clamp(32px, 4.2vw, 54px); max-width: 16em; margin: 0 auto 18px; }
.cta .lead { margin: 0 auto 34px; }
.cta .hero__actions { justify-content: center; }
main:has(> .cta:last-child) + .site-footer { margin-top: 0; border-top: 0; }

/* ---------- Page heads ---------- */

.page-head { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(32px, 4vw, 56px); }
.page-head h1 { font-size: clamp(48px, 7vw, 96px); font-weight: 300; margin-bottom: 18px; }

/* ---------- Work ---------- */

/* ---------- Painting page ---------- */

.piece[aria-busy="true"] .piece__info { visibility: hidden; }
.piece__stage button:empty { min-height: 50vh; }

.piece { padding-top: clamp(24px, 4vw, 56px); }
.piece .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.piece__stage {
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(24px, 5vw, 72px);
  min-height: min(78vh, 760px);
}
.piece__stage button { all: unset; cursor: zoom-in; display: block; }
.piece__stage img {
  max-height: min(68vh, 680px); width: auto; max-width: 100%;
  box-shadow: 0 2px 4px rgba(30,20,10,.1), 0 28px 50px -18px rgba(30,20,10,.45);
  background: #fff;
}
.piece__info { position: sticky; top: 108px; }
.piece__info .eyebrow a { text-decoration: none; }
.piece__info h1 { font-size: clamp(38px, 4.4vw, 58px); margin-bottom: 26px; }
.facts { margin: 0 0 30px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.piece__note { color: var(--ink-2); margin: 0 0 30px; }
.piece__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.piece__actions .btn { width: 100%; }
.piece__hint { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); padding-top: 22px; }
.pager a { text-decoration: none; display: flex; flex-direction: column; max-width: 45%; }
.pager a:last-child { text-align: right; margin-left: auto; }
.pager small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.pager span { font-family: var(--serif); font-size: 22px; }

.more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.more .art__frame { aspect-ratio: 4 / 5; }
.more .art__frame img { height: 100%; object-fit: cover; }

/* Zoom viewer */
.zoom {
  position: fixed; inset: 0; z-index: 200; background: rgba(20, 17, 14, .96);
  display: none; align-items: center; justify-content: center; cursor: zoom-out;
}
.zoom.open { display: flex; }
.zoom img { max-width: 96vw; max-height: 94vh; width: auto; height: auto; }
.zoom__close {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- About ---------- */

.about .wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.about__art { position: sticky; top: 108px; transition: opacity .5s var(--ease); }
.js [data-portrait]:not(.ready) { opacity: 0; }
.portrait-fig { margin: 0; }
.portrait-fig figcaption { margin-top: 12px; }
.about__body p { margin: 0 0 1.2em; color: var(--ink-2); }
.about__body p:first-of-type { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; color: var(--ink); font-weight: 350; }
.about__body h2 { font-size: 30px; margin: 56px 0 18px; }
.about__body blockquote {
  margin: 40px 0; padding: 0 0 0 24px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; color: var(--ink);
}
.media-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.media-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; }
.media-list span { color: var(--ink-3); font-size: 15px; }

/* ---------- Contact ---------- */

.contact .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: 400 17px/1.4 var(--sans); color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30,27,24,.08);
}
.hp { position: absolute; left: -5000px; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__status { font-size: 15px; color: var(--ink-2); }
.form__status.ok { color: #2f6b3a; }
.form__status.err { color: var(--accent); }

.side { display: grid; gap: 22px; }
.side .visit-card h3 { font-size: 24px; }
.reach { display: grid; gap: 10px; }
.reach a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; }
.reach svg { width: 22px; height: 22px; flex: none; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 64px; }
  .brand__name { font-size: 21px; }
  .brand__tag { display: none; }
  html { scroll-padding-top: 76px; }

  .glass__grid, .piece .wrap, .about .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; gap: 22px; }
  .slides__stage { height: min(54vh, 380px); }
  .slides__nav { margin-top: 14px; }

  .visit { grid-template-columns: 1fr; }
  .piece__stage { min-height: 0; padding: 28px 16px; margin: 0 calc(var(--gutter) * -1); }
  .piece__stage img { max-height: 70vh; }
  .piece__info, .about__art { position: static; }
  .about__art { max-width: 460px; }
  .form { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .grid { columns: 2 140px; column-gap: 14px; }
  .grid .art__title { font-size: 16px; }
  .grid .art__meta { font-size: 12px; }
}

/* Very tall or wide paintings: keep their shape but cap the height in grids */
.grid .art__frame { width: fit-content; max-width: 100%; }
.grid .art__frame img { width: auto; max-width: 100%; max-height: min(560px, 75vh); }
@media (max-width: 420px) { .grid .art__frame img { max-height: 360px; } }

/* Home "From the studio": one large featured painting + four squares */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(10px, 1.4vw, 18px); align-items: start;
}
.feature__main { margin: 0; }
/* The featured painting is never cropped: it sits whole on a soft mat */
.feature__frame {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1;
  background: var(--paper-2); padding: clamp(18px, 3.5vw, 48px);
}
.feature__frame img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; background: var(--card);
  box-shadow: 0 2px 4px rgba(30,20,10,.1), 0 24px 44px -18px rgba(30,20,10,.45);
  transition: transform .9s var(--ease);
}
.feature__frame:hover img { transform: scale(1.02); }
.feature__main figcaption { padding-top: 18px; }
.feature__title { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; text-decoration: none; display: inline-block; }
.feature__meta { margin: 6px 0 14px; font-size: 15px; color: var(--ink-3); }
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 18px); aspect-ratio: 1; }
.feature__grid .tile { aspect-ratio: 1; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature__main figcaption { padding-bottom: 8px; }
}
.tile { position: relative; overflow: hidden; background: var(--paper-2); display: block; color: #fff; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile:hover img { transform: scale(1.05); }
/* Title always visible; hover just highlights */
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  display: flex; flex-direction: column; gap: 2px;
  transition: background .35s var(--ease);
}
.tile__cap b { font-family: var(--serif); font-weight: 400; font-size: clamp(15px, 1.5vw, 20px); line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.tile__cap small { font-size: 13px; opacity: .85; }
.tile::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .3s var(--ease); pointer-events: none; }
.tile:hover::after, .tile:focus-visible::after { box-shadow: inset 0 0 0 3px var(--accent); }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.tile:hover { color: #fff; }
@media (max-width: 600px) { .tile__cap { padding: 28px 10px 8px; } .tile__cap small { display: none; } }

/* Gallery card note (e.g. "Through Dec 30") */
.visit-card__note { color: var(--accent) !important; font-size: 14px; font-weight: 600; letter-spacing: .02em; margin: -4px 0 8px !important; }

/* In the news: a quiet list */
.news { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); padding-top: 22px; }
.news[hidden] { display: none; }
.news__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.news__head .eyebrow { margin: 0 0 6px; }
.news__list { list-style: none; margin: 0; padding: 0; }
.news__item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news__item:last-child { border-bottom: 0; }
.news__date { font-size: 13px; color: var(--ink-3); padding-top: 4px; font-variant-numeric: tabular-nums; }
.news__body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.news__title { font-family: var(--serif); font-size: 20px; line-height: 1.3; text-decoration: none; }
a.news__title:hover { color: var(--accent); }
a.news__title::after { content: " ↗"; font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
.news__source { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.news__summary { flex-basis: 100%; color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.news--all { margin-top: 56px; border-top: 0; padding-top: 0; }
.news--all h2 { font-size: 30px; margin: 0 0 8px; }
.about__body .news__summary { margin: 0; }
@media (max-width: 600px) {
  .news__item { grid-template-columns: 1fr; }
  .news__date { padding-top: 0; }
}


/* Work page: size and surface filters */
.wfilters { display: grid; gap: 10px; margin: 0 0 clamp(28px, 4vw, 48px); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.wfilters[hidden] { display: none; }
.wfilters__row { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.wfilters__row::-webkit-scrollbar { display: none; }
.wfilters__label { flex: none; width: 64px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.chip {
  flex: none; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer;
  white-space: nowrap; transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip small { font-size: 12px; opacity: .6; margin-left: 3px; }
.chip:disabled { opacity: .35; cursor: default; }
.chip:disabled:hover { border-color: var(--line); }
.wfilters__empty { color: var(--ink-2); }
.wfilters__empty[hidden] { display: none; }
.wfilters__empty .link-btn { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
@media (max-width: 600px) { .wfilters__label { width: 56px; font-size: 11px; } .chip { padding: 7px 12px; font-size: 13px; } }


/* ---------- Visual round ---------- */

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phone: headline on two lines, larger */
@media (max-width: 600px) {
  .hero__title { white-space: normal; font-size: clamp(36px, 10.5vw, 46px); line-height: 1.05; }
  .hero__title em { display: block; }
}

/* Slide counter beside the dots */
.slides__count { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: center; }

/* Featured in: a soft full-width band with a centered press bar */
.seen-band { background: var(--paper-2); margin-top: clamp(48px, 6vw, 88px); padding: clamp(26px, 3vw, 38px) 0; }
.seen { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.seen__label { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.seen__label::before, .seen__label::after { content: ""; width: 36px; height: 1px; background: var(--accent); opacity: .7; }
.seen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; justify-content: center; max-width: 100%; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.seen ul::-webkit-scrollbar { display: none; }
.seen li + li::before { content: "·"; margin: 0 clamp(7px, .7vw, 11px); color: var(--accent); font-style: normal; }
.seen li svg { width: 1.15em; height: 1.15em; flex: none; color: var(--accent); opacity: .85; position: relative; top: .1em; margin-right: .4em; }
.seen li { display: inline-flex; color: var(--ink); align-items: baseline; font-family: var(--serif); font-size: clamp(14px, 1.42vw, 17.5px); flex: none; color: var(--ink-2); font-style: italic; white-space: nowrap; }
/* the section after the band starts closer */
.seen-band + .section { padding-top: clamp(56px, 7vw, 104px); }
@media (max-width: 1100px) { .seen ul { justify-content: flex-start; } }

/* Sold: the gallery red dot */
.sold-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c8102e; vertical-align: middle; margin-left: 6px; box-shadow: 0 0 0 2px var(--paper); }
.facts .sold-dot { margin: 0 4px 0 0; }

/* Painting page: wider stage for wide paintings, close-ups, wall scale */
.piece__media { min-width: 0; }
.piece.is-wide .piece .wrap, .piece.is-wide > .wrap:first-child { grid-template-columns: minmax(0, 8fr) minmax(260px, 3fr); }
.piece.is-wide .piece__stage { padding: clamp(16px, 2.5vw, 36px); min-height: 0; }
.piece.is-wide .piece__stage img { max-height: min(72vh, 720px); }
.piece__extras { margin-top: clamp(16px, 2vw, 24px); max-width: 520px; }
.piece__extras .eyebrow { margin-bottom: 10px; }
.scale { margin: 0; }
.scale__art svg { width: 100%; height: auto; display: block; border-radius: 2px; }
.scale__cap { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 820px) { .piece__extras { grid-template-columns: 1fr; } }

/* News on About, grouped by year */
.news__year { border-top: 1px solid var(--line); }
.news__year summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 14px 0; font-family: var(--serif); font-size: 24px; }
.news__year summary::-webkit-details-marker { display: none; }
.news__year summary::after { content: "+"; margin-left: auto; font-family: var(--sans); font-size: 20px; color: var(--ink-3); }
.news__year[open] summary::after { content: "–"; }
.news__year summary small { font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
.news__year .news__list { margin-bottom: 10px; }

/* Loading shimmer while paintings arrive */
@keyframes shimmer { from { background-position: -600px 0; } to { background-position: 600px 0; } }
[data-list][aria-busy="true"] {
  min-height: 60vh; border-radius: 2px;
  background: linear-gradient(90deg, var(--paper-2) 0, #f8f3ec 40%, var(--paper-2) 80%) 0 0 / 1200px 100% repeat-y;
  animation: shimmer 1.4s linear infinite;
}
.feature[aria-busy="true"] { min-height: 420px; }
.piece[aria-busy="true"] .piece__stage { background: linear-gradient(90deg, var(--paper-2) 0, #f8f3ec 40%, var(--paper-2) 80%) 0 0 / 1200px 100%; animation: shimmer 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { [data-list][aria-busy="true"], .piece[aria-busy="true"] .piece__stage { animation: none; } }

/* Openings sign-up */
.signup { margin: 28px auto 0; max-width: 460px; text-align: left; }
.signup__label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.signup__row { display: flex; gap: 8px; }
.signup__row input[type=email] { flex: 1; min-width: 0; font: 400 16px var(--sans); padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }
.signup__row input[type=email]:focus { outline: none; border-color: var(--ink); }
.signup__msg { font-size: 14px; margin: 8px 0 0; min-height: 1.2em; }
.signup__msg.ok { color: #2f6b3a; }
.signup__msg.err { color: var(--accent); }
.side-signup .signup { margin: 8px 0 0; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* What's on view at each gallery */
.visit-card__on { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.visit-card__count { margin: 0 0 10px !important; font-size: 14px; color: var(--ink-2) !important; }
.visit-card__count b { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--accent); margin-right: 2px; }
.visit-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.visit-thumbs a { width: 52px; height: 52px; overflow: hidden; background: var(--paper-2); display: block; box-shadow: 0 1px 2px rgba(30,20,10,.12); transition: transform .25s var(--ease); }
.visit-thumbs a:hover { transform: translateY(-2px); }
.visit-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.visit-thumbs__more { display: flex !important; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.at-note { margin: 0 0 18px; padding: 12px 16px; background: var(--paper-2); font-size: 15px; color: var(--ink-2); }
.at-note[hidden] { display: none; }
.at-note b { color: var(--ink); font-weight: 600; }
.facts small { color: var(--ink-3); font-size: 13px; }


/* Visit: the glass line is the headline */
.visit-head { margin-bottom: clamp(32px, 4vw, 56px); }
.visit-head h2 { font-size: clamp(38px, 5.2vw, 72px); font-weight: 300; line-height: 1.05; max-width: 13em; }
.visit-head h2 em { font-style: italic; color: var(--accent); }
.visit-head .lead { margin: 18px 0 0; }

/* ---------- Contact page ---------- */
.contact-head__row { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.contact-head__portrait { flex: none; width: clamp(96px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-hang); }
.contact-head__portrait[hidden] { display: none; }
.contact-head__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: var(--px, 50%) var(--py, 25%); transform: scale(var(--z, 1)); transform-origin: var(--px, 50%) var(--py, 25%); }
.reply-time { display: block; margin-top: 6px; font-size: .9em; color: var(--ink-3); }
.contact .contact__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  grid-template-areas: "main reach" "main signup"; grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 96px); row-gap: 28px; align-items: start;
}
.contact__main { grid-area: main; }
.contact__grid > .reach { grid-area: reach; padding-top: 22px; }
.contact__grid > .side-signup { grid-area: signup; }
.asking { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--card); border: 1px solid var(--line); }
.asking[hidden] { display: none; }
.asking img { width: 64px; height: 64px; object-fit: cover; display: block; }
.asking > div { display: flex; flex-direction: column; min-width: 0; }
.asking__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.asking__title { font-family: var(--serif); font-size: 21px; text-decoration: none; }
.asking__meta { font-size: 13px; color: var(--ink-3); }
.form__done { padding: clamp(24px, 3vw, 40px); background: var(--card); border: 1px solid var(--line); }
.form__done[hidden] { display: none; }
.form__done h2 { font-size: clamp(32px, 3.4vw, 44px); margin-bottom: 12px; }
.form__done .lead { margin: 0 0 18px; }
.contact-visit { padding-top: clamp(56px, 7vw, 96px); }
@media (max-width: 820px) {
  .contact .contact__grid { grid-template-columns: 1fr; grid-template-areas: "reach" "main" "signup"; }
  .contact__grid > .reach { padding-top: 0; }
  .contact-head__row { align-items: flex-start; }
}

/* Portrait frames: shape, focus point and zoom come from the admin (--px, --py, --z) */
.pframe { overflow: hidden; position: relative; }
.pframe img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--px, 50%) var(--py, 25%); transform: scale(var(--z, 1)); transform-origin: var(--px, 50%) var(--py, 25%); }
.pframe.shape-circle { aspect-ratio: 1; border-radius: 50%; }
.pframe.shape-square { aspect-ratio: 1; border-radius: 3px; }
.pframe.shape-portrait { aspect-ratio: 4 / 5; border-radius: 3px; }
.pframe.shape-original img { height: auto; object-fit: contain; transform: none; }
.portrait-fig .pframe { max-width: 440px; margin: 0 auto; }
.portrait-fig .pframe.shape-portrait, .portrait-fig .pframe.shape-original { max-width: none; }
.portrait-fig figcaption { text-align: center; }

/* Work page: staggered grid that reads row by row */
.grid.masonry { columns: auto; display: flex; align-items: flex-start; gap: clamp(24px, 3vw, 44px); }
.grid.masonry > .mcol { flex: 1; min-width: 0; margin: 0; break-inside: auto; }
.grid.masonry .mcol > * { margin-bottom: clamp(36px, 4vw, 56px); }
@media (max-width: 420px) { .grid.masonry { gap: 14px; } }
