/* Motion layer: brand intro, line reveals, stacked service cards, process timeline, marquee, mega wordmark.
   Everything that hides content is gated on html.motion (set by the inline head script only when
   reduced-motion is off), so without JS or with reduced motion the page renders as plain static content. */
:root{--ease-out:cubic-bezier(.16,1,.3,1);--ease-io:cubic-bezier(.76,0,.24,1);--d0:.12s;--c-rose:#ff2fb2;--c-violet:#8a3cf0;--c-blue:#3f6bff;--c-teal:#19d3d6}
html.intro-on{--d0:1.75s}
html.motion-scroll{scroll-behavior:auto}
body{overflow-x:clip}

/* ---------- page progress ---------- */
.site-header::after{content:'';position:absolute;left:0;bottom:-1px;height:2px;width:var(--page-progress,0%);background:linear-gradient(90deg,var(--c-rose),var(--c-violet) 45%,var(--c-blue) 75%,var(--c-teal))}

/* ---------- 1. brand intro ---------- */
.intro{display:none}
html.intro-on .intro{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:#08080b;animation:intro-out .75s var(--ease-io) 1.45s forwards}
html.intro-on.intro-skip .intro{animation-delay:0s;animation-duration:.45s}
@keyframes intro-out{from{clip-path:inset(0)}to{clip-path:inset(0 0 100% 0);visibility:hidden}}
.intro-inner{display:flex;flex-direction:column;align-items:center;gap:26px}
.intro-inner::before{content:'';position:absolute;left:50%;top:50%;width:min(70vw,560px);aspect-ratio:1;translate:-50% -55%;border-radius:50%;background:radial-gradient(circle,#8a3cf033,#ff2fb214 45%,transparent 68%);filter:blur(30px);animation:intro-glow 1.4s ease-out both}
@keyframes intro-glow{from{opacity:0;scale:.6}to{opacity:1;scale:1}}
.intro-logo{position:relative;width:clamp(92px,13vw,150px);height:auto;overflow:visible}
.intro-logo path{opacity:0;animation:intro-piece .8s var(--ease-out) forwards}
.intro-logo path:nth-of-type(1){--from:60px -40px;animation-delay:.22s}
.intro-logo path:nth-of-type(2){--from:-70px 30px;animation-delay:.08s}
.intro-logo path:nth-of-type(3){--from:50px 60px;animation-delay:.34s}
.intro-logo path:nth-of-type(4){--from:0 70px;animation-delay:.46s}
@keyframes intro-piece{from{opacity:0;translate:var(--from)}to{opacity:1;translate:0 0}}
.intro-word{position:relative;overflow:hidden;font-size:clamp(1.9rem,4.6vw,3.2rem);font-weight:800;letter-spacing:-.05em;line-height:1.15;color:#f7f5fa}
.intro-word span{display:block;animation:line-rise .8s var(--ease-out) .55s both}
.intro-bar{position:relative;width:min(46vw,220px);height:2px;background:#2a2231;overflow:hidden;border-radius:2px}
.intro-bar::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,var(--c-rose),var(--c-violet),var(--c-teal));transform-origin:left;animation:intro-load 1.35s var(--ease-io) .1s both}
@keyframes intro-load{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.intro-skip-button{position:absolute;right:max(24px,3.2%);bottom:28px;min-height:44px;padding:8px 18px;border:1px solid #4b3a56;border-radius:999px;background:transparent;color:#cdbdd7;font-size:.75rem;letter-spacing:.12em}
.intro-skip-button:hover{border-color:#c57bd9;color:#fff}

/* ---------- 2. line reveals ---------- */
.ln{display:block;overflow:hidden;padding-bottom:.22em;margin-bottom:-.22em}
.ln-i{display:block}
@keyframes line-rise{from{transform:translateY(112%)}to{transform:none}}
@keyframes fade-up{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
html.motion:not(.m-ready) .hero-copy,html.motion:not(.m-ready) .hero-showcase{visibility:hidden}
html.motion.m-ready .hero h1 .ln-i{animation:line-rise 1.05s var(--ease-out) both;animation-delay:calc(var(--d0) + var(--i,0)*.11s)}
html.motion.m-ready .hero .eyebrow{animation:fade-up .8s var(--ease-out) both;animation-delay:var(--d0)}
html.motion.m-ready .hero .sales-intro{animation:fade-up .9s var(--ease-out) both;animation-delay:calc(var(--d0) + .32s)}
html.motion.m-ready .hero .hero-actions{animation:fade-up .9s var(--ease-out) both;animation-delay:calc(var(--d0) + .44s)}
html.motion.m-ready .hero .showcase-media{animation:stage-in 1.3s var(--ease-out) both;animation-delay:calc(var(--d0) + .15s)}
html.motion.m-ready .hero .showcase-tabs button{animation:fade-up .7s var(--ease-out) both;animation-delay:calc(var(--d0) + .55s + var(--i,0)*.09s)}
@keyframes stage-in{from{opacity:0;transform:translateY(40px) scale(.96)}to{opacity:1;transform:none}}
html.motion.m-ready .site-header{animation:header-in .8s var(--ease-out) both;animation-delay:calc(var(--d0) - .1s)}
@keyframes header-in{from{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:none}}
/* hero copy drifts back as the page scrolls on */
html.motion .hero-copy{translate:0 calc(var(--hero-p,0)*-60px);opacity:calc(1 - var(--hero-p,0)*1.15)}

/* section headings rise line by line when they enter */
html.motion .split:not(.lines-in) .ln-i{transform:translateY(112%)}
html.motion .split.lines-in .ln-i{animation:line-rise .95s var(--ease-out) both;animation-delay:calc(var(--i,0)*.1s)}
html.motion .rise:not(.is-in){opacity:0}
html.motion .rise.is-in{animation:fade-up .85s var(--ease-out) both;animation-delay:calc(var(--i,0)*.09s)}

/* work cards: staggered rise + image wipe */
html.motion .work-card.reveal:not(.is-visible){opacity:0}
html.motion .work-card.reveal.is-visible{animation:fade-up .9s var(--ease-out) both;animation-delay:calc(var(--i,0)*.12s)}
html.motion .work-card.reveal.is-visible .work-image-button{animation:wipe-up 1.1s var(--ease-io) both;animation-delay:calc(var(--i,0)*.12s)}
html.motion .work-card.reveal.is-visible .work-image-button img{animation:img-settle 1.5s var(--ease-out) both;animation-delay:calc(var(--i,0)*.12s)}
@keyframes wipe-up{from{clip-path:inset(100% 0 0 0 round 13px)}to{clip-path:inset(0 0 0 0 round 13px)}}
@keyframes img-settle{from{transform:scale(1.18)}to{transform:none}}

/* ---------- 6a. marquee ---------- */
.offer-strip.is-marquee{display:block;overflow:hidden;padding:26px 0;white-space:nowrap;font-size:clamp(1.4rem,3.1vw,2.7rem);font-weight:800;letter-spacing:-.03em;line-height:1.2;color:#f1e9f6;background:#0d0a12}
.marquee-track{display:inline-flex;align-items:center;gap:clamp(22px,3vw,46px);padding-right:clamp(22px,3vw,46px);animation:marquee 38s linear infinite;will-change:transform}
.offer-strip.is-marquee:hover .marquee-track{animation-play-state:paused}
.offer-strip.is-marquee span.o{color:transparent;-webkit-text-stroke:1px #b98bc9}
.offer-strip.is-marquee i{width:clamp(9px,1vw,14px);height:clamp(9px,1vw,14px);border-radius:0;rotate:45deg;background:linear-gradient(135deg,var(--c-rose),var(--c-violet))}
@keyframes marquee{to{transform:translateX(-50%)}}

/* ---------- 4. stacked service cards ---------- */
#services .service-gallery{counter-reset:svc}
#services .service-card{counter-increment:svc}
#services .service-copy::before{content:counter(svc,decimal-leading-zero);font-size:clamp(2.6rem,5vw,4.6rem);font-weight:800;line-height:1;letter-spacing:-.06em;color:transparent;-webkit-text-stroke:1px #7d5a8b;margin-bottom:2px}
@media(min-width:900px) and (min-height:640px){
 #services .service-gallery{display:block}
 #services .service-card{--top:calc(118px + var(--n)*16px);position:sticky;top:var(--top);display:grid!important;grid-template-columns:1.25fr 1fr;height:clamp(400px,calc(100svh - 250px),560px);margin-bottom:34px;transform-origin:50% 0;scale:calc(1 - var(--cover,0)*.055);filter:brightness(calc(1 - var(--cover,0)*.5));box-shadow:0 -18px 50px #0009;translate:none!important;transition:border-color .3s}
 #services .service-card:last-child{margin-bottom:0}
 #services .service-card-1{--n:0}#services .service-card-2{--n:1}#services .service-card-3{--n:2}#services .service-card-4{--n:3}#services .service-card-5{--n:4}
 #services .service-card .service-art,#services .service-card-1 .service-art,#services .service-card-2 .service-art,#services .service-card-5 .service-art{height:100%;min-height:0;border-bottom:0;border-right:1px solid #2b2531}
 #services .service-card:nth-child(even) .service-art{order:2;border-right:0;border-left:1px solid #2b2531}
 #services .service-copy{justify-content:center;gap:16px;padding:40px clamp(28px,4vw,60px)}
 #services .service-copy>a{margin-top:6px}
 #services .service-name{font-size:clamp(1.7rem,2.6vw,2.5rem);margin-bottom:12px;letter-spacing:-.04em}
 #services .service-copy h3{font-size:1.15rem}
 #services .service-copy p{font-size:1rem;max-width:440px}
 #services .service-card-1 .service-art>img{width:86%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top}
 #services .service-card-5 .film-art{top:calc(50% - 120px);height:170px;width:108%}
 #services .service-card-5 .edit-track{bottom:calc(50% - 125px);left:14%;right:14%}
 #services .service-card-2 .landing-backdrop{left:10%;top:18%;width:62%;height:60%}
 #services .service-card-2 .service-art>img{right:12%;bottom:8%;height:80%}
}

/* ---------- 5. process timeline ---------- */
.process-grid{position:relative;counter-reset:step}
.process-grid::before,.process-grid::after{content:'';position:absolute;left:0;top:0;height:1px;width:100%;background:#3a2c42}
.process-grid::after{height:2px;top:-.5px;background:linear-gradient(90deg,var(--c-rose),var(--c-violet) 50%,var(--c-teal));transform-origin:left;transform:scaleX(var(--line,1));box-shadow:0 0 14px #b24be088}
.process-grid article{position:relative;counter-increment:step;border-top:0;padding-top:58px}
.process-grid article::before{content:counter(step,decimal-leading-zero);position:absolute;left:0;top:-21px;z-index:1;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;border:1px solid #4b3a56;background:#08080b;color:#8f7a9b;font-size:.8125rem;font-weight:700;letter-spacing:.04em;transition:border-color .5s,color .5s,box-shadow .5s,background .5s,scale .5s var(--ease-out)}
.process-grid article h3,.process-grid article p{transition:opacity .6s,translate .7s var(--ease-out)}
html.motion .process-grid article:not(.is-on) h3,html.motion .process-grid article:not(.is-on) p{opacity:.32;translate:0 10px}
.process-grid article.is-on::before,html:not(.motion) .process-grid article::before{border-color:#e08df0;color:#fff;background:#2a1533;box-shadow:0 0 0 5px #c45ad81f,0 0 24px #c45ad866;scale:1.08}
@media(max-width:760px){
 .process-grid{padding-left:34px}
 .process-grid::before,.process-grid::after{left:0;top:0;width:1px;height:100%}
 .process-grid::after{width:2px;left:-.5px;transform-origin:top;transform:scaleY(var(--line,1));background:linear-gradient(180deg,var(--c-rose),var(--c-violet) 50%,var(--c-teal))}
 .process-grid article{padding-top:0;padding-left:26px}
 .process-grid article::before{left:-55px;top:-6px}
}

/* ---------- 6b. magnetic buttons ---------- */
.magnetic{translate:var(--mx,0) var(--my,0);transition:translate .45s var(--ease-out),background .2s,transform .2s,border-color .2s}
.magnetic.is-pulled{transition:translate .12s linear,background .2s,transform .2s,border-color .2s}

/* ---------- 6c. mega wordmark ---------- */
.mega-mark{position:relative;overflow:hidden;background:#20122b;padding:10px 0 0;line-height:.8;user-select:none}
.mega-mark span{display:block;width:max-content;margin:0 auto;font-size:clamp(4.4rem,20.5vw,22rem);font-weight:800;letter-spacing:-.065em;line-height:.86;color:transparent;-webkit-text-stroke:1px #8a5c9c;background:linear-gradient(90deg,var(--c-rose),var(--c-violet) 45%,var(--c-blue) 72%,var(--c-teal)) no-repeat;background-size:calc(var(--mega,1)*100%) 100%;-webkit-background-clip:text;background-clip:text;translate:calc((1 - var(--mega,1))*7%) 14%}
footer{position:relative}

@media(prefers-reduced-motion:reduce){.marquee-track{animation:none!important}.magnetic{translate:none!important}}
