/* Night Gallery — Scott Beckman Art (v1) */
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --wall: #13110f;
  --wall-2: #1a1714;
  --wall-3: #221e1a;
  --ink: #efe8dc;
  --muted: #b0a698;
  --dim: #8c8274;
  --brass: #cfac74;
  --brass-soft: rgba(207, 172, 116, .5);
  --line: rgba(239, 232, 220, .13);
  --light: 255, 228, 186;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-art: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 18px 30px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Faint plaster grain + warm falloff on the wall (behind everything) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(var(--light), .045), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .85 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.7rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 4.1rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
em, i { font-style: italic; }
h1 em, h2 em { font-style: italic; color: var(--brass); }
::selection { background: var(--brass); color: var(--wall); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--wall); padding: 12px 18px; font: 500 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
main, .site-header, .site-footer { position: relative; z-index: 2; }
main, .site-footer { overflow-x: clip; }

/* small-caps museum labels */
.label, .eyebrow { font: 500 .75rem/1.5 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; color: var(--brass); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: clamp(1.12rem, 1.5vw, 1.3rem); font-weight: 300; line-height: 1.65; color: var(--ink); }
.muted { color: var(--muted); }

/* ---------- Cursor spotlight (desktop only; falls on the wall, behind the art) ---------- */
.torch { position: fixed; left: 0; top: 0; width: 900px; height: 900px; margin: -450px 0 0 -450px; z-index: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--light), .075), rgba(var(--light), .025) 55%, transparent);
  opacity: 0; transition: opacity .8s ease; will-change: transform; }
