/* The final product narrative: a frame relay, then light falling into the footer. */
.final-motion{--motion-paper:#f1eee6;--motion-ink:#25251f;position:relative;color:var(--motion-ink);background:var(--motion-paper);height:200svh;min-height:1200px;isolation:isolate}
.final-motion-sticky{position:sticky;top:0;height:100svh;min-height:600px;padding:32px var(--pad) 26px;display:flex;flex-direction:column;overflow:hidden;background:var(--motion-paper);color:var(--motion-ink)}
.final-motion-top{display:flex;justify-content:space-between;gap:20px;border-top:1px solid currentColor;padding-top:17px;font-size:9px;line-height:1.5;letter-spacing:.1em;flex-shrink:0}
.final-motion-body{display:grid;grid-template-columns:38% 62%;align-items:center;flex:1;min-height:0}
.final-motion-copy{position:relative;z-index:3;padding:12px 0 25px;pointer-events:none}
.final-motion-kicker{font-size:9px;line-height:1.5;letter-spacing:.12em;margin-bottom:25px}
.final-motion-copy h2{font-size:clamp(53px,6.1vw,96px);line-height:.98;letter-spacing:-.065em;min-height:1.96em}
.final-motion-note{font-size:13px;line-height:1.65;margin:26px 0;min-height:3.3em}
.final-motion-cta{pointer-events:auto;gap:30px;min-height:38px;letter-spacing:0;white-space:nowrap}
.final-motion-cta>[data-motion-cta-label]{font-size:12px}
.final-motion-visual{position:relative;min-width:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.final-motion-mount{position:relative;width:100%;height:min(66svh,730px);min-height:320px}
.final-motion-mount>img,.final-motion-mount>canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.final-motion-mount>img{pointer-events:none;opacity:1;visibility:visible}
.final-motion-mount>canvas{z-index:1;opacity:0;visibility:hidden}
.final-motion-mount[data-ready=true]>img{opacity:0;visibility:hidden}
.final-motion-mount[data-ready=true]>canvas{opacity:1;visibility:visible}
.final-motion-status{position:absolute;left:0;right:0;bottom:8%;min-height:32px;text-align:center;font-size:8px;letter-spacing:.1em;line-height:1.6;z-index:2;pointer-events:none}
.final-motion-status button{pointer-events:auto;display:block;font-size:11px;letter-spacing:0;border-bottom:1px solid currentColor;margin:10px auto 0;padding:4px}
.final-motion-status button[hidden]{display:none}
.final-motion-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:48px;flex-shrink:0}
.final-motion-chapters{display:flex;gap:24px}
.final-motion-chapters button{display:flex;align-items:center;gap:9px;padding:12px 0;min-height:44px;font-size:10px;white-space:nowrap}
.final-motion-chapters i{display:block;width:6px;height:6px;border:1px solid currentColor;border-radius:50%;flex-shrink:0}
.final-motion-chapters button[aria-pressed=true] i{background:currentColor}
.final-motion-chapters button[aria-pressed=true] span{text-decoration:underline;text-underline-offset:5px}
.final-motion-scroll,.final-motion-warning{font-size:8px;line-height:1.5;letter-spacing:.06em;text-align:right}
.last-light-runway{height:180svh;min-height:1080px;background:#a9353b}
.last-light-runway .final-motion-body{grid-template-columns:44% 56%}
.last-light-runway .final-motion-copy h2{font-size:clamp(49px,5.6vw,86px)}
.last-light-runway .final-motion-mount{height:min(64svh,700px)}
.final-motion a:focus-visible,.final-motion button:focus-visible,.final-motion canvas:focus-visible{outline:2px solid currentColor;outline-offset:5px}
@media(min-width:681px) and (max-height:700px){.final-motion-sticky{padding-top:20px;padding-bottom:15px}.final-motion-copy h2{font-size:clamp(48px,5.8vw,78px)}.final-motion-kicker{margin-bottom:18px}.final-motion-note{margin:20px 0}.final-motion-status{bottom:3%}}
@media(max-width:680px){
  .final-motion{height:200svh;min-height:1300px}
  .last-light-runway{height:180svh;min-height:1170px}
  .final-motion-sticky{height:100svh;min-height:650px;padding:24px var(--pad) 18px}
  .final-motion-top{font-size:7px;letter-spacing:.06em;padding-top:14px;gap:10px}
  .final-motion-body,.last-light-runway .final-motion-body{display:flex;flex-direction:column;align-items:stretch;justify-content:start}
  .final-motion-copy{padding:30px 0 0;flex-shrink:0}
  .final-motion-kicker{font-size:8px;margin-bottom:14px}
  .final-motion-copy h2,.last-light-runway .final-motion-copy h2{font-size:clamp(42px,12.2vw,74px);line-height:.98}
  .final-motion-note{font-size:11px;line-height:1.6;margin:16px 0 13px;min-height:3.2em}
  .final-motion-cta{font-size:11px;min-height:30px;padding-bottom:7px;gap:34px}
  .final-motion-cta>[data-motion-cta-label]{font-size:11px}
  .final-motion-visual{flex:1;min-height:220px;margin-top:2px}
  .final-motion-mount,.last-light-runway .final-motion-mount{height:100%;min-height:210px;flex:1;width:110%;margin-left:-5%}
  .final-motion-status{bottom:7px;font-size:7px;min-height:15px;letter-spacing:.08em}
  .final-motion-bottom{flex-direction:column;align-items:stretch;gap:1px;min-height:65px}
  .final-motion-chapters{gap:0;justify-content:space-between}
  .final-motion-chapters button{font-size:9px;gap:7px}
  .final-motion-scroll,.final-motion-warning{font-size:7px;text-align:left;letter-spacing:.025em}
}
@media(prefers-reduced-motion:reduce){.final-motion,.last-light-runway{height:auto;min-height:0}.final-motion-sticky{position:relative;height:min(900px,100svh);min-height:700px}.final-motion-scroll{display:none}.last-light-runway{background:var(--motion-paper)}}
html:not(.js) .final-motion{height:auto;min-height:0}
html:not(.js) .final-motion-sticky{position:relative;height:min(900px,100svh);min-height:650px}
html:not(.js) .final-motion-chapters,html:not(.js) [data-motion-count],html:not(.js) .final-motion-status,html:not(.js) .final-motion-scroll{display:none}
html:not(.js) .last-light-runway{--motion-paper:#a9353b;--motion-ink:#fff}

/* A single closing beat; the colour progression now belongs to the opening. */
.last-light-runway{--motion-paper:#a9353b;--motion-ink:#fff;height:auto;min-height:0;background:var(--motion-paper)}
.last-light-runway .final-motion-sticky{position:relative;height:min(900px,100svh);min-height:650px}
.last-light-runway .final-motion-bottom{min-height:26px;justify-content:flex-end}
@media(max-width:680px){.last-light-runway{height:auto;min-height:0}.last-light-runway .final-motion-sticky{min-height:700px;height:100svh}.last-light-runway .final-motion-bottom{min-height:26px}}

/* Let each collection frame hold for longer on a mobile swipe. */
@media (max-width:680px) and (prefers-reduced-motion:no-preference), (max-width:1000px) and (pointer:coarse) and (prefers-reduced-motion:no-preference){
  html.js .characters-runway{height:300svh;min-height:1800px}
}
