/* Four-stage AI workflow, with a wide editorial heading and equal pill navigation. */
.main-content > section#tools-stack { content-visibility: visible; }

.scroll-story-section {
    --story-card-top: 29.5vh;
    position: relative;
    z-index: 2;
    padding: clamp(5rem, 8vw, 7.5rem) 0 0;
}
.scroll-story-shell.container { width: calc(100% - 4rem); max-width: 1600px; padding-inline: 0; }
.scroll-story-rail {
    position: sticky;
    top: 12vh;
    align-self: start;
    padding-bottom: 0;
    min-height: 88vh;
}
.scroll-story-header { margin-bottom: 0; }
.scroll-story-header h2 {
    margin: 0;
    color: #24272b;
    font-family: var(--font-main);
    font-size: clamp(2.15rem, 2.45vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.3;
    text-align: left;
}
.scroll-story-description {
    white-space: nowrap;
    margin: 1.35rem 0 0;
    color: #62666c;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
}
.scroll-story-description-main {
    display: inline;
    color: #485564;
    font-size: 1.08rem;
    letter-spacing: .015em;
}
.scroll-story-description-main strong { color: #34465b; font-weight: 600; }
.scroll-story-description-detail {
    display: inline;
    margin-top: 0;
    color: #7a828c;
    font-size: .9rem;
    letter-spacing: .015em;
}
.scroll-story-layout {
    display: grid;
    grid-template-columns: clamp(320px, 18.75vw, 360px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(3rem, 6.15vw, 7.375rem);
}
.scroll-story-navigation {
    display: grid;
    gap: 1.35rem;
    width: 260px;
    margin-top: 5.5rem;
    margin-left: 0;
}
.scroll-story-nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    min-height: 66px;
    padding: 0.8rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    box-shadow: 0 0 0 rgba(25, 25, 25, 0);
    color: #a9afb8;
    cursor: pointer;
    font: 500 0.93rem var(--font-main);
    text-align: left;
    white-space: nowrap;
    transition: background-color 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.36s ease,
        box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-story-nav-item:hover:not(.is-active) { color: #545c67; }
.scroll-story-nav-item.is-active {
    border-color: #050505;
    background: #050505;
    box-shadow: 0 10px 23px rgba(25, 25, 25, 0.16);
    color: #fff;
}
.scroll-story-nav-item:focus-visible { outline: 2px solid #3154a3; outline-offset: 3px; }
.scroll-story-nav-number {
    flex: none;
    font-family: Arial, "Segoe UI", sans-serif;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "zero" 0;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}
.scroll-story-stack { position: relative; min-width: 0; padding-top: 10rem; }
.scroll-story-stack::after { content: ""; display: none; height: 0; }
.scroll-story-marker { height: 0; scroll-margin-top: var(--story-card-top); }
.scroll-story-card {
    --story-heading-height: 128px;
    --story-copy-gap: clamp(.8rem, 2.8vh, 2rem);
    --story-pane-height: max(clamp(200px, 24vh, 240px), var(--story-copy-height, 0px));
    --story-ornament-top: calc(var(--story-heading-height) + var(--story-copy-gap) + var(--story-pane-height) + 2.5rem);
    --story-art-height: calc(100vh - var(--story-card-top));
    position: sticky;
    top: var(--story-card-top);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - var(--story-card-top));
    margin-bottom: 0;
    overflow: hidden;
    border: 1px solid #d4dde4;
    border-radius: 24px;
    background: #f8fafb var(--story-art) center / cover no-repeat;
    box-shadow: 0 16px 44px rgba(43, 60, 80, 0.07), 0 2px 6px rgba(43, 60, 80, 0.03);
    opacity: 1;
}
.scroll-story-card:last-child { margin-bottom: 0; }
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    /* Space belongs to the incoming marker, not the sticky card's margin box.
       A bottom margin makes outgoing cards hit the stack boundary too early. */
    .scroll-story-marker ~ .scroll-story-marker { height: clamp(60px, 8vh, 84px); }
    .scroll-story-stack::after { display: block; height: clamp(32px, 5vh, 56px); }
}
.scroll-story-card[data-story-card="0"] { z-index: 1; --story-art: url('assets/workflow/01-selected-soft-oct10.png'); --story-accent: 49, 106, 174; }
.scroll-story-card[data-story-card="1"] { z-index: 2; --story-art: url('assets/workflow/02-reference-oct10.webp'); --story-accent: 62, 115, 167; }
.scroll-story-card[data-story-card="2"] { z-index: 3; --story-art: url('assets/workflow/03-reference-oct10.webp'); --story-accent: 51, 107, 172; }
.scroll-story-card[data-story-card="3"] { z-index: 4; --story-art: url('assets/workflow/04-selected-soft-oct10.png'); --story-accent: 49, 106, 165; }
.scroll-story-card.is-behind {
    opacity: 0;
    pointer-events: none;
}
.scroll-story-card-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
    min-height: 128px;
    margin: 0;
    padding: 1.3rem clamp(1.5rem, 3vw, 3.25rem);
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, .78);
    border-bottom: 1px solid rgba(255, 255, 255, .68);
    background: rgba(242, 248, 255, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), inset 0 -1px 0 rgba(60, 101, 148, .12), inset 1px 0 0 rgba(255, 255, 255, .62), 0 3px 12px rgba(38, 69, 106, .05);
    overflow: hidden;
    isolation: isolate;
    flex-shrink: 0;
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
}
/* A full-card-sized copy keeps the glass refraction aligned with the artwork.
   Only this clipped background is displaced; heading glyphs stay sharp. */
.scroll-story-card-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--story-art-height);
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, .48), rgba(255, 255, 255, .08) 8px, transparent 28px),
        linear-gradient(115deg, rgba(255, 255, 255, .34), rgba(246, 251, 255, .14) 48%, rgba(255, 255, 255, .28)),
        var(--story-art) center / cover no-repeat;
    filter: url('#workflow-glass-refraction') blur(4px) saturate(1.08);
}
.scroll-story-card-heading::after {
    content: "";
    flex: none;
    width: 42px;
    height: 4px;
    margin-left: auto;
    border-radius: 2px;
    background: rgb(var(--story-accent));
    box-shadow: 0 7px 0 rgba(var(--story-accent), .25);
}
.scroll-story-step {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.2em;
    min-width: 124px;
    min-height: 56px;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(46, 82, 125, .06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 1px 4px rgba(34, 61, 91, .05);
    color: #334440;
    font: 500 1rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: -0.025em;
}
.scroll-story-step strong { margin-left: 0.3em; font-size: 1.5rem; font-weight: 600; color: rgb(var(--story-accent)); }
.scroll-story-card-heading h3 {
    margin: 0;
    color: #2d3c3d;
    font-family: var(--font-main);
    font-size: clamp(1.08rem, 1.3vw, 1.45rem);
    font-weight: 600;
    line-height: 1.45;
}
.scroll-story-media {
    position: relative;
    order: 3;
    display: grid;
    flex: 1;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    background: transparent;
}
.scroll-story-media span {
    display: none;
    font: 300 clamp(7rem, 15vw, 13rem)/1 var(--font-serif);
    letter-spacing: -0.05em;
}
/* An inset glass pane lets the painting continue around and beneath the copy. */
.scroll-story-copy {
    position: relative;
    order: 1;
    flex: none;
    display: flex;
    align-items: center;
    min-height: max(clamp(200px, 24vh, 240px), var(--story-copy-height, 0px));
    margin: var(--story-copy-gap) clamp(2.8rem, 5vw, 5.8rem) 0;
    padding: clamp(1.35rem, 1.7vw, 2rem) clamp(1.5rem, 2.2vw, 2.6rem);
    border: 1px solid transparent;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
    color: #263b50;
    font: 400 clamp(.92rem, .87vw, 1.04rem)/1.85 var(--font-main);
    letter-spacing: .015em;
}
/* Expanded reading core; symmetric feathering reaches the card and heading edges. */
.scroll-story-copy::before {
    content: '';
    position: absolute;
    left: var(--glass-left, -70px);
    width: var(--glass-width, calc(100% + 140px));
    top: var(--glass-top, calc(50% - 180px));
    height: var(--glass-height, 360px);
    transform: none;
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(255, 255, 255, .34), rgba(246, 250, 254, .20) 60%, rgba(255, 255, 255, .26));
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    mask-image: linear-gradient(to right, transparent, rgba(0,0,0,.38) calc(var(--glass-fade-x, 70px) * .2), rgba(0,0,0,.8) calc(var(--glass-fade-x, 70px) * .55), #000 var(--glass-fade-x, 70px), #000 calc(100% - var(--glass-fade-x, 70px)), rgba(0,0,0,.8) calc(100% - var(--glass-fade-x, 70px) * .55), rgba(0,0,0,.38) calc(100% - var(--glass-fade-x, 70px) * .2), transparent), linear-gradient(to bottom, transparent, rgba(0,0,0,.38) calc(var(--glass-fade-y, 110px) * .2), rgba(0,0,0,.8) calc(var(--glass-fade-y, 110px) * .55), #000 var(--glass-fade-y, 110px), #000 calc(100% - var(--glass-fade-bottom, 80px)), rgba(0,0,0,.8) calc(100% - var(--glass-fade-bottom, 80px) * .55), rgba(0,0,0,.38) calc(100% - var(--glass-fade-bottom, 80px) * .2), transparent);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to right, transparent, rgba(0,0,0,.38) calc(var(--glass-fade-x, 70px) * .2), rgba(0,0,0,.8) calc(var(--glass-fade-x, 70px) * .55), #000 var(--glass-fade-x, 70px), #000 calc(100% - var(--glass-fade-x, 70px)), rgba(0,0,0,.8) calc(100% - var(--glass-fade-x, 70px) * .55), rgba(0,0,0,.38) calc(100% - var(--glass-fade-x, 70px) * .2), transparent), linear-gradient(to bottom, transparent, rgba(0,0,0,.38) calc(var(--glass-fade-y, 110px) * .2), rgba(0,0,0,.8) calc(var(--glass-fade-y, 110px) * .55), #000 var(--glass-fade-y, 110px), #000 calc(100% - var(--glass-fade-bottom, 80px)), rgba(0,0,0,.8) calc(100% - var(--glass-fade-bottom, 80px) * .55), rgba(0,0,0,.38) calc(100% - var(--glass-fade-bottom, 80px) * .2), transparent);
    -webkit-mask-composite: source-in;
    pointer-events: none;
}
.scroll-story-copy p { position: relative; z-index: 1; margin: 0; text-indent: 2em; text-shadow: 0 1px 1px rgba(255, 255, 255, .22); }
.scroll-story-copy strong { color: #183a5c; font-weight: 600; }
.workflow-visuals {
    position: relative;
    order: 2;
    flex: none;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    gap: 1rem;
    margin: 1.75rem clamp(2.8rem, 5vw, 5.8rem) 0;
}
.scroll-story-tools {
    flex: none;
    display: contents;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    margin: 0;
    padding: 0;
    list-style: none;
}
.scroll-story-tool {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: rgba(255, 255, 255, .95);
    font: 500 clamp(.85rem, .9vw, 1rem)/1.4 var(--font-main);
    white-space: nowrap;
    text-shadow: 0 2px 9px rgba(18, 43, 68, .6);
}
.scroll-story-tool-logo {
    flex: none;
    width: 100px;
    height: 84px;
    object-fit: contain;
    overflow: visible;
    filter: drop-shadow(0 2px 2px rgba(19, 39, 63, .22));
}
.logo-original-codex { padding: 0 8px; }
.logo-original-antigravity { padding: 4px 8px; }
.logo-original-figma { padding: 4px 8px; }
.logo-original-antigravity { filter: url("#workflow-antigravity-soft-relief") drop-shadow(0 1px 1.5px rgba(19,39,63,.12)); }
.logo-original-stitch { filter: url("#workflow-original-logo-relief") drop-shadow(0 2px 2px rgba(19,39,63,.22)); }
.scroll-story-tool-logo:has(use[href="#workflow-logo-stitch"]) use,
.scroll-story-tool-logo:has(use[href="#workflow-logo-antigravity"]) use {
    transform-box: fill-box;
    transform-origin: center;
}
.scroll-story-tool-logo:has(use[href="#workflow-logo-stitch"]) use { transform: scale(1.01); }
.scroll-story-tool-logo:has(use[href="#workflow-logo-antigravity"]) use { transform: scale(.92); }
/* Logos lead the row; transparent editorial illustrations follow in reading order. */
.workflow-ornaments { display: contents; pointer-events: none; }
.workflow-art { position: relative; flex: none; height: 118px; overflow: hidden; }
.workflow-art img { display: block; height: 100%; width: auto; max-width: none; position: absolute; top: 0; }
.art-research-left, .art-research-right { width: 125px; }
.art-research-left img, .art-collaboration-left img { left: 0; }
.art-research-right img, .art-collaboration-right img { right: 0; }
.art-prototype { width: 110px; height: 76px; }
.art-prototype img { width: 100%; height: 100%; object-fit: contain; }
.art-collaboration-left, .art-collaboration-right { width: 165px; height: 118px; }
.art-collaboration-left img, .art-collaboration-right img {
    width: 140px; height: 84px; object-fit: contain;
    left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%);
}
.evaluation-flow { position: relative; }
.evaluation-flow-links { position: absolute; left: 0; top: 0; width: 100%; height: 118px; pointer-events: none; }
.evaluation-flow .workflow-art { z-index: 1; }
.art-evaluation-part { width: 150px; height: 118px; }
.art-evaluation-part img { width: 130px; height: 100px; object-fit: contain; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.art-evaluation { width: 60%; height: 138px; }
.art-evaluation img {
    width: 100%; height: 110px; object-fit: contain;
    top: 50%; transform: translateY(-50%);
}
@media (min-width: 901px) and (max-width: 1200px) {
    .scroll-story-card[data-story-card="1"] .workflow-visuals { flex-wrap: wrap; }
    .art-research-left, .art-research-right { width: 95px; height: 100px; }
    .art-collaboration-left, .art-collaboration-right { width: 120px; height: 108px; }
    .art-collaboration-left img, .art-collaboration-right img { width: 115px; height: 76px; }
}
@media (min-width: 901px) and (max-height: 800px) {
    .scroll-story-card { --story-heading-height: 92px; }
    .scroll-story-section { --story-card-top: 22vh; }
    .scroll-story-card-heading { min-height: 92px; padding-block: 1rem; }
    .scroll-story-copy { padding-block: 1.2rem; font-size: .9rem; line-height: 1.75; }
}
@media (max-width: 900px) {
    .scroll-story-section { padding-block: 5rem; }
    .scroll-story-description { white-space: normal; }
    .scroll-story-copy { margin-bottom: 2rem; }
    .scroll-story-tools { margin-top: 0; }
    .scroll-story-layout { display: block; }
    .scroll-story-rail { position: static; padding-bottom: 0; }
    .scroll-story-navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        width: 100%;
        margin: 2rem 0;
    }
    .scroll-story-nav-item { white-space: normal; min-height: 66px; font-size: 0.8rem; }
    .scroll-story-stack { padding: 0; }
    .scroll-story-stack::after { display: none; }
    .scroll-story-marker { scroll-margin-top: 7rem; }
    .scroll-story-card {
        --story-art-height: calc(100px + clamp(220px, 42vw, 350px));
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
        margin-bottom: 1.4rem;
        opacity: 1 !important;
        transform: none !important;
        will-change: auto;
    }
    .scroll-story-card.is-behind { opacity: 1; pointer-events: auto; }
    .workflow-visuals { display: flex; flex-wrap: wrap; gap: .8rem; margin: -.3rem 1.1rem 1rem; }
    .scroll-story-tools { display: flex; }
    .workflow-ornaments { display: flex; flex: 1 1 100%; align-items: center; justify-content: space-evenly; gap: 1rem; }
    .art-research-left, .art-research-right { width: 36%; height: 112px; }
    .art-prototype { height: 70px; }
    .art-collaboration-left, .art-collaboration-right { width: 46%; height: 115px; }
    .art-collaboration-left img, .art-collaboration-right img { width: 100%; height: 84px; }
    .art-evaluation { width: 100%; height: 130px; }
    .evaluation-ornaments { gap: .5rem; }
    .evaluation-flow-links { height: 100px; }
    .art-evaluation-part { width: 23%; height: 100px; }
    .art-evaluation-part img { width: 100%; height: 80px; }
    .scroll-story-card-heading { min-height: 100px; }
    .scroll-story-media { order: 4; flex: none; height: clamp(220px, 42vw, 350px); }
}
@media (max-width: 600px) {
    .scroll-story-header { margin-bottom: 2rem; }
    .scroll-story-header h2 { font-size: 2rem; }
    .scroll-story-description { margin-top: 1.3rem; font-size: 0.9rem; }
    .scroll-story-nav-item { padding: 0.65rem 0.8rem; font-size: 0.75rem; }
    .scroll-story-card { border-radius: 23px; }
    .scroll-story-card { --story-art-height: calc(100px + clamp(220px, 42vw, 350px)); }
    .scroll-story-card-heading {
        flex-wrap: wrap;
        gap: 0.75rem;
        margin: 0;
        padding: 1rem 1.2rem;
        border-radius: 0;
    }
    .scroll-story-step { min-width: 78px; min-height: 42px; font-size: 0.8rem; }
    .scroll-story-step strong { font-size: 1.2rem; }
    .scroll-story-card-heading::after { display: none; }
    .scroll-story-card-heading h3 { font-size: 1rem; }
    .scroll-story-copy { margin: 2.2rem .8rem 1.3rem; padding: 1.25rem 1.1rem; border-radius: 16px; font-size: .9rem; line-height: 1.85; }
    .scroll-story-tools { margin: 0; gap: .7rem; }
    .scroll-story-tool { gap: .3rem; font-size: .65rem; }
    .scroll-story-tool-logo { width: 36px; height: 44px; }
    .logo-original-codex { padding: 0 2px; }
    .logo-original-antigravity, .logo-original-figma { padding: 2px; }
    .scroll-story-card[data-story-card="1"] .scroll-story-tools { width: 100%; justify-content: space-between; gap: .2rem; }
    .scroll-story-card[data-story-card="1"] .scroll-story-tool { font-size: .58rem; gap: .15rem; }
    .scroll-story-card[data-story-card="1"] .scroll-story-tool-logo { width: 28px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-story-rail,
    .scroll-story-card { position: relative; top: auto; }
    .scroll-story-rail { padding-bottom: 0; }
    .scroll-story-stack { padding-bottom: 0; }
    .scroll-story-stack::after { display: none; }
    .scroll-story-card {
        --story-art-height: 388px;
        height: auto;
        min-height: 0;
        margin-bottom: 1.5rem;
        opacity: 1 !important;
        transform: none !important;
        transition: none;
        will-change: auto;
    }
    .scroll-story-media { flex: none; height: 260px; }
    .scroll-story-card.is-behind { opacity: 1; pointer-events: auto; }
    .scroll-story-nav-item { transition: none; }
    .scroll-story-copy { margin-bottom: 2rem; }
}

/* Stage title and a compact, left-aligned tools line. */
.scroll-story-card-heading {
    display: grid; grid-template-columns: 124px minmax(0, 1fr) 42px;
    grid-template-rows: auto auto; column-gap: 2.25rem; row-gap: .4rem;
    align-content: center;
}
.scroll-story-step { grid-column: 1; grid-row: 1 / 3; }
.scroll-story-card-heading h3 { grid-column: 2; grid-row: 1; }
.scroll-story-card-heading:not(:has(.header-tool-group)) h3 { grid-row: 1 / 3; }
.scroll-story-card-heading::after { grid-column: 3; grid-row: 1 / 3; }
.header-tool-group { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: .6rem; min-width: 0; }
.header-tools-label { flex: none; color: #4b5c6d; font: 500 .73rem/1.4 var(--font-main); }
.scroll-story-card-heading .header-tools {
    display: flex; align-items: center; justify-content: flex-start;
    flex: none; flex-wrap: wrap; gap: 1.4rem; margin: 0; min-width: 0;
}
.header-tools .scroll-story-tool { gap: .4rem; font-size: .72rem; color: #34465b; text-shadow: 0 1px 3px rgba(255,255,255,.55); }
.header-tools .scroll-story-tool-logo { width: 30px; height: 30px; }
.header-tools .logo-original-codex { padding: 0 2px; }
.header-tools .logo-original-antigravity, .header-tools .logo-original-figma { padding: 2px; }
.header-tools .scroll-story-tool-logo { filter: contrast(.93); }
.header-tools .logo-original-antigravity { filter: url("#workflow-antigravity-soft-relief") contrast(.94); }
.header-tools .logo-original-stitch { filter: none; }
@media (min-width: 901px) and (max-width: 1500px) {
    .scroll-story-card-heading { grid-template-columns: 100px minmax(0, 1fr) 28px; column-gap: 1.2rem; padding-inline: 1.7rem; }
    .scroll-story-step { min-width: 100px; }
    .scroll-story-card-heading::after { width: 28px; }
    .scroll-story-card-heading .header-tools { gap: .65rem; }
    .header-tools .scroll-story-tool-logo { width: 24px; height: 24px; }
    .header-tools .scroll-story-tool { font-size: .65rem; gap: .25rem; }
    .header-tools-label { font-size: .65rem; }
}
@media (max-width: 900px) {
    .scroll-story-rail { min-height: 0; }
    .scroll-story-card-heading { grid-template-columns: 78px minmax(0,1fr); gap: .6rem .8rem; }
    .scroll-story-step { grid-row: 1; }
    .scroll-story-card-heading h3 { grid-row: 1; }
    .header-tool-group { grid-column: 1 / 3; flex-wrap: wrap; gap: .2rem .4rem; }
    .header-tools-label { font-size: .6rem; }
    .scroll-story-card-heading .header-tools { gap: .4rem; }
    .header-tools .scroll-story-tool { font-size: .58rem; gap: .15rem; }
    .scroll-story-card[data-story-card="1"] .header-tools .scroll-story-tool-logo,
    .header-tools .scroll-story-tool-logo { width: 22px; height: 24px; }
    .scroll-story-card[data-story-card="1"] .scroll-story-tools.header-tools { width: auto; justify-content: flex-start; gap: .4rem; }
    .scroll-story-copy { margin-top: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .scroll-story-rail { min-height: 0; } }

/* Supplied oil-paint illustrations: even spacing with alternating elevations. */
.workflow-visuals.workflow-painted-flow {
    display: grid;
    grid-template-columns: repeat(var(--workflow-count), minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 0;
    height: clamp(132px, 19vh, 184px);
    margin: .5rem clamp(2.8rem, 5vw, 5.8rem) 0;
    align-items: center;
    isolation: isolate;
    pointer-events: none;
}
.workflow-painted-item {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    height: 78%;
    transform: translateY(-9%);
}
.workflow-painted-item:nth-of-type(even) { transform: translateY(14%); }
.workflow-painted-item img {
    display: block;
    width: min(88%, 148px);
    height: 100%;
    object-fit: contain;
}
.workflow-painted-links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 0;
}
@media (max-width: 900px) {
    .workflow-visuals.workflow-painted-flow {
        height: clamp(90px, 18vw, 150px);
        margin: .2rem .6rem 1.1rem;
    }
    .workflow-painted-item img { width: 94%; }
}
