/* /story: click-through chapter viewer, story-v3 motion build.
   Normal page flow, no pinned section, no scroll hijack. Nine living scenes stacked in one
   stage; only the open one (.scene.on) animates. Loops use transform / opacity only. */

.story { padding: 4px 0 40px; background: var(--paper, #FFFFFF); }
#story { scroll-margin-top: calc(var(--nav-h) + 12px); }
.page-head h1 { scroll-margin-top: calc(var(--nav-h) + 12px); }
.story-in { display: grid; grid-template-rows: auto auto; row-gap: 10px; }

/* ---------- Stage ---------- */
.story-art-wrap { display: flex; align-items: center; justify-content: center; container-type: inline-size; }
.story-art-box {
  width: 100%;
  height: clamp(260px, 44vh, 420px);
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y; /* native vertical scroll stays; we read horizontal swipes */
}
@supports (height: 100svh) { .story-art-box { height: clamp(260px, 44svh, 420px); } }
.stage { position: relative; height: min(100%, 116.6cqw); aspect-ratio: 480 / 560; perspective: 1200px; }
.sunw { position: absolute; left: 12.9%; top: 15%; width: 74.2%; aspect-ratio: 1; will-change: transform; }
.sun {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, #FFFFFF 0%, #EEF5FC 34%, #CFE6FA 62%, #A7D3F5 100%);
  transform-origin: center; will-change: transform;
}
.scenes { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.scene {
  position: absolute; inset: 0; container-type: size;
  opacity: 0; visibility: hidden; transform: scale(0.965) translateY(6px);
  transition: opacity 480ms cubic-bezier(.2,.7,.2,1), transform 560ms cubic-bezier(.2,.7,.2,1), visibility 0s linear 480ms;
}
.scene.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s, 0s, 0s; will-change: transform, opacity; }
.story-art { width: 100%; height: 100%; overflow: visible; display: block; }
.story-art text { user-select: none; }

/* ---------- Captions: stacked in one grid cell, text exits up, enters from below ---------- */
.story-side { display: grid; row-gap: 14px; touch-action: pan-y; }
.story-caps { display: grid; }
.cap { grid-area: 1 / 1; visibility: hidden; pointer-events: none; }
.cap > * { opacity: 0; transform: translateY(18px); transition: opacity 320ms ease, transform 520ms cubic-bezier(.2,.8,.2,1); }
.cap > :nth-child(2) { transition-delay: 70ms; }
.cap > :nth-child(3) { transition-delay: 140ms; }
.cap.on { visibility: visible; pointer-events: auto; }
.cap.on > * { opacity: 1; transform: none; }
.cap.out { visibility: visible; }
.cap.out > * { opacity: 0; transform: translateY(-16px); transition-duration: 220ms, 300ms; transition-delay: 0s; }
.story-side .n { font-family: var(--head); font-weight: 600; color: var(--royal, #1D4FA3); margin: 0 0 -8px; font-size: 0.9rem; line-height: 1.25em; }
.roll { display: inline-block; height: 1.25em; overflow: hidden; vertical-align: top; }
.rcol { display: block; transition: transform 520ms cubic-bezier(.2,.8,.2,1); }
.rcol span { display: block; height: 1.25em; line-height: 1.25em; }
.cap h2 { font-size: clamp(1.55rem, 6.2vw, 2.4rem); margin-bottom: 6px; }
.cap p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 30em; }
.cap .cta { display: grid; gap: 8px; margin-top: 12px; }
.cap .cta .btn { min-height: 50px; padding: 12px 18px; font-size: 1.05rem; position: relative; }
.cap .cta .btn:first-child::after {
  content: ""; position: absolute; inset: -3px; border-radius: 999px; border: 3px solid var(--royal, #1D4FA3); opacity: 0; pointer-events: none;
}
html.js .cap.on .cta .btn:first-child::after { animation: ring 2.4s cubic-bezier(.2,.6,.3,1) 900ms infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.16); opacity: 0; } }
.story-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }

/* Prev / Next: big, thumb friendly */
.snav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.snav .btn { min-height: 54px; padding: 12px 16px; font-size: 1.1rem; justify-content: center; }
.snav .btn svg { width: 22px; height: 22px; }
.snav .btn[disabled] { opacity: 0.38; cursor: default; pointer-events: none; }

/* Dots: progress rings */
.sdots { display: flex; justify-content: center; gap: 2px; }
.sdots button { width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sdots svg { width: 24px; height: 24px; display: block; overflow: visible; margin: 0 auto; }
@media (max-width: 440px) { .sdots { gap: 0; } .sdots button { width: calc((100vw - 32px) / 9); padding: 10px 0; } }
.db { fill: var(--paper, #FFFFFF); stroke: rgba(15,42,92,0.38); stroke-width: 2.4; transform: scale(.62); transform-box: fill-box; transform-origin: center; transition: fill 300ms ease, stroke 300ms ease, transform 300ms cubic-bezier(.2,.8,.2,1); }
.dr { fill: none; stroke: var(--royal, #1D4FA3); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; transition: stroke-dashoffset 620ms cubic-bezier(.2,.8,.2,1), opacity 200ms; }
.sdots button:hover .db { stroke: var(--ink); }
.sdots button.done .db { fill: var(--sky, #A7D3F5); stroke: var(--ink); }
.sdots button[aria-current="step"] .db { fill: var(--royal, #1D4FA3); stroke: var(--ink); transform: scale(.78); }
.sdots button[aria-current="step"] .dr { stroke-dashoffset: 0; opacity: 1; }
.sdots button:focus-visible { outline: 3px solid var(--ink); outline-offset: -2px; border-radius: 8px; }

.sskip { justify-self: center; font-family: var(--head); font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 6px 10px; min-height: 44px; display: inline-flex; align-items: center; }
.sskip:hover { color: var(--royal, #1D4FA3); }

/* ---------- Ambient ---------- */
@keyframes sunb { from { transform: scale(1); } to { transform: scale(1.05); } }
html.js .story .sun { animation: sunb 7s ease-in-out infinite alternate; }
.story.idle .sun, .story.idle .scene.on * { animation-play-state: paused !important; }

/* Animated SVG bits: CSS transforms on SVG need a box */
.mote, .ha, .pop, .card, .mol, .flash, .puff, .tick, .edge, .cloth, .wipe, .spark, .drop, .drip, .streaks, .tipw, .tiph, .pillw, .pillh, .pencil, .rise, .bob, .lglint, .wl, .zoom {
  transform-box: fill-box; transform-origin: center;
}
.card, .edge, .rise, .bob, .tipw, .tiph, .pencil, .lglint, .wl, .streaks, .drop, .drip, .ha { transform-origin: 0 0; }

/* ---------- 1. Old window: drafts, crack glint, dust ---------- */
@keyframes draft {
  0% { stroke-dasharray: 26 100; stroke-dashoffset: 156; opacity: 0; }
  14% { opacity: 1; }
  80% { opacity: 1; }
  100% { stroke-dasharray: 26 100; stroke-dashoffset: 22; opacity: 0; }
}
@keyframes wob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.wl path { stroke-dasharray: 12 9; }
html.js .scene.on .wl path { animation: draft 2.6s cubic-bezier(.45,.05,.55,.95) infinite; animation-delay: var(--o, 0s); }
html.js .scene.on .wl { animation: wob 3.1s ease-in-out infinite; animation-delay: var(--o, 0s); }

.glint { stroke-dasharray: 14 100; stroke-dashoffset: 14; opacity: 0; }
@keyframes glint { 0% { stroke-dashoffset: 132; opacity: 1; } 30% { stroke-dashoffset: 10; opacity: 1; } 31%, 100% { stroke-dashoffset: 10; opacity: 0; } }
html.js .scene.on .glint { animation: glint 4.2s ease-in-out infinite; }
.s1 .spark { transform: scale(0); }
@keyframes sparkle { 0%, 22% { transform: scale(0) rotate(0deg); } 28% { transform: scale(1) rotate(20deg); } 36%, 100% { transform: scale(0) rotate(40deg); } }
html.js .scene.on.s1 .spark { animation: sparkle 4.2s ease-in-out infinite; }

.mote { opacity: .55; }
@keyframes mote {
  0% { transform: translate(0, 0); opacity: 0; }
  20% { opacity: .9; }
  50% { transform: translate(5px, -12px); }
  80% { opacity: .7; }
  100% { transform: translate(-4px, -26px); opacity: 0; }
}
html.js .scene.on .mote { animation: mote var(--d, 7s) ease-in-out infinite; animation-delay: var(--o, 0s); }

/* ---------- 2. Heat through old glass, the "Drafty" pill pops ---------- */
.halo { opacity: .8; }
@keyframes halo { from { opacity: .5; } to { opacity: 1; } }
html.js .scene.on .halo { animation: halo 2.6s ease-in-out infinite alternate; }
.ha { transform: translateY(-70px); }
@keyframes heat {
  0% { transform: translateY(24px) scale(1.25); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(-165px) scale(.55); opacity: 0; }
}
html.js .scene.on .ha { animation: heat 2.4s cubic-bezier(.3,.4,.4,1) infinite; animation-delay: var(--o, 0s); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
html.js .scene.on .pop { animation: pop 600ms cubic-bezier(.2,.8,.2,1) 250ms both; }

/* ---------- 3. Glass cross section slides in, callouts draw ---------- */
@keyframes slidein { from { transform: translateX(260px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fin { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
html.js .scene.on .card { animation: slidein 750ms cubic-bezier(.2,.8,.2,1) 150ms both; }
html.js .scene.on .zoom { animation: pop 500ms cubic-bezier(.2,.8,.2,1) 500ms both; }
.co line, .lowe { stroke-dasharray: 100; }
html.js .scene.on .co line { animation: draw 450ms cubic-bezier(.2,.8,.2,1) both; }
html.js .scene.on .co text { animation: fin 350ms ease both; }
html.js .scene.on .co1 line { animation-delay: 900ms; } html.js .scene.on .co1 text { animation-delay: 1150ms; }
html.js .scene.on .co2 line { animation-delay: 1350ms; } html.js .scene.on .co2 text { animation-delay: 1600ms; }
html.js .scene.on .co3 line { animation-delay: 1800ms; } html.js .scene.on .co3 text { animation-delay: 2050ms; }
html.js .scene.on .co4 line { animation-delay: 2250ms; } html.js .scene.on .co4 text { animation-delay: 2500ms; }
html.js .scene.on .lowe { animation: draw 500ms cubic-bezier(.2,.8,.2,1) 1800ms both; }
html.js .scene.on .pane, html.js .scene.on .spacer { animation: fin 400ms ease 650ms both; }
html.js .scene.on .spacer { animation-delay: 2250ms; }
@keyframes mol { 0% { transform: translate(0, 0); } 33% { transform: translate(4px, -6px); } 66% { transform: translate(-3px, 5px); } 100% { transform: translate(0, 0); } }
html.js .scene.on .mol { animation: mol var(--d, 7s) ease-in-out infinite; animation-delay: var(--o, 0s); }
.ray { stroke-dasharray: 100; }
@keyframes ray { 0% { stroke-dasharray: 18 100; stroke-dashoffset: 140; } 45% { stroke-dasharray: 18 100; stroke-dashoffset: 14; } 100% { stroke-dasharray: 18 100; stroke-dashoffset: 14; } }
html.js .scene.on .ray { animation: ray 3s cubic-bezier(.4,0,.5,1) 2600ms infinite both; }
@keyframes flash { 0%, 19% { transform: scale(0); } 25% { transform: scale(1.3); } 33%, 100% { transform: scale(0); } }
html.js .scene.on .flash { animation: flash 3s ease-out 2600ms infinite both; }

/* ---------- 4. Worn frame wipes to clean vinyl ---------- */
.s4 .new { clip-path: inset(0 0 0 0); }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
html.js .scene.on .new { animation: wipe 1300ms cubic-bezier(.65,0,.35,1) 500ms both; }
.edge { opacity: 0; }
@keyframes edge { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { transform: translateX(276px); opacity: 0; } }
html.js .scene.on .edge { animation: edge 1300ms cubic-bezier(.65,0,.35,1) 500ms both; }
.puff { opacity: 0; transform: scale(0); }
@keyframes puff { 0% { transform: scale(.2) translateY(0); opacity: 0; } 30% { transform: scale(1) translateY(-4px); opacity: .85; } 100% { transform: scale(1.9) translateY(-16px); opacity: 0; } }
html.js .scene.on .puff { animation: puff 900ms ease-out both; animation-delay: var(--o, 1s); }
html.js .scene.on .tick { animation: pop 550ms cubic-bezier(.2,.8,.2,1) 2000ms both; }

/* ---------- 5. Tilt in to clean (HTML sashes on a hinge, 8 s cycle) ---------- */
.win3d { position: absolute; inset: 0; perspective: 170cqw; perspective-origin: 50% 42%; }
.sash3 { position: absolute; transform-origin: 50% 100%; will-change: transform; }
.sash3 svg { width: 100%; height: 100%; overflow: visible; display: block; }
.sashU { left: 27.083%; top: 19.643%; width: 45.833%; height: 31.071%; }
.sashL { left: 27.083%; top: 48.571%; width: 45.833%; height: 32.5%; }
@keyframes tiltU {
  0%, 4% { transform: rotateX(0deg); animation-timing-function: cubic-bezier(.34,1.56,.64,1); }
  14% { transform: rotateX(-28deg); }
  30% { transform: rotateX(-28deg); animation-timing-function: cubic-bezier(.4,0,.2,1); }
  38%, 100% { transform: rotateX(0deg); }
}
@keyframes tiltL {
  0%, 40% { transform: rotateX(0deg); animation-timing-function: cubic-bezier(.34,1.56,.64,1); }
  50% { transform: rotateX(-36deg); }
  68% { transform: rotateX(-36deg); animation-timing-function: cubic-bezier(.4,0,.2,1); }
  76%, 100% { transform: rotateX(0deg); }
}
html.js .scene.on .sashU { animation: tiltU 8s linear infinite; }
html.js .scene.on .sashL { animation: tiltL 8s linear infinite; }
.cloth { opacity: 0; transform: translate(30px, 125px); }
@keyframes clothU {
  0%, 15% { transform: translate(20px, 20px) rotate(0deg); opacity: 0; }
  17% { transform: translate(20px, 20px) rotate(-8deg); opacity: 1; }
  20% { transform: translate(168px, 30px) rotate(8deg); }
  23% { transform: translate(24px, 70px) rotate(-8deg); }
  26% { transform: translate(170px, 110px) rotate(8deg); }
  29% { transform: translate(30px, 125px) rotate(-6deg); opacity: 1; }
  31%, 100% { transform: translate(30px, 125px) rotate(0deg); opacity: 0; }
}
@keyframes clothL {
  0%, 51% { transform: translate(20px, 20px) rotate(0deg); opacity: 0; }
  53% { transform: translate(20px, 20px) rotate(-8deg); opacity: 1; }
  56% { transform: translate(168px, 30px) rotate(8deg); }
  59% { transform: translate(24px, 74px) rotate(-8deg); }
  62% { transform: translate(170px, 116px) rotate(8deg); }
  65% { transform: translate(30px, 132px) rotate(-6deg); opacity: 1; }
  67%, 100% { transform: translate(30px, 132px) rotate(0deg); opacity: 0; }
}
html.js .scene.on .sashU .cloth { animation: clothU 8s ease-in-out infinite; }
html.js .scene.on .sashL .cloth { animation: clothL 8s ease-in-out infinite; }
.wipe { transform: translateX(-130%) skewX(-18deg); }
@keyframes sheenU { 0%, 16% { transform: translateX(-130%) skewX(-18deg); } 30%, 100% { transform: translateX(270%) skewX(-18deg); } }
@keyframes sheenL { 0%, 52% { transform: translateX(-130%) skewX(-18deg); } 66%, 100% { transform: translateX(270%) skewX(-18deg); } }
html.js .scene.on .sashU .wipe { animation: sheenU 8s cubic-bezier(.4,0,.2,1) infinite; }
html.js .scene.on .sashL .wipe { animation: sheenL 8s cubic-bezier(.4,0,.2,1) infinite; }
.sash3 .spark { transform: scale(0); }
@keyframes sparkU { 0%, 31% { transform: scale(0) rotate(0deg); } 34% { transform: scale(1) rotate(15deg); } 38%, 100% { transform: scale(0) rotate(30deg); } }
@keyframes sparkL { 0%, 67% { transform: scale(0) rotate(0deg); } 70% { transform: scale(1) rotate(15deg); } 74%, 100% { transform: scale(0) rotate(30deg); } }
html.js .scene.on .sashU .spark { animation: sparkU 8s ease-out infinite; }
html.js .scene.on .sashL .spark { animation: sparkL 8s ease-out infinite; }
html.js .scene.on .sash3 .sp2 { animation-delay: 240ms; }

/* ---------- 6. Rain beads and slides off ---------- */
@keyframes drop {
  0% { transform: translateY(-90px) scale(1, 1.5); opacity: 0; animation-timing-function: ease-in; }
  5% { opacity: 1; }
  9% { transform: translateY(0) scale(1, 1); }
  11% { transform: scale(1.3, .8); }
  14% { transform: scale(1); }
  46% { transform: translateY(0) scale(1); animation-timing-function: ease-in; }
  82% { transform: translateY(150px) scale(.85, 1.35); opacity: 1; }
  94%, 100% { transform: translateY(190px) scale(.7, 1.4); opacity: 0; }
}
.drop .tail { opacity: 0; }
@keyframes tail { 0%, 48% { opacity: 0; } 62% { opacity: .85; } 88% { opacity: .85; } 94%, 100% { opacity: 0; } }
html.js .scene.on .drop { animation: drop var(--d, 5s) linear infinite; animation-delay: var(--o, 0s); }
html.js .scene.on .drop .tail { animation: tail var(--d, 5s) linear infinite; animation-delay: var(--o, 0s); }
@keyframes streak { from { transform: translateY(0); } to { transform: translateY(186px); } }
html.js .scene.on .streaks { animation: streak 900ms linear infinite; }
@keyframes sheenx { 0% { transform: translateX(-130%) skewX(-18deg); } 42%, 100% { transform: translateX(270%) skewX(-18deg); } }
html.js .scene.on.s6 .wipe { animation: sheenx 5s cubic-bezier(.4,0,.2,1) 800ms infinite; }
@keyframes drip {
  0% { transform: scale(.2) translateY(0); opacity: 0; }
  30% { transform: scale(1) translateY(0); opacity: 1; }
  42% { transform: scale(1) translateY(0); animation-timing-function: ease-in; }
  76% { transform: scale(.9, 1.3) translateY(60px); opacity: 1; }
  86%, 100% { transform: scale(.9, 1.3) translateY(74px); opacity: 0; }
}
html.js .scene.on .drip { animation: drip 3.2s linear infinite; animation-delay: var(--o, 0s); }

/* ---------- 7. Pick a color ---------- */
.s7 .fr { transition: fill 520ms ease; }
html.js .scene.on.s7 .wipe { animation: sheenx 6s cubic-bezier(.4,0,.2,1) 1200ms infinite; }
.swatches { position: absolute; left: 50%; bottom: 1.5%; transform: translateX(-50%); display: flex; gap: 2.4cqw; }
.swatches button {
  background: none; border: 0; padding: 1cqw; display: grid; justify-items: center; gap: 2.6cqw; cursor: pointer; -webkit-tap-highlight-color: transparent;
  font-family: var(--body); font-weight: 700; font-size: clamp(9px, 2.7cqw, 13px); line-height: 1; color: var(--muted); border-radius: 10px;
}
.swatches button:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.swatches i { display: block; width: 8.4cqw; height: 8.4cqw; border-radius: 50%; border: .6cqw solid var(--ink); box-shadow: 0 0 0 0 var(--paper, #FFFFFF), 0 0 0 0 var(--royal, #1D4FA3); transition: transform 360ms cubic-bezier(.2,.8,.2,1), box-shadow 360ms cubic-bezier(.2,.8,.2,1); }
.swatches [aria-pressed="true"] i { transform: scale(1.14); box-shadow: 0 0 0 .8cqw var(--paper, #FFFFFF), 0 0 0 1.7cqw var(--royal, #1D4FA3); }
.swatches [aria-pressed="true"] { color: var(--ink); }

/* ---------- 8. Measured to your opening ---------- */
.blade { clip-path: inset(0 0 0 0); }
@keyframes extw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes exth { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tipw { from { transform: translateX(-264px); } to { transform: translateX(0); } }
@keyframes tiph { from { transform: translateY(-392px); } to { transform: translateY(0); } }
html.js .scene.on .bw { animation: extw 1400ms cubic-bezier(.2,.8,.2,1) 300ms both; }
html.js .scene.on .tipw { animation: tipw 1400ms cubic-bezier(.2,.8,.2,1) 300ms both; }
html.js .scene.on .pillw { animation: pop 500ms cubic-bezier(.2,.8,.2,1) 300ms both; }
html.js .scene.on .bh { animation: exth 1400ms cubic-bezier(.2,.8,.2,1) 2200ms both; }
html.js .scene.on .tiph { animation: tiph 1400ms cubic-bezier(.2,.8,.2,1) 2200ms both; }
html.js .scene.on .pillh { animation: pop 500ms cubic-bezier(.2,.8,.2,1) 2200ms both; }
.ctick { stroke-dasharray: 100; }
html.js .scene.on .ctick { animation: draw 300ms ease-out both; }
html.js .scene.on .c1 { animation-delay: 4000ms; } html.js .scene.on .c2 { animation-delay: 4320ms; }
html.js .scene.on .c3 { animation-delay: 4640ms; } html.js .scene.on .c4 { animation-delay: 4960ms; }
.pencil { transform: translate(372px, 480px); }
@keyframes pencil {
  0%, 67% { transform: translate(108px, 88px); opacity: 0; }
  70% { transform: translate(108px, 88px); opacity: 1; }
  72% { transform: translate(108px, 88px); }
  77% { transform: translate(372px, 88px); }
  83% { transform: translate(372px, 480px); }
  89% { transform: translate(108px, 480px); }
  93% { transform: translate(108px, 480px); opacity: 1; }
  97%, 100% { transform: translate(92px, 500px); opacity: 0; }
}
html.js .scene.on .pencil { animation: pencil 5600ms ease-in-out both; }

/* ---------- 9. Then you decide: Mo pops up behind the sill and perches ---------- */
@keyframes rise { from { transform: translateY(110px); } to { transform: translateY(0); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(-1.2deg); } }
html.js .scene.on .rise { animation: rise 1100ms cubic-bezier(.2,.9,.3,1.12) 300ms both; }
html.js .scene.on .bob { animation: bob 3.4s ease-in-out 1400ms infinite; }
@keyframes lglint { 0%, 68% { transform: translateX(0); } 100% { transform: translateX(80px); } }
html.js .scene.on .lglint { animation: lglint 3.6s cubic-bezier(.4,0,.2,1) 1400ms infinite; }
.lsp { transform: scale(0); }
@keyframes lsp { 0%, 84% { transform: scale(0) rotate(0deg); } 90% { transform: scale(1) rotate(20deg); } 96%, 100% { transform: scale(0) rotate(40deg); } }
html.js .scene.on .lsp { animation: lsp 3.6s ease-out 1400ms infinite; }
html.js .scene.on .glow { animation: fin 1200ms ease 200ms both; }

/* ---------- Static fallback (no JS): nine frames stacked, no motion ---------- */
.story-static { padding: 8px 0 40px; }
.sfig { display: grid; gap: 10px; margin: 0 0 44px; }
.sfig-art { width: 100%; max-width: 360px; margin: 0 auto; }
.sfig-art .stage { height: auto; width: 100%; aspect-ratio: 480 / 560; }
.sfig figcaption .n { font-family: var(--head); font-weight: 600; color: var(--royal, #1D4FA3); margin: 0 0 4px; font-size: 0.9rem; }
.sfig figcaption h2 { font-size: clamp(1.65rem, 6.6vw, 2.5rem); margin-bottom: 6px; }
.sfig figcaption p { margin: 0; color: var(--muted); }
.sfig .cta { display: grid; gap: 8px; margin-top: 12px; }
.story-static .scene { opacity: 1; visibility: visible; transform: none; transition: none; }
.story-static .swatches { display: none; }

html.js .story-static { display: none; }
html:not(.js) .story { display: none; }

/* Static poses, used by the no-JS stack and by reduced motion */
.story-static .sashU, .story-static .cloth, .story-static .sashL { animation: none; }
.story-static .sashU { transform: rotateX(-28deg); }
.story-static .sashL { transform: rotateX(-36deg); }
.story-static .cloth { opacity: 1; transform: translate(150px, 40px) rotate(8deg); }

@media (prefers-reduced-motion: reduce) {
  .scene, .scene *, .sun, .sunw, .cap > *, .rcol, .dr, .db, .sash3, .swatches i, .s7 .fr, .cap .cta .btn::after {
    animation: none !important; transition: none !important;
  }
  .scenes { transform: none !important; }
  .sunw { transform: none !important; }
  .sashU { transform: rotateX(-28deg); }
  .sashL { transform: rotateX(-36deg); }
  .cloth { opacity: 1; transform: translate(150px, 40px) rotate(8deg); }
}

.story-links { display: grid; gap: 10px; }
.band .story-links .btn-ink { width: 100%; }

@media (min-width: 640px) {
  .cap .cta, .sfig .cta { grid-template-columns: auto auto; justify-content: start; }
  .sfig { grid-template-columns: 300px 1fr; align-items: center; gap: 28px; }
  .sfig-art { margin: 0; }
  .story-links { grid-template-columns: auto auto; justify-content: start; }
  .band .story-links .btn-ink { width: auto; }
  .snav { grid-template-columns: auto auto; justify-content: start; }
  .snav .btn { min-width: 150px; }
  .sdots { justify-content: start; }
  .sskip { justify-self: start; margin-left: -10px; }
}

@media (min-width: 960px) {
  .story { padding: 8px 0 64px; }
  .story-in {
    grid-template-rows: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center; column-gap: 48px;
    min-height: calc(100vh - var(--nav-h) - 200px);
  }
  .story-side { order: 1; }
  .story-art-wrap { order: 2; }
  .story-art-box { height: clamp(380px, calc(100vh - var(--nav-h) - 220px), 600px); }
  .cap h2 { font-size: clamp(2.3rem, 3.4vw, 3.2rem); }
  .cap p { font-size: 1.15rem; }
}
