/* ZEDEV Flow: homepage only. Non-interactive decorative seams, no layout hijacking. */
body.g-design.z4-home {
 --zf-paper:#f2f1ec; --zf-night:#121721; --zf-mist:#dde1e8;
 --zf-blue:#c9dcff; --zf-deep:#171a21; --zf-signal:#6599ed;
 background:var(--zf-paper);
}
.g-design.z4-home #main-content{isolation:isolate;background:var(--zf-paper);overflow:clip;}
.g-design.z4-home #main-content > .z4-hero{position:relative;padding-bottom:clamp(28px,4vw,60px);}
.g-design.z4-home #portfolio{background:var(--zf-paper);padding:4px 0 26px;scroll-margin-top:90px;position:relative;}
.g-design.z4-home #directions{border-top:0;padding-top:clamp(40px,5vw,68px);padding-bottom:clamp(38px,5vw,70px)}
.g-design.z4-home #ai-agent{background:var(--zf-night);border:0;}
.g-design.z4-home #computer-vision{background:var(--zf-mist);clip-path:none;margin-top:0;border:0;}
.g-design.z4-home #mobile-development{background:var(--zf-paper);border:0;}
.g-design.z4-home #direct-entry{background:var(--zf-blue);border:0;}
.g-design.z4-home #api-demo{background:var(--zf-deep);border:0;}
.g-design.z4-home #materials{background:var(--zf-paper);border:0;}
.g-design.z4-home #contact{background:var(--zf-blue);clip-path:none;border:0;}
.g-design.z4-home #main-content > :is(#ai-agent,#computer-vision,#mobile-development,#direct-entry,#reviews,#api-demo,#materials,#contact){padding-top:clamp(34px,4.6vw,74px);padding-bottom:clamp(42px,5.5vw,82px);}
/* Seam fills precisely match their adjacent section backgrounds. */
.zf-seam{--zf-from:var(--zf-paper);--zf-to:var(--zf-paper);height:clamp(52px,7vw,112px);position:relative;background:var(--zf-from);overflow:hidden;pointer-events:none;user-select:none;line-height:0;margin:-1px 0;}
.zf-seam svg{display:block;width:100%;height:100%;overflow:hidden;}
.zf-seam.zf-quiet{height:clamp(25px,3.8vw,54px);}
.zf-paper-night{--zf-to:var(--zf-night)}
.zf-night-mist{--zf-from:var(--zf-night);--zf-to:var(--zf-mist)}
.zf-mist-paper{--zf-from:var(--zf-mist)}
.zf-paper-blue{--zf-to:var(--zf-blue)}
.zf-blue-paper{--zf-from:var(--zf-blue)}
.zf-paper-deep{--zf-to:var(--zf-deep)}
.zf-deep-paper{--zf-from:var(--zf-deep)}
/* If the interactive guide has opened, the seam follows the guide instead. */
#main-content:has(> .z4-step:not([hidden])) > .zf-paper-night,
#main-content:has(> .z4-result:not([hidden])) > .zf-paper-night{--zf-from:#13161c;}
.zf-fill{fill:var(--zf-to);}
.zf-halo,.zf-trace,.zf-pulse{fill:none;stroke-linecap:round;vector-effect:non-scaling-stroke;}
.zf-halo{stroke:#76a2f2;stroke-width:11;opacity:.10;}
.zf-trace{stroke:#7199d4;stroke-width:1.2;opacity:.7;}
.zf-pulse{stroke:var(--zf-signal);stroke-width:2.4;stroke-dasharray:29 971;stroke-dashoffset:0;opacity:.85;animation:zf-flow-pulse 9s linear infinite;}
.zf-quiet .zf-halo{opacity:.08;stroke-width:7;}
.zf-quiet .zf-trace{opacity:.46;}
.zf-night-mist .zf-pulse,.zf-deep-paper .zf-pulse{stroke:#a4caff;animation-direction:reverse;}
@keyframes zf-flow-pulse{to{stroke-dashoffset:-1000;}}
/* A softer geometry without removing the editorial asymmetry. */
.g-design.z4-home .g-product-art{clip-path:none;border-radius:32px 32px 90px 32px;overflow:hidden;}
.g-design.z4-home .g-product-links{border-radius:12px;overflow:hidden;}
.g-design.z4-home .g-product-links a{transition:background .3s ease,color .3s ease;}
.g-design.z4-home .g-directions .z4-paths>button{border-radius:20px;transition:background .35s ease,transform .35s cubic-bezier(.22,.7,.25,1),box-shadow .35s ease,border-color .35s ease;}
.g-design.z4-home .g-path-motion{border-radius:13px;}
.g-design.z4-home .z8-desktop-stage{clip-path:none;border-radius:22px;overflow:hidden;}
.g-design.z4-home .z9-mobile-stage{clip-path:none;border-radius:22px 22px 64px 22px;overflow:hidden;}
.g-design.z4-home .z6-api-console,.g-design.z4-home .z6-api-system{border-radius:18px;}
.g-design.z4-home .services-market-link{clip-path:none;border-radius:16px;}
.g-design.z4-home .g-process-note{border-radius:14px;}
.g-design.z4-home .g-hero-actions .g-button,.g-design.z4-home .final-actions>*,.g-design.z4-home .g-head-cta{border-radius:10px;}
/* More natural keyboard and scroll behaviour. Existing reduced-motion / pause control respected. */
.g-design.z4-home.g-animated:not(.g-motion-paused) .g-reveal{transition:opacity .66s ease,transform .82s cubic-bezier(.16,1,.3,1);transform:translateY(12px)}
.g-design.z4-home.g-animated:not(.g-motion-paused) .g-reveal.is-visible{transform:none}
.g-motion-paused .zf-pulse{animation-play-state:paused;}
@media(max-width:680px){
 .zf-seam{height:54px}.zf-seam.zf-quiet{height:28px}.zf-halo{stroke-width:6}.zf-pulse{stroke-width:1.8}
 .g-design.z4-home .g-product-art{border-radius:20px 20px 48px 20px;}
 .g-design.z4-home .g-directions .z4-paths>button{border-radius:15px;}
 .g-design.z4-home #portfolio{padding-bottom:14px;}
}
@media(prefers-reduced-motion:reduce){.zf-pulse{animation:none;opacity:0}.g-design.z4-home .g-reveal{opacity:1!important;transform:none!important;transition:none!important}}
/* Guard against fractional-pixel gaps between SVG and CSS fills. */
.zf-seam{background:linear-gradient(to bottom,var(--zf-from) 0 89%,var(--zf-to) 89% 100%);margin:0;}
.zf-seam.zf-blue-footer{--zf-from:var(--zf-blue);--zf-to:#11141a;}
.zf-seam svg{position:absolute;inset:0 0 -2px;height:calc(100% + 2px);}
