/* 10 · Closing */
.closing { position: relative; isolation: isolate; padding-bottom: clamp(100px, 12vw, 160px); }
.closing__sky { position: relative; height: clamp(340px, 54vw, 660px); overflow: hidden; z-index: -1;
  -webkit-mask-image: linear-gradient(transparent, #000000 16%, #000000 70%, transparent); mask-image: linear-gradient(transparent, #000000 16%, #000000 70%, transparent); }
.closing__sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing__sky .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: opacity 500ms ease; }
.closing__sky .still--clouds { top: auto; right: auto; bottom: -4%; height: auto; width: 130%; max-width: none; left: -15%; object-fit: initial; }
.closing__copy { margin-top: clamp(-200px, -14vw, -90px); display: grid; justify-items: center; text-align: center; gap: 22px; position: relative; }
.closing__sky.is-live .still { opacity: 0; }
.closing__sky.is-live canvas { opacity: 1; }
/* The ascent (wide screens with motion and WebGL): the stage pins while scroll carries the camera up out of the
   cloud sea into the painted sky; the words arrive only at the end, and the buttons fold in beneath them. */
.closing.is-ascend { padding-bottom: 0; }
.closing.is-ascend .closing__track { height: 175svh; }
.closing.is-ascend .closing__stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.closing.is-ascend .closing__sky { position: absolute; inset: 0; height: auto;
  -webkit-mask-image: linear-gradient(transparent, #000000 9%, #000000 72%, transparent); mask-image: linear-gradient(transparent, #000000 9%, #000000 72%, transparent); }
.closing.is-ascend .closing__sky .still--clouds { display: none; }
.closing.is-ascend .closing__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(229, 231, 234,0) 46%, rgba(229, 231, 234,.8) 74%, var(--paper) 96%); }
.closing.is-ascend .closing__copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(40px, 8vh, 96px); margin: 0 auto;
  opacity: var(--w, 0); filter: blur(calc((1 - var(--w, 0)) * 8px)); transform: translate3d(0, calc((1 - var(--w, 0)) * 26px), 0); }
.closing.is-ascend .closing__copy::before { top: -110px; height: 560px; width: min(1200px, 140%); background: radial-gradient(closest-side, rgba(229, 231, 234,.86), rgba(229, 231, 234,.5) 60%, rgba(229, 231, 234,0)); }
.closing.is-ascend .closing__copy .closing__actions { opacity: var(--cl, 0); transform: translate3d(0, calc((1 - var(--cl, 0)) * -18px), 0) scale(calc(0.96 + var(--cl, 0) * 0.04)); }
.closing.is-ascend:not([data-words]) .closing__copy { pointer-events: none; }
/* tabbing into the buttons before the words have arrived brings them in at once */
.closing.is-ascend .closing__copy:focus-within, .closing.is-ascend .closing__copy:focus-within .closing__actions { opacity: 1; filter: none; transform: none; }
.closing__copy::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -60px; translate: -50% 0; width: min(1100px, 130%); height: 440px; background: radial-gradient(closest-side, rgba(229, 231, 234,.92), rgba(229, 231, 234,0)); pointer-events: none; }
.closing__copy .lede { text-align: center; max-width: 46ch; }
.closing__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
