/* ==========================================================================
   DD Art Gallery: design system
   Loaded after Bootstrap. Contents:
   1 Tokens  2 Base  3 Type  4 Buttons & forms  5 Navigation  6 Hero
   7 Sections & layout  8 Artwork, frame, placard  9 Cards  10 Masonry & scroller
   11 Lightbox & room  12 Filters  13 Detail pages  14 Shop  15 Cart & checkout
   16 Footer  17 Motion  18 Responsive
   ========================================================================== */

/* 1 Tokens ---------------------------------------------------------------- */
:root {
  --wall: #F7F5F0;
  --wall-deep: #EFEBE3;
  --ink: #1C1C1C;
  --stone: #8A8580;        /* decorative and large text only */
  --stone-text: #66625D;   /* #8A8580 fails AA at small sizes; this passes on --wall */
  --oxblood: #6B1E1E;
  --brass: #A68A5B;
  --red-dot: #B3261E;
  --hair: rgba(28, 28, 28, .14);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slow: 1.1s;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --section: clamp(3.5rem, 7vw, 6.5rem);
  --nav-h: 76px;
  --hung: 0 1px 2px rgba(40, 30, 20, .14), 0 18px 34px -14px rgba(40, 30, 20, .32);
  --hung-lift: 0 2px 4px rgba(40, 30, 20, .14), 0 30px 50px -18px rgba(40, 30, 20, .38);

  --bs-body-bg: var(--wall);
  --bs-body-color: var(--ink);
  --bs-body-font-family: var(--sans);
  --bs-body-font-size: .95rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.75;
  --bs-border-color: var(--hair);
  --bs-link-color-rgb: 28, 28, 28;
  --bs-link-hover-color-rgb: 107, 30, 30;
  --bs-border-radius: 0;
}

/* 2 Base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }
body { background: var(--wall); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: color .4s var(--ease); }
a:hover { color: var(--oxblood); }
strong, b { font-weight: 500; }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }
main:focus, [tabindex="-1"]:focus, [tabindex="-1"]:focus-visible, dialog:focus-visible { outline: none; } /* Containers that receive focus by script, not by user tabbing */
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 2000; background: var(--ink); color: var(--wall); padding: .7rem 1.2rem; }
.skip-link:focus { top: 1rem; color: var(--wall); }
.page-offset { padding-top: calc(var(--nav-h) + clamp(1.75rem, 3.5vw, 3rem)); }
.gutter { padding-inline: var(--gutter); }
.hairline { border: 0; border-top: 1px solid var(--hair); opacity: 1; margin: 0; }

/* 3 Type ------------------------------------------------------------------ */
h1, h2, h3, h4, .serif { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.012em; }
.display { font-size: clamp(2.75rem, 5.5vw, 5rem); font-weight: 400; line-height: 1.02; letter-spacing: -.02em; }
.title-xl { font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 400; }
.title-lg { font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 400; }
.title-md { font-size: clamp(1.3rem, 1.7vw, 1.55rem); font-weight: 500; }
.lead-serif { font-family: var(--serif); font-size: clamp(1.2rem, 1.5vw, 1.4rem); font-weight: 400; line-height: 1.5; }
.label { font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--stone-text); margin: 0; }
.label-ink { color: var(--ink); }
.muted { color: var(--stone-text); }
.measure { max-width: 62ch; }

/* 4 Buttons & forms ------------------------------------------------------- */
.btn-gallery, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1.05rem 2.1rem; border: 1px solid var(--ink); border-radius: 0;
  font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  cursor: pointer;
}
.btn-gallery { background: var(--ink); color: var(--wall); }
.btn-gallery:hover, .btn-gallery:focus-visible { background: var(--oxblood); border-color: var(--oxblood); color: var(--wall); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--ink); color: var(--wall); }
.btn-gallery[disabled], .btn-outline[disabled] { opacity: .45; cursor: not-allowed; background: transparent; color: var(--ink); border-color: var(--hair); }
.link-quiet {
  display: inline-flex; align-items: center; gap: .65rem; padding: 0 0 .35rem; border: 0; background: none; color: inherit;
  font: 500 .7rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .7s var(--ease), color .4s var(--ease); cursor: pointer;
}
.link-quiet:hover { background-size: 30% 1px; color: var(--oxblood); }
.link-quiet i { font-size: .65rem; transition: transform .6s var(--ease); }
.link-quiet:hover i { transform: translateX(4px); }
.icon-btn { background: none; border: 0; color: inherit; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer; transition: color .4s var(--ease); }
.icon-btn:hover { color: var(--oxblood); }

