/* »Kako delamo« as one picture that grows: the sheet, then the first working job, then the team's screen, then the sheet with what already runs.
   Only styles: the draft's own markup and its own scroll logic (kk-f0 to kk-f3 on the frame, kk-von on the newest part) stay as they are. */

/* wide screens: the four pictures are four objects on one ground. Each step puts its object in front and moves the earlier ones one place back,
   so the picture ends as a row of everything done so far, oldest furthest away. */
@media (min-width:900px){
 #kako .kk-stage{border-radius:0;overflow:visible;background:none;box-shadow:none;perspective:1900px}
 #kako .kk-stage::before{content:none}
 #kako .kk-frame,#kako .kk-frame.kk-f2{left:50%;right:auto;top:50%;width:640px;height:540px;margin:-270px 0 0 -320px;border-radius:0;overflow:visible;background:none;box-shadow:none;transform:rotateY(7deg) rotateX(3deg);transform-style:preserve-3d;transition:none}
 /* one streak of light under the row, longer with every step */
 #kako .kk-frame::before{content:"";position:absolute;left:50%;top:58%;width:820px;height:470px;margin:-235px 0 0 -410px;border-radius:50%;background:radial-gradient(closest-side,rgba(190,242,100,.48),rgba(190,242,100,.24) 52%,rgba(190,242,100,0));pointer-events:none;transform:translateZ(-2px) rotate(50deg) scale(.6,.82);transition:transform 1.1s cubic-bezier(.22,1,.36,1)}
 #kako .kk-f1::before{transform:translateZ(-2px) rotate(50deg) scale(.78,.86)}
 #kako .kk-f2::before{transform:translateZ(-2px) rotate(50deg) scale(.92,.9)}
 #kako .kk-f3::before{transform:translateZ(-2px) rotate(50deg) scale(1.04,.94)}
 #kako .kk-v{inset:auto;left:0;top:0;transform-origin:0 0;opacity:1;pointer-events:none;background:#fff;clip-path:inset(-70px -90px -150px -90px);transition:transform .9s cubic-bezier(.22,1,.36,1),clip-path .4s cubic-bezier(.4,0,.6,1),opacity 0s linear .4s,box-shadow .5s ease-out}

 /* the two sheets of paper: the list made on the first talk, and the same list later */
 #kako .kk-v:nth-child(1),#kako .kk-v:nth-child(4){width:410px;padding:26px 24px 26px;border-radius:6px;box-shadow:0 0 0 1px rgba(21,22,20,.07),0 1px 1px rgba(11,12,11,.05),0 22px 32px -18px rgba(11,12,11,.32),0 54px 70px -40px rgba(11,12,11,.3)}
 #kako .kk-v:nth-child(1) .kk-pill,#kako .kk-v:nth-child(4) .kk-pill{align-self:stretch;height:auto;margin:0 0 6px;padding:0 0 14px;border-radius:0;background:none;border-bottom:1px solid rgba(21,22,20,.1);font:400 30px/1 "Instrument Serif",Georgia,serif;color:#151614}
 #kako .kk-v .kk-rw{background:#F5F5F1}
 #kako .kk-v .kk-rw.kk-pick{background:#EDF8D4}
 #kako .kk-v .kk-rw.kk-nx{background:transparent}

 /* the two windows: the first working job, and the team's screen */
 #kako .kk-v:nth-child(2),#kako .kk-v:nth-child(3){padding-top:0;border-radius:14px;overflow:hidden;background:#FBFBF9;box-shadow:0 0 0 1px rgba(21,22,20,.1),0 2px 4px rgba(11,12,11,.06),0 30px 46px -24px rgba(11,12,11,.34),0 74px 96px -52px rgba(11,12,11,.3)}
 #kako .kk-v:nth-child(2){width:540px}
 /* the team's screen ends below its last whole line */
 #kako .kk-v:nth-child(3){width:620px;height:366px}
 /* the name of the step is the window's title */
 #kako .kk-v:nth-child(2) .kk-pill,#kako .kk-v:nth-child(3) .kk-pill{align-self:stretch;justify-content:center;height:40px;margin:0 -22px 4px;padding:0;border-radius:0;border-bottom:1px solid rgba(21,22,20,.08);font:500 13px/1 Inter,system-ui,sans-serif;color:#5B5F65;
  background:radial-gradient(circle at 18px 50%,#E0443E 5px,transparent 5.6px),radial-gradient(circle at 35px 50%,#DEA123 5px,transparent 5.6px),radial-gradient(circle at 52px 50%,#1AAB29 5px,transparent 5.6px),linear-gradient(#F4F4F1,#E9E9E5)}
 #kako .kk-v:nth-child(2) .kk-pipe{flex:none;height:170px}
 #kako .kk-v:nth-child(3) .kk-sw{margin-top:-14px}
 /* no step numbers: the order is what the picture does */
 #kako .kk-pill b{display:none}
 /* the newest part carries the lime line */
 #kako .kk-v.kk-von:nth-child(1),#kako .kk-v.kk-von:nth-child(4){box-shadow:0 0 0 1.5px rgba(190,242,100,.95),0 1px 1px rgba(11,12,11,.05),0 22px 32px -18px rgba(11,12,11,.32),0 54px 70px -40px rgba(11,12,11,.3)}
 #kako .kk-v.kk-von:nth-child(2),#kako .kk-v.kk-von:nth-child(3){box-shadow:0 0 0 1.5px rgba(190,242,100,.95),0 2px 4px rgba(11,12,11,.06),0 30px 46px -24px rgba(11,12,11,.34),0 74px 96px -52px rgba(11,12,11,.3)}

 /* an object not reached yet waits a little in front of where it will stand */
 #kako .kk-v:nth-child(2){transform:translate3d(170px,236px,2px) scale(.96);opacity:0;clip-path:inset(-70px -90px 100% -90px)}
 #kako .kk-v:nth-child(3){transform:translate3d(168px,244px,3px) scale(.88);opacity:0;clip-path:inset(-70px -90px 100% -90px)}
 #kako .kk-v:nth-child(4){transform:translate3d(250px,272px,4px) rotate(1.2deg) scale(1.06);opacity:0;clip-path:inset(-70px -90px 100% -90px)}
 /* an object that has arrived is whole, and it arrives from its top edge down without ever being see-through */
 #kako .kk-f1 .kk-v:nth-child(2),#kako .kk-f2 .kk-v:nth-child(2),#kako .kk-f2 .kk-v:nth-child(3),#kako .kk-f3 .kk-v:nth-child(n+2){clip-path:inset(-70px -90px -150px -90px);transition:transform .9s cubic-bezier(.22,1,.36,1),clip-path .65s cubic-bezier(.22,1,.36,1),opacity 0s,box-shadow .5s ease-out}
 /* first: the sheet alone */
 #kako .kk-f0 .kk-v:nth-child(1){transform:translate3d(115px,120px,1px) rotate(-1.4deg) scale(1.1)}
 /* then the first job in front, the sheet one place back */
 #kako .kk-f1 .kk-v:nth-child(1){transform:translate3d(60px,70px,1px) rotate(-1.4deg) scale(.78)}
 #kako .kk-f1 .kk-v:nth-child(2){transform:translate3d(130px,180px,2px) scale(.9);opacity:1}
 /* then the team's screen, the other two one place back each */
 #kako .kk-f2 .kk-v:nth-child(1){transform:translate3d(30px,40px,1px) rotate(-1.4deg) scale(.62)}
 #kako .kk-f2 .kk-v:nth-child(2){transform:translate3d(84px,102px,2px) scale(.7);opacity:1}
 #kako .kk-f2 .kk-v:nth-child(3){transform:translate3d(130px,188px,3px) scale(.82);opacity:1}
 /* and the sheet with what already runs, in front of all three */
 #kako .kk-f3 .kk-v:nth-child(1){transform:translate3d(12px,14px,1px) rotate(-1.4deg) scale(.5)}
 #kako .kk-f3 .kk-v:nth-child(2){transform:translate3d(48px,62px,2px) scale(.56);opacity:1}
 #kako .kk-f3 .kk-v:nth-child(3){transform:translate3d(96px,118px,3px) scale(.66);opacity:1}
 #kako .kk-f3 .kk-v:nth-child(4){transform:translate3d(210px,214px,4px) rotate(1.2deg) scale(1);opacity:1}
}
@media (min-width:1700px){#kako .kk-frame,#kako .kk-frame.kk-f2{zoom:1.2}}
@media (min-width:1340px) and (max-width:1699px){#kako .kk-frame,#kako .kk-frame.kk-f2{zoom:1.08}}
@media (min-width:1100px) and (max-width:1339px){#kako .kk-frame,#kako .kk-frame.kk-f2{zoom:.92}}
@media (min-width:900px) and (max-width:1339px){#kako .kk-frame,#kako .kk-frame.kk-f2{left:calc(50% + 12px)}}
@media (min-width:1000px) and (max-width:1099px){#kako .kk-frame,#kako .kk-frame.kk-f2{zoom:.84}}
@media (min-width:900px) and (max-width:999px){#kako .kk-frame,#kako .kk-frame.kk-f2{zoom:.74}}
/* low screens: the picture never stands taller than the room the page gives it */
@media (min-width:1700px) and (max-height:799px){#kako .kk-frame,#kako .kk-frame.kk-f2{zoom:1.08}}
@media (min-width:1340px) and (max-height:719px){#kako .kk-frame,#kako .kk-frame.kk-f2{zoom:1}}
@media (min-width:1100px) and (max-height:659px){#kako .kk-frame,#kako .kk-frame.kk-f2{zoom:.92}}
@media (min-width:1000px) and (max-height:609px){#kako .kk-frame,#kako .kk-frame.kk-f2{zoom:.82}}
@media (min-width:900px) and (max-height:559px){#kako .kk-frame,#kako .kk-frame.kk-f2{zoom:.74}}
@media (min-width:900px) and (max-height:509px){#kako .kk-frame,#kako .kk-frame.kk-f2{zoom:.66}}
@media (min-width:900px) and (prefers-reduced-motion:reduce){#kako .kk-v,#kako .kk-frame .kk-v:nth-child(n),#kako .kk-frame::before{transition:none}}
/* with reduced motion the draft does not follow the scroll, so the picture stands whole from the start: all four objects in their last places */
@media (min-width:900px) and (prefers-reduced-motion:reduce){
 html:not([data-kkl]) #kako .kk-frame .kk-v:nth-child(n){opacity:1;clip-path:inset(-70px -90px -150px -90px)}
 html:not([data-kkl]) #kako .kk-frame .kk-v:nth-child(1){transform:translate3d(12px,14px,1px) rotate(-1.4deg) scale(.5)}
 html:not([data-kkl]) #kako .kk-frame .kk-v:nth-child(2){transform:translate3d(48px,62px,2px) scale(.56)}
 html:not([data-kkl]) #kako .kk-frame .kk-v:nth-child(3){transform:translate3d(96px,118px,3px) scale(.66)}
 html:not([data-kkl]) #kako .kk-frame .kk-v:nth-child(4){transform:translate3d(210px,214px,4px) rotate(1.2deg) scale(1)}
 html:not([data-kkl]) #kako .kk-frame::before{transform:translateZ(-2px) rotate(50deg) scale(1.04,.94)}
 /* no object is the newest one there, so none carries the lime line */
 html:not([data-kkl]) #kako .kk-frame .kk-v.kk-von:nth-child(1),html:not([data-kkl]) #kako .kk-frame .kk-v.kk-von:nth-child(4){box-shadow:0 0 0 1px rgba(21,22,20,.07),0 1px 1px rgba(11,12,11,.05),0 22px 32px -18px rgba(11,12,11,.32),0 54px 70px -40px rgba(11,12,11,.3)}
 html:not([data-kkl]) #kako .kk-frame .kk-v.kk-von:nth-child(2),html:not([data-kkl]) #kako .kk-frame .kk-v.kk-von:nth-child(3){box-shadow:0 0 0 1px rgba(21,22,20,.07),0 2px 4px rgba(11,12,11,.06),0 30px 46px -24px rgba(11,12,11,.34),0 74px 96px -52px rgba(11,12,11,.3)}
}

/* narrow screens: the same four objects, one under each step, on the page's own ground */
@media (max-width:899px){
 #kako .kk-dot{width:14px;height:14px;margin-top:9px;font-size:0}
 #kako .kk-row::before{background:rgba(21,22,20,.14)}
 #kako .kk-row::after{background:#151614}
 #kako .kk-on .kk-dot{box-shadow:inset 0 0 0 1.5px #151614}
 #kako .kk-vis.kk-vm,#kako .kk-on .kk-vis.kk-vm{padding:4px 2px 12px;border-radius:0;overflow:visible;background:none!important;box-shadow:none}
 #kako .kk-vis.kk-vm>.kk-fm{background:#fff}
 #kako .kk-card:nth-child(1) .kk-fm,#kako .kk-card:nth-child(4) .kk-fm{padding:16px 14px;border-radius:5px;box-shadow:0 0 0 1px rgba(21,22,20,.07),0 1px 1px rgba(11,12,11,.05),0 16px 24px -14px rgba(11,12,11,.3),0 36px 48px -30px rgba(11,12,11,.28)}
 #kako .kk-card:nth-child(1) .kk-fm{transform:rotate(-1.2deg)}
 #kako .kk-card:nth-child(4) .kk-fm{transform:rotate(1.2deg)}
 #kako .kk-card:nth-child(2) .kk-fm,#kako .kk-card:nth-child(3) .kk-fm{border-radius:12px;background:#FBFBF9;box-shadow:0 0 0 1px rgba(21,22,20,.1),0 2px 4px rgba(11,12,11,.06),0 20px 30px -18px rgba(11,12,11,.32),0 44px 60px -36px rgba(11,12,11,.28)}
 #kako .kk-card:nth-child(2) .kk-fm::before,#kako .kk-card:nth-child(3) .kk-fm::before{content:"";flex:none;height:26px;margin:-12px -12px 0;border-bottom:1px solid rgba(21,22,20,.08);background:radial-gradient(circle at 14px 50%,#E0443E 3.5px,transparent 4px),radial-gradient(circle at 26px 50%,#DEA123 3.5px,transparent 4px),radial-gradient(circle at 38px 50%,#1AAB29 3.5px,transparent 4px),linear-gradient(#F4F4F1,#E9E9E5)}
 #kako .kk-card:nth-child(3) .kk-vm .kk-sw{margin-top:-8px}
 #kako .kk-vm .kk-rw{background:#F5F5F1}
 #kako .kk-vm .kk-rw.kk-pick{background:#EDF8D4}
 #kako .kk-vm .kk-rw.kk-nx{background:transparent}
 #kako .kk-card.kk-on:nth-child(1) .kk-fm,#kako .kk-card.kk-on:nth-child(4) .kk-fm{box-shadow:0 0 0 1.5px rgba(190,242,100,.95),0 1px 1px rgba(11,12,11,.05),0 16px 24px -14px rgba(11,12,11,.3),0 36px 48px -30px rgba(11,12,11,.28)}
 #kako .kk-card.kk-on:nth-child(2) .kk-fm,#kako .kk-card.kk-on:nth-child(3) .kk-fm{box-shadow:0 0 0 1.5px rgba(190,242,100,.95),0 2px 4px rgba(11,12,11,.06),0 20px 30px -18px rgba(11,12,11,.32),0 44px 60px -36px rgba(11,12,11,.28)}
 /* the earlier steps stay behind the newest one, one place back each, as on wide screens */
 #kako .kk-vis.kk-vm>.kk-fm{position:relative;z-index:2}
 #kako .kk-card:nth-child(2) .kk-vis.kk-vm{margin-top:16px}
 #kako .kk-card:nth-child(n+3) .kk-vis.kk-vm{margin-top:30px}
 #kako .kk-card:nth-child(n+2) .kk-vis.kk-vm::before,#kako .kk-card:nth-child(n+3) .kk-vis.kk-vm::after{content:"";position:absolute;height:44px;pointer-events:none}
 #kako .kk-card:nth-child(n+2) .kk-vis.kk-vm::before{z-index:1;left:14px;right:30px;top:-11px}
 #kako .kk-card:nth-child(n+3) .kk-vis.kk-vm::after{z-index:0;left:28px;right:60px;top:-22px}
 /* a sheet behind */
 #kako .kk-card:nth-child(2) .kk-vis.kk-vm::before,#kako .kk-card:nth-child(3) .kk-vis.kk-vm::after{border-radius:5px;background:#fff;box-shadow:0 0 0 1px rgba(21,22,20,.13);transform:rotate(-1.2deg)}
 /* a window behind */
 #kako .kk-card:nth-child(3) .kk-vis.kk-vm::before,#kako .kk-card:nth-child(4) .kk-vis.kk-vm::before,#kako .kk-card:nth-child(4) .kk-vis.kk-vm::after{border-radius:11px 11px 0 0;box-shadow:0 0 0 1px rgba(21,22,20,.14);background:radial-gradient(circle at 12px 8px,#E0443E 2.6px,transparent 3.1px),radial-gradient(circle at 21px 8px,#DEA123 2.6px,transparent 3.1px),radial-gradient(circle at 30px 8px,#1AAB29 2.6px,transparent 3.1px),linear-gradient(#F6F6F3,#ECECE8)}
 /* and the first sheet behind both windows on the last step */
 #kako .kk-card:nth-child(4) .kk-vis.kk-vm::after{box-shadow:0 0 0 1px rgba(21,22,20,.14),-13px -10px 0 -5px #fff,-13px -10px 0 -4px rgba(21,22,20,.14)}
}
