/* Scroll story layer. Base styles work without JS or with reduced motion;
   html.js-motion (set in <head>) arms the start states that assets/story.js animates. */
html.lenis,html.lenis body{height:auto}
html.lenis{scroll-behavior:auto!important}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}

/* progress bar */
.progress{position:fixed;left:0;right:0;top:0;height:2px;z-index:40;background:var(--grad);transform:scaleX(0);transform-origin:0 50%;pointer-events:none}

/* preloader: word cycler + curtain */
.pre{display:none}
.pre-on .pre{position:fixed;inset:0;z-index:500;display:grid;place-items:center;background:var(--bg)}
.pre-on body{overflow:hidden}
.pre-slot{position:relative;width:100%;height:1.08em;overflow:hidden;text-align:center;font-size:clamp(38px,8vw,120px);font-weight:800;letter-spacing:-.045em;line-height:1.08}
.pre-slot span{position:absolute;inset:0;transform:translateY(105%);white-space:nowrap}
.pre-name{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.pre-curtain{position:absolute;inset:0;background:linear-gradient(160deg,#EC4899,#8B5CF6 50%,#3B82F6);clip-path:inset(100% 0 0 0)}

/* hero subject */
.hero{position:relative;min-height:100vh;min-height:100svh}
.subject{position:relative;width:100%;max-width:520px;justify-self:end;display:flex;flex-direction:column;align-items:center;padding-top:clamp(40px,5vw,70px)}
.subject::before{content:"";position:absolute;inset:10% 4% 6%;background:radial-gradient(closest-side,rgba(139,92,246,.30),rgba(236,72,153,.10) 60%,transparent);filter:blur(30px);z-index:-1}
.subject-word{position:absolute;left:-12%;right:-12%;top:0;display:flex;justify-content:center;overflow:hidden;padding:0 .04em;
  font-size:clamp(96px,11.6vw,176px);font-weight:800;letter-spacing:-.055em;line-height:.86;color:rgba(243,240,234,.09);pointer-events:none;user-select:none;white-space:nowrap}
.subject-word span{display:block}
.subject-img{position:relative;width:min(420px,100%);height:auto;-webkit-mask-image:linear-gradient(#000 72%,transparent 98%);mask-image:linear-gradient(#000 72%,transparent 98%)}
/* above the head, out of flow so the photo doesn't move: below it, it hid behind the shoulders */
.subject .meta{position:absolute;left:0;right:0;top:0;z-index:2;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 18px;text-align:center;font-family:var(--mono);font-size:12.5px;color:var(--mute)}
@media (max-width:899px){.subject{padding-top:64px}.subject .meta{flex-direction:column;align-items:center;gap:4px}}
.subject .status{color:var(--mute);transition:color .2s}
.subject .status:hover{color:var(--ink)}
.hero h1 .w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.1em;margin-bottom:-.1em}
.hero h1 .wi{display:inline-block}
.hero h1 em .wi{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.js-motion .hero [data-in],.js-motion .subject-img,.js-motion .subject-word{opacity:0}
.js-motion .hero h1:not(.split){opacity:0}

/* theatre stage: one fixed backdrop that changes lighting per scene; the scenes themselves have no backgrounds */
:root{--st-base:rgb(11,11,16);--st-spot:rgba(139,92,246,.22);--st-x:50%;--st-y:42%;--st-grid:0}
.stage-bg{position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(60vmax 48vmax at var(--st-x) var(--st-y),var(--st-spot),transparent 70%),var(--st-base)}
.stage-bg::after{content:"";position:absolute;inset:0;opacity:var(--st-grid);background-image:radial-gradient(rgba(243,240,234,.08) 1px,transparent 1.2px);background-size:22px 22px;
  -webkit-mask-image:radial-gradient(ellipse 75% 65% at 50% 50%,#000,transparent);mask-image:radial-gradient(ellipse 75% 65% at 50% 50%,#000,transparent)}
nav{background:linear-gradient(color-mix(in srgb,var(--st-base) 92%,transparent) 40%,transparent)}
.hero-shell,main.after,#contact{overflow-x:clip}
.phone img{width:100%;height:auto;aspect-ratio:414/900;object-fit:cover}

/* App Store links */
.store{display:inline-flex;flex-direction:column;justify-content:center;line-height:1.05;padding:9px 18px 10px;border-radius:12px;background:#000;color:#fff;
  box-shadow:inset 0 0 0 1px rgba(243,240,234,.35);font-weight:600;font-size:17px;letter-spacing:-.01em;transition:transform .25s,box-shadow .25s}
.store small{font-size:10.5px;font-weight:500;letter-spacing:0;opacity:.85}
.store:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px rgba(243,240,234,.7)}
.links .store{margin-top:-10px}
.apps .store{margin-top:16px}
.soon{display:inline-block;margin-top:16px;font-size:13px;color:var(--dim)}

/* live caption for scroll-driven maps */
.sm-live{display:none}
.js-motion .sm-live{display:grid;grid-template-columns:auto auto 1fr;align-items:baseline;gap:6px 16px;position:relative;padding:14px 0 16px;margin-bottom:6px;font-size:16px}
.sm-live b{font-weight:600;letter-spacing:-.01em}
.sm-live span{font-size:12px;color:var(--g1)}
.sm-live p{color:#D6D3DC;min-height:1.5em}
.sm-live i{position:absolute;left:0;right:0;bottom:0;height:1.5px;background:var(--grad);transform:scaleX(0);transform-origin:0 50%}
.sm-live::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--line);z-index:-1}
.sm-scroll{transform-origin:50% 0}
@media (max-width:899px){
  .js-motion .sm-live{grid-template-columns:1fr;justify-items:center;text-align:center;gap:2px;padding:8px 8px 12px}
  .sm-live p{font-size:15px;max-width:440px;min-height:3em}
}

/* contract to cash */
.c2c{margin-top:130px}
.c2c-head{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end;margin-bottom:40px}
.c2c-head h3{font-size:clamp(32px,3.6vw,54px);font-weight:800;letter-spacing:-.045em;line-height:.95}
.c2c-head h3 .sub{display:block;color:var(--dim)}
.c2c-head p{color:#BDBAC4;font-size:16px;max-width:520px}
.c2c-status{display:flex;align-items:baseline;gap:14px;margin-top:18px}
.c2c-k{font-size:13px;color:var(--mute);white-space:nowrap}
.c2c-v b{white-space:nowrap}
.c2c-v{font-size:22px;font-weight:700;letter-spacing:-.02em}
.c2c-v b{font-weight:inherit}
.c2c-v b+b::before{content:"\2192";color:var(--dim);margin:0 10px;font-weight:400}
.js-motion .c2c-v{position:relative;display:inline-grid;overflow:hidden}
.js-motion .c2c-v b{grid-area:1/1;transform:translateY(105%);transition:transform .6s cubic-bezier(.7,0,.2,1)}
.js-motion .c2c-v b::before{display:none}
.js-motion .c2c-v b.on{transform:none}
.js-motion .c2c-v b.out{transform:translateY(-105%)}
.c2c-v b:last-child{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.c2c-flow{position:relative}
.c2c-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.c2c-base{fill:none;stroke:rgba(243,240,234,.16);stroke-width:1.5;stroke-dasharray:2 9;stroke-linecap:round}
.c2c-line{fill:none;stroke-width:2.5;stroke-linecap:round;filter:drop-shadow(0 0 6px rgba(139,92,246,.6))}
.c2c-steps{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:30px 0;position:relative}
.c2c-steps li{position:relative;padding:0 40px 0 0}
.c2c-steps li:nth-child(4){grid-area:2/3}.c2c-steps li:nth-child(5){grid-area:2/2}.c2c-steps li:nth-child(6){grid-area:2/1}
.c2c-n{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;font-style:normal;font-size:14px;font-weight:700;color:var(--ink);
  background:var(--grad);box-shadow:0 0 0 5px var(--bg);transition:transform .5s cubic-bezier(.34,1.56,.64,1),background .4s,color .4s;position:relative;z-index:1}
.c2c-steps h4{font-size:19px;font-weight:600;letter-spacing:-.02em;margin-top:12px}
.c2c-steps p{color:#BDBAC4;font-size:14.5px;line-height:1.5;margin-top:5px;max-width:410px}
.c2c-steps h4,.c2c-steps p{transition:opacity .5s}
.js-motion .c2c-steps li:not(.on) .c2c-n{background:#17171f;color:var(--dim);box-shadow:0 0 0 5px var(--bg),inset 0 0 0 1px rgba(243,240,234,.18)}
.js-motion .c2c-steps li:not(.on) h4,.js-motion .c2c-steps li:not(.on) p{opacity:.26}
.js-motion .c2c-steps li.on .c2c-n{animation:c2cpop .55s cubic-bezier(.34,1.56,.64,1)}
@keyframes c2cpop{40%{transform:scale(1.35)}}
@media (max-width:899px){
  .c2c{margin-top:100px;text-align:center}
  .c2c-head{grid-template-columns:1fr;gap:16px}
  .c2c-head p{margin:0 auto}
  .c2c-status{justify-content:center;flex-wrap:wrap}
  .c2c-svg{display:none}
  .c2c-steps{grid-template-columns:1fr;gap:0}
  .c2c-steps li,.c2c-steps li:nth-child(n){grid-area:auto;padding:0 0 0;display:flex;flex-direction:column;align-items:center}
  .c2c-steps li+li::before{content:"";width:1.5px;height:44px;margin:10px 0;background:var(--grad);transform-origin:50% 0;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
  .js-motion .c2c-steps li:not(.on)::before{transform:scaleY(0)}
  .c2c-steps p{margin-left:auto;margin-right:auto}
}

/* client builds: horizontal while pinned */
.rail.hz{position:relative;overflow:visible;scroll-snap-type:none;cursor:default}
.rail.hz figure{flex-basis:min(560px,80vw,calc((100vh - 420px) * 1.6))}
#clients.hz-on .rail-ctl{visibility:hidden}

/* apps: tilt rise */
#apps,#clients{overflow-x:clip}
.apps{perspective:1000px}
.apps > div{transform-origin:50% 100%}

/* hire: word scrub + crossed city marquees */
.js-motion #hire .head p.scrub{font-size:21px;max-width:540px}
.cities-x{position:relative}
.cities-x.on{overflow:hidden;overflow:clip;margin:40px calc(var(--pad) * -1) 0;padding:44px 0}
.cities-x.on .cities{margin:0}
.ribbon{display:flex;white-space:nowrap;width:max-content;font-size:clamp(20px,2.4vw,32px);font-weight:700;letter-spacing:-.02em;line-height:1;padding:16px 0}
.ribbon span,.ribbon b{margin:0 22px!important;font-family:"Inter Tight",system-ui,sans-serif;font-size:inherit;font-weight:inherit;color:inherit}
.ribbon span::after,.ribbon b::after{content:"\2022";margin-left:44px;opacity:.5}
.rib{width:112%;margin-left:-6%}
.rib.a{background:var(--grad);color:#fff;transform:rotate(-4deg)}
.rib.b{background:#14141b;color:var(--mute);box-shadow:0 0 0 1px var(--line);transform:rotate(3deg);margin-top:-14px}
.rib.b .ribbon{padding:14px 0}
.ribbon .cities{display:flex!important;flex-wrap:nowrap!important;gap:0!important;margin:0!important;font-size:inherit;color:inherit;line-height:1}
.ribbon .cities b{flex-basis:auto!important;color:inherit;font-weight:inherit}

.js-motion .sm-big.tall{max-width:112px;aspect-ratio:414/900}

@media (prefers-reduced-motion:reduce){.progress{display:none}}
.rail.hz .end{flex-basis:360px}
