:root{--story-ease:cubic-bezier(.22,.8,.22,1)}

/* Compact scroll-story enhancement: normal document flow first, motion second. */
.story-services{position:relative;background:var(--bg);padding:118px 0}
.story-services-stage,.story-services-sticky{position:relative;min-height:auto}
.story-services-grid{display:grid;grid-template-columns:minmax(0,.86fr) minmax(420px,1.14fr);gap:clamp(48px,7vw,100px);align-items:start}
.story-services-copy{position:relative;z-index:3}
.story-services-copy .section-intro{margin-bottom:42px}
.story-services-copy .section-intro h2{font-size:clamp(42px,5.4vw,72px)}
.story-services-copy .section-copy{max-width:520px;margin-top:18px}
.story-service-tabs{border-top:1px solid rgba(23,23,22,.3)}
.story-service-tab{position:relative;display:grid;grid-template-columns:40px 1fr auto;gap:18px;align-items:center;padding:28px 0;border-bottom:1px solid var(--line);opacity:.48;transition:opacity .35s ease,transform .35s var(--story-ease)}
.story-service-tab:before{content:"";position:absolute;left:0;bottom:-1px;width:0;height:2px;background:var(--accent);transition:width .35s var(--story-ease)}
.story-service-tab.is-active{opacity:1;transform:translateX(5px)}
.story-service-tab.is-active:before{width:100%}
.story-service-tab .service-number{font-size:10px}
.story-service-tab h3{font:700 clamp(20px,2vw,26px)/1.05 Manrope;margin:0}
.story-service-tab p{margin:6px 0 0;color:var(--muted);font-size:13px;max-width:390px}
.story-service-tab .service-price{font-size:12px;white-space:nowrap}