.torch.on { opacity: 1; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(15, 13, 11, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .5s ease; }
.site-header.scrolled::before { opacity: 1; }
.site-header .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; max-width: none; }
.brand { display: flex; flex-direction: column; line-height: 1.1; min-height: 44px; justify-content: center; }
.brand .name { font: 400 1.22rem/1.1 var(--serif); letter-spacing: .01em; }
.brand .tag { font: 500 .75rem/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav a { position: relative; display: flex; align-items: center; min-height: 44px; font: 500 .74rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; right: .22em; bottom: 9px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .js .menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; min-width: 44px; padding: 0 2px; background: none; border: 0; color: var(--ink); font: 500 .75rem var(--sans); letter-spacing: .24em; text-transform: uppercase; cursor: pointer; position: relative; z-index: 3; }
  .menu-btn .bars { position: relative; width: 22px; height: 9px; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
  .menu-btn .bars::before { top: 0; } .menu-btn .bars::after { bottom: 0; }
  .menu-open .menu-btn .bars::before { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-btn .bars::after { transform: translateY(-4px) rotate(-45deg); }
  .js .nav { position: fixed; inset: 0; z-index: 2; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 90px var(--gutter) 40px; background: rgba(13, 11, 9, .97);
    opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
  .js .menu-open .nav { opacity: 1; visibility: visible; transition: opacity .45s ease; }
  .js .nav a { font: 400 2.6rem/1.15 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s var(--ease); }
  .js .menu-open .nav a { opacity: 1; transform: none; }
  .js .menu-open .nav a:nth-child(2) { transition-delay: .05s; } .js .menu-open .nav a:nth-child(3) { transition-delay: .1s; } .js .menu-open .nav a:nth-child(4) { transition-delay: .15s; }
  .js .nav a::after { bottom: 4px; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  html:not(.js) .nav { gap: 16px; flex-wrap: wrap; }
  html:not(.js) .site-header { position: absolute; }
}

/* ---------- Buttons & links ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 30px; border: 1px solid var(--brass-soft); color: var(--ink); font: 500 .74rem var(--sans); letter-spacing: .24em; text-transform: uppercase; cursor: pointer; background: none; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 120%, rgba(var(--light), .32), rgba(207, 172, 116, .12) 70%); opacity: 0; transition: opacity .5s ease; }
.btn:hover::before, .btn:focus-visible::before { opacity: 1; }
.btn.solid { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.btn.solid::before { background: radial-gradient(circle at 50% 120%, #fff, #f6eedf 70%); }
.btn[disabled] { opacity: .5; cursor: wait; }
.link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 500 .74rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.link .arr { display: inline-block; width: 34px; height: 1px; background: var(--brass); position: relative; transition: transform .45s var(--ease); transform-origin: left; }
.link .arr::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--brass); border-right: 1px solid var(--brass); transform: rotate(45deg); }
.link:hover .arr { transform: scaleX(1.35); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 34px; }

/* ---------- Hero: one painting under a spotlight ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(24px, 4vw, 64px); padding: 100px var(--gutter) 44px; max-width: 1600px; margin: 0 auto; align-items: end; }
.hero-copy { position: relative; z-index: 3; padding-bottom: 6px; grid-column: 1; grid-row: 1; }
.hero .stage { grid-column: 2; grid-row: 1; }
.hero h1 { font-size: clamp(3.4rem, 7.4vw, 8.2rem); line-height: .9; letter-spacing: -.025em; margin: 0 0 .32em; }
.hero h1 .pre { display: block; font: 500 .74rem/1.5 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--brass); margin-bottom: 26px; }
.hero h1 .ln { display: block; }
.hero h1 em { color: var(--ink); }
.hero .lead { max-width: 30ch; color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.stage { position: relative; height: calc(100svh - 150px); min-height: 420px; }
.stage::before { content: ""; position: absolute; left: -15%; right: -15%; top: -18%; bottom: -12%; pointer-events: none;
  background: radial-gradient(48% 52% at 50% 44%, rgba(var(--light), .16), rgba(var(--light), .05) 55%, transparent 75%); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.slide img { max-height: 100%; max-width: 100%; width: auto; height: auto; box-shadow: var(--shadow-art); }
.js .slide img { opacity: 0; transform: scale(1.035); transition: opacity 1.8s ease, transform 0s linear 1.8s; }
.js .slide.is-on img { opacity: 1; transform: scale(1); transition: opacity 1.8s ease, transform 10s cubic-bezier(.25, .6, .3, 1); }
html:not(.js) .slide:not(:first-child) { display: none; }
.now { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: clamp(28px, 5vh, 56px); padding-top: 18px; border-top: 1px solid var(--line); }
.now .cap { min-height: 3.6em; position: relative; flex: 1; }
.now .cap-item { position: absolute; left: 0; bottom: 0; }
.js .now .cap-item { opacity: 0; transition: opacity .8s ease; }
.js .now .cap-item.is-on { opacity: 1; transition-delay: .5s; }
html:not(.js) .now .cap-item:not(:first-child) { display: none; }
.now .t { display: block; font: italic 400 1.35rem/1.2 var(--serif); }
.now .m { display: block; font: 500 .75rem/1.6 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.now .ctrl { display: flex; align-items: center; gap: 6px; }
.count { font: 500 .75rem var(--sans); letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 4.6em; text-align: right; }
.ctrl button { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid transparent; color: var(--muted); cursor: pointer; border-radius: 50%; transition: color .3s, border-color .3s; }
.ctrl button:hover { color: var(--ink); border-color: var(--line); }
.ctrl svg { width: 14px; height: 14px; fill: currentColor; }
.no-js-hide { display: none; }
.js .no-js-hide { display: flex; }
html:not(.js) .no-js-hide { display: none !important; }
/* Lights come up on arrival */
.house-lights { position: fixed; inset: 0; z-index: 60; background: #0a0908; pointer-events: none; opacity: 0; }
.js .house-lights { animation: lights-up 1.9s ease .15s both; }
@keyframes lights-up { from { opacity: 1; } to { opacity: 0; } }
.js .hero-copy > * { animation: rise 1.4s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .9s; }
.js .hero-copy > :nth-child(1) { animation-delay: .6s; }
.js .hero-copy > :nth-child(3) { animation-delay: 1.15s; }
.js .hero-copy > :nth-child(4) { animation-delay: 1.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; width: 1px; height: 44px; overflow: hidden; z-index: 3; }
.scroll-cue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, var(--brass)); animation: cue 2.6s ease-in-out 2.4s infinite both; transform: translateY(-100%); }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: 92px; padding-bottom: 28px; gap: 0; min-height: 0; }
  .hero-copy { grid-column: 1; grid-row: 2; padding-top: 6px; }
  .hero .stage { grid-column: 1; grid-row: 1; }
  .stage { height: 58svh; min-height: 300px; margin: 0 calc(var(--gutter) * -.4) 26px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5.4rem); }
  .hero h1 .pre { margin-bottom: 16px; }
  .now { margin-top: 22px; flex-wrap: wrap; gap: 6px 20px; }
  .now .cap { flex-basis: 100%; min-height: 3.1em; }
  .now .ctrl { margin-left: -12px; }
  .reveal-label { flex-wrap: wrap; letter-spacing: .16em; }
  .scroll-cue { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 13vw, 190px) 0; position: relative; }
