/* An editorial sequence: the fallback is three complete, readable scenes.
   JS only enables pinning if motion is permitted. */
.journey-v3{position:relative;background:#0d090e;color:#fff;isolation:isolate}
.journey-v3__stage{position:relative}
.journey-v3__frame{min-height:80vh;min-height:80svh;position:relative;overflow:hidden;display:flex;align-items:flex-end}
.journey-v3__frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.journey-v3__shade{position:absolute;inset:0;background:linear-gradient(90deg,#09080cf5 0%,#09080cbe 25%,#09080c20 70%,transparent),linear-gradient(0deg,#10090f 0%,transparent 35%),linear-gradient(180deg,#10090f88,transparent 22%)}
.journey-v3__copy{position:relative;z-index:2;width:min(43%,550px);padding:clamp(2rem,6vw,7rem) 0 clamp(4rem,11vh,9rem) clamp(1.5rem,7vw,8rem);text-shadow:0 3px 22px #000}
.journey-v3__chapter{display:block;color:#e6b2a8;font-size:.75rem;letter-spacing:.3em;margin-bottom:1.6rem}
.journey-v3__copy h2{font:700 clamp(3.5rem,7.6vw,8.5rem)/1.12 'Noto Serif SC','Songti SC','SimSun',serif;letter-spacing:-.04em;margin:0;color:#fff4f0}
.journey-v3__copy p{font-size:clamp(.92rem,1.25vw,1.15rem);line-height:1.95;color:#f5ded8;margin:1.5rem 0 0}
.journey-v3__copy small{display:block;color:#e8c4b8;font-size:.7rem;margin-top:1rem}
.journey-v3__rail{display:none}
.journey-v3.journey-v3--motion{height:340vh;height:340svh}
.journey-v3--motion .journey-v3__stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
.journey-v3--motion .journey-v3__frame{position:absolute;inset:0;min-height:0;height:100%;opacity:0;pointer-events:none}
.journey-v3--motion .journey-v3__frame:first-child{opacity:1}
/* The moving red edge follows the user's scroll between scenes. Text sits
   above it and the original still art remains the source of every frame. */
.journey-v3--wipe .journey-v3__frame[data-journey-frame="1"]::after,.journey-v3--wipe .journey-v3__frame[data-journey-frame="2"]::after{content:'';position:absolute;z-index:1;top:0;bottom:0;left:var(--journey-wipe-edge,0%);width:clamp(12px,3vw,44px);transform:translateX(-50%);opacity:var(--journey-wipe-light,0);background:linear-gradient(90deg,transparent,#ef736bc9,transparent);pointer-events:none}
@media(prefers-reduced-motion:reduce){.journey-v3--wipe .journey-v3__frame img,.journey-v3--wipe .journey-v3__shade{clip-path:none!important}.journey-v3--wipe .journey-v3__copy{opacity:1!important}.journey-v3--wipe .journey-v3__frame::after{display:none!important}}
html.user-reduce-motion .journey-v3--wipe .journey-v3__frame img,html.user-reduce-motion .journey-v3--wipe .journey-v3__shade{clip-path:none!important}html.user-reduce-motion .journey-v3--wipe .journey-v3__copy{opacity:1!important}html.user-reduce-motion .journey-v3--wipe .journey-v3__frame::after{display:none!important}
.journey-v3--motion .journey-v3__rail{display:flex;position:absolute;z-index:4;right:clamp(1.5rem,4vw,5rem);bottom:clamp(2rem,6vh,5rem);gap:1.1rem;color:#ffded4bd;font-size:.65rem;letter-spacing:.12em;text-shadow:0 2px 8px #000}
.journey-v3__rail span{white-space:nowrap}
.journey-v3__rail i{position:absolute;bottom:-.65rem;left:0;width:100%;height:2px;background:linear-gradient(90deg,#ff837b,#fff0d8);transform-origin:left;transform:scaleX(var(--journey-progress,0))}
@media(max-width:800px){.journey-v3__frame{min-height:75vh;min-height:75svh}.journey-v3__frame img{object-position:62% center}.journey-v3__shade{background:linear-gradient(0deg,#0d090efc 0%,#0d090edb 28%,#0d090e39 69%,transparent),linear-gradient(180deg,#0d090e80,transparent 20%)}.journey-v3__copy{width:auto;padding:2rem 1.5rem clamp(5rem,13vh,8rem)}.journey-v3__copy h2{font-size:clamp(3.25rem,12vw,5.5rem)}.journey-v3__rail{right:1.5rem!important;bottom:2rem!important}.journey-v3--motion .journey-v3__frame{min-height:0}}
@media(prefers-reduced-motion:reduce){.journey-v3.journey-v3--motion{height:auto}.journey-v3--motion .journey-v3__stage{position:relative;height:auto}.journey-v3--motion .journey-v3__frame{position:relative;min-height:75vh;min-height:75svh;opacity:1!important;transform:none!important}.journey-v3--motion .journey-v3__rail{display:none}}
.user-reduce-motion .journey-v3.journey-v3--motion{height:auto}.user-reduce-motion .journey-v3--motion .journey-v3__stage{position:relative;height:auto}.user-reduce-motion .journey-v3--motion .journey-v3__frame{position:relative;min-height:75vh;min-height:75svh;opacity:1!important;transform:none!important}.user-reduce-motion .journey-v3--motion .journey-v3__rail{display:none}
/* Foreground and harbor are separate flat images, not a rigged character. */
.hero-bg::before{background-image:url('../../../docs/reborn2k-studio/03-motion/scroll-samples-2026-11-16/v3-assets/empty-red-harbor-v1.png');background-size:cover;background-position:center;inset:0;animation:none!important}
.hero-portrait-v3{position:absolute;z-index:0;right:-2%;bottom:0;width:min(100%,1520px);height:100%;object-fit:contain;object-position:right bottom;pointer-events:none;will-change:auto}
.hero-content,.hero-credit,.hero-side,.scroll-cue{z-index:2}
@media(max-width:800px){.hero-bg::before{background-size:cover;background-position:center;mask-image:none}.hero-portrait-v3{width:auto;max-width:none;height:68%;right:-100px;top:9%;bottom:auto}.hero-vignette{z-index:1}.hero-content{z-index:2}}
