/* ==========================================================
   Scroll-controlled "How it works" story — ported verbatim from
   app.py's _render_scroll_story_section()/render_auth_screen() inline
   <style> block, which is itself "a direct port of
   datasense_story_demo.html" (see app.py's own comment). Files fly
   into an intake target -> dataset summary -> chat -> full analysis
   -> one insight, driven by continuous scroll-scrubbing (js/story.js),
   not scroll-hijacking. Includes the production mobile and
   prefers-reduced-motion fallbacks verbatim (static, non-pinned
   layout showing only the first headline). ========================================================== */

        /* ---------- Continuous scroll story - a direct port of
           datasense_story_demo.html (the approved standalone prototype),
           kept as close to that file's own CSS as possible per the
           integration brief: same class structure (renamed with the
           ds-story- prefix this file already uses for namespacing),
           same anchor points, same sizes, same colors. No boxed "product
           panel": .ds-story-canvas is a full-viewport sticky layer with
           no background/border of its own - every object (files, intake
           target, dataset panel, data tab, chat panel, KPI/chart/
           comparison, insight) carries its own small surface, but nothing
           wraps the whole scene. _SCROLL_STORY_SCRIPT sets each object's
           position/opacity/etc directly as an inline style every frame;
           what these rules provide is everything that doesn't change per
           frame: base position/size/typography/color, and the shared
           intake anchor (left:64%, top:58%) that the files, dataset panel
           and their JS-computed transforms are all positioned relative
           to. */
        /* 250vh (real scroll distance = 150vh, since the sticky 100vh
           viewport itself doesn't count). p (scroll progress, 0..1) is
           computed below as -rect.top / (trackHeight - viewportHeight),
           and every scene boundary in B/HEADLINE_BOUNDS is a fixed
           fraction of that same p - so this height is the only knob
           that controls pacing, and scaling it uniformly stretches every
           scene's own scroll distance by the same factor without
           touching a single B/HEADLINE_BOUNDS fraction: the choreography
           (what happens, in what order, each scene's opacity curve) is
           pixel-for-pixel the same, only how far you have to scroll to
           see it changes. This is continuous scrubbing, not
           scroll-hijacking - there is no wheel listener and nothing
           intercepts or redirects the user's native scroll.

           Raised from 220vh (150/120 = +25%, within the requested
           20-25% range) after review found the story progressed too
           fast under normal trackpad/wheel scrolling - a typical wheel
           tick or trackpad flick covers roughly a fixed number of
           physical pixels, so more scroll distance per scene directly
           means fewer scenes a single gesture can skip past, not just a
           slower average pace. */
        .ds-story-track { position:relative; height:250vh; margin-top:1rem; }
        /* pointer-events:none by default: every full-bleed layer in this
           scene (analysis, insight-bg, insight-focus) stacks on top of
           whichever object is currently "behind" it in the z-order below,
           and at near-zero opacity mid-crossfade would otherwise still
           intercept clicks meant for the one interactive surface in this
           whole scene - the chat panel's "How this was calculated" toggle.
           .ds-story-chat re-enables its own pointer-events via JS only
           while it's actually visible enough to be clickable. */
        .ds-story-canvas { position:sticky; top:0; height:100vh; overflow:hidden; pointer-events:none; }
        .ds-story-obj { position:absolute; }

        /* ---- persistent left headline (3 slots - Upload/Ready/Ask; the
           analysis and insight scenes carry their own in-scene kicker
           instead, so the whole wrap fades out - see _SCROLL_STORY_SCRIPT).
           Cross-fades via plain opacity the script sets directly (hard 0/1
           per headline, never two at once) rather than a CSS transition,
           for the same no-double-exposure reason the rest of this file
           avoids transitions. ---- */
        .ds-story-headline-wrap { left:0; top:0; right:0; bottom:0; pointer-events:none; }
        .ds-story-headline {
            position:absolute;
            /* DELIBERATE DEVIATION FROM PRODUCTION (reported in the PR
               description): app.py positions this at a viewport-relative
               left:6.5%, independent of the section-intro heading above
               it (which is centered in a 1120px max-width container) -
               on a wide viewport the two visibly don't line up. Reusing
               the same left-edge formula as .ds-mkt-inner (max-width:
               1120px; padding:0 1.2rem; margin:0 auto) makes this
               headline's left edge match "From upload to decision."'s
               left edge at every viewport width, without touching the
               scroll-driven scene choreography itself (scene timings,
               the intake/chat/analysis objects, and their own
               64%-anchored positions are all untouched). */
            left: max(1.2rem, calc(50vw - 560px));
            /* 12% -> 9%: trims the gap readers saw between the section
               heading above and this first scene's own heading once the
               canvas pins full-viewport - not a rewrite of the scene,
               just less dead air above the first line of text. */
            top:9%;
            max-width:min(420px,32vw); opacity:0;
        }
        /* .stApp h3 (global heading override, elsewhere in this file) pins
           all h3 elements to 1.38rem with !important - beating that here
           needs both !important AND higher specificity than its single
           class+element selector, same as h1.ds-mkt-hero-title does for
           the hero heading above. */
        .ds-story-canvas .ds-story-headline h3 {
            margin:0 !important; color:#fff; font-family:var(--ds-heading-font) !important;
            font-size:clamp(2.6rem,4.4vw,4.4rem) !important; font-weight:760 !important;
            letter-spacing:-.03em !important; line-height:1.05 !important;
        }
        .ds-story-headline-sub { margin:1.1rem 0 0; color:rgba(198,210,238,.72); font-size:clamp(1.15rem,1.5vw,1.5rem); line-height:1.5; max-width:420px; }
        /* Streamlit auto-injects a "link to heading" anchor icon on every
           markdown-rendered h1-h6 (a slugified id + a small chain-link
           svg in a stHeaderActionElements span) - always present on this
           h3, just inconspicuous at normal heading sizes. At the much
           larger display size these headlines now render at, it reads as
           a stray glyph glued onto the end of the sentence. Not needed on
           a story headline anyway (there's nothing to deep-link to here). */
        .ds-story-headline [data-testid="stHeaderActionElements"] { display:none; }

        /* ---- scene 1-2: files flying into an animated intake target, not
           a static placeholder square. Anchored at 64%/58% so it clears
           the headline's 6.5%-left, min(560px,40vw)-wide column at any
           desktop viewport width.

           The target itself is two layers: a soft ambient glow ring that
           breathes on its own (pure CSS keyframe, always-on so the target
           reads as "alive" even before any file arrives) behind a solid
           gradient panel carrying an upload-arrow icon + label, so it
           communicates "intake mechanism" rather than an empty drop
           outline. --pulse is a 0-1 value _SCROLL_STORY_SCRIPT sets on
           this element every frame (see pulseAt() in update()), spiking
           briefly each time a file actually reaches the target, which the
           glow/panel read via var(--pulse,0) to flash/scale - a quick
           reactive "absorption" beat layered on top of the constant idle
           breathing, without needing a CSS transition (this file avoids
           those for JS-driven values - see the chat-panel comment on
           double-exposure). ---- */
        .ds-story-intake {
            left:64%; top:58%; width:360px; height:360px; transform:translate(-50%,-50%);
            display:flex; align-items:center; justify-content:center;
        }
        .ds-story-intake-glow {
            position:absolute; inset:-18%; border-radius:42%;
            background:radial-gradient(circle at 50% 50%, rgba(124,92,255,.45), transparent 68%);
            filter:blur(6px);
            animation:ds-story-breathe 3.4s ease-in-out infinite;
            transform:scale(calc(1 + var(--pulse,0) * .24));
            opacity:calc(.5 + var(--pulse,0) * .6);
        }
        @keyframes ds-story-breathe { 0%,100% { transform:scale(1); } 50% { transform:scale(1.055); } }
        .ds-story-intake-panel {
            position:relative; width:78%; height:78%; border-radius:36px;
            background:linear-gradient(155deg, rgba(140,108,255,.95), rgba(32,110,190,.9));
            border:1px solid rgba(205,212,255,.42);
            box-shadow:0 40px 90px rgba(26,18,80,.55), inset 0 1px 0 rgba(255,255,255,.24);
            display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1.2rem;
            transform:scale(calc(1 + var(--pulse,0) * .05));
            text-align:center; padding:2rem;
        }
        .ds-story-intake-icon {
            width:82px; height:82px; border-radius:50%;
            background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.4);
            display:grid; place-items:center;
        }
        .ds-story-intake-icon svg { width:38px; height:38px; }
        .ds-story-intake-txt { color:rgba(255,255,255,.88); font-size:1.05rem; line-height:1.5; }
        .ds-story-intake-txt b { color:#fff; }
        .ds-story-intake-ring {
            position:absolute; inset:-10%; border-radius:44%; border:1.5px dashed rgba(255,255,255,.18);
            animation:ds-story-spin 26s linear infinite;
        }
        @keyframes ds-story-spin { to { transform:rotate(360deg); } }

        .ds-story-flyfile {
            left:64%; top:58%; display:flex; align-items:center; gap:1rem; padding:1.15rem 1.5rem; border-radius:18px;
            background:linear-gradient(160deg, rgba(26,32,64,.95), rgba(16,20,44,.95));
            border:1px solid rgba(150,165,235,.3); box-shadow:0 30px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
            opacity:0; min-width:260px;
        }
        .ds-story-flyfile .ic { width:46px; height:46px; border-radius:13px; display:grid; place-items:center; color:#fff; font-size:.72rem; font-weight:800; flex-shrink:0; }
        .ds-story-flyfile .ic.csv { background:linear-gradient(145deg,#7c5cff,#2478c8); }
        .ds-story-flyfile .ic.xls { background:linear-gradient(145deg,#4fd9a0,#2478c8); }
        .ds-story-flyfile .meta .nm { font-size:1.12rem; font-weight:700; color:#fff; white-space:nowrap; }
        .ds-story-flyfile .meta .sz { margin-top:.2rem; font-size:.82rem; color:rgba(198,210,238,.55); }

        /* ---- scene 3: dataset panel - same anchor, "grows out of" the
           intake target, then shrinks and drifts into the data-tab pill's
           corner as chat takes over (see the data-tab comment below and
           _SCROLL_STORY_SCRIPT's dataset->chat handoff timing). ---- */
        .ds-story-dataset {
            left:64%; top:58%; transform:translate(-50%,-50%); width:clamp(420px,34vw,560px); opacity:0;
            background:rgba(20,26,58,.92); border:1px solid rgba(140,155,225,.28); border-radius:26px;
            padding:2.4rem 2.6rem; box-shadow:0 44px 100px rgba(0,0,0,.5);
        }
        .ds-story-dataset .top { display:flex; align-items:center; gap:1.1rem; }
        .ds-story-dataset .top .ic { width:62px; height:62px; border-radius:16px; display:grid; place-items:center; background:linear-gradient(145deg,#7c5cff,#2478c8); color:#fff; font-size:.88rem; font-weight:800; flex-shrink:0; }
        .ds-story-dataset .top .nm { font-family:var(--ds-heading-font); font-size:1.7rem; font-weight:720; color:#fff; }
        .ds-story-dataset .top .meta { margin-top:.25rem; color:rgba(198,210,238,.55); font-size:1rem; }
        .ds-story-dataset-progress { margin-top:1.5rem; height:9px; border-radius:5px; background:rgba(140,155,225,.14); overflow:hidden; }
        .ds-story-dataset-progress .fill { height:100%; border-radius:5px; background:linear-gradient(90deg,#8feaff,#6d5cff); width:0%; }
        .ds-story-dataset-rows { margin-top:1.4rem; display:flex; flex-direction:column; gap:.65rem; }
        .ds-story-dataset-rows .row { display:flex; align-items:center; gap:.65rem; font-size:1rem; font-weight:600; color:#eef2ff; opacity:0; }
        .ds-story-dataset-rows .chk { width:20px; height:20px; border-radius:50%; background:rgba(154,230,200,.16); color:#9ae6c8; display:grid; place-items:center; font-size:.68rem; flex-shrink:0; }
        .ds-story-dataset-chips { margin-top:1.4rem; display:flex; flex-wrap:wrap; gap:.5rem; }
        .ds-story-dataset-chips span { padding:.38rem .8rem; border-radius:999px; background:rgba(154,230,200,.08); border:1px solid rgba(154,230,200,.24); color:#9ae6c8; font-size:.78rem; font-weight:650; opacity:0; }

        /* ---- persistent "loaded" tab - the dataset's context survives as
           this small pill once the full dataset panel shrinks away, so
           chat/analysis/insight never lose the "which file is this"
           thread even though the big card is gone. ---- */
        .ds-story-data-tab {
            top:8%; right:6.5%; display:flex; align-items:center; gap:.5rem; padding:.5rem .95rem; border-radius:999px;
            background:rgba(18,24,52,.72); border:1px solid rgba(140,155,225,.28); font-size:.82rem; color:rgba(198,210,238,.72);
            opacity:0;
        }
        .ds-story-data-tab .dot { width:7px; height:7px; border-radius:50%; background:#9ae6c8; flex-shrink:0; }

        /* ---- scene 4: chat - same anchor, but a genuinely spacious,
           close-to-real workspace rather than a compact card. ---- */
        .ds-story-chat {
            left:62%; top:54%; transform:translate(-50%,-50%); width:clamp(580px,52vw,800px);
            opacity:0; pointer-events:none;
            background:rgba(20,26,58,.92); border:1px solid rgba(140,155,225,.28); border-radius:26px;
            box-shadow:0 50px 110px rgba(0,0,0,.5); overflow:hidden; display:flex; flex-direction:column;
            /* isolation:isolate forces its own compositing/stacking context -
               without it, Chromium can bleed a faint copy of this panel's
               text past its own overflow:hidden + border-radius clip when
               combined with box-shadow and a JS-driven transform (visible
               on close inspection as a ghost of the chat text just outside
               the panel's left edge). */
            isolation:isolate; contain:paint;
        }
        .ds-story-chat-head { padding:1.6rem 2rem; border-bottom:1px solid rgba(140,155,225,.2); }
        .ds-story-chat-head .t1 { font-family:var(--ds-heading-font); font-size:1.3rem; font-weight:730; color:#fff; }
        .ds-story-chat-head .t2 { font-size:.92rem; color:rgba(198,210,238,.5); margin-top:.25rem; }
        .ds-story-chat-body { padding:1.8rem 2rem; display:flex; flex-direction:column; gap:1.3rem; }
        .ds-story-chat-row { display:flex; align-items:flex-start; gap:.85rem; }
        .ds-story-chat-avatar { width:38px; height:38px; border-radius:11px; flex-shrink:0; display:grid; place-items:center; font-family:var(--ds-heading-font); font-size:.72rem; font-weight:800; }
        .ds-story-chat-avatar.user { background:rgba(140,155,225,.14); border:1px solid rgba(140,155,225,.26); color:rgba(198,210,238,.72); }
        .ds-story-chat-avatar.ds { background:linear-gradient(145deg,#7c5cff,#2478c8); color:#fff; }
        .ds-story-chat-bubble.user { padding:.85rem 1.2rem; border-radius:4px 18px 18px 18px; background:rgba(255,255,255,.05); border:1px solid rgba(140,155,225,.16); color:rgba(220,228,250,.92); font-size:1.4rem; line-height:1.4; }
        .ds-story-chat-bubble.ds { flex:1; }
        .ds-story-chat-bubble.ds .ans { font-family:var(--ds-heading-font); font-size:1.7rem; font-weight:640; line-height:1.34; color:#fff; }
        .ds-story-chat-bubble.ds .ans b { color:#8feaff; }
        .ds-story-chat-bubble.ds .metrics { margin-top:.85rem; display:flex; flex-wrap:wrap; gap:.45rem; }
        .ds-story-chat-bubble.ds .metrics span { padding:.36rem .8rem; border-radius:999px; background:rgba(255,179,122,.1); border:1px solid rgba(255,179,122,.26); color:#ffb37a; font-size:.78rem; font-weight:700; }
        .ds-story-chat-bubble.ds .expand { margin-top:.9rem; padding:.75rem 1rem; border-radius:12px; border:1px solid rgba(140,155,225,.28); color:rgba(198,210,238,.72); font-size:.86rem; cursor:pointer; user-select:none; }
        .ds-story-chat-bubble.ds .expand-detail { display:none; margin-top:.6rem; padding-top:.6rem; border-top:1px solid rgba(140,155,225,.2); color:rgba(198,210,238,.55); font-size:.84rem; line-height:1.55; }
        .ds-story-chat-bubble.ds .expand.open .expand-detail { display:block; }
        .ds-story-chat-bubble.ds .expand .car { display:inline-block; transition:transform .15s ease; margin-right:.3rem; }
        .ds-story-chat-bubble.ds .expand.open .car { transform:rotate(90deg); }
        .ds-story-chat-bubble.ds .kb { margin-top:.8rem; color:rgba(198,210,238,.5); font-size:.8rem; }
        .ds-story-chat-bubble.ds .kb b { color:#7fd8ff; font-weight:650; }
        .ds-story-chat-input { margin-top:auto; padding:1rem 1.5rem 1.3rem; display:flex; align-items:center; gap:.6rem; border-top:1px solid rgba(140,155,225,.2); }
        .ds-story-chat-input .fake { flex:1; padding:.7rem 1rem; border-radius:11px; background:rgba(255,255,255,.04); border:1px solid rgba(140,155,225,.2); color:rgba(198,210,238,.5); font-size:.88rem; }
        .ds-story-chat-input .send { width:38px; height:38px; border-radius:11px; background:linear-gradient(145deg,#7c5cff,#2478c8); display:grid; place-items:center; color:#fff; font-size:.78rem; flex-shrink:0; }

        /* ---- step 4: the answer expands into full analysis ---- */
        .ds-story-analysis { left:0; top:0; right:0; bottom:0; opacity:0; }
        .ds-story-analysis .a-kicker { position:absolute; left:6%; top:9%; color:#7fd8ff; font-family:var(--ds-heading-font); font-size:.85rem; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
        .ds-story-analysis .a-echo { position:absolute; left:6%; top:14%; color:rgba(198,210,238,.5); font-size:.9rem; max-width:400px; }
        .ds-story-analysis .a-kpi { position:absolute; left:6%; top:24%; }
        .ds-story-analysis .a-kpi small { display:block; color:rgba(198,210,238,.5); font-size:.88rem; letter-spacing:.04em; text-transform:uppercase; }
        .ds-story-analysis .a-kpi .num { font-family:var(--ds-heading-font); font-size:clamp(3.5rem,6vw,5.5rem); font-weight:750; color:#fff; line-height:1; margin-top:.35rem; }
        .ds-story-analysis .a-kpi .delta { margin-top:.7rem; font-size:1.1rem; font-weight:700; color:#ffb37a; }
        .ds-story-analysis .a-kpi .delta .yoy { color:rgba(198,210,238,.5); font-weight:500; font-size:.86rem; margin-left:.45rem; }
        .ds-story-analysis .a-chart { position:absolute; left:6%; top:56%; width:52%; max-width:520px; }
        .ds-story-analysis .a-chart-title { color:rgba(198,210,238,.72); font-size:.82rem; margin-bottom:.7rem; }
        .a-chart-bars { display:flex; align-items:flex-end; gap:16px; }
        .a-chart-bars .col { flex:1; display:flex; flex-direction:column; align-items:center; gap:.4rem; }
        .a-chart-bars .track { width:100%; height:170px; display:flex; align-items:flex-end; }
        .a-chart-bars.small .track { height:90px; }
        .a-chart-bars .bar { width:100%; border-radius:6px 6px 2px 2px; background:linear-gradient(180deg,#8feaff,#6d5cff); height:0%; }
        .a-chart-bars .bar.down { background:linear-gradient(180deg,#ffb37a,#ff7a7a); }
        .a-chart-bars .lbl { color:rgba(198,210,238,.5); font-size:.68rem; }
        .ds-story-analysis .a-compare { position:absolute; right:6%; top:26%; width:34%; max-width:360px; }
        .a-compare-title { color:rgba(198,210,238,.72); font-size:.82rem; margin-bottom:.8rem; }
        .a-compare-row { display:flex; align-items:center; gap:.65rem; margin-bottom:.6rem; }
        .a-compare-row .rl { width:56px; font-size:.78rem; color:rgba(198,210,238,.72); flex-shrink:0; }
        .a-compare-row .rt { flex:1; height:9px; border-radius:5px; background:rgba(140,155,225,.12); overflow:hidden; }
        .a-compare-row .rf { height:100%; border-radius:5px; background:linear-gradient(90deg,#8feaff,#6d5cff); width:0%; }
        .a-compare-row.flag .rf { background:linear-gradient(90deg,#ffb37a,#ff7a7a); }
        .a-compare-row .rv { width:48px; text-align:right; font-size:.78rem; font-weight:650; color:#fff; flex-shrink:0; }
        .a-compare-row.flag .rv { color:#ffb37a; }
        .ds-story-analysis .a-support { position:absolute; right:6%; bottom:8%; display:flex; gap:1.6rem; }
        .a-support small { display:block; color:rgba(198,210,238,.5); font-size:.68rem; text-transform:uppercase; letter-spacing:.03em; }
        .a-support b { display:block; margin-top:.22rem; font-family:var(--ds-heading-font); font-size:1.06rem; color:#fff; }
        .a-support b.down { color:#ffb37a; }

        /* ---- scene 6: insight - analysis reorganizes, doesn't vanish.
           insight-bg is the SAME chart/comparison shapes from scene 5,
           shrunk and dimmed into the corners rather than removed, while
           insight-focus brings the conclusion into the freed-up center. ---- */
        .ds-story-insight-bg { left:0; top:0; right:0; bottom:0; opacity:0; pointer-events:none; }
        .ds-story-insight-bg .ib-chart { position:absolute; right:7%; bottom:7%; width:300px; transform:scale(.82); transform-origin:bottom right; }
        /* top:16%, not 9% - clears the persistent data-tab pill (top:8%),
           which stays visible through this scene too and would otherwise
           sit right on top of this dimmed comparison widget's header. */
        .ds-story-insight-bg .ib-compare { position:absolute; top:16%; right:7%; width:280px; }
        /* Vertical centering via flexbox on a full-height (top:0;bottom:0)
           box, not top:46%+transform:translateY(-50%): _SCROLL_STORY_SCRIPT
           sets this element's inline transform every frame (for the small
           slide-up entrance), which was silently *replacing* that
           translateY(-50%) rather than composing with it - the block was
           actually top-anchored at 46% of viewport height, not centered,
           so its real bottom edge sat far lower than intended. That went
           unnoticed at 900px-tall viewports (enough slack below to absorb
           it) but clipped the "Next" pill outright at 768px-800px ones.
           Flexbox centering doesn't touch `transform` at all, so it can't
           be clobbered by the script's own entrance-slide transform the
           same way - the two now compose safely instead of colliding.
           padding reserves guaranteed top/bottom safe-space so the block
           - including the pill - never touches the canvas edge even if
           its content height changes, and everything scales with actual
           viewport height (vh) automatically rather than a fixed anchor. */
        .ds-story-insight-focus {
            left:7%; right:30%; top:0; bottom:0;
            display:flex; flex-direction:column; justify-content:center;
            padding:7vh 0 9vh; opacity:0;
        }
        .ds-story-insight-focus .i-kicker { color:#7fd8ff; font-family:var(--ds-heading-font); font-size:.92rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; margin-bottom:1.1rem; }
        .ds-story-insight-focus .i-quote { max-width:720px; font-family:var(--ds-heading-font); font-size:clamp(2.5rem,4.6vw,3.7rem); font-weight:730; line-height:1.16; letter-spacing:-.02em; color:#fff; padding-left:1.5rem; border-left:4px solid #7c5cff; }
        .ds-story-insight-focus .i-quote b { color:#ffb37a; font-weight:760; }
        /* The next action is a real continuation, not a footnote - same
           visual weight class as a KPI callout, not helper text. */
        .ds-story-insight-focus .i-next { margin-top:2.2rem; }
        .ds-story-insight-focus .i-next-label {
            color:#7fd8ff; font-size:.85rem; font-weight:800; letter-spacing:.16em;
            text-transform:uppercase; margin-bottom:.7rem; padding-left:1.5rem;
        }
        .ds-story-insight-focus .i-next-action {
            display:inline-flex; align-items:center; gap:1rem;
            padding:1.05rem 1.7rem; border-radius:16px;
            background:linear-gradient(135deg, rgba(124,92,255,.18), rgba(36,120,200,.14));
            border:1px solid rgba(167,139,255,.4);
            font-family:var(--ds-heading-font); font-size:clamp(1.3rem,1.9vw,1.65rem); font-weight:700; color:#fff;
        }
        .ds-story-insight-focus .i-next-action .arrow-badge {
            width:36px; height:36px; border-radius:50%; flex-shrink:0;
            background:linear-gradient(145deg,#7c5cff,#2478c8);
            display:grid; place-items:center; color:#fff; font-size:1.05rem;
        }

        @media (max-width:900px){
            .ds-story-track { height:auto; }
            .ds-story-canvas { position:static; height:auto; min-height:60vh; padding:2.4rem 0; }
            .ds-story-headline-wrap { position:static; opacity:1 !important; }
            .ds-story-headline { position:static; opacity:1 !important; transform:none !important; max-width:none; margin-bottom:1.6rem; }
            .ds-story-headline:not([data-el="h1"]) { display:none; }
            .ds-story-obj:not(.ds-story-headline-wrap) { display:none; }
        }
        @media (prefers-reduced-motion: reduce){
            .ds-story-track { height:auto; }
            .ds-story-canvas { position:static; height:auto; padding:2.4rem 0; }
            .ds-story-headline-wrap { position:static; opacity:1 !important; }
            .ds-story-headline { position:static; opacity:1 !important; margin-bottom:2rem; }
            .ds-story-headline:not([data-el="h1"]) { display:none; }
            .ds-story-obj:not(.ds-story-headline-wrap) { display:none; }
        }

        /* NOTE: production has a small progressive-enhancement rule here
           giving the (now-removed) per-scene "How it works" kicker label
           its own scroll-linked fade-in via @supports(animation-timeline:
           view()). That kicker text was the literal duplication this
           round's feedback asked to remove (see index.html - the
           section-level "HOW IT WORKS" label is kept; the one repeated
           inside each scene is gone), so this micro-animation has nothing
           left to animate and was removed rather than left as dead CSS
           targeting a class no markup uses anymore. Flagged here, not
           silently dropped. */