.section.tight { padding-top: clamp(40px, 6vw, 80px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(56px, 8vw, 110px); }
.section-head p { color: var(--muted); max-width: 46ch; margin: 0; }
.section-head h2 { margin: 0; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- The wall: paintings in their own pools of light ---------- */
.frame { position: relative; display: block; }
.frame img { position: relative; z-index: 1; box-shadow: var(--shadow-art); }
.frame::before { /* spotlight pool behind */
  content: ""; position: absolute; left: -22%; right: -22%; top: -26%; bottom: -18%; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 46%, rgba(var(--light), .15), rgba(var(--light), .045) 55%, transparent 74%); }
.frame::after { /* the dark before the light comes on */
  content: ""; position: absolute; inset: 0; z-index: 2; background: #0b0a09; pointer-events: none; opacity: 0; }
.js .lit .frame::before { opacity: 0; transition: opacity 2.2s ease .1s; }
.js .lit .frame::after { opacity: .9; transition: opacity 1.8s ease .25s; }
.js .lit .frame { transform: translateY(26px); transition: transform 1.6s var(--ease); }
.js .lit .tag-label { opacity: 0; transform: translateY(10px); transition: opacity 1.1s ease .9s, transform 1.1s var(--ease) .9s; }
.js .lit.is-lit .frame::before { opacity: 1; }
.js .lit.is-lit .frame::after { opacity: 0; }
.js .lit.is-lit .frame, .js .lit.is-lit .tag-label { transform: none; opacity: 1; }
.js .fade { opacity: 0; transform: translateY(22px); transition: opacity 1.2s ease, transform 1.3s var(--ease); }
.js .fade.is-lit { opacity: 1; transform: none; }

.tag-label { font-size: .9rem; line-height: 1.5; max-width: 260px; }
.tag-label .no { display: block; font: 500 .75rem var(--sans); letter-spacing: .26em; color: var(--brass); margin-bottom: 14px; }
.tag-label .t { display: block; font: italic 400 1.7rem/1.15 var(--serif); color: var(--ink); margin-bottom: 10px; }
.tag-label .a { display: block; color: var(--ink); font-weight: 400; }
.tag-label .m { display: block; color: var(--muted); font-weight: 300; }
.tag-label .avail { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font: 500 .75rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.tag-label .avail::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 10px var(--brass); }

/* home: a walk along the wall */
.walk { display: grid; gap: clamp(110px, 15vw, 220px); }
.bay { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: end; }
.bay .frame { grid-column: 2 / span 7; justify-self: center; }
.bay .frame img { max-height: 78vh; width: auto; }
.bay .tag-label { grid-column: 10 / span 3; padding-bottom: 8px; }
.bay.r .frame { grid-column: 5 / span 7; grid-row: 1; }
.bay.r .tag-label { grid-column: 1 / span 3; grid-row: 1; text-align: right; justify-self: end; }
.bay.wide .frame { grid-column: 1 / span 9; }
.bay.wide.r .frame { grid-column: 4 / span 9; }
.bay.wide .tag-label { grid-column: 10 / span 3; }
.bay.wide.r .tag-label { grid-column: 1 / span 3; }
.walk-end { text-align: center; margin-top: clamp(90px, 12vw, 160px); }
@media (max-width: 820px) {
  .bay, .bay.r { grid-template-columns: 1fr; gap: 26px; }
  .bay .frame, .bay.r .frame, .bay.wide .frame, .bay.wide.r .frame { grid-column: 1; grid-row: auto; }
  .bay .frame img { max-height: 72vh; }
  .bay .tag-label, .bay.r .tag-label, .bay.wide .tag-label, .bay.wide.r .tag-label { grid-column: 1; grid-row: auto; text-align: left; justify-self: start; padding: 0; }
  .tag-label .no { margin-bottom: 8px; }
  .tag-label .t { font-size: 1.5rem; margin-bottom: 6px; }
}

/* ---------- Hidden message: shine a light across the painting ---------- */
.secret { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.secret .copy p { color: var(--muted); }
.secret .copy p strong { color: var(--ink); font-weight: 400; }
.secret .date { font: italic 400 1.15rem var(--serif); color: var(--ink); }
@media (max-width: 900px) { .secret { grid-template-columns: 1fr; } }
.reveal { position: relative; overflow: hidden; background: #000; box-shadow: var(--shadow-art); user-select: none; -webkit-user-select: none; touch-action: pan-y; --pos: 18%; }
.reveal > img { width: 100%; pointer-events: none; }
.reveal .top { position: absolute; inset: 0; pointer-events: none; transform: translateZ(0);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(var(--pos) - 7%), transparent calc(var(--pos) + 1%));
  mask-image: linear-gradient(90deg, #000 0, #000 calc(var(--pos) - 7%), transparent calc(var(--pos) + 1%)); }
.reveal .top img { width: 100%; height: 100%; object-fit: cover; }
.reveal .dim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 0, transparent calc(var(--pos) + 1%), rgba(0, 0, 0, .28) calc(var(--pos) + 12%)); }
.reveal input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; z-index: 3; }
.reveal .beam { position: absolute; inset: 0; pointer-events: none; transform: translateX(var(--pos)); will-change: transform; z-index: 2; }
.reveal .beam::before { content: ""; position: absolute; top: 0; bottom: 0; left: -110px; width: 220px; mix-blend-mode: screen;
  background: radial-gradient(50% 70% at 50% 50%, rgba(var(--light), .3), rgba(var(--light), .08) 60%, transparent 80%); }
.reveal .beam::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: linear-gradient(transparent, rgba(var(--light), .85) 30%, rgba(var(--light), .85) 70%, transparent); }
.reveal .knob { position: absolute; top: 50%; left: -26px; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(15, 13, 11, .72); border: 1px solid rgba(var(--light), .6); color: rgb(var(--light)); box-shadow: 0 0 30px rgba(var(--light), .35); }
.reveal .knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.reveal input:focus-visible ~ .beam .knob { outline: 2px solid var(--brass); outline-offset: 4px; }
.reveal-label { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font: 500 .75rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.reveal-label .hint { color: var(--brass); }
.reveal-pair { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(28px, 4vw, 56px); align-items: end; }
@media (max-width: 820px) { .reveal-pair { grid-template-columns: 1fr; } }

/* ---------- Available originals ---------- */
.originals { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(64px, 7vw, 110px); }
.original .hang { height: clamp(320px, 38vw, 540px); display: flex; align-items: center; justify-content: center; margin-bottom: 40px; }
.original .hang .frame img { max-height: clamp(320px, 38vw, 540px); width: auto; }
@media (max-width: 820px) { .original .hang { height: auto; } .original .hang .frame img { max-height: 70vh; } }
.original .photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.original .photos a { display: block; aspect-ratio: 1; overflow: hidden; position: relative; }
.original .photos a[hidden] { display: none; }
.original .photos img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .4s ease, transform .8s var(--ease); }
.original .photos a:hover img, .original .photos a:focus-visible img { opacity: 1; transform: scale(1.04); }
.original .photos .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13, 11, 9, .55); font: 500 .75rem var(--sans); letter-spacing: .22em; text-transform: uppercase; z-index: 1; }
.original .info { max-width: none; margin-top: 34px; display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; }
.original h3 { font-style: italic; margin: 0 0 4px; grid-column: 1 / -1; }
.original .specs { grid-column: 1 / -1; color: var(--muted); margin: 0; }
.original .status { grid-column: 1 / -1; margin: 10px 0 14px; }
.original .frame-note { grid-column: 1 / -1; color: var(--muted); font-weight: 300; max-width: 46ch; }
.original .link { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 820px) { .originals { grid-template-columns: 1fr; } }