.field { margin-bottom: 1.75rem; }
.field label, .field .field-label { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-text); margin-bottom: .2rem; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(28, 28, 28, .4); border-radius: 0;
  padding: .55rem 0; font: 300 1rem/1.5 var(--sans); color: var(--ink); transition: border-color .4s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom: 1px solid var(--oxblood); box-shadow: 0 1px 0 var(--oxblood); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: var(--red-dot); }
.field-error { display: none; font-size: .78rem; color: var(--red-dot); margin-top: .35rem; }
.field.is-invalid .field-error { display: block; }
.form-note { font-size: .8rem; color: var(--stone-text); }
.preview-note { border: 1px solid var(--hair); padding: .9rem 1.1rem; font-size: .82rem; color: var(--stone-text); }
.preview-note i { color: var(--brass); margin-right: .5rem; }
.choice { display: flex; gap: 1rem; padding: 1.15rem 1.25rem; border: 1px solid var(--hair); cursor: pointer; transition: border-color .4s var(--ease), background-color .4s var(--ease); margin-bottom: -1px; position: relative; }
.choice:hover { background: rgba(255, 255, 255, .5); }
.choice:has(input:checked) { border-color: var(--ink); z-index: 1; background: rgba(255, 255, 255, .55); }
.choice input { accent-color: var(--oxblood); margin-top: .35rem; flex: none; width: 1rem; height: 1rem; }
.choice-body { flex: 1; }
.choice-title { display: block; font-weight: 400; }
.choice-detail { display: block; font-size: .82rem; color: var(--stone-text); }
.check { display: flex; align-items: flex-start; gap: .8rem; cursor: pointer; }
.check input { accent-color: var(--oxblood); width: 1.05rem; height: 1.05rem; margin-top: .35rem; flex: none; }

/* 5 Navigation ------------------------------------------------------------ */
.site-nav {
  position: fixed; inset: 0 0 auto; z-index: 1030; height: var(--nav-h); padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(247, 245, 240, .97); border-bottom: 1px solid var(--hair);
  transition: background-color .7s var(--ease), border-color .7s var(--ease), height .7s var(--ease);
}
.site-nav.is-transparent { background: transparent; border-bottom-color: transparent; }
.nav-brand { display: flex; align-items: center; gap: .85rem; color: var(--ink); }
.nav-brand img { height: 44px; width: auto; }
.nav-brand span { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.6rem); margin: 0; padding: 0; list-style: none; }
.nav-links a { font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; padding: .5rem 0; position: relative; color: var(--ink); }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--oxblood); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem); }
.nav-icons { display: flex; align-items: center; }
.count-badge { position: absolute; top: 5px; right: 2px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 50%; background: var(--oxblood); color: #fff; font-size: .58rem; font-weight: 600; line-height: 16px; text-align: center; }
.count-badge[hidden] { display: none; }
.nav-toggle { display: none; }
.nav-panel { display: contents; }

/* 6 Hero ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(2rem, 4vw, 5rem);
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 4rem;
}
.spotlight::before { /* Soft gallery lamp falling on the wall */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 72% at 66% 42%, rgba(255, 253, 248, 1) 0%, rgba(255, 252, 245, .72) 38%, rgba(247, 245, 240, 0) 72%),
    radial-gradient(ellipse 120% 110% at 50% 45%, rgba(0, 0, 0, 0) 58%, rgba(70, 58, 42, .17) 100%),
    var(--wall-deep);
}
.hero-art { justify-self: end; width: 100%; max-width: 980px; }
.hero-art .frame { box-shadow: 0 2px 4px rgba(40, 30, 20, .16), 0 44px 70px -30px rgba(40, 30, 20, .55); }
.hero-placard { margin-top: 1.5rem; display: flex; justify-content: flex-end; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; margin-bottom: 1.6rem; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--oxblood); display: inline-block; margin-right: .7rem; vertical-align: 2px; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 1.75rem; }

