/* ---------- HERO ON A STAGE ----------
   The same laptop and phone, now real 3D on a round black stage.
   .rig is the point on the floor at the centre of the stage; every part is placed from there
   in cqw, so the whole scene scales with its column. js/stage.js only turns .rig. */

/* the headline: the site's own font and weight, only smaller */
.hero__h1{font-size:clamp(36px,9.4vw,46px);line-height:1.12}
@media(min-width:1040px){.hero__h1{font-size:clamp(44px,4.5vw,68px)}}
.hero__h1 .hero__h1-dot{
  display:inline-block;width:.15em;height:.15em;margin-inline-start:.05em;background:var(--sky);
}
/* a word rolling under the headline */
.hero__for{margin-top:18px;font-size:clamp(19px,1.7vw,24px);font-weight:500;color:var(--d-mut);line-height:1.3}
.roll{display:inline-grid;overflow:hidden;vertical-align:bottom;text-align:start;color:#fff;font-weight:700}
.roll span{grid-area:1/1;opacity:0;transform:translateY(100%);transition:transform .5s var(--e),opacity .5s;white-space:nowrap}
.roll .on{opacity:1;transform:none}
.roll .out{opacity:0;transform:translateY(-100%)}

@media(min-width:1040px){
  .hero__grid{grid-template-columns:minmax(0,.74fr) minmax(0,1.26fr);max-width:1600px;column-gap:clamp(8px,1.5vw,24px)}
}
.hero{padding-bottom:48px}

/* the scene */
.devs{container-type:inline-size}
.devs__stage{
  position:relative;padding:0;height:79cqw;
  perspective:150cqw;perspective-origin:50% 28%;
}
/* light falling on the stage */
.devs__stage::before{
  content:"";position:absolute;inset:-6% -8% -4%;pointer-events:none;
  background:
    radial-gradient(ellipse 46% 44% at 50% 72%,rgba(255,255,255,.1),transparent 72%),
    radial-gradient(ellipse 30% 62% at 50% 22%,rgba(255,255,255,.055),transparent 70%);
}
.rig{
  --W:71cqw;
  --D:calc(var(--W)*.6);            /* laptop depth */
  --t:calc(var(--W)*.02);           /* laptop base thickness */
  --R:calc(var(--W)*1.28);           /* stage diameter */
  --lift:2.6cqw;                    /* stage height */
  position:absolute;left:50%;top:52cqw;width:0;height:0;
  transform-style:preserve-3d;
  transform:rotateX(-13deg) rotateY(22deg);
  will-change:transform;
}
.rig>*{position:absolute;transform-style:preserve-3d}

/* floor under the stage: a pool of light and the stage's shadow */
.floor{
  left:calc(var(--R)*-1);top:calc(var(--R)*-1);width:calc(var(--R)*2);height:calc(var(--R)*2);
  transform:translateY(var(--lift)) rotateX(90deg);
  background:radial-gradient(circle,#000 0,#000 34%,rgba(255,255,255,.075) 37%,rgba(255,255,255,.02) 52%,transparent 68%);
  border-radius:50%;
}

/* the stage: one disc on top, a stack of discs under it make the side */
.disc{
  left:calc(var(--R)/-2);top:calc(var(--R)/-2);width:var(--R);height:var(--R);border-radius:50%;
  transform:translateY(var(--y,0)) rotateX(90deg);
  background:linear-gradient(90deg,#050505,#262626 50%,#050505);
}
.disc--top{
  background:
    radial-gradient(circle at 50% 46%,rgba(255,255,255,.1),transparent 58%),
    radial-gradient(circle,#101010 0,#0a0a0a 70%,#141414 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.3),inset 0 0 3cqw rgba(255,255,255,.05);
}

/* ---- laptop ---- */
.lap{left:0;top:0;width:0;height:0;position:absolute}
.lap>*{position:absolute}
.lap__lid{
  width:var(--W);left:calc(var(--W)/-2);bottom:var(--t);
  padding:2.2% 2.2% 3%;
  transform-origin:50% 100%;
  transform:translateZ(calc(var(--D)/-2)) rotateX(9deg);
  transform-style:preserve-3d;
  background:#161616;border:1px solid rgba(255,255,255,.42);
  border-radius:1.3cqw 1.3cqw 3px 3px;
  box-shadow:none;
}
.lap .scr{border-radius:.3cqw}
.lid-edge{
  position:absolute;top:0;bottom:0;width:.9cqw;background:linear-gradient(180deg,#3a3a3a,#141414);
  border-radius:.3cqw;
}
.lid-edge--l{left:0;transform-origin:0 50%;transform:rotateY(90deg)}
.lid-edge--r{right:0;transform-origin:100% 50%;transform:rotateY(-90deg)}

.lap__deck{
  width:var(--W);height:var(--D);left:calc(var(--W)/-2);top:calc(var(--t)*-1);
  transform-origin:50% 0;
  transform:translateZ(calc(var(--D)/-2)) rotateX(90deg);
  background:linear-gradient(180deg,#3b3b3b 0,#232323 34%,#1a1a1a 100%);
  border-radius:0 0 1cqw 1cqw;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
}
/* keys */
.lap__deck::before{
  content:"";position:absolute;left:6%;right:6%;top:7%;height:50%;border-radius:.4cqw;
  background:
    repeating-linear-gradient(90deg,#0a0a0a 0 2.9cqw,#2a2a2a 2.9cqw 3.2cqw),
    #0a0a0a;
  -webkit-mask:repeating-linear-gradient(180deg,#000 0 2.3cqw,transparent 2.3cqw 2.6cqw);
  mask:repeating-linear-gradient(180deg,#000 0 2.3cqw,transparent 2.3cqw 2.6cqw);
}
/* trackpad */
.lap__deck::after{
  content:"";position:absolute;left:33%;right:33%;bottom:6%;height:30%;border-radius:.6cqw;
  background:#242424;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);
}
.lap__lip{
  width:var(--W);height:var(--t);left:calc(var(--W)/-2);top:calc(var(--t)*-1);
  transform:translateZ(calc(var(--D)/2));
  background:linear-gradient(180deg,#5a5a5a,#161616 45%,#060606);
  border-radius:0 0 .7cqw .7cqw;
}
.lap__side{
  width:var(--D);height:var(--t);left:calc(var(--D)/-2);top:calc(var(--t)*-1);
  background:linear-gradient(180deg,#3d3d3d,#0a0a0a);
}
.lap__side--l{transform:translateX(calc(var(--W)/-2)) rotateY(90deg)}
.lap__side--r{transform:translateX(calc(var(--W)/2)) rotateY(90deg)}
.lap__base{display:none}

/* soft shadows on the stage, in the stage's own plane */
.shadow{
  transform:translateY(-1px) rotateX(90deg);border-radius:50%;
  background:radial-gradient(closest-side,rgba(0,0,0,.95),rgba(0,0,0,.55) 58%,transparent);
}
.shadow--lap{
  width:calc(var(--W)*1.14);height:calc(var(--D)*1.2);
  left:calc(var(--W)*-.57);top:calc(var(--D)*-.6);
}
.shadow--ph{
  width:calc(var(--W)*.36);height:calc(var(--W)*.13);
  left:calc(var(--W)*.23);top:calc(var(--W)*-.065);
  margin-inline:0;
  transform:translate3d(0,-1px,calc(var(--W)*.3)) rotateX(90deg);
}

/* ---- phone, floating a little above the stage ---- */
.ph{
  --pw:calc(var(--W)*.25);
  left:calc(var(--W)*.41 - var(--pw)/2);bottom:auto;top:calc(var(--pw)*-2.111 - 2.2cqw);
  width:var(--pw);padding:.5cqw;
  transform-origin:50% 100%;
  transform:translateZ(calc(var(--W)*.3)) rotateY(-44deg) translateY(var(--bob,0));
  transform-style:preserve-3d;
  border-radius:2.4cqw;
  background:#0a0a0a;border:1px solid rgba(255,255,255,.42);
  box-shadow:none;
}
.ph .scr{border-radius:1.9cqw}
.ph-edge{
  position:absolute;top:1.6cqw;bottom:1.6cqw;width:.9cqw;background:linear-gradient(180deg,#4a4a4a,#1a1a1a);
}
.ph-edge--l{left:0;transform-origin:0 50%;transform:rotateY(90deg)}
.ph-edge--r{right:0;transform-origin:100% 50%;transform:rotateY(-90deg)}

/* caption and bars under the scene; text stays above the 3D layers */
.hero__copy,.hero__sub,.hero__cta,.devs__foot{position:relative;z-index:2}
.devs__foot{justify-items:center;margin-top:0;text-align:center}
.build__cap{justify-content:center}
.devs__nav{width:100%;margin-inline:auto}

@media(max-width:1039px){
  .devs__stage{height:80cqw}
  .rig{--W:69cqw;top:52cqw}
  .hero__sub{max-width:none}
}

/* floating whatsapp: gone on a computer; on a phone it waits until the hero's buttons have scrolled away */
@media(min-width:1040px){.fab{display:none}}
.fab.at-hero{transform:translateY(140%);opacity:0;pointer-events:none}

/* siblings arrive one after another */
.js .reveal{transition-delay:var(--d,0s)}
.js .reveal.is-in{transition-delay:var(--d,0s)}

/* ---- process: cards right / left, one hand-drawn arrow winding through them ---- */
.zig{position:relative;max-width:1000px;margin-inline:auto}
.steps{position:relative;z-index:1;display:flex;flex-direction:column;gap:clamp(64px,7vw,96px);border-top:0}
.step{
  position:relative;width:min(540px,86%);padding:26px 28px 28px;
  background:#fff;border:1px solid var(--line);border-radius:22px;
  box-shadow:0 22px 50px -32px rgba(0,0,0,.35);
  grid-template-columns:1fr auto;grid-template-areas:"n fig" "txt txt";align-items:center;gap:6px 18px;
  transition:opacity .8s var(--e) var(--d,0s),transform .8s var(--e) var(--d,0s),box-shadow .3s;
}
.step:nth-child(even){align-self:flex-end}
.step p{font-size:16.5px}
@media(hover:hover){.step:hover{box-shadow:0 30px 60px -30px rgba(0,0,0,.5)}}
.arrow{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:0;pointer-events:none;fill:none;stroke:#000;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tip{opacity:0;transition:opacity .25s}
.tip.on{opacity:1}

/* ---- site types: cards that open in place, with a picture inside ---- */
.types{margin-top:clamp(56px,7vw,96px)}
.types__h{font-size:clamp(26px,3vw,38px);font-weight:700;line-height:1.15;letter-spacing:-.02em}
.types__lead{margin:12px 0 28px;color:var(--d-mut);max-width:62ch}
.types__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:start}
@media(max-width:860px){.types__grid{grid-template-columns:1fr}}
.area{background:#0d0d0d;border:1px solid var(--d-line);border-radius:18px;transition:border-color .3s,translate .3s var(--e)}
.area .area__btn{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;min-height:72px;text-align:start;border-radius:18px;color:#fff;background:none;border:0;cursor:pointer;font:inherit}
.area b{flex:1;font-weight:700;font-size:18px;line-height:1.3}
.tile-ic{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;background:rgba(255,255,255,.08);transition:background-color .3s,color .3s}
.tile-ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.area.is-open .tile-ic{background:var(--sky);color:#000}
.plus{position:relative;width:18px;height:18px;flex:none;color:var(--d-mut)}
.plus::before,.plus::after{content:"";position:absolute;inset-inline-start:3px;top:8px;width:12px;height:1.6px;background:currentColor;border-radius:2px;transition:transform .35s var(--e)}
.plus::after{transform:rotate(90deg)}
.is-open .plus::after{transform:rotate(0)}
.area__more{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s var(--e)}
.area.is-open .area__more{grid-template-rows:1fr}
.area__more>div{overflow:hidden;min-height:0;padding-inline:16px}
.area__more img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top;border-radius:12px;opacity:0;transform:scale(.97);transition:opacity .5s .08s,transform .6s .08s var(--e)}
.is-open .area__more img{opacity:1;transform:none}
.area__more q{display:block;quotes:none;font-size:18px;font-weight:600;line-height:1.4;margin-top:14px}
.area__more dl{margin:10px 0 0;display:grid;gap:8px}
.area__more dt{font-size:13.5px;color:var(--d-mut)}
.area__more dd{margin:0;font-size:15.5px;line-height:1.5;color:#d6d6d6}
.area__more a{display:inline-block;margin:14px 0 18px;font-size:15px;font-weight:600;color:#fff;text-decoration:underline;text-underline-offset:4px}
@media(hover:hover){.area:hover{border-color:rgba(255,255,255,.36);translate:0 -2px}}
/* ===== round 4 ===== */

/* facts: an icon tile over each one */
.fact__ic{display:grid;place-items:center;width:48px;height:48px;margin-bottom:16px;border-radius:14px;background:#000;color:#fff}
.fact__ic svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.facts{border-top:0;padding-top:0}

/* about: the numbers as charts */
.viz{display:grid;gap:14px;margin-top:34px;max-width:980px;list-style:none;padding:0}
@media(min-width:820px){.viz{grid-template-columns:1.5fr 1fr 1fr;gap:18px}}
.viz__c{position:relative;display:flex;flex-direction:column;padding:22px 22px 20px;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden}
.viz__c b{display:block;direction:ltr;text-align:right;font-family:var(--f-disp);font-weight:700;font-variant-numeric:tabular-nums;font-size:clamp(40px,8vw,56px);line-height:1;letter-spacing:-.03em}
.viz__t{display:block;margin-top:8px;font-size:15px;line-height:1.4;color:var(--mut)}
.viz__line{display:block;width:100%;height:auto;margin-top:18px;overflow:visible}
.viz__grid{fill:none;stroke:var(--line);stroke-width:1;stroke-dasharray:3 5}
.viz__area{fill:var(--sky);opacity:0;transition:opacity 1s var(--e) .9s}
.viz__stroke{fill:none;stroke:#000;stroke-width:3;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.6s var(--e) .2s}
.viz__p0{fill:#000}
.viz__p1{fill:var(--sky);stroke:#000;stroke-width:2.5;opacity:0;transform-box:fill-box;transform-origin:center;transform:scale(0);transition:opacity .3s 1.6s,transform .6s cubic-bezier(.34,1.56,.64,1) 1.6s}
.viz.is-on .viz__stroke{stroke-dashoffset:0}
.viz.is-on .viz__area{opacity:.16}
.viz.is-on .viz__p1{opacity:1;transform:none}
.viz__ax{display:flex;justify-content:space-between;margin-top:8px;font-size:13px;color:var(--mut)}
.viz{grid-template-columns:1fr 1fr}
.viz__c--line{grid-column:1/-1}
@media(min-width:820px){.viz{grid-template-columns:1.5fr 1fr 1fr}.viz__c--line{grid-column:auto}}
@media(max-width:819px){.viz__c--ring b,.viz__c--dots b{font-size:38px}.viz__c--ring,.viz__c--dots{padding:18px 16px 16px}}
.viz__ring{display:block;width:min(110px,70%);height:auto;margin:auto auto 0;padding-top:16px;transform:rotate(-90deg)}
.viz__ring circle{fill:none;stroke-width:12}
.viz__ring .bg{stroke:var(--band)}
.viz__ring .fg{stroke:var(--sky);stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;transition:stroke-dashoffset 1.9s var(--e) .2s}
.viz.is-on .viz__ring .fg{stroke-dashoffset:0}
.viz__dots{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;margin-top:auto;padding-top:18px}
.viz__dots i{aspect-ratio:1;border-radius:2px;background:var(--band);transition:background-color .3s calc(var(--i) * 40ms + .2s)}
.viz.is-on .viz__dots i{background:#000}
.viz.is-on .viz__dots i:last-child{background:var(--sky)}

/* portfolio: plain field labels, one clean card per site, no emoji or stamps;
   on a phone each field is one row you swipe */
.grp__h{border-bottom:1px solid var(--d-line);padding-bottom:12px;margin-bottom:20px;gap:12px;align-items:baseline}
.grp__h small,.grp__h span{background:none;padding:0;border:0;border-radius:0}
.grp__h small{font-size:12.5px;color:var(--d-mut);letter-spacing:.04em}
.grp__h span{font-size:clamp(20px,2vw,26px);font-weight:700;color:#fff}
.pj__stamp,.pj__nm i{display:none}
.pj{box-shadow:none;border-radius:18px;background:#fff;overflow:hidden}
.pj__media{border-radius:0}
.pj__cap{margin-top:0;border-radius:0;box-shadow:none;padding:14px 14px 12px}
.pj__tg{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.pj:hover,.pj:focus-visible{box-shadow:0 0 0 2px var(--sky)}
@media(max-width:759px){
  .sec--work .grid{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;
    margin-inline:calc(var(--pad) * -1);padding-inline:var(--pad);padding-bottom:6px;scrollbar-width:none}
  .sec--work .grid::-webkit-scrollbar{display:none}
  .sec--work .grid .pj{flex:0 0 66%;scroll-snap-align:start}
  .grp{margin-top:36px}
}

/* reviews: five stars */
.stars{display:flex;gap:3px;color:var(--sky)}
.stars svg{width:20px;height:20px;fill:currentColor}

/* packages: a real client site on a laptop and a phone, on a small black stage */
.pk{position:relative;margin:calc(clamp(30px,4vw,48px) * -1) calc(clamp(30px,4vw,48px) * -1) 28px;
  padding:34px 20px 18px;background:radial-gradient(ellipse 70% 60% at 50% 78%,#262626,#050505 70%);
  border-radius:12px 12px 0 0;overflow:hidden;perspective:900px}
.pk__scene{position:relative;width:min(84%,420px);margin-inline:auto;aspect-ratio:16/11;transform-style:preserve-3d;
  transform:rotateX(10deg) rotateY(-12deg);transition:transform .8s var(--e);animation:pkFloat 6s ease-in-out infinite}
.card:hover .pk__scene{transform:rotateX(4deg) rotateY(-4deg)}
@keyframes pkFloat{50%{translate:0 -6px}}
.pk__lap{position:absolute;left:0;top:0;width:86%}
.pk__lap>.pk__scr{aspect-ratio:16/10;border:6px solid #111;border-bottom-width:8px;border-radius:10px 10px 2px 2px;box-shadow:0 0 0 1px rgba(255,255,255,.28)}
.pk__base{height:9px;margin-inline:-7%;background:linear-gradient(#5a5a5a,#1a1a1a 45%,#080808);border-radius:2px 2px 10px 10px}
.pk__ph{position:absolute;right:0;bottom:2%;width:25%;aspect-ratio:9/19;padding:4px;background:#0b0b0b;border-radius:14px;
  box-shadow:0 0 0 1px rgba(255,255,255,.4),0 20px 30px -12px #000;transform:translateZ(40px)}
.pk__ph>.pk__scr{height:100%;border-radius:11px}
.pk__scr{overflow:hidden;background:#111}
.pk__scr img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.pk__nm{display:block;margin-top:14px;text-align:center;font-size:13px;color:#a3a3a3}
.card__ul li{padding-inline-start:28px}
.card__ul li::before{width:6px;height:11px;top:.3em;inset-inline-start:4px;background:none;opacity:1;
  border:solid var(--sky);border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.card--hero .card__ul li::before{border-color:#000}
@media(prefers-reduced-motion:reduce){.pk__scene{animation:none}.viz__stroke,.viz__ring .fg{transition:none}}
/* ===== round 5 ===== */

/* portfolio: field filters over one even grid */
.wfilter{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:30px calc(var(--pad) * -1) 24px;padding:2px var(--pad)}
.wfilter::-webkit-scrollbar{display:none}
.wfilter button{flex:none;min-height:44px;padding:0 18px;border-radius:99px;border:1px solid var(--d-line);background:none;color:#fff;
  font:600 15px/1 var(--f-ui);cursor:pointer;transition:background-color .25s,color .25s,border-color .25s}
.wfilter button:hover{border-color:rgba(255,255,255,.5)}
.wfilter button[aria-pressed="true"]{background:#fff;color:#000;border-color:#fff}
.wgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:0}
@media(min-width:760px){.wgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
@media(min-width:1100px){.wgrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.wgrid .pj[hidden]{display:none}
.pj__type{align-self:flex-start;margin-top:8px;padding:4px 10px 3px;border-radius:99px;background:#f2f2f0;font-size:12px;font-weight:600;line-height:1.2;color:#333}
@media(max-width:759px){.wgrid .pj__cap{padding:12px 12px 10px}.wgrid .pj__nm{font-size:16px}.wgrid .pj__go{display:none}}
.wmore{display:flex;margin:28px auto 0}
.wmore[hidden]{display:none}

/* store package: dark like its neighbour, outlined in the brand sky */
.card--sky{border-color:var(--sky);box-shadow:0 30px 80px -40px rgba(34,176,227,.5)}
.card--sky .pk{border-radius:11px 11px 0 0}
