/* »Ljudje in AI na istem zaslonu«: a picture of the same thing the window shows (AI prepares, a person confirms, done work goes on),
   standing behind the top edge of the window at every width, with the window's own three states as its labels on wide screens.
   Picture and labels are pseudo-elements, because the draft removes anything added to its page; the label texts are read from the window by os.js.
   os-desks-wide.jpg is os-desks.jpg with 300 px of empty floor added on each side (2136 px wide, the drawn part is the middle 1536).
   --w is the width of the drawn part on screen. In the picture's own 1536 px the tops of the figures are about 232 px down, the nearest feet 820 px,
   and the picture is set so that those feet stand 10 px above the window.
   The draft moves the window while the page scrolls, from 28 px below its place to 28 px above it (12 px on phones), and keeps that offset in --dp-os on <html>;
   picture and labels take the same offset, so they move with the window as one. */
html #os>div:nth-child(3)>div:last-child{position:relative;z-index:1}
html #os>div:nth-child(3)>div:first-child{--w:94vw}
html #os>div:nth-child(3)>div:first-child::after,html #os>div:nth-child(3)>div:first-child::before,html #os>div:nth-child(3)>div:first-child>div:first-child::before,html #os>div:nth-child(3)>div:first-child>div:last-child::before{translate:0 calc(var(--dp-os,0)*1px)}
html #os>div:nth-child(3)>div:first-child::after{content:"";flex:none;width:var(--w);aspect-ratio:1536/1024;margin:calc(0px - var(--w)*200/1536) calc(50% - 47vw) calc(-22px - var(--w)*204/1536);pointer-events:none;
 background:url(os-desks.jpg) 50% 0/100% auto no-repeat;mix-blend-mode:lighten;
 -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent),linear-gradient(#000 87%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent),linear-gradient(#000 87%,transparent);mask-composite:intersect}
/* from 700 px the picture stands in the middle, as the window under it does, with its added floor */
@media (min-width:700px) and (max-width:999.98px){
html #os>div:nth-child(3)>div:first-child{--w:calc(min(100vw - 2*clamp(16px,3vw,40px),860px)*1536/2136)}
html #os>div:nth-child(3)>div:first-child::after{width:calc(var(--w)*2136/1536);aspect-ratio:2136/1024;margin:calc(0px - var(--w)*200/1536) auto calc(-22px - var(--w)*204/1536);background-image:url(os-desks-wide.jpg);
 -webkit-mask-image:linear-gradient(#000 87%,transparent);mask-image:linear-gradient(#000 87%,transparent)}
}
/* from 1000 px the industry tabs stand under the paragraph and the picture takes the right side, its floor running behind the window */
@media (min-width:1000px){
html #os>div:nth-child(3)>div:first-child{position:relative;--w:min(700px,calc(min(1280px,100vw - 2*clamp(16px,3vw,40px)) - 612px));--b:calc(22px + var(--w)*204/1536)}
html #os>div:nth-child(3)>div:first-child>div:last-child{flex-basis:100%;gap:8px 12px}
html #os>div:nth-child(3)>div:first-child>div:last-child>span{flex-basis:100%}
html #os>div:nth-child(3)>div:first-child::after{position:absolute;right:calc(-8px - var(--w)*300/1536);bottom:calc(0px - var(--b));width:calc(var(--w)*2136/1536);aspect-ratio:2136/1024;margin:0;
 background:url(os-desks-wide.jpg) 50% 0/100% auto no-repeat;-webkit-mask-image:none;mask-image:none}
}
/* from 1200 px the picture is large enough for its labels */
@media (min-width:1200px){
/* three short ticks, from each label down to its figure */
html #os>div:nth-child(3)>div:first-child::after{--k:linear-gradient(rgba(255,255,255,.42),rgba(255,255,255,.42));
 background:var(--k) calc(var(--w)*(300 + 372)/1536) calc(var(--w)*232/1536 - 15px)/1px 11px no-repeat,var(--k) calc(var(--w)*(300 + 690)/1536) calc(var(--w)*252/1536 - 15px)/1px 11px no-repeat,var(--k) calc(var(--w)*(300 + 1088)/1536) calc(var(--w)*236/1536 - 15px)/1px 11px no-repeat,url(os-desks-wide.jpg) 50% 0/100% auto no-repeat}
html.os-wait #os>div:nth-child(3)>div:first-child::after{--k:linear-gradient(transparent,transparent)}
/* the three labels: the window's own status chips, each a fixed step above the top of its figure (--x and --t are places in the picture, in its own 1536 px) */
html #os>div:nth-child(3)>div:first-child::before,html #os>div:nth-child(3)>div:first-child>div:first-child::before,html #os>div:nth-child(3)>div:first-child>div:last-child::before{position:absolute;z-index:2;right:calc(-8px + var(--w)*(1536 - var(--x))/1536);bottom:calc(0px - var(--b) + var(--w)*(1024 - var(--t))/1536 + 28px);transform:translate(50%,50%);
 white-space:nowrap;font:500 12px/22px Inter,system-ui,sans-serif;height:22px;padding:0 9px 0 20px;border-radius:999px;pointer-events:none}
html.os-wait #os>div:nth-child(3)>div:first-child::before,html.os-wait #os>div:nth-child(3)>div:first-child>div:first-child::before,html.os-wait #os>div:nth-child(3)>div:first-child>div:last-child::before{opacity:0;transform:translate(50%,calc(50% + 8px))}
@media (prefers-reduced-motion:no-preference){html #os>div:nth-child(3)>div:first-child::before,html #os>div:nth-child(3)>div:first-child>div:first-child::before,html #os>div:nth-child(3)>div:first-child>div:last-child::before{transition:opacity .5s cubic-bezier(.22,1,.36,1),transform .6s cubic-bezier(.22,1,.36,1)}
html #os>div:nth-child(3)>div:first-child>div:first-child::before{transition-delay:.15s}html #os>div:nth-child(3)>div:first-child::before{transition-delay:.4s}html #os>div:nth-child(3)>div:first-child>div:last-child::before{transition-delay:.65s}}
html #os>div:nth-child(3)>div:first-child>div:first-child::before{content:var(--os-l1);--x:372;--t:232;color:#50545A;background:radial-gradient(circle at 11px 50%,#50545A 3px,rgba(80,84,90,0) 3.6px),#F0F0EC}
html #os>div:nth-child(3)>div:first-child::before{content:var(--os-l2);--x:690;--t:252;color:#9A4B10;background:radial-gradient(circle at 11px 50%,#9A4B10 3px,rgba(154,75,16,0) 3.6px),#FBF0E3}
html #os>div:nth-child(3)>div:first-child>div:last-child::before{content:var(--os-l3);--x:1088;--t:236;color:#176B3C;background:radial-gradient(circle at 11px 50%,#176B3C 3px,rgba(23,107,60,0) 3.6px),#E6F2EA}
}
/* the page guide steps aside while this section is on screen */
html.os-here .g-bot{opacity:0!important;pointer-events:none!important}
/* and wherever a section hides it, it is hidden to the keyboard and to screen readers too, not only to the eye, and at once: a guide that is still
   fading out could be reached with the keyboard. This one rule also covers the first screen, the services and the thesis sections,
   whose own sheets hide the guide by opacity alone. */
html.os-here .g-bot,html.sv-here .g-bot,html.tz-here .g-bot,html.dp-hero .g-bot{visibility:hidden!important}
