/* frontdoor/css/story.css — the sales page's scroll story (frontdoor/onepage.html
 * section#how, frontdoor/js/story.js; sales-redesign/spec.md §5). Loaded on /
 * only, after onepage.css.
 *
 * [sales-redesign 2026-11-21] ONE DOM, TWO MODES:
 *   static (the default here): four stacked cards, each its own still and
 *     caption; two columns alternating on desktop, one on phones. What a
 *     visitor gets with no JS, with reduced motion, or when story.js fails.
 *   pinned (html.story-pin, set in <head> only when motion is welcome, and
 *     only under prefers-reduced-motion: no-preference): the section is the
 *     scroll distance (400vh, 340vh on phones; 310vh / 260vh without the shop
 *     step) plus one stage; the stage sticks under the header and story.js
 *     sets data-scene on it. This file owns every transition: only opacity
 *     and transform move, the delays apply only going forward
 *     (data-dir="fwd"), and nothing loops (the ring pulses twice).
 * The frames are rendered on white, so the story band is white. The one
 * accent (IVRIS green) is the current dot and the hotspot ring. */

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.story { --hdr: 64px; position: relative; background: var(--paper); border: 0; }
@media (max-width: 720px) { .story { --hdr: 56px; } }

/* ---------------------------------------------------------------- static */
.story { padding: 24px 0 96px; }
.story__stage { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.story__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 72px; }
.story__step { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.story__step:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.story__step:nth-child(even) .story__copy { order: 2; }
.story__mark { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.story__num { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 12px; }
.story__h { font-family: 'Barlow Semi Condensed', 'Barlow', sans-serif; font-weight: 700;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.01em; color: var(--ink-900); margin: 0; text-wrap: balance; }
.story__line { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-500); max-width: 34ch; text-wrap: pretty; }
.story__static { margin: 0; }
.story__static picture, .story__static > picture img { display: block; width: 100%; height: auto; }
.story__static picture img { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.story__static-cap { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-500); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.story__static-title { color: var(--ink-700); font-weight: 500; }
.story__static-shop { color: var(--ink-900); font-weight: 600; text-decoration: underline; text-decoration-color: var(--ink-300); text-underline-offset: 3px; }
.story__static-shop:hover { text-decoration-color: var(--ink-900); }
.story__media, .story__dots, .story__skip { display: none; }
/* [sales-redesign QA 2026-11-21] review A2: what each pinned picture shows,
   for screen readers (the pictures themselves are aria-hidden), and step
   03's store link: both only in the pinned mode (the static cards carry
   their own alt text and link) */
.story__alt, .story__copy-shop { display: none; }

/* the phone frame (the AR step; static card and pinned stage alike) */
.story__phone { position: relative; aspect-ratio: 9 / 19.5; border-radius: 34px; background: #0b0b0b; padding: 9px;
  box-shadow: 0 18px 44px rgba(17, 17, 17, .16); }
.story__phone--static { width: min(260px, 70%); margin: 0 auto; aspect-ratio: auto; }
.story__phone--static .story__still, .story__phone--static .story__clip { display: block; width: 100%; height: auto; border-radius: 26px; }
.story__phone--static .story__clip[hidden] { display: none; }
.story__phone.has-clip .story__still, .story__phone.has-clip .story__ar-room, .story__phone.has-clip .story__ar-piece, .story__phone.has-clip .story__tag { display: none; }
.story__tag { position: absolute; z-index: 3; left: 20px; top: 20px; padding: 3px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1.4; }
.story__static--ar .story__static-cap { justify-content: center; }

@media (max-width: 767px) {
  .story { padding: 8px 0 64px; }
  .story__stage { padding: 0 16px; }
  .story__steps { gap: 48px; }
  .story__step, .story__step:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .story__step:nth-child(even) .story__copy { order: 0; }
}

/* ---------------------------------------------------------------- pinned */
/* [sales-redesign QA 2026-11-21] what the review changed here:
 *  S1   a step's text fades OUT first (.18 s), then the next fades in (.45 s
 *       after .2 s): two headings never sit on top of each other; the past
 *       steps rise, the future ones wait below, so the direction reads;
 *  S11  the copy hangs from a fixed top (no translateY(-50%)): a heading
 *       that wraps grows downward and never moves its "03 / 04" label;
 *  S5   the media hangs from the top of the stage (the whole first frame is
 *       above the fold on a laptop) with the dots right under the frame;
 *  S2   a scene picture that has not loaded is never shown (no alt text, no
 *       broken box): the layer under it stays; the phone waits for its room;
 *  S4   layers that cross-fade move together: the plan zooms with the top
 *       view, the room leaves at once going back, the phone rises after the
 *       card has gone (and the card returns after the phone);
 *  S9   the AR step's phone sits on clean white (no room wash behind it);
 *  S10  --sp (0..1, the progress inside the current step, story.js) fills
 *       the current dot and pushes the held picture in by 3%;
 *  S1b  a browser without svh gets vh (and story-pin is only set where svh
 *       exists: onepage.html's head script). */
@media (prefers-reduced-motion: no-preference) {
  .story-pin .story { --pin: 320vh; height: calc(var(--pin) + 100vh - var(--hdr)); height: calc(var(--pin) + 100svh - var(--hdr)); padding: 0; }
  .story-pin .story:not(:has(.story__step--shop)) { --pin: 250vh; }
  .story-pin #how { scroll-margin-top: calc(var(--hdr) - 80px); }
  .story-pin .story__stage {
    position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); height: calc(100svh - var(--hdr));
    max-width: none; margin: 0; padding: 0 max(24px, calc((100vw - 1320px) / 2)); overflow: hidden;
    /* the copy column lines up with the page's 1120 px container; the media runs wider */
    padding-left: max(24px, calc((100vw - 1120px) / 2 + 24px));
    display: grid; grid-template-columns: minmax(0, min(30%, 340px)) minmax(0, 1fr); column-gap: 40px; align-items: stretch; }
  .story-pin .story__static { display: none; }
  .story-pin .story__mark--pin { position: absolute; left: 0; width: 1px; height: 1px; }

  /* the copy column: the steps stacked in one place, one shown */
  .story-pin .story__steps { position: relative; display: block; height: 100%; gap: 0; }
  /* opacity only: every step's text stays in the accessibility tree, in
     reading order (none of it is focusable but step 03's store link) */
  .story-pin .story__step { position: absolute; left: 0; right: 0; top: 27%; display: block; gap: 0;
    opacity: 0; transform: translateY(14px);
    transition: opacity .18s ease, transform .18s ease; }
  .story-pin .story__step.is-past { transform: translateY(-14px); }
  .story-pin .story__step.is-on { opacity: 1; transform: none;
    transition: opacity .45s cubic-bezier(.25, .46, .45, .94) .2s, transform .45s cubic-bezier(.25, .46, .45, .94) .2s; }
  .story-pin .story__h { font-size: clamp(28px, 2.5vw, 36px); }   /* every step's heading on one line at 1440 (review S11) */
  .story-pin .story__line { max-width: 30ch; }
  .story-pin .story__alt { display: inline; }
  /* step 03's store link: the keyboard's way to the product (the card's own
     link is out of the tab order); shown when focused */
  .story-pin .story__copy-shop { display: inline-flex; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .story-pin .story__copy-shop:focus { position: static; display: inline-block; width: auto; max-width: 32ch; height: auto; overflow: visible; clip-path: none; white-space: normal;
    margin-top: 14px; line-height: 1.45; color: var(--ink-900); font-weight: 600;
    text-decoration: underline; text-underline-offset: 3px; outline: 2px solid var(--ivris-green-600); outline-offset: 3px; border-radius: 4px; }

  /* the media: a 16:10 box (4:5 on phones) hung from the top, the layers
     stacked inside it, the dots right under it */
  .story-pin .story__media { display: grid; grid-template-rows: auto auto; justify-items: center; align-content: start; row-gap: 10px;
    height: 100%; padding: clamp(16px, 5vh, 52px) 0 16px; }
  .story-pin .story__frame { position: relative; width: min(100%, calc((100svh - var(--hdr) - 120px) * 1.6)); aspect-ratio: 16 / 10;
    /* the zoom box and the ring, from story.json (story.js); these defaults
       only hold until it loads, and live HERE so the frame's values inherit */
    --zs: 1; --zx: .5; --zy: .5; --hx: .5; --hy: .4;
    overflow: hidden; border-radius: 4px;   /* the zoomed top view never shows outside the box */
    transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .story-pin [data-scene="plan"] .story__frame, .story-pin [data-scene="shop"] .story__frame, .story-pin [data-scene="ar"] .story__frame {
    transform: scale(calc(1 + var(--sp, 0) * .03)); }
  .story-pin .story__frame > picture, .story-pin .story__frame > picture img,
  .story-pin .story__seq, .story-pin .story__top, .story-pin .story__plan, .story-pin .story__room {
    position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
  /* a picture story.js has not seen load is never shown: no alt text, no
     broken-image box; whatever is under it stays on screen */
  .story-pin .story__frame img[data-file]:not(.is-ready) { visibility: hidden; }
  .story-pin .story__top, .story-pin .story__plan, .story-pin .story__room { opacity: 0; transition: opacity .25s ease; }
  /* the first frame (the page's LCP) sits under the canvas until it draws */
  .story-pin .is-drawn .story__f0 { visibility: hidden; }
  .story-pin .story__seq { transition: opacity .25s ease; }
  .story-pin .story__top, .story-pin .story__plan { transform-origin: calc(var(--zx) * 100%) calc(var(--zy) * 100%);
    transition: opacity .25s ease, transform .25s ease; }

  /* 02 plan: the furnished top view under, the plan fading in over it */
  .story-pin [data-scene="plan"] .story__top, .story-pin [data-scene="shop"] .story__top { opacity: 1; transition: opacity .15s ease, transform .25s ease; }
  .story-pin [data-scene="plan"] .story__plan { opacity: 1; transition: opacity .5s ease, transform .25s ease; }
  /* back from 03: the room goes at once, the plan waits for the un-zoom */
  .story-pin [data-dir="back"][data-scene="plan"] .story__room { transition: opacity 0s; }
  .story-pin [data-dir="back"][data-scene="plan"] .story__plan { transition: opacity .4s ease .25s, transform .25s ease; }

  /* 03 shop: the plan out (zooming WITH the top view, so the two never
     double), zoom into the room, the crisp room in, the ring, the tap, the
     card. Forward only, in that order. */
  .story-pin [data-scene="shop"] .story__top, .story-pin [data-scene="ar"] .story__top,
  .story-pin [data-scene="shop"] .story__plan, .story-pin [data-scene="ar"] .story__plan {
    transform: translate(calc((.5 - var(--zx)) * 100%), calc((.5 - var(--zy)) * 100%)) scale(var(--zs)); will-change: transform; }
  .story-pin [data-dir="fwd"][data-scene="shop"] .story__top { transition: opacity .15s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .story-pin [data-dir="fwd"][data-scene="shop"] .story__plan { transition: opacity .3s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .story-pin [data-scene="shop"] .story__room { opacity: 1; }
  .story-pin [data-dir="fwd"][data-scene="shop"] .story__room { transition: opacity .25s ease .55s; }
  /* once the one-room still is up, the zoomed top view under it goes (its
     neighbouring rooms never bleed at the frame's edge); going back to 02 it
     returns at once, under the room that leaves at once */
  .story-pin [data-scene="shop"] .is-room-ready .story__top { opacity: 0; transition: opacity .1s linear .85s, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .story-pin [data-dir="back"][data-scene="shop"] .is-room-ready .story__top { transition: opacity .1s linear .3s, transform .25s ease; }
  .story-pin [data-dir="back"][data-scene="plan"] .story__top { transition: opacity 0s, transform .25s ease; }
  .story__hot, .story__tap, .story__card { display: none; }
  .story-pin .story__hot { display: block; position: absolute; z-index: 2; left: calc(var(--hx) * 100%); top: calc(var(--hy) * 100%);
    width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid var(--ivris-green); background: rgba(255, 255, 255, .9);
    box-shadow: 0 2px 10px rgba(17, 17, 17, .22); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
  .story-pin [data-scene="shop"] .story__hot { opacity: 1; }
  .story-pin [data-dir="fwd"][data-scene="shop"] .story__hot { transition: opacity .2s ease .8s; animation: story-ring .7s ease-out .8s 2; }
  .story-pin .story__tap { display: block; position: absolute; z-index: 3; left: calc(var(--hx) * 100%); top: calc(var(--hy) * 100%);
    width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(17, 17, 17, .38); border: 2px solid #fff;
    opacity: 0; pointer-events: none; }
  .story-pin [data-dir="fwd"][data-scene="shop"] .story__tap { animation: story-tap 1.25s cubic-bezier(.25, .46, .45, .94) forwards; }
  .story-pin .story__card { display: grid; position: absolute; z-index: 4; right: 16px; top: 50%; width: 264px; margin: 0;
    grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
    box-shadow: 0 14px 36px rgba(17, 17, 17, .12); opacity: 0; visibility: hidden; transform: translate(24px, -50%);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
  .story-pin [data-scene="shop"] .story__card { opacity: 1; visibility: visible; transform: translate(0, -50%); transition: opacity .3s ease, transform .3s ease, visibility 0s; }
  .story-pin [data-dir="fwd"][data-scene="shop"] .story__card { transition: opacity .3s ease 1.1s, transform .3s ease 1.1s, visibility 0s linear 1.1s; }
  /* back from 04: the card returns once the phone has gone */
  .story-pin [data-dir="back"][data-scene="shop"] .story__card { transition: opacity .3s ease .22s, transform .3s ease .22s, visibility 0s linear .22s; }
  .story-pin [data-scene="ar"] .story__card { transition-duration: .2s, .2s, 0s; transition-delay: 0s, 0s, .2s; }
  .story__card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--paper-50); }
  .story__card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .story__card-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink-900); }
  .story__card-price { font-size: 15px; color: var(--ink-700); }
  .story__card-price[hidden] { display: none; }
  .story__cart { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin-top: 6px; padding: 0 16px;
    border-radius: 10px; background: var(--ink-900); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
  .story__cart:hover { background: #333; }
  .story__card-src { font-size: 12px; color: var(--ink-500); }

  /* 04 AR: the room leaves, the phone rises (once the card has gone), the
     piece drops in. Until the phone's room picture has loaded the phone
     stays down and the shop step's room stays up. */
  .story-pin [data-scene="ar"] .story__top, .story-pin [data-scene="ar"] .story__seq, .story-pin [data-scene="ar"] .story__plan { opacity: 0; transition: opacity .25s ease; }
  /* forward: the zoomed top view (its neighbouring rooms) goes at once, so only the room fades */
  .story-pin [data-dir="fwd"][data-scene="ar"] .is-ar-ready .story__top, .story-pin [data-dir="fwd"][data-scene="ar"] .is-ar-ready .story__seq { transition: opacity .06s linear; }
  .story-pin [data-scene="ar"] .story__room { opacity: 1; }
  .story-pin [data-scene="ar"] .is-ar-ready .story__room { opacity: 0; transition: opacity .25s ease; }
  .story-pin .story__frame > .story__phone { position: absolute; z-index: 5; top: 4%; left: 62%; height: 92%; width: auto; padding: 8px; border-radius: 30px;
    transform: translate(-50%, 40px); opacity: 0; visibility: hidden;
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
  .story-pin [data-scene="ar"] .story__frame.is-ar-ready > .story__phone { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .45s ease, transform .45s ease, visibility 0s; }
  .story-pin [data-dir="fwd"][data-scene="ar"] .story__frame.is-ar-ready > .story__phone { transition: opacity .45s ease .2s, transform .45s ease .2s, visibility 0s linear .2s; }
  .story__screen { position: relative; height: 100%; border-radius: 23px; overflow: hidden; background: #222; }
  .story__screen > img, .story__screen > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .story__screen > video[hidden] { display: none; }
  .story-pin .story__ar-piece { opacity: 0; transform: translateY(-6%) scale(.96); transition: opacity .25s ease, transform .25s ease; }
  .story-pin [data-scene="ar"] .story__ar-piece { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
  .story-pin [data-dir="fwd"][data-scene="ar"] .story__ar-piece { transition: opacity .5s ease .65s, transform .5s cubic-bezier(.2, .7, .2, 1) .65s; }
  .story__sheet { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 8px; margin: 0; padding: 10px 12px; border-radius: 0 0 23px 23px;
    background: #fff; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--ink-900); }
  .story__sheet[hidden] { display: none; }
  .story__frame > .story__phone .story__tag { left: 16px; top: 16px; }

  /* the dots, right under the frame; the skip link at the stage's corner */
  .story-pin .story__dots { display: flex; position: relative; z-index: 6; gap: 6px; }
  .story__dot { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; border-radius: 999px;
    color: var(--ink-500); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-decoration: none; }
  .story__dot::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--ink-300); transition: width .25s ease, background .15s ease; }
  .story__dot[aria-current="step"] { color: var(--ink-900); }
  /* the current dot is a short bar that fills as the step plays (--sp) */
  .story__dot[aria-current="step"]::before { width: 22px;
    background: linear-gradient(to right, var(--ivris-green) calc(var(--sp, 0) * 100%), var(--ink-300) calc(var(--sp, 0) * 100%)); }
  .story__dot:hover { color: var(--ink-900); }
  .story__dot:focus-visible, .story__skip:focus-visible, .story__cart:focus-visible { outline: 2px solid var(--ivris-green-600); outline-offset: 2px; }
  .story-pin .story__skip { display: inline-flex; align-items: center; position: absolute; right: max(24px, calc((100vw - 1320px) / 2)); bottom: 16px; z-index: 6;
    min-height: 32px; font-size: 13px; font-weight: 600; color: var(--ink-500); text-decoration: none; }
  .story-pin .story__skip:hover { color: var(--ink-900); }
}

/* tablet: the copy on top, the 16:10 media right under it */
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) and (max-width: 1023px) {
  .story-pin .story__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); padding: 0 24px; }
  .story-pin .story__steps { height: 168px; }
  .story-pin .story__step { top: auto; bottom: 4px; }
  .story-pin .story__media { padding: 24px 0 16px; }
  .story-pin .story__frame { width: min(100%, calc((100svh - var(--hdr) - 168px - 96px) * 1.6)); }
  .story-pin .story__card { width: 240px; }
}

/* phone: the copy on top, the 4:5 media under it; the card docks to the
   bottom as a row; the stage height never follows the address bar (svh) */
@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  .story-pin .story { --pin: 280vh; }
  .story-pin .story:not(:has(.story__step--shop)) { --pin: 215vh; }
  .story-pin .story__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 0; padding: 0 16px; }
  .story-pin .story__steps { height: 132px; }
  .story-pin .story__step { top: 14px; }
  .story-pin .story__num { margin-bottom: 6px; }
  .story-pin .story__h { font-size: 26px; }
  .story-pin .story__line { margin-top: 6px; font-size: 15.5px; max-width: none; }
  .story-pin .story__media { padding: 4px 0 12px; row-gap: 6px; }
  .story-pin .story__frame { width: min(100%, calc((100svh - var(--hdr) - 132px - 64px) * .8)); aspect-ratio: 4 / 5; }
  .story-pin .story__card { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center;
    padding: 10px; transform: translateY(24px); }
  .story-pin [data-scene="shop"] .story__card { transform: none; }
  .story__card-img { border-radius: 8px; }
  .story__card-title { font-size: 14px; }
  .story__cart { min-height: 36px; margin-top: 2px; }
  .story-pin .story__frame > .story__phone { left: 50%; height: 96%; top: 2%; }
  .story__dot span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .story__dot { padding: 0 6px; min-width: 32px; justify-content: center; }
  .story-pin .story__skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .story-pin .story__skip:focus { width: auto; height: auto; clip-path: none; right: 16px; bottom: 12px; background: var(--paper); padding: 0 10px; border-radius: 8px; }
}

/* the frame set story.js picked keeps its box if the window crosses 768 later */
@media (prefers-reduced-motion: no-preference) {
  .story-pin .story--d .story__frame { aspect-ratio: 16 / 10; }
  .story-pin .story--p .story__frame { aspect-ratio: 4 / 5; }
}

@keyframes story-ring { 0% { box-shadow: 0 0 0 0 rgba(106, 173, 63, .55), 0 2px 10px rgba(17, 17, 17, .22); } 100% { box-shadow: 0 0 0 16px rgba(106, 173, 63, 0), 0 2px 10px rgba(17, 17, 17, .22); } }
@keyframes story-tap {
  0%, 56% { opacity: 0; transform: translate(90px, 60px) scale(1); }
  62% { opacity: 1; transform: translate(90px, 60px) scale(1); }
  86% { opacity: 1; transform: translate(0, 0) scale(1); }
  93% { opacity: 1; transform: translate(0, 0) scale(.7); }
  100% { opacity: 0; transform: translate(0, 0) scale(1.1); }
}

/* reduced motion: the static story, always (even if a class says pinned),
   no transitions, no autoplay (story.js never plays a clip here) */
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; padding: 24px 0 96px; }
  .story__stage { position: static; height: auto; }
  .story__media, .story__dots, .story__skip { display: none; }
  .story__static { display: block; }
  .story__step { opacity: 1; transform: none; transition: none; }
}