.hero-shop { min-height: 62svh; grid-template-columns: 1fr; align-items: end; padding-bottom: clamp(3rem, 7vw, 6rem); color: #fff; }
.hero-shop .hero-bg { position: absolute; inset: -6% 0; z-index: -2; background-size: cover; background-position: center; }
.hero-shop::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 18, 12, .62) 0%, rgba(22, 18, 12, .42) 40%, rgba(22, 18, 12, .8) 100%); }
.hero-shop .label { color: rgba(255, 255, 255, .86); }
/* Pages whose hero is a photograph: light navigation until the page scrolls */
body:is([data-page="shop"], [data-page="visit"]) .site-nav.is-transparent:not(.menu-open) .nav-links a,
body:is([data-page="shop"], [data-page="visit"]) .site-nav.is-transparent:not(.menu-open) .nav-brand,
body:is([data-page="shop"], [data-page="visit"]) .site-nav.is-transparent:not(.menu-open) .icon-btn { color: #fff; }
body:is([data-page="shop"], [data-page="visit"]) .site-nav.is-transparent:not(.menu-open) .nav-brand img { filter: brightness(0) invert(1); }

/* 7 Sections & layout ------------------------------------------------------ */
.section { padding-block: var(--section); padding-inline: var(--gutter); }
.section-tight { padding-block: clamp(3rem, 7vw, 6rem); padding-inline: var(--gutter); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.page-title { padding-inline: var(--gutter); padding-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.empty-state { padding: clamp(3rem, 8vw, 7rem) 1rem; text-align: center; border-block: 1px solid var(--hair); }

/* 8 Artwork, frame, placard ------------------------------------------------ */
.frame { display: block; position: relative; overflow: hidden; background: var(--wall-deep); box-shadow: var(--hung); transition: box-shadow var(--slow) var(--ease); }
.frame img { width: 100%; height: auto; transition: transform 1.6s var(--ease); }
a:hover .frame, button:hover .frame, .frame:hover { box-shadow: var(--hung-lift); }
a:hover .frame img, .frame:hover img { transform: scale(1.025); }
.placard { margin-top: 1.15rem; font-size: .8rem; line-height: 1.55; color: var(--stone-text); }
.placard p { margin: 0; }
.placard-artist { font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-bottom: .3rem !important; }
.placard-title { font-family: var(--serif); font-size: 1.22rem; line-height: 1.2; color: var(--ink); margin-bottom: .3rem !important; }
.placard-title em { font-style: italic; }
.placard-status { margin-top: .5rem !important; color: var(--ink); display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
/* Card caption: every line has a reserved height so all cards match exactly */
.placard-card p { min-height: 1.55em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.placard-card .placard-artist { min-height: 1.6em; margin-bottom: .2rem !important; }
.placard-card .placard-title { font-size: 1.15rem; font-weight: 500; line-height: 1.3; height: 1.3em; min-height: 1.3em; margin-bottom: .3rem !important; }
.placard-card .placard-status { min-height: 1.6em; margin-top: .35rem !important; flex-wrap: nowrap; font-weight: 500; }
.placard-wall { background: #fff; padding: 1.1rem 1.3rem; box-shadow: 0 1px 2px rgba(40, 30, 20, .16); max-width: 19rem; margin-top: 0; }
.placard-lg .placard-title { font-size: clamp(1.9rem, 3.2vw, 2.75rem); font-weight: 300; }
.placard-lg { font-size: .9rem; margin-top: 0; }
.placard-lg .placard-artist { font-size: .72rem; margin-bottom: .9rem !important; }
.red-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red-dot); flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }
.half-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(90deg, var(--red-dot) 50%, transparent 50%); border: 1px solid var(--red-dot); flex: none; }

/* The standard item box: same size everywhere, artwork fitted inside and never cropped */
.art-tile { position: relative; aspect-ratio: 1 / 1; background: var(--wall-deep); box-shadow: none !important; }
.art-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(40, 30, 20, .28)); }
.art-tile.is-wide { aspect-ratio: 21 / 9; }
.art-tile.is-wide > img { padding: 3%; }
.portrait-fixed { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--wall-deep); box-shadow: none; }
.portrait-fixed img { width: 100%; height: 100%; object-fit: cover; }
.art-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2rem, 3vw, 2.75rem) clamp(1.25rem, 2vw, 2rem); }
.art-grid > .empty-state { grid-column: 1 / -1; }
.work { position: relative; }
.work-link { display: block; color: inherit; }
.work-link:hover { color: inherit; }
.wish-btn {
  position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(247, 245, 240, .86); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transition: opacity .6s var(--ease), color .4s var(--ease), background-color .4s var(--ease);
}
.work:hover .wish-btn, .wish-btn:focus-visible, .wish-btn[aria-pressed="true"] { opacity: 1; }
.wish-btn:hover { color: var(--oxblood); background: #fff; }
.wish-btn[aria-pressed="true"] { color: var(--oxblood); }
@media (hover: none) { .wish-btn { opacity: 1; } }

/* 9 Cards ------------------------------------------------------------------ */
.ex-card { display: block; color: inherit; }
.ex-card:hover { color: inherit; }
.ex-card .frame { aspect-ratio: 3 / 2; box-shadow: none; }
.ex-card .frame img { width: 100%; height: 100%; object-fit: cover; }
.ex-card h3 { transition: color .5s var(--ease); }
.ex-card:hover h3 { color: var(--oxblood); }
.ex-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2vw, 2rem); align-items: start; }

