/* Marble statue: a pinned stage where a scanned statue comes apart and is restored as you scroll. Flat colours only. */
/* ---------- the pinned stage ---------- */
.st-scroll { position: relative; height: 380vh; height: 380svh; background: var(--black); }
.st-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--black);
}
.st-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.st-captions {
  position: absolute; left: var(--gutter); bottom: clamp(48px, 12vh, 140px);
  width: min(30ch, 40vw);
  pointer-events: none;
}
.st-cap {
  position: absolute; left: 0; bottom: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.st-cap.is-on { opacity: 1; transform: none; }
.st-num {
  font-family: var(--sans); font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
}
.st-line {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3.2vw, 46px); line-height: 1.12; color: var(--white);
}
.st-line em { font-style: italic; color: var(--gold-light); }

.st-credit {
  position: absolute; right: var(--gutter); bottom: 22px; margin: 0;
  font-family: var(--sans); font-size: 11px; letter-spacing: .06em;
  color: rgba(255, 255, 255, .38); max-width: 34ch; text-align: right;
}

@media (max-width: 760px) {
  .st-captions { left: 20px; right: 20px; width: auto; bottom: max(64px, calc(env(safe-area-inset-bottom, 0px) + 56px)); text-align: center; }
  .st-cap { left: 0; right: 0; align-items: center; }
  .st-line { font-size: 26px; }
  .st-credit { left: 20px; right: 20px; text-align: center; max-width: none; bottom: max(16px, env(safe-area-inset-bottom, 0px)); font-size: 10px; }
}

/* Reduced motion: the statue stands whole and still, with no pinning */
@media (prefers-reduced-motion: reduce) {
  .st-scroll { height: auto; }
  .st-stage { position: relative; }
  .st-cap { transition: none; }
}

/* the still poster: under the 3D canvas until the statue is running, and the whole show where it can't */
.st-poster { position: absolute; inset: 0; z-index: 0; transition: opacity .8s ease; }
.st-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-canvas { z-index: 1; }
.st-live .st-poster { opacity: 0; }