.story-demo{position:sticky;top:116px;min-height:540px;display:grid;place-items:center;perspective:1400px}
.story-demo-halo{position:absolute;width:min(43vw,520px);aspect-ratio:1;border:1px solid rgba(23,23,22,.09);border-radius:50%;transform:scale(calc(.96 + var(--story-motion,0)*.04));opacity:.7;transition:transform .45s var(--story-ease)}
.story-demo-halo:after{content:"";position:absolute;width:10px;height:10px;border-radius:50%;background:var(--accent);top:10%;right:20%;box-shadow:0 0 0 9px rgba(232,90,58,.09)}
.story-browser{position:relative;width:min(100%,610px);border:1px solid rgba(23,23,22,.16);border-radius:13px;overflow:hidden;background:#fff;box-shadow:0 30px 78px rgba(23,23,22,.13);transform:translateY(calc((.5 - var(--story-motion,0))*10px)) rotate(calc((.5 - var(--story-motion,0))*.8deg));transition:transform .35s var(--story-ease),box-shadow .35s ease;will-change:transform}
.story-browser-bar{height:56px;background:#f0f1f3;border-bottom:1px solid #dfe1e5;display:flex;align-items:flex-end;padding:0 11px}
.story-browser-tab{height:33px;min-width:220px;padding:0 14px;background:#fff;border-radius:9px 9px 0 0;display:flex;align-items:center;gap:9px;color:#555b61;font-size:9px}
.story-browser-dot{width:15px;height:15px;border-radius:4px;background:var(--story-accent,#1f5b52);transition:background .4s ease}
.story-browser-screen{position:relative;min-height:370px;padding:32px;overflow:hidden;background:var(--story-bg,#e5e7df);color:var(--story-ink,#15302d);transition:background .42s ease,color .42s ease}
.story-browser-screen:before{content:"";position:absolute;inset:auto -10% -38% 35%;height:75%;border-radius:50%;border:1px solid currentColor;opacity:.1;transform:scale(calc(.92 + var(--story-motion,0)*.08));transition:transform .4s ease}
.story-browser-nav{display:flex;justify-content:space-between;gap:18px;font-size:9px;text-transform:uppercase;letter-spacing:.1em;position:relative;z-index:2}
.story-browser-content{position:relative;z-index:2;max-width:470px;margin:68px 0 54px}
.story-browser-kicker{font-size:9px;letter-spacing:.15em;text-transform:uppercase}
.story-browser-title{display:block;font:700 clamp(40px,4.7vw,64px)/.92 Manrope;letter-spacing:-.055em;margin:14px 0 18px;max-width:500px}
.story-browser-copy{font-size:12px;line-height:1.6;max-width:390px;opacity:.72;margin:0}
.story-browser-foot{position:relative;z-index:2;display:flex;align-items:center;gap:15px;font-size:8px;text-transform:uppercase;letter-spacing:.1em}
.story-browser-foot i{height:1px;flex:1;background:currentColor;opacity:.25}
.story-demo-caption{position:absolute;left:-18px;bottom:42px;z-index:4;background:var(--dark);color:#fff;border-radius:12px;padding:12px 15px;min-width:178px;box-shadow:0 18px 44px rgba(23,23,22,.18)}
.story-demo-caption small,.story-demo-caption strong{display:block}.story-demo-caption small{font-size:8px;letter-spacing:.1em;text-transform:uppercase;color:#aaa49b}.story-demo-caption strong{font-size:12px;margin-top:3px}

.work-story{position:relative;background:#ebe7df;padding:118px 0}
.work-story-stage,.work-story-sticky{position:relative;min-height:auto;overflow:visible}
.work-story-head{position:relative;margin-bottom:52px}
.work-story-head .section-intro{margin:0}
.work-story-head h2{font-size:clamp(42px,5.5vw,72px)}
.work-story-head .section-copy{max-width:590px;font-size:14px;margin-top:16px}
.work-rail-wrap{position:relative;padding:0}
.work-rail{display:grid;grid-template-columns:1fr 1fr;gap:22px;width:auto;transform:none}
.story-work-card{display:block;width:auto;transform:translateY(var(--card-lift,0px)) scale(var(--card-scale,1));opacity:var(--card-opacity,1);transition:transform .22s linear,opacity .22s linear}
.story-work-card:first-child{grid-column:1/-1}
.story-work-card .work-art{min-height:410px}
.story-work-card:first-child .work-art{min-height:560px}
.story-work-card .work-meta{padding-bottom:8px}
.story-work-card .work-meta h3{font-size:clamp(23px,2.5vw,31px)}
.work-story-progress,.work-story-index{display:none}
.about,.contact{position:relative;z-index:2}

@media(max-height:760px) and (min-width:901px){.story-services{padding:92px 0}.story-services-copy .section-intro{margin-bottom:28px}.story-service-tab{padding:20px 0}.story-demo{top:88px;min-height:470px}.story-browser-screen{min-height:310px}.story-browser-content{margin:48px 0 40px}.story-browser-title{font-size:clamp(36px,4vw,52px)}.work-story{padding:92px 0}.story-work-card:first-child .work-art{min-height:460px}}
@media(max-width:1050px){.story-services-grid{grid-template-columns:minmax(0,.95fr) minmax(360px,1.05fr);gap:40px}.story-demo{min-height:500px}.story-browser-screen{min-height:340px}}
@media(max-width:900px){.story-services,.work-story{padding:86px 0}.story-services-grid{grid-template-columns:1fr;gap:48px}.story-service-tab{opacity:1;transform:none;grid-template-columns:34px 1fr}.story-service-tab .service-price{grid-column:2;margin-top:-6px}.story-service-tab:before{display:none}.story-demo{position:relative;top:auto;min-height:450px}.story-browser{transform:none;width:min(94%,610px)}.story-demo-halo{width:420px;max-width:92vw}.work-rail{grid-template-columns:1fr}.story-work-card:first-child{grid-column:auto}.story-work-card,.story-work-card:first-child{transform:none!important;opacity:1!important}.story-work-card .work-art,.story-work-card:first-child .work-art{min-height:390px}}
@media(max-width:560px){.story-services,.work-story{padding:78px 0}.story-services-copy .section-intro h2,.work-story-head h2{font-size:12vw}.story-service-tab{grid-template-columns:28px 1fr;gap:12px;padding:18px 0}.story-service-tab p{font-size:12px}.story-demo{min-height:355px}.story-browser{width:100%}.story-browser-bar{height:49px}.story-browser-tab{height:30px;min-width:175px}.story-browser-screen{min-height:270px;padding:22px}.story-browser-content{margin:48px 0 40px}.story-browser-title{font-size:34px}.story-browser-copy{display:none}.story-demo-caption{left:auto;right:-2px;bottom:20px;min-width:150px}.story-work-card .work-art,.story-work-card:first-child .work-art{min-height:330px}}
@media(prefers-reduced-motion:reduce){.story-service-tab,.story-browser,.story-demo-halo,.story-browser-screen:before,.story-work-card{transition:none!important;transform:none!important;opacity:1!important}.story-demo{position:relative;top:auto}}
