/* Below-the-fold styles (v1.5): loaded after the page has loaded, with the scripts that use them
   (see the late-scripts template in index.html), so they never block the first paint. */
/* The computer (js/computer.js) is an Anatomy drawing: the kit's dark theme in Kiihko's blues */
.desk .iso{--anatomy-paper:#050720;--anatomy-face:#0A1036;--anatomy-top:#0B1240;
  --anatomy-shade-0:#04061A;--anatomy-shade-1:#050720;--anatomy-shade-2:#070A28;--anatomy-shade-3:#080C30;
  --anatomy-lit-top:#121A4D;--anatomy-lit-shade:#0D1440;
  --anatomy-hi:#B7C5FF;--anatomy-mid:#6676B8;--anatomy-lo:#36407A;--anatomy-faint:#222A5A;--anatomy-lit:#FFFFFF;
  --anatomy-halo:#01020A;--anatomy-halo-opacity:.7;--anatomy-dot:#B7C5FF;--anatomy-weight:.7px}
.desk .pc-well{fill:var(--anatomy-shade-1)}
.desk .pc-bezel{fill:var(--anatomy-top)}
.desk .pc-dark{fill:var(--anatomy-shade-0)}
.desk .pc-glass{fill:#0A1450}
.desk .pc-glow{fill:var(--periwinkle);opacity:.14;filter:blur(6px)}
.desk .pc-scan{fill:none;stroke:#2A3A8C;stroke-width:.5px;opacity:.7}
.desk .pc-contour{vector-effect:none;fill:none;stroke:#DCE3FF;stroke-width:.7;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
.desk .pc-ring{fill:none;stroke:#DCE3FF;stroke-width:1.3px;stroke-linecap:round}
.desk .pc-cord{stroke-width:1.1px}
/* Power (js/computer.js): the glass's picture, its CRT beam, the KO boot screen and the off panel; the
   badges; the lights on the case and keyboard; the light that runs across the keys on boot */
.desk .pc-off{fill:#03061A}
.desk .pc-phosphor{fill:var(--periwinkle);opacity:.07}
.desk .pc-beam{fill:#EEF2FF;filter:drop-shadow(0 0 2px #9FB2FF)}
.desk .pc-boot-ko{fill:#C9D4FF;filter:drop-shadow(0 0 3px rgba(127,151,255,.85))}
.desk .pc-boot-track{fill:none;stroke:#2A3A8C;stroke-width:1.2;stroke-linecap:round}
.desk .pc-boot-bar{fill:none;stroke:#DCE3FF;stroke-width:1.2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
.desk .pc-badge{fill:#3E4E9C}
.desk [data-part="led"] circle,.desk .pc-kb-led circle{fill:#1C2560;transition:fill .25s var(--ease)}
.desk [data-part="led"][data-on] circle,.desk .pc-kb-led[data-on] circle{fill:#9FB2FF;filter:drop-shadow(0 0 1.5px #7F97FF)}
.desk .pc-key[data-lit] .iso-edge{stroke:#DCE3FF}
.desk .pc-key[data-lit] .iso-top{fill:#26347E}
.desk [data-power="off"] .pc-key .iso-top{fill:var(--anatomy-shade-1)}
.desk__screen{transition:opacity .35s var(--ease)}
.desk__screen.is-off{opacity:0;transition-duration:.12s}
.desk .pc-key,.desk .pc-computer{cursor:pointer}
.desk .pc-key[data-down] .iso-edge{stroke:var(--anatomy-hi)}
@media (hover:hover){.desk .pc-key:hover .iso-edge{stroke:var(--anatomy-hi)}}
/* Contact shadows: a wide soft one on the desk under the case and the keyboard */
.desk .pc-shadow{filter:blur(16px);opacity:.75;transform:translateY(9px)}
/* The send: the brief folds away, a paper airplane leaves the glass and flies off with a fading contrail */
.desk .pc-plane .iso-top{fill:#1A2668}
.desk .pc-plane{filter:drop-shadow(0 0 3px rgba(127,151,255,.55))}
.desk .pc-trail{fill:none;stroke:#C9D4FF;stroke-width:1.1;stroke-linecap:round;stroke-dasharray:1 3;stroke-dashoffset:1}
/* Sending: the brief on the glass folds away (the airplane takes its place) */
.desk__screen .desk__body,.desk__screen .desk__tags{transform-origin:50% 0;transition:transform .3s var(--ease-expo),opacity .3s var(--ease)}
.desk__screen.is-sending .desk__body,.desk__screen.is-sending .desk__tags{transform:scaleY(.08);opacity:0}

/* Giant KIIHKO wordmark (js/wordmark.js): Roboto Flex, subset to K I H O with wght, wdth and slnt.
   The page's last line: full width, heavy solid white, its bottom half fading into the dark blue.
   Near the pointer a letter stretches (wider, heavier, slanted) and fills with a light-blue gradient,
   by --p (the pointer's pull, 0..1). One solid fill per letter: no pattern, so no seams. */
@font-face{font-family:"Roboto Flex KIHO";src:url("../fonts/RobotoFlex-KIHO.woff2") format("woff2");font-weight:100 1000;font-stretch:25% 151%;font-display:swap}
/* The section clips: the letters waiting below the baseline to rise (and any swelling past the sides) never
   lengthen the page */
.closing{overflow:clip}
.wordmark{margin-top:clamp(18px,2.4vw,36px);touch-action:pan-y}
.wordmark__mark{width:100%;display:flex;justify-content:center}
/* The line height is tight (.74), so the glyphs' tops stand above every box around them. The boxes that paint
   or mask the letters are padded up over the tops (and pulled back by the same, so nothing moves): the word's
   fade mask, each letter's rise clip, and the letter's own text fill, which only paints inside its box */
/* pointer-events: the word's padded box reaches up over the copyright; the root (.wordmark) hears the pointer */
.wordmark__word{pointer-events:none;margin:0;display:flex;align-items:flex-end;white-space:nowrap;padding-top:.3em;margin-top:-.29em;font:620 100px/.74 "Roboto Flex KIHO",var(--font-ui);letter-spacing:-.01em;user-select:none;
  -webkit-mask:linear-gradient(180deg,#000 0,#000 58%,transparent 95%);mask:linear-gradient(180deg,#000 0,#000 58%,transparent 95%)}
.wordmark__lift{display:inline-block;clip-path:inset(-60% -30% 0 -30%)}
.wordmark__rise{display:inline-block;padding-top:.26em;margin-top:-.26em;color:transparent;
  background:linear-gradient(180deg,color-mix(in oklab,var(--white),#C9D4FF calc(var(--p,0)*100%)),color-mix(in oklab,var(--white),#7F97FF calc(var(--p,0)*100%)));
  -webkit-background-clip:text;background-clip:text}

/* Typing feel (js/typing.js, js/desk.js): a touch on the character just typed */
.typing-mirror{position:absolute;visibility:hidden;pointer-events:none;white-space:pre-wrap;overflow-wrap:break-word;border-style:solid;border-color:transparent;overflow:hidden;height:auto}
.typing-ghost{position:absolute;pointer-events:none;color:var(--periwinkle);white-space:pre;animation:type-echo 200ms var(--ease) forwards}
@keyframes type-echo{from{opacity:.9;translate:0 0}to{opacity:0;translate:0 -3px}}
.desk__screen .is-new{display:inline-block;animation:type-in var(--t-micro) var(--ease) both}
@keyframes type-in{from{opacity:0;translate:0 2px}}
