/* Process v23: one deliberate wheel gesture per desktop chapter. */
.story-section{scroll-margin-top:-20px;padding-top:20px;background:radial-gradient(ellipse at 85% 45%,#14366b66,transparent 65%),var(--night)}
.story-masthead{padding-top:20px;background:#091b35;isolation:isolate}
.story-masthead::before{content:"";position:absolute;inset:0 calc((1280px - 100vw)/2);background:#091b35;z-index:-1;pointer-events:none}
.story-masthead .section-heading{margin-bottom:20px;gap:32px}
.story-masthead h2{font-size:clamp(28px,2.6vw,38px);max-width:600px}
.story-masthead .section-heading>p{max-width:345px;line-height:1.6}
.chapter-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:0;border-top:1px solid #709fe333;border-bottom:0;background:transparent}
.chapter-nav::before,.chapter-nav::after{content:"";position:absolute;bottom:0;left:0;height:2px;pointer-events:none}
.chapter-nav::before{width:100%;background:#709fe333}
.chapter-nav::after{width:100%;background:#83b4ff;transform:scaleX(calc((var(--story-progress,0)*4 + 1)/5));transform-origin:left}
.chapter-nav a{justify-content:center;gap:8px;min-height:64px;padding:12px 5px;transition:color .2s,background .2s}
.chapter-nav a::after{display:none}
.chapter-nav a:hover{background:#ffffff08;color:white}
.chapter-nav a[aria-current]{background:linear-gradient(0deg,#2960c328,transparent)}
.chapter-nav a span{flex-shrink:0;transition:background .2s,border-color .2s}
.chapter-nav a.is-complete span{background:#163e70;color:#b7d7ff;border-color:#527fb9}
.story-section{overflow-anchor:none}
.revision-preview{position:relative}
.revision-preview input{top:20px;left:0}
@media(min-width:801px){
 .js-story .story-grid{position:relative;min-height:calc(100svh - var(--story-top) + 800px);grid-template-columns:.86fr 1.2fr;gap:clamp(32px,5vw,80px)}
 .js-story .story-steps{position:sticky;top:var(--story-top);height:calc(100svh - var(--story-top));display:grid;align-items:center;padding:28px 0;min-width:0}
 .js-story .process-step{grid-area:1/1;min-height:0;padding:0;border:0;opacity:0;visibility:hidden;transform:translateY(16px);transition:opacity .28s ease,transform .35s ease,visibility .28s;pointer-events:none}
 .js-story .process-step.is-active{opacity:1;visibility:visible;transform:none;pointer-events:auto}
 .process-step h3{font-size:clamp(28px,2.65vw,40px);margin-bottom:20px}
 .process-step p{font-size:16px;line-height:1.75}
 .step-number{margin-bottom:16px;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
 .scene-column{padding:28px 0 40px;justify-content:center}
 .scene-surround{width:min(100%,calc((100svh - var(--story-top) - 110px)*1.385));border:1px solid #709fe326;background:radial-gradient(ellipse at 50% 40%,#366bb950,transparent 75%),#0e2546;box-shadow:0 24px 65px #0002}
 .scene-track,.scene-footnote{display:none}
 .scene-position{padding:10px 16px;background:#081c3544}
}
@media(min-width:801px) and (max-height:850px){
 .story-masthead{padding-top:12px}.story-masthead h2{font-size:28px;max-width:520px}.story-masthead .section-heading{margin-bottom:12px}.chapter-nav a{min-height:54px}
 .js-story .story-steps{padding:20px 0}.process-step h3{font-size:29px;margin-bottom:14px}.process-step p{font-size:14px;line-height:1.65}.step-number{margin-bottom:10px}
 .scene-column{padding:18px 0 22px}.scene-surround{width:min(100%,calc((100svh - var(--story-top) - 70px)*1.385))}
 .revision-preview{margin-top:12px;gap:6px}.revision-preview label{min-height:38px;padding:6px;font-size:12px}.comparison-frame{padding:8px;min-height:0}.compare-button{min-height:35px}.revision-preview legend{margin-bottom:6px}.process-step .feedback-note{margin-top:14px;padding-top:12px}
}
@media(max-width:1376px){.story-masthead::before{inset-inline:-48px}}
@media(max-width:1200px){.story-masthead::before{inset-inline:-32px}}
@media(max-width:1000px) and (min-width:801px){.chapter-nav a{font-size:11px;gap:5px}.chapter-nav a span{width:23px;height:23px}.story-masthead .section-heading>p{max-width:290px;font-size:13px}}
@media(max-width:800px){
 .story-masthead{display:contents}.story-masthead::before{display:none}.story-masthead .section-heading{margin-bottom:25px;gap:16px}.story-masthead h2{font-size:clamp(30px,5vw,38px)}
 .chapter-nav{display:flex;gap:0;background:#091b35;padding-inline:20px;scroll-padding-inline:20px;border-bottom:1px solid #709fe333}
 .chapter-nav a{padding:12px 15px;min-height:60px;justify-content:flex-start}.chapter-nav::before,.chapter-nav::after{display:none}
 .chapter-nav a{border-bottom:2px solid transparent}.chapter-nav a.is-complete{border-bottom-color:#527fb9}.chapter-nav a[aria-current]{border-bottom-color:#9ac3ff}
 .process-step{padding-block:32px}.process-step p{line-height:1.7}.chapter-figure{margin-top:22px}.chapter-stage{border:1px solid #709fe333}
}
@media(prefers-reduced-motion:reduce){.js-story .process-step,.chapter-nav a,.chapter-nav a span{transition:none!important;transform:none!important}}


/* The change is explained by the scroll story, without a second navigation UI. */
.revision-result{max-width:440px;margin-top:24px;border-top:1px solid #35517b;padding-top:20px}
.revision-status{display:flex;align-items:center;gap:9px;color:#a9cdff;font-size:12px;font-weight:650}
.revision-status i{display:grid;place-items:center;font-style:normal;width:21px;height:21px;border-radius:50%;background:#193f6c;color:#c5dfff}
.process-step .revision-result p{font-size:13px;color:#a7bbd6;margin:9px 0 16px;line-height:1.6}
.revision-example{display:inline-flex;align-items:center;gap:24px;min-height:42px;padding:10px 16px;border:1px solid #4779d6;background:#184ba3;color:#f4f8ff;border-radius:6px;font-size:12px;font-weight:650}
@media(min-width:801px) and (max-height:850px){.revision-result{margin-top:18px;padding-top:16px}}

/* v25: frameless, vector-sharp image stack. */
.story-section .scene-surround,.story-section .chapter-stage{border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}
.story-section .scene-stage{background:none;overflow:visible}
.story-section .scene-fallback{border-radius:0;object-fit:contain}
.story-section .scene-position,.story-section .scene-track,.story-section .scene-footnote{display:none}
.process-image-stack{position:absolute;inset:0;isolation:isolate;pointer-events:none}
.process-image-card{position:absolute;inset:0;transform-origin:50% 45%;will-change:transform,opacity}
.process-image-card img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 15px 18px #0004)}
@media(min-width:801px){.story-section .scene-surround{width:min(100%,calc((100svh - var(--story-top) - 55px)*1.385));max-width:760px}.story-section .scene-column{overflow:clip;overflow-clip-margin:35px}.story-section .desktop-stage{aspect-ratio:720/520}}
@media(max-width:800px){.story-section .chapter-stage{aspect-ratio:720/520}.story-section .chapter-figure{margin-top:18px}}
@media(prefers-reduced-motion:reduce){.process-image-card{will-change:auto;transform:none!important}}

/* Full-bleed paint must not use 100vw geometry: that includes scrollbar width. */
.story-section .story-masthead::before{inset:0;box-shadow:0 0 0 100vmax #091b35;clip-path:inset(0 -100vmax)}

/* Compressed still art with compositor-only motion, no video or GIF payload. */
.process-image-card.illustrated{border-radius:14px;overflow:hidden;background:#0c203a;border:1px solid #355984;box-shadow:0 16px 30px #0003}
.process-image-card.illustrated img{object-fit:cover;filter:none}
.process-image-card.illustrated.is-current img{animation:art-breathe 7s ease-in-out infinite alternate;animation-play-state:paused}
.process-image-stack.is-playing .illustrated.is-current img{animation-play-state:running}
.scene-motion-accent{position:absolute;bottom:0;left:0;width:100%;height:2px;background:linear-gradient(90deg,transparent,#7eb8ff,transparent);opacity:0;transform:scaleX(.1);transform-origin:left}
.process-image-stack.is-playing .is-current .scene-motion-accent{animation:art-progress 3.6s ease-in-out infinite}
@keyframes art-breathe{from{transform:scale(1)}to{transform:scale(1.025)}}
@keyframes art-progress{0%,100%{opacity:0;transform:scaleX(.05)}30%,65%{opacity:.75}90%{transform:scaleX(1);opacity:0}}
.chapter-stage:has(img[src*="-v2"]){border-radius:14px!important;overflow:hidden!important;background:#0c203a!important}
.chapter-stage img[src*="-v2"]{object-fit:cover!important}
@media(prefers-reduced-motion:reduce){.process-image-card img,.scene-motion-accent{animation:none!important}}

@media(max-width:800px) and (prefers-reduced-motion:no-preference){[data-scene-visible="true"] .process-step.is-active .chapter-stage img[src*="-v2"]{animation:art-breathe 7s ease-in-out infinite alternate}}

/* Copy follows the same scroll progress as the cards, in either direction. */
@media(min-width:801px) and (prefers-reduced-motion:no-preference){
 .js-story .process-step{transition:none;will-change:transform,opacity}
}

/* Mobile: five stable targets, native reading flow, no sideways auto-scroll. */
.chapter-label-desktop,.chapter-label-mobile{font-weight:inherit}
.chapter-label-mobile{display:none}
@media(max-width:800px){
 .story-section .chapter-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin-inline:0;padding:5px 0;width:100%;overflow:visible;scroll-padding:0;border-radius:12px;box-shadow:0 8px 18px #07172e35}
 .story-section .chapter-nav a{min-width:0;min-height:62px;flex-direction:column;gap:5px;padding:5px 0;font-size:11px;line-height:1.2;white-space:normal;text-align:center;border-radius:8px}
 .chapter-nav .chapter-label-desktop{display:none}
 .chapter-nav .chapter-label-mobile{display:block}
 .story-section .chapter-nav a span{width:25px;height:25px}
 .story-section .process-step{padding-block:28px 32px;scroll-margin-top:calc(var(--story-top) + 12px);min-width:0}
 .story-section .process-step h3{font-size:clamp(27px,7vw,34px);margin-bottom:16px}
 .story-section .process-step p{font-size:15px;line-height:1.7}
 .story-section .step-number{margin-bottom:12px;font-size:12px}
 .story-section .chapter-figure{margin:22px 0 0}
 .story-section .chapter-stage{max-width:560px}
 .story-section .chapter-stage img{animation:none!important}
 .story-section .section-heading{gap:14px}
 .story-section .section-heading>p{font-size:15px}
 .story-section{padding-bottom:20px}
}

@media(max-width:800px){
 .header-inner{gap:12px}
 .mobile-nav{flex-shrink:0}
 .mobile-nav>summary{padding-left:4px;gap:6px}
 .mobile-nav>summary svg{flex-shrink:0}
}
@media(max-width:380px){
 .header .brand{gap:8px}
 .header .brand img{width:36px}
 .header .brand small{font-size:10px}
 .header .brand span{font-size:16px}
}

/* One bounded mobile stage; native touch scroll owns the reversible timeline. */
.story-frame{display:contents}
@media(max-width:800px){
 .mobile-story-pinned .story-grid{position:relative;display:block;min-height:calc(100svh - var(--story-top) + clamp(3388.24px,517.65svh,4705.88px))}
 .mobile-story-pinned .story-frame{position:sticky;top:var(--story-top);height:calc(100svh - var(--story-top));display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;padding:18px 0 28px}
 .mobile-story-pinned .story-steps{display:grid;align-items:start;overflow:clip;padding:4px 0 8px;min-width:0}
 .mobile-story-pinned .process-step{grid-area:1/1;display:block;min-height:0;padding:0;border:0;opacity:0;visibility:hidden;pointer-events:none;transition:none;will-change:transform,opacity}
 .mobile-story-pinned .process-step.is-active{pointer-events:auto}
 .mobile-story-pinned .process-step h3{font-size:clamp(25px,6.5vw,32px);margin-bottom:12px}
 .mobile-story-pinned .process-step p{font-size:14px;line-height:1.6}
 .mobile-story-pinned .step-number{font-size:11px;margin-bottom:9px}
 .mobile-story-pinned .chapter-figure{display:none}
 .mobile-story-pinned .scene-column{position:relative;display:flex;top:auto;height:auto;min-height:0;padding:18px 12px 12px;justify-content:center;overflow:clip;overflow-clip-margin:8px}
 .mobile-story-pinned .scene-surround{width:min(100%,calc((100svh - var(--story-top) - var(--mobile-copy-height,260px) - 70px)*1.385));max-width:500px}
 .mobile-story-pinned .desktop-stage{aspect-ratio:720/520}
 .mobile-story-pinned .process-image-card img,.mobile-story-pinned .scene-motion-accent{animation:none!important}
}

@media(min-width:801px){.story-masthead{transform:translateY(var(--story-exit-y,0px))}}

/* Native resolution sources; avoid a second scaling animation inside rotated cards. */
.process-image-card picture{display:block;width:100%;height:100%}
.process-image-card.illustrated.is-current img{animation:none!important}
@media(max-width:800px){.process-step.is-active .chapter-stage img[src*="-v2"]{animation:none!important}}