.ex-list-item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; padding-block: clamp(2rem, 3.5vw, 3rem); border-top: 1px solid var(--hair); color: inherit; }
.ex-list-item:hover { color: inherit; }
.ex-list-item .frame { aspect-ratio: 3 / 2; box-shadow: none; }
.ex-list-item .frame img { height: 100%; object-fit: cover; }
.ex-list-item .ex-media { grid-column: 1 / span 5; }
.ex-list-item .ex-copy { grid-column: 7 / span 6; }
.tabs-quiet { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 3vw, 2.75rem); border-bottom: 1px solid var(--hair); margin-inline: var(--gutter); }
.tabs-quiet button { background: none; border: 0; color: var(--stone-text); padding: 0 0 1rem; margin-bottom: -1px; border-bottom: 1px solid transparent; font: 500 .7rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; cursor: pointer; transition: color .4s var(--ease), border-color .4s var(--ease); }
.tabs-quiet button:hover { color: var(--ink); }
.tabs-quiet button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--oxblood); }

.portrait-card { display: block; color: inherit; }
.portrait-card:hover { color: inherit; }
.portrait-card .portrait { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--wall-deep); }
.portrait-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.98); transition: filter 1.2s var(--ease), transform 1.6s var(--ease); }
.portrait-card:hover img, .portrait-card:focus-visible img { filter: grayscale(0); transform: scale(1.02); }
.portrait-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; line-height: 1.2; margin-top: .75rem; height: 2.4em; overflow: hidden; }

.event-row { display: grid; grid-template-columns: 7rem 1fr auto; gap: 2rem; align-items: baseline; padding-block: 2rem; border-top: 1px solid var(--hair); }
.event-row:last-child { border-bottom: 1px solid var(--hair); }
.event-date { font-family: var(--serif); font-size: 2.6rem; font-weight: 300; line-height: 1; }
.event-date small { display: block; font: 500 .66rem/1.8 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--stone-text); }

.map-frame { width: 100%; aspect-ratio: 16 / 11; border: 0; filter: grayscale(1) contrast(.92) brightness(1.03); display: block; background: var(--wall-deep); }

/* 10 Masonry & scroller ----------------------------------------------------- */
.scroller-wrap { position: relative; }
.scroller { display: flex; gap: clamp(1.5rem, 3vw, 2.75rem); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-inline: var(--gutter); padding-bottom: .5rem; scroll-padding-inline: var(--gutter); }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { flex: 0 0 220px; scroll-snap-align: start; }
.scroller-controls { display: flex; gap: .25rem; }
.round-btn { width: 46px; height: 46px; border: 1px solid var(--hair); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: border-color .4s var(--ease), color .4s var(--ease); }
.round-btn:hover { border-color: var(--oxblood); color: var(--oxblood); }

