/* Two ways to make the statue's words big. Preview pages only: statue-type-1.html and statue-type-4.html. */

/* ---------- 1. Huge type behind the statue ----------
   The caption fills the screen behind the sculpture; the marble stands, breaks and rebuilds in front of it. */
.st-type-behind .st-canvas { z-index: 1; }
.st-type-behind .st-captions {
  z-index: 0;
  left: 0; right: 0; bottom: auto; top: 50%;
  width: auto;
  transform: translateY(-50%);
  text-align: center;
}
.st-type-behind .st-cap { left: 0; right: 0; bottom: auto; top: 0; transform: translate3d(0, -50%, 0) translateY(24px); align-items: center; }
.st-type-behind .st-cap.is-on { transform: translate3d(0, -50%, 0); }
.st-type-behind .st-line {
  display: block;
  padding: 0 var(--gutter);
  font-size: clamp(56px, 10.5vw, 190px);
  line-height: .96;
  letter-spacing: -.02em;
  color: var(--white);
}
.st-type-behind .st-line em { color: var(--gold); }
.st-type-behind .st-cap { transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
@media (max-width: 760px) {
  .st-type-behind .st-captions { left: 0; right: 0; bottom: auto; }
  .st-type-behind .st-line { font-size: clamp(46px, 14.5vw, 72px); }
}

/* ---------- 4. Gold letters, with the statue showing through them ----------
   Giant gold words fill the stage. The statue is only visible inside the letters,
   so the marble appears set into the gold. fx/statue-mask.js draws the words and the mask. */
.st-type-mask .st-captions {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);   /* kept for screen readers */
}
.st-type-mask .st-gold { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; transition: opacity .6s var(--ease); }
.st-type-mask .st-canvas {
  z-index: 1;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: opacity .6s var(--ease);
}
.st-type-mask.is-swapping .st-gold, .st-type-mask.is-swapping .st-canvas { opacity: 0; }

/* readable over the statue: the same words again in front, as a fine outline only (fx/statue-front.js) */
.st-type-behind .st-captions-front { z-index: 2; pointer-events: none; }
.st-type-behind .st-captions-front .st-line,
.st-type-behind .st-captions-front .st-line em {
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* dark ink: invisible against the black where the solid words already show, crisp over the pale marble */
  -webkit-text-stroke: 1.6px rgba(10, 10, 10, .9);
}
.st-type-behind .st-captions-front .st-line em { -webkit-text-stroke-color: var(--gold-deep); }
@media (max-width: 760px) {
  .st-type-behind .st-captions-front .st-line, .st-type-behind .st-captions-front .st-line em { -webkit-text-stroke-width: 1.2px; }
}

/* ---------- Words around the statue (homepage) ----------
   Each caption is three phrases, set huge and placed in the open space around the sculpture:
   the first upper left, the second to the right, the third lower left in gold italic.
   They sit behind the statue but clear of it, so nothing covers them while it stands. */
.st-type-around .st-canvas { z-index: 1; }
.st-type-around .st-captions { position: absolute; inset: 0; width: auto; z-index: 0; pointer-events: none; }
.st-type-around .st-cap { position: absolute; inset: 0; display: block; transform: none; }
.st-type-around .st-line { display: block; position: absolute; inset: 0; }
.st-type-around .ph {
  position: absolute;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.2vw, 96px); line-height: 1; letter-spacing: -.02em;
  color: var(--white); white-space: nowrap;
  opacity: 0; transform: translate3d(0, 22px, 0);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
}
.st-type-around .ph em { font-style: italic; color: var(--gold); }
.st-type-around .ph1 { right: 63%; top: 24%; text-align: right; }
.st-type-around .ph2 { left: 63%; top: 44%; }
.st-type-around .ph3 { right: 63%; top: 64%; text-align: right; }
.st-type-around .st-cap.is-on .ph { opacity: 1; transform: none; }
.st-type-around .st-cap.is-on .ph2 { transition-delay: .12s; }
.st-type-around .st-cap.is-on .ph3 { transition-delay: .24s; }
@media (max-width: 760px) {
  /* phones: two phrases above the statue, the third below it */
  .st-type-around .ph { font-size: clamp(30px, 9.4vw, 44px); left: 0; right: 0; text-align: center; }
  .st-type-around .ph1 { top: 9%; }
  .st-type-around .ph2 { top: calc(9% + 1.1em); }
  .st-type-around .ph3 { top: auto; bottom: 11%; }
}
@media (prefers-reduced-motion: reduce) {
  .st-type-around .ph { transition: none; }
}

