/* A continuous visual thread between the large cinematic chapters. */
.journey-progress { position:fixed; z-index:200; top:0; left:0; width:100%; height:2px; background:#88aaff; transform:scaleX(0); transform-origin:left; pointer-events:none; }
.craft-stage { position:relative; isolation:isolate; width:100%; aspect-ratio:600/340; perspective:800px; overflow:hidden; margin:24px 0 10px; border-radius:8px; background:radial-gradient(ellipse at 55% 75%,#24468455,transparent 70%); }
.journey-art { display:block; width:100%; height:100%; overflow:visible; }
.craft-stage .journey-art { transform:rotateX(var(--craft-tilt,0deg)); }
.craft-piece { fill:#101d33; stroke:#9bb7e5; stroke-width:1.4; transform:translateY(calc(var(--craft-spread,0) * var(--piece) * 24px)); transition:opacity .35s; }
.craft-piece .craft-solid { fill:#b9ceef; stroke:none; }
.craft-piece .craft-glass { fill:#294675; stroke:#6f96d5; }
.craft-piece .craft-blue { fill:#2858e6; stroke:#809ffc; }
.craft-piece path:not(.craft-solid):not(.craft-blue) { fill:none; }
.craft-wire { stroke-dasharray:5 5; }
.scope-box .craft-stage { margin:-12px 0 25px; border-bottom:1px solid #b9ceef25; border-radius:0; }
.cinema-interior[data-cp-route=services] .craft-stage { margin-top:35px; background:radial-gradient(ellipse at 50% 80%,#d6e1f5,transparent 70%); }
.cinema-interior[data-cp-route=services] .craft-piece { fill:#f8faff; stroke:#5c76a7; }
.cinema-interior[data-cp-route=services] .craft-solid { fill:#324d81; }
.cinema-interior[data-cp-route=services] .craft-glass { fill:#d8e4fa; }
.cinema-interior[data-cp-route=services] .craft-blue { fill:#2858e6; }
/* Preserve the compact logo-based portfolio; the connecting line is decoration. */
.journey-gallery { position:relative; isolation:isolate; }
.journey-gallery .gallery-thread { position:absolute; z-index:-1; inset:-55% -5%; width:110%; height:200%; pointer-events:none; transform:rotate(var(--gallery-orbit,0deg)); }
.gallery-route { fill:none; stroke:#8ba7dd; stroke-width:.7; stroke-dasharray:1; stroke-dashoffset:calc(1 - var(--gallery-draw,1)); }
.cinematic-home #work .project-logo { backdrop-filter:blur(14px); background:#ffffffeb; }
.journey-light { position:relative; isolation:isolate; }
.journey-light::after { content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none; background:radial-gradient(350px circle at var(--light-x,50%) var(--light-y,50%),#789eff14,transparent 70%); opacity:0; transition:opacity .45s; z-index:2; }
.journey-light.light-active::after { opacity:1; }
.journey-surface { position:relative; }
.journey-surface::before { content:''; position:absolute; top:0; left:0; width:100%; height:1px; background:linear-gradient(90deg,transparent,#8aaaff,transparent); transform:scaleX(var(--surface-reveal,1)); transform-origin:center; pointer-events:none; }
.journey-signature { position:absolute; width:clamp(280px,45vw,700px); height:auto; right:-4%; top:25%; opacity:.08; pointer-events:none; transform:translateX(var(--signature-x,0px)) rotate(var(--signature-angle,0deg)); clip-path:inset(0 var(--signature-reveal,0%) 0 0); }
.closing > .wrap { position:relative; z-index:1; }
@media(max-width:700px) {
 .scope-box .craft-stage { max-width:340px; margin:0 auto 22px; }
 .cinema-interior[data-cp-route=services] .craft-stage { display:none; }
 .journey-signature { width:350px; right:-120px; top:42%; opacity:.06; }
 .journey-gallery .gallery-thread { inset:-5% -5%; height:110%; }
}
@media(prefers-reduced-motion:reduce) {
 .craft-stage .journey-art,.craft-piece,.journey-signature,.gallery-thread { transform:none!important; animation:none!important; clip-path:none; }
 .gallery-route { stroke-dashoffset:0; }
 .journey-light::after { display:none; }
}
.cinema-paused .craft-stage .journey-art { animation:none!important; }
@media print { .journey-progress,.craft-stage,.gallery-thread,.journey-signature { display:none!important; } }

.craft-category { transition:opacity .4s ease,transform .6s cubic-bezier(.2,.7,.2,1); }
.cinematic-home .closing h2,.cinema-interior .closing h2 { margin-left:0; margin-right:0; }
@media(prefers-reduced-motion:reduce) { .craft-category { transition:none; } }
.cinema-paused .craft-category { transition:none; }
@media (max-height:760px) {
 .cinema-interior[data-cp-route=services] .split > div:first-child,
 .cinema-interior .scope-box { position:static; }
}
@media(max-width:700px) and (prefers-reduced-motion:no-preference){
 .cinema-interior[data-cp-route=services] .service-list > .craft-stage { display:block; position:sticky; top:80px; height:145px; aspect-ratio:auto; margin:0; background:#f7f9fc; border-bottom:1px solid #d5dfef; border-radius:0; z-index:3; }
}
@media(max-width:700px) and (prefers-reduced-motion:no-preference){
 .cinema-interior[data-cp-route=services] .service-row { scroll-margin-top:240px; }
 .cinematic-home .process .steps > li { scroll-margin-top:250px; }
}

