/* Concept 1 — Nocturne. A dark gallery; the visitor carries the lamp. */
:root {
  --ground: #0b0a09; --ground-2: #141210; --ink: #efe8dc; --muted: #a79d8f; --accent: #c9a25a;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-text: "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(1.25rem, 4vw, 4rem);
  --viewer-ground: #0b0a09; --viewer-ink: #efe8dc;
}
body { font-weight: 300; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.02em; line-height: .98; }
h2 { font-size: clamp(2.75rem, 6.2vw, 6rem); }

.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--pad); background: var(--ground); }
.bar__brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: .04em; }
.bar nav { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); }
.bar nav a { text-decoration: none; font-size: .95rem; padding: .75rem 0; transition: color .3s; }
.bar nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .5em; }

.btn { display: inline-block; padding: 1rem 1.75rem; background: var(--accent); color: #14100a; text-decoration: none; font-weight: 500; font-size: .95rem; transition: transform .35s var(--ease), background-color .3s; }
.btn:hover { transform: translateY(-3px); background: #dcb873; }
.btn:active { transform: translateY(0); }
.link { font-weight: 400; }
.link:hover { color: var(--accent); }

/* Hero: the brush ring is a lens onto the paintings */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; gap: var(--pad); padding: 6rem var(--pad) clamp(2rem, 5vw, 4.5rem); overflow: clip; }
.hero__text { grid-column: 1; grid-row: 1; display: grid; gap: 1.5rem; justify-items: start; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.6rem, 5.7vw, 5.6rem); max-width: 13ch; }
.hero p { max-width: 38ch; color: var(--ink); }
.lens { grid-column: 2; grid-row: 1; align-self: center; justify-self: center; position: relative; width: min(100%, 78svh); aspect-ratio: 790 / 780; }
.lens__glass { position: absolute; inset: 11%; border-radius: 50%; overflow: hidden; background: var(--ground-2); }
.lens__glass img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.8s ease, transform 9s linear; }
.lens__glass img.is-on { opacity: 1; transform: scale(1); }
.lens__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: turn 140s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

/* Paintings: each hangs alone in the dark and is lit by the lamp */
.works { padding: clamp(5rem, 12vw, 11rem) var(--pad) 0; display: grid; gap: clamp(7rem, 16vw, 15rem); }
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: var(--pad); }
.work__frame { grid-column: 1 / span 7; position: relative; display: block; width: fit-content; max-width: 100%; justify-self: start; cursor: zoom-in; --x: 50%; --y: 0%; --r: 0%; }
.work:nth-child(even) .work__frame { grid-column: 6 / span 7; order: 2; justify-self: end; }
.work--tall .work__frame { grid-column: 2 / span 5; }
.work--tall:nth-child(even) .work__frame { grid-column: 7 / span 5; }
.work__frame img { width: auto; max-width: 100%; max-height: 82svh; }
.work__dim { filter: brightness(.2) saturate(.55); }
.work__frame .work__lit { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover;
  -webkit-mask-image: radial-gradient(circle at var(--x) var(--y), #000 0, #000 calc(var(--r) * .45), transparent var(--r));
          mask-image: radial-gradient(circle at var(--x) var(--y), #000 0, #000 calc(var(--r) * .45), transparent var(--r)); }
.work__text { grid-column: span 5; display: grid; gap: 1rem; justify-items: start; padding-bottom: 1rem; }
.work:nth-child(even) .work__text { grid-column: 1 / span 5; order: 1; }
.work--tall .work__text { grid-column: span 6; }
.work--tall:nth-child(even) .work__text { grid-column: 1 / span 6; }
.work__text h2 { font-size: clamp(2.5rem, 5.4vw, 5.25rem); }
.work__meta { color: var(--muted); font-size: .95rem; }
.work__note { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; max-width: 26ch; }
.work__more { margin-top: .5rem; padding: .75rem 0; font-weight: 400; color: var(--accent); text-decoration: underline; text-underline-offset: .5em; transition: color .3s, transform .4s var(--ease); }
.work__more:hover { color: var(--ink); transform: translateX(.4rem); }

/* In rooms: a sideways walk */
.rooms { padding-top: clamp(8rem, 18vw, 16rem); }
.rooms__head { padding: 0 var(--pad); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--pad); align-items: end; }
.rooms__head p { max-width: 36ch; }
.rooms__strip { margin-top: clamp(2rem, 5vw, 4rem); display: flex; gap: clamp(.75rem, 1.5vw, 1.5rem); overflow-x: auto; scroll-snap-type: x proximity; padding: 0 var(--pad) 1.5rem; scrollbar-width: thin; }
.rooms__strip figure { flex: 0 0 clamp(240px, 27vw, 420px); scroll-snap-align: center; }
.rooms__strip figure:nth-child(even) { margin-top: clamp(2rem, 6vw, 6rem); }
.rooms__strip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; transition: transform 1.2s var(--ease); }
.rooms__strip a { display: block; overflow: hidden; }
.rooms__strip a:hover img { transform: scale(1.04); }
.rooms__strip figcaption { margin-top: .75rem; font-family: var(--font-display); font-size: 1.35rem; }

.about { padding: clamp(8rem, 18vw, 16rem) var(--pad) 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(2rem, 8vw, 9rem); align-items: center; }
.about__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; }
.about__text { display: grid; gap: 2rem; }
.about__bio { display: grid; gap: 1.1rem; max-width: 60ch; }
.about__bio p:first-child { font-family: var(--font-display); font-size: clamp(1.4rem, 1.9vw, 1.7rem); line-height: 1.3; }

.contact { padding: clamp(8rem, 18vw, 16rem) var(--pad); display: grid; gap: 1.75rem; justify-items: start; }
.contact h2 { font-size: clamp(3.25rem, 9vw, 9rem); }
.contact p { max-width: 44ch; }
.contact__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }

.foot { background: var(--ground-2); padding: clamp(3rem, 7vw, 6rem) var(--pad) 2rem; display: grid; justify-items: center; gap: 1rem; text-align: center; }
.foot img { width: min(26rem, 70vw); }
.foot p { color: var(--muted); font-size: .9rem; }

.viewer__title { font-weight: 300; }
.viewer__ask { font-weight: 500; }

@media (max-width: 860px) {
  .bar nav a:nth-child(n+3) { display: none; }
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: 5.5rem; gap: 1.5rem; }
  .lens { grid-column: 1; grid-row: 1; width: min(100%, 46svh); }
  .hero__text { grid-row: 2; }
  .work, .rooms__head, .about { grid-template-columns: 1fr; }
  .work .work__frame, .work .work__text { grid-column: 1 / -1 !important; order: 0 !important; }
  .work--tall .work__frame img { max-height: 70svh; }
  .rooms__strip figure { flex-basis: 68vw; }
}
@media (prefers-reduced-motion: reduce) { .lens__ring { animation: none; } }
