/* draw.css: the home page draws itself (js/draw.js, spec _spec/draw-intro.md). Nothing here does anything unless
   the head script put .dw on <html> (it does not under reduced motion, forced colours, ?draw=0, a deep link, or a
   second visit in the same tab session), so the page without the intro is exactly the page without this file. */

#dw{display:none}
/* the paper: white from the first paint (this background), then a canvas that js/draw.js clears cell by cell */
html.dw #dw{display:block;position:fixed;inset:0;z-index:70;pointer-events:none;background:#fff;contain:strict;overflow:hidden}
.dw-paper{position:absolute;left:0;top:0}

/* construction lines: drawn with pathLength=1, so a dash offset of 1 is nothing and 0 is the whole line */
.dw-lines{position:absolute;left:0;top:0;overflow:visible}
.dw-lines .ln{fill:none;stroke:#2457FF;stroke-width:1;stroke-dasharray:1 1;stroke-dashoffset:1;visibility:hidden}
.dw-lines .g{stroke-opacity:.22}
.dw-lines .bx{stroke-opacity:.62}
.dw-lines .lg{fill:none;stroke:#2457FF;stroke-dasharray:1 1;stroke-dashoffset:1;visibility:hidden}

/* the designer's selection (desktop): the element's real size under it */
.dw-sel{position:absolute;left:0;top:0;width:0;height:0;box-sizing:border-box;border:1.5px solid #2457FF;opacity:0;visibility:hidden}
.dw-sel i{position:absolute;width:7px;height:7px;box-sizing:border-box;background:#fff;border:1.5px solid #2457FF}
.dw-sel i:nth-child(1){left:-4.25px;top:-4.25px}
.dw-sel i:nth-child(2){right:-4.25px;top:-4.25px}
.dw-sel i:nth-child(3){right:-4.25px;bottom:-4.25px}
.dw-sel i:nth-child(4){left:-4.25px;bottom:-4.25px}
.dw-dim{position:absolute;left:50%;top:calc(100% + 7px);transform:translateX(-50%);padding:4px 6px;border-radius:4px;background:#2457FF;color:#fff;font-size:11px;font-weight:500;line-height:1;letter-spacing:0;white-space:nowrap;font-variant-numeric:tabular-nums}

/* the pen (desktop) and the print head (phone) */
.dw-caret{position:absolute;left:0;top:0;width:2px;height:0;background:#2457FF;border-radius:1px;box-shadow:0 0 10px rgba(36,87,255,.5);opacity:0;visibility:hidden}
.dw-head{position:absolute;left:0;right:0;top:0;height:1.5px;background:#2457FF;box-shadow:0 0 14px 1px rgba(36,87,255,.45);opacity:0;visibility:hidden}
.dw-head::before{content:'';position:absolute;left:0;right:0;bottom:1.5px;height:64px;background:linear-gradient(rgba(36,87,255,0),rgba(36,87,255,.07))}

/* the page under the paper: the draw is the hero's entrance, so the word's own entrance waits, and the highlight
   under "sales team" sweeps in at the end */
html.dw .aes{animation:none}
html.dw .b-hero .aes-neon{background-size:0% 100%;background-repeat:no-repeat}

/* wet ink: an element is blue while it is being drawn and dries to its own colour (the AES word keeps its liquid) */
.dw-wet,.dw-wet :not(.aes,.aes *){color:#2457FF!important}
.dw-wet.pill-ink{background-color:#2457FF!important;color:#fff!important}
.dw-dry,.dw-dry :not(.aes,.aes *){transition:color .7s ease,background-color .7s ease!important}
