/* Finishes · SB-P05: Ivory gallery ground, the box centre stage, words left, the light handle bottom-right; night for macro. */
html:has(body.page-finishes) { background: var(--ivory); }
body.page-finishes { background: var(--ivory); color: var(--ebony); transition: background-color .9s var(--ease); color-scheme: light; }
body.page-finishes.is-night { background: #0B0B0B; color: var(--ivory); }
.page-finishes .stage { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.page-finishes .stage.is-on { opacity: 1; }
.fx { position: relative; height: calc(850vh + 100vh); }
.fx__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.fx__hit { position: absolute; z-index: 3; left: 34%; right: 18%; top: 16%; bottom: 18%; cursor: grab; border-radius: 12px; touch-action: pan-y; }
.fx__words { position: absolute; z-index: 2; left: var(--m); top: 50%; width: min(32vw, 440px); opacity: 0; visibility: hidden; transform: translate3d(0, calc(-50% + 14px), 0);
  transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s linear .45s; }
.fx__words.is-on { opacity: 1; visibility: visible; transform: translate3d(0, -50%, 0); transition: opacity .55s var(--ease) .35s, transform .8s var(--ease) .35s, visibility 0s; }
.fx__words .eyebrow { color: #5E574D; }
.is-night .fx__words .eyebrow { color: var(--stone); }
.fx__h1 { margin: 12px 0 18px; font: 300 clamp(44px, 5.6vw, 96px)/.98 var(--f-display); }
.fx__h1 span { display: block; } .fx__h1 .d { color: #5E574D; }
.fx__h2 { margin: 12px 0 14px; font: 300 clamp(36px, 3.8vw, 64px)/1 var(--f-display); }
.fx__p { font: 400 clamp(15px, 1.1vw, 18px)/1.6 var(--f-ui); color: #3a352f; }
.is-night .fx__p { color: #d9d2c4; }
.fx__suits { margin-top: 12px; font: italic 400 16px/1.5 var(--f-accent); color: #7A5C2A; }
.fx__handle { position: absolute; z-index: 4; right: var(--m); bottom: 8vh; width: 150px; height: 150px; color: #7A5C2A; cursor: grab; touch-action: none; border-radius: 50%; }
.is-night .fx__handle { color: var(--gold); }
.fx__handle:focus-visible { outline: 2px solid var(--violet, #8A3DFF); outline-offset: 4px; }
.fx__handle svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx__knob { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F5E2B4, #C9A45F 55%, #8E6B2E); box-shadow: 0 0 18px 4px rgba(212, 180, 124, .55);
  transform: rotate(var(--a, 0rad)) translateX(66px); }
.fx__hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 500 11px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; }
.fx__dots { position: absolute; z-index: 2; left: 50%; bottom: 4vh; transform: translateX(-50%); display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.fx__dots li { width: 7px; height: 7px; border-radius: 50%; background: rgba(11, 11, 11, .2); transition: background .3s var(--ease), transform .3s var(--ease); }
.fx__dots li.is-on { background: #7A5C2A; transform: scale(1.3); }
.is-night .fx__dots li { background: rgba(243, 237, 224, .25); } .is-night .fx__dots li.is-on { background: var(--gold); }
.fxs { position: relative; z-index: 1; padding: 14vh var(--m); color: var(--ebony); }   /* see-through: the live swatches draw under it */
.fxs__h2 { font: 300 clamp(36px, 4.4vw, 72px)/1 var(--f-display); margin: 0 0 5vh; }
.fxs__grid { height: clamp(180px, 22vw, 360px); }
.fxs__names { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; margin: 18px 0 0; padding: 0; text-align: center; font: 500 12px/1.4 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: #5E574D; }
.fxs__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.fxs .pill--sec { color: var(--ebony); box-shadow: inset 0 0 0 1px rgba(11, 11, 11, .3); }
.fxs__small { margin-top: 18px; font: 400 14px/1.5 var(--f-ui); color: #5E574D; }
.page-finishes .eq__ask { color: #8a6d3b; }
.page-finishes .foot { position: relative; z-index: 1; }
@media (max-width: 767px), (max-aspect-ratio: 23/20) {
  .fx__hit { left: 4%; right: 4%; top: 12%; bottom: 46%; }
  .fx__words { top: auto; bottom: 20vh; left: var(--m); right: var(--m); width: auto; transform: translate3d(0, 14px, 0); }
  .fx__words.is-on { transform: none; }
  .fx__handle { width: 110px; height: 110px; bottom: 4vh; }
  .fx__knob { transform: rotate(var(--a, 0rad)) translateX(48px); }
  .fxs__names { grid-template-columns: repeat(5, 1fr); font-size: 9px; letter-spacing: .06em; }
}