/* ---------- About teaser / portrait ---------- */
.artist { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 50px clamp(40px, 7vw, 120px); align-items: center; }
.artist .frame img { width: 100%; filter: saturate(.9); }
.quote { margin: 0 0 34px; font: italic 400 clamp(1.7rem, 3vw, 2.7rem)/1.22 var(--serif); color: var(--ink); text-indent: -.42em; }
.quote cite { display: block; margin-top: 22px; font: 500 .75rem var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--brass); font-style: normal; text-indent: 0; }
.artist p { color: var(--muted); }
@media (max-width: 820px) { .artist { grid-template-columns: 1fr; } }

/* ---------- Work page ---------- */
.page-head { padding-top: clamp(140px, 18vw, 230px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-head h1 { margin-bottom: .25em; }
.page-head .lead { color: var(--muted); max-width: 52ch; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; margin-bottom: clamp(60px, 8vw, 110px); }
.filters button { position: relative; min-height: 44px; padding: 0; background: none; border: 0; color: var(--muted); font: 500 .75rem var(--sans); letter-spacing: .22em; text-transform: uppercase; cursor: pointer; transition: color .3s; }
.filters button sup { font-size: .75rem; letter-spacing: .05em; margin-left: 4px; color: var(--dim); }
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--ink); }
.filters button::after { content: ""; position: absolute; left: 0; right: .22em; bottom: 8px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.filters button[aria-pressed="true"]::after { transform: scaleX(1); }
.collection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(80px, 9vw, 130px) clamp(36px, 5vw, 80px); }
.collection .art { margin: 0; display: flex; flex-direction: column; }
.collection .art[hidden] { display: none; }
.collection .hang { height: clamp(280px, 30vw, 420px); display: flex; align-items: center; justify-content: center; }
.collection .frame { max-height: 100%; display: flex; }
.collection .frame img { max-height: clamp(280px, 30vw, 420px); width: auto; transition: transform .9s var(--ease); }
.collection .frame::before { transition: opacity .9s ease, transform .9s var(--ease); }
.collection .art a.frame:hover img { transform: translateY(-6px); }
.collection .tag-label { margin-top: 34px; max-width: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.collection .tag-label .t { font-size: 1.35rem; margin: 0; }
.collection .tag-label .m { text-align: right; font-size: .82rem; white-space: nowrap; }
.collection .tag-label .avail { margin-top: 2px; }
.wide-span { grid-column: span 2; }
@media (max-width: 1000px) { .collection { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .collection { grid-template-columns: 1fr; gap: 72px; }
  .collection .hang { height: auto; }
  .collection .frame img { max-height: 68vh; }
  .wide-span { grid-column: auto; }
}
.commission-cta { margin-top: clamp(100px, 12vw, 170px); display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; border-top: 1px solid var(--line); padding-top: 50px; }
.commission-cta h2 { margin: 0; max-width: 18ch; }
.section > .commission-cta { margin-top: 0; }
@media (max-width: 700px) { .commission-cta { grid-template-columns: 1fr; } }

/* PhotoSwipe in the night palette */
.pswp { --pswp-bg: #0b0a09; --pswp-icon-color: #efe8dc; --pswp-icon-color-secondary: #0b0a09; }
.pswp__custom-caption { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(92vw, 640px); text-align: center; color: var(--muted); font: 500 .75rem/1.6 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.pswp__custom-caption strong { display: block; font: italic 400 1.35rem/1.3 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 4px; }

/* ---------- Commissions ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 60px clamp(40px, 7vw, 120px); align-items: center; padding-top: clamp(130px, 15vw, 200px); }
.intro .frame { max-width: 460px; justify-self: center; }
.intro p:not(.lead):not(.eyebrow) { color: var(--muted); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro .frame { max-width: 340px; } }

.scale-wall { display: flex; align-items: center; justify-content: space-between; gap: 18px; --in: clamp(3px, .48vw, 6.6px); padding: 70px 0 10px; position: relative; }
.scale-wall::before { content: ""; position: absolute; left: 0; right: 0; top: calc(70px + 24 * var(--in)); height: 1px; background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent); }
.canvas { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.canvas .hangbox { height: calc(48 * var(--in)); display: flex; align-items: center; }
.canvas .piece { width: calc(var(--w) * var(--in)); height: calc(var(--h) * var(--in)); position: relative; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .9); }
.canvas .piece::before { content: ""; position: absolute; left: -60%; right: -60%; top: -50%; bottom: -30%; z-index: -1; background: radial-gradient(50% 50% at 50% 45%, rgba(var(--light), .1), transparent 72%); }
.canvas .piece img { width: 100%; height: 100%; object-fit: cover; }
.canvas .sz { margin-top: 22px; font: 500 .75rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.canvas .pr { font: 400 1.6rem/1.2 var(--serif); margin-top: 4px; }
.canvas .canvas-caption { height: 70px; }
.scale-note { color: var(--muted); margin-top: 46px; font-size: .95rem; }
@media (max-width: 760px) {
  .scale-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 46px 12px; --in: 2.7px; padding-top: 30px; }
  .scale-wall::before { display: none; }
  .canvas .hangbox { height: auto; }
  .canvas .pr { font-size: 1.3rem; }
  .canvas .sz { letter-spacing: .12em; font-size: .75rem; margin-top: 16px; }
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.steps li { counter-increment: step; padding: 34px 28px 40px 0; border-bottom: 1px solid var(--line); position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.steps li::before { content: counter(step, upper-roman); display: block; font: italic 400 2.2rem/1 var(--serif); color: var(--brass); margin-bottom: 22px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li, .steps li + li { padding: 28px 18px 30px 0; border-left: 0; }
  .steps li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li, .steps li:nth-child(even) { padding: 24px 0 26px; border-left: 0; display: grid; grid-template-columns: 64px 1fr; align-items: baseline; }
  .steps li::before { margin: 0; font-size: 1.7rem; }
}

.faq { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 84px; cursor: pointer; font: 400 clamp(1.3rem, 2.2vw, 1.8rem)/1.2 var(--serif); padding: 18px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; position: relative; width: 18px; height: 18px; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--brass); transition: transform .45s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--brass); }
.faq .answer { padding: 0 0 30px; max-width: 70ch; color: var(--muted); }
.faq .answer em { color: var(--ink); }

/* ---------- Forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 32px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font: 500 .75rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.form input:not([type="range"]), .form select, .form textarea { width: 100%; min-height: 50px; background: transparent; border: 0; border-bottom: 1px solid rgba(239, 232, 220, .28); border-radius: 0; color: var(--ink); font: 300 1.12rem/1.5 var(--sans); padding: 10px 0; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; cursor: pointer; }
.form select option { background: var(--wall-2); color: var(--ink); }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--brass); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 1px solid var(--brass); outline-offset: 6px; }
.form ::placeholder { color: var(--dim); }
.form .note { color: var(--muted); font-size: .88rem; font-weight: 300; margin: 22px 0 0; max-width: 56ch; }
.form-status { min-height: 1.5em; margin: 12px 0 0; font-size: .95rem; }
.form-status.ok { color: var(--brass); }
.form-status.err { color: #e9a08a; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; gap: 28px; } }
.form-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 50px clamp(40px, 7vw, 120px); }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 50px clamp(40px, 6vw, 100px); align-items: end; padding-top: clamp(130px, 15vw, 200px); }
.about-hero .frame img { width: 100%; }
.bio { columns: 2; column-gap: clamp(40px, 5vw, 80px); color: var(--muted); }
.bio p:first-child { color: var(--ink); }
.bio p { break-inside: avoid; }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } .bio { columns: 1; } }
.big-quote { text-align: center; max-width: 1000px; margin: 0 auto; }
.big-quote .quote { font-size: clamp(1.9rem, 4.4vw, 3.6rem); text-indent: 0; }

/* ---------- Social ---------- */
.social { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.social a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 500 .75rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.social a:hover { color: var(--ink); }
.social svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(70px, 9vw, 120px) 0 36px; background: linear-gradient(rgba(10, 9, 8, 0), rgba(10, 9, 8, .7)); }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.foot .sig { font: 400 clamp(2.2rem, 4.6vw, 3.8rem)/1 var(--serif); margin: 0 0 14px; }
.foot .sig em { color: var(--brass); }
.foot .sub { color: var(--muted); margin: 0; }
.foot h2 { font: 500 .75rem var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--brass); margin: 0 0 14px; }
.foot nav { display: flex; flex-direction: column; }
.foot nav a { min-height: 44px; display: flex; align-items: center; color: var(--muted); transition: color .3s; }
.foot nav a:hover { color: var(--ink); }
.foot .social { flex-direction: column; gap: 0; }
.fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: .82rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot .brandcol { grid-column: 1 / -1; } }

/* =========================================================================
   Merged pieces (from Look 3), restyled for the night gallery
   ========================================================================= */

/* Hero: the painting on show opens the large view (size, zoom) */
.slide a.view { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.slide a.view img { cursor: zoom-in; }
.js .slide:not(.is-on) { pointer-events: none; }
.slide a.view:focus-visible { outline: none; }
.slide a.view:focus-visible img { outline: 2px solid var(--brass); outline-offset: 6px; }
.now .zoom-hint { color: var(--brass); }
html:not(.js) .now .zoom-hint { display: none; }

/* Hidden message: big, full-width, with "The painting / The message" buttons */
.secret { display: block; }
.secret-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.secret-head h2 { margin: 0; }
.secret-head .copy p { max-width: 46ch; }
.secret-head .copy .link { margin-top: 4px; }
@media (max-width: 860px) { .secret-head { grid-template-columns: 1fr; } }
.reveal-wrap { position: relative; max-width: calc(80vh * 1.5); margin: 0 auto; }
/* keep the round handle fully inside the painting at both ends (--k = 0..1, set by night.js) */
.js .reveal .knob { left: calc(-52px * var(--k, .5)); }
.reveal-pair .reveal-wrap { max-width: none; }
.reveal-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 20px; }
.reveal-row .reveal-label { margin: 0; flex: 1 1 260px; justify-content: flex-end; flex-wrap: wrap; gap: 6px 18px; }
.toggle { display: inline-flex; padding: 4px; border: 1px solid var(--brass-soft); border-radius: 999px; background: rgba(15, 13, 11, .6); }
.toggle button { position: relative; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 .75rem var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: color .35s ease, background-color .35s ease, box-shadow .35s ease; }
.toggle button:hover { color: var(--ink); }
.toggle button[aria-pressed="true"] { color: var(--wall); background: rgb(var(--light)); box-shadow: 0 0 22px rgba(var(--light), .35); }
html:not(.js) .toggle, html:not(.js) .reveal-row .hint { display: none; }
.reveal-pair { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 820px) { .reveal-pair { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .secret .reveal-wrap { margin: 0 calc(-1 * var(--gutter)); }
  .secret .reveal-row { padding: 0 var(--gutter); }
  .reveal-row .reveal-label { justify-content: flex-start; }
  .toggle button { padding: 0 14px; letter-spacing: .14em; }
}

/* Available originals: one large room per painting, alternating sides */
.rooms-av { display: grid; gap: clamp(100px, 13vw, 190px); }
.room-av { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .6fr); gap: 40px clamp(36px, 5vw, 90px); align-items: center; }
.room-av.flip { grid-template-columns: minmax(0, .6fr) minmax(0, 1.6fr); }
.room-av.flip .av-photos { order: 2; }
.av-photos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 14px; align-content: start; }
.av-photos .main { grid-row: 1 / span 3; align-self: start; }
.av-photos .main img { width: 100%; }
.av-photos .thumb { position: relative; display: block; aspect-ratio: 1; overflow: hidden; z-index: 1; }
.av-photos .thumb[hidden] { display: none; }
.av-photos .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .8; box-shadow: var(--shadow-art); transition: opacity .4s ease, transform .8s var(--ease); }
.av-photos .thumb:hover img, .av-photos .thumb:focus-visible img { opacity: 1; transform: scale(1.04); }
.av-photos .more { position: absolute; inset: auto 0 0 0; padding: 10px 12px; background: linear-gradient(transparent, rgba(13, 11, 9, .85)); font: 500 .75rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); z-index: 1; }
.av-info.tag-label { max-width: 34ch; font-size: 1rem; }
.av-info .no { margin-bottom: 18px; text-transform: uppercase; }
.av-info h3 { font-style: italic; font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0 0 12px; }
.av-info .specs { color: var(--muted); margin: 0; }
.av-info .status { margin: 8px 0 18px; }
.av-info .frame-note { color: var(--muted); font-weight: 300; }
.js .lit.room-av .tag-label { transition-delay: .5s; }
@media (max-width: 860px) {
  .room-av, .room-av.flip { grid-template-columns: 1fr; }
  .room-av.flip .av-photos { order: 0; }
  .av-info.tag-label { max-width: none; }
}
@media (max-width: 600px) {
  .av-photos { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 10px; }
  .av-photos .main { grid-column: 1 / -1; grid-row: auto; }
}

/* Privacy page and small text links */
.legal { max-width: 68ch; color: var(--muted); }
.legal h2 { color: var(--ink); font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 1.6em 0 .4em; }
.legal h2:first-child { margin-top: 0; }
.legal a, .fine a, .note a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reduced motion: everything in place, instantly ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .house-lights { display: none; }
  .js .fade, .js .lit .frame, .js .lit .tag-label { opacity: 1 !important; transform: none !important; }
  .js .lit .frame::before { opacity: 1 !important; }
  .js .lit .frame::after { opacity: 0 !important; }
  .js .slide img { transform: none !important; }
  .scroll-cue, .torch { display: none; }
}
