.gallery-page { overflow: hidden; height: 100vh; height: 100dvh; background: #ebe6de; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

.intro {
  position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 20px; pointer-events: none; transition: opacity .2s linear;
  background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(246, 243, 238, .92), rgba(246, 243, 238, .55) 60%, rgba(246, 243, 238, 0));
}
.intro .eyebrow { font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.intro h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 9vw, 136px); line-height: .9; margin: 0; letter-spacing: .01em; }
.intro .statement { font-family: var(--serif); font-size: clamp(18px, 2.2vw, 26px); max-width: 560px; margin: 26px 0 0; color: #3b3732; font-style: italic; }
.intro .hint { margin-top: 48px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mouse { width: 22px; height: 34px; border: 1px solid var(--muted); border-radius: 12px; position: relative; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--muted); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }

/* caption bar for one painting: sits under it, never over the art */
.placard {
  position: fixed; z-index: 10; left: 50%; bottom: 24px; width: min(860px, calc(100vw - 32px));
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px 32px;
  padding: 18px 26px; background: rgba(251, 249, 245, .96); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(40, 30, 20, .35);
  opacity: 0; transform: translate(-50%, 10px); transition: opacity .5s ease, transform .5s ease;
}
.placard.show { opacity: 1; transform: translate(-50%, 0); }
.p-artist { grid-column: 1; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 0; }
.p-title { grid-column: 1; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.05; margin: 0; }
.p-meta { grid-column: 1; font-size: 12px; line-height: 1.5; color: #4a453f; margin: 0; white-space: normal; }
.p-price { grid-column: 2; grid-row: 1 / span 3; font-family: var(--serif); font-size: 26px; margin: 0; white-space: nowrap; }
.p-hint { display: none; }
.p-actions { grid-column: 3; grid-row: 1 / span 3; display: flex; gap: 10px; }
.p-actions .btn { padding: 12px 18px; font-size: 11px; }

.dock { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 15; transition: opacity .4s; }
.dock.hide { opacity: 0; pointer-events: none; }
.progress { position: fixed; left: 0; right: 0; bottom: 0; height: 2px; z-index: 15; background: rgba(0, 0, 0, .05); }
.progress span { display: block; height: 100%; width: 0; background: var(--oak); }

.loader { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity .8s; }
.loader span { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.loader.done { opacity: 0; pointer-events: none; }

.h1-more, .intro-shop { display: none; }
@media (max-width: 640px) {
  /* phone: just the name, the shop button and the walk-in hint, close together */
  .intro .eyebrow { margin-bottom: 14px; }
  .intro .statement { font-size: 18px; margin-top: 18px; max-width: 320px; }
  .intro h1 { font-size: 46px; line-height: 1; }
  .h1-more { display: inline; }
  .intro-shop { display: inline-flex; white-space: nowrap; margin-top: 40px; pointer-events: auto; }
  .intro.gone .intro-shop { pointer-events: none; }
  .intro .hint { margin-top: 32px; }
  .dock:not(.walking) { opacity: 0; pointer-events: none; }
  .placard { grid-template-columns: 1fr auto; padding: 14px 16px; gap: 4px 16px; }
  .p-title { font-size: 22px; }
  .p-price { grid-column: 2; grid-row: 1 / span 2; font-size: 20px; }
  .p-actions { grid-column: 1 / span 2; grid-row: auto; margin-top: 8px; }
  .dock { bottom: 22px; }
}

.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(ellipse at 50% 55%, rgba(0,0,0,0) 55%, rgba(30,22,14,.28) 100%); }

/* solid bar so the name stays readable over the ceiling track lights */
.gallery-page .site-header { background: #f4f0e9; border-bottom: 1px solid var(--line); padding-top: 16px; padding-bottom: 16px; }


.group-bar { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 15; }
.group-bar .btn { background: rgba(251, 249, 245, .92); }
.group-bar .btn:hover { background: var(--ink); color: var(--paper); }