/* spread out to the page edges and sat in front of the pieces, so flying marble never covers a word */
.st-type-around .st-captions { z-index: 2; }
.st-type-around .ph { font-size: clamp(34px, 4.3vw, 82px); white-space: normal; max-width: 25vw; line-height: 1.02; }
.st-type-around .ph1 { left: var(--gutter); right: auto; top: 16%; text-align: left; }
.st-type-around .ph2 { right: var(--gutter); left: auto; top: 42%; text-align: right; }
.st-type-around .ph3 { left: var(--gutter); right: auto; top: auto; bottom: 16%; text-align: left; }
@media (max-width: 760px) {
  .st-type-around .ph { max-width: none; left: 0; right: 0; text-align: center; font-size: clamp(28px, 8.6vw, 40px); }
  .st-type-around .ph1 { top: 8%; bottom: auto; }
  .st-type-around .ph2 { top: calc(8% + 1.15em); bottom: auto; }
  .st-type-around .ph3 { top: auto; bottom: 10%; }
}

/* closer in: each phrase hugs the statue, fully on screen, always in front of the flying pieces */
.st-type-around .st-captions { z-index: 3; }
.st-type-around .ph { font-size: clamp(30px, 3.6vw, 68px); white-space: nowrap; max-width: none; }
.st-type-around .ph1 { left: auto; right: 59%; top: 25%; bottom: auto; text-align: right; }
.st-type-around .ph2 { right: auto; left: 59%; top: 45%; bottom: auto; text-align: left; }
.st-type-around .ph3 { left: auto; right: 59%; top: 65%; bottom: auto; text-align: right; }
@media (max-width: 760px) {
  .st-type-around .ph { white-space: normal; left: 0; right: 0; text-align: center; font-size: clamp(28px, 8.6vw, 40px); }
  .st-type-around .ph1 { top: 8%; }
  .st-type-around .ph2 { top: calc(8% + 1.15em); }
  .st-type-around .ph3 { top: auto; bottom: 10%; }
}
/* a soft dark halo keeps each letter crisp where a piece drifts behind it */
.st-type-around .ph { text-shadow: 0 0 10px rgba(10, 10, 10, .85), 0 0 26px rgba(10, 10, 10, .7); }

/* slower: the break plays over a much longer stretch of scroll */
.st-scroll { height: 640vh; height: 640svh; }
/* never cut off: each phrase keeps to its side of the statue and wraps if the window is narrow */
@media (min-width: 761px) {
  .st-type-around .ph { white-space: normal; }
  .st-type-around .ph1, .st-type-around .ph3 { max-width: calc(41% - var(--gutter)); }
  .st-type-around .ph2 { max-width: calc(41% - var(--gutter)); }
}
@media (prefers-reduced-motion: reduce) { .st-scroll { height: auto; } }
/* slower (owner, 2026-11-07): the break plays over more scroll */
.st-scroll { height: 820vh; height: 820svh; }
@media (prefers-reduced-motion: reduce) { .st-scroll { height: auto; } }

/* Phones and computers with Reduce Motion on still get all three phrases (owner, 2026-11-07): the stage keeps
   its scroll length and stays pinned, the statue stands still, and the phrases simply fade from one to the next. */
@media (prefers-reduced-motion: reduce) {
  .st-scroll { height: 820vh !important; height: 820svh !important; }
  .st-stage { position: sticky !important; top: 0 !important; height: 100vh !important; height: 100svh !important; }
  .st-type-around .ph { transform: none !important; transition: opacity .6s ease !important; }
}

/* phones (owner, 2026-11-07): about half the scrolling, so each phrase comes up sooner */
@media (max-width: 760px) {
  .st-scroll { height: 760vh !important; height: 760svh !important; }
  .st-type-around .ph { transition: opacity 1.7s var(--ease), transform 1.9s var(--ease) !important; }
  .st-type-around .st-cap.is-on .ph2 { transition-delay: .25s !important; }
  .st-type-around .st-cap.is-on .ph3 { transition-delay: .5s !important; }
}

/* The statue is a 10 second animation now, not a long scroll: one screen tall on every device */
.st-scroll { height: 100vh !important; height: 100svh !important; }