/* 11 Lightbox & room --------------------------------------------------------- */
dialog.viewer { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #16140F; color: #EDE9E0; }
dialog.viewer::backdrop { background: #16140F; }
.lb-stage { position: absolute; inset: 4.25rem 5.5rem 7rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-stage img { position: absolute; max-width: 100%; max-height: 100%; opacity: 0; transition: opacity .9s var(--ease), transform .5s var(--ease); cursor: zoom-in; box-shadow: 0 24px 60px -20px #000; }
.lb-stage img.is-active { opacity: 1; }
.lb-stage img.is-zoomed { cursor: zoom-out; transform: scale(2.2); }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 1.25rem; text-align: center; padding-inline: 1.5rem; font-size: .8rem; color: #C9C4B9; }
.lb-caption .serif { font-size: 1.3rem; color: #F2EEE5; font-style: italic; display: block; line-height: 1.3; }
.lb-count { position: absolute; left: 1.5rem; top: 1.5rem; font-size: .68rem; letter-spacing: .22em; color: #C9C4B9; }
.viewer .icon-btn { color: #EDE9E0; }
.viewer .icon-btn:hover { color: var(--brass); }
.viewer :focus-visible { outline-color: var(--brass); }
.viewer-close { position: absolute; top: .75rem; right: .75rem; z-index: 3; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
.lb-prev { left: .9rem; } .lb-next { right: .9rem; }

dialog.room-dialog { background: var(--wall); color: var(--ink); }
dialog.room-dialog .icon-btn { color: var(--ink); }
.room-dialog .room-inner { height: 100%; display: flex; flex-direction: column; }
.room-scene { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 3.5rem 1rem 1rem; }
.room { --room-wall: #F4F1EA; position: relative; width: min(100%, calc((100dvh - 12rem) * 1.6)); aspect-ratio: 16 / 10; overflow: hidden; background: var(--room-wall); transition: background-color 1s var(--ease); }
.room::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 48% 62% at 50% 34%, rgba(255, 252, 240, .5), transparent 70%), radial-gradient(ellipse 110% 110% at 50% 40%, transparent 55%, rgba(30, 20, 10, .22)); }
.room-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 19%; background: linear-gradient(180deg, #A58F75 0%, #8D7860 100%); }
.room-floor::before { content: ''; position: absolute; left: 0; right: 0; top: -3%; height: 3%; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.room-art { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); box-shadow: 0 2px 3px rgba(20, 12, 4, .3), 0 18px 26px -10px rgba(20, 12, 4, .42); }
.room-art img { width: 100%; height: auto; }
.room-bench { position: absolute; left: 50%; bottom: 7.5%; transform: translateX(-50%); width: 34.7%; height: 12%; }
.room-bench::before { content: ''; position: absolute; inset: 0 0 auto; height: 22%; background: #2B2622; box-shadow: 0 8px 12px -4px rgba(0, 0, 0, .4); }
.room-bench i { position: absolute; bottom: 0; width: 2%; height: 78%; background: #2B2622; }
.room-bench i:first-child { left: 7%; } .room-bench i:last-child { right: 7%; }
.room-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding: 1rem var(--gutter) 1.5rem; }
.wall-swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); cursor: pointer; padding: 0; margin-right: .5rem; }
.wall-swatch[aria-pressed="true"] { outline: 1px solid var(--ink); outline-offset: 3px; }

/* 12 Filters ------------------------------------------------------------------ */
.filters { padding: 1.5rem var(--gutter); border-block: 1px solid var(--hair); }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem 2rem; align-items: end; }
.filter-grid label { display: block; font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-text); margin-bottom: .1rem; }
.filter-grid select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(28, 28, 28, .32); padding: .4rem 0; font: 300 .88rem/1.4 var(--sans); color: var(--ink); cursor: pointer; border-radius: 0; }
.filter-grid select:focus { outline: 0; border-bottom-color: var(--oxblood); box-shadow: 0 1px 0 var(--oxblood); }
.filter-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.5rem var(--gutter) 0; }
.filter-toggle { display: none; }

/* 13 Detail pages -------------------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; padding-inline: var(--gutter); }
.detail-stage { position: relative; aspect-ratio: 5 / 4; background: var(--wall-deep); overflow: hidden; }
.detail-side { position: sticky; top: calc(var(--nav-h) + 2rem); }
.zoomable { position: absolute; inset: 0; cursor: zoom-in; overflow: hidden; display: block; padding: 0; border: 0; background: none; width: 100%; height: 100%; }
.zoomable img { width: 100%; height: 100%; padding: 6%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(40, 30, 20, .3)); transition: transform .7s var(--ease); }
.zoomable.is-magnified img { transform: scale(2); transition: transform .35s var(--ease); }
.tool-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.5rem; }
.spec-list { margin: 0; }
.spec-list > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-block: .75rem; border-top: 1px solid var(--hair); }
.spec-list > div:last-child { border-bottom: 1px solid var(--hair); }
.spec-list dt { font-size: .66rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--stone-text); padding-top: .2rem; }
.spec-list dd { margin: 0; }
.price-line { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.2; margin-block: 1.5rem; }
.quiet-accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--hair); --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--ink); --bs-accordion-btn-color: var(--ink); --bs-accordion-body-padding-x: 0; --bs-accordion-btn-padding-x: 0; --bs-accordion-color: var(--stone-text); }
.quiet-accordion .accordion-item { border-inline: 0; }
.quiet-accordion .accordion-button { font: 500 .68rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.quiet-accordion .accordion-button:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.quiet-accordion .accordion-body { font-size: .9rem; padding-top: 0; }

.essay p { max-width: 62ch; margin-bottom: 1.5rem; }
.essay .lead-serif { max-width: 34ch; margin-bottom: 2.75rem; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.32; }
.essay h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 300; margin-block: 3.25rem 1.25rem; }
.essay blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.38; border-left: 1px solid var(--brass); padding-left: clamp(1.25rem, 3vw, 2.5rem); margin-block: 2.75rem; max-width: 38ch; }
.walkthrough { display: flex; gap: clamp(1.25rem, 2vw, 2rem); overflow-x: auto; align-items: flex-start; scroll-snap-type: x proximity; padding: 2rem var(--gutter) 2.5rem; scrollbar-width: thin; scrollbar-color: var(--stone) transparent; scroll-padding-inline: var(--gutter); }
.walkthrough > * { flex: 0 0 300px; min-width: 0; scroll-snap-align: start; }
.lb-trigger { padding: 0; border: 0; background: none; display: block; width: 100%; cursor: zoom-in; }

.letter-nav { display: flex; flex-wrap: wrap; gap: .1rem .3rem; padding: 1rem var(--gutter); border-block: 1px solid var(--hair); position: sticky; top: var(--nav-h); z-index: 5; background: var(--wall); }
.letter-nav a { font-family: var(--serif); font-size: 1.15rem; min-width: 2rem; min-height: 2rem; display: inline-flex; align-items: center; justify-content: center; }
.letter-group { display: grid; grid-template-columns: 7rem 1fr; gap: 2rem; padding-block: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--hair); margin-inline: var(--gutter); scroll-margin-top: calc(var(--nav-h) + 5rem); }
.letter-big { font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 300; line-height: 1; color: var(--stone); }
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: clamp(1.75rem, 3vw, 3rem); }
.cv-block h3 { font: 500 .68rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--stone-text); margin-bottom: .9rem; }
.cv-block ul { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.cv-block li { padding-block: .6rem; border-top: 1px solid var(--hair); }

/* 14 Shop ---------------------------------------------------------------------- */
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 3vw, 2.75rem) clamp(1.25rem, 2vw, 2rem); }
.category-tile { display: block; color: inherit; }
.category-tile:hover { color: inherit; }
.category-tile .frame { aspect-ratio: 3 / 2; box-shadow: none; }
.category-tile .frame img { height: 100%; object-fit: cover; }
.category-tile h3 { margin-top: 1rem; margin-bottom: .15rem; font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 500; transition: color .5s var(--ease); }
.category-tile:hover h3 { color: var(--oxblood); }
.product-visual .giftcard { width: 100%; }
.giftcard { aspect-ratio: 8 / 5; background: linear-gradient(135deg, #FFFDF8, var(--wall-deep)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; border: 1px solid rgba(166, 138, 91, .55); text-align: center; padding: 1rem; }
.giftcard img { height: 42%; width: auto !important; object-fit: contain !important; transform: none !important; }
.giftcard .label { font-size: .58rem; }
.frame-giftcard { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--wall-deep); }
.frame-giftcard .giftcard { width: auto; height: 76%; }

.product-visual { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 8%; background: var(--wall-deep); overflow: hidden; container-type: size; box-shadow: none !important; }
.product-visual.is-photo { padding: 0; }
.product-visual.is-photo > img, .product-visual.is-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.product-visual.is-art > img { padding: 8%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(40, 30, 20, .28)); }
.product-visual .hang img, .product-stage .hang img { width: auto; height: auto; max-width: 100%; max-height: 62cqh; display: block; transform: none !important; }
.product-visual .hang.is-book img, .product-stage .hang.is-book img { max-height: 80cqh; }
a:hover .product-visual.is-photo > img { transform: scale(1.025); }
.is-soldout .product-visual { opacity: .78; }

.hang { display: inline-block; max-width: 100%; box-shadow: var(--hung); transition: box-shadow var(--slow) var(--ease), border-color .8s var(--ease), padding .8s var(--ease); background: #fff; line-height: 0; }
.hang img { max-width: 100%; max-height: 100%; }
.hang.is-book { box-shadow: -1px 1px 1px rgba(0, 0, 0, .25), 4px 8px 0 -3px #E5E0D4, 10px 22px 30px -12px rgba(40, 30, 20, .45); }
.hang.f-Oak { border: 7px solid #A9835A; border-image: linear-gradient(135deg, #BC976B, #93704A) 1; padding: 6cqh; }
.hang.f-Black { border: 6px solid #1F1D1B; padding: 6cqh; }
.hang.f-White { border: 6px solid #FCFBF8; outline: 1px solid rgba(0, 0, 0, .1); padding: 6cqh; }
.hang.f-Unframed { border: 0; padding: 3cqh; }
.hang.f-None { padding: 0; }

.option-group { margin-bottom: 1.75rem; }
.option-group > .label { display: block; margin-bottom: .75rem; }
.option-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.option-btn { background: none; border: 1px solid var(--hair); padding: .7rem 1rem; color: var(--ink); font: 300 .82rem/1.2 var(--sans); cursor: pointer; transition: border-color .4s var(--ease), background-color .4s var(--ease); }
.option-btn:hover { border-color: var(--stone); }
.option-btn[aria-pressed="true"] { border-color: var(--ink); background: rgba(255, 255, 255, .6); }
.frame-swatch { display: inline-flex; flex-direction: column; align-items: center; gap: .5rem; background: none; border: 0; padding: .25rem; font-size: .75rem; color: var(--stone-text); cursor: pointer; min-width: 62px; }
.frame-swatch span.sw { width: 42px; height: 42px; display: block; border: 1px solid rgba(0, 0, 0, .2); transition: outline-offset .3s var(--ease); }
.frame-swatch[aria-pressed="true"] { color: var(--ink); }
.frame-swatch[aria-pressed="true"] span.sw { outline: 1px solid var(--ink); outline-offset: 3px; }
.sw-Oak { background: linear-gradient(135deg, #BC976B, #93704A); }
.sw-Black { background: #1F1D1B; }
.sw-White { background: #FCFBF8; }
.sw-Unframed { background: linear-gradient(135deg, transparent 48%, rgba(107, 30, 30, .75) 49%, rgba(107, 30, 30, .75) 51%, transparent 52%), #F2EEE6; }
.gallery-thumbs { display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.gallery-thumb { width: 72px; height: 90px; padding: 0; border: 1px solid var(--hair); background: var(--wall-deep); overflow: hidden; cursor: pointer; opacity: .75; transition: opacity .4s var(--ease), border-color .4s var(--ease); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb[aria-pressed="true"] { opacity: 1; border-color: var(--ink); }
.product-stage { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; padding: 0; overflow: hidden; background: var(--wall-deep); cursor: zoom-in; border: 0; width: 100%; container-type: size; }
.product-stage.is-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-stage .giftcard { width: 62%; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--hair); }
.qty button { width: 34px; height: 34px; background: none; border: 0; cursor: pointer; color: var(--ink); }
.qty button:hover { color: var(--oxblood); }
.qty button[disabled] { opacity: .3; cursor: not-allowed; }
.qty span { width: 26px; text-align: center; font-size: .85rem; }

/* 15 Cart & checkout ------------------------------------------------------------- */
.cart-drawer { --bs-offcanvas-width: min(100vw, 460px); --bs-offcanvas-bg: var(--wall); --bs-offcanvas-color: var(--ink); --bs-offcanvas-transition: transform .7s var(--ease); }
.cart-drawer .offcanvas-header { padding: 1.75rem 2rem; border-bottom: 1px solid var(--hair); justify-content: space-between; }
.cart-drawer .offcanvas-body { padding: 0 2rem; }
.cart-drawer .offcanvas-footer { padding: 1.5rem 2rem 2rem; border-top: 1px solid var(--hair); }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 1.1rem; padding-block: 1.5rem; border-bottom: 1px solid var(--hair); }
.line-item > a img, .line-thumb { width: 76px; height: 92px; object-fit: cover; background: var(--wall-deep); }
.line-title { font-family: var(--serif); font-size: 1.1rem; line-height: 1.2; }
.line-meta { font-size: .76rem; color: var(--stone-text); line-height: 1.5; }
.line-remove { background: none; border: 0; padding: 0; font-size: .7rem; letter-spacing: .08em; color: var(--stone-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.line-remove:hover { color: var(--oxblood); }
.totals > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .4rem; font-size: .9rem; }
.totals .grand { font-family: var(--serif); font-size: 1.5rem; padding-top: 1rem; margin-top: .6rem; border-top: 1px solid var(--hair); }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2.5rem, 7vw, 8rem); padding-inline: var(--gutter); align-items: start; }
.steps { display: flex; flex-wrap: wrap; gap: .5rem clamp(1rem, 2.5vw, 2.25rem); list-style: none; padding: 0; margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.steps li { font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-text); padding-bottom: .55rem; border-bottom: 1px solid transparent; }
.steps li[aria-current="step"] { color: var(--ink); border-bottom-color: var(--oxblood); }
.steps li.is-done { color: var(--ink); }
.steps li.is-done::before { content: '\2713\00a0'; color: var(--oxblood); }
.summary { position: sticky; top: calc(var(--nav-h) + 2rem); padding: clamp(1.5rem, 3vw, 2.25rem); background: rgba(255, 255, 255, .5); border: 1px solid var(--hair); }
.summary .line-item { grid-template-columns: 56px 1fr auto; padding-block: 1rem; gap: .9rem; }
.summary .line-item img { width: 56px; height: 68px; object-fit: cover; }
.toast-quiet { position: fixed; left: 50%; bottom: 1.75rem; transform: translate(-50%, 1rem); z-index: 2500; background: var(--ink); color: var(--wall); padding: .8rem 1.5rem; font-size: .8rem; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease), transform .6s var(--ease); max-width: calc(100vw - 2rem); }
.toast-quiet.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 16 Footer ------------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--hair); padding: clamp(4rem, 8vw, 7rem) var(--gutter) 2.5rem; font-size: .88rem; }
.site-footer .logo { height: 104px; width: auto; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-bottom { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.75rem; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--stone-text); }
.social-links { display: flex; gap: .25rem; margin-left: -.8rem; }
.newsletter-inline { display: flex; gap: 1rem; align-items: flex-end; border-bottom: 1px solid rgba(28, 28, 28, .4); }
.newsletter-inline:focus-within { border-bottom-color: var(--oxblood); box-shadow: 0 1px 0 var(--oxblood); }
.newsletter-inline input { flex: 1; min-width: 0; background: none; border: 0; padding: .8rem 0; font: 300 1rem/1.4 var(--sans); color: var(--ink); }
.newsletter-inline input:focus { outline: 0; }
.newsletter-inline button { background: none; border: 0; padding: .8rem 0; font: 500 .68rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); cursor: pointer; white-space: nowrap; transition: color .4s var(--ease); }
.newsletter-inline button:hover { color: var(--oxblood); }
.viewing-list { text-align: center; }
.viewing-list form { max-width: 34rem; margin: 2.5rem auto 0; }

/* 17 Motion ------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 18 Responsive ---------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .nav-toggle { display: inline-flex; }
  .nav-panel { display: none; position: fixed; inset: var(--nav-h) 0 0; background: var(--wall); padding: 2.5rem var(--gutter); overflow-y: auto; }
  .nav-panel.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .nav-links a { font: 300 2.1rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; }
  .site-nav.menu-open { background: var(--wall); border-bottom-color: var(--hair); }
}
@media (max-width: 991.98px) {
  :root { --nav-h: 72px; }
  .nav-brand img { height: 38px; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; align-content: center; padding-bottom: 3.5rem; }
  .spotlight::before { background: radial-gradient(ellipse 110% 50% at 50% 66%, rgba(255, 253, 248, 1) 0%, rgba(247, 245, 240, 0) 72%), radial-gradient(ellipse 130% 110% at 50% 45%, rgba(0, 0, 0, 0) 58%, rgba(70, 58, 42, .15) 100%), var(--wall-deep); }
  .hero-art { justify-self: stretch; order: 2; }
  .scroll-cue { display: none; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-row { grid-template-columns: 1fr; }
  .detail-grid, .checkout-grid { grid-template-columns: 1fr; }
  .detail-side, .summary { position: static; }
  .summary { order: -1; }
  .filter-toggle { display: inline-flex; }
  .filters .filter-grid { display: none; margin-top: 1.5rem; }
  .filters.is-open .filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-list-item .ex-media, .ex-list-item .ex-copy { grid-column: 1 / -1; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .row.g-5 { --bs-gutter-x: 2rem; } /* Bootstrap's 3rem gutter would overflow the mobile page margin */
  .art-grid { grid-template-columns: 1fr; }
  .scroller > * { flex-basis: 200px; }
  .event-row { grid-template-columns: 5rem 1fr; gap: 1rem; }
  .event-row .event-type { grid-column: 2; }
  .event-date { font-size: 2rem; }
  .category-grid { grid-template-columns: 1fr; }
  .letter-group { grid-template-columns: 1fr; gap: 1rem; }
  .artist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-stage { inset: 4rem .75rem 8.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 5.75rem; transform: none; }
  .lb-prev { left: calc(50% - 3.25rem); } .lb-next { right: calc(50% - 3.25rem); }
  .lb-caption { bottom: .85rem; }
  .room-scene { padding-top: 3.75rem; }
  .room { width: 100%; }
  .nav-brand span { font-size: 1.12rem; }
  .spec-list > div { grid-template-columns: 6.5rem 1fr; }
  .walkthrough > * { flex-basis: 260px; }
}
@media (max-width: 379.98px) {
  .nav-brand span { display: none; }
}
